/* OpenWorld Web S02 DRAFT R4: topbar, inline search, account dialogs. */
:root[data-theme] .topbar { padding-left:3.2%;padding-right:3.2%;gap:15px; }
.topbar-left { flex:1 1 auto;min-width:0;gap:16px; }
.header-search { flex:0 1 310px;width:310px;max-width:100%;margin-left:auto; }
.header-search #site-search {height:38px;min-width:0;width:100%;padding:8px 12px 8px 37px;border:1px solid rgba(255,255,255,.09);border-radius:8px;background:rgba(18,38,66,.30);color:#fff;font-size:12px;outline:none;}
.header-search #site-search::placeholder {color:#d2def0;opacity:.9;}
.header-search #site-search:focus {border-color:rgba(225,239,255,.7);background:rgba(15,35,63,.51);}
.search-field-icon {position:absolute;left:11px;top:10px;width:17px;height:17px;stroke:#eef5ff;stroke-width:2;fill:none;stroke-linecap:round;pointer-events:none;}
.header-search .search-popover {top:calc(100% + 10px);left:0;right:auto;width:390px;}
.account-avatar {overflow:hidden;}
.account-avatar img,.avatar-preview img {display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit;}
.account-popover {width:260px;max-height:min(75vh,500px);overflow-y:auto;}
.admin-menu-choice {border-top:1px solid var(--ow-line);border-radius:0;}
.avatar-preview {width:96px;height:96px;display:grid;place-items:center;margin:0 auto 3px;border-radius:50%;background:#6688af;color:white;font-size:34px;font-weight:750;overflow:hidden;border:2px solid var(--ow-line);}
.setting-toggle {display:flex!important;flex-direction:row!important;align-items:center;gap:10px;line-height:1.55;}
.setting-toggle input[type=checkbox] {width:17px;height:17px;flex:0 0 17px;accent-color:var(--ow-accent);}
.form-actions {display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;}
.admin-dialog {max-width:min(650px,calc(100vw - 28px));}
.admin-section-list {border:1px solid var(--ow-line);border-radius:9px;max-height:360px;overflow:auto;}
.admin-section {display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 13px;border-bottom:1px solid var(--ow-line);}
.admin-section:last-child {border-bottom:0;}
.admin-section strong {font-size:13px;}
.admin-section span {font-size:11px;color:var(--ow-soft);text-align:right;overflow-wrap:anywhere;}
@media (max-width:1100px) { .header-search {flex-basis:240px;width:240px;} .topbar-left {gap:9px;} }
@media (max-width:800px) {
  :root[data-theme] .topbar {flex-wrap:wrap;align-items:center;gap:9px;}
  .topbar-left {order:2;width:100%;flex:1 1 100%;}
  .top-actions {order:1;width:100%;flex:1 1 100%;justify-content:flex-end;}
  .header-search {flex:1 1 auto;width:auto;margin-left:0;}
  .header-search .search-popover {position:fixed;top:120px;left:12px;right:12px;width:auto;max-width:none;}
}
@media (max-width:520px) { .header-search #site-search {height:35px;} .search-field-icon {top:9px;} }
