/* SeekaHost Email component styles, copied from the design system's components/bundle.css.
   Every colour, space, radius and shadow is a token. The global element rules (box-sizing,
   body, links) are left out: Tailwind's base styles and the app's own classes cover them. */
.sk-pad { padding: var(--space-6); }
.sk-stack { display: flex; flex-direction: column; gap: var(--space-4); }
.sk-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.sk-grid { display: grid; gap: var(--space-4); }
.sk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sk-mono { font-family: var(--font-mono); font-size: 12.5px; }
.sk-icon { flex: none; display: block; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sk-dash { border: 0; border-top: 1.5px dashed var(--line-dashed); margin: 0; }

/* Icon tile, tag, chip */
.sk-tile { flex: none; display: grid; place-items: center; border-radius: var(--radius-tile); background: var(--surface-muted); color: var(--ink); }
.sk-tile--sm { width: 32px; height: 32px; border-radius: var(--radius-md); }
.sk-tile--md { width: 44px; height: 44px; }
.sk-tile--lg { width: 60px; height: 60px; border-radius: 16px; }
.sk-tile--sky { background: var(--tile-sky); color: var(--tile-sky-ink); }
.sk-tile--blue { background: var(--tile-blue); color: var(--tile-blue-ink); }
.sk-tile--orange { background: var(--tile-orange); color: var(--tile-orange-ink); }
.sk-tile--green { background: var(--tile-green); color: var(--tile-green-ink); }
.sk-tag { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: var(--radius-sm); background: var(--surface-muted); color: var(--ink); font-family: var(--font-mono); font-size: 12px; letter-spacing: .02em; white-space: nowrap; font-weight: 400; }
.sk-chip { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: var(--radius-md); background: var(--surface-muted); color: var(--ink); font-size: 13.5px; white-space: nowrap; }
.sk-chip.is-up::before { content: "↑"; margin-right: 4px; color: var(--success); }
.sk-chip.is-down::before { content: "↓"; margin-right: 4px; color: var(--danger); }
.sk-kbd { display: inline-grid; place-items: center; min-width: 32px; height: 26px; padding: 0 6px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-muted); color: var(--ink-muted); font-family: var(--font-mono); font-size: 12px; }

/* Button */
.sk-btn { font: inherit; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); border: 1px solid transparent; border-radius: var(--radius-md); cursor: pointer; white-space: nowrap; text-decoration: none !important; transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .05s ease; }
.sk-btn:active:not(:disabled) { transform: translateY(1px); }
.sk-btn:disabled { cursor: not-allowed; opacity: .5; }
.sk-btn--sm { height: 34px; padding: 0 var(--space-3); font-size: 13.5px; }
.sk-btn--md { height: 42px; padding: 0 var(--space-4); font-size: 14px; }
.sk-btn--lg { height: 48px; padding: 0 var(--space-6); font-size: 15px; }
.sk-btn--icon.sk-btn--sm { width: 34px; padding: 0; } .sk-btn--icon.sk-btn--md { width: 42px; padding: 0; }
.sk-btn--block { width: 100%; }
.sk-btn--primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 1px 2px rgba(24, 24, 27, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.sk-btn--primary:hover:not(:disabled) { background: var(--brand-hover); }
.sk-btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--line-control); }
.sk-btn--secondary:hover:not(:disabled) { background: var(--surface-hover); }
.sk-btn--ghost { background: transparent; color: var(--brand-ink); }
.sk-btn--ghost:hover:not(:disabled) { background: var(--surface-hover); }
.sk-btn--danger { background: var(--danger-soft); color: var(--danger); }
.sk-btn--danger-text { color: var(--danger); }
.sk-btn.is-loading { pointer-events: none; }
.sk-spinner { width: 16px; height: 16px; border-radius: var(--radius-pill); border: 2px solid currentColor; border-right-color: transparent; animation: sk-spin .7s linear infinite; }
@keyframes sk-spin { to { transform: rotate(360deg); } }
.sk-icon-btn { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--ink-muted); cursor: pointer; }
.sk-icon-btn:hover:not(:disabled) { background: var(--surface-hover); color: var(--ink); }
.sk-icon-btn:disabled { opacity: .45; cursor: default; }

/* Field */
.sk-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.sk-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); }
.sk-label-row a { font-size: 13px; }
.sk-label { font-size: 14px; font-weight: 500; color: var(--ink); }
.sk-optional { color: var(--ink-faint); font-weight: 400; }
.sk-input-wrap { position: relative; display: flex; align-items: center; }
.sk-input { font: inherit; font-size: 14.5px; width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line-control); border-radius: var(--radius-tile); background: var(--surface); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.sk-input::placeholder { color: var(--ink-faint); }
.sk-input:hover { border-color: var(--ink-muted); }
.sk-input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px var(--brand-soft); }
.sk-input.is-invalid { border-color: var(--danger); }
.sk-input.is-invalid:focus { box-shadow: 0 0 0 4px var(--danger-soft); }
.sk-input.has-icon { padding-left: 42px; }
.sk-input.has-action { padding-right: 46px; }
.sk-input--area { height: auto; padding: 12px 14px; resize: vertical; line-height: 22px; }
.sk-input-icon { position: absolute; left: 14px; color: var(--ink-faint); pointer-events: none; }
.sk-input-suffix { position: absolute; right: 14px; color: var(--ink-muted); font-family: var(--font-mono); font-size: 12.5px; pointer-events: none; }
.sk-input-action { position: absolute; right: 5px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; background: transparent; color: var(--ink-muted); border-radius: var(--radius-md); cursor: pointer; }
.sk-input-action:hover { color: var(--ink); background: var(--surface-hover); }
.sk-select { position: relative; display: flex; align-items: center; }
.sk-input--select { appearance: none; padding-right: 40px; cursor: pointer; }
.sk-select .sk-icon { position: absolute; right: 14px; color: var(--ink-muted); pointer-events: none; }
.sk-hint { margin: 0; display: flex; gap: 6px; align-items: center; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.sk-hint.is-error { color: var(--danger); }

/* Search */
.sk-search { display: flex; align-items: center; gap: var(--space-3); height: 48px; padding: 0 8px 0 16px; width: 100%; max-width: 640px; border: 1px solid var(--line); border-radius: var(--radius-tile); background: var(--surface); color: var(--ink); cursor: text; }
.sk-search:focus-within { border-color: var(--focus); box-shadow: 0 0 0 4px var(--brand-soft); }
.sk-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 15px; color: var(--ink); }
.sk-search input::placeholder { color: var(--ink-faint); }

/* Segmented control */
.sk-seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: var(--radius-tile); background: var(--surface-muted); border: 1px solid var(--line); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
/* A row of options wider than the screen scrolls within itself, not the page. */
.sk-seg::-webkit-scrollbar { display: none; }
.sk-seg-item { flex: none; white-space: nowrap; font: inherit; font-size: 13.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 var(--space-3); border: 0; border-radius: 8px; background: transparent; color: var(--ink-muted); cursor: pointer; }
.sk-seg-item:hover { color: var(--ink); }
.sk-seg-item.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-card), 0 0 0 1px var(--line); }
.sk-seg--sm .sk-seg-item { height: 26px; padding: 0 8px; }
.sk-seg-note { font-family: var(--font-mono); font-size: 11px; font-weight: 400; color: var(--brand-ink); background: var(--brand-soft); padding: 0 6px; border-radius: var(--radius-sm); line-height: 18px; }

