/* =============================================================================
 * Degen Team Portal — Apple × Linear hybrid
 * Builds on top of linear.css design tokens (--lx-*)
 *
 * Design notes:
 *   - Linear's precision + Apple's generosity
 *   - Warm coral accent (#ff6b5b) — a nod to Pokéball red without being cheesy
 *   - Spring easing (cubic-bezier(0.22, 1, 0.36, 1)) for exits, "ease" for idle
 *   - Big breathing type on hero moments (onboarding), tight efficient type on data pages
 * ========================================================================== */

:root {
  --pt-accent: #ff6b5b;
  --pt-accent-hover: #ff8577;
  --pt-accent-soft: rgba(255, 107, 91, 0.14);
  --pt-accent-glow: rgba(255, 107, 91, 0.35);
  --pt-accent-ink: #18181b;

  --pt-ok: #34d399;
  --pt-warn: #fcd34d;
  --pt-err: #fca5a5;

  --pt-surface: var(--lx-s1, #111114);
  --pt-surface-raised: var(--lx-s2, #17171c);
  --pt-surface-hi: #1d1d23;
  --pt-card: var(--pt-surface);
  --pt-soft: var(--pt-surface-raised);
  --pt-bg: var(--lx-bg, #0b0b0e);
  --pt-text: var(--lx-text, #f4f4f5);
  --pt-muted: var(--lx-muted, #9ca0af);
  --pt-border: var(--lx-br, rgba(255, 255, 255, 0.08));

  --pt-radius-xs: 8px;
  --pt-radius-sm: 10px;
  --pt-radius-md: 14px;
  --pt-radius-lg: 20px;
  --pt-radius-xl: 28px;

  --pt-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
  --pt-shadow-md: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --pt-shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.6);

  --pt-ease-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --pt-ease-out: cubic-bezier(0.4, 0, 0.2, 1);

  --pt-font: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter",
             "Segoe UI", Roboto, sans-serif;
  --pt-font-mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

html, body {
  background: var(--pt-bg);
  color: var(--pt-text);
  font-family: var(--pt-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  overflow-x: hidden;
}

body.pt-body {
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(255, 107, 91, 0.08), transparent 60%),
    radial-gradient(900px 500px at 100% 110%, rgba(94, 106, 210, 0.08), transparent 55%),
    var(--pt-bg);
  min-height: 100vh;
  min-height: 100dvh;
}

a { color: inherit; text-decoration: none; }

/* =========================================================================
 * App shell — sidebar + main
 * ====================================================================== */

.pt-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  min-height: 100dvh;
}

.pt-side {
  padding: 28px 16px 20px;
  border-right: 1px solid var(--pt-border);
  background: rgba(17, 17, 20, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
}

.pt-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 22px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.pt-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015)),
    rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.25) inset,
    0 10px 24px rgba(255, 107, 91, 0.13);
  flex-shrink: 0;
  overflow: hidden;
}
.pt-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 5px 9px rgba(0, 0, 0, 0.35));
}

.pt-brand-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pt-accent) 0%, #c11818 100%);
  position: relative;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 4px 14px var(--pt-accent-glow);
  flex-shrink: 0;
}
.pt-brand-dot::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 3px;
  background: #0a0a0a;
  transform: translateY(-50%);
}
.pt-brand-dot::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 8px;
  height: 8px;
  background: #fff;
  border: 2px solid #0a0a0a;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.pt-brand-name { line-height: 1; }
.pt-brand-sub {
  font-size: 10px;
  color: var(--pt-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
}

.pt-nav-section {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pt-muted);
  padding: 14px 12px 6px;
}

.pt-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--pt-radius-xs);
  font-size: 14px;
  color: var(--pt-text);
  transition: background 160ms var(--pt-ease-out), color 160ms var(--pt-ease-out), transform 160ms var(--pt-ease-out);
}
.pt-link:hover { background: var(--pt-surface-raised); transform: translateX(2px); }
.pt-link.active {
  background: var(--pt-surface-hi);
  color: var(--pt-accent);
  font-weight: 600;
  box-shadow: inset 2px 0 0 var(--pt-accent);
}
.pt-link-ico {
  width: 16px; height: 16px; flex-shrink: 0; opacity: 0.9;
  display: inline-flex; align-items: center; justify-content: center;
}

.pt-side-group {
  margin-top: 18px;
  padding: 0 12px 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pt-muted);
  border-top: 1px solid var(--pt-border);
  padding-top: 14px;
}

.pt-side-footer {
  margin-top: auto;
  padding: 16px 8px 0;
  font-size: 12px;
  color: var(--pt-muted);
  border-top: 1px solid var(--pt-border);
}
.pt-side-footer .pt-link { padding: 6px 10px; }

.pt-main {
  padding: 36px 44px 96px;
  max-width: 1160px;
  width: 100%;
  min-width: 0;
}

.pt-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--pt-border);
}

.pt-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pt-now {
  color: var(--pt-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

.pt-h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
}
.pt-h1-sub {
  font-size: 13px;
  color: var(--pt-muted);
  margin-top: 4px;
  letter-spacing: 0;
}

.pt-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  padding: 5px 10px;
  border: 1px solid var(--pt-border);
  border-radius: 999px;
  color: var(--pt-muted);
  background: rgba(255, 255, 255, 0.02);
}

