:root {
  --accent: #0a84ff;
  --accent-grad: linear-gradient(180deg, #0d6ad6, #0056c2);
  --ink: #f2f5fa;
  --ink-2: #ced5e1;
  --muted: #b6bfcd;
  --bg: #04070d;
  --wall: linear-gradient(140deg, #050b17 0%, #04070d 55%, #03100f 100%);
  --glass: #141a26eb;
  --card: #161c2af0;
  --line: #ffffff14;
  --line-2: #ffffff26;
  --good: #4fdc78;
  --warn: #ffb340;
  --bad: #ff6f66;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gap: 18px;
  --r-lg: 26px;
  --r-xl: 30px;
  --shadow: 0 1px 2px #0000004d, 0 20px 44px -22px #000000bf;
  --glow: inset 0 0 0 1px #ffffff14, inset 0 1px 0 #ffffff38, inset 0 18px 30px -24px #ffffff2e;
  --font: "Urbanist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --side: 84px;
  color-scheme: dark;
}

[data-theme="light"] {
  --accent: #007aff;
  --accent-grad: linear-gradient(180deg, #066cdf, #0056c2);
  --ink: #0b1220;
  --ink-2: #283142;
  --muted: #3f4757;
  --bg: #e7ecf3;
  --wall: linear-gradient(140deg, #dce8f8 0%, #edf2f9 45%, #e2f1ee 100%);
  --glass: #ffffffd4;
  --card: #ffffffd6;
  --line: #0f192d14;
  --line-2: #0f192d26;
  --good: #18753a;
  --warn: #975400;
  --bad: #c4261c;
  --shadow: 0 1px 1px #0f1e3c0a, 0 18px 40px -22px #0f1e3c61;
  --glow: inset 0 0 0 1px #ffffff59, inset 0 1px 0 #fffffff2, inset 0 -1px 0 #ffffff40, inset 0 18px 30px -24px #ffffffe6;
  --tile-1: #d6e8ff9e;
  --tile-2: #ffe5d49e;
  --tile-3: #fff0c8a3;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  min-height: 100%;
  /* Yazı ölçüsü: 14px / orta kalınlık (500) / 1.45 satır aralığı. */
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
input, select, textarea { font-size: 15px; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.skip {
  position: absolute; left: 12px; top: -40px; z-index: 20;
  background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 10px;
}
.skip:focus { top: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.bg { position: fixed; inset: 0; overflow: hidden; background: var(--wall); z-index: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(2px); animation: drift 22s var(--ease) infinite alternate; }
.orb-1 { width: 540px; height: 540px; left: -150px; top: 34%; background: radial-gradient(circle at 32% 28%, #6fb2ff 0%, #1471f0 34%, #0a3f9e 68%, #041d52 100%); }
.orb-2 { width: 300px; height: 300px; right: 70px; top: -70px; opacity: .85; background: radial-gradient(circle at 30% 28%, #ffd98a 0%, #e8932a 42%, #a2520c 80%, #5a2c05 100%); animation-duration: 18s; }
.orb-3 { width: 460px; height: 460px; right: -120px; bottom: -140px; background: radial-gradient(circle at 34% 30%, #9cefff 0%, #23b3cf 40%, #0b6d86 78%, #04384a 100%); animation-duration: 26s; }
.orb-4 { width: 200px; height: 200px; left: 46%; bottom: 8%; background: radial-gradient(circle at 34% 30%, #a6f5cf 0%, #2fbf85 42%, #137a55 80%, #073d2b 100%); }
.orb-5 { width: 150px; height: 150px; left: 60%; top: 52%; background: radial-gradient(circle at 30% 26%, #e6edf7 0%, #93a3b9 35%, #4b5a70 75%, #222b38 100%); }
[data-theme="light"] .orb { opacity: 1; filter: none; }
[data-theme="light"] .orb-1 { background: radial-gradient(circle at 32% 28%, #b9dcff 0%, #3b93ff 34%, #0a5ad6 68%, #06378f 100%); }
[data-theme="light"] .orb-2 { background: radial-gradient(circle at 30% 28%, #fff1cf 0%, #ffbf4d 40%, #f2861d 78%, #c2580b 100%); opacity: 1; }
[data-theme="light"] .orb-3 { background: radial-gradient(circle at 34% 30%, #dcfbff 0%, #5fd6ec 38%, #129cb6 76%, #0a6b86 100%); }
[data-theme="light"] .orb-4 { background: radial-gradient(circle at 34% 30%, #e1fff0 0%, #6fe3ae 42%, #1fae79 80%, #127a55 100%); }
[data-theme="light"] .orb-5 { background: radial-gradient(circle at 30% 26%, #fff 0%, #eef4fb 30%, #c9d6e6 70%, #9fb2c9 100%); }
[data-theme="light"] .glass,
[data-theme="light"] .card { backdrop-filter: blur(30px) saturate(2); -webkit-backdrop-filter: blur(30px) saturate(2); }
[data-theme="light"] .kpi { background: var(--tile-1); }
[data-theme="light"] .kpi:nth-child(2) { background: var(--tile-2); }
[data-theme="light"] .kpi:nth-child(3) { background: var(--tile-3); }
[data-theme="light"] .kpi p,
[data-theme="light"] .kpi small { color: #0b1220a8; }
[data-theme="light"] .delta--up { color: #146c3a; background: #ffffffd9; }
[data-theme="light"] .switch { background: #d7dee8; box-shadow: inset 0 0 0 1px #0f192d14; }
[data-theme="light"] .switch__thumb { background: #fff; }
[data-theme="light"] .pill { background: #ffffffd0; color: #283142; box-shadow: inset 0 0 0 1px #0f192d12; }
[data-theme="light"] .pill.is-on,
[data-theme="light"] .pill--accent.is-on,
[data-theme="light"] .chip.is-on { background: #007aff; color: #fff; }
[data-theme="light"] .tag--warn { color: #975400; background: #ff95002b; }
[data-theme="light"] .tag--info { color: #005ec4; background: #007aff1c; }
[data-theme="light"] .tag--good { color: #18753a; background: #34c75929; }
[data-theme="light"] .ok { color: #18753a; }
[data-theme="light"] .table tbody tr:hover { background: #0f192d0a; }
[data-theme="light"] .thumbs i { box-shadow: 0 0 0 2px #f7f9fc; }
[data-theme="light"] .av__dot { box-shadow: 0 0 0 2px #fff; }
[data-theme="light"] .field,
[data-theme="light"] .select { background: #ffffffd4; box-shadow: inset 0 0 0 1px #0f192d12; }
[data-theme="light"] .chip { background: #ffffffcc; color: #283142; box-shadow: inset 0 0 0 1px #0f192d10; }

@keyframes drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(14px, -18px, 0); }
}

.app { position: relative; z-index: 1; min-height: 100%; }

.glass {
  background: var(--glass);
  backdrop-filter: blur(30px) saturate(1.6);
  -webkit-backdrop-filter: blur(30px) saturate(1.6);
  box-shadow: var(--glow), var(--shadow);
}

.side {
  position: fixed; z-index: 5;
  left: 16px; top: 16px; bottom: 16px; width: var(--side);
  border-radius: var(--r-xl);
  display: flex; flex-direction: column; align-items: stretch;
  padding: 16px 12px 14px; gap: 10px;
  overflow: hidden;
  transition: width .45s var(--ease);
}
html.is-wide { --side: 248px; }
.side__head { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand__mark {
  width: 38px; height: 38px; border-radius: 13px; flex: none;
  display: grid; place-items: center;
  background: var(--accent-grad); color: #fff; font-weight: 700;
  box-shadow: inset 0 1px 0 #ffffff59, 0 10px 22px -12px #0a84ff;
}
.side__toggle {
  width: 28px; height: 28px; border: 0; border-radius: 10px; flex: none;
  background: transparent; color: var(--ink-2);
  display: grid; place-items: center;
  transition: background .35s var(--ease), color .35s var(--ease);
}
.side__toggle:hover { background: #ffffff14; color: var(--ink); }
[data-theme="light"] .side__toggle:hover { background: #0b12200e; }
.side__toggle svg { width: 18px; height: 18px; transition: transform .45s var(--ease); }
html:not(.is-wide) .side__toggle svg { transform: scaleX(-1); }
html.is-wide .side__head { flex-direction: row; justify-content: space-between; height: 38px; }
.side__search {
  height: 42px; width: 42px; align-self: center; border: 0; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #ffffff14; color: var(--muted); padding: 0; overflow: hidden;
  box-shadow: inset 0 0 0 1px #ffffff18;
  transition: width .45s var(--ease), background .35s var(--ease);
}
.side__search svg { width: 18px; height: 18px; flex: none; }
html.is-wide .side__search { width: 100%; justify-content: flex-start; padding: 0 12px; }
.kbd {
  margin-left: auto; font-family: inherit; font-size: 11px; font-weight: 700;
  border-radius: 7px; padding: 2px 6px; background: #ffffff18; color: var(--muted);
  max-width: 0; opacity: 0; overflow: hidden;
  transition: max-width .45s var(--ease), opacity .3s var(--ease);
}
html.is-wide .kbd { max-width: 64px; opacity: 1; }
[data-theme="light"] .side__search { background: #ffffffd0; box-shadow: inset 0 0 0 1px #0f192d12; }
[data-theme="light"] .kbd { background: #0f192d0e; }
.snav { flex: 1; display: flex; flex-direction: column; width: 100%; justify-content: space-between; min-height: 0; overflow: auto; scrollbar-width: none; }
.snav::-webkit-scrollbar { display: none; }
.snav__group { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.snav__label {
  max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap;
  font-weight: 650; font-size: 14px;
  transition: max-width .45s var(--ease), opacity .3s var(--ease);
}
html.is-wide .snav__label { max-width: 150px; opacity: 1; }
.snav__item {
  width: 42px; height: 40px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; gap: 0;
  color: var(--ink-2); overflow: hidden; flex: none; position: relative;
  font-size: 13.5px; font-weight: 600;
  transition: background .35s var(--ease), color .35s var(--ease), width .45s var(--ease), gap .45s var(--ease);
}
.snav__item svg { width: 20px; height: 20px; flex: none; color: var(--muted); }
.snav__item:hover svg, .snav__item.is-on svg { color: inherit; }
.side__group {
  height: 1px; margin: 6px 12px; padding: 0; background: var(--line-2); overflow: hidden;
}
.side__group span {
  display: none; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  font-weight: 700; color: var(--muted);
}
html.is-wide .side__group, html.is-drawer .side__group {
  height: auto; margin: 0; padding: 10px 12px 3px; background: none;
}
html.is-wide .side__group span, html.is-drawer .side__group span { display: block; }
.snav__count {
  display: block; position: absolute; top: 7px; right: 7px;
  width: 8px; height: 8px; min-width: 0; padding: 0; border-radius: 99px;
  background: var(--accent); color: transparent; font-size: 0;
  box-shadow: 0 0 0 2px #0e121b;
}
html.is-wide .snav__count, html.is-drawer .snav__count {
  position: static; margin-left: auto; width: auto; min-width: 22px; height: 20px;
  padding: 0 7px; font-size: 11px; font-weight: 700; color: #8cbcff;
  background: #0a84ff2e; box-shadow: none; display: inline-grid; place-items: center;
}
[data-theme="light"] .snav__count { box-shadow: 0 0 0 2px #fff; }
html.is-wide[data-theme="light"] .snav__count,
html.is-drawer[data-theme="light"] .snav__count,
[data-theme="light"] html.is-wide .snav__count { color: #005ec4; background: #007aff1c; box-shadow: none; }
.snav__item.is-on .snav__count { background: #fff; color: var(--accent); box-shadow: none; }
html.is-wide .snav__group { align-items: stretch; }
html.is-wide .snav__item { width: 100%; justify-content: flex-start; gap: 12px; padding: 0 12px; }
.snav__item:hover { background: #ffffff14; color: var(--ink); transform: translateY(-1px); }
[data-theme="light"] .snav__item:hover { background: #0b12200e; }
.snav__item.is-on { background: var(--accent); color: #fff; box-shadow: inset 0 1px 0 #ffffff40, 0 10px 18px -12px #0a84ff; }
.side__foot { display: flex; flex-direction: column; align-items: center; gap: 10px; }
html.is-wide .side__foot, html.is-drawer .side__foot {
  align-items: stretch; width: 100%; gap: 8px;
  border-top: 1px solid var(--line); padding-top: 10px;
}
.side__theme { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 36px; }
.theme__ico { display: none; width: 18px; height: 18px; color: var(--muted); flex: none; }
html.is-wide .theme__ico, html.is-drawer .theme__ico { display: block; }
html.is-wide .side__theme, html.is-drawer .side__theme { justify-content: flex-start; padding: 0 4px 0 10px; }
.side__me {
  border: 0; background: transparent; color: inherit;
  display: flex; align-items: center; justify-content: center; gap: 0;
  width: 42px; height: 42px; padding: 0; border-radius: 16px;
}
html.is-wide .side__me, html.is-drawer .side__me {
  width: 100%; height: auto; justify-content: flex-start; gap: 10px; padding: 8px;
  background: #ffffff14; box-shadow: inset 0 0 0 1px #ffffff18;
}
[data-theme="light"] .side__me { background: transparent; box-shadow: none; }
html.is-wide[data-theme="light"] .side__me,
html.is-drawer[data-theme="light"] .side__me,
[data-theme="light"] html.is-wide .side__me {
  background: #ffffff80; box-shadow: inset 0 0 0 1px #0f192d14;
}
.side__me:hover { background: #ffffff1f; }
.me__text { display: none; min-width: 0; flex: 1; text-align: left; }
html.is-wide .me__text, html.is-drawer .me__text { display: flex; flex-direction: column; }
.me__text b { font-size: 13.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me__text small { color: var(--muted); font-size: 12px; }
.me__chev { display: none; width: 16px; height: 16px; color: var(--muted); flex: none; }
html.is-wide .me__chev, html.is-drawer .me__chev { display: block; }
.switch {
  width: 44px; height: 26px; border: 0; border-radius: 99px; padding: 3px;
  background: #ffffff22; display: flex; align-items: center;
}
.switch__thumb {
  width: 20px; height: 20px; border-radius: 50%; background: #fff;
  transform: translateX(18px); transition: transform .45s var(--ease);
  box-shadow: 0 2px 6px #0006;
}
[data-theme="light"] .switch__thumb { transform: translateX(0); background: #fff; }
.switch[aria-checked="true"] { background: #30d158; }
.av {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: #d9c7a2; color: #2a2418; font-size: 12px; font-weight: 700;
  position: relative;
}
.av__dot, .live {
  width: 8px; height: 8px; border-radius: 50%; background: #30d158;
  box-shadow: 0 0 0 2px #0e121b;
}
.av__dot { position: absolute; right: -1px; bottom: -1px; }
.live { display: inline-block; box-shadow: 0 0 0 0 #30d15888; animation: breathe 2.4s ease-in-out infinite; }
@keyframes breathe {
  50% { transform: scale(1.25); box-shadow: 0 0 0 4px #30d15822; }
}

.top {
  margin-left: calc(var(--side) + 32px);
  padding: 22px 28px 0 8px;
  transition: margin-left .45s var(--ease);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
}
.top__hello { display: flex; flex-direction: column; gap: 4px; }
.top__hello strong { font-size: 22px; font-weight: 650; letter-spacing: -.02em; }
.top__day { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 8px; }
.top__tools { display: flex; align-items: center; gap: 10px; }
.ibtn {
  width: 42px; height: 42px; border-radius: 13px; border: 0;
  background: #ffffff14; color: var(--ink);
  display: grid; place-items: center; position: relative;
  box-shadow: inset 0 0 0 1px #ffffff1a;
  transition: transform .35s var(--ease), background .35s var(--ease);
}
[data-theme="light"] .ibtn { background: #ffffffa8; box-shadow: inset 0 0 0 1px #ffffff, var(--shadow); }
.ibtn:hover { transform: translateY(-1px); }
.ibtn--sm { width: 32px; height: 32px; }
.ibtn--sm svg { width: 16px; height: 16px; }
.ibtn__badge {
  position: absolute; top: 5px; right: 5px;
  min-width: 17px; height: 17px; padding: 0 4px; border-radius: 99px;
  background: var(--accent); color: #fff; font-size: 10px; font-weight: 700;
  display: grid; place-items: center;
  box-shadow: 0 0 0 2px #121820;
}
[data-theme="light"] .ibtn__badge { box-shadow: 0 0 0 2px #fff; }
.btn:active, .ibtn:active, .menu__item:active, .notice:active { transform: scale(.98); }
.btn {
  border: 0; height: 40px; padding: 0 16px; border-radius: 99px;
  display: inline-flex; align-items: center; gap: 8px; font-weight: 650;
}
.btn svg { width: 16px; height: 16px; }
.btn--primary {
  background: var(--accent-grad); color: #fff;
  box-shadow: inset 0 1px 0 #ffffff59, 0 10px 22px -10px #0a84ff88;
  transition: transform .35s var(--ease), filter .35s var(--ease);
}
.btn--primary:hover { transform: translateY(-1px); filter: brightness(1.06); }

.content { margin-left: calc(var(--side) + 32px); padding: 18px 28px 48px 8px; transition: margin-left .45s var(--ease); }
.db { display: flex; flex-direction: column; gap: var(--gap); }
.db-upper { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--gap); align-items: stretch; }
.db-side { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
.db-row { display: grid; gap: var(--gap); }
.db-row--3 { grid-template-columns: 1.15fr 1.15fr .9fr; }
.db-row--2 { grid-template-columns: minmax(0, 1fr) 340px; }

.card {
  position: relative;
  background: var(--card);
  backdrop-filter: blur(30px) saturate(1.5);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
  border-radius: var(--r-lg);
  box-shadow: var(--glow), var(--shadow);
  padding: 18px 18px 16px;
  min-width: 0;
  animation: stamp-in .7s var(--ease) both;
  isolation: isolate; /* parlama katmanı (::before) içeriğin ARKASINDA kalsın */
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(rgba(255, 255, 255, .08), transparent 42%);
}
[data-theme="light"] .card::before {
  background: linear-gradient(rgba(255, 255, 255, .55), rgba(255, 255, 255, .18) 36%, rgba(255, 255, 255, .1) 100%);
}
.db-studio { animation-delay: .02s; }
.db-goal { animation-delay: .08s; }
.db-live { animation-delay: .14s; }
.db-queue { animation-delay: .18s; }
.db-low { animation-delay: .24s; }
.db-ch { animation-delay: .3s; }
.db-orders { animation-delay: .34s; }
.db-top { animation-delay: .4s; }
@keyframes stamp-in {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: none; }
}

.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 8px; }
.kpi {
  background: linear-gradient(180deg, #0a469666, #0a469622);
  border-radius: 18px; padding: 14px 16px 12px;
  display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: center;
}
.kpi:nth-child(2) { background: linear-gradient(180deg, #823e1a55, #823e1a22); }
.kpi:nth-child(3) { background: linear-gradient(180deg, #0e644c55, #0e644c22); }
.kpi p, .kpi small { grid-column: 1 / -1; margin: 0; }
.kpi p { color: var(--muted); font-size: 13px; }
.kpi strong { font-size: 28px; letter-spacing: -.03em; font-weight: 650; }
.kpi small { color: var(--muted); font-size: 12px; margin-top: 2px; }
.delta {
  justify-self: start; font-size: 12px; font-weight: 700;
  padding: 3px 8px; border-radius: 99px;
}
.delta--up { color: #8fdcb1; background: #00000040; }
[data-theme="light"] .delta--up { color: #146c3a; background: #ffffff99; }

.chead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.chead h2 { margin: 0; font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
.chead p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.chead__tools { display: flex; align-items: center; gap: 8px; }
.chead--pad { padding: 4px 4px 0; }
.link { color: var(--accent); font-size: 13px; font-weight: 650; }
.pill {
  border: 0; background: #ffffff14; color: var(--ink-2);
  border-radius: 99px; height: 32px; padding: 0 12px; font-size: 13px; font-weight: 650;
  box-shadow: inset 0 0 0 1px #ffffff14;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.pill:hover { color: var(--ink); }
.pill--accent.is-on, .pill.is-on { background: var(--accent); color: #fff; }
.seg { display: flex; padding: 3px; border-radius: 99px; background: #ffffff10; gap: 2px; }
[data-theme="light"] .seg { background: #0b12200d; }
.seg button {
  border: 0; background: transparent; color: var(--muted);
  height: 28px; padding: 0 10px; border-radius: 99px; font-weight: 700; font-size: 12px;
}
.seg button.is-on { background: #ffffff22; color: var(--ink); }
[data-theme="light"] .seg button.is-on { background: #fff; box-shadow: 0 1px 4px #0b122018; }

.chart { height: 250px; margin-top: 8px; }
.chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .label { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.chart .area { fill: url(#areaFill); stroke: none; }
.chart .line { fill: none; stroke: #3d9bff; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.chart .ghost { fill: none; stroke: #ffffff55; stroke-width: 1.6; stroke-dasharray: 4 5; }
[data-theme="light"] .chart .ghost { stroke: #0b122055; }
.tip {
  position: fixed; z-index: 8; pointer-events: none;
  background: #f4eeebf2; color: #1e1a19; border-radius: 12px;
  padding: 8px 10px; font-size: 12px; font-weight: 650;
  box-shadow: var(--shadow); transform: translate(-50%, -130%);
}

.goal { display: flex; gap: 16px; align-items: center; margin-top: 16px; }
.ring { width: 132px; height: 132px; position: relative; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: #ffffff18; stroke-width: 10; }
.ring__val {
  stroke: #3d9bff; stroke-width: 10; stroke-linecap: round;
  stroke-dasharray: 289;
  stroke-dashoffset: calc(289 - (289 * var(--p) / 100));
  animation: ring .9s var(--ease) .2s both;
}
@keyframes ring { from { stroke-dashoffset: 289; } }
.ring div { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; }
.ring strong { font-size: 22px; }
.ring span { color: var(--muted); font-size: 12px; }
.goal__stats { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.goal__stats div { display: flex; flex-direction: column; }
.goal__stats dt { color: var(--muted); font-size: 12px; }
.goal__stats dd { margin: 0; font-weight: 700; }

.livebox { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 12px; }
.livebox strong { font-size: 40px; letter-spacing: -.04em; display: block; line-height: 1; }
.livebox span { color: var(--muted); font-size: 13px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 54px; }
.bars i {
  width: 5px; border-radius: 99px; background: linear-gradient(#64d2ff, #0a84ff);
  transform-origin: bottom; animation: grow .7s var(--ease) both;
}
@keyframes grow { from { transform: scaleY(.2); opacity: .3; } }
.facts { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.facts li { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.facts span { color: var(--muted); }
.ok { margin: 12px 0 0; color: #8fdcb1; font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.ok i { width: 8px; height: 8px; border-radius: 50%; background: #30d158; }

.queue, .lows, .channels, .tops { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.queue li, .lows li { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; }
.queue b, .lows b, .tops b { display: block; font-size: 14px; }
.queue small, .lows small, .tops small { color: var(--muted); font-size: 12px; }
.queue em { font-style: normal; font-weight: 700; font-size: 13px; }
.av--sm { width: 32px; height: 32px; font-size: 11px; background: var(--av, #7eb6ff); color: #102033; }
.dot { width: 28px; height: 28px; border-radius: 9px; background: color-mix(in srgb, var(--c) 30%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 70%, transparent); }
.meter { width: 54px; height: 6px; border-radius: 99px; background: #ffffff18; display: block; overflow: hidden; }
.meter span { display: block; height: 100%; background: #ffb340; border-radius: inherit; }
.channels li { display: grid; grid-template-columns: 92px 1fr 36px 88px; gap: 8px; align-items: center; font-size: 13px; }
.channels i { height: 8px; border-radius: 99px; background: #ffffff14; display: block; overflow: hidden; }
.channels b { display: block; height: 100%; background: #0a84ff; border-radius: inherit; transform-origin: left; animation: bar .8s var(--ease) both; }
@keyframes bar { from { transform: scaleX(0); } }
.channels em { font-style: normal; color: var(--muted); }
.channels strong { text-align: right; }

.card--flush { padding: 16px 8px 8px; }
.table-wrap { overflow: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; color: var(--muted); font-weight: 650; font-size: 12px; padding: 8px 12px; }
.table td { padding: 10px 12px; border-top: 1px solid var(--line); white-space: nowrap; }
.table tr { cursor: pointer; transition: background .3s var(--ease); }
.table tbody tr:hover { background: #ffffff0d; }
.who { display: flex; align-items: center; gap: 8px; }
.who small { display: block; }
.tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 8px;
  border-radius: 99px; font-size: 12px; font-weight: 700;
}
.tag--warn { color: #ffd18a; background: #ffb34026; }
.tag--info { color: #9cc9ff; background: #0a84ff2e; }
.tag--good { color: #8fdcb1; background: #30d15826; }
.thumbs { display: flex; }
.thumbs i { width: 22px; height: 22px; border-radius: 7px; margin-left: -6px; box-shadow: 0 0 0 2px #12161f; }
.thumbs i:first-child { margin-left: 0; }

.tops { counter-reset: none; }
.tops li { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; }
.tops .n { color: var(--muted); font-weight: 700; }
.tops .qty {
  min-width: 42px; height: 28px; border-radius: 9px; display: grid; place-items: center;
  background: #ffffff12; font-weight: 700;
}

.db-foot { margin: 0; color: var(--muted); font-size: 12.5px; }

.scrim {
  position: fixed; inset: 0; z-index: 23;
  background: #0008; display: grid; place-items: start center; padding-top: 14vh;
}
.scrim[hidden] { display: none; }
.palette { width: min(560px, calc(100% - 32px)); border-radius: 22px; padding: 14px; }
.input {
  width: 100%; height: 46px; border: 0; border-radius: 14px; padding: 0 14px;
  background: #00000022; outline: none; box-shadow: inset 0 0 0 1px #ffffff1a;
}
.palette ul { list-style: none; margin: 8px 0 0; padding: 0; }
.palette li { padding: 10px 12px; border-radius: 12px; display: flex; justify-content: space-between; cursor: pointer; }
.palette li:hover, .palette li.is-on { background: #ffffff12; }
.palette small { color: var(--muted); }

.toasts {
  position: fixed; left: 50%; bottom: 22px; z-index: 40; transform: translateX(-50%);
  width: min(440px, calc(100vw - 24px));
  display: flex; flex-direction: column; align-items: stretch; gap: 8px; pointer-events: none;
}
.toast {
  pointer-events: auto;
  background: #1e1a19eb; color: #f6efec; border-radius: 15px;
  padding: 12px 12px 12px 16px;
  display: flex; align-items: center; gap: 12px;
  font-size: 13.5px; font-weight: 600;
  box-shadow: 0 18px 40px -24px #000a;
  backdrop-filter: blur(16px);
  animation: toast-in .45s var(--ease);
}
[data-theme="dark"] .toast { background: #f4eeebf0; color: #1e1a19; }
.toast.is-out { animation: toast-out .28s var(--ease) forwards; }
.toast svg { width: 18px; height: 18px; flex: none; color: #8fdcb1; }
[data-theme="dark"] .toast svg { color: #18753a; }
.toast.is-warn svg { color: #f0b860; }
[data-theme="dark"] .toast.is-warn svg { color: #975400; }
.toast.is-bad svg { color: #ffb4ae; }
[data-theme="dark"] .toast.is-bad svg { color: #c4261c; }
.toast span { flex: 1; min-width: 0; }
.toast b { display: block; }
.toast p { margin: 2px 0 0; font-weight: 500; font-size: 12.5px; opacity: .78; }
.toast__act {
  height: 30px; border: 0; border-radius: 9px; padding: 0 12px; flex: none;
  background: #ffffff24; color: inherit; font-weight: 700; font-size: 12.5px;
}
[data-theme="dark"] .toast__act { background: #1e1a1914; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

.top__menu { display: none; }
.gate {
  position: fixed; inset: 0; z-index: 30;
  display: grid; place-items: center; padding: 24px;
}
html:not(.is-guest) .gate { display: none; }
html.is-guest .app { filter: blur(10px); pointer-events: none; user-select: none; }
.gate__card {
  width: min(420px, 100%); border-radius: 28px; padding: 28px 26px 22px;
  display: flex; flex-direction: column; gap: 12px;
  animation: stamp-in .6s var(--ease);
}
.gate__card h1 { margin: 10px 0 0; font-size: 30px; letter-spacing: -.03em; font-weight: 650; }
.gate__card p { margin: 0 0 6px; color: var(--muted); }
.gate__card label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.gate__card .field { width: 100%; height: 46px; min-width: 0; }
.gate__card .btn { height: 46px; justify-content: center; margin-top: 4px; }
.check { flex-direction: row !important; align-items: center; gap: 8px !important; }
.pass { position: relative; display: block; }
.pass .field { padding-right: 42px; }
.pass__eye {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border: 0; border-radius: 10px; background: transparent; color: var(--muted);
  display: grid; place-items: center;
}
.pass__eye svg { width: 18px; height: 18px; }
.pass__eye:hover { background: #0a84ff14; color: var(--ink); }
.check input {
  appearance: none; width: 16px; height: 16px; margin: 0; border-radius: 5px; flex: none;
  box-shadow: inset 0 0 0 1.5px #0f192d33; background: #fff;
}
[data-theme="dark"] .check input { background: #ffffff14; box-shadow: inset 0 0 0 1.5px #ffffff40; }
.check input:checked {
  background: var(--accent) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3.5 8.2 6.4 11 12.5 5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 14px no-repeat;
  box-shadow: none;
}
.gate__card.is-shake { animation: shake .4s var(--ease); }
@keyframes shake {
  20% { transform: translateX(-6px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}

.pop {
  position: fixed; z-index: 24;
  min-width: 220px; max-width: calc(100vw - 20px);
  border-radius: 16px; padding: 6px;
  background: #121820d6;
  backdrop-filter: blur(30px) saturate(1.7);
  -webkit-backdrop-filter: blur(30px) saturate(1.7);
  box-shadow: 0 2px 6px #00000024, 0 40px 80px -28px #0000008c, inset 0 0 0 1px #ffffff18;
  animation: pop-in .28s var(--ease);
}
[data-theme="light"] .pop {
  background: #f8fafdd6;
  box-shadow: 0 2px 6px #0f1e3c14, 0 40px 80px -28px #0f1e3c73, inset 0 0 0 1px #0f192d14;
}
.pop[hidden] { display: none !important; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(.96); } to { opacity: 1; transform: none; } }
.menu__label {
  padding: 8px 10px 4px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); font-weight: 700;
}
.menu__item {
  width: 100%; border: 0; background: transparent; color: var(--ink);
  display: flex; align-items: center; gap: 10px;
  height: 38px; border-radius: 10px; padding: 0 10px;
  font-size: 13.5px; font-weight: 600; text-align: left; white-space: nowrap;
}
.menu__item svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.menu__item:hover, .menu__item:focus-visible { background: #ffffff14; outline: none; }
[data-theme="light"] .menu__item:hover, [data-theme="light"] .menu__item:focus-visible { background: #0f192d0c; }
.menu__item.is-on, .menu__item.is-on svg { color: var(--accent); }
.menu__item--bad, .menu__item--bad svg { color: var(--bad); }
.menu__item--bad:hover { background: #ff3b3014; }
.menu__sep { height: 1px; background: var(--line); margin: 6px 4px; }
.menu__kbd, .tick { margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 700; }
.notices { width: min(380px, calc(100vw - 20px)); max-height: min(480px, calc(100vh - 24px)); display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.notices__head { display: flex; align-items: center; padding: 14px 16px 10px; }
.notices__head b { flex: 1; font-size: 15px; font-weight: 650; }
.notices__list { overflow: auto; max-height: 420px; padding: 0 6px 6px; }
.notices__empty { margin: 8px 12px 16px; color: var(--muted); font-size: 13px; }
.linkbtn { border: 0; background: transparent; color: var(--accent); font-weight: 700; font-size: 13.5px; padding: 4px; }
.notice {
  width: 100%; border: 0; background: transparent; color: inherit;
  display: flex; gap: 12px; text-align: left; padding: 10px; border-radius: 12px;
}
.notice:hover { background: #ffffff12; }
[data-theme="light"] .notice:hover { background: #0f192d0a; }
.notice__ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.notice__ico svg { width: 18px; height: 18px; }
.notice__text { flex: 1; min-width: 0; }
.tone--warn { background: #ffb34026; color: var(--warn); }
.tone--accent { background: #0a84ff22; color: var(--accent); }
.tone--bad { background: #ff696126; color: var(--bad); }
.tone--good { background: #30d15822; color: var(--good); }
.tone--info { background: #5ac8fa26; color: #3aa0c8; }
.notice b { display: block; font-size: 13.5px; font-weight: 650; }
.notice p { margin: 2px 0; color: var(--muted); font-size: 12.5px; font-weight: 500; line-height: 1.35; }
.notice small { color: var(--muted); font-size: 12px; }
.notice.is-unread b::after {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  display: inline-block; margin-left: 6px; vertical-align: middle;
}
.sheet { left: 12px; right: 12px; bottom: 84px; width: auto; }
.tabbar {
  display: none; position: fixed; z-index: 8;
  left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
  height: 66px; border-radius: 99px; padding: 6px;
  grid-template-columns: repeat(5, 1fr);
  transition: transform .45s var(--ease), opacity .3s var(--ease);
}
.tabbar a, .tabbar button {
  border: 0; background: transparent; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 11px; font-weight: 600; border-radius: 99px; height: 54px;
}
.tabbar svg { width: 18px; height: 18px; }
.tabbar .is-on { color: #fff; background: var(--accent); }
[data-theme="light"] .tabbar .is-on { color: #fff; }
.drawer-scrim {
  position: fixed; inset: 0; z-index: 20; border: 0; padding: 0;
  background: #0b122066;
}
.drawer-scrim[hidden] { display: none; }
.keys h2 { margin: 4px 10px 8px; font-size: 18px; }
.palette kbd {
  font-family: inherit; font-size: 12px; font-weight: 700; color: var(--muted);
  background: #ffffff18; border-radius: 7px; padding: 2px 6px;
}
[data-theme="light"] .palette kbd { background: #0f192d0e; }

@media (max-width: 1280px) {
  .db-row--3 { grid-template-columns: 1fr 1fr; }
  .db-ch { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .db-upper, .db-row--2, .db-row--3 { grid-template-columns: 1fr; }
  .db-ch { grid-column: auto; }
}
@media (max-width: 760px) {
  .top__menu { display: grid; }
  .side {
    top: 0; bottom: 0; left: 0; right: auto; width: min(292px, 88vw); height: auto;
    flex-direction: column; padding: 18px 14px 16px;
    border-radius: 0 28px 28px 0;
    transform: translateX(-110%);
    z-index: 21;
    transition: transform .45s var(--ease);
  }
  html.is-drawer .side { transform: translateX(0); }
  html.is-drawer .snav__label, html.is-drawer .kbd { max-width: 160px; opacity: 1; }
  html.is-drawer .snav__group { align-items: stretch; }
  html.is-drawer .snav__item,
  html.is-drawer .side__search { width: 100%; justify-content: flex-start; gap: 12px; padding: 0 12px; }
  html.is-drawer .side__head { flex-direction: row; justify-content: space-between; height: 38px; }
  html.is-drawer .side__foot { flex-direction: column; align-items: stretch; width: 100%; }
  html.is-drawer .side__me { gap: 10px; width: 100%; height: auto; justify-content: flex-start; padding: 8px; }
  .snav, .snav__group { flex-direction: column; }
  .tabbar { display: grid; }
  html.is-drawer .drawer-scrim { left: min(292px, 88vw); }
  html.is-drawer .tabbar { transform: translateY(140%); opacity: 0; pointer-events: none; }
  .top, .content { margin-left: 0; padding-left: 16px; padding-right: 16px; }
  .content { padding-bottom: 96px; }
  .kpis { grid-template-columns: 1fr; }
  .top__hello strong { font-size: 18px; }
  .chead { flex-direction: column; align-items: flex-start; }
  .toasts { left: 12px; right: 12px; bottom: calc(86px + env(safe-area-inset-bottom)); width: auto; transform: none; }
  .toast { min-width: 0; }
  #create { width: 40px; padding: 0; justify-content: center; }
  #create .btn__label { display: none; }
}

[hidden] { display: none !important; }
.page { display: flex; flex-direction: column; gap: 16px; }
.phead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.phead h1 { margin: 8px 0 0; font-size: 34px; letter-spacing: -.03em; font-weight: 650; color: var(--ink); }
.phead p { margin: 6px 0 0; color: var(--muted); }
.phead__actions { display: flex; gap: 8px; }
.btn--ghost {
  background: #ffffff18; color: var(--ink);
  box-shadow: inset 0 0 0 1px #ffffff22;
}
[data-theme="light"] .btn--ghost { background: #ffffffd0; box-shadow: inset 0 0 0 1px #0f192d12; }
.tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 8px 0 12px; color: var(--muted); font-weight: 650; position: relative; }
.tabs a.is-on { color: var(--ink); }
.tabs a.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); border-radius: 2px; }
.count { margin-left: 6px; font-style: normal; background: #ffffff18; border-radius: 99px; padding: 1px 6px; font-size: 12px; }
[data-theme="light"] .count { background: #0f192d10; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; }
.field, .select, .input {
  transition: box-shadow .25s var(--ease);
}
.field:focus, .select:focus, .input:focus { box-shadow: inset 0 0 0 1.5px var(--accent); }
.field, .select {
  height: 40px; border: 0; border-radius: 14px; padding: 0 12px;
  background: #ffffff14; color: var(--ink); box-shadow: inset 0 0 0 1px #ffffff18;
}
.field { min-width: 220px; }
.field--wide { width: min(520px, 100%); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 0; height: 32px; padding: 0 12px; border-radius: 99px;
  background: #ffffff14; color: var(--ink-2); font-weight: 650;
}
.chip.is-on { background: var(--accent); color: #fff; }
.sum { margin: 4px 12px 0; color: var(--muted); font-size: 13px; }
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pcard {
  text-align: left; border: 0; border-radius: 22px; padding: 0 0 14px;
  background: var(--card); color: var(--ink); box-shadow: var(--glow), var(--shadow);
  backdrop-filter: blur(30px) saturate(1.6); overflow: hidden; position: relative;
  transition: transform .35s var(--ease);
}
.pcard:hover { transform: translateY(-2px); }
[data-theme="light"] .pcard { background: #ffffffd9; }
.pcard__flag { position: absolute; top: 12px; left: 12px; font-size: 12px; font-weight: 700; background: #ffffffd0; color: #0b1220; border-radius: 99px; padding: 3px 8px; }
.pcard__art { height: 132px; display: grid; place-items: center; }
.pcard__art svg { width: 42px; height: 42px; stroke: #283142; }
.pcard__meta, .pcard small { color: var(--muted); font-size: 12.5px; }
.pcard__meta { display: block; padding: 12px 14px 0; }
.pcard strong { display: block; padding: 2px 14px 0; font-size: 16px; }
.pcard__row { display: flex; justify-content: space-between; padding: 8px 14px 0; }
.lgrid, .hgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lcard header, .lcard { display: flex; flex-direction: column; gap: 6px; }
.lcard { background: var(--card); border-radius: 22px; padding: 16px; box-shadow: var(--glow), var(--shadow); }
.lcard header { flex-direction: row; justify-content: space-between; align-items: center; }
.lcard p, .lcard small, .help p { margin: 0; color: var(--muted); }
.meter--wide { width: 100%; margin-top: 8px; }
.inbox { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 14px; min-height: 460px; }
.threads { display: flex; flex-direction: column; }
.thread {
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center;
  border: 0; background: transparent; color: inherit; text-align: left; padding: 12px;
  border-bottom: 1px solid var(--line);
}
.thread.is-on { background: #007aff14; }
.thread small { display: block; color: var(--muted); }
.thread em { font-style: normal; color: var(--muted); font-size: 12px; }
.talk { display: flex; flex-direction: column; gap: 12px; }
.bubbles { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bubble { margin: 0; max-width: 80%; background: #ffffff18; border-radius: 16px; padding: 10px 12px; }
.bubble--me { align-self: flex-end; background: #007aff22; }
[data-theme="light"] .bubble { background: #ffffffcc; }
[data-theme="light"] .bubble--me { background: #d6e8ff; }
.composer { display: flex; gap: 8px; }
.composer .field { flex: 1; }
.vbars { height: 180px; display: flex; align-items: flex-end; gap: 8px; margin-top: 16px; }
.vbars i { flex: 1; border-radius: 8px 8px 3px 3px; background: linear-gradient(#5ac8fa, #007aff); transform-origin: bottom; animation: grow .7s var(--ease) both; }
.form { display: flex; flex-direction: column; gap: 12px; }
.form h2, .help h2 { margin: 0; font-size: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.form .field, .form .select { width: 100%; }
.hint { margin: 0; color: var(--muted); font-size: 13px; }
.tag--bad { color: #ffb4ae; background: #ff696126; }
[data-theme="light"] .tag--bad { color: #c4261c; background: #ff3b301f; }

@media (max-width: 1100px) {
  .pgrid, .lgrid, .hgrid, .inbox { grid-template-columns: 1fr; }
}

.veil { position: fixed; inset: 0; z-index: 50; background: #0b122059; }
.veil[hidden], .drawer[hidden], .modal-wrap[hidden] { display: none !important; }
.drawer {
  position: fixed; z-index: 61; top: 10px; right: 10px; bottom: 10px;
  width: min(480px, calc(100vw - 20px));
  border-radius: 30px; overflow: hidden;
  display: flex; flex-direction: column;
  background: #121820f0;
  backdrop-filter: blur(30px) saturate(1.7);
  box-shadow: var(--glow), 0 40px 80px -28px #000a;
  animation: drawer-in .45s var(--ease);
}
[data-theme="light"] .drawer, [data-theme="light"] .modal { background: #f8fafdf2; }
@keyframes drawer-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
.drawer__head, .modal__head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 14px 6px 20px; }
.drawer__head h2, .modal__head h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.drawer__head p, .modal__head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.drawer__body, .modal__body { flex: 1; overflow: auto; padding: 8px 20px 12px; }
.drawer__foot, .formfoot {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 12px 16px 16px; border-top: 1px solid var(--line);
}
.dhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dhead__fig { font-size: 22px; letter-spacing: -.02em; }
.steps { list-style: none; display: flex; gap: 0; margin: 16px 0 8px; padding: 0; }
.steps li { position: relative; flex: 1; text-align: center; color: var(--muted); font-size: 11px; font-weight: 700; }
.steps li:not(:last-child)::before {
  content: "";
  position: absolute; top: 5px; left: calc(50% + 10px); width: calc(100% - 20px); height: 2px;
  border-radius: 2px; background: #0f192d18;
}
.steps li.is-done:not(:last-child)::before { background: var(--accent); }
[data-theme="dark"] .steps li:not(:last-child)::before { background: #ffffff22; }
[data-theme="dark"] .steps li.is-done:not(:last-child)::before { background: var(--accent); }
.steps__dot {
  position: relative; z-index: 1;
  width: 12px; height: 12px; border-radius: 50%; margin: 0 auto 6px;
  background: #0f192d22;
}
[data-theme="dark"] .steps__dot { background: #ffffff22; }
.steps li.is-done .steps__dot { background: var(--accent); }
.steps li.is-now .steps__dot { background: var(--accent); box-shadow: 0 0 0 4px #007aff33; }
.section-label {
  margin: 16px 0 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); font-weight: 700;
}
.dline, .dcust {
  display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 14px; color: inherit;
}
.dline:hover, .dcust:hover { background: #0a84ff10; }
.pthumb {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: grid; place-items: center; background: #d6e8ff; color: #007aff;
}
.pthumb svg { width: 20px; height: 20px; }
.cell__text { flex: 1; min-width: 0; }
.cell__text b, .cell__text small { display: block; }
.cell__text small { color: var(--muted); font-size: 12.5px; }
.dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 4px 8px 0; }
.dl dt { color: var(--muted); }
.dl .ink { font-weight: 700; color: var(--ink); }
.modal-wrap {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px;
  background: #0b122059;
}
.modal {
  width: min(520px, 100%); max-height: calc(100dvh - 40px);
  border-radius: 28px; overflow: hidden;
  display: flex; flex-direction: column;
  background: #121820f0; backdrop-filter: blur(30px) saturate(1.7);
  box-shadow: var(--glow), 0 40px 80px -28px #000a;
  animation: stamp-in .4s var(--ease);
}
.modal--wide { width: min(680px, 100%); }
.modal__body { display: flex; flex-direction: column; gap: 12px; }
.line-edit { display: grid; grid-template-columns: minmax(0, 1fr) 64px 96px 42px; gap: 8px; align-items: center; }
.line-edit .field { min-width: 0; width: 100%; }
.modal__body > .btn { align-self: flex-start; }
.pager {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 12px 14px; color: var(--muted); font-size: 13px;
}
.pager__n, .tickbox { accent-color: var(--accent); }
.pager__n {
  width: 32px; height: 32px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font-weight: 700;
}
.pager__n.is-on { background: var(--accent); color: #fff; }
.tickbox { width: 16px; height: 16px; }
.lcard[data-open] { cursor: pointer; }
@media (max-width: 760px) {
  .drawer { left: 8px; right: 8px; width: auto; top: auto; height: min(86dvh, 720px); border-radius: 24px 24px 18px 18px; }
  .line-edit { grid-template-columns: 1fr 64px 36px; }
  .line-edit .field:nth-child(3) { grid-column: 1 / -2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