/* Badge */
.sk-badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: var(--radius-md); font-size: 13px; font-weight: 500; line-height: 1; white-space: nowrap; background: var(--surface-muted); color: var(--ink-muted); }
.sk-badge-dot { width: 7px; height: 7px; border-radius: var(--radius-pill); background: currentColor; }
.sk-badge--brand { background: var(--brand-soft); color: var(--brand-ink); }
.sk-badge--success { background: var(--success-soft); color: var(--success); }
.sk-badge--warning { background: var(--warning-soft); color: var(--warning); }
.sk-badge--danger { background: var(--danger-soft); color: var(--danger); }

/* Notice */
.sk-notice { display: flex; gap: var(--space-3); align-items: flex-start; padding: 14px var(--space-4); border-radius: var(--radius-lg); background: var(--surface-muted); border: 1px solid var(--line); }
.sk-notice > .sk-icon { margin-top: 2px; }
.sk-notice > .sk-btn { align-self: center; }
.sk-notice-body { flex: 1; min-width: 0; }
.sk-notice-title { margin: 0; font-weight: 500; color: var(--ink); }
.sk-notice-text { color: var(--ink-muted); }
.sk-notice-text b { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.sk-notice--success > .sk-icon { color: var(--success); } .sk-notice--success .sk-notice-title { color: var(--success); }
.sk-notice--warning > .sk-icon { color: var(--warning); } .sk-notice--warning .sk-notice-title { color: var(--warning); }
.sk-notice--danger > .sk-icon { color: var(--danger); } .sk-notice--danger .sk-notice-title { color: var(--danger); }
.sk-notice--info > .sk-icon { color: var(--brand-ink); }

/* Card */
.sk-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); overflow: hidden; }
.sk-card-head { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-5) var(--space-6); border-bottom: 1px solid var(--line); }
.sk-card-headtext { flex: 1; min-width: 0; }
.sk-card-title { margin: 0; font-size: 17px; line-height: 24px; font-weight: 500; letter-spacing: -0.01em; }
.sk-card-desc { margin: 2px 0 0; color: var(--ink-muted); font-size: 13.5px; line-height: 20px; overflow-wrap: break-word; }
.sk-card-actions { display: flex; gap: var(--space-2); flex: none; }
.sk-card-body { padding: var(--space-6); }
.sk-card--flush .sk-card-body { padding: 0; }
.sk-card-foot { display: flex; justify-content: flex-end; gap: var(--space-2); align-items: center; padding: var(--space-4) var(--space-6); border-top: 1.5px dashed var(--line-dashed); }
.sk-card-foot .sk-foot-note { margin-right: auto; color: var(--ink-muted); font-size: 13px; }
.sk-card-sub { margin: 0 0 var(--space-4); font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }

/* Section label */
.sk-section { display: flex; align-items: center; gap: var(--space-2); margin: var(--space-2) 0 var(--space-3); }
.sk-section-toggle { display: inline-flex; align-items: center; gap: var(--space-2); border: 0; background: none; padding: 4px 0; cursor: pointer; color: var(--ink-faint); font: inherit; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.sk-section-toggle .sk-icon { transition: transform .15s; }
.sk-section-toggle .is-closed { transform: rotate(-90deg); }
.sk-section-count { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); }
.sk-section .sk-icon-btn { margin-left: auto; }

/* Page header */
.sk-page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-6); flex-wrap: wrap; margin-bottom: var(--space-6); }
.sk-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-muted); margin-bottom: var(--space-2); font-weight: 400; }
.sk-page-title { margin: 0; font-size: 28px; line-height: 34px; font-weight: 500; letter-spacing: -0.02em; }
.sk-page-sub { margin: 4px 0 0; color: var(--ink-muted); font-size: 15px; }
.sk-page-actions { display: flex; gap: var(--space-2); }

/* Stat card */
.sk-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); min-width: 0; overflow: hidden; }
.sk-stat-head { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--line); }
.sk-stat-label { margin: 0; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-stat-body { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-5) var(--space-5) var(--space-5); }
.sk-stat-value { margin: 0; font-size: 44px; line-height: 48px; font-weight: 500; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.sk-stat-value.is-empty { color: var(--ink-faint); }
.sk-stat-hint { margin: -8px var(--space-5) var(--space-4); font-size: 13px; color: var(--ink-muted); }

/* Tick meter */
.sk-ticks { display: flex; gap: 3px; height: 40px; align-items: stretch; }
.sk-ticks span { flex: 1; min-width: 2px; max-width: 6px; border-radius: var(--radius-pill); }
.sk-ticks { justify-content: space-between; }
.sk-ticks--compact { height: 18px; gap: 2px; }
.sk-ticks--compact span { max-width: 4px; }

/* Usage meter */
.sk-meter { display: flex; flex-direction: column; gap: 10px; }
.sk-meter-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-2); }
.sk-meter-label { color: var(--ink-muted); }
.sk-meter-num { font-size: 15px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.sk-meter-num b { color: var(--ink); font-weight: 500; }
.sk-meter-note { margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); display: flex; gap: 6px; align-items: center; }
.sk-meter.is-high .sk-meter-note { color: var(--warning); } .sk-meter.is-full .sk-meter-note { color: var(--danger); }
.sk-meter--compact { gap: 8px; } .sk-meter--compact .sk-meter-label { font-size: 13px; } .sk-meter--compact .sk-meter-num { font-size: 12.5px; }

/* List card */
.sk-lcard { display: flex; flex-direction: column; gap: var(--space-4); padding: var(--space-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); cursor: pointer; transition: box-shadow .15s, border-color .15s; }
.sk-lcard:hover { box-shadow: var(--shadow-raised); }
.sk-lcard.is-selected { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow-raised); }
.sk-lcard-head { display: flex; align-items: center; gap: var(--space-4); padding-bottom: var(--space-4); border-bottom: 1.5px dashed var(--line-dashed); }
.sk-lcard-text { flex: 1; min-width: 0; }
.sk-lcard-title { margin: 0; display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; font-size: 17px; line-height: 24px; font-weight: 500; letter-spacing: -0.01em; }
.sk-lcard-meta { margin: 4px 0 0; display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14.5px; }
.sk-lcard-meta .sk-icon { color: var(--ink-muted); }
.sk-lcard-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sk-lcard-stats div { display: flex; flex-direction: column; gap: 2px; }
.sk-lcard-stats div { align-items: center; } .sk-lcard-stats div:first-child { align-items: flex-start; } .sk-lcard-stats div:last-child { align-items: flex-end; }
.sk-lcard-stats span { color: var(--ink-muted); font-size: 14.5px; }
.sk-lcard-stats b { font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; }

