/* ═══════════════════════════════════════════════════════════════
   client-screens.css — LDSP premium client UI design system
   ═══════════════════════════════════════════════════════════════
   R24 Stage 2: полный rewrite клиентских экранов в едином премиум-языке
   BEM с префиксом .c-* · 0 inline styles · Inter font · warm palette
   Всё на CSS vars, всё на ease-premium, всё с плавными анимациями
   ═══════════════════════════════════════════════════════════════ */

.ldsp-client {
  /* Palette — warm off-white base + deep green brand */
  --bg: #F2EFE9;
  --surface: #FDFCF9;
  --surface-2: #FBFAF6;
  --surface-3: #F8F5EE;
  --text: #1C1B14;
  --text-2: rgba(28, 27, 20, 0.65);
  --muted: rgba(28, 27, 20, 0.50);
  --muted-2: rgba(28, 27, 20, 0.35);
  --border: rgba(28, 27, 20, 0.09);
  --border-strong: rgba(28, 27, 20, 0.16);
  --brand: #0C7A45;
  --brand-2: #085C33;
  --brand-3: #0A6A3C;
  --brand-light: rgba(12, 122, 69, 0.10);
  --brand-glow: rgba(12, 122, 69, 0.20);
  --brand-warm: #E8B14A;
  --warn: #C96B0A;
  --warn-light: rgba(201, 107, 10, 0.10);
  --bad: #C8231D;
  --bad-light: rgba(200, 35, 29, 0.10);
  --info: #1E6FC8;
  --info-light: rgba(30, 111, 200, 0.10);
  --shadow-1: 0 2px 14px rgba(28, 27, 20, 0.07), 0 1px 3px rgba(28, 27, 20, 0.04);
  --shadow-2: 0 10px 38px rgba(28, 27, 20, 0.12), 0 4px 10px rgba(28, 27, 20, 0.06);
  --shadow-3: 0 22px 60px rgba(28, 27, 20, 0.18), 0 8px 20px rgba(28, 27, 20, 0.08);
  --shadow-brand: 0 6px 24px rgba(12, 122, 69, 0.24);
  --r12: 12px;
  --r14: 14px;
  --r16: 16px;
  --r20: 20px;
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --dur-fast: 180ms;
  --dur: 280ms;
  --dur-slow: 520ms;

  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  letter-spacing: -0.01em;
  min-height: 100vh;
  padding: 24px;
}
.ldsp-client *, .ldsp-client *::before, .ldsp-client *::after { box-sizing: border-box; }

/* ─── Keyframes ─── */
@keyframes c-fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes c-slideInLeft { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: translateX(0); } }
@keyframes c-scaleIn { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: scale(1); } }
@keyframes c-pulse { 0%, 100% { box-shadow: 0 0 0 4px var(--brand-light); } 50% { box-shadow: 0 0 0 9px var(--brand-glow); } }
@keyframes c-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ─── Page wrapper ─── */
.c-page { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; animation: c-fadeUp var(--dur-slow) var(--ease); }

/* ─── Hero ─── */
.c-hero {
  background: linear-gradient(135deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--r20);
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.c-hero::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, var(--brand-light) 0%, transparent 60%);
  pointer-events: none;
}
.c-hero__eyebrow {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 10px;
  position: relative;
}
.c-hero__title {
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 10px;
  letter-spacing: -0.025em;
  max-width: 640px;
  position: relative;
}
.c-hero__text {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 580px;
  margin: 0 0 18px;
  position: relative;
}
.c-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; position: relative; }
.c-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; position: relative; }