/* =========================================================================
 * Cards
 * ====================================================================== */

.pt-card {
  background: var(--pt-surface);
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius-md);
  padding: 20px 22px;
  margin-bottom: 16px;
  box-shadow: var(--pt-shadow-sm);
  min-width: 0;
  overflow-wrap: break-word;
  transition: border-color 200ms var(--pt-ease-out), transform 200ms var(--pt-ease-out);
}
.pt-card:hover { border-color: rgba(255, 255, 255, 0.14); }
.pt-card h2 {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pt-muted);
}
.pt-card-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--pt-text);
}
.pt-card-sub {
  font-size: 13px;
  color: var(--pt-muted);
  line-height: 1.5;
}

.pt-card.pt-hero {
  padding: 32px;
  border-radius: var(--pt-radius-lg);
  background:
    radial-gradient(600px 200px at 0% 0%, var(--pt-accent-soft), transparent 70%),
    var(--pt-surface);
}

/* =========================================================================
 * Buttons
 * ====================================================================== */

.pt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--pt-radius-sm);
  font-size: 14px;
  font-weight: 500;
  background: var(--pt-surface-raised);
  border: 1px solid var(--pt-border);
  color: var(--pt-text);
  cursor: pointer;
  transition: background 150ms var(--pt-ease-out), border-color 150ms var(--pt-ease-out), transform 120ms var(--pt-ease-out);
  font-family: inherit;
}
.pt-btn:hover { background: var(--pt-surface-hi); border-color: rgba(255, 255, 255, 0.18); }
.pt-btn:active { transform: scale(0.98); }
.pt-btn:disabled {
  opacity: 0.4; cursor: not-allowed; transform: none;
}

.pt-btn.primary {
  background: var(--pt-accent);
  border-color: var(--pt-accent);
  color: var(--pt-accent-ink);
  font-weight: 600;
  box-shadow: 0 6px 20px -8px var(--pt-accent-glow);
}
.pt-btn.primary:hover { background: var(--pt-accent-hover); border-color: var(--pt-accent-hover); }

.pt-btn.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--pt-muted);
}
.pt-btn.ghost:hover { background: var(--pt-surface-raised); color: var(--pt-text); }

.pt-btn.lg {
  padding: 13px 24px;
  font-size: 15px;
  border-radius: var(--pt-radius-md);
}
.pt-btn.xl {
  padding: 16px 32px;
  font-size: 17px;
  border-radius: var(--pt-radius-md);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.pt-btn.danger {
  color: var(--pt-err);
  border-color: rgba(239, 68, 68, 0.3);
}
.pt-btn.danger:hover { background: rgba(239, 68, 68, 0.12); }

/* =========================================================================
 * Forms
 * ====================================================================== */

.pt-field { margin-bottom: 14px; }
.pt-field-label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--pt-muted);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.pt-input, .pt-select, .pt-textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--pt-radius-sm);
  border: 1px solid var(--pt-border);
  background: var(--pt-surface-raised);
  color: var(--pt-text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 160ms var(--pt-ease-out), background 160ms var(--pt-ease-out), box-shadow 160ms var(--pt-ease-out);
}
.pt-input:focus, .pt-select:focus, .pt-textarea:focus {
  outline: none;
  border-color: var(--pt-accent);
  background: var(--pt-surface-hi);
  box-shadow: 0 0 0 4px var(--pt-accent-soft);
}
.pt-input::placeholder, .pt-textarea::placeholder { color: rgba(156, 160, 175, 0.5); }

.pt-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.pt-row.cols-3 { grid-template-columns: 2fr 1fr 1fr; }

/* Reusable page-level two-column grid (main + aside). Collapses to a
   single column on phones so nothing squeezes. Used by /team/profile,
   /team/supply — anywhere we'd otherwise inline a grid-template-columns.
   The default ratio is main-heavier (2fr : 1fr); .alt-wide gives the
   aside a bit more room for tables (1fr : 1.2fr). */
.pt-two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  min-width: 0;
}
.pt-two-col.alt-wide { grid-template-columns: 1fr 1.2fr; }
.pt-two-col > *,
.pt-row > *,
.pt-addr-row > * {
  min-width: 0;
}

/* Address row — street/city/state/zip inline. Collapses to 1 col on
   phones, and to 2 cols (city | state+zip) on tiny tablets. */
.pt-addr-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 8px;
}

/* Password input with a tap-to-reveal button baked in. Wrap the
   `<input>` in `.pt-pw-wrap` and add a `<button class="pt-pw-toggle">`
   sibling; CSS positions it in the right edge of the field. */
.pt-pw-wrap {
  position: relative;
  display: block;
}
.pt-pw-wrap .pt-input,
.pt-pw-wrap .onb-input { padding-right: 58px; }
.pt-pw-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  min-width: 46px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--pt-muted);
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.02em;
  -webkit-tap-highlight-color: transparent;
  transition: background 140ms var(--pt-ease-out), color 140ms var(--pt-ease-out);
}
.pt-pw-toggle:hover,
.pt-pw-toggle:focus-visible {
  background: var(--pt-surface-raised);
  color: var(--pt-text);
  outline: none;
}
.pt-pw-toggle[aria-pressed="true"] { color: var(--pt-accent); }

