:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  color: #20211f;
  background: #f8f7f3;
  --ink: #20211f;
  --paper: #f8f7f3;
  --accent: #906400;
  --accent-soft: #fbf1d6;
  --navy: #20211f;
  --navy-soft: #2b2e28;
  --blue: #20211f;
  --blue-soft: #fbf1d6;
  --gold: #e8b94f;
  --border: #e6e5de;
  --muted: #646760;
  --surface: #fff;
  --danger: #b83232;
  --success: #18834c;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --shadow: 0 12px 34px rgba(32, 33, 31, .06);
}

* { box-sizing: border-box; }
html, body, #app { min-height: 100%; margin: 0; }
body { background: var(--paper); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: not-allowed; }
.hidden { display: none !important; }
.muted, p { color: var(--muted); }
.eyebrow { margin: 0 0 7px; color: var(--accent); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
h1, h2, h3, h4, p { margin-top: 0; }

.center-shell { min-height: 100vh; display: grid; place-items: center; padding: 26px; background: radial-gradient(ellipse at 50% 0%, var(--accent-soft) 0, var(--paper) 58%); }
.auth-card { width: min(448px, 100%); padding: 34px; border: 1px solid var(--border); border-radius: 22px; background: #fff; box-shadow: 0 24px 72px rgba(11, 20, 38, .12); }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); font-size: 19px; font-weight: 950; letter-spacing: .05em; }
.brand img { width: 44px; height: 44px; border-radius: 13px; object-fit: cover; }
.auth-card .eyebrow { margin-top: 24px; color: var(--accent); }
.auth-card h1 { margin: 8px 0 10px; font-size: 30px; letter-spacing: -.04em; }
.auth-card > p { font-size: 13px; line-height: 1.65; }
label { display: grid; gap: 7px; margin: 15px 0; color: #55594f; font-size: 12px; font-weight: 800; }
input, textarea, .search { width: 100%; min-height: 43px; padding: 11px 13px; border: 1px solid #cccfc5; border-radius: 10px; background: #fff; color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 116px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
button { border: 0; }
.primary, .secondary, .danger { min-height: 41px; padding: 0 15px; border-radius: 10px; font-size: 12px; font-weight: 850; transition: background .15s, transform .15s, box-shadow .15s; }
.primary { background: var(--ink); color: #fff; box-shadow: 0 3px 8px rgba(32,33,31,.07); }
.primary:hover { background: #363832; transform: translateY(-1px); }
.secondary { border: 1px solid var(--border); background: #fff; color: #55594f; }
.secondary:hover { background: var(--paper); border-color: #d7d9d0; }
.danger { background: var(--danger); color: #fff; }
#loginButton, #googleLoginButton { width: 100%; margin-top: 10px; }
.auth-google { min-height: 46px; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 15px 0; color: var(--muted); font-size: 11px; font-weight: 800; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--border); }
.error { margin-top: 14px; padding: 11px 13px; border: 1px solid #f2c8c8; border-radius: 10px; background: #fff2f2; color: #962d2d; font-size: 12px; }
.queue-error { padding: 14px 16px; border: 1px solid #f2c8c8; border-radius: 12px; background: #fff2f2; color: #962d2d; overflow-wrap: anywhere; }

.console { min-height: 100vh; display: flex; }
.sidebar { width: 258px; min-height: 100vh; position: fixed; inset: 0 auto 0 0; z-index: 20; display: flex; flex-direction: column; padding: 22px 17px; background: var(--ink); color: #fff; box-shadow: 10px 0 34px #0b142619; }
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 3px 4px 20px; border-bottom: 1px solid #ffffff15; }
.sidebar-brand strong, .sidebar-brand span { display: block; }
.sidebar-brand strong { font-size: 17px; letter-spacing: .08em; }
.sidebar-brand span { margin-top: 4px; color: #8d9ab0; font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.brand-mark { width: 44px; height: 44px; border: 1px solid #ffffff20; border-radius: 14px; object-fit: cover; box-shadow: 0 9px 22px #0004; }
nav { display: grid; gap: 5px; margin-top: 24px; }
.nav-label { margin: 0 10px 5px; color: #718099; font-size: 9px; font-weight: 900; letter-spacing: .13em; }
.nav-button { display: flex; align-items: center; gap: 11px; min-height: 43px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: #aebbd0; text-align: left; font-size: 12px; font-weight: 750; transition: .16s; }
.nav-button:hover { background: #ffffff0e; color: #fff; }
.nav-button.active { background: var(--accent-soft); color: var(--ink); box-shadow: none; }
.nav-icon { width: 18px; color: #cfdaeb; font-size: 17px; text-align: center; }
.sidebar-bottom { display: grid; gap: 13px; margin-top: auto; padding-top: 16px; border-top: 1px solid #ffffff15; }
.identity-card { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px; border: 1px solid #ffffff10; border-radius: 11px; background: #ffffff08; }
.identity-card > div { min-width: 0; }
.identity-card strong, .identity-card span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.identity-card strong { color: #dce5f1; font-size: 11px; }
.identity-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 99px; background: #44c884; box-shadow: 0 0 0 4px #44c88420; }
.admin-identity { margin-top: 4px; color: #8997ae; font-size: 10px; }
.sidebar-bottom .secondary { width: 100%; border-color: #ffffff18; background: #ffffff08; color: #bdc8da; }
.sidebar-bottom .secondary:hover { background: #ffffff13; color: #fff; }

.main { width: calc(100% - 258px); min-width: 0; min-height: 100vh; margin-left: 258px; padding: 25px 32px 48px; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 68px; margin: -25px -32px 25px; padding: 15px 32px; border-bottom: 1px solid var(--border); background: rgba(248,247,243,.94); backdrop-filter: blur(14px); }
.topbar .eyebrow { margin-bottom: 4px; }
.topbar h2 { margin: 0; color: var(--ink); font-size: 23px; letter-spacing: -.03em; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--muted); font-size: 10px; font-weight: 750; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 99px; background: #27a867; box-shadow: 0 0 0 4px #27a8671b; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 17px; }
.stat, .panel { border: 1px solid var(--border); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow); }
.stat { min-height: 127px; padding: 17px 18px; }
.stat span { color: var(--muted); font-size: 11px; font-weight: 800; }
.stat strong { display: block; margin-top: 8px; color: var(--ink); font-size: 28px; letter-spacing: -.04em; }
.stat small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.panel { padding: 21px; }
.panel h3 { margin: 0 0 6px; color: var(--ink); font-size: 16px; letter-spacing: -.02em; }
.panel > p, .panel-head p { margin: 0; font-size: 11px; line-height: 1.55; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.panel-head h3 { margin-bottom: 4px; }
.panel-head .eyebrow { margin-bottom: 5px; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 17px; }
.check-row { display: flex; align-items: center; gap: 10px; min-height: 59px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 11px; background: var(--paper); }
.check-mark { display: grid; width: 23px; height: 23px; flex: 0 0 auto; place-items: center; border-radius: 99px; background: #edf0f4; color: #7b8798; font-size: 12px; font-weight: 900; }
.check-row strong, .check-row small { display: block; }
.check-row strong { color: #55594f; font-size: 10px; }
.check-row small { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.4; }
.check-row.is-ready { border-color: #caead8; background: #f5fcf8; }
.check-row.is-ready .check-mark { background: #e0f5e9; color: #17834c; }
.check-row.is-error { border-color: #f1d1d1; background: #fff8f8; }
.check-row.is-error .check-mark { background: #fde8e8; color: #ae3535; }
.view > .panel { margin-top: 0; }
.view .panel h4 { margin: 20px 0 10px; color: #55594f; font-size: 12px; }
.grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-two .panel { padding: 22px; }
.grid-two .eyebrow { margin: 0 0 6px; }
.grid-two h3 { margin-bottom: 6px; }
.search { margin: 14px 0 16px; }
.table-wrap { overflow: auto; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
table { width: 100%; min-width: 850px; border-collapse: collapse; }
th, td { padding: 12px 13px; border-bottom: 1px solid var(--border); text-align: left; font-size: 11px; }
th { position: sticky; top: 0; background: var(--paper); color: var(--muted); font-size: 9px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
.user-main { color: var(--ink); font-weight: 850; }
.user-sub { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.actions-inline { display: flex; flex-wrap: wrap; gap: 6px; }
.mini { min-height: 31px; padding: 0 9px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: #55594f; font-size: 9px; font-weight: 850; }
.mini:hover { background: var(--paper); border-color: #d7d9d0; }
.mini.warn { border-color: #f0dfb0; color: #8d680e; background: #fffaf0; }
.mini.red { border-color: #f0cccc; color: #a73737; background: #fff8f8; }
.cards { display: grid; gap: 9px; }
.review-card { padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--paper); }
.review-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.review-title { color: var(--ink); font-size: 11px; font-weight: 900; }
.review-meta { margin-top: 5px; color: var(--muted); font-size: 9px; overflow-wrap: anywhere; }
.review-card p { max-width: 800px; margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.section-gap { margin-top: 23px !important; padding-top: 17px; border-top: 1px solid var(--border); }
.toast { position: fixed; top: 16px; right: 18px; z-index: 60; width: min(430px, calc(100vw - 36px)); padding: 12px 15px; border: 1px solid var(--border); border-radius: 12px; background: #fff; color: #55594f; font-size: 11px; font-weight: 750; box-shadow: 0 14px 38px #1720331d; }
.toast.toast-error { border-color: #efcaca; background: #fff7f7; color: #953535; }
dialog { width: min(500px, calc(100% - 30px)); padding: 22px; border: 1px solid var(--border); border-radius: 16px; background: #fff; color: var(--ink); box-shadow: 0 25px 90px #10192c45; }
dialog::backdrop { background: #0b14268c; backdrop-filter: blur(2px); }
dialog h3 { margin-bottom: 8px; font-size: 17px; }
dialog > form > p { font-size: 12px; line-height: 1.55; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }
.load-more { width: 100%; margin-top: 12px; }

@media (max-width: 980px) {
  .sidebar { width: 218px; }
  .main { width: calc(100% - 218px); margin-left: 218px; padding-right: 21px; padding-left: 21px; }
  .topbar { margin-right: -21px; margin-left: -21px; padding-right: 21px; padding-left: 21px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .console { display: block; }
  .sidebar { position: relative; width: 100%; min-height: auto; padding: 13px 14px 12px; }
  .sidebar-brand { padding: 0 3px 11px; }
  .brand-mark { width: 38px; height: 38px; }
  nav { display: flex; overflow-x: auto; gap: 5px; margin-top: 11px; padding-bottom: 2px; }
  .nav-label { display: none; }
  .nav-button { flex: 0 0 auto; min-height: 38px; padding: 0 10px; font-size: 10px; }
  .nav-icon { display: none; }
  .sidebar-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; padding-top: 9px; }
  .identity-card { flex: 1; max-width: 70%; padding: 7px 9px; }
  .sidebar-bottom .secondary { width: auto; min-height: 34px; }
  .main { width: 100%; margin: 0; padding: 18px 14px 38px; }
  .topbar { position: static; min-height: auto; margin: -18px -14px 17px; padding: 13px 14px; }
  .topbar h2 { font-size: 19px; }
  .status-pill { padding: 7px 9px; font-size: 9px; }
  .stats-grid { gap: 9px; }
  .stat { min-height: 105px; padding: 13px; }
  .stat strong { font-size: 24px; }
  .stat small { font-size: 9px; }
  .panel { padding: 16px; }
  .panel-head { align-items: flex-start; }
  .panel-head .secondary { flex: 0 0 auto; padding: 0 10px; }
  .check-list { grid-template-columns: 1fr; gap: 7px; }
  .grid-two { grid-template-columns: 1fr; gap: 11px; }
}
@media (max-width: 420px) {
  .status-pill { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat { min-height: 100px; }
  .review-card-head { display: grid; }
  .auth-card { padding: 25px 20px; }
}

/* DOS product identity: common surfaces, actions and keyboard visibility. */
body { -webkit-font-smoothing: antialiased; font-size: 14px; line-height: 1.55; }
.checkbox-label { display:flex; align-items:center; flex-direction:row; gap:10px; }
.checkbox-label input { width:20px; height:20px; min-height:20px; accent-color:var(--accent); }
.sidebar { overflow-y:auto; }
.detail-dialog { width:min(760px,calc(100% - 30px)); max-height:88dvh; overflow:auto; }
.detail-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.detail-list div { padding:12px; background:var(--paper); border-radius:12px; overflow-wrap:anywhere; }
.detail-list dt { font-size:12px; color:var(--muted); }
.detail-list dd { margin:4px 0 0; font-weight:600; }
.growth-chart { display:flex; gap:8px; overflow:auto; padding:20px 0; }
.growth-day { min-width:38px; flex:1; text-align:center; font-size:12px; }
.growth-track { height:140px; display:flex; align-items:flex-end; margin:8px auto; width:75%; background:var(--paper); border-radius:8px; overflow:hidden; }
.growth-bar { width:100%; background:var(--accent); border-radius:8px 8px 0 0; }
#dialogText { white-space:pre-wrap; overflow-wrap:anywhere; }
#releaseContent { display:grid; gap:12px; }
@media(max-width:520px){.detail-list{grid-template-columns:1fr}.growth-day{min-width:36px}}
button, input, textarea, select { font: inherit; touch-action: manipulation; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sidebar button:focus-visible { outline-color: var(--gold); }
button:disabled { transform: none; box-shadow: none; }
.center-shell { background: radial-gradient(ellipse at 50% 0%,var(--accent-soft),var(--paper) 64%); }
.auth-card { padding: 36px; border-radius: var(--radius-lg); box-shadow: 0 24px 64px rgba(32,33,31,.09); }
.brand { font-size: 24px; letter-spacing: -.04em; font-weight: 800; }
.brand img { border-radius: var(--radius-sm); }
.auth-card h1 { font-size: 32px; font-weight: 750; }
.auth-card > p { font-size: 14px; line-height: 1.7; }
.eyebrow { color: var(--accent); font-size: 11px; font-weight: 750; }
label { color: var(--ink); font-size: 13px; font-weight: 650; gap: 8px; }
input, textarea, .search { min-height: 48px; border-radius: var(--radius-sm); font-size: 15px; }
input:hover, textarea:hover { border-color: #9da38f; }
.primary, .secondary, .danger { min-height: 46px; padding: 10px 16px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 650; }
.primary:active, .secondary:active, .danger:active { transform: translateY(0); }
.auth-google { min-height: 48px; }
#loginButton { min-height: 50px; }
.auth-divider { font-size: 12px; }
.error { font-size: 13px; border-radius: var(--radius-sm); }
.sidebar { box-shadow: 10px 0 34px rgba(32,33,31,.07); }
.sidebar-brand strong { font-size: 21px; letter-spacing: -.03em; }
.sidebar-brand span, .nav-label { color: #c1c5b9; font-size: 10px; }
.nav-button { min-height: 46px; font-size: 13px; font-weight: 600; border-radius: var(--radius-sm); color: #d3d6cc; }
.nav-button.active .nav-icon { color: var(--accent); }
.nav-icon { color: #d3d6cc; }
.identity-card strong { color: #f1f2ec; font-size: 12px; }
.admin-identity, .sidebar-bottom .secondary { color: #c3c7bc; }
.admin-identity { font-size: 11px; }
.identity-card { border-radius: var(--radius-sm); }
.topbar h2 { color: var(--ink); }
.status-pill { font-size: 11px; }
.stat, .panel { border-radius: var(--radius-md); }
.stat { padding: 19px 20px; }
.stat span { font-size: 12px; font-weight: 650; }
.stat strong { font-size: 30px; }
.stat small { font-size: 11px; line-height: 1.5; }
.panel h3 { font-size: 18px; }
.panel > p, .panel-head p { font-size: 13px; line-height: 1.7; }
.check-row { border-radius: var(--radius-sm); min-height: 66px; }
.check-row strong { font-size: 12px; font-weight: 650; }
.check-row small { font-size: 11px; line-height: 1.5; }
.view .panel h4 { font-size: 14px; }
th, td { font-size: 12px; line-height: 1.55; padding: 14px; }
th { font-size: 11px; font-weight: 700; }
.user-sub, .review-meta { font-size: 11px; }
.mini { min-height: 38px; padding: 8px 11px; font-size: 11px; border-radius: 9px; }
.review-card { border-radius: var(--radius-sm); padding: 18px; }
.review-title { font-size: 14px; font-weight: 700; }
.review-card p { font-size: 13px; line-height: 1.7; }
.toast { border-radius: var(--radius-sm); font-size: 13px; font-weight: 600; }
dialog { border-radius: var(--radius-lg); padding: 26px; color: var(--ink); box-shadow: 0 25px 80px rgba(32,33,31,.2); }
dialog::backdrop { background: rgba(32,33,31,.55); }
dialog h3 { font-size: 21px; }
dialog > form > p { font-size: 14px; line-height: 1.7; }
@media (max-width:700px) {
  input, textarea, .search { font-size: 16px; }
  .nav-button { min-height: 44px; font-size: 12px; padding-inline: 13px; }
  .sidebar-bottom .secondary { min-height: 44px; }
  .stat { padding: 16px; }
  .stat small { font-size: 11px; }
  .panel-head { flex-wrap: wrap; gap: 14px; }
  .mini { min-height: 44px; }
  .status-pill { font-size: 10px; }
  .dialog-actions { flex-wrap: wrap; }
  .dialog-actions button { flex: 1; }
}
@media (max-width:420px) {
  .center-shell { padding: 20px; }
  .auth-card { padding: 28px 22px; }
  .stats-grid { gap: 10px; }
  .stat { padding: 14px; }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .primary:hover { transform: none; }
}
select { min-height:48px; padding:10px 12px; border:1px solid var(--border); border-radius:12px; background:var(--card,#fff); color:var(--ink); width:100%; }