/* Heatmap */
.sk-heat { display: flex; flex-direction: column; gap: var(--space-3); }
.sk-heat-grid, .sk-heat-cols { display: grid; gap: 8px; }
.sk-heat-cols span, .sk-heat-row { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); text-align: center; }
.sk-heat-row { align-self: center; text-align: left; }
.sk-heat-cell { height: 30px; border-radius: 8px; }
.sk-legend { display: flex; flex-wrap: wrap; gap: var(--space-6); margin-top: var(--space-2); font-size: 14px; }
.sk-legend span { display: inline-flex; align-items: center; gap: 10px; }
.sk-legend i { width: 18px; height: 18px; border-radius: 5px; }

/* Setup checklist */
.sk-checklist-meter { padding: var(--space-4) var(--space-6) 0; }
.sk-steps { list-style: none; margin: 0; padding: var(--space-2) 0 var(--space-2); }
.sk-step { display: flex; align-items: center; gap: var(--space-4); padding: 14px var(--space-6); }
.sk-step + .sk-step { border-top: 1.5px dashed var(--line-dashed); }
.sk-step-mark { flex: none; width: 32px; height: 32px; border-radius: var(--radius-md); display: grid; place-items: center; font-family: var(--font-mono); font-size: 13px; background: var(--surface-muted); color: var(--ink-muted); }
.sk-step.is-next .sk-step-mark { background: var(--brand); color: var(--on-brand); }
.sk-step.is-done .sk-step-mark { background: var(--tile-green); color: var(--tile-green-ink); }
.sk-step-text { flex: 1; min-width: 0; }
.sk-step-title { margin: 0; font-weight: 500; font-size: 15px; }
.sk-step.is-done .sk-step-title { color: var(--ink-muted); }
.sk-step-desc { margin: 0; color: var(--ink-muted); font-size: 13.5px; line-height: 20px; }

/* Plan card */
.sk-plan { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); overflow: hidden; }
.sk-plan.is-recommended { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow-raised); }
.sk-plan-head { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--line); }
.sk-plan-name { flex: 1; margin: 0; font-size: 17px; font-weight: 500; }
.sk-plan-body { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5); flex: 1; }
.sk-plan-price { margin: 0; display: flex; align-items: baseline; gap: 6px; }
.sk-plan-amount { font-size: 44px; line-height: 48px; font-weight: 500; letter-spacing: -0.035em; }
.sk-plan-per { color: var(--ink-muted); }
.sk-plan-allow { margin: 0; }
.sk-plan-note { margin: 0; font-size: 13px; color: var(--ink-muted); }
.sk-plan-feats { list-style: none; margin: var(--space-2) 0 var(--space-3); padding: var(--space-4) 0 0; border-top: 1.5px dashed var(--line-dashed); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.sk-plan-feats li { display: flex; gap: var(--space-2); align-items: flex-start; font-size: 14px; line-height: 20px; }
.sk-plan-feats .sk-icon { color: var(--brand-ink); margin-top: 2px; }

/* Sender row */
.sk-sender { display: flex; gap: var(--space-4); align-items: center; padding: var(--space-4) var(--space-6); }
.sk-sender + .sk-sender { border-top: 1.5px dashed var(--line-dashed); }
.sk-sender-text { flex: 1; min-width: 0; }
.sk-sender-line { margin: 0; display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.sk-sender-name { font-weight: 500; font-size: 16px; }
.sk-sender-addr { color: var(--ink-muted); }
.sk-sender-note { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 2px 6px; align-items: center; font-size: 13px; color: var(--warning); }
.sk-sender-note-actions { display: inline-flex; gap: 12px; white-space: nowrap; }
.sk-sender.is-confirming { background: var(--danger-soft); }
.sk-confirm-text { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink); margin-right: var(--space-2); }
.sk-sender-meta { margin: 2px 0 0; font-size: 13px; color: var(--ink-muted); overflow-wrap: anywhere; }
.sk-sender-meta .sk-mono { color: var(--ink); }
.sk-sender-actions { display: flex; gap: var(--space-1); }

/* Empty state */
.sk-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: var(--space-10) var(--space-6); }
.sk-empty .sk-tile { margin-bottom: var(--space-4); }
.sk-empty-title { margin: 0; font-size: 20px; line-height: 28px; font-weight: 500; letter-spacing: -0.015em; }
.sk-empty-body { margin: var(--space-2) 0 0; max-width: 380px; color: var(--ink-muted); }
.sk-empty-action { margin-top: var(--space-5); display: flex; gap: var(--space-2); }

/* Modal */
.sk-modal-wrap { position: fixed; inset: 0; display: grid; place-items: center; padding: var(--space-4); z-index: 50; }
.sk-modal-wrap.is-inline { position: relative; inset: auto; min-height: 100%; }
.sk-scrim { position: absolute; inset: 0; background: var(--scrim); }
.sk-modal { position: relative; width: min(540px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-overlay); overflow: hidden; }
.sk-modal-body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-4); }
.sk-modal-foot { display: flex; justify-content: flex-end; gap: var(--space-2); padding: var(--space-4) var(--space-6); border-top: 1.5px dashed var(--line-dashed); }

/* Brand */
.sk-brand { display: inline-flex; align-items: center; gap: 10px; }
.sk-brand-icon { display: block; width: 34px; height: 34px; }
.sk-brand-logo { display: block; width: 128px; height: auto; }
.sk-brand-logo--lg { width: 160px; }

/* Auth layout */
.sk-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--surface); }
.sk-auth--single { grid-template-columns: 1fr; background: var(--canvas); }
.sk-auth-main { display: flex; flex-direction: column; align-items: center; padding: var(--space-8) var(--space-6); }
.sk-auth-top { width: 100%; max-width: 420px; margin-bottom: auto; padding-bottom: var(--space-10); }
.sk-auth-card { width: 100%; max-width: 420px; }
.sk-auth--single .sk-auth-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: var(--space-10); box-shadow: var(--shadow-raised); max-width: 470px; }
.sk-auth-card > .sk-tile { margin-bottom: var(--space-5); }
.sk-auth-title { margin: 0; font-size: 32px; line-height: 38px; font-weight: 500; letter-spacing: -0.025em; }
.sk-auth-sub { margin: var(--space-2) 0 0; color: var(--ink-muted); font-size: 15px; line-height: 22px; }
.sk-auth-form { margin-top: var(--space-8); display: flex; flex-direction: column; gap: var(--space-4); }
.sk-auth-form .sk-btn--primary { margin-top: var(--space-2); }
.sk-auth-foot { margin: var(--space-6) 0 0; color: var(--ink-muted); width: 100%; max-width: 420px; }
.sk-auth--single .sk-auth-foot { text-align: center; }
.sk-auth-legal { margin: auto 0 0; padding-top: var(--space-10); display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-faint); width: 100%; max-width: 420px; }
.sk-auth-legal a { color: var(--ink-muted); font-weight: 400; }
.sk-auth--single .sk-auth-legal { justify-content: center; }
.sk-auth-aside { padding: var(--space-4); }
.sk-aside-inner { height: 100%; border-radius: var(--radius-xl); background: var(--canvas); border: 1px solid var(--line); padding: var(--space-12) var(--space-10); display: flex; flex-direction: column; justify-content: center; }
.sk-aside-quote { margin: 0; font-size: 30px; line-height: 36px; font-weight: 500; letter-spacing: -0.025em; max-width: 460px; }
.sk-aside-list { list-style: none; padding: 0; margin: var(--space-6) 0 var(--space-8); display: flex; flex-direction: column; gap: var(--space-3); color: var(--ink-muted); }
.sk-aside-list li { display: flex; gap: var(--space-3); align-items: center; }
.sk-aside-list .sk-icon { color: var(--brand-ink); }
.sk-aside-stack { display: flex; flex-direction: column; gap: var(--space-4); max-width: 460px; }
@media (max-width: 860px) { .sk-auth { grid-template-columns: 1fr; } .sk-auth-aside { display: none; } }