/* ─── Chip ─── */
.c-chip {
  font-size: 12px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--brand-light);
  color: var(--brand-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.c-chip--muted { background: rgba(28, 27, 20, 0.05); color: var(--text-2); }
.c-chip--warn { background: var(--warn-light); color: var(--warn); }

/* ─── Button ─── */
.c-btn {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.005em;
  white-space: nowrap;
  text-decoration: none;
}
.c-btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-1); border-color: var(--muted); }
.c-btn:active { transform: translateY(0) scale(0.98); }
.c-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-light); border-color: var(--brand); }
.c-btn--primary { background: var(--brand); color: #fff; border-color: var(--brand); }
.c-btn--primary:hover { background: var(--brand-2); box-shadow: var(--shadow-brand); border-color: var(--brand-2); }
.c-btn--ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.c-btn--ghost:hover { background: var(--brand-light); color: var(--brand); }
.c-btn--danger-ghost { background: transparent; border-color: rgba(200, 35, 29, 0.3); color: var(--bad); }
.c-btn--danger-ghost:hover { background: var(--bad-light); }
.c-btn--block { width: 100%; justify-content: center; }
.c-btn__icon { flex-shrink: 0; }

/* ─── Workflow strip (dynamic) ─── */
.c-workflow {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r16);
  padding: 22px;
}
.c-workflow__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}
.c-workflow__title { font-size: 14px; font-weight: 600; margin: 0 0 4px; letter-spacing: -0.01em; }
.c-workflow__meta { font-size: 12px; color: var(--muted); max-width: 500px; line-height: 1.5; }
.c-workflow__steps { display: grid; grid-template-columns: repeat(var(--c-wf-steps, 5), 1fr); position: relative; }
.c-workflow__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  padding: 0 4px;
}
.c-workflow__step::after {
  content: '';
  position: absolute;
  top: 15px;
  left: calc(50% + 18px);
  right: calc(-50% + 18px);
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.c-workflow__step:last-child::after { display: none; }
.c-workflow__step--done::after { background: var(--brand); }
.c-workflow__dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  z-index: 1;
  transition: all var(--dur) var(--ease);
}
.c-workflow__step--done .c-workflow__dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.c-workflow__step--current .c-workflow__dot { border-color: var(--brand); color: var(--brand); animation: c-pulse 2s var(--ease) infinite; }
.c-workflow__label { font-size: 12px; font-weight: 500; color: var(--text-2); text-align: center; }
.c-workflow__step--current .c-workflow__label { color: var(--brand); font-weight: 600; }
.c-workflow__step--done .c-workflow__label { color: var(--text); }

/* ─── Order card list ─── */
.c-orders { display: grid; gap: 12px; }
.c-order-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r16);
  padding: 18px 22px;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  text-decoration: none;
  color: inherit;
  display: block;
  animation: c-slideInLeft var(--dur-slow) var(--ease) both;
}
.c-order-card:nth-child(1) { animation-delay: 0ms; }
.c-order-card:nth-child(2) { animation-delay: 60ms; }
.c-order-card:nth-child(3) { animation-delay: 120ms; }
.c-order-card:nth-child(4) { animation-delay: 180ms; }
.c-order-card:nth-child(5) { animation-delay: 240ms; }
.c-order-card:nth-child(6) { animation-delay: 300ms; }
.c-order-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--brand-glow); }
.c-order-card:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--brand-light); border-color: var(--brand); }
.c-order-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}
.c-order-card__title-wrap { min-width: 0; }
.c-order-card__title { font-size: 15px; font-weight: 600; margin: 0 0 2px; letter-spacing: -0.015em; }
.c-order-card__sub { font-size: 12px; color: var(--muted); }
.c-order-card__meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.c-order-card__meta-spacer { flex: 1; }
.c-order-card__open-hint { color: var(--brand); font-weight: 500; }

/* ─── Status badge ─── */
.c-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.c-badge--brand { background: var(--brand-light); color: var(--brand-2); }
.c-badge--warn { background: var(--warn-light); color: var(--warn); }
.c-badge--muted { background: rgba(28, 27, 20, 0.06); color: var(--text-2); }
.c-badge--info { background: var(--info-light); color: var(--info); }
.c-badge--bad { background: var(--bad-light); color: var(--bad); }

/* ─── Progress mini (dots) ─── */
.c-progress-mini { display: flex; align-items: center; gap: 0; }
.c-progress-mini__cell { display: inline-flex; align-items: center; }
.c-progress-mini__cell:last-child .c-progress-mini__line { display: none; }
.c-progress-mini__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}
.c-progress-mini__dot--done { background: var(--brand); }
.c-progress-mini__dot--current { background: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
.c-progress-mini__line {
  width: 14px;
  height: 2px;
  background: var(--border);
  flex-shrink: 0;
}
.c-progress-mini__line--done { background: var(--brand); }

/* ─── Empty state ─── */
.c-empty {
  text-align: center;
  padding: 60px 20px;
  background: var(--surface);
  border-radius: var(--r16);
  border: 1px dashed var(--border-strong);
  animation: c-scaleIn var(--dur-slow) var(--ease);
}
.c-empty__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}
.c-empty__title { font-size: 16px; font-weight: 600; margin: 0 0 6px; letter-spacing: -0.015em; }
.c-empty__text {
  font-size: 13px;
  color: var(--text-2);
  max-width: 360px;
  margin: 0 auto 14px;
  line-height: 1.6;
}