/* =========================================================================
 * Flashes
 * ====================================================================== */

.pt-flash, .pt-error, .pt-warn-banner {
  padding: 12px 16px;
  border-radius: var(--pt-radius-sm);
  font-size: 13px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pt-flash { background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.3); color: var(--pt-ok); }
.pt-error { background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.3); color: var(--pt-err); }
.pt-warn-banner { background: rgba(252, 211, 77, 0.1); border: 1px solid rgba(252, 211, 77, 0.3); color: var(--pt-warn); }

/* =========================================================================
 * Tables
 * ====================================================================== */

.pt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.pt-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pt-muted);
  border-bottom: 1px solid var(--pt-border);
}
.pt-table td {
  padding: 12px;
  border-bottom: 1px solid var(--pt-border);
}
.pt-table tr:last-child td { border-bottom: none; }

/* Status pills */
.pt-pill {
  display: inline-flex;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  text-transform: capitalize;
}
.pt-pill.submitted { background: rgba(94, 106, 210, 0.15); color: #a5b4fc; }
.pt-pill.approved  { background: rgba(52, 211, 153, 0.15); color: var(--pt-ok); }
.pt-pill.denied    { background: rgba(239, 68, 68, 0.15);  color: var(--pt-err); }
.pt-pill.ordered   { background: rgba(252, 211, 77, 0.15); color: var(--pt-warn); }
.pt-pill.low       { background: rgba(156, 160, 175, 0.12); color: var(--pt-muted); }
.pt-pill.normal    { background: rgba(94, 106, 210, 0.15); color: #a5b4fc; }
.pt-pill.high      { background: rgba(239, 68, 68, 0.15); color: var(--pt-err); }

/* =========================================================================
 * Auth shell (login / reset / forgot)
 * ====================================================================== */

.pt-auth-body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(900px 500px at 15% 10%, var(--pt-accent-soft), transparent 55%),
    radial-gradient(700px 400px at 90% 90%, rgba(94, 106, 210, 0.1), transparent 55%),
    var(--pt-bg);
}

.pt-auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--pt-surface);
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius-lg);
  padding: 36px 32px 28px;
  box-shadow: var(--pt-shadow-lg);
  position: relative;
  overflow: hidden;
  animation: pt-fade-up 500ms var(--pt-ease-spring) both;
}
.pt-auth-card::before {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -54px;
  width: 190px;
  height: 190px;
  background: url("/static/icons/degen-collectibles-180.png") center / contain no-repeat;
  opacity: 0.035;
  pointer-events: none;
}
.pt-auth-card > * {
  position: relative;
  z-index: 1;
}
.pt-auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.01em;
}
.pt-auth-brand .pt-brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}
.pt-auth-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.pt-auth-sub {
  font-size: 14px;
  color: var(--pt-muted);
  margin: 0 0 24px;
  line-height: 1.5;
}
.pt-auth-hint {
  text-align: center;
  font-size: 13px;
  color: var(--pt-muted);
  margin-top: 20px;
}
.pt-auth-hint a { color: var(--pt-text); text-decoration: underline; text-decoration-color: rgba(255,255,255,0.2); }
.pt-auth-hint a:hover { text-decoration-color: var(--pt-accent); color: var(--pt-accent); }

/* =========================================================================
 * Onboarding wizard — Apple-style multi-step
 * ====================================================================== */

.onb-body {
  min-height: 100vh;
  min-height: 100dvh;
  background:
    radial-gradient(1000px 600px at 50% -20%, var(--pt-accent-soft), transparent 60%),
    radial-gradient(800px 500px at 50% 120%, rgba(94, 106, 210, 0.08), transparent 60%),
    var(--pt-bg);
  color: var(--pt-text);
  display: flex;
  flex-direction: column;
}

.onb-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 32px;
  font-size: 13px;
}
.onb-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.onb-brand-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 14px rgba(255, 98, 83, 0.24));
}

.onb-progress {
  display: flex;
  gap: 8px;
  align-items: center;
}
.onb-progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 400ms var(--pt-ease-spring);
}
.onb-progress-dot.active {
  background: var(--pt-accent);
  width: 24px;
  border-radius: 4px;
  box-shadow: 0 0 12px var(--pt-accent-glow);
}
.onb-progress-dot.done { background: var(--pt-accent); }

.onb-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 24px 60px;
  position: relative;
  overflow: hidden;
}

.onb-step {
  width: 100%;
  max-width: 560px;
  display: none;
  animation: onb-slide-in 520ms var(--pt-ease-spring) both;
}
.onb-step-wide { max-width: 1040px; }
.onb-step.active { display: block; }
.onb-step.leaving { animation: onb-slide-out 320ms var(--pt-ease-out) both; }