/* App shell */
.sk-shell { display: grid; grid-template-columns: 300px minmax(0, 1fr); grid-template-rows: auto 1fr; min-height: 100vh; background: var(--canvas); transition: grid-template-columns .2s ease; }
.sk-shell.is-collapsed { grid-template-columns: 76px minmax(0, 1fr); }
.sk-topbar { grid-column: 1 / -1; display: grid; grid-template-columns: 300px minmax(0, 1fr) auto; align-items: center; gap: var(--space-4); height: 76px; padding: 0 var(--space-6) 0 var(--space-6); background: var(--surface); border-bottom: 1px solid var(--line); }
.is-collapsed .sk-topbar { grid-template-columns: 52px minmax(0, 1fr) auto; }
.sk-topbar-left { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding-right: var(--space-4); }
.sk-history { display: flex; gap: 2px; }
.is-collapsed .sk-history { display: none; }
.sk-topbar .sk-search { justify-self: center; }
.sk-topbar-right { display: flex; gap: var(--space-2); justify-content: flex-end; }
.sk-side { position: sticky; top: 0; height: calc(100vh - 76px); display: flex; flex-direction: column; background: var(--surface); border-right: 1px solid var(--line); overflow: auto; }
.sk-profile { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-5) var(--space-4) var(--space-5) var(--space-6); border-bottom: 1px solid var(--line); }
.is-collapsed .sk-profile { flex-direction: column; padding: var(--space-4) 0; }
.sk-avatar { flex: none; width: 46px; height: 46px; border-radius: var(--radius-pill); display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); font-size: 15px; font-weight: 600; box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--line); }
.sk-profile-text { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.sk-profile-name { font-weight: 600; font-size: 15.5px; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.sk-role { display: inline-block; max-width: 100%; padding: 1px 8px; border-radius: var(--radius-sm); background: var(--surface-muted); color: var(--ink-muted); font-size: 12.5px; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-nav-wrap { padding: var(--space-4) var(--space-4) 0; }
.sk-nav-group { padding: var(--space-3) 0; }
.sk-nav-group + .sk-nav-group { border-top: 1.5px dashed var(--line-dashed); }
.sk-nav-label { margin: var(--space-2) 0 var(--space-3) var(--space-3); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.sk-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.sk-nav-item { font: inherit; width: 100%; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; gap: 14px; height: 46px; padding: 0 var(--space-3); border-radius: var(--radius-tile); color: var(--ink-muted); font-size: 15.5px; font-weight: 400; text-decoration: none !important; }
.sk-nav-item:hover { background: var(--surface-hover); color: var(--ink); }
.sk-nav-item.is-active { background: var(--surface-muted); color: var(--ink); font-weight: 500; box-shadow: inset 0 0 0 1px var(--line); }
.is-collapsed .sk-nav-item { justify-content: center; padding: 0; }
.is-collapsed .sk-nav-wrap { padding: var(--space-3) var(--space-3) 0; }
.sk-live-dot { margin-left: auto; width: 8px; height: 8px; border-radius: var(--radius-pill); background: var(--success); box-shadow: 0 0 0 4px var(--success-soft); }
.sk-side-bottom { margin-top: auto; display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); }
.sk-side-plan { padding: var(--space-4); border-radius: var(--radius-lg); background: var(--canvas); border: 1px solid var(--line); display: flex; flex-direction: column; gap: var(--space-3); }
.sk-upgrade { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; }
.sk-main { min-width: 0; }
.sk-content { max-width: 1180px; margin: 0 auto; padding: var(--space-8) var(--space-8) var(--space-16); }
.sk-content.is-narrow { max-width: 820px; }
.sk-content.is-wide { max-width: none; }
@media (max-width: 760px) {
  .sk-shell, .sk-shell.is-collapsed { grid-template-columns: 1fr; }
  .sk-side { display: none; }
  /* Phones: the menu, the brand and New campaign. Back and forward are the
     phone's own, and the theme switch is in the menu. */
  .sk-topbar, .is-collapsed .sk-topbar { grid-template-columns: auto minmax(0, 1fr) auto; padding: 0 var(--space-4); }
  .sk-topbar-left { padding-right: 0; }
  .sk-history, .sk-topbar-right .sk-themetoggle { display: none; }
  .sk-content { padding: var(--space-6) var(--space-4); }
}

/* Phones: a row with a text button beside its heading gives the button a line
   of its own, so the heading and its text keep the width. */
@media (max-width: 640px) {
  .sk-card-head:has(.sk-card-actions .sk-btn, .sk-card-actions .sk-seg) { flex-wrap: wrap; row-gap: var(--space-3); }
  .sk-card-head:has(.sk-card-actions .sk-btn, .sk-card-actions .sk-seg) .sk-card-headtext { flex-basis: calc(100% - 60px); }
  .sk-card-head:has(.sk-card-actions .sk-btn, .sk-card-actions .sk-seg) .sk-card-actions { flex: 1 1 100%; }
  .sk-card-head:has(> .sk-tile--md) .sk-card-actions { padding-left: 60px; }
  .sk-sender { flex-wrap: wrap; row-gap: var(--space-2); padding: var(--space-4); }
  .sk-sender-text { flex-basis: calc(100% - 60px); }
  .sk-sender > .sk-badge { margin-left: 60px; }
  .sk-sender-actions { margin-left: auto; }
  .sk-notice:has(> .sk-btn) { flex-wrap: wrap; row-gap: var(--space-3); }
  .sk-notice:has(> .sk-btn) .sk-notice-body { flex-basis: calc(100% - 30px); }
  .sk-notice > .sk-btn { margin-left: 30px; }
  .sk-kpis { column-gap: var(--space-6); }
  .sk-lcard-head { flex-wrap: wrap; row-gap: var(--space-3); }
  .sk-lcard-text { flex-basis: calc(100% - 60px); }
  .sk-lcard-head > :nth-child(3) { padding-left: 60px; }
}
/* The narrowest phones: buttons under a heading use the full width. */
@media (max-width: 360px) {
  .sk-card-head:has(> .sk-tile--md) .sk-card-actions, .sk-lcard-head > :nth-child(3) { padding-left: 0; }
}

/* Checkbox */
.sk-check { position: relative; display: inline-grid; place-items: center; width: 20px; height: 20px; cursor: pointer; }
.sk-check input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.sk-check span { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-control); background: var(--surface); display: grid; place-items: center; color: transparent; transition: background .12s, border-color .12s; }
.sk-check input:checked + span, .sk-check input:indeterminate + span { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.sk-check input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Tabs */
.sk-tabs { display: flex; gap: var(--space-6); border-bottom: 1px solid var(--line); margin-bottom: var(--space-6); }
.sk-tab { font: inherit; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; padding: 0 2px 14px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--ink-muted); cursor: pointer; }
.sk-tab:hover { color: var(--ink); }
.sk-tab.is-on { color: var(--ink); font-weight: 500; border-bottom-color: var(--brand); }
.sk-tab-count, .sk-seg-count { font-family: var(--font-mono); font-size: 12px; font-weight: 400; color: var(--ink-faint); }
.sk-seg-item.is-on .sk-seg-count { color: var(--ink-muted); }

/* Bulk bar */
.sk-bulk { display: flex; align-items: center; gap: var(--space-3); padding: 8px 8px 8px var(--space-5); margin-bottom: var(--space-3); border-radius: var(--radius-lg); background: var(--brand-soft); border: 1px solid var(--line); }
.sk-bulk-count { margin-right: auto; color: var(--ink); } .sk-bulk-count b { font-weight: 600; }
.sk-bulk-actions { display: flex; gap: 2px; flex-wrap: wrap; }
.sk-btn--ink { color: var(--ink); }

/* Person */
.sk-person { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.sk-person-av { flex: none; width: 36px; height: 36px; border-radius: var(--radius-pill); display: grid; place-items: center; background: var(--surface-muted); color: var(--ink-muted); font-size: 12.5px; font-weight: 600; }
.sk-person-text { display: flex; flex-direction: column; min-width: 0; line-height: 20px; }
.sk-person-mail { font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sk-person-name { font-size: 13px; color: var(--ink-muted); }
/* Phones: long addresses wrap instead of widening the table. */
@media (max-width: 640px) { .sk-table .sk-person-mail { white-space: normal; overflow-wrap: anywhere; } }

/* Data table */
.sk-table-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); overflow: hidden; }
.sk-table { width: 100%; border-collapse: collapse; }
.sk-table th { padding: 14px var(--space-4); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); border-bottom: 1px solid var(--line); background: var(--surface); }
.sk-table td { padding: 12px var(--space-4); border-top: 1.5px dashed var(--line-dashed); vertical-align: middle; color: var(--ink); }
.sk-table tbody tr:first-child td { border-top: 0; }
.sk-table tbody tr:hover td { background: var(--canvas); }
.sk-table tbody tr.is-selected td { background: var(--brand-soft); }
.sk-td-check { width: 56px; padding-left: var(--space-5) !important; }
.sk-table .sk-date { color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.sk-table-foot { margin: var(--space-3) 0 0; font-size: 13px; color: var(--ink-muted); }
.sk-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* Bar chart */
.sk-bars { display: flex; flex-direction: column; gap: var(--space-3); }
.sk-legend--sm { font-size: 13px; color: var(--ink-muted); margin: 0; gap: var(--space-5); }
.sk-legend--sm i { width: 10px; height: 10px; border-radius: 3px; }
.sk-bars-plot { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: var(--space-2); height: 168px; }
.sk-bars-y { display: flex; flex-direction: column; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); text-align: right; }
.sk-bars-cols { display: flex; align-items: flex-end; gap: 3px; border-bottom: 1px solid var(--line); background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% 50%; }
.sk-bar { flex: 1; height: 100%; display: flex; flex-direction: column-reverse; gap: 2px; min-width: 3px; }
.sk-bar span { display: block; border-radius: 3px 3px 1px 1px; }
.sk-bar-new { background: var(--brand); } .sk-bar-left { background: var(--meter-3); }
.sk-bars-x { display: flex; justify-content: space-between; padding-left: 36px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); }
.sk-kpis { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-8); margin-bottom: var(--space-5); }
.sk-kpis div { display: flex; flex-direction: column; }
.sk-kpis span { color: var(--ink-muted); font-size: 13.5px; }
.sk-kpis b { font-size: 26px; line-height: 32px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* Copy value */
.sk-copy { display: flex; align-items: flex-start; gap: 4px; min-width: 0; }
.sk-copy code { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 12px; line-height: 18px; color: var(--ink); overflow-wrap: anywhere; padding-top: 7px; }
.sk-copy-btn { width: 30px; height: 30px; opacity: .7; }
.sk-dns-row:hover .sk-copy-btn { opacity: 1; }

/* Domain card */
.sk-domain { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden; }
.sk-domain + .sk-domain { margin-top: var(--space-3); }
.sk-domain-head { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-5); }
.sk-domain-meter { padding: 0 var(--space-5) var(--space-4); }
.sk-domain-body { border-top: 1.5px dashed var(--line-dashed); padding: var(--space-5); }
.sk-domain-help { margin: 0 0 var(--space-4); color: var(--ink-muted); } .sk-domain-help b { color: var(--ink); font-weight: 500; }
.sk-dns { border: 1px solid var(--line); border-radius: var(--radius-tile); overflow: hidden; }
.sk-dns-row { display: grid; grid-template-columns: 84px minmax(0, 1.1fr) minmax(0, 1.1fr) 190px; gap: var(--space-4); align-items: start; padding: 10px var(--space-4); border-top: 1.5px dashed var(--line-dashed); }
.sk-dns-row:nth-child(2) { border-top: 0; }
.sk-dns-row > span:first-child { padding-top: 4px; }
.sk-dns-headrow { background: var(--canvas); border-top: 0; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); padding-top: 12px; padding-bottom: 12px; }
.sk-dns-headrow > span:first-child { padding-top: 0; }
.sk-dns-status { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 2px; }
.sk-dns-status small { font-size: 12.5px; color: var(--ink-muted); line-height: 16px; }
/* The full name or priority under a record's Host or value. */
.sk-dns-sub { display: flex; align-items: flex-start; gap: var(--space-2); }
.sk-dns-sub > span { flex: none; padding-top: 7px; font-size: 12px; line-height: 18px; color: var(--ink-faint); }
.sk-dns-sub .sk-copy code { color: var(--ink-muted); }
.sk-dns-sub .sk-copy-btn { width: 26px; height: 26px; }
/* Where a record was added instead, across the whole row. */
.sk-dns-hint { grid-column: 1 / -1; margin: 0; padding: 8px 12px; border-radius: var(--radius-tile); background: var(--warning-soft); color: var(--ink); font-size: 13px; }
.sk-dns-hint code { font-family: var(--font-mono); font-size: 12px; overflow-wrap: anywhere; }
.sk-domain-foot { display: flex; align-items: center; gap: var(--space-2); justify-content: flex-start; margin-top: var(--space-4); }

