@charset "UTF-8";
@font-face {
  font-family: "Arcowo Sans";
  src: url("/user/assets/fonts/NotoSansCJKsc-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Arcowo Sans";
  src: url("/user/assets/fonts/NotoSansCJKsc-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
:root {
  --bg: #f4f5f8;
  --surface: #ffffff;
  --surface-soft: #f8f9fb;
  --text: #252936;
  --muted: #737b8b;
  --border: #e8eaef;
  --accent: #eb805e;
  --accent-strong: #df6c48;
  --accent-soft: #fff0ea;
  --blue: #6484bc;
  --green: #39a981;
  --red: #db6872;
  --shadow: 0 16px 50px rgba(28, 34, 48, 0.08);
  --radius: 18px;
  font-family: "Arcowo Sans", Inter, "Noto Sans CJK SC", "Noto Sans CJK SC Regular",
    "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei",
    "WenQuanYi Micro Hei", "Droid Sans Fallback", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #171a22;
  --surface: #212530;
  --surface-soft: #282d39;
  --text: #ecedf2;
  --muted: #969eac;
  --border: #343a47;
  --accent-soft: #3d2d29;
  --shadow: 0 16px 50px rgba(0, 0, 0, 0.25);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.mono { font-family: "SFMono-Regular", Consolas, monospace; }
.muted-cell { color: var(--muted); }
.numeric { text-align: right; font-variant-numeric: tabular-nums; }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(20, 25, 40, 0.02);
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.badge.blue { color: var(--blue); background: color-mix(in srgb, var(--blue) 12%, transparent); border-color: transparent; }
.badge.success { color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent); border-color: transparent; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 28%, transparent);
}
.button.primary:hover { transform: translateY(-1px); }
.button:disabled { opacity: 0.6; cursor: wait; transform: none; }
.icon-button {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
  color: var(--muted);
}
.icon-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-button:hover { color: var(--text); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.field > span { font-size: 13px; font-weight: 600; }
.field input,
.field select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
  background: var(--surface);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus,
.field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 14%, transparent); }
.banner-picker { display: flex; flex-direction: column; gap: 10px; }
.banner-preview {
  display: grid;
  place-items: center;
  min-height: 74px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
}
.banner-preview img { display: block; width: 100%; height: auto; max-height: 110px; object-fit: cover; }
.banner-preview span { padding: 16px; color: var(--muted); font-size: 12px; text-align: center; }
.banner-picker .button { align-self: flex-start; }
.banner-modal {
  position: fixed;
  inset: 0;
  z-index: 82;
  display: grid;
  place-items: center;
  padding: 24px;
}
.banner-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 15, 0.72);
  backdrop-filter: blur(8px);
}
.banner-dialog {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.banner-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--border);
}
.banner-dialog-head h2 { margin: 3px 0 4px; font-size: 20px; letter-spacing: -0.4px; }
.banner-dialog-head p { margin: 0; color: var(--muted); font-size: 12px; }
.banner-dialog-body {
  flex: 1;
  overflow: auto;
  padding: 18px 22px;
  background: var(--bg);
  scrollbar-width: thin;
}
.banner-modal-preview {
  display: grid;
  place-items: center;
  min-height: 86px;
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
}
.banner-modal-preview img { display: block; width: 100%; max-height: 150px; object-fit: contain; }
.banner-modal-preview span { padding: 20px; color: var(--muted); font-size: 12px; text-align: center; }
.banner-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.banner-filter {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 13px;
  color: var(--muted);
  background: var(--surface);
  font-size: 12px;
}
.banner-filter:hover { color: var(--text); }
.banner-filter.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}
.banner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.banner-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 6px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
}
.banner-tile:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.banner-tile.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}
.banner-tile-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 564 / 74;
  border-radius: 7px;
  background: var(--surface-soft);
}
.banner-tile-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.banner-tile-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, var(--surface-soft), var(--accent-soft));
}
.banner-tile-label {
  overflow: hidden;
  padding: 0 3px 2px;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.banner-grid-empty {
  grid-column: 1 / -1;
  padding: 32px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.banner-dialog-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 22px;
  border-top: 1px solid var(--border);
}
.field.wide { grid-column: 1/-1; }
.field-hint { color: var(--muted); font-size: 11px; line-height: 1.5; }
.inline-error {
  padding: 11px 13px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--red) 10%, transparent);
  color: var(--red);
  font-size: 12px;
  margin-bottom: 14px;
}
.login-screen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 28px;
  background:
    radial-gradient(circle at 18% 16%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 34%),
    radial-gradient(circle at 84% 74%, color-mix(in srgb, var(--blue) 14%, transparent), transparent 38%),
    var(--bg);
}
.login-orbit { position: absolute; inset: 0; pointer-events: none; }
.login-orbit span {
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent);
  border-radius: 50%;
  animation: orbit 18s linear infinite;
}
.login-orbit span:nth-child(1) { width: 420px; height: 420px; left: 6%; top: 10%; }
.login-orbit span:nth-child(2) { width: 260px; height: 260px; right: 10%; bottom: 8%; animation-duration: 24s; }
.login-orbit span:nth-child(3) { width: 120px; height: 120px; right: 18%; top: 12%; animation-duration: 12s; }
@keyframes orbit { to { transform: rotate(360deg) translateY(12px); } }
.login-card {
  position: relative;
  width: min(430px, 100%);
  padding: 38px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  background: linear-gradient(135deg, #f4936f, var(--accent-strong));
  box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 30%, transparent);
}
.brand strong { display: block; font-size: 19px; letter-spacing: -0.4px; }
.brand small { display: block; color: var(--muted); font-size: 9px; letter-spacing: 0.16em; }
.login-card .eyebrow { display: block; margin-top: 34px; }
.login-card h1 { font-size: 28px; line-height: 1.25; margin: 8px 0 10px; letter-spacing: -0.8px; }
.login-card .intro { margin: 0 0 26px; color: var(--muted); font-size: 13px; }
.login-form .button { width: 100%; margin-top: 4px; }
.login-note { margin: 22px 0 0; color: var(--muted); font-size: 11px; text-align: center; }
.login-footer {
  position: relative;
  display: flex;
  gap: 14px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}