.onb-eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pt-accent);
  font-weight: 600;
  margin-bottom: 14px;
}
.onb-title {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 12px;
  line-height: 1.05;
}
.onb-lede {
  font-size: 18px;
  color: #bcc4d1;
  line-height: 1.55;
  margin: 0 0 32px;
  max-width: 480px;
}
.onb-role-brief {
  display: grid;
  gap: 10px;
  margin: 0 0 28px;
  max-width: 520px;
}
.onb-role-brief > div {
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius-sm);
  background: rgba(255, 255, 255, 0.035);
}
.onb-role-brief strong {
  color: var(--pt-text);
  font-size: 14px;
}
.onb-role-brief span {
  color: var(--pt-muted);
  font-size: 13px;
  line-height: 1.35;
}
.onb-device-helper {
  display: grid;
  gap: 12px;
  margin: 14px 0 0;
  padding: 14px;
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius-md);
  background: rgba(255, 255, 255, 0.025);
}
.onb-device-helper strong {
  display: block;
  color: var(--pt-text);
  font-size: 14px;
  margin-bottom: 3px;
}
.onb-device-helper span,
.onb-device-status {
  color: var(--pt-muted);
  font-size: 13px;
  line-height: 1.4;
}
.onb-link-tools {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.onb-copy-input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius-sm);
  background: rgba(0, 0, 0, 0.22);
  color: var(--pt-muted);
  font: inherit;
  font-size: 12px;
}
.onb-mini-btn {
  min-height: 38px;
  padding: 9px 13px;
  font-size: 13px;
  white-space: nowrap;
}
.pt-login-help-card {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius-md);
  background: rgba(255, 255, 255, 0.025);
}
.pt-login-help-title {
  color: var(--pt-text);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 5px;
}
.pt-login-help-copy {
  color: var(--pt-muted);
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 12px;
}
.pt-login-help-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}
.pt-login-help-row .pt-btn {
  min-height: 43px;
  white-space: nowrap;
}

.onb-form { display: flex; flex-direction: column; gap: 14px; }
.onb-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--pt-text);
  margin-bottom: 8px;
}
.onb-field .hint { font-size: 12px; color: var(--pt-muted); margin-top: 6px; }
.onb-input {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--pt-radius-md);
  border: 1px solid var(--pt-border);
  background: rgba(255, 255, 255, 0.02);
  color: var(--pt-text);
  font-size: 17px;
  font-family: inherit;
  transition: border-color 180ms var(--pt-ease-out), background 180ms var(--pt-ease-out), box-shadow 180ms var(--pt-ease-out);
}
.onb-input:focus {
  outline: none;
  border-color: var(--pt-accent);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 5px var(--pt-accent-soft);
}

.onb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.onb-row.cols-3 { grid-template-columns: 2fr 1fr 1fr; }

.onb-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 36px;
  align-items: center;
}
.onb-actions .spacer { flex: 1; }

.onb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  background: var(--pt-accent);
  color: var(--pt-accent-ink);
  border: none;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: -0.01em;
  transition: transform 150ms var(--pt-ease-out), box-shadow 200ms var(--pt-ease-out), background 150ms var(--pt-ease-out);
  box-shadow: 0 10px 32px -12px var(--pt-accent-glow);
}
.onb-btn:hover { background: var(--pt-accent-hover); transform: translateY(-1px); box-shadow: 0 14px 38px -10px var(--pt-accent-glow); }
.onb-btn:active { transform: translateY(0) scale(0.98); }
.onb-btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; box-shadow: none; }

.onb-btn.ghost {
  background: transparent;
  color: var(--pt-muted);
  padding: 14px 18px;
  box-shadow: none;
}
.onb-btn.ghost:hover { color: var(--pt-text); transform: none; box-shadow: none; background: rgba(255, 255, 255, 0.04); }

/* Pw strength */
.onb-strength {
  display: flex; gap: 4px; margin-top: 10px; height: 4px;
}
.onb-strength span {
  flex: 1;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 200ms var(--pt-ease-out);
}
.onb-strength[data-score="1"] span:nth-child(-n+1) { background: #ef4444; }
.onb-strength[data-score="2"] span:nth-child(-n+2) { background: #fb923c; }
.onb-strength[data-score="3"] span:nth-child(-n+3) { background: #fcd34d; }
.onb-strength[data-score="4"] span:nth-child(-n+4) { background: var(--pt-ok); }
.onb-strength-label {
  font-size: 12px; color: var(--pt-muted); margin-top: 6px;
  transition: color 200ms var(--pt-ease-out);
}

/* Review step */
.onb-review {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius-md);
  padding: 18px 20px;
  margin-bottom: 8px;
}
.onb-review-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--pt-border);
  font-size: 14px;
}
.onb-review-row:last-child { border-bottom: none; }
.onb-review-row .k { color: var(--pt-muted); }
.onb-review-row .v { text-align: right; max-width: 60%; word-break: break-word; }

.onb-lock-note {
  display: flex; gap: 10px; align-items: center;
  font-size: 12px; color: var(--pt-muted);
  margin-top: 14px;
  padding: 10px 12px;
  background: rgba(52, 211, 153, 0.06);
  border: 1px solid rgba(52, 211, 153, 0.18);
  border-radius: var(--pt-radius-sm);
}