/* File drop */
.sk-drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--space-2); padding: var(--space-10) var(--space-6); border: 1.5px dashed var(--line-control); border-radius: var(--radius-lg); background: var(--canvas); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.sk-drop:hover, .sk-drop:focus-within { border-color: var(--brand); background: var(--brand-soft); }
.sk-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.sk-drop .sk-tile { margin-bottom: var(--space-2); }
.sk-drop-title { font-size: 16px; font-weight: 500; }
.sk-drop-hint { font-size: 13px; color: var(--ink-muted); max-width: 420px; }

/* List row */
.sk-row-item { display: flex; align-items: center; gap: var(--space-4); padding: 14px var(--space-6); }
.sk-row-item + .sk-row-item { border-top: 1.5px dashed var(--line-dashed); }
.sk-row-text { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: var(--space-3); flex-wrap: wrap; }
.sk-row-title { font-weight: 500; font-size: 15.5px; }
.sk-row-meta { font-size: 13.5px; color: var(--ink-muted); }
.sk-row-actions { display: flex; gap: 2px; }
.sk-toolbar { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; margin-bottom: var(--space-3); }
.sk-toolbar .sk-search { max-width: none; flex: 1; min-width: 240px; height: 44px; }
.sk-toolbar .sk-spacer { flex: 1; }
.sk-span-3 { grid-column: span 3; }

