/* WorkSet FE Portal  colours taken from the workset.eu design system (--ws-* tokens) */
:root {
  --bg: #F7FAFC;
  --surface: #FFFFFF;
  --surface-2: #F1F6FB;
  --ink: #0A1628;
  --text: #0A1628;
  --muted: #4A6070;
  --line: rgba(10, 22, 40, .08);
  --line-strong: rgba(2, 98, 98, .18);
  --accent: #03807F;
  --accent-ink: #026262;
  --accent-soft: rgba(2, 98, 98, .08);
  --cta: #026262;
  --cta-text: #FFFFFF;
  --danger: #C2410C;
  --ok: #0CA678;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(10, 22, 40, .04), 0 12px 32px -12px rgba(10, 22, 40, .14);
  color-scheme: light;
}
/* Dark theme (same as workset.eu): chosen in the footer switch, or the system setting when no choice was made */
:root[data-theme="dark"] {
    --bg: #050D1A;
    --surface: #0A1628;
    --surface-2: #0F2040;
    --ink: #F0F4F8;
    --text: #F0F4F8;
    --muted: #8BA3B8;
    --line: rgba(255, 255, 255, .07);
    --line-strong: rgba(0, 229, 255, .12);
    --accent: #00E5FF;
    --accent-ink: #00E5FF;
    --accent-soft: rgba(0, 229, 255, .10);
    --cta: linear-gradient(135deg, #00E5FF 0%, #2FE6A8 100%);
    --cta-text: #050D1A;
    --danger: #FF8A3D;
    --ok: #2FE6A8;
    --shadow: 0 30px 70px -30px rgba(0, 0, 0, .55);
    color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #050D1A;
    --surface: #0A1628;
    --surface-2: #0F2040;
    --ink: #F0F4F8;
    --text: #F0F4F8;
    --muted: #8BA3B8;
    --line: rgba(255, 255, 255, .07);
    --line-strong: rgba(0, 229, 255, .12);
    --accent: #00E5FF;
    --accent-ink: #00E5FF;
    --accent-soft: rgba(0, 229, 255, .10);
    --cta: linear-gradient(135deg, #00E5FF 0%, #2FE6A8 100%);
    --cta-text: #050D1A;
    --danger: #FF8A3D;
    --ok: #2FE6A8;
    --shadow: 0 30px 70px -30px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2 { color: var(--ink); letter-spacing: -.02em; }
.icon { width: 20px; height: 20px; flex: none; }

/* Brand */
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); font-size: 1rem; }
.brand-logo { display: block; height: 28px; width: auto; }
/* Same treatment as the workset.eu header: white logo on dark, original colours on light */
:root[data-theme="dark"] .brand-logo { filter: brightness(0) invert(1) drop-shadow(rgba(0, 229, 255, .3) 0 1px 5px); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .brand-logo { filter: brightness(0) invert(1); } }
.brand-sub { font-weight: 400; color: var(--muted); padding-left: 10px; margin-left: 2px; border-left: 1px solid var(--line); }

/* Auth */
.auth-wrap { min-height: calc(100vh - 72px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 36px 32px; box-shadow: var(--shadow); }
.auth-card .brand { margin-bottom: 32px; }
.auth-card h1 { font-size: 1.6rem; margin: 0 0 6px; }
.lead { color: var(--muted); margin: 0 0 24px; }
.hint { color: var(--muted); font-size: .88rem; margin: 20px 0 0; text-align: center; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 14px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--ink); }
input[type=text], input[type=email], input[type=password], input[type=search], select {
  font: inherit; font-weight: 400; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 14px; width: 100%; transition: border-color .15s, box-shadow .15s, background .15s;
}
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); background: var(--surface); }
.code-input { text-align: center; font-size: 1.6rem !important; letter-spacing: .35em; font-variant-numeric: tabular-nums; padding: 14px !important; }