.onb-ios-card {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 22px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius-md);
  background: rgba(255, 255, 255, 0.02);
}
.onb-ios-phone {
  width: 150px;
  height: 238px;
  margin: 0 auto;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  padding: 12px;
  box-shadow: inset 0 0 0 4px rgba(0, 0, 0, 0.35), 0 18px 46px -28px var(--pt-accent-glow);
  position: relative;
}
.onb-ios-notch {
  width: 54px;
  height: 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  margin: 0 auto 14px;
}
.onb-ios-screen {
  min-height: 186px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01)),
    rgba(8, 9, 10, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.onb-ios-app-icon {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--pt-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.onb-ios-app-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.onb-ios-app-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--pt-text);
}
.onb-ios-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.onb-ios-step {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border-radius: var(--pt-radius-sm);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.onb-ios-num {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--pt-accent);
  color: var(--pt-accent-ink);
  font-weight: 700;
  font-size: 13px;
}
.onb-ios-step strong {
  font-size: 14px;
  margin-bottom: 3px;
}
.onb-ios-step-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.onb-ios-share-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #9ec5ff;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.38);
  box-shadow: 0 8px 22px -18px rgba(96, 165, 250, 0.8);
  flex-shrink: 0;
}
.onb-ios-share-icon svg {
  width: 18px;
  height: 18px;
}
.onb-ios-more-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 8px;
  color: #d8b4fe;
  background: rgba(168, 85, 247, 0.1);
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 8px 22px -18px rgba(168, 85, 247, 0.8);
  flex-shrink: 0;
}
.onb-ios-more-icon span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.onb-ios-step > div > span:last-child {
  display: block;
  color: var(--pt-muted);
  font-size: 12px;
  line-height: 1.45;
}

/* Finale / celebration */
.onb-finale { text-align: center; padding: 40px 20px; }
.onb-finale .pokeball {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--pt-accent) 0% 50%, #fff 50% 100%);
  position: relative;
  margin: 0 auto 28px;
  box-shadow: 0 30px 70px -20px var(--pt-accent-glow), inset 0 0 0 3px #0a0a0a;
  animation: pokeball-bounce 900ms var(--pt-ease-spring) both;
}
.onb-finale .pokeball::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 50%;
  height: 6px; background: #0a0a0a;
  transform: translateY(-50%);
}
.onb-finale .pokeball::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 32px; height: 32px; background: #fff;
  border: 6px solid #0a0a0a; border-radius: 50%;
  transform: translate(-50%, -50%);
}

/* =========================================================================
 * Animations
 * ====================================================================== */