/* Key–value list */
.sk-kv { margin: 0; display: flex; flex-direction: column; }
.sk-kv > div { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: var(--space-4); padding: 10px 0; }
.sk-kv > div + div { border-top: 1.5px dashed var(--line-dashed); }
.sk-kv dt { color: var(--ink-muted); }
.sk-kv dd { margin: 0; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.sk-kv dd.sk-mono { font-weight: 400; padding-top: 1px; }

/* Timeline */
.sk-tl { list-style: none; margin: 0; padding: 0; position: relative; }
.sk-tl li { position: relative; display: flex; gap: var(--space-4); padding-bottom: var(--space-5); }
.sk-tl li:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 36px; bottom: 4px; border-left: 1.5px dashed var(--line-dashed); }
.sk-tl-title { margin: 4px 0 0; font-weight: 500; }
.sk-tl-title b { font-weight: 600; }
.sk-tl-meta { margin: 0; font-size: 13px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.sk-tl-empty { padding-left: 48px !important; color: var(--ink-muted); font-size: 13.5px; }

/* Tag picker */
.sk-tagpick { display: flex; flex-wrap: wrap; gap: 8px; }
.sk-tagchip { font: inherit; font-family: var(--font-mono); font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--radius-md); border: 1px solid var(--line-control); background: var(--surface); color: var(--ink-muted); cursor: pointer; }
.sk-tagchip:hover { color: var(--ink); background: var(--surface-hover); }
.sk-tagchip.is-on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink); }
.sk-tagchip.is-new { border-style: dashed; font-family: var(--font-sans); }

/* Public page (subscriber-facing: always light, customer's accent) */
.sk-pf { --pf-accent: var(--brand); --pf-on-accent: var(--on-brand); background: var(--canvas); color: var(--ink); padding: var(--space-10) var(--space-6); display: flex; flex-direction: column; align-items: center; gap: var(--space-4); min-height: 100%; }
.sk-pf-card { width: 100%; max-width: 480px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-raised); padding: var(--space-8); }
.sk-pf.is-mobile .sk-pf-card { max-width: 340px; padding: var(--space-6); }
.sk-pf-form { display: flex; flex-direction: column; gap: var(--space-4); }
.sk-pf-title { margin: 0; font-size: 26px; line-height: 32px; font-weight: 600; letter-spacing: -0.02em; }
.sk-pf-text { margin: -6px 0 0; color: var(--ink-muted); font-size: 15px; line-height: 23px; }
.sk-pf-center { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-3); }
.sk-pf-center .sk-pf-text { margin: 0; }
.sk-pf-badge { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--radius-pill); background: var(--pf-accent); color: var(--pf-on-accent); margin-bottom: var(--space-2); }
.sk-pf-badge.is-muted { background: var(--surface-muted); color: var(--ink-muted); }
.sk-pf-field { display: flex; flex-direction: column; gap: 7px; font-weight: 500; font-size: 14px; }
.sk-pf-field input { font: inherit; font-weight: 400; font-size: 15px; height: 48px; padding: 0 14px; border-radius: var(--radius-tile); border: 1px solid var(--line-control); background: var(--surface); color: var(--ink); }
.sk-pf-field input:focus { outline: none; border-color: var(--pf-accent); box-shadow: 0 0 0 4px var(--surface-muted); }
.sk-pf-btn { font: inherit; font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 var(--space-6); border: 0; border-radius: var(--radius-tile); background: var(--pf-accent); color: var(--pf-on-accent); cursor: pointer; text-decoration: none !important; margin-top: var(--space-1); }
.sk-pf-btn:hover { filter: brightness(.95); }
.sk-pf-fine { margin: 0; font-size: 12.5px; line-height: 18px; color: var(--ink-muted); }
.sk-pf-powered { margin: 0; font-size: 12.5px; color: var(--ink-faint); }
.sk-pf-powered b { font-weight: 500; color: var(--ink-muted); }

/* Email preview */
.sk-mail { background: var(--surface); color: var(--ink); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.sk-mail-head { padding: var(--space-5) var(--space-6); border-bottom: 1px solid var(--line); }
.sk-mail-subject { margin: 0 0 var(--space-3); font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.sk-mail-from { display: flex; gap: var(--space-3); align-items: center; font-size: 13.5px; line-height: 19px; }
.sk-mail-from b { font-weight: 600; } .sk-mail-from .sk-mono { color: var(--ink-muted); font-size: 12px; }
.sk-mail-to { color: var(--ink-muted); font-size: 12.5px; }
.sk-mail-body { background: var(--canvas); padding: var(--space-8) var(--space-6); display: flex; flex-direction: column; align-items: center; gap: var(--space-4); }
.sk-mail-card { width: 100%; max-width: 520px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-8); font-size: 15px; line-height: 24px; }
.sk-mail-card p { margin: 0 0 var(--space-4); }
.sk-mail-btn { margin: var(--space-2) 0 var(--space-5); }
.sk-mail-link { font-size: 12.5px; color: var(--ink-muted); margin: 0 !important; overflow-wrap: anywhere; }
.sk-mail-foot { margin: 0; text-align: center; font-size: 12.5px; line-height: 18px; color: var(--ink-muted); } .sk-mail-foot b { color: var(--ink); font-weight: 500; }

/* Preview frame */
.sk-pframe { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-card); overflow: hidden; position: sticky; top: var(--space-6); }
.sk-pframe-bar { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); }
.sk-pframe-live { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink-muted); }
.sk-pframe-live .sk-live-dot { margin: 0; }
.sk-pframe-stage { background: var(--canvas); min-height: 420px; }
.sk-pframe-stage > .sk-mail { margin: var(--space-5); }

