:root {
  --night: #071225;
  --night-deep: #040b19;
  --panel: rgba(18, 35, 67, .78);
  --panel-soft: rgba(14, 29, 57, .62);
  --ink: #f3eadc;
  --muted: #a6b0c6;
  --muted-strong: #c5cede;
  --gold: #e8b96d;
  --gold-soft: #f0cc8d;
  --line: rgba(195, 208, 236, .16);
  --danger: #f0a39b;
  --shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--night); }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 84% -12%, rgba(66, 93, 160, .35), transparent 34rem),
    radial-gradient(circle at -12% 86%, rgba(29, 58, 111, .25), transparent 30rem),
    var(--night);
  font: 14px/1.65 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft Yahei", sans-serif;
}

button, input, select { font: inherit; }
button { cursor: pointer; }

.shell {
  width: min(1220px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 46px 0 34px;
}

.login-view {
  width: min(460px, 100%);
  margin: 8vh auto 0;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(19, 39, 76, .88), rgba(8, 19, 40, .9));
  box-shadow: var(--shadow);
}

.brand-mark {
  display: block;
  width: 64px;
  height: 64px;
  margin-bottom: 28px;
  border: 1px solid rgba(232, 185, 109, .32);
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 12px 35px rgba(0, 0, 0, .22);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2 { color: var(--gold-soft); font-family: inherit; font-weight: 600; }
h1 { margin-bottom: 12px; font-size: clamp(28px, 4vw, 40px); line-height: 1.2; letter-spacing: -.03em; }
h2 { margin-bottom: 0; font-size: clamp(24px, 3vw, 32px); line-height: 1.25; }
h3 { margin-bottom: 10px; color: var(--gold-soft); font-size: 16px; }

.intro { margin-bottom: 30px; color: var(--muted-strong); }

.login-form { display: grid; gap: 18px; }
.login-form label { display: grid; gap: 8px; color: var(--muted-strong); font-size: 13px; }
.login-form input,
.feedback-actions input,
.feedback-actions select,
.inquiry-actions input,
.inquiry-actions select {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  background: rgba(3, 11, 27, .72);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.login-form input:focus,
.feedback-actions input:focus,
.feedback-actions select:focus,
.inquiry-actions input:focus,
.inquiry-actions select:focus {
  border-color: rgba(232, 185, 109, .72);
  box-shadow: 0 0 0 3px rgba(232, 185, 109, .12);
}

button.primary, button.secondary, button.quiet {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 11px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

button.primary {
  color: #17223a;
  border: 1px solid #efc982;
  background: linear-gradient(135deg, #f2ca83, #b98245);
  font-weight: 700;
}

button.secondary {
  color: var(--gold-soft);
  border: 1px solid rgba(232, 185, 109, .38);
  background: rgba(232, 185, 109, .08);
}

button.quiet {
  color: var(--muted-strong);
  border: 1px solid var(--line);
  background: transparent;
}

button:hover { transform: translateY(-1px); }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(232, 185, 109, .5); outline-offset: 3px; }

.error { margin: 0; color: var(--danger); }
.error-panel { border-color: rgba(240, 163, 155, .34); }

.console-view { padding-bottom: 10px; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 0 28px;
  border-bottom: 1px solid var(--line);
}

.topbar-brand { display: flex; align-items: center; gap: 14px; }
.topbar-mark { width: 46px; height: 46px; border: 1px solid rgba(232, 185, 109, .28); border-radius: 14px; object-fit: cover; }
.topbar h1 { margin: 0; font-size: 29px; }
.operator { display: flex; align-items: center; gap: 14px; color: var(--muted-strong); }

.tabs {
  display: flex;
  gap: 8px;
  margin: 22px 0;
  padding: 6px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(8, 18, 39, .7);
  scrollbar-width: thin;
}

.tab {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 14px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  white-space: nowrap;
}

.tab:hover, .tab.active { color: var(--gold-soft); border-color: rgba(232, 185, 109, .32); background: rgba(232, 185, 109, .1); }

.notice {
  margin: 0 0 18px;
  padding: 12px 14px;
  color: var(--gold-soft);
  border: 1px solid rgba(232, 185, 109, .28);
  border-radius: 12px;
  background: rgba(232, 185, 109, .08);
}

.notice.is-error { color: var(--danger); border-color: rgba(240, 163, 155, .3); background: rgba(130, 47, 47, .16); }
.content { min-height: 380px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin: 24px 0; }
.section-heading .eyebrow { margin-bottom: 6px; }

.metric-grid, .health-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.metric { min-height: 132px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: 0 12px 36px rgba(0, 0, 0, .12); }
.metric span, .metric small { display: block; color: var(--muted); font-size: 12px; }
.metric strong { display: block; margin: 9px 0 6px; color: var(--gold-soft); font: 600 28px/1.1 -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans CJK SC", sans-serif; }
.panel { margin-top: 18px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel-soft); }
.muted { color: var(--muted); }
.loading, .empty { padding: 48px 22px; color: var(--muted); border: 1px dashed var(--line); border-radius: 16px; text-align: center; background: rgba(10, 22, 47, .5); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--panel-soft); }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: var(--gold-soft); font-size: 12px; font-weight: 600; background: rgba(232, 185, 109, .06); }
td { color: var(--muted-strong); font-size: 13px; }
tbody tr:last-child td { border-bottom: 0; }

.feedback-list, .inquiry-list { display: grid; gap: 13px; }
.feedback-card, .inquiry-card { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.feedback-card-head, .inquiry-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.feedback-card strong, .inquiry-card strong { display: block; color: var(--gold-soft); font-size: 15px; }
.feedback-card span, .inquiry-card-head span { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.feedback-card p, .inquiry-card p { margin: 16px 0 10px; color: var(--ink); white-space: pre-wrap; }
.feedback-card small, .inquiry-card small { color: var(--muted); }
.status-pill { padding: 4px 8px; color: var(--gold-soft) !important; border: 1px solid rgba(232, 185, 109, .32); border-radius: 999px; white-space: nowrap; }
.feedback-actions, .inquiry-actions { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.feedback-actions input { flex: 1; }
.feedback-actions select, .inquiry-actions select { width: auto; min-width: 120px; }
.feedback-actions button, .inquiry-actions button { flex: 0 0 auto; }
.license-review { margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(5, 15, 34, .48); }
.license-review > strong, .license-review > span { display: block; }
.license-review > strong { color: var(--gold-soft); font-size: 13px; }
.license-review > span { margin-top: 5px; color: var(--muted); font-size: 11px; }
.license-gallery { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.license-gallery img { width: 132px; height: 94px; border: 1px solid var(--line); border-radius: 10px; object-fit: cover; background: var(--panel-soft); }
.asset-error { color: var(--danger); font-size: 12px; }
.console-footer { padding: 28px 0 8px; color: var(--muted); font-size: 12px; text-align: center; }

@media (max-width: 900px) {
  .metric-grid, .health-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 28px, 560px); padding-top: 22px; }
  .login-view { margin-top: 3vh; padding: 28px 22px; border-radius: 22px; }
  .topbar { align-items: flex-start; flex-direction: column; padding-bottom: 20px; }
  .operator { width: 100%; justify-content: space-between; }
  .tabs { margin: 16px 0; }
  .section-heading { align-items: flex-start; flex-direction: column; margin: 20px 0; }
  .section-heading button { width: 100%; }
  .metric-grid, .health-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .metric { min-height: 116px; padding: 14px; }
  .metric strong { font-size: 23px; }
  .feedback-actions, .inquiry-actions { align-items: stretch; flex-direction: column; }
  .feedback-actions input, .feedback-actions select, .feedback-actions button, .inquiry-actions input, .inquiry-actions select, .inquiry-actions button { width: 100%; }
  .feedback-card-head, .inquiry-card-head { flex-direction: column; gap: 8px; }
}

@media (max-width: 380px) {
  .metric-grid, .health-grid { grid-template-columns: 1fr; }
}

/* 2026-08-08 operations console redesign */
[hidden] { display: none !important; }

.shell {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.login-view {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
  width: min(1080px, calc(100% - 48px));
  min-height: 610px;
  margin: clamp(28px, 7vh, 80px) auto;
  padding: 0;
  overflow: hidden;
  border-radius: 30px;
}

.login-brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 610px;
  padding: 54px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(4, 13, 29, .18), rgba(4, 13, 29, .88)),
    radial-gradient(circle at 77% 24%, rgba(236, 188, 101, .3) 0 3px, transparent 4px),
    radial-gradient(circle at 66% 32%, rgba(236, 188, 101, .2) 0 2px, transparent 3px),
    linear-gradient(145deg, #15365d 0%, #091b35 54%, #050d1d 100%);
}

.login-brand-panel::after {
  position: absolute;
  right: -90px;
  bottom: -160px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(232, 185, 109, .24);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 36px rgba(232, 185, 109, .025), 0 0 0 78px rgba(232, 185, 109, .018);
}

.login-brand-panel > * { position: relative; z-index: 1; }
.login-brand-panel .brand-mark { width: 76px; height: 76px; margin-bottom: auto; border-radius: 22px; }
.login-brand-panel h1 { max-width: 520px; margin: 16px 0 20px; font-size: clamp(40px, 5vw, 64px); line-height: 1.18; }
.login-brand-panel .intro { max-width: 500px; margin-bottom: 26px; font-size: 16px; }
.login-trust { display: flex; flex-wrap: wrap; gap: 10px; }
.login-trust span { padding: 7px 11px; color: var(--muted-strong); border: 1px solid var(--line); border-radius: 999px; background: rgba(7, 18, 37, .44); font-size: 12px; }

.login-form-panel { display: flex; flex-direction: column; justify-content: center; padding: 58px 54px; background: rgba(8, 19, 40, .96); }
.login-form-panel h2 { margin: 0 0 12px; }
.login-help { margin: 0 0 32px; color: var(--muted); }
.login-form input { min-height: 52px; }
.login-form button { min-height: 52px; margin-top: 4px; }
.login-owner { margin: 28px 0 0; color: #6f7e98; font-size: 11px; text-align: center; }

.console-view {
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  min-height: 100vh;
  padding: 0;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 24px 16px 18px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #091a35 0%, #061225 62%, #050e1d 100%);
  scrollbar-color: rgba(232, 185, 109, .28) transparent;
  scrollbar-width: thin;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(232, 185, 109, .24); }

.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 22px; border-bottom: 1px solid var(--line); }
.sidebar-brand img { width: 46px; height: 46px; border: 1px solid rgba(232, 185, 109, .35); border-radius: 14px; object-fit: cover; }
.sidebar-brand strong, .sidebar-brand span { display: block; }
.sidebar-brand strong { color: var(--gold-soft); font: 600 21px/1.2 -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans CJK SC", sans-serif; letter-spacing: .08em; }
.sidebar-brand span { margin-top: 4px; color: var(--muted); font-size: 11px; }

.tabs {
  display: block;
  flex: 1;
  margin: 0;
  padding: 14px 0 20px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.nav-group { margin: 18px 12px 7px; color: #667a96; font-size: 10px; font-weight: 700; letter-spacing: .18em; }
.nav-group:first-child { margin-top: 2px; }
.tab {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 45px;
  margin: 3px 0;
  padding: 0 12px;
  color: #aab6c9;
  border-radius: 11px;
  text-align: left;
}
.tab img { width: 20px; height: 20px; flex: 0 0 20px; object-fit: contain; opacity: .72; }
.tab span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab:hover, .tab.active { border-color: rgba(232, 185, 109, .28); background: linear-gradient(90deg, rgba(232, 185, 109, .14), rgba(232, 185, 109, .035)); }
.tab.active { color: var(--gold-soft); box-shadow: inset 3px 0 0 var(--gold); }
.tab.active img { opacity: 1; }

.sidebar-foot { display: flex; align-items: center; gap: 10px; padding: 14px 12px 2px; border-top: 1px solid var(--line); }
.online-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: #66c99a; box-shadow: 0 0 12px rgba(102, 201, 154, .7); }
.sidebar-foot strong, .sidebar-foot span { display: block; }
.sidebar-foot strong { color: var(--muted-strong); font-size: 12px; }
.sidebar-foot span { color: var(--muted); font-size: 10px; }

.workspace { min-width: 0; padding: 0 clamp(22px, 3.4vw, 54px); }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 92px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  background: rgba(7, 18, 37, .94);
  box-shadow: 0 14px 30px rgba(3, 8, 20, .2);
}
.workspace-title { display: flex; align-items: center; gap: 14px; }
.workspace-title h1 { margin: 0; font-size: 28px; }
.workspace-title .eyebrow { margin-bottom: 4px; }
.menu-button { display: none; min-width: 48px; min-height: 44px; color: var(--gold-soft); border: 1px solid var(--line); border-radius: 11px; background: rgba(15, 34, 65, .8); }
.operator-copy { text-align: right; }
.operator-copy span, .operator-copy small { display: block; }
.operator-copy small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.content { min-height: calc(100vh - 180px); padding-bottom: 30px; }
.section-heading { margin-top: 30px; }
.compact-heading { margin-bottom: 0; }

.metric-grid { grid-template-columns: repeat(4, minmax(150px, 1fr)); }
.metric { position: relative; overflow: hidden; }
.metric::after { position: absolute; right: -24px; bottom: -44px; width: 100px; height: 100px; border: 1px solid rgba(232, 185, 109, .08); border-radius: 50%; content: ""; }
.metric strong { font-size: 31px; }
.panel { box-shadow: 0 12px 36px rgba(0, 0, 0, .1); }
.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.quick-card { min-height: 116px; padding: 17px; color: var(--ink); border: 1px solid var(--line); border-radius: 15px; background: var(--panel-soft); text-align: left; }
.quick-card span, .quick-card strong, .quick-card small { display: block; }
.quick-card span { color: var(--muted); font-size: 11px; }
.quick-card strong { margin-top: 10px; color: var(--gold-soft); font-size: 22px; }
.quick-card small { margin-top: 8px; color: var(--muted-strong); }

.sidebar-scrim { position: fixed; inset: 0; z-index: 39; border: 0; background: rgba(2, 7, 17, .66); }

@media (max-width: 1180px) {
  .metric-grid { grid-template-columns: repeat(3, minmax(150px, 1fr)); }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .login-view { grid-template-columns: 1fr 1fr; width: calc(100% - 32px); }
  .login-brand-panel, .login-form-panel { padding: 38px; }
  .console-view { display: block; }
  .sidebar { position: fixed; top: 0; bottom: 0; left: 0; z-index: 40; width: min(310px, 86vw); transform: translateX(-104%); transition: transform .24s ease; box-shadow: 24px 0 60px rgba(0, 0, 0, .4); }
  body.sidebar-open .sidebar { transform: translateX(0); }
  .workspace { padding: 0 22px; }
  .menu-button { display: block; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .login-view { display: block; width: calc(100% - 24px); min-height: 0; margin: 12px auto; }
  .login-brand-panel { min-height: 285px; padding: 28px 24px; }
  .login-brand-panel .brand-mark { width: 58px; height: 58px; margin-bottom: 48px; }
  .login-brand-panel h1 { margin: 10px 0 14px; font-size: 36px; }
  .login-brand-panel .intro { margin-bottom: 0; font-size: 14px; }
  .login-trust { display: none; }
  .login-form-panel { padding: 30px 24px 26px; }
  .login-help { margin-bottom: 24px; }
  .workspace { padding: 0 14px; }
  .topbar { min-height: 78px; padding: 12px 0; }
  .workspace-title h1 { font-size: 21px; }
  .workspace-title { flex: 1; min-width: 0; }
  .workspace-title h1 { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .workspace-title .eyebrow { display: none; }
  .operator { width: auto; flex: 0 0 auto; gap: 8px; }
  .operator-copy { display: none; }
  .operator .quiet { min-height: 42px; padding: 0 11px; }
  .section-heading h2 { font-size: 27px; }
  .metric-grid, .health-grid { grid-template-columns: 1fr 1fr; }
  .quick-grid { grid-template-columns: 1fr; }
  .metric { min-height: 108px; }
  .table-wrap { margin: 0 -2px; }
}

@media (max-width: 390px) {
  .metric-grid, .health-grid { grid-template-columns: 1fr; }
}