@keyframes pt-fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes onb-slide-in {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes onb-slide-out {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-32px); }
}
@keyframes pokeball-bounce {
  0%   { transform: scale(0.4) rotate(-25deg); opacity: 0; }
  60%  { transform: scale(1.08) rotate(8deg); opacity: 1; }
  80%  { transform: scale(0.96) rotate(-3deg); }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================================
 * Mobile topbar / drawer / bottom nav
 *
 * Desktop: hidden. Mobile (<= 860px): sticky topbar with hamburger,
 * sidebar becomes a slide-in drawer with backdrop, and a bottom nav
 * floats at the bottom of the viewport for one-tap access to the 5
 * most common employee routes (Home / Schedule / Eye FAB / Stream /
 * Profile). Mirrors the ops `linear-*` pattern but namespaced `pt-*`
 * so the two systems don't cross-contaminate.
 * ====================================================================== */

.pt-mobile-topbar,
.pt-drawer-backdrop,
.pt-drawer-close,
.pt-mobile-bottom-nav {
  display: none;
}

@media (max-width: 860px) {
  /* Single-column layout; main gets room to breathe past the topbar / bottomnav */
  .pt-layout { grid-template-columns: 1fr; }
  .pt-main {
    padding: 16px 16px calc(96px + env(safe-area-inset-bottom, 0px));
    max-width: 100%;
  }
  .pt-h1 { font-size: 22px; }
  .pt-header {
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 18px;
    padding-bottom: 14px;
  }
  .pt-card { padding: 16px; border-radius: 12px; }
  .pt-card.pt-hero { padding: 22px 18px; }
  .pt-widget { padding: 16px; border-radius: 12px; }
  .pt-btn {
    min-height: 44px;
    white-space: normal;
    text-align: center;
  }
  .pt-flash,
  .pt-error,
  .pt-warn-banner {
    align-items: flex-start;
  }
  .pt-row,
  .pt-row.cols-3 {
    grid-template-columns: 1fr;
  }
  .pt-widget-grid {
    grid-template-columns: 1fr;
  }

  .onb-title { font-size: 32px; }
  .onb-lede { font-size: 16px; }
  .onb-row, .onb-row.cols-3 { grid-template-columns: 1fr; }
  .onb-step { min-width: 0; }

  /* Collapse page-level two-column + address grids so nothing squishes */
  .pt-two-col,
  .pt-two-col.alt-wide { grid-template-columns: 1fr; }
  .pt-addr-row { grid-template-columns: 1fr; }

  /* Onboarding topbar — don't let the brand + progress crowd each other
     on narrow phones. Stack brand above the dots on <380px. */
  .onb-topbar { padding: 18px 16px; gap: 10px; flex-wrap: wrap; }
  .onb-stage {
    padding: 16px 18px calc(40px + env(safe-area-inset-bottom, 0px));
  }
  .onb-title { line-height: 1.1; }
  .onb-actions { flex-wrap: wrap; gap: 8px; }
  .onb-actions .spacer { display: none; }
  .onb-btn { padding: 14px 22px; font-size: 15px; }
  .onb-btn.ghost { padding: 12px 14px; }
  .onb-review-row { align-items: flex-start; }
  .onb-review-row .v { max-width: 58%; }
  .onb-ios-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .onb-ios-phone {
    width: 132px;
    height: 210px;
  }
  .onb-ios-screen {
    min-height: 162px;
  }

  /* Auth card on phones — fill width, gentle edges */
  .pt-auth-body { padding: 16px; }
  .pt-auth-card { padding: 28px 22px 22px; border-radius: 18px; }

  /* Tables on phones — let the supply-list table scroll horizontally
     instead of breaking layout. */
  .pt-card .pt-table { font-size: 13px; }
  .pt-card:has(.pt-table) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .pt-table {
    min-width: 520px;
  }

  .sch-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Admin pages still have some dense legacy tables and fixed-width controls.
     Keep the phone viewport stable and let only the card scroll sideways. */
  .ta-card {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px;
  }
  .ta-card table {
    width: max-content;
    min-width: 100%;
  }
  .ta-card input,
  .ta-card select,
  .ta-card textarea {
    max-width: 100%;
  }
  .ta-card [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  .ta-card form[style*="display:flex"],
  .ta-card div[style*="display:flex"] {
    min-width: 0;
    flex-wrap: wrap;
  }
  .ta-btn {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  /* ===== Mobile topbar — sticky, hamburger + brand ===== */
  .pt-mobile-topbar {
    display: flex;
    align-items: center;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: calc(max(12px, env(safe-area-inset-top, 0px) + 8px)) 14px 10px;
    background: rgba(11, 11, 14, 0.88);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--pt-border);
    -webkit-tap-highlight-color: transparent;
  }

  .pt-hamburger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--pt-border);
    background: rgba(255, 255, 255, 0.02);
    color: var(--pt-text);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
  }
  .pt-hamburger:hover,
  .pt-hamburger:focus-visible {
    background: var(--pt-surface-raised);
    border-color: rgba(255, 255, 255, 0.18);
    outline: none;
  }
  .pt-hamburger svg { width: 22px; height: 22px; display: block; }

  .pt-mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: -0.01em;
    color: var(--pt-text);
  }
  .pt-mobile-brand .pt-mobile-brand-text,
  .pt-mobile-brand span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .pt-mobile-brand .pt-brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }
  .pt-mobile-brand .pt-brand-dot {
    width: 22px;
    height: 22px;
  }
  .pt-mobile-brand .pt-brand-dot::after { width: 6px; height: 6px; }

  .pt-topbar-spacer { flex: 1; }
  .pt-topbar-chip {
    font-size: 11px;
    padding: 4px 10px;
    border: 1px solid var(--pt-border);
    border-radius: 999px;
    color: var(--pt-muted);
    text-transform: capitalize;
    max-width: 34vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* ===== Sidebar → off-canvas drawer ===== */
  .pt-side {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 82vw;
    max-width: 300px;
    height: 100vh;
    height: 100dvh;
    max-height: 100dvh;
    padding: calc(max(20px, env(safe-area-inset-top, 0px) + 12px)) 14px 18px;
    transform: translateX(-100%);
    transition: transform 240ms var(--pt-ease-spring);
    z-index: 200;
    overflow-y: auto;
    border-right: 1px solid var(--pt-border);
    background: rgba(13, 13, 16, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
  body.pt-drawer-open .pt-side { transform: translateX(0); }
  body.pt-drawer-open { overflow: hidden; }

  /* Backdrop */
  .pt-drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 199;
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
  }
  body.pt-drawer-open .pt-drawer-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  /* Close ✕ button in the drawer's top-right (mobile only) */
  .pt-drawer-close {
    display: inline-flex;
    position: absolute;
    top: calc(max(14px, env(safe-area-inset-top, 0px) + 6px));
    right: 12px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--pt-muted);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .pt-drawer-close:hover,
  .pt-drawer-close:focus-visible {
    background: var(--pt-surface-raised);
    color: var(--pt-text);
    border-color: var(--pt-border);
    outline: none;
  }

  /* ===== Bottom nav (primary actions) ===== */
  .pt-mobile-bottom-nav {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(11, 11, 14, 0.9);
    backdrop-filter: saturate(160%) blur(16px);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    border-top: 1px solid var(--pt-border);
    -webkit-tap-highlight-color: transparent;
  }

  .pt-mbn-item {
    flex: 1 1 0;
    min-width: 0;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    padding: 6px 4px 4px;
    color: var(--pt-muted);
    text-decoration: none;
    font-size: 10px;
    letter-spacing: 0.02em;
    border-radius: 10px;
    transition: color 140ms var(--pt-ease-out), background 140ms var(--pt-ease-out);
  }
  .pt-mbn-item .pt-mbn-icon {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .pt-mbn-item.is-active {
    color: var(--pt-accent);
  }
  .pt-mbn-item:hover { color: var(--pt-text); }
  .pt-mbn-item.is-active:hover { color: var(--pt-accent); }

  /* Center FAB — Degen Eye */
  .pt-mbn-item-center {
    align-self: flex-start;
  }
  .pt-mbn-fab {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pt-accent), #c11818);
    box-shadow: 0 6px 18px -4px var(--pt-accent-glow), 0 0 0 2px #0b0b0e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: -20px;
    margin-bottom: 2px;
  }
  .pt-mbn-fab .pt-mbn-icon {
    width: 24px;
    height: 24px;
    stroke: #fff;
  }
  .pt-mbn-item-center .pt-mbn-label { color: var(--pt-accent); font-weight: 700; }
  .pt-mbn-label {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  /* Inside-drawer adjustments */
  .pt-side .pt-brand { padding-top: 6px; }
}

/* Keep drawer styles hidden above 860px even if the body.pt-drawer-open
   class got left behind by e.g. a resize-while-open scenario. */
@media (min-width: 861px) {
  body.pt-drawer-open .pt-side { transform: none; }
  body.pt-drawer-open { overflow: auto; }
}

/* =========================================================================
 * Dashboard widgets — oversized metric cards
 * ====================================================================== */

.pt-widget-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.pt-widget {
  background: var(--pt-surface);
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius-md);
  padding: 22px 22px 20px;
  min-width: 0;
  overflow-wrap: break-word;
  transition: transform 200ms var(--pt-ease-out), border-color 200ms var(--pt-ease-out);
}
.pt-widget:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.14); }
.pt-widget-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pt-muted);
  margin-bottom: 10px;
  font-weight: 600;
}
.pt-widget-value {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}
.pt-widget-sub { font-size: 12px; color: var(--pt-muted); }
.pt-widget-empty { font-size: 14px; color: var(--pt-muted); padding: 4px 0 2px; }