.app-screen { min-height: 100dvh; display: flex; flex-direction: column; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px max(22px, calc((100vw - 1180px) / 2));
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}
.brand.small .brand-mark { width: 34px; height: 34px; border-radius: 10px; font-size: 16px; }
.brand.small strong { font-size: 15px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.topbar-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; }
.workspace { width: min(1180px, 100%); margin: 0 auto; padding: 28px 22px 40px; flex: 1; }
.hero {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px;
  margin-bottom: 18px;
  background:
    radial-gradient(circle at 90% 20%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 40%),
    var(--surface);
}
.hero-avatar {
  width: 74px;
  height: 74px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 24px;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--border));
}
.hero-main { flex: 1; min-width: 0; }
.hero-main h1 { margin: 3px 0 2px; font-size: 26px; letter-spacing: -0.7px; }
.hero-main p { margin: 0; color: var(--muted); font-size: 12px; }
.hero-ptt { text-align: right; }
.hero-ptt strong { display: block; font-size: 34px; letter-spacing: -1px; line-height: 1.1; }
.hero-ptt span { color: var(--muted); font-size: 11px; }
.stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { padding: 16px 17px; }
.stat span { display: block; color: var(--muted); font-size: 11px; }
.stat strong { display: block; margin-top: 4px; font-size: 22px; letter-spacing: -0.5px; }
.stat small { color: var(--muted); font-size: 9px; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 18px; margin-bottom: 18px; }
.chart-card { padding: 20px; min-height: 260px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.card-head h2 { margin: 0; font-size: 15px; }
.card-head p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.rating-chart { width: 100%; height: 270px; }
.table-scroll { overflow: auto; scrollbar-width: thin; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table th { padding: 9px 10px; color: var(--muted); font-size: 10px; font-weight: 600; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.data-table td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table td strong { display: block; font-size: 12px; font-weight: 600; }
.data-table td small { display: block; color: var(--muted); font-size: 9px; }
.data-table .numeric { font-variant-numeric: tabular-nums; }
.settings-card { padding: 20px; }
.settings-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.settings-form .button { margin-top: 2px; }
.loading-card { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 80px 20px; color: var(--muted); }
.spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--border); border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { padding: 38px 20px; text-align: center; color: var(--muted); }
.empty-state strong { display: block; color: var(--text); font-size: 14px; margin-bottom: 4px; }
.empty-state p { margin: 0; font-size: 12px; }
.app-footer {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 16px max(22px, calc((100vw - 1180px) / 2));
  color: var(--muted); font-size: 10px; border-top: 1px solid var(--border);
}
.toast-stack { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; gap: 8px; }
.toast {
  padding: 11px 15px; border-radius: 11px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow); font-size: 12px; animation: toast-in 0.2s ease-out;
}
.toast.error { color: var(--red); border-color: color-mix(in srgb, var(--red) 30%, var(--border)); }
@keyframes toast-in { from { opacity: 0; transform: translateY(6px); } }
.poster-cta {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 26px;
  margin-bottom: 18px;
  background:
    radial-gradient(circle at 88% 20%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 42%),
    var(--surface);
}
.poster-cta-mark {
  width: 74px;
  height: 74px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--border));
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.poster-cta-copy { flex: 1; min-width: 0; }
.poster-cta-copy h2 { margin: 3px 0 3px; font-size: 18px; letter-spacing: -0.4px; }
.poster-cta-copy p { margin: 0; color: var(--muted); font-size: 12px; }
.poster-cta .button { flex: none; }
.button.ghost {
  color: var(--text);
  background: var(--surface-soft);
  border-color: var(--border);
}
.button.ghost:hover { border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
body.modal-open { overflow: hidden; }
.poster-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
}
.poster-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 10, 15, 0.72);
  backdrop-filter: blur(8px);
}
.poster-dialog {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.poster-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.poster-dialog-copy { min-width: 0; }
.poster-dialog-copy h2 { margin: 3px 0 4px; font-size: 20px; letter-spacing: -0.4px; }
.poster-dialog-copy p { margin: 0; color: var(--muted); font-size: 12px; }
.poster-dialog-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.poster-stage {
  flex: 1;
  overflow: auto;
  padding: 22px;
  background: var(--bg);
  scrollbar-width: thin;
}
.poster-canvas {
  display: block;
  width: 100%;
  max-width: 920px;
  height: auto;
  margin: 0 auto;
  border-radius: 16px;
  background: #0d1017;
  box-shadow: 0 24px 60px rgba(10, 14, 24, 0.28);
}
.poster-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 80px 20px;
  color: var(--muted);
}
.poster-loading p { margin: 0; font-size: 12px; }
.poster-error {
  max-width: 520px;
  margin: 40px auto;
  padding: 22px;
  border: 1px solid color-mix(in srgb, var(--red) 28%, var(--border));
  border-radius: 16px;
  background: color-mix(in srgb, var(--red) 7%, transparent);
  text-align: center;
}
.poster-error p { margin: 0 0 14px; color: var(--red); font-size: 13px; }
@media (max-width: 1000px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .login-card { padding: 28px 22px; }
  .login-card h1 { font-size: 24px; }
  .workspace { padding: 18px 14px 30px; }
  .hero { flex-wrap: wrap; padding: 20px; }
  .hero-avatar { width: 58px; height: 58px; font-size: 19px; }
  .hero-main h1 { font-size: 22px; }
  .hero-ptt { width: 100%; text-align: left; border-top: 1px solid var(--border); padding-top: 12px; }
  .hero-ptt strong { font-size: 28px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .settings-form .form-grid { grid-template-columns: 1fr; }
  .topbar-name { display: none; }
  .toast-stack { left: 14px; right: 14px; bottom: 14px; }
  .poster-cta { flex-wrap: wrap; padding: 20px; gap: 14px; }
  .poster-cta-mark { width: 56px; height: 56px; border-radius: 17px; font-size: 16px; }
  .poster-cta-copy { flex-basis: calc(100% - 70px); }
  .poster-cta .button { width: 100%; }
  .poster-modal { padding: 0; }
  .poster-dialog {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }
  .poster-dialog-head { padding: 14px 16px; gap: 10px; }
  .poster-dialog-copy h2 { font-size: 18px; }
  .poster-dialog-actions .button { padding: 9px 12px; font-size: 12px; }
  .poster-stage { padding: 10px; }
  .poster-canvas { border-radius: 10px; }
  .banner-modal { padding: 0; }
  .banner-dialog {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border: 0;
    border-radius: 0;
  }
  .banner-dialog-head { padding: 14px 16px; }
  .banner-dialog-body { padding: 12px; }
  .banner-dialog-foot { padding: 12px 16px; }
  .banner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; }
}