/* ─── Skeleton ─── */
.c-skeleton {
  background: linear-gradient(90deg, var(--border) 0%, rgba(28, 27, 20, 0.05) 50%, var(--border) 100%);
  background-size: 200% 100%;
  border-radius: 8px;
  animation: c-shimmer 1.4s ease-in-out infinite;
}
.c-order-skel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r16);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.c-order-skel__row-1 { height: 18px; width: 35%; }
.c-order-skel__row-2 { height: 14px; width: 55%; }
.c-order-skel__row-3 { height: 28px; width: 100%; }

/* ─── Section title ─── */
.c-section-t {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ─── Summary strip (meta row with summary and actions) ─── */
.c-summary-strip {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.c-summary-strip__title { font-size: 18px; font-weight: 700; letter-spacing: -0.015em; margin: 0 0 2px; }
.c-summary-strip__sub { font-size: 13px; color: var(--text-2); }
.c-summary-strip__actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.c-summary-strip__meta { font-size: 12px; color: var(--muted); }

/* ─── Panel ─── */
.c-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r16);
  padding: 22px;
}
.c-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.c-panel__title { font-size: 15px; font-weight: 600; margin: 0; letter-spacing: -0.015em; }

/* ─── Responsive ─── */
@media (max-width: 720px) {
  .ldsp-client { padding: 14px; }
  .c-hero { padding: 22px; }
  .c-hero__title { font-size: 22px; }
  .c-summary-strip { flex-direction: column; align-items: flex-start; }
}

/* ═══════════════════════════════════════════════════════════════
   R25 additions: auth (split + live demo) + payment + form primitives
   ═══════════════════════════════════════════════════════════════ */

/* ─── Form field + input ─── */
.c-field { margin-bottom: 16px; }
.c-field__label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}
.c-field__error {
  margin-top: 6px;
  font-size: 12px;
  color: var(--bad);
  font-weight: 500;
}
.c-input {
  width: 100%;
  font-family: var(--font);
  font-size: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  transition: all var(--dur-fast) var(--ease);
  letter-spacing: -0.005em;
}
.c-input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-light);
}
.c-input:disabled { opacity: 0.6; cursor: not-allowed; }
.c-input--error { border-color: var(--bad); }
.c-input--error:focus { box-shadow: 0 0 0 3px var(--bad-light); }

.c-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 500px) { .c-grid-2 { grid-template-columns: 1fr; } }

.c-checkbox-row {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--text-2);
  margin: 12px 0 18px;
  cursor: pointer;
  user-select: none;
}
.c-checkbox-row input[type="checkbox"] { accent-color: var(--brand); width: 15px; height: 15px; }

/* ─── Auth split layout ─── */
.c-auth {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 620px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r20);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  max-width: 1100px;
  margin: 0 auto;
  animation: c-fadeUp var(--dur-slow) var(--ease);
}
.c-auth__form-wrap {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--surface);
}
.c-auth__title {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 6px;
  letter-spacing: -0.025em;
}
.c-auth__sub {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 28px;
  line-height: 1.5;
}
.c-auth__footer {
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-2);
}

.c-link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
}
.c-link:hover { text-decoration: underline; }
.c-link:focus-visible { outline: 2px solid var(--brand-glow); outline-offset: 2px; border-radius: 3px; }

/* ─── Auth live demo (dark panel) ─── */
@keyframes c-drawRect { from { opacity: 0; transform: scale(0.3); } to { opacity: 1; transform: scale(1); } }
@keyframes c-countUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes c-blink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0.35; } }
@keyframes c-pan { 0% { background-position: 0 0; } 100% { background-position: 50px 50px; } }
@keyframes c-pulseOpacity { 0%, 100% { opacity: 0.4; } 50% { opacity: 0.9; } }
@keyframes c-sawLoad { 0% { width: 0; } 100% { width: 100%; } }