.pt-shift-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  background: var(--pt-surface);
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius-lg);
  box-shadow: var(--pt-shadow, none);
}
.pt-shift-title {
  margin-top: 8px;
  font-size: 32px;
  line-height: 1.1;
  font-weight: 750;
  letter-spacing: 0;
}
.pt-shift-sub {
  margin-top: 6px;
  color: var(--pt-muted);
  font-size: 15px;
  line-height: 1.4;
}
.pt-shift-day-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(118px, 1fr));
  gap: 10px;
  min-width: min(480px, 100%);
}
.pt-shift-day-stats > div {
  padding: 14px 16px;
  background: var(--pt-surface-raised);
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius-sm);
}
.pt-mini-stat {
  font-size: 16px;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: 0;
}
.pt-dashboard-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.pt-dashboard-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
  gap: 20px;
  margin-top: 28px;
}
.pt-dashboard-panel { min-height: 360px; }
.pt-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--pt-border);
}
.pt-link-inline {
  color: var(--pt-accent);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.pt-list-stack { display: grid; }
.pt-list-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--pt-border);
}
.pt-list-row:last-child { border-bottom: 0; }
.pt-list-title {
  font-size: 15px;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: 0;
}
.pt-list-sub {
  margin-top: 4px;
  color: var(--pt-muted);
  font-size: 13px;
  line-height: 1.4;
}
.pt-shift-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
}
.pt-date-block {
  display: grid;
  gap: 2px;
  line-height: 1;
}
.pt-date-block strong {
  font-size: 20px;
  letter-spacing: 0;
}
.pt-date-block span {
  color: var(--pt-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}
.pt-empty-panel {
  padding: 18px 0 0;
  color: var(--pt-muted);
  font-size: 14px;
}

.pt-help-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 107, 91, 0.32);
  border-radius: 999px;
  color: var(--pt-accent);
  background: rgba(255, 107, 91, 0.08);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.pt-help-link:hover { background: rgba(255, 107, 91, 0.14); }