.btn {
  font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 10px; padding: 11px 18px; transition: background .15s, transform .05s, border-color .15s;
}
.btn:hover { border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--cta); color: var(--cta-text); border-color: transparent; }
.btn-primary:hover { filter: brightness(1.08); border-color: transparent; }
.btn-block { width: 100%; padding: 13px; margin-top: 6px; }
.btn-small { padding: 6px 10px; font-size: .8rem; border-radius: 8px; }
.btn-danger { color: var(--danger); }
.btn-ghost { background: transparent; }
.link-form { text-align: center; margin-top: 14px; }
.link { background: none; border: 0; color: var(--muted); font: inherit; font-size: .88rem; cursor: pointer; }
.link:hover { color: var(--ink); text-decoration: underline; }

/* Alerts */
.alert { border-radius: 10px; padding: 11px 14px; font-size: .9rem; margin: 0 0 18px; border: 1px solid transparent; }
.alert-error { background: rgba(194,65,12,.08); color: var(--danger); border-color: rgba(194,65,12,.18); }
.alert-success { background: rgba(22,163,74,.08); color: var(--ok); border-color: rgba(22,163,74,.2); }
.alert-info { background: var(--accent-soft); color: var(--accent-ink); }

/* 2FA setup */
.qr { display: flex; justify-content: center; padding: 16px; background: #fff; border-radius: 14px; border: 1px solid var(--line); margin: 0 auto 14px; width: fit-content; min-height: 120px; min-width: 120px; }
.qr img { display: block; image-rendering: pixelated; }
.manual { margin: 0 0 18px; font-size: .88rem; color: var(--muted); }
.manual summary { cursor: pointer; text-align: center; }
.secret { display: block; margin-top: 10px; text-align: center; font-size: 1rem; letter-spacing: .08em; background: var(--bg); border: 1px dashed var(--line); padding: 10px; border-radius: 10px; color: var(--ink); cursor: copy; word-break: break-all; }

/* App shell */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 18px clamp(16px, 4vw, 40px); max-width: 1100px; margin: 0 auto; }
.topnav { display: flex; align-items: center; gap: 4px; }
.topnav form { margin: 0; }
.nav-link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; color: var(--muted); font: inherit; font-size: .9rem; background: none; border: 0; cursor: pointer; }
.nav-link:hover { color: var(--ink); background: var(--surface); text-decoration: none; }
.nav-link .icon { width: 18px; height: 18px; }
.container { max-width: 1100px; margin: 0 auto; padding: 8px clamp(16px, 4vw, 40px) 64px; }

/* Dashboard */
.hello { margin: clamp(24px, 6vw, 64px) 0 20px; }
.eyebrow { margin: 0; color: var(--muted); font-size: .95rem; }
.hello h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin: 2px 0 0; line-height: 1.05; }

.quote { margin: 0 0 44px; max-width: 680px; padding-left: 18px; border-left: 3px solid var(--accent); transition: opacity .5s ease; }
.quote.fade { opacity: 0; }
.quote blockquote { margin: 0; font-size: clamp(1.1rem, 2.4vw, 1.35rem); color: var(--ink); font-weight: 500; line-height: 1.4; }
.quote figcaption { color: var(--muted); font-size: .9rem; margin-top: 6px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.card-link {
  position: relative; display: flex; flex-direction: column; gap: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; color: var(--text); min-height: 160px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card-link:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); }
.card-body { display: flex; flex-direction: column; gap: 4px; margin-top: auto; }
.card-title { font-weight: 650; color: var(--ink); font-size: 1.05rem; }
.card-desc { color: var(--muted); font-size: .88rem; }
.card-arrow { position: absolute; top: 22px; right: 20px; color: var(--muted); opacity: 0; transition: opacity .15s, transform .15s; }
.card-link:hover .card-arrow { opacity: 1; transform: translate(2px, -2px); color: var(--accent-ink); }
.support { color: var(--muted); font-size: .88rem; margin-top: 40px; }

/* Admin */
.page-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 24px 0 18px; }
.page-head h1 { margin: 0; font-size: 1.8rem; }
.search input { width: 260px; max-width: 100%; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 16px; }
.panel summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.form-inline { flex-direction: row; flex-wrap: wrap; align-items: flex-end; margin-top: 14px; }
.form-inline label { flex: 1 1 180px; }
.reveal { background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; }
.reveal p { margin: 0 0 10px; color: var(--ink); font-size: .92rem; }
.reveal-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.reveal-row code { font-size: 1.15rem; letter-spacing: .05em; background: var(--surface); border: 1px solid var(--line); padding: 8px 14px; border-radius: 10px; color: var(--ink); }

