:root {
  --brand: #ff6a1a;
  --brand-soft: #fff2ea;
  --ink: #1b1d21;
  --ink-2: #5b6068;
  --ink-3: #8d939c;
  --line: #e8eaee;
  --bg: #f6f7f9;
  --card: #fff;
  --ok: #17994f;
  --warn: #c98600;
  --err: #d93a3a;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06);
}

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#app { display: flex; min-height: 100vh; max-width: 100vw; }

/* ---------- 侧栏 ---------- */
.sidebar {
  width: 224px;
  flex: 0 0 224px;
  background: var(--card);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 18px 12px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 18px; }

.logo {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--brand); color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 18px;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { letter-spacing: .08em; font-size: 13px; }
.brand-text span { color: var(--ink-3); font-size: 12px; }

#nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }

.nav-group {
  color: var(--ink-3); font-size: 11px; letter-spacing: .08em;
  padding: 14px 10px 6px;
}

.nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px; border-radius: 9px;
  color: var(--ink-2); cursor: pointer; border: 0;
  background: none; font-size: 13.5px; text-align: left; width: 100%;
  font-family: inherit;
}
.nav-item:hover { background: #f4f5f7; color: var(--ink); }
.nav-item.active { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.nav-item .badge { margin-left: auto; }

.budget {
  margin-top: 12px; padding: 10px; border-radius: 10px;
  background: #fafafa; border: 1px solid var(--line);
  font-size: 12px; color: var(--ink-2); line-height: 1.7;
}
.budget b { color: var(--ink); }

/* ---------- 主区 ---------- */
.main { flex: 1; min-width: 0; max-width: 100%; display: flex; flex-direction: column; }

.topbar {
  height: 60px; padding: 0 22px;
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.86); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.topbar h1 { font-size: 16px; margin: 0; font-weight: 650; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.content { padding: 22px; max-width: 1220px; width: 100%; min-width: 0; }

/* ---------- 通用元件 ---------- */
.btn {
  font-family: inherit; font-size: 13px; padding: 7px 13px;
  border-radius: 8px; border: 1px solid var(--line);
  background: #fff; color: var(--ink); cursor: pointer;
  transition: .15s;
}
.btn:hover { border-color: #d3d7de; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.btn.primary:hover { filter: brightness(1.05); }
.btn.ghost { background: #fff; }
.btn.danger { color: var(--err); }
.btn.sm { padding: 4px 9px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.pill {
  font-size: 11.5px; padding: 3px 9px; border-radius: 99px;
  background: #f1f2f4; color: var(--ink-2);
}
.badge { font-size: 11px; padding: 2px 7px; border-radius: 99px; background: #f1f2f4; color: var(--ink-2); }
.tag { font-size: 11px; padding: 2px 7px; border-radius: 6px; background: #f1f2f4; color: var(--ink-2); }
.tag.ok { background: #e8f7ee; color: var(--ok); }
.tag.warn { background: #fdf4e0; color: var(--warn); }
.tag.err { background: #fdecec; color: var(--err); }
.tag.brand { background: var(--brand-soft); color: var(--brand); }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; margin-bottom: 16px; min-width: 0;
}
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-head h2 { font-size: 14.5px; margin: 0; font-weight: 650; }
.card-head .right { margin-left: auto; display: flex; gap: 8px; }
.muted { color: var(--ink-3); font-size: 12.5px; }

.grid { display: grid; gap: 14px; min-width: 0; }
.grid > * { min-width: 0; }
.grid.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.k3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.k2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.stat .label { color: var(--ink-3); font-size: 12px; }
.stat .value { font-size: 26px; font-weight: 700; margin: 6px 0 2px; letter-spacing: -.02em; }
.stat .sub { color: var(--ink-3); font-size: 11.5px; }

table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink-3); font-weight: 500; font-size: 12px; background: #fbfbfc; position: sticky; top: 0; }
tbody tr:hover { background: #fbfbfc; }
td .row-actions { display: flex; gap: 6px; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

input, textarea, select {
  font-family: inherit; font-size: 13px; color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 10px; width: 100%; background: #fff;
}
input:focus, textarea:focus, select:focus { outline: 2px solid #ffe0cf; border-color: var(--brand); }
textarea { resize: vertical; min-height: 78px; line-height: 1.65; }
label.field { display: block; margin-bottom: 12px; }
label.field > span { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 5px; }
.hint { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }

.form-row { display: grid; gap: 12px; }
.form-row.k2 { grid-template-columns: 1fr 1fr; }
.form-row.k3 { grid-template-columns: 1fr 1fr 1fr; }

.empty { text-align: center; color: var(--ink-3); padding: 36px 10px; font-size: 13px; }
.pre {
  white-space: pre-wrap; word-break: break-word; line-height: 1.75;
  background: #fbfbfc; border: 1px solid var(--line); border-radius: 10px;
  padding: 14px; font-size: 13px;
}
.split { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
.split > * { min-width: 0; }

.issue { padding: 9px 10px; border-radius: 8px; background: #fdecec; color: #8f2323; margin-bottom: 6px; font-size: 12.5px; }
.issue.warn { background: #fdf4e0; color: #7a5600; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(20, 22, 26, .45);
  display: grid; place-items: center; padding: 18px; z-index: 60;
}
.modal-mask[hidden] { display: none; }
.modal {
  background: #fff; border-radius: 14px; width: 100%; max-width: 620px;
  max-height: 88vh; display: flex; flex-direction: column; box-shadow: 0 24px 64px rgba(0,0,0,.24);
}
.modal header { display: flex; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.modal header h3 { margin: 0; font-size: 15px; }
.modal header .icon-btn { margin-left: auto; }
.modal-body { padding: 18px; overflow-y: auto; }
.modal footer { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); }

.icon-btn {
  border: 0; background: none; font-size: 16px; cursor: pointer;
  color: var(--ink-2); padding: 4px 8px; border-radius: 6px;
}
.icon-btn:hover { background: #f2f3f5; }
.only-mobile { display: none; }

.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%);
  background: #24262b; color: #fff; padding: 10px 18px; border-radius: 10px;
  font-size: 13px; z-index: 90; box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.toast[hidden] { display: none; }

.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.tab {
  border: 1px solid var(--line); background: #fff; border-radius: 99px;
  padding: 5px 13px; font-size: 12.5px; cursor: pointer; font-family: inherit; color: var(--ink-2);
}
.tab.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }

.switch {
  display: flex; align-items: center; gap: 9px;
  font-size: 12.5px; color: var(--ink-2);
  padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px;
  cursor: pointer; background: #fbfbfc; line-height: 1.3;
}
.switch:hover { border-color: #d9dde4; }
.switch input { width: 15px; height: 15px; margin: 0; flex: 0 0 15px; accent-color: var(--brand); }
.switch span { flex: 1; }
.switch.checked { background: var(--brand-soft); border-color: #ffd6bd; color: var(--brand); font-weight: 600; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .grid.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.k3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .only-mobile { display: inline-flex; }
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 50;
    transform: translateX(-100%); transition: transform .2s ease;
    box-shadow: 0 0 40px rgba(0,0,0,.18);
  }
  .sidebar.open { transform: translateX(0); }
  .main { width: 100%; }
  .content { padding: 14px; }
  .topbar { padding: 0 14px; height: 54px; }
  .topbar h1 { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar-right #clock { display: none; }
  .grid.k4, .grid.k2 { grid-template-columns: 1fr; }
  .form-row.k2, .form-row.k3 { grid-template-columns: 1fr; }
  .stat .value { font-size: 23px; }
  .card { padding: 14px; }
  th, td { padding: 8px; white-space: nowrap; }
  /* 移动端隐藏次要列，只保留关键信息，避免表格挤压 */
  .table-wrap table.tbl-projects, .table-wrap table.tbl-orders,
  .table-wrap table.tbl-deliv, .table-wrap table.tbl-tasks,
  .table-wrap table.tbl-models { table-layout: fixed; width: 100%; }
  .table-wrap table.tbl-projects td, .table-wrap table.tbl-orders td,
  .table-wrap table.tbl-deliv td, .table-wrap table.tbl-tasks td,
  .table-wrap table.tbl-models td { white-space: normal; word-break: break-word; }
  .btn.sm { white-space: nowrap; }
  .row-actions { flex-wrap: wrap; gap: 4px; }
  .row-actions .btn.sm { padding: 3px 7px; font-size: 11.5px; }
  table.tbl-orders td:last-child, table.tbl-orders th:last-child { width: 132px; }
  .table-wrap table.tbl-deliv td:first-child, .table-wrap table.tbl-deliv th:first-child { width: 52%; }
  .table-wrap table.tbl-projects td:first-child, .table-wrap table.tbl-projects th:first-child { width: 34%; }
  table.tbl-projects th:nth-child(2), table.tbl-projects td:nth-child(2),
  table.tbl-projects th:nth-child(3), table.tbl-projects td:nth-child(3),
  table.tbl-projects th:nth-child(4), table.tbl-projects td:nth-child(4) { display: none; }
  table.tbl-orders th:nth-child(2), table.tbl-orders td:nth-child(2),
  table.tbl-orders th:nth-child(3), table.tbl-orders td:nth-child(3),
  table.tbl-orders th:nth-child(5), table.tbl-orders td:nth-child(5),
  table.tbl-orders th:nth-child(7), table.tbl-orders td:nth-child(7) { display: none; }
  table.tbl-deliv th:nth-child(2), table.tbl-deliv td:nth-child(2),
  table.tbl-deliv th:nth-child(3), table.tbl-deliv td:nth-child(3),
  table.tbl-deliv th:nth-child(5), table.tbl-deliv td:nth-child(5) { display: none; }
  table.tbl-tasks th:nth-child(3), table.tbl-tasks td:nth-child(3),
  table.tbl-tasks th:nth-child(5), table.tbl-tasks td:nth-child(5),
  table.tbl-tasks th:nth-child(7), table.tbl-tasks td:nth-child(7) { display: none; }
  table.tbl-models th:nth-child(2), table.tbl-models td:nth-child(2),
  table.tbl-models th:nth-child(3), table.tbl-models td:nth-child(3),
  table.tbl-models th:nth-child(5), table.tbl-models td:nth-child(5),
  table.tbl-models th:nth-child(6), table.tbl-models td:nth-child(6) { display: none; }
  .modal { max-height: 92vh; }
  .toast { left: 14px; right: 14px; transform: none; text-align: center; }
}

/* V1.2 商品创作画廊 */
.creative-gallery { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:14px; }
.creative-card { min-width:0; border:1px solid var(--line); border-radius:12px; overflow:hidden; background:#fff; }
.creative-card img { width:100%; aspect-ratio:1/1; object-fit:contain; display:block; background:#f7f7f7; }
.creative-meta { padding:11px; display:flex; flex-direction:column; gap:7px; }
.creative-meta .row-actions { display:flex; gap:7px; flex-wrap:wrap; }
#overlayCanvas { max-height:55vh; object-fit:contain; background:#f7f7f7; }
@media(max-width:720px){.creative-gallery{grid-template-columns:repeat(2,minmax(0,1fr));}.creative-meta{padding:8px}.creative-meta .row-actions .btn{font-size:11px;padding:5px 7px}}

/* ===== Hontura V1.3 Account & visual refresh ===== */
:root{--brand:#f28a35;--brand-soft:#fff1e5;--ink:#20242b;--ink-2:#626b78;--ink-3:#929aa5;--line:#e7eaf0;--bg:#f4f6f9;--card:#fff;--shadow:0 8px 28px rgba(22,31,48,.055)}
.sidebar{background:#171b23;color:#eef1f6;border-right:1px solid #252b36}
.brand{padding:7px 9px 22px}.logo{width:38px;height:38px;border-radius:12px;background:linear-gradient(145deg,#ffad61,#ec7024);box-shadow:0 7px 20px rgba(242,138,53,.28);color:#fff;animation:logoBreath 4s ease-in-out infinite}.logo svg{width:27px;height:27px}
.brand-text strong{color:#fff;letter-spacing:.13em}.brand-text span{color:#9da7b5}
.nav-group{color:#778293}.nav-item{color:#c1c8d2;border-radius:10px;transition:background .2s,color .2s,transform .2s}.nav-item:hover{background:#252c38;color:#fff;transform:translateX(2px)}.nav-item.active{background:linear-gradient(90deg,rgba(242,138,53,.22),rgba(242,138,53,.08));color:#ffb06e;border-left:2px solid #f28a35}
.budget{background:#202631;border-color:#303a49;color:#aeb8c6}.budget b{color:#fff}
.topbar{background:rgba(255,255,255,.88);backdrop-filter:blur(16px);border-bottom-color:#e9edf2}.content{animation:contentIn .24s ease both}.card{border-color:#e9edf2;border-radius:15px;box-shadow:0 6px 24px rgba(26,36,52,.045);transition:transform .18s ease,box-shadow .18s ease}.card:hover{box-shadow:0 10px 30px rgba(26,36,52,.07)}.btn{transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}.btn:active{transform:scale(.98)}.btn.primary{background:linear-gradient(135deg,#f5a04e,#ec7628);border-color:#ed842f;box-shadow:0 5px 14px rgba(237,132,47,.18)}
.user-chip{font-size:12px;color:#505b69;background:#f1f3f6;border:1px solid #e6e9ee;padding:6px 10px;border-radius:999px;white-space:nowrap}
.auth-screen{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:24px;overflow:auto;background:radial-gradient(ellipse at 16% 18%,rgba(242,138,53,.22),transparent 38%),radial-gradient(ellipse at 85% 82%,rgba(68,101,151,.22),transparent 36%),#111722}
.auth-screen[hidden]{display:none}.auth-shell{width:min(100%,980px);min-height:590px;display:grid;grid-template-columns:1.05fr .95fr;border:1px solid rgba(255,255,255,.12);border-radius:26px;overflow:hidden;background:rgba(24,31,43,.94);box-shadow:0 28px 90px rgba(0,0,0,.38);animation:authIn .45s ease both}
.auth-brand{padding:54px 48px;display:flex;flex-direction:column;justify-content:space-between;color:#fff;background:linear-gradient(150deg,rgba(242,138,53,.17),transparent 48%),linear-gradient(35deg,#1c2635,#18202d)}
.auth-logo{display:flex;align-items:center;gap:13px;font-weight:800;letter-spacing:.16em}.auth-logo-mark{width:48px;height:48px;border-radius:15px;display:grid;place-items:center;background:linear-gradient(145deg,#ffb36d,#e87527);box-shadow:0 10px 28px rgba(242,138,53,.25)}.auth-logo-mark svg{width:34px;height:34px}.auth-brand h1{font-size:36px;line-height:1.22;margin:0 0 18px;letter-spacing:-.03em}.auth-brand p{color:#b4bfce;line-height:1.9;max-width:390px}.auth-orbit{width:220px;height:220px;border:1px solid rgba(255,255,255,.1);border-radius:50%;margin:30px auto;position:relative;display:grid;place-items:center;box-shadow:0 0 0 24px rgba(255,255,255,.018),0 0 0 52px rgba(255,255,255,.012)}.auth-orbit:before,.auth-orbit:after{content:"";position:absolute;border:1px solid rgba(242,138,53,.3);border-radius:50%;inset:28px;animation:orbit 18s linear infinite}.auth-orbit:after{inset:62px;border-color:rgba(255,255,255,.13);animation-direction:reverse}.auth-orbit span{font-size:42px;font-weight:800;color:#ffad68;letter-spacing:.1em}
.auth-panel{padding:54px 48px;background:#fff;display:flex;flex-direction:column;justify-content:center}.auth-panel h2{font-size:25px;margin:0 0 8px;color:#202631}.auth-sub{color:#818b99;margin:0 0 28px;line-height:1.7}.auth-form{display:grid;gap:14px}.auth-form label{display:grid;gap:7px;color:#4b5563;font-size:12px;font-weight:600}.auth-form input{width:100%;border:1px solid #dfe4eb;border-radius:10px;padding:12px 13px;font:inherit;color:#202631;outline:none;transition:border .2s,box-shadow .2s}.auth-form input:focus{border-color:#f29a50;box-shadow:0 0 0 3px rgba(242,138,53,.13)}.auth-submit{width:100%;padding:12px;border:0;border-radius:10px;background:linear-gradient(135deg,#f5a04e,#ed7628);color:white;font-weight:700;font-size:14px;cursor:pointer;box-shadow:0 8px 18px rgba(237,132,47,.2)}.auth-switch{display:flex;justify-content:space-between;gap:12px;margin-top:18px;color:#818b99;font-size:12px}.auth-link{border:0;background:none;color:#e77b2e;font-weight:700;cursor:pointer;font:inherit}.auth-error{color:#c33;font-size:12px;min-height:16px}.auth-note{font-size:11px;color:#9aa2ad;line-height:1.7;margin-top:20px}.auth-code-row{display:grid;grid-template-columns:1fr auto;gap:8px}.auth-code-row button{border:1px solid #e4e8ee;border-radius:9px;background:#f8f9fb;padding:0 10px;font-size:12px;cursor:pointer}
.admin-section{display:grid;gap:16px}.module-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px}.module-toggle{display:flex;align-items:center;gap:9px;padding:11px;border:1px solid var(--line);border-radius:10px;background:#fff}.module-toggle input{accent-color:var(--brand)}
@keyframes logoBreath{0%,100%{box-shadow:0 7px 20px rgba(242,138,53,.22)}50%{box-shadow:0 7px 28px rgba(242,138,53,.42)}}@keyframes contentIn{from{opacity:.4;transform:translateY(5px)}to{opacity:1;transform:none}}@keyframes authIn{from{opacity:0;transform:translateY(12px) scale(.99)}to{opacity:1;transform:none}}@keyframes orbit{to{transform:rotate(360deg)}}
@media(max-width:760px){.auth-shell{grid-template-columns:1fr;min-height:auto;max-width:470px}.auth-brand{padding:28px 28px 20px}.auth-brand h1{font-size:26px;margin-top:25px}.auth-brand p{font-size:13px}.auth-orbit{display:none}.auth-panel{padding:30px 28px}.user-chip{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}
body.dark-mode{--ink:#edf1f6;--ink-2:#bac3d0;--ink-3:#8995a5;--line:#303a49;--bg:#121821;--card:#1b2430;color:var(--ink)}body.dark-mode .main,body.dark-mode .topbar{background:#141c27}body.dark-mode .topbar{border-color:#303a49}body.dark-mode .card,body.dark-mode .creative-card{background:#1b2430;border-color:#303a49;color:#edf1f6}body.dark-mode .btn{background:#202b39;border-color:#3a4657;color:#e6ebf2}body.dark-mode .pill,body.dark-mode .badge,body.dark-mode .tag{background:#2b3645;color:#d3dbe6}body.dark-mode input,body.dark-mode textarea,body.dark-mode select{background:#18212c;color:#edf1f6;border-color:#3a4657}body.dark-mode .user-chip{background:#202b39;border-color:#3a4657;color:#e2e8f0}


/* ---------- Hontura light animated authentication experience ---------- */
.auth-screen{background:#f7f8fb;color:#202633;padding:clamp(14px,3vw,34px);isolation:isolate}
.auth-scene{position:relative;width:100%;min-height:calc(100vh - 2 * clamp(14px,3vw,34px));display:grid;place-items:center;overflow:hidden;border-radius:26px;background:linear-gradient(135deg,#fffaf5 0%,#f7f9fc 48%,#f5f7fb 100%)}
.auth-ambient{position:absolute;border-radius:50%;filter:blur(2px);pointer-events:none;animation:ambientDrift 16s ease-in-out infinite alternate}
.ambient-one{width:440px;height:440px;left:-170px;top:-190px;background:radial-gradient(circle,rgba(255,174,112,.24),rgba(255,174,112,0) 70%)}
.ambient-two{width:520px;height:520px;right:-210px;bottom:-260px;background:radial-gradient(circle,rgba(153,190,235,.22),rgba(153,190,235,0) 70%);animation-delay:-7s}
.auth-shell{position:relative;z-index:1;width:min(100%,1040px);min-height:620px;display:grid;grid-template-columns:1.04fr .96fr;border:1px solid rgba(255,255,255,.9);border-radius:25px;overflow:hidden;background:rgba(255,255,255,.82);box-shadow:0 30px 90px rgba(43,59,82,.12),0 3px 12px rgba(43,59,82,.04);backdrop-filter:blur(18px);animation:authIn .65s cubic-bezier(.2,.75,.25,1) both}
.auth-brand{position:relative;isolation:isolate;overflow:hidden;padding:36px 42px 28px;display:flex;flex-direction:column;justify-content:space-between;color:#283344;background:linear-gradient(145deg,rgba(255,255,255,.96),rgba(250,246,241,.94));border-right:1px solid #edf0f4}
.auth-brand:before{content:"";position:absolute;z-index:-1;width:460px;height:460px;border:1px solid rgba(242,145,75,.12);border-radius:50%;right:-170px;bottom:-205px;box-shadow:0 0 0 32px rgba(242,145,75,.025),0 0 0 70px rgba(242,145,75,.02),0 0 0 112px rgba(242,145,75,.016)}
.auth-brand-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.auth-logo{display:flex;align-items:center;gap:11px;color:#263244;font-size:14px;font-weight:850;letter-spacing:.15em}
.auth-logo small{display:block;color:#8d96a3;font-size:10px;letter-spacing:.2em;margin-top:4px;font-weight:600}
.auth-logo-mark{width:43px;height:43px;border-radius:14px;display:grid;place-items:center;background:linear-gradient(145deg,#ffb46f,#ed762b);box-shadow:0 8px 20px rgba(237,126,48,.22);color:#fff}
.auth-logo-mark svg{width:31px;height:31px}
.auth-version{display:flex;align-items:center;gap:7px;color:#9aa3af;font-size:9px;letter-spacing:.13em;white-space:nowrap}
.auth-version i{width:6px;height:6px;border-radius:50%;background:#50bd83;box-shadow:0 0 0 4px rgba(80,189,131,.12)}
.auth-brand-copy{margin-top:54px;position:relative;z-index:2}
.auth-eyebrow,.auth-heading-kicker{font-size:9px;letter-spacing:.2em;font-weight:800;color:#e58a4b}
.auth-brand h1{font-size:clamp(28px,3vw,38px);line-height:1.35;margin:14px 0 13px;color:#263244;letter-spacing:-.045em;font-weight:800}
.auth-brand h1 em{font-style:normal;background:linear-gradient(90deg,#e97831,#f2a35d);-webkit-background-clip:text;background-clip:text;color:transparent}
.auth-brand p{color:#7c8795;font-size:13px;line-height:1.9;max-width:390px;margin:0}
.auth-visual{height:245px;position:relative;margin:5px 0 0;display:grid;place-items:center}
.visual-orbit{position:absolute;border:1px solid rgba(231,143,82,.2);border-radius:50%;left:50%;top:50%;transform:translate(-50%,-50%)}
.orbit-a{width:190px;height:190px;animation:orbitSpin 26s linear infinite}
.orbit-b{width:255px;height:150px;transform:translate(-50%,-50%) rotate(-28deg);border-color:rgba(133,168,207,.28);animation:orbitSpin 32s linear infinite reverse}
.orbit-c{width:300px;height:210px;transform:translate(-50%,-50%) rotate(35deg);border-style:dashed;border-color:rgba(231,143,82,.16);animation:orbitSpin 42s linear infinite}
.visual-core{position:relative;width:102px;height:102px;border-radius:30px;display:grid;place-items:center;color:#ed873f;background:linear-gradient(145deg,#fff,#fff4e9);border:1px solid rgba(237,135,63,.2);box-shadow:0 15px 40px rgba(214,133,75,.16),inset 0 1px 0 #fff;animation:coreFloat 5s ease-in-out infinite}
.visual-core svg{width:56px;height:56px;position:relative;z-index:1}
.visual-core-glow{position:absolute;inset:-14px;border-radius:36px;background:rgba(255,174,112,.16);filter:blur(15px);animation:glowPulse 4s ease-in-out infinite}
.float-card{position:absolute;z-index:3;display:flex;align-items:center;gap:10px;padding:10px 13px;border:1px solid rgba(255,255,255,.95);border-radius:13px;background:rgba(255,255,255,.88);box-shadow:0 10px 28px rgba(54,69,90,.1);backdrop-filter:blur(12px);animation:cardFloat 5.5s ease-in-out infinite}
.float-card-one{left:2%;top:26px}.float-card-two{right:0;bottom:22px;animation-delay:-2.6s}
.float-card b{display:block;color:#344052;font-size:11px;font-weight:750}.float-card small{display:block;color:#9aa3ae;font-size:9px;margin-top:4px;white-space:nowrap}
.float-icon{width:27px;height:27px;display:grid;place-items:center;border-radius:9px;color:#9b72d4;background:#f3edfb;font-size:15px}.float-icon.orange{color:#e9833c;background:#fff0e4}
.float-pulse{width:6px;height:6px;border-radius:50%;background:#54c18a;margin-left:3px;box-shadow:0 0 0 4px rgba(84,193,138,.12)}
.visual-dot{position:absolute;width:6px;height:6px;border-radius:50%;background:#f0a264;box-shadow:0 0 14px rgba(240,162,100,.7)}.dot-one{top:20%;left:34%;animation:dotBlink 3s infinite}.dot-two{right:19%;top:34%;animation:dotBlink 3.8s .7s infinite}.dot-three{left:20%;bottom:22%;animation:dotBlink 4s 1.3s infinite}
.auth-brand-foot{display:flex;justify-content:space-between;color:#a2aab5;font-size:10px;letter-spacing:.1em}
.auth-panel{padding:44px clamp(28px,4.4vw,54px);background:rgba(255,255,255,.94);display:flex;align-items:center;justify-content:center}
.auth-panel-inner{width:100%;max-width:360px;animation:panelRise .7s .08s both}
.auth-mobile-brand{display:none;align-items:center;gap:10px;color:#263244;letter-spacing:.14em;font-size:12px;margin-bottom:30px}
.auth-mobile-brand .auth-logo-mark{width:36px;height:36px;border-radius:11px}.auth-mobile-brand svg{width:26px;height:26px}
.auth-heading-kicker{color:#b1a08f;font-size:9px}
.auth-panel h2{font-size:27px;margin:10px 0 8px;color:#253144;letter-spacing:-.035em}
.auth-sub{color:#929ba7;margin:0 0 27px;line-height:1.75;font-size:12px}
.auth-form{display:grid;gap:16px}
.auth-form label{display:grid;gap:8px;color:#5f6977;font-size:11px;font-weight:700}
.auth-form input{width:100%;height:45px;border:1px solid #e5e9ef;border-radius:10px;padding:0 13px;font:inherit;font-size:13px;color:#293548;background:#fbfcfe;outline:none;transition:border .2s,box-shadow .2s,background .2s}
.auth-form input::placeholder{color:#b6bec8;font-weight:400}
.auth-form input:focus{border-color:#f0a16a;background:#fff;box-shadow:0 0 0 4px rgba(242,153,91,.12)}
.auth-code-row{display:grid;grid-template-columns:1fr auto;gap:9px;align-items:end}
.auth-code-row button{height:45px;border:1px solid #f1d8c5;border-radius:10px;background:#fff8f2;color:#dc7d3e;padding:0 12px;font-size:11px;font-weight:700;cursor:pointer;white-space:nowrap}
.auth-error{color:#c44c43;font-size:11px;min-height:14px}
.auth-submit{height:47px;width:100%;padding:0 17px;border:0;border-radius:11px;background:linear-gradient(105deg,#f4a35e,#ed7c35);color:white;font-weight:750;font-size:13px;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:12px;box-shadow:0 9px 20px rgba(237,124,53,.2);transition:transform .2s,box-shadow .2s,filter .2s}
.auth-submit b{font-size:18px;font-weight:500;transition:transform .2s}.auth-submit:hover{transform:translateY(-2px);box-shadow:0 12px 25px rgba(237,124,53,.26);filter:saturate(1.05)}.auth-submit:hover b{transform:translateX(4px)}.auth-submit:active{transform:translateY(0)}
.auth-switch{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:20px;color:#929ba7;font-size:11px}.auth-link{border:0;background:none;color:#e47d3d;font-weight:750;cursor:pointer;font:inherit;padding:0 2px}.auth-secure{white-space:nowrap;color:#a0a9b4}.auth-secure i{font-style:normal;color:#42ae7b;margin-right:4px}
.auth-note{font-size:10px;color:#adb5bf;line-height:1.75;margin-top:22px;padding-top:14px;border-top:1px solid #f0f2f5}
.auth-bottom-note{position:absolute;z-index:1;bottom:13px;left:50%;transform:translateX(-50%);width:min(100%,1040px);display:flex;justify-content:space-between;color:#a5adb8;font-size:9px;letter-spacing:.08em;padding:0 8px}
@keyframes ambientDrift{from{transform:translate3d(0,0,0) scale(1)}to{transform:translate3d(26px,20px,0) scale(1.08)}}
@keyframes orbitSpin{to{rotate:360deg}}
@keyframes coreFloat{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-8px) rotate(2deg)}}
@keyframes glowPulse{0%,100%{opacity:.55;transform:scale(.92)}50%{opacity:1;transform:scale(1.08)}}
@keyframes cardFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
@keyframes dotBlink{0%,100%{opacity:.35;transform:scale(.8)}50%{opacity:1;transform:scale(1.35)}}
@keyframes panelRise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:820px){.auth-shell{grid-template-columns:.95fr 1.05fr;min-height:570px}.auth-brand{padding:30px 26px 24px}.auth-version{display:none}.auth-brand h1{font-size:29px}.auth-visual{transform:scale(.88);margin-left:-8px;margin-right:-8px}.auth-panel{padding:34px 27px}}
@media(max-width:650px){.auth-screen{padding:0;background:#f7f8fb}.auth-scene{min-height:100vh;border-radius:0;padding:18px 14px 42px;align-content:center}.auth-shell{width:min(100%,440px);min-height:0;display:flex;flex-direction:column;border-radius:22px}.auth-brand{padding:20px 22px 12px;border-right:0;border-bottom:1px solid #f0f1f3}.auth-brand-top{justify-content:flex-start}.auth-logo-mark{width:36px;height:36px;border-radius:11px}.auth-logo-mark svg{width:26px;height:26px}.auth-brand-copy{margin-top:20px}.auth-eyebrow{font-size:8px}.auth-brand h1{font-size:23px;margin:8px 0}.auth-brand p{font-size:11px;line-height:1.65}.auth-visual{height:100px;margin:-1px 0 -10px;transform:scale(.66)}.visual-orbit.orbit-b,.visual-orbit.orbit-c{display:none}.visual-core{width:76px;height:76px;border-radius:23px}.visual-core svg{width:43px;height:43px}.float-card-one{left:0;top:5px}.float-card-two{right:0;bottom:3px}.float-card{padding:7px 9px;gap:7px}.float-card b{font-size:9px}.float-card small{font-size:8px}.float-icon{width:22px;height:22px}.auth-brand-foot{display:none}.auth-panel{padding:25px 23px 24px}.auth-panel-inner{max-width:none}.auth-mobile-brand{display:none}.auth-panel h2{font-size:23px}.auth-sub{margin-bottom:19px}.auth-form{gap:13px}.auth-form input{height:43px}.auth-submit{height:45px}.auth-note{margin-top:16px;padding-top:11px}.auth-bottom-note{bottom:12px;justify-content:center}.auth-bottom-note span:last-child{display:none}}
@media(prefers-reduced-motion:reduce){.auth-scene *,.auth-scene *:before,.auth-scene *:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
