@charset "UTF-8";
:root {
  --ink: #1f2328;
  --muted: #78716c;
  --orange: #ff7a00;
  --orange-deep: #c2410c;
  --orange-dark: #9a3412;
  --orange-soft: #ffedd5;
  --orange-wash: #fff7ed;
  --line: #fed7aa;
  --chip-border: #fdba74;
  --bg: #fff7ed;
  --surface: #ffffff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: "Roboto Condensed", "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(36px, 3.7vw, 54px); font-weight: 550; line-height: 1.13; letter-spacing: -1.5px; margin-bottom: 24px; }
h1 em { font-style: normal; color: var(--orange-deep); }
h2 { font-size: 30px; line-height: 1.25; font-weight: 550; letter-spacing: -.4px; margin-bottom: 16px; }
h3 { font-size: 19px; line-height: 1.35; font-weight: 600; margin-bottom: 14px; }
h4 { font-size: 16px; line-height: 1.35; font-weight: 600; margin: 18px 0 10px; }

.header {
  width: 100%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 20;
}
.brand { display: flex; gap: 12px; align-items: center; font-weight: 700; font-size: 18px; letter-spacing: .2px; min-width: 0; }
.brand-name { white-space: nowrap; }
.brand-mark {
  background: var(--orange);
  color: white;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px rgba(194, 65, 12, .22);
}
.brand-mark svg, .service-icon svg { width: 24px; height: 24px; display: block; }
nav { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 600; }
.user-menu { position: relative; }
.user-menu-button { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 999px; padding: 4px 14px 4px 4px; cursor: pointer; }
.user-menu-button:hover { border-color: var(--orange); }
.user-menu-name { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.user-menu-panel { position: absolute; right: 0; top: calc(100% + 8px); width: 260px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(31, 35, 40, .16); padding: 12px; z-index: 30; }
.user-menu-panel[hidden] { display: none; }
.user-menu-meta { margin: 2px 8px 10px; color: var(--muted); font-size: 12px; font-weight: 500; }
.user-menu .theme-switch { margin: 0 0 8px; }
.user-menu-link, .user-menu .logout { display: flex; width: 100%; align-items: center; text-align: left; margin: 0; padding: 10px 8px; border: 0; border-radius: 8px; background: none; color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; }
.user-menu-link:hover, .user-menu .logout:hover { background: var(--orange-soft); color: var(--orange-deep); }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--orange-deep);
  background: var(--orange-deep);
  color: white;
  padding: 14px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.button:hover { background: var(--orange-dark); transform: translateY(-1px); }
.button:disabled { opacity: .65; cursor: wait; }
.button.secondary { background: transparent; color: var(--orange-deep); border-color: var(--chip-border); }
.button.secondary:hover { background: var(--orange-soft); }
.button.small { padding: 9px 16px; }
.full { width: 100%; }
.dot { display: inline-block; width: 6px; height: 6px; border-radius: 100%; background: var(--orange); margin-right: 6px; }

.landing { width: 100%; flex: 1; padding: 0 32px 24px; }
.hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 220px);
  padding: 48px 0;
}
.eyebrow { font-size: 11px; letter-spacing: 1.6px; font-weight: 700; color: var(--orange-deep); margin: 0 0 16px; }
.lead { max-width: 560px; font-size: 17px; color: var(--muted); line-height: 1.7; }
.actions { display: flex; align-items: center; gap: 24px; margin: 28px 0 32px; flex-wrap: wrap; }
.text-link { color: var(--orange-deep); font-size: 14px; font-weight: 650; }
.hero-notes { display: flex; gap: 22px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.energy-art {
  height: 100%;
  min-height: 360px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 70% 30%, #fff7ed, #ffedd5 55%, #fdba74);
}
.orbit { position: absolute; border: 1px solid #c2410c33; width: 400px; height: 400px; transform: rotate(-35deg); border-radius: 50%; top: -110px; left: 130px; }
.orbit.two { width: 490px; height: 490px; left: 80px; top: -140px; }
.orbit.three { width: 600px; height: 600px; left: 20px; top: -180px; }
.energy-symbol { width: 210px; height: 210px; color: var(--orange); position: absolute; top: 36px; left: 16%; filter: drop-shadow(0 16px 22px rgba(194, 65, 12, .2)); }
.energy-symbol svg { width: 100%; height: 100%; display: block; }
.art-label { position: absolute; bottom: 28px; left: 30px; font-size: 11px; line-height: 1.7; letter-spacing: 1.6px; color: var(--orange-dark); }
.art-badge { position: absolute; right: 20px; bottom: 30px; padding: 8px 12px; border-radius: 8px; background: #ffffffd0; font-size: 12px; color: var(--orange-dark); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-heading .eyebrow { margin-bottom: 10px; }
.muted { color: var(--muted); font-size: 14px; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 380px)); gap: 18px; margin-top: 20px; }
.service-card { border: 1px solid var(--line); border-radius: 14px; padding: 28px; background: var(--surface); }
.service-card.featured { background: var(--orange-soft); border-color: #fdba74; }
.service-icon { font-size: 24px; display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 24px; color: var(--orange); background: #fff; border-radius: 10px; }
.service-card p { color: var(--muted); font-size: 14px; max-width: 360px; min-height: 42px; }
.pill { display: inline-block; background: var(--orange-soft); color: var(--orange-dark); padding: 5px 10px; border-radius: 5px; font-size: 11px; }
.pill.light { background: #ffffff24; color: #ffedd5; letter-spacing: .6px; }
.steps { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 28px; padding: 64px 0 32px; }
.step span { font-size: 26px; color: var(--orange); }
.step h3 { font-size: 16px; margin: 12px 0 8px; }
.step p { font-size: 13px; color: var(--muted); }

footer {
  width: 100%;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 20px 32px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 12px;
  color: var(--muted);
  background: var(--surface);
}
.footer-brand { color: var(--orange-deep); font-weight: 700; }

.auth-layout {
  flex: 1;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(360px, 1.1fr);
  background: var(--surface);
}
.auth-aside {
  background: linear-gradient(160deg, #9a3412 0%, #c2410c 55%, #ff7a00 140%);
  color: #fff7ed;
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
}
.auth-aside .eyebrow { color: #ffedd5; }
.auth-aside h1 { font-size: clamp(34px, 4vw, 48px); color: white; }
.auth-aside h1 em { color: #ffedd5; }
.auth-aside > p:not(.eyebrow) { color: #ffedd5; font-size: 16px; }
.aside-lines { margin-top: 28px; font-size: 15px; }
.aside-lines div { border-bottom: 1px solid #ffffff33; padding: 16px 0; display: flex; gap: 14px; }
.aside-lines span { color: #ffedd5; font-size: 20px; }
.aside-bottom { margin-top: auto; padding-top: 40px; font-size: 14px; color: #ffedd5; }
.aside-bottom a { color: white; font-weight: 700; display: inline-block; margin-top: 8px; }
.auth-card { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.login-layout .auth-card { background: #fff7ed; align-items: center; }
.auth-card-inner { width: min(460px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px 28px 24px; box-shadow: 0 18px 50px rgba(154, 52, 18, .08); }
.auth-card h2 { font-size: 32px; }
.login-points { margin-top: 28px; display: grid; gap: 10px; }
.login-points div { padding: 12px 14px; border-radius: 10px; background: #ffffff1f; }
.auth-switch { margin: 18px 0 0; }
.type-tabs { display: flex; padding: 5px; background: var(--orange-wash); border-radius: 9px; gap: 5px; margin: 22px 0; }
.type-tab { flex: 1; text-align: center; padding: 10px; font-size: 14px; border-radius: 6px; color: var(--muted); }
.type-tab.active { background: white; color: var(--orange-deep); box-shadow: 0 2px 6px #9a34121a; font-weight: 700; }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 16px; }
input:not([type=checkbox]), select, textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 12px;
  border: 1px solid #fdba74;
  border-radius: 8px;
  background: #fffdfb;
  color: var(--ink);
  font-size: 14px;
  outline: none;
}
input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px #ff7a0024; }
input::placeholder { color: #a8a29e; font-weight: 400; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 12px; color: var(--muted); font-weight: 400; line-height: 1.6; margin: 8px 0 22px; }
.check input { accent-color: var(--orange-deep); margin-top: 3px; }
.form-foot { text-align: center; font-size: 12px; color: var(--muted); margin: 14px 0 0; }
.errors { padding: 14px; background: #fff1eb; color: #9a3412; border-radius: 8px; font-size: 13px; margin: 0 0 18px; }
.errors ul { padding-left: 18px; margin-bottom: 0; }
.notice { padding: 12px 32px; background: var(--orange-soft); color: var(--orange-dark); font-size: 14px; }
.login-art { font-size: 140px; line-height: 1; color: #ffffff55; align-self: flex-start; margin-top: 24px; }
.auth-divider { border-top: 1px solid var(--line); margin: 28px 0; }

.cabinet-layout { flex: 1; width: 100%; display: grid; grid-template-columns: 248px 1fr; min-height: 0; background: var(--bg); }
.sidebar { padding: 26px 16px 24px; border-right: 1px solid var(--line); background: #f6f8fa; display: flex; flex-direction: column; gap: 4px; }
.sidebar .eyebrow { margin: 0 12px 14px; color: var(--muted); }
.sidebar > a { padding: 11px 14px; border-radius: 12px; display: flex; align-items: center; gap: 12px; color: var(--muted); font-weight: 600; }
.nav-ico { width: 18px; height: 18px; flex: none; }
.theme-switch { display: flex; gap: 6px; margin: 4px 0 12px; }
.theme-switch button { flex: 1; border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 8px; padding: 8px 6px; cursor: pointer; font-size: 13px; }
.theme-switch button.selected { background: var(--orange-soft); color: var(--orange-deep); border-color: var(--orange); font-weight: 700; }
.sidebar a span { font-size: 15px; }
.sidebar > a.selected { background: #c2410c; color: #fff; font-weight: 700; }
.sidebar > a:hover:not(.selected) { background: rgba(194, 65, 12, .08); color: var(--ink); }
.sidebar-bottom { margin-top: auto; padding-top: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.avatar { width: 40px; height: 40px; display: grid; place-items: center; background: var(--orange); border-radius: 50%; color: white; font-size: 18px; }
.sidebar-bottom strong { font-size: 13px; overflow-wrap: anywhere; }
.sidebar-bottom small { font-size: 12px; color: var(--muted); }
.logout { border: 0; background: none; padding: 8px 0; color: var(--orange-deep); font-size: 13px; cursor: pointer; }
.cabinet-main { padding: 8px 40px 48px; background: #f3f5f8; }
.cabinet-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin: 0 -8px 28px; }
.cabinet-tabs a { display: flex; align-items: center; gap: 8px; padding: 16px 18px 14px; color: var(--muted); font-weight: 650; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.cabinet-tabs a:hover { color: var(--ink); }
.cabinet-tabs a.selected { color: var(--orange-deep); border-bottom-color: var(--orange); }
.cabinet-main h1 { font-size: 40px; letter-spacing: -.8px; margin-bottom: 6px; }
.dash-heading { align-items: center; margin-bottom: 22px; }
.dash-heading .muted { margin: 0; }
.welcome-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 86% 45%, rgba(255, 122, 0, .22), transparent 46%),
    linear-gradient(105deg, #fff 0%, #fff8f3 72%);
  border: 1px solid #f0d2b8;
  border-radius: 16px;
  color: var(--ink);
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  min-height: 196px;
}
.welcome-copy { position: relative; z-index: 1; max-width: 640px; }
.welcome-panel h2 { font-size: 30px; line-height: 1.2; margin: 14px 0 12px; color: #1f2328; }
.welcome-panel p { font-size: 14px; color: #57606a; margin: 0; }
.pill.light { background: #ffedd5; color: #9a3412; letter-spacing: .6px; font-weight: 700; }
.welcome-art { position: relative; width: 280px; height: 168px; flex: none; }
.welcome-glow { position: absolute; right: 0; top: 10px; width: 220px; height: 150px; background: radial-gradient(circle, rgba(255, 122, 0, .45), transparent 68%); }
.float-card { position: absolute; border-radius: 16px; border: 1px solid rgba(194, 65, 12, .45); background: linear-gradient(160deg, #fff 0%, #ffedd5 100%); box-shadow: 0 16px 32px rgba(154, 52, 18, .16); }
.float-card.back { width: 118px; height: 78px; right: 8px; top: 6px; transform: rotate(10deg); }
.float-card.mid { width: 126px; height: 84px; right: 42px; top: 34px; transform: rotate(-7deg); }
.float-card.front { width: 138px; height: 92px; right: 78px; top: 62px; display: grid; place-items: center; }
.float-avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: #c2410c; color: #fff; }
.float-avatar svg, .float-arrow svg, .stat-icon svg, .empty-symbol svg { width: 22px; height: 22px; display: block; }
.float-arrow { position: absolute; right: 18px; top: 18px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #c2410c; color: #fff; box-shadow: 0 8px 18px rgba(194, 65, 12, .35); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 380px)); gap: 16px; margin: 18px 0 8px; }
.stat-card { background: var(--surface); border: 1px solid var(--line); padding: 16px 16px 16px 18px; border-radius: 14px; display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; min-height: 112px; }
.stat-card:hover { border-color: var(--orange); }
.stat-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(194, 65, 12, .1); color: #c2410c; }
.stat-body { display: flex; flex-direction: column; min-width: 0; }
.stat-body > span { font-size: 13px; color: var(--muted); }
.stat-body strong { font-size: 30px; font-weight: 550; line-height: 1.15; color: var(--ink); }
.stat-body small { font-size: 12px; color: var(--muted); }
.stat-accent { color: var(--orange-deep); font-weight: 700; }
.stat-chevron { color: var(--muted); font-size: 22px; line-height: 1; }
.empty-state { text-align: center; background: var(--surface); border: 1px dashed rgba(194, 65, 12, .55); border-radius: 16px; padding: 42px 20px; margin: 18px 0 8px; }
.empty-state p { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.empty-state h3 { font-size: 18px; margin: 10px 0 8px; }
.empty-symbol { width: 42px; height: 42px; margin: 0 auto 8px; border-radius: 10px; display: grid; place-items: center; color: #c2410c; background: rgba(194, 65, 12, .1); font-size: 0; }
.profile-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 28px; margin: 24px 0; }
.profile-heading { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.profile-heading h3 { margin-bottom: 8px; }
.profile-panel dl { margin: 0; }
.profile-panel dl > div { border-top: 1px solid var(--line); padding: 14px 0; display: grid; grid-template-columns: 200px 1fr; font-size: 14px; }
.profile-panel dt { color: var(--muted); }
.profile-panel dd { margin: 0; overflow-wrap: anywhere; }

@media (max-width: 1000px) {
  .header, .landing, footer { padding-left: 20px; padding-right: 20px; }
  .hero { gap: 24px; min-height: 0; }
  .hero h1 { font-size: 38px; }
  .energy-art { min-height: 280px; }
  .auth-aside, .auth-card { padding: 32px 24px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .cabinet-main { padding: 28px 20px; }
  .cabinet-layout { grid-template-columns: 220px 1fr; }
  .welcome-art { width: 200px; height: 140px; }
}
@media (max-width: 700px) {
  .header { height: 64px; padding: 0 16px; }
  .header nav > a:not(.button) { display: none; }
  .header nav { gap: 0; }
  .landing { padding: 0 16px 16px; }
  .hero { grid-template-columns: 1fr; padding: 28px 0; }
  .energy-art { min-height: 200px; }
  .energy-symbol { width: 140px; height: 140px; left: 12%; top: 16px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .service-grid, .steps, .stats, .form-grid { grid-template-columns: 1fr; }
  .service-card p { min-height: 0; max-width: none; }
  .steps { padding: 36px 0; }
  footer { flex-wrap: wrap; padding: 16px; }
  .auth-layout { display: block; }
  .auth-aside .aside-lines, .login-art { display: none; }
  .auth-aside { padding: 28px 20px; }
  .auth-card { padding: 28px 20px; }
  .cabinet-layout { display: block; }
  .sidebar { padding: 12px; border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; overflow: auto; }
  .sidebar .eyebrow, .sidebar-bottom { display: none; }
  .sidebar > a { white-space: nowrap; }
  .welcome-art { display: none; }
  .cabinet-tabs { overflow: auto; }
  .cabinet-tabs a { white-space: nowrap; }
  .profile-panel dl > div { grid-template-columns: 1fr; gap: 4px; }
  .notice { padding: 12px 16px; }
  .brand-name { font-size: 15px; }
  .user-menu-name { max-width: 110px; }
  .auth-card { padding: 20px 16px 28px; }
  .auth-card-inner { padding: 22px 16px; }
  .login-points { display: none; }
}

html.theme-light {
  color-scheme: light;
  --ink: #1f2328;
  --muted: #57606a;
  --orange: #c2410c;
  --orange-deep: #c2410c;
  --orange-dark: #9a3412;
  --orange-soft: rgba(194, 65, 12, 0.12);
  --orange-wash: #f6f8fa;
  --line: #d8dee4;
  --chip-border: #d8dee4;
  --bg: #f0f3f6;
  --surface: #ffffff;
}
html.theme-dark {
  color-scheme: dark;
  --ink: #f0f3f6;
  --muted: #8b949e;
  --orange: #ff7a00;
  --orange-deep: #ff7a00;
  --orange-dark: #ff8c1a;
  --orange-soft: rgba(255, 122, 0, 0.16);
  --orange-wash: #1c2128;
  --line: #30363d;
  --chip-border: #ff7a00;
  --bg: #0d1117;
  --surface: #161b22;
}
html.theme-dark .button:not(.secondary) { color: #1a1208; }
html.theme-dark .avatar { color: #1a1208; }
html.theme-dark[data-cabinet="1"] .header,
html.theme-dark .sidebar { background: #0c1016; border-color: #21262d; }
html.theme-dark .cabinet-main { background: #10151c; }
html.theme-dark .sidebar > a.selected { background: #c65a16; color: #fff8f3; }
html.theme-dark .sidebar > a:hover:not(.selected) { background: rgba(255, 122, 0, .1); color: #f0f3f6; }
html.theme-dark .cabinet-tabs { border-bottom-color: #21262d; }
html.theme-dark .cabinet-tabs a.selected { color: #ff7a00; border-bottom-color: #ff7a00; }
html.theme-dark .welcome-panel {
  background:
    radial-gradient(ellipse at 84% 42%, rgba(255, 122, 0, .34), transparent 48%),
    linear-gradient(105deg, #141920 0%, #1b140e 100%);
  border-color: #2a313a;
  color: #f0f3f6;
}
html.theme-dark .welcome-panel h2 { color: #f0f3f6; }
html.theme-dark .welcome-panel p { color: #c9d1d9; }
html.theme-dark .pill.light { background: rgba(255, 122, 0, 0.16); color: #ff9a33; }
html.theme-dark .float-card { background: rgba(18, 14, 10, .62); border-color: rgba(255, 154, 51, .38); box-shadow: 0 16px 36px rgba(0, 0, 0, .35); }
html.theme-dark .float-avatar,
html.theme-dark .float-arrow { background: #ff7a00; color: #1a1208; }
html.theme-dark .stat-card,
html.theme-dark .empty-state { background: #161b22; border-color: #2a313a; }
html.theme-dark .empty-state { border-style: dashed; border-color: rgba(255, 122, 0, .7); }
html.theme-dark .stat-icon,
html.theme-dark .empty-symbol { background: rgba(255, 122, 0, .14); color: #ff7a00; }
html.theme-dark .stat-body strong { color: #f0f3f6; }
html.theme-light[data-cabinet="1"] .header { background: #fff; }
html.theme-light .sidebar { background: #f6f8fa; }
html.theme-light .cabinet-main { background: #f3f5f8; }
html.theme-light .sidebar > a.selected { background: #c2410c; color: #fff; }
html.theme-light .stat-card,
html.theme-light .empty-state { background: #fff; }
html.theme-dark .brand-mark { color: #1a1208; }
html.theme-dark .auth-aside { background: linear-gradient(160deg, #1c2128 0%, #161b22 72%); }
html.theme-dark .auth-aside .eyebrow,
html.theme-dark .auth-aside h1 em,
html.theme-dark .auth-aside > p:not(.eyebrow),
html.theme-dark .aside-lines span,
html.theme-dark .aside-bottom { color: #c9d1d9; }
html.theme-dark .auth-aside h1,
html.theme-dark .aside-bottom a { color: #f0f3f6; }
html.theme-dark .aside-lines div { border-bottom-color: #30363d; }
html.theme-dark .login-points div { background: rgba(255, 255, 255, .06); color: #f0f3f6; }
html.theme-dark .login-layout .auth-card,
html.theme-dark .auth-card { background: var(--bg); }
html.theme-dark .auth-card-inner { background: var(--surface); box-shadow: none; }
html.theme-dark input:not([type=checkbox]), html.theme-dark select, html.theme-dark textarea { background: #0d1117; border-color: #30363d; color: var(--ink); }
.tabs { display: flex; margin: 20px 0 0; background: var(--surface); border: 1px solid var(--line); border-bottom: 0; border-radius: 14px 14px 0 0; overflow: hidden; }
.tabs a { flex: 1; text-align: center; padding: 14px 18px; border: 0; border-bottom: 3px solid transparent; border-radius: 0; color: var(--muted); font-weight: 600; background: var(--orange-wash); }
.tabs a:hover { color: var(--ink); background: var(--surface); }
.tabs a.selected { color: var(--orange-deep); background: var(--surface); border-bottom-color: var(--orange); font-weight: 700; }
.tabs + .profile-panel { margin-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
.stage-row { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.pay-choice { border: 0; margin: 12px 0 20px; padding: 0; }
.chat { display: flex; flex-direction: column; gap: 12px; margin: 12px 0 20px; }
.chat-item { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; max-width: 720px; }
.chat-mine { align-self: flex-end; background: var(--orange-soft); }
.chat-admin { align-self: flex-start; background: var(--surface); }
.chat-item header { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; }
.chat-item p { margin: 8px 0 0; white-space: pre-wrap; }
.chat-box textarea { min-height: 96px; resize: vertical; }
[hidden] { display: none !important; }
.suggest { position: relative; }
.suggest-list { position: absolute; left: 0; right: 0; top: calc(100% - 8px); z-index: 15; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; max-height: 220px; overflow: auto; box-shadow: 0 12px 30px rgba(31, 35, 40, .12); }
.suggest-list[hidden] { display: none; }
.suggest-list button { display: block; width: 100%; text-align: left; border: 0; background: transparent; color: var(--ink); padding: 8px 12px; cursor: pointer; }
.suggest-list button:hover { background: var(--orange-soft); }
.branch-line { margin: 4px 0 18px; padding: 12px 14px; border-radius: 10px; background: var(--orange-soft); }
.grid-wrap { overflow-x: auto; margin: 24px 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.data-grid { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-grid th, .data-grid td { padding: 12px 14px; text-align: left; vertical-align: top; }
.data-grid th { position: sticky; top: 0; background: var(--orange-wash); color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-grid td { border-bottom: 1px solid var(--line); }
.data-grid tbody tr:last-child td { border-bottom: 0; }
.data-grid tbody tr.data-row { cursor: pointer; }
.data-grid tbody tr.data-row:hover td, .data-grid tbody tr.data-row:focus-visible td { background: var(--orange-soft); }
.data-grid tbody tr.data-row:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
.data-grid .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-grid .number { white-space: nowrap; }
.data-grid .number a { font-weight: 700; color: var(--orange-deep); }
.status-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--orange-soft); color: var(--orange-deep); font-weight: 700; font-size: 12px; white-space: nowrap; }
html.theme-dark input::placeholder { color: #8b949e; }
html.theme-dark .type-tab.active { background: #0d1117; color: var(--orange); }
html.theme-dark .errors { background: rgba(255, 122, 0, .12); color: #ffb088; }
