:root {
  --paper: #f4f4ef;
  --paper-raised: #fbfbf8;
  --paper-inset: #ecece5;
  --ink: #1d2823;
  --ink-secondary: #526159;
  --ink-tertiary: #7e8983;
  --ink-muted: #a3aaa6;
  --leaf: #236748;
  --leaf-hover: #19583c;
  --leaf-soft: #dfeae2;
  --moss: #8ea48f;
  --amber: #aa6d18;
  --amber-soft: #f2e8d5;
  --danger: #a84835;
  --line: rgba(29, 40, 35, 0.12);
  --line-soft: rgba(29, 40, 35, 0.07);
  --shadow: 0 0 0 1px rgba(29, 40, 35, 0.05), 0 2px 6px rgba(29, 40, 35, 0.04), 0 14px 34px rgba(29, 40, 35, 0.04);
  --radius-small: 8px;
  --radius-medium: 14px;
  --radius-large: 22px;
  --font-ui: "Public Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--paper); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 4%, rgba(142, 164, 143, 0.09), transparent 27rem),
    var(--paper);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.app-shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 20px 20px;
  border-right: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 28px; }
.brand strong, .brand span { display: block; }
.brand strong { font-size: 15px; letter-spacing: -0.01em; }
.brand span { margin-top: 2px; color: var(--ink-tertiary); font-size: 11px; }
.brand-mark { position: relative; width: 34px; height: 34px; border-radius: 11px; background: var(--leaf); overflow: hidden; }
.brand-mark span { position: absolute; width: 16px; height: 10px; background: #dce9df; border-radius: 100% 0 100% 0; transform: rotate(-28deg); }
.brand-mark span:first-child { left: 6px; top: 9px; }
.brand-mark span:last-child { right: 4px; bottom: 7px; transform: rotate(152deg); opacity: .7; }

nav { display: grid; gap: 4px; }
.nav-item {
  width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: var(--radius-small);
  color: var(--ink-secondary); background: transparent; text-align: left; cursor: pointer;
  display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600;
  transition: background-color 160ms, color 160ms, transform 120ms;
}
.nav-item:hover { background: rgba(35, 103, 72, 0.06); color: var(--ink); }
.nav-item:active { transform: scale(.98); }
.nav-item.is-active { background: var(--leaf-soft); color: var(--leaf); }
.nav-dot { width: 6px; height: 6px; border: 1.5px solid currentColor; border-radius: 50%; }
.nav-item.is-active .nav-dot { background: currentColor; box-shadow: 0 0 0 4px rgba(35, 103, 72, 0.09); }

.connection-card { margin-top: auto; padding: 16px; border: 1px solid var(--line-soft); border-radius: var(--radius-medium); background: rgba(251, 251, 248, .68); }
.eyebrow, .section-label { color: var(--ink-tertiary); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.connection-status { display: flex; align-items: center; gap: 8px; margin-top: 9px; font-size: 12px; font-weight: 600; }
.connection-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }
.connection-card p { margin: 10px 0 0; color: var(--ink-tertiary); font-size: 11px; line-height: 1.55; }
.connection-button { min-height: 32px; width: 100%; margin-top: 12px; border: 0; border-radius: 7px; color: var(--leaf); background: var(--leaf-soft); cursor: pointer; font-size: 10px; font-weight: 700; transition: background-color 160ms, transform 120ms; }
.connection-button:hover { background: #d4e3d8; }
.connection-button:active { transform: scale(.98); }
.connection-status.is-ready i { background: var(--leaf); box-shadow: 0 0 0 4px var(--leaf-soft); }
.connection-status.is-error i { background: var(--danger); box-shadow: 0 0 0 4px rgba(168, 72, 53, .12); }

main { padding: 32px clamp(24px, 5vw, 72px) 64px; overflow: hidden; }
.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.kicker { margin: 0 0 6px; color: var(--ink-tertiary); font-size: 11px; font-weight: 600; }
h1, h2, h3, p { text-wrap: pretty; }
h1 { margin: 0; font-size: 28px; line-height: 1.15; letter-spacing: -.045em; }
h2 { margin: 5px 0 0; font-size: 18px; line-height: 1.3; letter-spacing: -.025em; }
h3 { margin: 0; font-size: 13px; }
.header-actions, .table-actions { display: flex; align-items: center; gap: 8px; }
.sync-time { color: var(--ink-tertiary); font-size: 10px; font-variant-numeric: tabular-nums; }
.days-control { min-height: 40px; display: inline-flex; align-items: center; gap: 7px; padding: 0 10px; color: var(--ink-secondary); background: var(--paper-raised); border: 1px solid var(--line); border-radius: var(--radius-small); font-size: 11px; font-weight: 600; }
.days-control input { width: 52px; height: 28px; padding: 0 6px; color: var(--ink); background: var(--paper-inset); border: 1px solid transparent; border-radius: 4px; text-align: center; font-variant-numeric: tabular-nums; outline: 0; }
.days-control input:focus { border-color: rgba(35, 103, 72, .42); box-shadow: 0 0 0 3px rgba(35, 103, 72, .09); }

.pool-switch { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 16px; padding: 4px; border-radius: 12px; background: var(--paper-inset); }
.pool-tab { min-width: 170px; min-height: 48px; padding: 7px 14px; border: 0; border-radius: 9px; color: var(--ink-secondary); background: transparent; text-align: left; cursor: pointer; transition: background-color 160ms, color 160ms, box-shadow 160ms, transform 120ms; }
.pool-tab:hover { color: var(--ink); }
.pool-tab:active { transform: scale(.98); }
.pool-tab.is-active { color: var(--leaf); background: var(--paper-raised); box-shadow: 0 1px 3px rgba(29, 40, 35, .09); }
.pool-tab span, .pool-tab small { display: block; }
.pool-tab span { font-size: 12px; font-weight: 700; }
.pool-tab small { margin-top: 2px; color: var(--ink-tertiary); font-size: 9px; }

.button {
  min-height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 15px;
  border: 0; border-radius: var(--radius-small); cursor: pointer; text-decoration: none;
  font-size: 12px; font-weight: 650; transition: background-color 160ms, color 160ms, transform 120ms, box-shadow 160ms;
}
.button:active { transform: scale(.97); }
.button:focus-visible, input:focus-visible, textarea:focus-visible, .icon-button:focus-visible { outline: 3px solid rgba(35, 103, 72, .2); outline-offset: 2px; }
.button.primary { color: #fff; background: var(--leaf); box-shadow: 0 1px 2px rgba(20, 70, 47, .2); }
.button.primary:hover { background: var(--leaf-hover); }
.button.secondary { color: var(--ink-secondary); background: var(--paper-raised); box-shadow: inset 0 0 0 1px var(--line); }
.button.secondary:hover { color: var(--ink); background: #fff; }
.button:disabled { cursor: not-allowed; color: var(--ink-muted); background: var(--paper-inset); box-shadow: none; transform: none; }
.button.wide { width: 100%; }

.view { display: none; }
.view.is-visible { display: block; animation: view-in 240ms cubic-bezier(.23,1,.32,1); }
@keyframes view-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.capacity-panel {
  display: grid; grid-template-columns: minmax(260px, .7fr) minmax(440px, 1.3fr); align-items: end; gap: 56px;
  padding: 32px 36px; background: var(--paper-raised); border-radius: var(--radius-large); box-shadow: var(--shadow);
}
.capacity-value { display: flex; align-items: baseline; gap: 7px; margin: 12px 0 8px; font-variant-numeric: tabular-nums; }
.capacity-value strong { font-size: clamp(42px, 5vw, 64px); line-height: .95; letter-spacing: -.06em; }
.capacity-value span { color: var(--ink-tertiary); font-size: 16px; font-weight: 600; }
.capacity-copy p { max-width: 430px; margin: 14px 0 0; color: var(--ink-secondary); font-size: 12px; line-height: 1.6; }
.capacity-visual { padding-bottom: 4px; }
.ruler-labels { position: relative; display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--ink-tertiary); font-size: 10px; font-weight: 600; }
.target-label { position: absolute; right: 18%; color: var(--leaf); white-space: nowrap; }
.ruler { position: relative; height: 22px; padding: 4px; overflow: hidden; border-radius: 7px; background: var(--paper-inset); box-shadow: inset 0 1px 2px rgba(29, 40, 35, .06); }
.ruler-fill { width: 0; height: 100%; border-radius: 4px; background: var(--leaf); transition: width 360ms cubic-bezier(.23,1,.32,1); }
.target-mark { position: absolute; top: 0; bottom: 0; left: 96%; width: 1px; background: rgba(29, 40, 35, .4); }
.target-mark::before { content: ""; position: absolute; top: -3px; left: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.capacity-visual.no-target .target-label, .capacity-visual.no-target .target-mark { display: none; }
.ruler-legend { display: flex; gap: 20px; margin-top: 12px; color: var(--ink-tertiary); font-size: 10px; }
.ruler-legend span { display: flex; align-items: center; gap: 6px; }
.ruler-legend i { width: 8px; height: 8px; border-radius: 2px; }
.legend-current { background: var(--leaf); }
.legend-reserve { background: var(--paper-inset); box-shadow: inset 0 0 0 1px var(--line); }

.metric-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin: 20px 0; border: 1px solid var(--line-soft); border-radius: var(--radius-medium); background: rgba(251, 251, 248, .45); overflow: hidden; }
.metric { min-width: 0; padding: 18px 20px; border-right: 1px solid var(--line-soft); }
.metric:last-child { border-right: 0; }
.metric span, .metric small, .metric strong { display: block; }
.metric span { color: var(--ink-secondary); font-size: 11px; font-weight: 600; }
.metric strong { margin: 7px 0 3px; font-size: 24px; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.035em; }
.metric small { color: var(--ink-tertiary); font-size: 10px; }
.reserve-metric { background: linear-gradient(90deg, transparent, rgba(242, 232, 213, .55)); }
.reserve-metric strong { color: var(--amber); }

.workbench { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; }
.rule-panel, .action-panel, .table-panel { background: var(--paper-raised); border-radius: var(--radius-medium); box-shadow: var(--shadow); }
.rule-panel, .action-panel { padding: 28px; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.rule-version { padding: 5px 8px; color: var(--ink-tertiary); background: var(--paper-inset); border-radius: 6px; font-size: 9px; font-weight: 700; }
.rule-flow { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line-soft); }
.rule-flow li { display: flex; gap: 14px; padding: 18px 18px 18px 0; border-bottom: 1px solid var(--line-soft); }
.rule-flow li:nth-child(odd) { border-right: 1px solid var(--line-soft); }
.rule-flow li:nth-child(even) { padding-left: 18px; }
.rule-number { color: var(--moss); font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rule-flow strong { font-size: 12px; }
.rule-flow p { margin: 5px 0 0; color: var(--ink-tertiary); font-size: 10px; line-height: 1.55; }

.action-panel { display: flex; flex-direction: column; justify-content: space-between; min-height: 310px; }
.action-panel > div:first-child > p { margin: 10px 0 0; color: var(--ink-secondary); font-size: 11px; line-height: 1.6; }
.plan-equation { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 8px; margin: 24px 0; padding: 17px; background: var(--paper-inset); border-radius: 11px; }
.plan-equation div { min-width: 0; text-align: center; }
.plan-equation span, .plan-equation strong { display: block; }
.plan-equation span { color: var(--ink-tertiary); font-size: 9px; }
.plan-equation strong { margin-top: 4px; font-size: 17px; font-variant-numeric: tabular-nums; }
.plan-equation b { color: var(--ink-muted); font-size: 12px; }
.plan-equation .equation-result strong { color: var(--leaf); }

.table-panel { min-height: 560px; padding: 28px; }
.table-heading { align-items: center; margin-bottom: 22px; }
.copy-panel { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; margin-bottom: 22px; padding: 18px; border-radius: 12px; background: var(--paper-inset); }
.copy-panel > div { padding-top: 4px; }
.copy-panel strong, .copy-panel span { display: block; }
.copy-panel strong { font-size: 12px; }
.copy-panel span { margin-top: 6px; color: var(--ink-tertiary); font-size: 10px; line-height: 1.5; }
.copy-panel textarea { min-height: 190px; max-height: 360px; background: var(--paper-raised); }
input[type="search"] { min-height: 40px; width: 210px; padding: 0 12px; color: var(--ink); background: var(--paper-inset); border: 1px solid transparent; border-radius: var(--radius-small); font-size: 12px; outline: none; }
input[type="search"]:focus { border-color: rgba(35, 103, 72, .3); }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { padding: 11px 12px; color: var(--ink-tertiary); background: var(--paper-inset); text-align: left; font-size: 10px; font-weight: 650; }
th:first-child { border-radius: 7px 0 0 7px; }
th:last-child { border-radius: 0 7px 7px 0; }
td { padding: 14px 12px; border-bottom: 1px solid var(--line-soft); color: var(--ink-secondary); }
td:first-child { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.status-pill { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 999px; color: var(--ink-secondary); background: var(--paper-inset); font-size: 9px; font-weight: 650; }
.status-pill.waiting { color: var(--leaf); background: var(--leaf-soft); }
.status-pill.expired, .status-pill.filled { color: var(--amber); background: var(--amber-soft); }
.empty-table, .empty-history { padding: 86px 20px; color: var(--ink-muted); text-align: center; font-size: 12px; }
.history-list { margin-top: 22px; }
.history-item { display: grid; grid-template-columns: 150px 1fr auto; gap: 20px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.history-time { color: var(--ink-tertiary); font-size: 10px; }
.history-item strong { font-size: 12px; }
.history-item p { margin: 4px 0 0; color: var(--ink-tertiary); font-size: 10px; }
.history-range { color: var(--leaf); font-size: 11px; font-weight: 650; font-variant-numeric: tabular-nums; }
.input-heading { align-items: center; margin-bottom: 24px; }
.input-heading p { margin: 8px 0 0; color: var(--ink-secondary); font-size: 11px; line-height: 1.55; }
.preset-input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.preset-field { min-width: 0; }
.preset-field > span { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.preset-field strong { font-size: 12px; }
.preset-field small { color: var(--ink-tertiary); font-size: 10px; font-variant-numeric: tabular-nums; }
.preset-field textarea { min-height: 480px; background: var(--paper-inset); }

dialog { width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: 18px; color: var(--ink); background: transparent; box-shadow: 0 24px 80px rgba(29, 40, 35, .24); }
dialog::backdrop { background: rgba(20, 28, 24, .44); backdrop-filter: blur(3px); }
.dialog-card { margin: 0; padding: 28px; background: var(--paper-raised); }
.dialog-card > p { color: var(--ink-secondary); font-size: 11px; line-height: 1.6; }
.dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.icon-button { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; color: var(--ink-secondary); background: var(--paper-inset); cursor: pointer; font-size: 22px; line-height: 1; }
textarea { width: 100%; resize: vertical; padding: 13px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--paper-inset); outline: none; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; line-height: 1.55; }
textarea:focus { border-color: rgba(35, 103, 72, .45); box-shadow: 0 0 0 3px rgba(35, 103, 72, .09); }
.dialog-footer { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.dialog-footer label { display: flex; align-items: center; gap: 6px; color: var(--ink-secondary); font-size: 11px; }
.spacer { flex: 1; }
.plan-summary { margin: 20px 0; padding: 14px 16px; border-radius: 10px; background: var(--leaf-soft); color: var(--leaf); font-size: 12px; font-weight: 650; }
.plan-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.plan-columns section { padding: 16px; background: var(--paper-inset); border-radius: 12px; }
.code-list { max-height: 210px; margin-top: 12px; overflow: auto; color: var(--ink-secondary); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; line-height: 1.8; }
.safety-note { margin-top: 14px; padding: 11px 13px; color: var(--ink-secondary); background: var(--amber-soft); border-radius: 9px; font-size: 10px; line-height: 1.5; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 10; max-width: 360px; padding: 13px 16px; border-radius: 10px; color: #fff; background: var(--ink); box-shadow: 0 12px 32px rgba(29, 40, 35, .2); font-size: 12px; opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity 180ms, transform 180ms cubic-bezier(.23,1,.32,1); }
.toast.is-visible { opacity: 1; transform: none; }
.toast.is-error { background: var(--danger); }

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; padding: 18px 20px; flex-direction: row; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 0; }
  nav { display: flex; margin-left: auto; }
  .nav-item { width: auto; }
  .connection-card { display: none; }
  .capacity-panel { grid-template-columns: 1fr; gap: 36px; }
  .workbench { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  main { padding: 24px 16px 48px; }
  .sidebar { align-items: flex-start; overflow-x: auto; }
  .brand { min-width: 160px; }
  .brand span { display: none; }
  .nav-item { padding: 0 9px; white-space: nowrap; }
  .nav-dot { display: none; }
  .topbar { align-items: flex-start; flex-direction: column; }
  .header-actions { width: 100%; }
  .sync-time { margin-right: auto; }
  .header-actions .button { flex: 0 0 auto; }
  .capacity-panel { padding: 24px 20px; }
  .target-label { display: none; }
  .pool-switch { display: grid; width: 100%; }
  .pool-tab { min-width: 0; }
  .metric-strip { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .rule-panel, .action-panel, .table-panel { padding: 20px; }
  .rule-flow { grid-template-columns: 1fr; }
  .rule-flow li:nth-child(odd) { border-right: 0; }
  .rule-flow li:nth-child(even) { padding-left: 0; }
  .plan-equation { gap: 4px; padding: 13px 8px; }
  .plan-equation strong { font-size: 14px; }
  .table-heading { align-items: flex-start; flex-direction: column; }
  .table-actions, input[type="search"] { width: 100%; }
  .copy-panel { grid-template-columns: 1fr; }
  .input-heading { align-items: flex-start; flex-direction: column; }
  .preset-input-grid { grid-template-columns: 1fr; }
  .preset-field textarea { min-height: 320px; }
  .plan-columns { grid-template-columns: 1fr; }
  .dialog-footer { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Standalone login screen — Ayla admin auth pattern */
.login-page {
  --login-primary: #005ce8;
  --login-primary-hover: #0e5fd9;
  --login-primary-soft: #f0f6ff;
  --login-gray-50: #f5f6f7;
  --login-gray-100: #e5e7e8;
  --login-gray-400: #959fa3;
  --login-gray-600: #626c70;
  --login-gray-900: #191b1c;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--login-gray-50);
  color: var(--login-gray-900);
}
.login-shell { min-height: 100vh; min-height: 100dvh; display: grid; place-content: center; gap: 24px; padding: max(24px, env(safe-area-inset-top)) 16px max(24px, env(safe-area-inset-bottom)); overflow: visible; }
.login-brand { display: flex; align-items: center; justify-content: center; gap: 10px; }
.login-brand strong, .login-brand small { display: block; }
.login-brand strong { font-size: 18px; font-weight: 600; }
.login-brand small { margin-top: 2px; color: var(--login-gray-600); font-size: 11px; }
.login-brand-mark { position: relative; width: 36px; height: 36px; overflow: hidden; border-radius: 8px; background: var(--login-primary); }
.login-brand-mark span { position: absolute; width: 17px; height: 10px; border-radius: 100% 0 100% 0; background: #fff; transform: rotate(-28deg); }
.login-brand-mark span:first-child { left: 6px; top: 9px; }
.login-brand-mark span:last-child { right: 4px; bottom: 7px; opacity: .65; transform: rotate(152deg); }
.login-card { width: min(506px, calc(100vw - 32px)); padding: 32px; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 8px rgba(0,0,0,.04); }
.login-card header { margin-bottom: 24px; }
.login-eyebrow { color: var(--login-primary); font-size: 12px; font-weight: 600; }
.login-card h1 { margin: 8px 0 0; font-size: 24px; line-height: 32px; letter-spacing: 0; }
.login-card header p { margin: 8px 0 0; color: var(--login-gray-600); font-size: 14px; line-height: 20px; }
.login-field { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.login-field > span { font-size: 14px; font-weight: 500; line-height: 20px; }
.login-field input { width: 100%; height: 44px; padding: 10px 12px; border: 1px solid var(--login-gray-100); border-radius: 4px; color: var(--login-gray-900); background: #fff; font-size: 16px; outline: 0; transition: border-color .12s, box-shadow .12s; }
.login-field input:focus { border-color: var(--login-primary); box-shadow: 0 0 0 3px rgba(0,92,232,.12); }
.login-error { min-height: 20px; margin: 12px 0 0; color: #e84646; font-size: 13px; line-height: 20px; }
.login-submit { width: 100%; height: 44px; margin-top: 4px; border: 0; border-radius: 4px; color: #fff; background: var(--login-primary); font-size: 14px; font-weight: 600; cursor: pointer; transition: background-color .12s, transform .12s; }
.login-submit:hover { background: var(--login-primary-hover); }
.login-submit:active { transform: scale(.99); }
.login-submit:disabled { cursor: wait; opacity: .65; }
.login-note { margin: 16px 0 0; color: var(--login-gray-400); text-align: center; font-size: 12px; line-height: 18px; }
@media (max-width: 560px) {
  .login-shell { place-content: start center; padding-top: max(56px, env(safe-area-inset-top)); }
  .login-card { padding: 24px; }
}
