:root {
  --navy: #04182f;
  --navy-2: #0a2344;
  --navy-3: #12305a;
  --deep: #020e1d;
  --gold-1: #bc8c40;
  --gold-2: #ecc25f;
  --gold-3: #f3d27a;
  --gold-grad: linear-gradient(100deg, #bc8c40 0%, #ecc25f 60%, #f3d27a 100%);
  --gold-ink: #7a5a14;
  --gold-soft: #fbf3df;
  --bg: #f5f6fa;
  --bg-2: #eceff5;
  --surface: #ffffff;
  --ink: #0b1a2e;
  --ink-2: #33445a;
  --muted: #5a687b;
  --faint: #8b9ab0;
  --line: #dfe3eb;
  --line-2: #eceff4;
  --on-dark: #eef2f8;
  --on-dark-2: #b4c0d2;
  --on-dark-3: #8b9ab0;
  --green: #1a7f37;
  --green-soft: #e9f6ec;
  --red: #b42318;
  --red-soft: #fdeeec;
  --amber: #9a6700;
  --amber-soft: #fff6e0;
  --blue: #1f5fd6;
  --blue-soft: #ebf2ff;
  --r: 20px;
  --r-sm: 12px;
  --ring: 0 0 0 1px rgba(4, 24, 47, .07), 0 1px 2px rgba(4, 24, 47, .04);
  --sh-lg: 0 0 0 1px rgba(4, 24, 47, .06), 0 24px 48px -18px rgba(4, 24, 47, .28);
  --focus: 0 0 0 4px rgba(236, 194, 95, .32);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11', 'ss01'; }
img, svg { max-width: 100%; vertical-align: middle; }
a { color: var(--navy-3); text-decoration: none; }
a:hover { color: var(--gold-1); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.025em; font-weight: 800; }
h1 { font-size: 1.85rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.08rem; letter-spacing: -.015em; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line-2); margin: 24px 0; }
::selection { background: rgba(236, 194, 95, .35); }
.icon { width: 1.12em; height: 1.12em; flex-shrink: 0; stroke-width: 1.9; }
code { font-family: var(--mono); font-size: .9em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.xs { font-size: .78rem; }
.strong { font-weight: 700; }
.center { text-align: center; }
.right { text-align: right; }
.hidden { display: none !important; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 16px; }
.gold-text { background: linear-gradient(100deg, #bc8c40 0%, #ecc25f 40%, #f6dc95 55%, #ecc25f 75%, #bc8c40 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .74rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--gold-1); }
.eyebrow::before { content: ''; width: 22px; height: 1.5px; background: currentColor; border-radius: 2px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.top { align-items: flex-start; }
.stack > * + * { margin-top: 16px; }
.grow { flex: 1 1 auto; min-width: 0; }
.grid { display: grid; gap: 16px; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-2 > .field { margin-bottom: 0; }
form .grid-2 { row-gap: 18px; margin-bottom: 18px; }
.split { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 980px){
.split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px){
.grid-2 { grid-template-columns: minmax(0, 1fr); }
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 20px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 600; font-size: .92rem; letter-spacing: -.01em; line-height: 1; cursor: pointer; white-space: nowrap;
  background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line);
  transition: background .2s var(--ease), box-shadow .2s var(--ease), transform .08s, color .2s;
  text-decoration: none !important;
}
.btn:hover { background: #fafbfd; box-shadow: inset 0 0 0 1px #c9d0dc; color: var(--ink); }
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 1px var(--gold-1), var(--focus); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--navy); color: #fff; box-shadow: none; }
.btn-primary:hover { background: var(--navy-2); color: #fff; box-shadow: none; }
.btn-ghost { background: transparent; box-shadow: none; }
.btn-ghost:hover { background: rgba(4, 24, 47, .05); box-shadow: none; }
.btn-sm { height: 34px; padding: 0 14px; font-size: .84rem; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; padding: 0; }
.btn-icon.btn-sm { width: 34px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--navy-3); cursor: pointer; font-weight: 600; }
.link-btn:hover { color: var(--gold-1); }
.link-btn.danger { color: var(--red); }
.card { background: var(--surface); border-radius: var(--r); box-shadow: var(--ring); }
.card-body { padding: 24px; }
.card.dark { background: radial-gradient(120% 140% at 0% 0%, #12305a 0%, var(--navy) 55%, var(--deep) 100%); color: var(--on-dark-2); box-shadow: 0 0 0 1px rgba(255, 255, 255, .04), 0 24px 48px -24px rgba(4, 24, 47, .6); }
.card.dark h1, .card.dark h2, .card.dark h3 { color: #fff; }
.card.dark .muted { color: var(--on-dark-3); }
@media (max-width: 640px){
.card-body { padding: 18px; }
}
.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }
.field > label, .label { display: block; font-weight: 600; font-size: .86rem; color: var(--ink-2); margin-bottom: 7px; letter-spacing: -.005em; }
.field > label.check { display: flex; font-weight: 400; margin-bottom: 0; }
.field > label.btn { display: inline-flex; margin-bottom: 0; }
.field .opt { font-weight: 400; color: var(--faint); font-size: .8rem; }
.input, .select, .textarea {
  display: block; width: 100%; height: 46px; padding: 0 15px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; font: inherit; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 96px; padding: 12px 15px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a687b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.input::placeholder, .textarea::placeholder { color: #a3aebd; }
.input:hover, .select:hover, .textarea:hover { border-color: #c9d0dc; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--gold-1); box-shadow: var(--focus); }
.input[readonly] { background: var(--bg); }
.input-group { display: flex; align-items: stretch; }
.input-group .addon { display: flex; align-items: center; padding: 0 14px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); font-size: .88rem; white-space: nowrap; }
.input-group .addon:first-child { border-right: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); }
.input-group .addon:last-child { border-left: 0; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.input-group .input, .input-group .select { border-radius: 0; min-width: 0; }
.input-group > :first-child.input, .input-group > :first-child.select { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.input-group > :last-child.input, .input-group > :last-child.select { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.help { font-size: .8rem; color: var(--muted); margin-top: 7px; line-height: 1.45; }
.error { font-size: .82rem; color: var(--red); margin-top: 7px; font-weight: 500; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: .92rem; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--navy); flex-shrink: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 16px; font-size: .92rem; margin-bottom: 16px; background: #fff; box-shadow: var(--ring); }
.alert .icon { margin-top: 2px; width: 1.25em; height: 1.25em; }
.alert-success .icon { color: var(--green); }
.alert-error { background: var(--red-soft); box-shadow: 0 0 0 1px #f4d1cc; color: #7a1a12; }
.alert-error .icon { color: var(--red); }
.alert-info .icon { color: var(--blue); }
.alert-warn { background: var(--amber-soft); box-shadow: 0 0 0 1px #f3e1b1; color: #5b3d00; }
.alert-warn .icon { color: var(--amber); }
.alert a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; background: var(--bg-2); color: var(--ink-2); white-space: nowrap; letter-spacing: -.005em; }
.pill.green { background: var(--green-soft); color: var(--green); }
.pill.red { background: var(--red-soft); color: var(--red); }
.pill.amber { background: var(--amber-soft); color: var(--amber); }
.pill.gold { background: var(--gold-soft); color: var(--gold-ink); }
.pill.navy { background: var(--navy); color: #fff; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; display: inline-block; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-weight: 600; color: var(--faint); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; padding: 12px 16px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fafbfd; }
.image-field { display: flex; gap: 16px; align-items: center; }
.image-field .preview { position: relative; width: 100px; height: 100px; border-radius: 18px; background: var(--bg) center / cover no-repeat; display: flex; align-items: center; justify-content: center; color: #a9b3c2; flex-shrink: 0; overflow: hidden; cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .15s; }
.image-field .preview:hover { box-shadow: inset 0 0 0 1.5px var(--gold-1); }
.image-field .preview.wide { width: 178px; }
.image-field .preview.has-image { box-shadow: var(--ring); }
.image-field .preview.has-image .icon { display: none; }
.image-field .preview .icon { width: 28px; height: 28px; stroke-width: 1.6; }
.image-field .preview.loading::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.75) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%2304182f' stroke-width='2.5'%3E%3Cpath d='M21 12a9 9 0 1 1-6.2-8.56'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='.8s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E") center no-repeat; }
.image-field .actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.toast-wrap { position: fixed; left: 16px; right: 16px; bottom: 28px; z-index: 1000; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
@media (max-width: 640px){
.toast-wrap { align-items: stretch; }
}
@keyframes toast-in{ from { opacity: 0; transform: translateY(10px) scale(.98); } }
.logo { display: inline-flex; align-items: center; color: var(--navy); --logo-gap: #fff; text-decoration: none !important; line-height: 0; }
.logo svg, .logo img { height: 30px; width: auto; display: block; }
.logo:hover { color: var(--navy); }
.logo.light { color: #fff; --logo-gap: var(--navy); }
.logo.light:hover { color: #fff; }
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; background: #fff; }
@media (max-width: 920px){
.auth { grid-template-columns: 1fr; }
}
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 264px; flex-shrink: 0; background: var(--navy); color: var(--on-dark-2); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.15) transparent; }
.sidebar .brand { padding: 22px 22px 14px; }
.branch-switch { margin: 4px 14px 6px; position: relative; }
.branch-switch summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); cursor: pointer; color: #fff; font-weight: 600; font-size: .88rem; }
.branch-switch summary::-webkit-details-marker { display: none; }
.branch-switch summary .avatar { width: 30px; height: 30px; font-size: .8rem; }
.branch-switch summary .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.branch-switch .menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: #0d2645; border-radius: 14px; padding: 6px; box-shadow: 0 20px 40px -10px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.08); z-index: 5; }
.branch-switch .menu button, .branch-switch .menu a { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 10px; background: none; color: var(--on-dark); font: inherit; font-size: .86rem; cursor: pointer; text-align: left; text-decoration: none; }
.branch-switch .menu button:hover, .branch-switch .menu a:hover { background: rgba(255,255,255,.07); color: #fff; }
.branch-switch .menu .on { color: var(--gold-2); }
.sidebar nav { padding: 6px 12px 12px; flex: 1; }
.sidebar .nav-label { font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: #8b9ab0; padding: 16px 12px 6px; font-weight: 700; }
.sidebar nav a { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 11px; color: var(--on-dark-2); font-weight: 500; font-size: .9rem; margin-bottom: 1px; text-decoration: none; letter-spacing: -.005em; transition: background .15s, color .15s; }
.sidebar nav a .icon { color: #7f90a8; }
.sidebar nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar nav a.active { background: rgba(255,255,255,.09); color: #fff; }
.sidebar nav a.active::before { content: ''; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold-grad); }
.sidebar nav a.active .icon { color: var(--gold-2); }
.sidebar nav a .count { margin-left: auto; background: var(--gold-grad); color: var(--navy); border-radius: 999px; font-size: .7rem; font-weight: 800; padding: 1px 8px; min-width: 22px; text-align: center; }
.sidebar .side-foot { padding: 14px; border-top: 1px solid rgba(255,255,255,.06); }
.sub-mini { display: block; background: rgba(255,255,255,.05); border-radius: 14px; padding: 12px 14px; font-size: .82rem; margin-bottom: 12px; text-decoration: none; color: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.sub-mini:hover { background: rgba(255,255,255,.08); color: inherit; }
.sub-mini .t { color: #fff; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.sub-mini .t .icon { color: var(--gold-2); }
.sub-mini .bar { height: 4px; border-radius: 9px; background: rgba(255,255,255,.1); margin: 9px 0 5px; overflow: hidden; }
.sub-mini .bar span { display: block; height: 100%; background: var(--gold-grad); border-radius: 9px; }
.side-user { display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--navy-3); color: var(--gold-2); display: grid; place-items: center; font-weight: 800; font-size: .9rem; flex-shrink: 0; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.side-user .n { color: #fff; font-weight: 600; font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user .e { font-size: .74rem; color: var(--on-dark-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user form { margin-left: auto; }
.side-user button { background: none; border: 0; color: var(--on-dark-3); cursor: pointer; padding: 7px; border-radius: 9px; display: grid; }
.side-user button:hover { color: #fff; background: rgba(255,255,255,.08); }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 66px; display: flex; align-items: center; gap: 12px; padding: 0 32px; background: rgba(245, 246, 250, .78); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); border-bottom: 1px solid rgba(4, 24, 47, .06); position: sticky; top: 0; z-index: 20; }
.topbar h1 { font-size: 1.06rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.02em; font-weight: 700; }
.topbar .menu-btn { display: none; }
.topbar .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.content { padding: 30px 32px 56px; max-width: 1220px; width: 100%; }
.content.narrow { max-width: 880px; }
.impersonate-bar { background: var(--gold-grad); color: var(--navy); padding: 8px 20px; display: flex; align-items: center; justify-content: center; gap: 12px; font-weight: 600; font-size: .88rem; flex-wrap: wrap; }
.impersonate-bar button { background: var(--navy); color: #fff; border: 0; border-radius: 999px; padding: 6px 14px; font: inherit; font-size: .82rem; cursor: pointer; }
.sidebar-backdrop { display: none; }
@media (max-width: 1000px){
.sidebar { position: fixed; left: 0; top: 0; z-index: 50; transform: translateX(-100%); visibility: hidden; transition: transform .3s var(--ease), visibility 0s linear .3s; }
.topbar { padding: 0 14px; }
.topbar .menu-btn { display: inline-flex; }
.content { padding: 20px 14px 48px; }
.topbar .hide-mobile { display: none; }
}
.bars { display: flex; align-items: flex-end; gap: 3px; height: 150px; padding-top: 10px; }
.bars .b { flex: 1; background: linear-gradient(180deg, #d8dfeb, #e6ebf3); border-radius: 5px 5px 2px 2px; min-height: 3px; position: relative; transition: background .2s; }
.bars .b:hover { background: linear-gradient(180deg, var(--gold-2), var(--gold-1)); }
.bars .b:hover::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; font-size: .72rem; padding: 5px 9px; border-radius: 8px; white-space: nowrap; z-index: 2; }
@keyframes just-saved{ 0%, 45% { background-color: #fff6d6; box-shadow: inset 0 0 0 2px var(--gold-2); } }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--bg-2); border-radius: 999px; margin-bottom: 18px; overflow-x: auto; width: fit-content; max-width: 100%; }
.tabs a, .tabs button { padding: 7px 16px; border: 0; background: none; font: inherit; font-weight: 600; font-size: .86rem; color: var(--muted); border-radius: 999px; cursor: pointer; white-space: nowrap; text-decoration: none; }
.tabs .active { background: #fff; color: var(--ink); box-shadow: var(--ring); }
.lang-panels .lang-panel { display: none; }
.lang-panels .lang-panel.active { display: block; }
input[type=color] { width: 44px; height: 36px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
@keyframes dz-up{ from { transform: translateY(40px); opacity: 0; } }
.qr-box { background: #fff; border-radius: 22px; padding: 18px; display: inline-block; box-shadow: var(--ring); }
.qr-box img, .qr-box svg { width: 220px; height: 220px; display: block; }
@media (max-width: 640px){
.qr-box img, .qr-box svg { width: 200px; height: 200px; }
}
@keyframes pop{ from { opacity: 0; transform: translateY(6px) scale(.99); } }
.stars { display: inline-flex; gap: 2px; color: var(--gold-2); }
.stars .icon { width: 16px; height: 16px; fill: currentColor; }
.stars .off { color: #d5dbe5; }
.iph { --s: .6; position: relative; flex-shrink: 0; width: calc(420px * var(--s)); height: calc(874px * var(--s)); }
.iph-frame { position: absolute; top: 0; left: 0; width: 420px; height: 874px; padding: 15px; border-radius: 70px; transform: scale(var(--s)); transform-origin: 0 0;
  background: linear-gradient(145deg, #c9ccd3 0%, #8e929a 14%, #4b4f57 40%, #2a2d33 60%, #6c7079 86%, #c4c7cd 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.55), inset 0 0 0 5px #15171b, 0 0 0 1px rgba(0,0,0,.25), 0 60px 90px -40px rgba(20, 30, 50, .55), 0 30px 50px -30px rgba(20, 30, 50, .35); }
.iph-btn { position: absolute; width: 5px; border-radius: 3px; background: linear-gradient(90deg, #6c7079, #c9ccd3 55%, #6c7079); }
.iph-btn.ib1 { left: -4px; top: 170px; height: 34px; }
.iph-btn.ib2 { left: -4px; top: 236px; height: 64px; }
.iph-btn.ib3 { left: -4px; top: 314px; height: 64px; }
.iph-btn.ib4 { right: -4px; top: 270px; height: 100px; }
.iph-screen { position: relative; width: 390px; height: 844px; border-radius: 55px; overflow: hidden; background: #000; isolation: isolate; }
.iph-bar { position: relative; z-index: 3; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 6px 30px 0 46px; color: #fff; transition: background .4s; }
.iph-bar.on-light { color: #000; }
.iph-time { font-family: -apple-system, 'SF Pro Text', Inter, system-ui, sans-serif; font-weight: 600; font-size: 17px; letter-spacing: -.02em; width: 54px; text-align: center; }
.iph-icons { display: flex; align-items: center; gap: 6px; }
.iph-icons svg { fill: currentColor; display: block; }
.iph-island { position: absolute; top: 11px; left: 50%; width: 126px; height: 37px; margin-left: -63px; border-radius: 20px; background: #000; }
.iph-view { position: relative; height: 790px; background: #fff; }
.iph-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; z-index: 1; transition: opacity .35s; }
.iph-shot.gone { opacity: 0; pointer-events: none; }
.iph-live { position: absolute; inset: 0; width: 390px; height: 790px; border: 0; display: block; background: #fff; }
.iph-home { position: absolute; z-index: 4; left: 50%; bottom: 8px; width: 134px; height: 5px; margin-left: -67px; border-radius: 3px; background: rgba(0,0,0,.5); box-shadow: 0 0 0 1px rgba(255,255,255,.35); pointer-events: none; }
.custom-design { display: flex; align-items: center; gap: 14px; padding: 16px 18px; text-decoration: none !important; color: var(--ink); background: linear-gradient(120deg, #fff4ea, #f1edff 55%, #e9f3ff); transition: transform .2s; }
.custom-design:hover { transform: translateY(-2px); color: var(--ink); }
.custom-design b { display: block; font-size: 1rem; }
.custom-design .grow > span { display: block; font-size: .88rem; color: var(--muted); margin-top: 2px; }
.custom-design > .icon { color: var(--faint); }
@media (max-width: 640px){
.custom-design { flex-wrap: wrap; align-items: flex-start; }
.custom-design .grow { flex-basis: calc(100% - 58px); }
}
@media (max-width: 640px){
form:has(:is(input:not([type=checkbox]):not([type=radio]):not([type=file]), textarea { position: static; }
}
html:has([data-menu-bar]) { scroll-padding-top: var(--menu-sticky, 190px); }
@media (max-width: 1000px), (pointer: coarse){
.shell :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]):not([type=submit]):not([type=button]), select, textarea) { font-size: 16px !important; }
}
@media (pointer: coarse){
.shell .check { min-height: 44px; align-items: center; }
.shell .check input { margin-top: 0; }
.shell .tabs a, .shell .tabs button { min-height: 40px; }
.shell .btn:not(.btn-sm) { height: 44px; }
.shell :is([data-image-field], [data-product-form], [data-import-form]) .btn-sm { height: 44px; }
.shell [data-product-form] .btn-icon.btn-sm { width: 44px; }
}
.fold > .fold-head { list-style: none; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 20px; border-radius: var(--r); cursor: pointer; user-select: none; }
.fold > .fold-head::-webkit-details-marker { display: none; }
.fold > .fold-head:focus-visible { outline: none; box-shadow: var(--focus); }
.fold-ic { width: 38px; height: 38px; border-radius: 12px; background: var(--bg); color: var(--gold-1); display: grid; place-items: center; flex-shrink: 0; }
.fold-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.fold-t b { color: var(--ink); font-size: .98rem; letter-spacing: -.01em; }
.fold-sum { font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fold-chev { width: 9px; height: 9px; margin: 0 6px 4px 0; border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint); transform: rotate(45deg); transition: transform .2s var(--ease); flex-shrink: 0; }
.fold[open] > .fold-head { border-bottom: 1px solid var(--line-2); border-radius: var(--r) var(--r) 0 0; }
.fold[open] > .fold-head .fold-chev { transform: rotate(-135deg); margin-bottom: -4px; }
.fold > .fold-head:hover .fold-t b { color: var(--navy-3); }
@media (max-width: 640px){
.fold > .fold-head { gap: 12px; padding: 10px 14px; }
.fold-ic { width: 34px; height: 34px; }
}
.lang-tabs { flex-wrap: wrap; width: auto; border-radius: 18px; }
.lang-tabs button { display: inline-flex; align-items: center; gap: 7px; }
.lang-tabs .tr-dot { width: 7px; height: 7px; border-radius: 50%; background: #c3cad6; }
.lang-tabs .done .tr-dot { background: var(--green); }
.dot.green { color: #16a34a; }
@keyframes bill-in{ from { transform: translateX(30px); opacity: 0; } }
@keyframes bill-up{ from { transform: translateY(24px); opacity: 0; } }
.sidebar .brand { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 18px 16px 10px 22px; }
.nav-close { display: none; width: 40px; height: 40px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .06); color: #fff; place-items: center; cursor: pointer; flex-shrink: 0; }
.nav-close:hover { background: rgba(255, 255, 255, .12); }
.sidebar nav { padding: 2px 12px 10px; }
.sidebar nav a { padding: 7px 12px; }
.sidebar nav a .lbl { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar nav a .ext { width: 13px; height: 13px; opacity: .55; margin-left: -6px; }
.sidebar nav a .tag { margin-left: auto; font-size: .66rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .09); color: var(--on-dark-2); white-space: nowrap; }
.sidebar nav a .tag.warn { background: rgba(236, 194, 95, .16); color: var(--gold-2); }
.sidebar nav a.dim { color: var(--on-dark-3); }
.sidebar nav a.dim .icon { opacity: .6; }
.sidebar nav a:focus-visible, .sidebar summary:focus-visible, .sidebar button:focus-visible { outline: 2px solid var(--gold-2); outline-offset: -2px; }
.sidebar .nav-group.top { margin-top: 2px; }
.sidebar button.nav-label { display: flex; align-items: center; gap: 8px; width: 100%; border: 0; background: none; cursor: pointer; font-family: inherit; text-align: left; padding: 12px 12px 4px; border-radius: 8px; line-height: 1.4; }
.sidebar button.nav-label:hover { color: var(--on-dark-2); }
.sidebar button.nav-label .chev { margin-left: auto; width: 14px; height: 14px; opacity: .65; transition: transform .2s var(--ease); }
.sidebar button.nav-label .count { background: var(--gold-grad); color: var(--navy); border-radius: 999px; font-size: .64rem; font-weight: 800; padding: 0 7px; letter-spacing: 0; }
.nav-group:not(.closed) [data-group-count] { display: none; }
.nav-group.closed .chev { transform: rotate(-90deg); }
.nav-group.closed .nav-items { display: none; }
.sub-mini { margin-bottom: 10px; padding: 10px 12px; }
.sub-mini .xs { color: var(--on-dark-3); margin-top: 3px; }
.sub-mini .cta { color: var(--gold-2); font-weight: 700; margin-top: 5px; }
.sub-mini.on { box-shadow: inset 0 0 0 1px rgba(236, 194, 95, .5); }
.user-menu { position: relative; }
.user-menu > summary { list-style: none; cursor: pointer; padding: 6px 8px; margin: -6px -8px; border-radius: 14px; }
.user-menu > summary::-webkit-details-marker { display: none; }
.user-menu > summary:hover, .user-menu[open] > summary, .user-menu.on > summary { background: rgba(255, 255, 255, .06); }
.user-menu .side-user .who { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.user-menu .side-user > .icon { color: var(--on-dark-3); }
.user-menu .menu { position: absolute; left: -8px; right: -8px; bottom: calc(100% + 10px); background: #0d2645; border-radius: 14px; padding: 6px; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .08); z-index: 5; }
.user-menu .menu a, .user-menu .menu button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 8px 10px; border: 0; border-radius: 10px; background: none; color: var(--on-dark); font: inherit; font-size: .86rem; cursor: pointer; text-align: left; text-decoration: none; }
.user-menu .menu a:hover, .user-menu .menu button:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.user-menu .menu .icon { color: var(--on-dark-3); }
.user-menu .menu .ext { margin-left: auto; width: 13px; height: 13px; }
.user-menu .menu form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid rgba(255, 255, 255, .08); }
.topbar h1 .crumb { color: var(--faint); font-weight: 600; }
.topbar .search-btn { color: var(--muted); gap: 8px; }
.topbar .search-btn kbd { font: 600 .68rem var(--font); padding: 2px 6px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--faint); }
.menu-btn { position: relative; }
.dot-badge { position: absolute; top: 6px; right: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--bg); }
@media (max-width: 1000px){
.sidebar { width: min(300px, 86vw); height: 100vh; height: 100dvh; overscroll-behavior: contain; padding-bottom: env(safe-area-inset-bottom); }
.nav-close { display: grid; }
.sidebar nav a, .sidebar button.nav-label { min-height: 44px; }
.sidebar button.nav-label { padding-top: 10px; }
.topbar h1 .crumb { display: none; }
.topbar .search-btn { width: 40px; height: 40px; padding: 0; }
}
.tabbar { display: none; }
@media (max-width: 640px){
.tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(255, 255, 255, .95); -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabbar a, .tabbar button { min-width: 0; min-height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 6px 2px; border: 0; background: none; font: inherit; font-size: .7rem; font-weight: 600; color: var(--muted); text-decoration: none; cursor: pointer; }
.tabbar .ic { position: relative; display: grid; place-items: center; }
.tabbar .ic .icon { width: 22px; height: 22px; }
.tabbar .active { color: var(--navy); }
.tabbar .active .ic .icon { color: var(--gold-1); }
.tabbar .tl { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabbar .count { position: absolute; top: -7px; left: 13px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: .66rem; font-weight: 800; display: grid; place-items: center; line-height: 1; box-shadow: 0 0 0 2px #fff; }
.shell.has-tabbar .content { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
}
.search-dlg { position: fixed; inset: 0; z-index: 80; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.search-backdrop { position: absolute; inset: 0; background: rgba(2, 14, 29, .45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.search-panel { position: relative; width: min(600px, 100%); max-height: 76vh; display: flex; flex-direction: column; background: #fff; border-radius: 20px; box-shadow: var(--sh-lg); overflow: hidden; }
.search-field { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 18px; border-bottom: 1px solid var(--line-2); }
.search-field > .icon { width: 20px; height: 20px; color: var(--faint); }
.search-field input { flex: 1; min-width: 0; height: 46px; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); }
.search-field input::-webkit-search-cancel-button { display: none; }
.search-results { list-style: none; margin: 0; padding: 6px; overflow-y: auto; }
.search-results a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: var(--ink); text-decoration: none; }
.search-results [aria-selected="true"] a { background: var(--bg); }
@media (max-width: 640px){
.search-dlg { padding: 10px; }
.search-panel { max-height: calc(100dvh - 20px); }
}
@keyframes lp-pulse{ 0% { box-shadow: 0 0 0 0 rgba(236, 194, 95, .7); } 70% { box-shadow: 0 0 0 10px rgba(236, 194, 95, 0); } 100% { box-shadow: 0 0 0 0 rgba(236, 194, 95, 0); } }
.link-btn.xs { font-size: .8rem; }
.link-btn.small { font-size: .875rem; }
.link-btn.muted { color: var(--muted); font-weight: 500; }
.link-btn.muted:hover { color: var(--ink); }
@media (max-width: 640px){
.shell.has-tabbar ~ .toast-wrap { bottom: calc(72px + env(safe-area-inset-bottom)); }
}
.shell, .search-dlg { --faint: #627186; }
@media (max-width: 1000px){
.topbar .actions .btn, .topbar .menu-btn { min-width: 44px; min-height: 44px; }
.topbar .search-btn { width: 44px; height: 44px; }
}
@media (max-width: 640px){
.topbar { gap: 8px; }
.topbar .actions { gap: 4px; }
.topbar h1 { white-space: normal; font-size: 1rem; line-height: 1.2; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow-wrap: break-word; }
}
@media (max-width: 640px), (pointer: coarse){
.shell .btn-sm { height: 44px; }
.shell .btn-icon.btn-sm { width: 44px; }
}