/* QR */
.sk-qr { display: block; fill: #18181b; border-radius: var(--radius-md); }
.sk-qr .sk-qr-bg, .sk-qr > .sk-qr-bg { fill: #ffffff; }
.sk-share-row { display: flex; gap: var(--space-2); align-items: center; }
.sk-share-row .sk-copy { flex: 1; height: 44px; align-items: center; padding: 0 4px 0 14px; border: 1px solid var(--line-control); border-radius: var(--radius-tile); background: var(--canvas); }
.sk-share-row .sk-copy code { padding: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
.sk-qr-box { display: flex; gap: var(--space-5); align-items: center; padding: var(--space-4); border: 1.5px dashed var(--line-dashed); border-radius: var(--radius-lg); }
.sk-qr-box p { margin: 0 0 var(--space-3); color: var(--ink-muted); }
.sk-codeblock { margin: 0; padding: var(--space-4); border-radius: var(--radius-tile); background: var(--canvas); border: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; line-height: 19px; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.sk-toggle-row { display: flex; gap: var(--space-3); align-items: flex-start; }
.sk-toggle-row .sk-check { margin-top: 2px; }
.sk-toggle-row b { display: block; font-weight: 500; }
.sk-toggle-row span.sk-hint { display: block; }
.sk-num { font-variant-numeric: tabular-nums; }

/* Merge tag */
.sk-merge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; margin-right: 6px; border-radius: var(--radius-sm); background: var(--brand-soft); color: var(--brand-ink); font-size: 12.5px; font-weight: 500; vertical-align: middle; white-space: nowrap; }
.sk-merge.is-lg { height: 36px; padding: 0 12px; font-size: 20px; border-radius: var(--radius-md); }

/* Toast */
.sk-toast { position: fixed; left: 50%; bottom: var(--space-6); transform: translateX(-50%); z-index: 60; display: inline-flex; align-items: center; gap: var(--space-3); padding: 8px 8px 8px var(--space-4); border-radius: var(--radius-lg); background: var(--ink); color: var(--canvas); box-shadow: var(--shadow-overlay); font-weight: 500; }
.sk-toast.is-inline { position: static; transform: none; }
.sk-toast .sk-icon-btn { color: var(--canvas); opacity: .7; width: 30px; height: 30px; } .sk-toast .sk-icon-btn:hover { background: transparent; opacity: 1; color: var(--canvas); }
.sk-toast-ic--success { color: var(--success-soft); }
.sk-toast-action { font: inherit; border: 0; background: none; color: var(--canvas); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0 4px; }

/* Radio card */
.sk-radiocard { position: relative; display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-4); border: 1px solid var(--line-control); border-radius: var(--radius-lg); background: var(--surface); cursor: pointer; transition: border-color .15s, background .15s; }
.sk-radiocard:hover { background: var(--surface-hover); }
.sk-radiocard.is-on { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 1px var(--brand); }
.sk-radiocard.is-compact { padding: 12px var(--space-4); align-items: center; }
.sk-radiocard > input { position: absolute; opacity: 0; pointer-events: none; }
.sk-radio-dot { flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: var(--radius-pill); border: 1.5px solid var(--line-control); background: var(--surface); display: grid; place-items: center; }
.sk-radiocard.is-compact .sk-radio-dot { margin-top: 0; }
.sk-radiocard.is-on .sk-radio-dot { border-color: var(--brand); } .sk-radiocard.is-on .sk-radio-dot::after { content: ""; width: 10px; height: 10px; border-radius: var(--radius-pill); background: var(--brand); }
.sk-radiocard > input:focus-visible ~ .sk-radio-dot { outline: 2px solid var(--focus); outline-offset: 2px; }
.sk-radiocard-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sk-radiocard-text b { font-weight: 500; }
.sk-radiocard-text > span { color: var(--ink-muted); font-size: 13.5px; line-height: 20px; }
.sk-radiocard-extra { margin-top: var(--space-3); color: var(--ink) !important; cursor: default; }
.sk-radiocard-aside { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-muted); white-space: nowrap; }
.sk-radios { display: flex; flex-direction: column; gap: var(--space-2); }

/* Inbox preview */
.sk-inbox { display: flex; gap: var(--space-3); align-items: center; padding: 12px var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-tile); background: var(--canvas); }
.sk-inbox-text { flex: 1; min-width: 0; }
.sk-inbox-from { margin: 0; display: flex; justify-content: space-between; } .sk-inbox-from b { font-weight: 600; } .sk-inbox-from span { font-size: 12.5px; color: var(--ink-faint); }
.sk-inbox-line { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .sk-inbox-line b { font-weight: 500; } .sk-inbox-line span, .sk-inbox-line i { color: var(--ink-muted); }

/* Envelope (from / to / subject rows) */
.sk-env { display: flex; flex-direction: column; }
.sk-env-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); align-items: center; gap: var(--space-4); padding: 12px var(--space-6); }
.sk-env-row + .sk-env-row { border-top: 1.5px dashed var(--line-dashed); }
.sk-env-row > span:first-child { color: var(--ink-muted); }
.sk-env-row .sk-field { gap: 0; }
.sk-env-inline { display: flex; gap: var(--space-2); align-items: center; }
.sk-env-inline > :first-child { flex: 1; min-width: 0; }

/* Editor */
.sk-etool { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; padding: 8px var(--space-3); border-bottom: 1px solid var(--line); }
.sk-etool .sk-input { height: 36px; font-size: 14px; }
.sk-etool-sep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }
.sk-etool .sk-icon-btn.is-on { background: var(--brand-soft); color: var(--brand-ink); }
.sk-ecanvas { background: var(--canvas); padding: var(--space-8) var(--space-6); display: flex; justify-content: center; --pf-accent: var(--brand); --pf-on-accent: var(--on-brand); }
.sk-ecard { width: 100%; max-width: 600px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-10) var(--space-8) var(--space-6); outline: none; }
.sk-ecanvas.is-phone .sk-ecard { max-width: 360px; padding: var(--space-6) var(--space-5); }
.sk-ecard[contenteditable]:focus { box-shadow: 0 0 0 2px var(--focus); }
.sk-e-logo { margin: 0 0 var(--space-6); font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }
.sk-e-h1 { margin: 0 0 var(--space-3); font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -0.02em; }
.sk-e-p { margin: 0 0 var(--space-4); font-size: 16px; line-height: 26px; color: var(--ink-muted); }
.sk-e-btn { margin: var(--space-2) 0 var(--space-6); }
.sk-e-img { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; height: 180px; border-radius: var(--radius-md); background: var(--surface-muted); color: var(--ink-faint); font-size: 13px; margin-bottom: var(--space-5); }
.sk-e-foot { margin: var(--space-6) 0 0; padding-top: var(--space-4); border-top: 1px solid var(--line); font-size: 12.5px; color: var(--ink-muted); text-align: center; line-height: 19px; }
.sk-eplain { margin: 0; width: 100%; max-width: 600px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-6); font-family: var(--font-mono); font-size: 13px; line-height: 21px; white-space: pre-wrap; }
.sk-saved { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-muted); }
.sk-headline-row { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-2); }

/* Line chart */
.sk-lchart { display: flex; flex-direction: column; gap: var(--space-3); }
.sk-lchart-svg { width: 100%; height: 100%; overflow: visible; border-bottom: 1px solid var(--line); }
.sk-lchart-grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sk-legend--sm i.is-dashed { height: 0; width: 16px; border-top: 2px dashed; border-radius: 0; }
.sk-legend--sm b { font-weight: 500; color: var(--ink); }
.sk-summary { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); padding: var(--space-4) var(--space-5); border-radius: var(--radius-lg); background: var(--canvas); border: 1px solid var(--line); }
.sk-summary div { display: flex; flex-direction: column; gap: 2px; }
.sk-summary span { color: var(--ink-muted); font-size: 13px; }
.sk-summary b { font-size: 24px; line-height: 30px; font-weight: 500; letter-spacing: -0.02em; }
.sk-summary b small { font-size: 13px; font-weight: 400; color: var(--ink-muted); letter-spacing: 0; }
.sk-summary p { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--ink-muted); }
.sk-confirm { padding: var(--space-4) var(--space-5); border-radius: var(--radius-lg); background: var(--warning-soft); display: flex; flex-direction: column; gap: var(--space-3); }
.sk-confirm p { margin: 0; color: var(--ink); } .sk-confirm b { font-weight: 600; }
.sk-confirm-actions { display: flex; gap: var(--space-2); justify-content: flex-end; }
.sk-radiocard-extra { display: block; }
.sk-stat-body { flex-wrap: wrap; row-gap: var(--space-2); }