.c-live {
  background: linear-gradient(145deg, #1F2420 0%, #0E1411 50%, #0A1A10 100%);
  padding: 32px;
  position: relative;
  overflow: hidden;
  color: #EFEBE0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.c-live::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
  background-size: 24px 24px;
  animation: c-pan 10s linear infinite;
  pointer-events: none;
}
.c-live > * { position: relative; z-index: 1; }
.c-live__head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
}
.c-live__eyebrow {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(239,235,224,0.55);
  margin-bottom: 10px;
}
.c-live__title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  margin: 0;
  color: #FDFCF9;
  letter-spacing: -0.02em;
  max-width: 340px;
}
.c-live__status {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 500;
  padding: 6px 10px;
  background: rgba(12,122,69,0.18);
  border: 1px solid rgba(12,122,69,0.35);
  border-radius: 999px;
  color: #7DD6A4;
  white-space: nowrap;
}
.c-live__status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #7DD6A4;
  box-shadow: 0 0 8px #7DD6A4;
  animation: c-blink 1.2s infinite;
}
.c-live__meta {
  display: flex; gap: 10px;
  font-size: 10px;
  font-family: 'SF Mono', ui-monospace, monospace;
  color: rgba(239,235,224,0.55);
  flex-wrap: wrap;
}
.c-live__meta span {
  padding: 3px 8px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  background: rgba(255,255,255,0.02);
}
.c-live__progress {
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}
.c-live__progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--brand) 0%, #5DCE95 50%, var(--brand) 100%);
  background-size: 200% 100%;
  animation: c-sawLoad 2.5s var(--ease) forwards, c-shimmer 2s linear infinite;
  border-radius: 999px;
}
.c-live__canvas {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 14px;
  position: relative;
  flex: 1;
  min-height: 220px;
}
.c-live__canvas svg { width: 100%; height: 100%; display: block; }
.c-live__canvas rect.c-live__rect {
  opacity: 0;
  animation: c-drawRect 600ms var(--ease-spring) both;
  transform-origin: top left;
}
.c-live__canvas .c-live__saw-line {
  stroke: var(--brand-warm);
  stroke-width: 1.5;
  stroke-dasharray: 4,3;
  animation: c-pulseOpacity 1s infinite;
}
.c-live__sheet-label {
  position: absolute; top: 6px; right: 10px;
  font-size: 9px;
  color: rgba(239,235,224,0.45);
  font-family: ui-monospace, monospace;
  letter-spacing: 0.05em;
}
.c-live__kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.c-live__kpi {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px 12px;
}
.c-live__kpi-v {
  font-size: 18px;
  font-weight: 600;
  color: #FDFCF9;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.c-live__kpi-v--brand { color: #7DD6A4; }
.c-live__kpi-l {
  font-size: 9px;
  color: rgba(239,235,224,0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 2px;
}
.c-live__log {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 12px;
  font-family: ui-monospace, monospace;
  font-size: 10px;
  color: rgba(239,235,224,0.5);
  line-height: 1.7;
  max-height: 74px;
  overflow: hidden;
}
.c-live__log-line {
  opacity: 0;
  animation: c-countUp 400ms var(--ease) both;
}
.c-live__log-line--ok::before { content: '✓ '; color: #7DD6A4; }
.c-live__log-line--info::before { content: '→ '; color: var(--brand-warm); }

/* ─── Payment card ─── */
.c-pay-wrap {
  max-width: 520px;
  margin: 24px auto;
  animation: c-scaleIn var(--dur-slow) var(--ease);
}
.c-pay {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r20);
  padding: 32px;
  box-shadow: var(--shadow-2);
}
.c-pay__head { text-align: center; margin-bottom: 20px; }
.c-pay__icon {
  width: 56px; height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}
.c-pay__title {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 4px;
  letter-spacing: -0.02em;
}
.c-pay__sub {
  font-size: 13px;
  color: var(--text-2);
}
.c-pay__amount {
  text-align: center;
  padding: 24px 0;
  margin: 20px 0;
  background: var(--brand-light);
  border-radius: var(--r16);
}
.c-pay__amount-v {
  font-size: 36px;
  font-weight: 600;
  color: var(--brand-2);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.c-pay__amount-l {
  font-size: 11px;
  color: var(--brand-2);
  opacity: 0.75;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.c-spec { list-style: none; padding: 0; margin: 0 0 20px; }
.c-spec li {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
}
.c-spec li:last-child { border-bottom: none; }
.c-spec li span:first-child { color: var(--text-2); }
.c-spec li span:last-child { font-weight: 500; font-variant-numeric: tabular-nums; }
.c-spec li code {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 4px;
}
.c-pay__secondary { margin-top: 10px; }

.c-trust {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 11px;
  color: var(--muted);
  flex-wrap: wrap;
}
.c-trust span { display: flex; align-items: center; gap: 4px; }

/* ─── Profile sections ─── */
.c-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 720px) { .c-profile-grid { grid-template-columns: 1fr; } }

.c-panel__footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ─── Auth/payment responsive ─── */
@media (max-width: 720px) {
  .c-auth { grid-template-columns: 1fr; min-height: auto; }
  .c-live { min-height: 280px; padding: 24px; }
  .c-auth__form-wrap { padding: 32px 24px; }
  .c-pay { padding: 22px; }
  .c-pay__amount-v { font-size: 28px; }
  .c-live__kpis { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════════════════════
   R26 additions: order detail — tables, sheet canvas, action cards
   ═══════════════════════════════════════════════════════════════ */

/* ─── Summary strip (hero-like action row) ─── */
.c-hero__meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-2);
  margin: 10px 0 14px;
  position: relative;
  z-index: 1;
}
.c-hero__meta b { font-weight: 600; color: var(--text); }

/* ─── Action cards grid ─── */
.c-actions-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 900px) { .c-actions-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .c-actions-strip { grid-template-columns: 1fr; } }

.c-action-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r14);
  padding: 14px;
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  font-family: inherit;
  color: inherit;
  text-decoration: none;
}
.c-action-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-1);
  border-color: var(--brand-glow);
}
.c-action-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--brand-light);
  border-color: var(--brand);
}
.c-action-card:disabled,
.c-action-card[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}
.c-action-card__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--brand-light);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  flex-shrink: 0;
}
.c-action-card__icon--warn { background: var(--warn-light); color: var(--warn); }
.c-action-card__icon--info { background: var(--info-light); color: var(--info); }
.c-action-card__icon--muted { background: rgba(28,27,20,0.06); color: var(--muted); }
.c-action-card__t { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.c-action-card__d {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

/* ─── Order detail tables ─── */
.c-grid-wrap {
  border: 1px solid var(--border);
  border-radius: var(--r12);
  overflow: auto;
  max-height: 400px;
  background: var(--surface);
}
.c-grid {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
}
.c-grid th {
  background: var(--surface-2);
  padding: 9px 12px;
  text-align: left;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  white-space: nowrap;
}
.c-grid th.c-grid__num,
.c-grid td.c-grid__num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.c-grid td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
}
.c-grid tbody tr:last-child td { border-bottom: none; }
.c-grid tbody tr:hover td { background: rgba(12,122,69,0.03); }
.c-grid__note {
  color: var(--muted);
  font-size: 11px;
}

/* Edge dots indicator for cutting items */
.c-edge-dots { display: inline-flex; gap: 2px; }
.c-edge-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--brand);
}
.c-edge-dot--none { background: var(--border-strong); }