.pt-today-focus {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: 20px;
  margin-top: 20px;
}
.pt-focus-card,
.pt-profile-card { min-height: 0; }
.pt-focus-list,
.pt-check-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.pt-focus-row,
.pt-check-row,
.pt-help-tile {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius-sm);
  background: var(--pt-surface-raised);
}
.pt-focus-row:hover,
.pt-check-row:hover,
.pt-help-tile:hover { border-color: rgba(255,255,255,0.16); }
.pt-focus-row strong,
.pt-check-row strong,
.pt-help-tile strong {
  display: block;
  font-size: 13px;
  line-height: 1.25;
}
.pt-focus-row span span,
.pt-check-row small,
.pt-help-tile span {
  display: block;
  margin-top: 3px;
  color: var(--pt-muted);
  font-size: 12px;
  line-height: 1.35;
}
.pt-focus-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--pt-muted);
  margin-top: 4px;
  flex-shrink: 0;
}
.pt-focus-row.is-ok .pt-focus-dot { background: var(--pt-ok); }
.pt-focus-row.is-todo .pt-focus-dot { background: var(--pt-accent); box-shadow: 0 0 0 4px var(--pt-accent-soft); }
.pt-focus-row.is-neutral .pt-focus-dot { background: var(--pt-muted); opacity: 0.6; }
.pt-check-meter {
  height: 8px;
  border-radius: 999px;
  background: var(--pt-surface-raised);
  border: 1px solid var(--pt-border);
  overflow: hidden;
  margin-top: 14px;
}
.pt-check-meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--pt-accent), var(--pt-ok));
}
.pt-check-list.compact {
  grid-template-columns: 1fr;
  gap: 7px;
}
.pt-check-row {
  align-items: center;
  padding: 10px 11px;
}
.pt-check-row.done { opacity: 0.82; }
.pt-check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  color: var(--pt-accent);
  background: var(--pt-accent-soft);
}
.pt-check-row.done .pt-check-icon {
  color: var(--pt-ok);
  background: rgba(52, 211, 153, 0.12);
}
.pt-profile-completion { margin-bottom: 20px; }
.pt-help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.pt-help-install .onb-ios-card {
  margin-top: 18px;
  max-width: 760px;
}
.pt-tour-guide {
  margin-top: 18px;
}
.pt-tour-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.85fr);
  gap: 18px;
  align-items: stretch;
}
.pt-tour-shot-wrap {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius-md);
  background: #08090a;
  box-shadow: 0 24px 60px -46px var(--pt-accent-glow);
}
.pt-tour-shot {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.58;
}
.pt-tour-hotspot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  border: 3px solid transparent;
  border-radius: 16px;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.98);
  transition: opacity 180ms var(--pt-ease-out), transform 180ms var(--pt-ease-out);
}
.pt-tour-hotspot.is-active {
  opacity: 1;
  transform: scale(1);
  border-color: var(--pt-accent);
  background: rgba(255, 107, 91, 0.12);
  box-shadow:
    0 0 0 999px rgba(0, 0, 0, 0.48),
    0 0 0 7px rgba(255, 107, 91, 0.18),
    0 16px 38px -24px var(--pt-accent-glow);
}
.pt-tour-hotspot.is-active::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  right: -9px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  background: var(--pt-accent);
  box-shadow: 0 0 0 5px rgba(255, 107, 91, 0.18);
}
.pt-tour-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius-md);
  background: var(--pt-surface);
}
.pt-tour-fast-path {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 107, 91, 0.28);
  border-radius: var(--pt-radius-sm);
  background: rgba(255, 107, 91, 0.08);
}
.pt-tour-fast-kicker {
  color: var(--pt-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.pt-tour-fast-path ol {
  margin: 0 0 0 18px;
  padding: 0;
  display: grid;
  gap: 5px;
}
.pt-tour-fast-path li {
  color: #d9dee7;
  font-size: 13px;
  line-height: 1.35;
}
.pt-tour-step-buttons {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}
.pt-tour-step-buttons button {
  min-width: 0;
  height: 30px;
  border: 1px solid var(--pt-border);
  border-radius: 999px;
  background: var(--pt-surface-raised);
  color: var(--pt-muted);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.pt-tour-step-buttons button.is-active {
  border-color: var(--pt-accent);
  background: var(--pt-accent);
  color: var(--pt-accent-ink);
}
.pt-tour-panel {
  display: none;
  animation: onb-slide-in 220ms var(--pt-ease-out) both;
}
.pt-tour-panel.is-active {
  display: block;
}
.pt-tour-kicker {
  color: var(--pt-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.pt-tour-panel h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.12;
  letter-spacing: 0;
}
.pt-tour-panel p {
  margin: 10px 0 0;
  color: var(--pt-muted);
  font-size: 14px;
  line-height: 1.5;
}
.pt-tour-controls {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
}
.pt-tour-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.pt-tour-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 107, 91, 0.28);
  border-radius: 999px;
  color: var(--pt-accent);
  background: rgba(255, 107, 91, 0.08);
  font-size: 12px;
  font-weight: 750;
  width: fit-content;
}
.pt-tour-open:hover {
  background: rgba(255, 107, 91, 0.14);
}
.pt-tour-page-card .pt-panel-head {
  margin-bottom: 2px;
}
.pt-copy-box {
  padding: 14px;
  border: 1px dashed var(--pt-border);
  border-radius: var(--pt-radius-sm);
  background: var(--pt-surface-raised);
  color: var(--pt-muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 12px 0;
}
.pt-tool-shell {
  padding: 18px;
}
.pt-tool-frame {
  display: block;
  width: 100%;
  min-height: 720px;
  margin-top: 16px;
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius-md);
  background: var(--pt-bg);
}

@media (max-width: 860px) {
  .pt-widget-grid {
    grid-template-columns: 1fr;
  }
  .pt-widget {
    padding: 16px;
    border-radius: 12px;
  }
  .pt-shift-hero,
  .pt-today-focus,
  .pt-dashboard-stat-grid,
  .pt-dashboard-lower {
    grid-template-columns: 1fr;
  }
  .pt-shift-hero {
    display: grid;
    padding: 20px;
  }
  .pt-shift-title { font-size: 26px; }
  .pt-shift-day-stats { grid-template-columns: 1fr; }
  .pt-dashboard-panel { min-height: 0; }
  .pt-help-grid { grid-template-columns: 1fr; }
  .pt-tour-stage { grid-template-columns: 1fr; }
  .pt-tour-copy { padding: 14px; }
  .pt-tour-panel h2 { font-size: 20px; }
  .pt-tour-hotspot { border-radius: 10px; border-width: 2px; }
  .pt-login-help-row { grid-template-columns: 1fr; }
  .pt-login-help-row .pt-btn { width: 100%; }
  .pt-tool-shell { padding: 12px; }
  .pt-tool-frame { min-height: 640px; border-radius: 10px; }
  .pt-shift-row { grid-template-columns: 48px minmax(0, 1fr); }
  .pt-shift-row .pt-chip {
    grid-column: 2;
    justify-self: start;
    margin-top: 8px;
  }
}