/* Hosted (billing) shell */
.sk-hosted { min-height: 100vh; display: flex; flex-direction: column; background: var(--canvas); }
.sk-hosted-top { background: var(--surface); border-bottom: 1px solid var(--line); }
.sk-hosted-inner { max-width: 960px; margin: 0 auto; height: 68px; padding: 0 var(--space-6); display: flex; align-items: center; justify-content: space-between; }
.sk-hosted-main { width: 100%; max-width: 960px; margin: 0 auto; padding: var(--space-8) var(--space-6) var(--space-10); flex: 1; }
.sk-hosted-main.is-narrow { max-width: 640px; }
.sk-hosted-foot { display: flex; justify-content: center; align-items: center; gap: 6px; padding: var(--space-5); font-size: 12.5px; color: var(--ink-faint); }

/* Line items */
.sk-lines { display: flex; flex-direction: column; }
.sk-line { display: flex; justify-content: space-between; gap: var(--space-4); padding: 12px 0; }
.sk-line + .sk-line { border-top: 1.5px dashed var(--line-dashed); }
.sk-line p { margin: 0; font-weight: 500; } .sk-line span { font-size: 13px; color: var(--ink-muted); }
.sk-line b { font-weight: 500; white-space: nowrap; }
.sk-line.is-credit b { color: var(--success); }
.sk-line.is-total { border-top: 1px solid var(--ink) !important; margin-top: 4px; } .sk-line.is-total p, .sk-line.is-total b { font-size: 18px; font-weight: 600; }
.sk-lines-note { margin: var(--space-2) 0 0; font-size: 13px; color: var(--ink-muted); }

/* Plan row */
.sk-planrow { display: grid; grid-template-columns: auto minmax(0, 1fr) 150px 190px; gap: var(--space-4); align-items: center; padding: 14px var(--space-6); }
.sk-planrow + .sk-planrow { border-top: 1.5px dashed var(--line-dashed); }
.sk-planrow.is-current { background: var(--brand-soft); }
.sk-planrow-text, .sk-planrow-price { display: flex; flex-direction: column; } .sk-planrow-text b, .sk-planrow-price b { font-weight: 500; } .sk-planrow-text span, .sk-planrow-price span { font-size: 13px; color: var(--ink-muted); }
.sk-planrow-price { align-items: flex-end; } .sk-planrow-act { display: flex; justify-content: flex-end; }

/* Card */
.sk-cardslot { display: grid; grid-template-columns: minmax(0, 1fr) 90px 70px; align-items: center; gap: var(--space-3); height: 48px; padding: 0 14px; border: 1px solid var(--line-control); border-radius: var(--radius-tile); background: var(--surface); color: var(--ink-faint); font-family: var(--font-mono); font-size: 13.5px; }
.sk-cardslot-num { display: inline-flex; align-items: center; gap: 10px; }
.sk-savedcard { display: flex; align-items: center; gap: var(--space-4); }
.sk-cardchip { display: grid; place-items: center; width: 52px; height: 34px; border-radius: 6px; background: var(--ink); color: var(--canvas); font-size: 12px; font-weight: 700; font-style: italic; letter-spacing: .02em; }
.sk-success { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--space-3); padding: var(--space-10) var(--space-8); }
.sk-success .sk-tile { margin-bottom: var(--space-2); }
.sk-success h1 { margin: 0; font-size: 28px; font-weight: 500; letter-spacing: -0.02em; }
.sk-success p { margin: 0; color: var(--ink-muted); }

/* Invoice (always light, printable) */
.sk-invoice { max-width: 820px; margin: 0 auto; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-raised); padding: var(--space-10); display: flex; flex-direction: column; gap: var(--space-8); }
.sk-inv-head { display: flex; justify-content: space-between; gap: var(--space-6); padding-bottom: var(--space-6); border-bottom: 2px solid var(--brand); }
.sk-inv-co { margin: var(--space-3) 0 0; font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.sk-inv-title { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; } .sk-inv-title p { margin: 0; font-size: 32px; font-weight: 500; letter-spacing: -0.02em; }
.sk-inv-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.sk-inv-meta div, .sk-inv-parties div { display: flex; flex-direction: column; gap: 4px; }
.sk-inv-meta span, .sk-inv-parties span { font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.sk-inv-meta b { font-weight: 500; } .sk-inv-parties p { margin: 0; font-size: 14px; line-height: 21px; color: var(--ink-muted); } .sk-inv-parties b { color: var(--ink); font-weight: 600; }
.sk-inv-table { width: 100%; border-collapse: collapse; }
.sk-inv-table th { text-align: left; font-size: 11.5px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); padding: 0 0 10px; border-bottom: 1px solid var(--line); }
.sk-inv-table td { padding: 14px 0; border-bottom: 1.5px dashed var(--line-dashed); vertical-align: top; font-variant-numeric: tabular-nums; }
.sk-inv-table th:nth-child(n+2), .sk-inv-table td:nth-child(n+2) { text-align: right; width: 110px; }
.sk-inv-table small { color: var(--ink-muted); font-size: 12.5px; }
.sk-inv-totals { margin-left: auto; width: 360px; display: flex; flex-direction: column; gap: var(--space-3); }
.sk-inv-paid { display: grid; grid-template-columns: 1fr auto; gap: 6px; font-size: 14px; } .sk-inv-paid span { color: var(--ink-muted); } .sk-inv-paid b { font-weight: 500; text-align: right; }
.sk-inv-foot { padding-top: var(--space-4); border-top: 1px solid var(--line); font-size: 12.5px; line-height: 19px; color: var(--ink-muted); }
@media print { .sk-hosted-top, .sk-hosted-foot, .sk-noprint { display: none !important; } .sk-invoice { box-shadow: none; border: 0; } }

/* Theme toggle + light/dark pair */
.sk-themetoggle { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--radius-md); background: var(--surface-muted); border: 1px solid var(--line); }
.sk-themetoggle-btn { font: inherit; font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; height: 28px; min-width: 30px; justify-content: center; padding: 0 8px; border: 0; border-radius: 7px; background: transparent; color: var(--ink-muted); cursor: pointer; }
.sk-themetoggle-btn:hover { color: var(--ink); }
.sk-themetoggle-btn.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-card), 0 0 0 1px var(--line); }
.sk-auth-top { display: flex; align-items: center; justify-content: space-between; }
.sk-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 24px; background: var(--canvas); }
.sk-pair-col { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.sk-pair-label { margin: 0; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); }
.sk-pair-frame { border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; background: var(--canvas); color: var(--ink); box-shadow: var(--shadow-raised); }
.sk-pair-frame .sk-shell, .sk-pair-frame .sk-auth, .sk-pair-frame .sk-hosted { min-height: 0; }
.sk-pair-frame .sk-side { height: auto; position: static; }