/* ─── Sheet tabs + canvas (cut map) ─── */
.c-sheets-bar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.c-sheet-tab {
  font-size: 12px;
  padding: 7px 13px;
  border-radius: 9px;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  font-family: var(--font);
  color: var(--text);
  transition: all var(--dur-fast) var(--ease);
  letter-spacing: -0.005em;
}
.c-sheet-tab:hover { border-color: var(--brand-glow); color: var(--brand); }
.c-sheet-tab.is-active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  font-weight: 600;
}

.c-sheet-canvas {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r12);
  padding: 14px;
  margin-top: 10px;
}
.c-sheet-canvas svg { width: 100%; height: auto; display: block; }
.c-sheet-canvas__empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 13px;
}

/* ─── Spec total row (estimate grand total) ─── */
.c-spec__total {
  padding-top: 14px !important;
  border-top: 1px solid var(--border-strong) !important;
  margin-top: 4px;
  border-bottom: none !important;
}
.c-spec__total span:first-child {
  font-weight: 600 !important;
  color: var(--text) !important;
  font-size: 14px !important;
}
.c-spec__total span:last-child {
  font-size: 20px !important;
  color: var(--brand) !important;
  font-weight: 600 !important;
}

/* ─── Order detail grid (2-column: left content + right side summary) ─── */
.c-od-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 14px;
}
@media (max-width: 900px) {
  .c-od-grid { grid-template-columns: 1fr; }
  .c-grid-wrap { max-height: 320px; }
}
.c-od-col { display: flex; flex-direction: column; gap: 14px; }