.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tr.muted td { opacity: .55; }
.right { text-align: right; }
.actions { display: flex; gap: 6px; justify-content: flex-end; }
.actions form { margin: 0; }
.u-name { color: var(--ink); font-weight: 600; }
.u-mail { color: var(--muted); font-size: .82rem; }
.tag { font-size: .7rem; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; margin-left: 4px; font-weight: 500; }
.pill { font-size: .75rem; padding: 3px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.pill-dark { background: var(--ink); color: var(--surface); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--line); margin-right: 6px; }
.dot.ok { background: var(--ok); }
.empty { color: var(--muted); text-align: center; padding: 24px !important; }

.section-title { font-size: 1.1rem; margin: 36px 0 12px; }
.log { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: .85rem; }
.log li { display: grid; grid-template-columns: 110px 150px 1fr auto; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.log li:last-child { border-bottom: 0; }
.log-time, .log-ip { color: var(--muted); font-variant-numeric: tabular-nums; }
.log-action { color: var(--ink); font-weight: 600; text-transform: capitalize; }

/* Footer + theme switch (WorkSet standard footer) */
.site-foot { border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; line-height: 1.6; background: var(--surface-2); }
.site-foot-inner { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
.foot-row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; padding: 16px 0; }
.foot-row + .foot-row { border-top: 1px solid var(--line); }
.foot-row b { font-weight: 500; color: var(--ink); }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a { color: var(--ink); }
.foot-co { padding: 0 0 18px; opacity: .85; }
.ws-theme { display: inline-flex; border: 1px solid #5FD0C8; border-radius: 999px; padding: 2px; gap: 2px; }
.ws-theme button { appearance: none; border: 0; background: transparent; color: #5FD0C8; font: 400 13px/1 "Inter", -apple-system, "Segoe UI", Arial, sans-serif; padding: 6px 11px; border-radius: 999px; cursor: pointer; }
.ws-theme button[aria-pressed="true"] { background: #5FD0C8; color: #050D1A; }
:root[data-theme="light"] .ws-theme { border-color: #026262; }
:root[data-theme="light"] .ws-theme button { color: #026262; }
:root[data-theme="light"] .ws-theme button[aria-pressed="true"] { background: #026262; color: #fff; }
.ws-theme button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ===== Portal home (v5): app bar, menus, hero, app tiles ===== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.app { display: flex; flex-direction: column; }
body.app .site-foot { margin-top: auto; }

.appbar { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.appbar-in { max-width: 1200px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand-link:hover { text-decoration: none; }
.appbar-actions { display: flex; align-items: center; gap: 6px; }

.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.icon-btn { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; color: var(--ink); }
.icon-btn:hover, .menu[open] > .icon-btn { background: var(--surface-2); }
.avatar-btn { display: flex; align-items: center; gap: 10px; padding: 4px 10px 4px 4px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: .9rem; min-height: 44px; box-sizing: border-box; }
.avatar-btn:hover, .menu[open] > .avatar-btn { border-color: var(--line-strong); background: var(--surface-2); }
.avatar-btn .icon { width: 14px; height: 14px; color: var(--muted); }
.avatar { width: 34px; height: 34px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-size: .8rem; font-weight: 600; flex: none; }
.avatar-lg { width: 48px; height: 48px; font-size: 1rem; }

.menu-panel { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 12px 32px rgba(10, 22, 40, .16); padding: 8px; min-width: 280px; }
.menu-title { margin: 8px 10px 6px; font-size: .8rem; color: var(--muted); }
.apps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; width: 300px; max-width: calc(100vw - 48px); }
.app-mini { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 2px; border-radius: 12px; color: var(--ink); font-size: .75rem; text-align: center; }
.app-mini:hover { background: var(--surface-2); text-decoration: none; }
.acct-head { display: flex; align-items: center; gap: 12px; padding: 12px 10px 14px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.acct-id { display: flex; flex-direction: column; min-width: 0; }
.acct-name { font-weight: 600; color: var(--ink); }
.acct-mail { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.menu-form { margin: 0; }
.menu-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 10px; border-radius: 10px; color: var(--ink); font: inherit; font-size: .9rem; background: none; border: 0; cursor: pointer; text-align: left; }
.menu-item:hover { background: var(--surface-2); text-decoration: none; }
.menu-item .icon { width: 18px; height: 18px; color: var(--muted); }
.menu-danger, .menu-danger .icon { color: var(--danger); }

/* App colours */
.app-sq { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; color: #fff; flex: none; }
.app-sq .icon { width: 22px; height: 22px; }
.app-sq-lg { width: 52px; height: 52px; border-radius: 14px; }
.app-sq-lg .icon { width: 28px; height: 28px; }
.tone-time { background: #026262; }
.tone-aca { background: #3B4CCA; }
.tone-talent { background: #7A3E9D; }
.tone-forge { background: #BE123C; }
.tone-book { background: #C2410C; }
.tone-fix { background: #4D7C0F; }
.tone-neutral { background: var(--surface-2); color: var(--accent-ink); }

/* Hero */
.hero { background: #026262; color: #fff; }
:root[data-theme="dark"] .hero { background: var(--surface-2); border-bottom: 1px solid var(--line-strong); }
.hero-in { max-width: 1200px; margin: 0 auto; padding: 40px clamp(16px, 4vw, 40px) 96px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.hero-date { margin: 0 0 6px; font-size: .9rem; color: rgba(255, 255, 255, .78); }
.hero h1 { margin: 0; color: #fff; font-weight: 500; font-size: clamp(1.9rem, 4.5vw, 2.6rem); line-height: 1.1; }
.hero .quote { margin: 14px 0 0; border-left-color: rgba(255, 255, 255, .45); padding-left: 14px; max-width: 620px; }
.hero .quote blockquote { color: rgba(255, 255, 255, .92); font-size: 1rem; font-weight: 400; }
.hero .quote figcaption { color: rgba(255, 255, 255, .7); font-size: .82rem; }
.trust-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); border-radius: 999px; padding: 8px 14px; font-size: .82rem; color: #fff; }
.trust-chip .icon { width: 16px; height: 16px; }

/* Content */
.container.dash { width: 100%; max-width: 1200px; margin-top: -64px; padding-top: 0; display: flex; flex-direction: column; gap: 24px; position: relative; }
.apps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.app-tile { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; color: var(--text); box-shadow: 0 1px 2px rgba(10, 22, 40, .04); transition: border-color .15s, box-shadow .15s, transform .15s; }
.app-tile:hover { text-decoration: none; border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.app-tile-top { display: flex; justify-content: center; margin-bottom: 6px; }
.app-ext { position: absolute; top: 20px; right: 20px; color: var(--muted); }
.app-ext .icon { width: 18px; height: 18px; }
.app-title { font-size: 1.2rem; font-weight: 600; color: var(--ink); }
.app-desc { font-size: .88rem; color: var(--muted); line-height: 1.5; }

.dash-cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.box { flex: 2 1 420px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 24px; }
.box-help { flex: 1 1 280px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.box-title { margin: 0 0 6px; font-size: 1.05rem; font-weight: 600; }
.box-text { margin: 0; color: var(--muted); font-size: .9rem; }
.row-link { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--text); }
.row-link:first-of-type { border-top: 0; }
.row-link:hover { text-decoration: none; }
.row-link:hover .row-title { color: var(--accent-ink); }
.row-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
.row-body { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.row-title { font-weight: 600; color: var(--ink); }
.row-desc { font-size: .85rem; color: var(--muted); }
.row-arrow { color: var(--accent-ink); }

/* Login: app icons under the lead */
.auth-apps { display: flex; gap: 8px; margin: -8px 0 22px; }
.auth-apps .app-sq { width: 34px; height: 34px; border-radius: 9px; }
.auth-apps .app-sq .icon { width: 18px; height: 18px; }

@media (max-width: 640px) {
  .foot-row { flex-direction: column; align-items: flex-start; }
  .avatar-name { display: none; }
  .apps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .app-tile { padding: 16px; gap: 6px; }
  .app-tile-top { margin-bottom: 4px; }
  .app-sq-lg { width: 44px; height: 44px; border-radius: 12px; }
  .app-sq-lg .icon { width: 24px; height: 24px; }
  .app-title { font-size: 1rem; }
  .app-desc, .app-ext { display: none; }
  .hero h1 { font-size: 1.7rem; }
  .menu-panel { position: fixed; left: 12px; right: 12px; top: 68px; min-width: 0; }
  .apps-grid { width: auto; max-width: none; }
  .hero-in { padding-bottom: 84px; }
  .auth-card { padding: 28px 22px; }
  .brand-sub { display: none; }
  .brand-logo { height: 22px; }
  .nav-link span { display: none; }
  .log li { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Logo sizing: keep the subtitle on one line next to the logo */
.brand-sub { white-space: nowrap; }
.auth-card .brand-logo { height: 24px; }

/* 2FA setup wizard */
.setup-steps { list-style: none; margin: 4px 0 6px; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.setup-steps > li { display: flex; gap: 14px; align-items: flex-start; }
.step-n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: .85rem; margin-top: 1px; }
.step-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.step-body > strong { color: var(--ink); line-height: 1.35; }
.step-hint { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.store-links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.store-links a { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font-size: .78rem; font-weight: 600; line-height: 1.25; }
.store-links a small { color: var(--muted); font-weight: 400; font-size: .74rem; }
.store-links a:hover { border-color: var(--accent); text-decoration: none; }
.step-body .qr { margin: 2px 0; max-width: 100%; box-sizing: border-box; }
.step-body .qr img { max-width: 100%; height: auto; }
.step-body .manual { margin: 0; }
.step-body .manual summary { text-align: left; }
.step-body .manual[open] { display: flex; flex-direction: column; gap: 8px; }
.key-row { display: flex; gap: 8px; align-items: stretch; }
.key-row .secret { flex: 1; margin-top: 0; font-size: .92rem; }
.only-mobile { display: none; }
@media (max-width: 640px), (hover: none) and (pointer: coarse) {
  .only-mobile { display: block; }
  .only-desktop { display: none; }
  .btn.only-mobile { display: block; text-align: center; }
}

/* SSO auto-post page (go.php) */
body.autopost { min-height: 100vh; margin: 0; display: flex; align-items: center; justify-content: center; }
body.autopost p { color: var(--muted); }
/* Apps not available yet */
.app-tile.is-soon { opacity: .6; cursor: default; }
.app-tile.is-soon:hover { transform: none; box-shadow: none; border-color: var(--line); }
.soon-badge { margin-left: auto; align-self: flex-start; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }

/* ===== SupportForge (practice labs) ===== */
.sf-nav { display: flex; gap: 4px; align-items: center; }
.sf-nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 10px; color: var(--muted); font-size: .9rem; font-weight: 600; }
.sf-nav-link .icon { width: 18px; height: 18px; }
.sf-nav-link:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.sf-nav-link.is-active { color: var(--accent-ink); background: var(--accent-soft); }
@media (max-width: 640px) { .sf-nav-link span { display: none; } .sf-nav-link { padding: 8px; } }
.sf-wrap { display: flex; flex-direction: column; gap: 20px; padding-top: 24px; }
.sf-wrap h1 { margin: 0; }
.sf-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.sf-hero .lead { max-width: 620px; margin: 8px 0 0; }
.sf-kicker { margin: 0 0 4px; color: var(--accent); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.sf-progress { display: grid; gap: 4px; min-width: 200px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.sf-progress-num { font-size: 1.8rem; font-weight: 800; color: var(--ink); line-height: 1; }
.sf-progress-num small, .sf-result-num small { font-size: .55em; color: var(--muted); font-weight: 600; }
.sf-progress-label { color: var(--muted); font-size: .82rem; }
progress.sf-bar { width: 100%; height: 6px; border: 0; border-radius: 99px; background: var(--surface-2); overflow: hidden; appearance: none; -webkit-appearance: none; }
progress.sf-bar::-webkit-progress-bar { background: var(--surface-2); border-radius: 99px; }
progress.sf-bar::-webkit-progress-value { background: var(--cta); border-radius: 99px; }
progress.sf-bar::-moz-progress-bar { background: var(--cta); border-radius: 99px; }
.sf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sf-chip { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); font-size: .85rem; font-weight: 600; background: var(--surface); }
.sf-chip small { opacity: .7; font-weight: 500; margin-left: 2px; }
.sf-chip:hover { color: var(--ink); border-color: var(--line-strong); text-decoration: none; }
.sf-chip.is-active { color: var(--accent-ink); background: var(--accent-soft); border-color: transparent; }
.sf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.sf-card { display: flex; flex-direction: column; gap: 8px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); transition: border-color .15s, transform .15s; }
.sf-card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.sf-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sf-card-title { color: var(--ink); font-weight: 700; line-height: 1.3; }
.sf-card-desc { color: var(--muted); font-size: .88rem; line-height: 1.45; flex: 1; }
.sf-card-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; border-top: 1px solid var(--line); font-size: .82rem; }
.sf-go { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-weight: 700; }
.sf-go .icon { width: 16px; height: 16px; }
.sf-score { color: var(--muted); font-weight: 600; }
.sf-score.is-perfect { color: var(--ok); }
.sf-meta { color: var(--muted); font-size: .82rem; }
.sf-topic { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .02em; background: var(--accent-soft); color: var(--accent-ink); }
.sf-t-entra { background: rgba(80, 140, 255, .16); color: #5b8def; }
.sf-t-laps { background: rgba(250, 170, 40, .16); color: #c98612; }
.sf-t-network { background: rgba(47, 230, 168, .16); color: #1f9e74; }
.sf-t-m365 { background: rgba(235, 90, 70, .14); color: #d2553f; }
.sf-t-cisco { background: rgba(150, 110, 240, .16); color: #8a68e0; }
.sf-empty { color: var(--muted); }
.sf-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .88rem; font-weight: 600; width: max-content; }
.sf-lab-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.sf-lab-head h1 { flex-basis: 100%; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.sf-play { max-width: 820px; }
.sf-panel { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.sf-panel h2 { margin: 0 0 10px; font-size: 1.1rem; }
.sf-ticket { padding: 16px 18px; border-left: 4px solid var(--accent); background: var(--surface-2); border-radius: 0 var(--radius) var(--radius) 0; line-height: 1.55; }
.sf-ticket p { margin: 0 0 8px; }
.sf-ticket p:last-child { margin-bottom: 0; }
.sf-ticket-label, .sf-ticket-mini summary { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px; color: var(--accent); font-weight: 700; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.sf-ticket-label .icon, .sf-ticket-mini summary .icon { width: 16px; height: 16px; }
.sf-ticket-mini { padding: 10px 16px; }
.sf-ticket-mini summary { cursor: pointer; margin: 0; }
.sf-ticket-mini[open] summary { margin-bottom: 8px; }
.sf-steps { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sf-dot { width: 26px; height: 6px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); }
.sf-dot.now { background: var(--accent); border-color: var(--accent); }
.sf-dot.ok { background: var(--ok); border-color: var(--ok); }
.sf-dot.bad { background: var(--danger); border-color: var(--danger); }
.sf-steps .sf-meta { margin-left: 6px; }
.sf-q { color: var(--ink); font-size: 1.05rem; font-weight: 600; line-height: 1.5; margin-bottom: 14px; }
.sf-q p { margin: 0 0 8px; }
.sf-q code, .sf-opt code, .sf-feedback code, .sf-ticket code, .sf-takeaways code, .sf-preview code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .9em; padding: 1px 5px; border-radius: 5px; background: var(--surface-2); border: 1px solid var(--line); }
.sf-answer { display: flex; flex-direction: column; gap: 8px; }
.sf-answer .btn { align-self: flex-start; margin-top: 6px; }
.sf-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; line-height: 1.45; color: var(--text); }
.sf-opt:hover { border-color: var(--line-strong); }
.sf-opt input { margin-top: 3px; accent-color: var(--accent); flex: none; }
.sf-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.sf-opt.is-done { cursor: default; margin-bottom: 8px; }
.sf-opt.is-right { border-color: var(--ok); }
.sf-opt.is-wrong { border-color: var(--danger); }
.sf-opt.is-picked.is-right { background: rgba(47, 230, 168, .10); }
.sf-opt.is-wrong { background: rgba(235, 90, 70, .08); }
.sf-mark { width: 18px; flex: none; font-weight: 800; text-align: center; }
.sf-opt.is-right .sf-mark { color: var(--ok); }
.sf-opt.is-wrong .sf-mark { color: var(--danger); }
.sf-term { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #0b1220; border: 1px solid #22304a; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.sf-prompt { color: #2fe6a8; white-space: nowrap; font-size: .95rem; }
.sf-term input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #e6edf7; font: inherit; font-size: .95rem; caret-color: #2fe6a8; padding: 0; box-shadow: none; }
.sf-term-done code { color: #e6edf7; background: none; border: 0; padding: 0; }
.sf-term-done.ok { border-color: var(--ok); }
.sf-term-done.bad { border-color: var(--danger); }
.sf-term-done + .sf-meta { margin: 8px 0 0; }
.sf-feedback { margin: 14px 0; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); line-height: 1.55; }
.sf-feedback p { margin: 6px 0 0; }
.sf-feedback.ok strong { color: var(--ok); }
.sf-feedback.bad strong { color: var(--danger); }
.sf-hint summary { cursor: pointer; color: var(--muted); font-size: .85rem; }
.sf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.sf-inline-form { display: inline; margin: 0; }
.sf-quit { align-self: flex-start; }
.sf-result { display: flex; align-items: center; gap: 20px; }
.sf-result h2 { margin: 0 0 4px; }
.sf-result-num { font-size: 3rem; font-weight: 800; color: var(--ink); line-height: 1; }
.sf-result-num.is-perfect { color: var(--ok); }
.sf-takeaways { margin: 0; padding-left: 20px; line-height: 1.6; }
.sf-bad { color: var(--danger); }
.sf-bad ul { margin: 6px 0 0; padding-left: 20px; }
.sf-panel.sf-bad { border-color: var(--danger); }
.sf-good { color: var(--ok); font-weight: 600; }
.sf-editor { display: flex; flex-direction: column; gap: 14px; }
.sf-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.sf-field { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: .82rem; font-weight: 600; }
.sf-field.sf-wide { grid-column: 1 / -1; }
.sf-field input, .sf-field select, .sf-field textarea { font: inherit; font-size: .95rem; font-weight: 400; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; }
.sf-field textarea { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .88rem; line-height: 1.5; resize: vertical; min-height: 320px; }
.sf-help pre { white-space: pre-wrap; font-size: .82rem; padding: 12px; background: var(--surface-2); border-radius: 10px; color: var(--text); }
.sf-help summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: .9rem; }
.sf-preview { padding-left: 20px; display: flex; flex-direction: column; gap: 16px; margin: 16px 0 0; }
.sf-preview .sf-q { font-size: .98rem; margin-bottom: 4px; }
.sf-preview ul { margin: 4px 0; padding-left: 18px; }
.sf-right { color: var(--ok); font-weight: 600; }
.sf-table-wrap { overflow-x: auto; }
.sf-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.sf-table th { text-align: left; color: var(--muted); font-weight: 600; font-size: .78rem; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.sf-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.sf-row-actions { white-space: nowrap; }
.sf-row-actions a { margin-right: 8px; font-weight: 600; }

/* SupportForge pictures */
.sf-fig { margin: 4px 0 14px; }
.sf-fig img { display: block; width: 100%; max-width: 760px; height: auto; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 6px 24px rgba(0, 0, 0, .18); }
.sf-fig figcaption { margin-top: 6px; color: var(--muted); font-size: .78rem; }
.sf-ticket .sf-fig { margin: 12px 0 0; }
