/* SADD Training Platform — Kaitiaki o Ara */

:root {
  --orange: #f1592a;
  --orange-dark: #c9431b;
  --orange-tint: #fdeee8;
  --yellow: #fcd404;
  --ink: #111111;
  --ink-2: #3d3d3d;
  --muted: #6b6b6b;
  --line: #e7e5e2;
  --bg: #f7f6f4;
  --card: #ffffff;
  --green: #1f8a4c;
  --green-tint: #e6f4ec;
  --blue: #2563c9;
  --blue-tint: #e8effb;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(17, 17, 17, .05), 0 4px 14px rgba(17, 17, 17, .05);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  border: 1px solid transparent; border-radius: 999px;
  padding: .6rem 1.15rem; font-weight: 600; font-size: .92rem;
  text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #333; }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-2); padding-inline: .7rem; }
.btn-ghost:hover { background: #efedea; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- Demo banner ---------- */
.demo-banner {
  background: var(--yellow); color: var(--ink); text-align: center;
  font-size: .85rem; font-weight: 500; padding: .45rem 1rem;
}

/* ---------- Top bar ---------- */
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-inner {
  max-width: 1200px; margin: 0 auto; padding: .55rem 1.25rem;
  display: flex; align-items: center; gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand img { height: 54px; width: auto; }
.brand span { font-weight: 700; font-size: .95rem; border-left: 1px solid var(--line); padding-left: .75rem; color: var(--ink-2); }
.nav { display: flex; gap: .25rem; margin-left: .5rem; }
.nav a { text-decoration: none; padding: .5rem .8rem; border-radius: 8px; font-weight: 500; color: var(--ink-2); font-size: .92rem; }
.nav a:hover { background: #f1efec; }
.nav a[aria-current="page"] { color: var(--ink); background: var(--orange-tint); }
.user-menu { margin-left: auto; position: relative; }
.avatar-btn { display: flex; align-items: center; gap: .55rem; background: none; border: 0; padding: .25rem; border-radius: 999px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: .85rem; flex: none;
}
.avatar-name { font-weight: 600; font-size: .9rem; }
.menu {
  position: absolute; right: 0; top: calc(100% + .4rem); background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow); min-width: 220px; padding: .4rem; display: none;
}
.menu.open { display: block; }
.menu .who { padding: .5rem .7rem .6rem; border-bottom: 1px solid var(--line); margin-bottom: .3rem; font-size: .85rem; color: var(--muted); }
.menu .who strong { display: block; color: var(--ink); font-size: .92rem; }
.menu button, .menu a { display: block; width: 100%; text-align: left; background: none; border: 0; padding: .55rem .7rem; border-radius: 8px; text-decoration: none; font-size: .9rem; }
.menu button:hover, .menu a:hover { background: #f4f2ef; }

/* ---------- Layout ---------- */
.page { max-width: 1200px; margin: 0 auto; padding: 1.75rem 1.25rem 4rem; }
.grid-main { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.5rem; align-items: start; }
.stack { display: grid; gap: 1.5rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 1.25rem 1.35rem; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; flex-wrap: wrap; }
.section-head h2 { font-size: 1.15rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* ---------- Welcome / hero ---------- */
.welcome { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.welcome h1 { font-size: 1.85rem; font-weight: 800; }
.welcome p { margin: .3rem 0 0; color: var(--muted); }

.continue {
  display: grid; grid-template-columns: auto 1fr auto; gap: 1.4rem; align-items: center;
  background: var(--ink); color: #fff; border-radius: var(--radius); padding: 1.4rem 1.6rem;
  position: relative; overflow: hidden;
}
.continue::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: linear-gradient(90deg, var(--orange) 0 70%, var(--yellow) 70% 100%);
}
.continue .eyebrow { color: var(--yellow); }
.continue h2 { font-size: 1.35rem; margin: .2rem 0 .35rem; }
.continue p { margin: 0; color: #cfcfcf; font-size: .9rem; }
.ring { --p: 0; width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--orange) calc(var(--p) * 1%), rgba(255,255,255,.14) 0); }
.ring::before { content: ""; grid-area: 1/1; width: 66px; height: 66px; border-radius: 50%; background: var(--ink); }
.ring b { grid-area: 1/1; position: relative; font-size: 1.05rem; }
.eyebrow { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--orange); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { padding: 1rem 1.15rem; }
.stat .label { font-size: .82rem; color: var(--muted); font-weight: 500; }
.stat .value { font-size: 1.85rem; font-weight: 800; margin-top: .15rem; font-variant-numeric: tabular-nums; }
.stat .value small { font-size: .9rem; font-weight: 600; color: var(--muted); margin-left: .15rem; }

/* ---------- Tabs ---------- */
.tabs { display: inline-flex; background: #ecebe8; padding: 3px; border-radius: 999px; gap: 2px; flex-wrap: wrap; }
.tabs button { border: 0; background: transparent; padding: .38rem .85rem; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.tabs .count { color: var(--muted); font-weight: 500; margin-left: .2rem; }

/* ---------- Course cards ---------- */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1rem; }
.course-card { display: flex; flex-direction: column; overflow: hidden; }
.course-band { height: 92px; position: relative; padding: .8rem 1rem; display: flex; align-items: flex-start; justify-content: space-between; color: #fff; }
.course-band .code { font-size: .74rem; font-weight: 700; letter-spacing: .06em; background: rgba(0,0,0,.25); padding: .2rem .5rem; border-radius: 6px; }
.course-band svg { position: absolute; right: -8px; bottom: -14px; width: 120px; opacity: .22; }
.course-body { padding: 1rem 1.1rem 1.1rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.course-body h3 { font-size: 1.02rem; }
.course-body p { margin: 0; font-size: .87rem; color: var(--muted); }
.meta { display: flex; gap: .9rem; font-size: .8rem; color: var(--muted); flex-wrap: wrap; }
.meta span { display: inline-flex; align-items: center; gap: .3rem; }
.progress { height: 8px; background: #eeece9; border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--orange); border-radius: inherit; }
.progress.done > i { background: var(--green); }
.progress-row { display: flex; justify-content: space-between; font-size: .8rem; font-weight: 600; margin-bottom: .3rem; }
.course-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: auto; padding-top: .35rem; }

.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .6rem; border-radius: 999px; font-size: .76rem; font-weight: 600; }
.chip-progress { background: var(--orange-tint); color: var(--orange-dark); }
.chip-done { background: var(--green-tint); color: var(--green); }
.chip-new { background: var(--blue-tint); color: var(--blue); }

.empty { padding: 2rem 1rem; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); background: #fff; }

/* ---------- Catalogue list ---------- */
.cat-item { display: flex; gap: 1rem; align-items: center; padding: .9rem 0; border-top: 1px solid var(--line); }
.cat-item:first-child { border-top: 0; padding-top: 0; }
.cat-dot { width: 42px; height: 42px; border-radius: 10px; flex: none; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .8rem; }
.cat-item h3 { font-size: .95rem; }
.cat-item p { margin: .1rem 0 0; font-size: .83rem; color: var(--muted); }
.cat-item .btn { margin-left: auto; }

/* ---------- Side panels ---------- */
.side h2 { font-size: 1rem; margin-bottom: .8rem; }
.activity { list-style: none; margin: 0; padding: 0; }
.activity li { display: grid; grid-template-columns: 30px 1fr; gap: .7rem; padding: .6rem 0; border-top: 1px solid var(--line); font-size: .87rem; }
.activity li:first-child { border-top: 0; padding-top: 0; }
.activity .ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: #f1efec; }
.activity .ico svg { width: 16px; height: 16px; }
.activity time { display: block; color: var(--muted); font-size: .78rem; }
.cert { display: flex; gap: .8rem; align-items: center; padding: .75rem; border-radius: 12px; background: #faf9f7; border: 1px solid var(--line); }
.cert + .cert { margin-top: .6rem; }
.cert-badge { width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); display: grid; place-items: center; flex: none; }
.cert strong { display: block; font-size: .9rem; }
.cert span { font-size: .78rem; color: var(--muted); }

/* ---------- Auth page ---------- */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-art {
  background: var(--ink); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.auth-art h1 { font-size: 2.4rem; font-weight: 800; max-width: 14ch; }
.auth-art h1 em { font-style: normal; color: var(--orange); }
.auth-art p { color: #cfcfcf; max-width: 42ch; }
.auth-art .road { position: absolute; right: -60px; bottom: -40px; width: 420px; opacity: .9; }
.auth-art ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .6rem; position: relative; }
.auth-art li { display: flex; gap: .6rem; align-items: center; color: #e5e5e5; }
.auth-art li::before { content: ""; width: 8px; height: 8px; background: var(--yellow); border-radius: 2px; transform: rotate(45deg); }
.auth-panel { display: grid; place-items: center; padding: 2rem 1.25rem; background: #fff; }
.auth-box { width: 100%; max-width: 380px; }
.auth-box .logo { height: 72px; width: auto; margin-bottom: 1.6rem; }
.auth-box h2 { font-size: 1.5rem; margin-bottom: .3rem; }
.auth-box > p { color: var(--muted); margin: 0 0 1.4rem; }
.field { display: grid; gap: .35rem; margin-bottom: .95rem; }
.field label { font-weight: 600; font-size: .86rem; }
.field input {
  font: inherit; padding: .7rem .85rem; border: 1px solid #d6d3cf; border-radius: 10px; background: #fff;
}
.field input:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(241, 89, 42, .18); }
.form-row { display: flex; justify-content: space-between; align-items: center; margin: -.2rem 0 1.1rem; font-size: .86rem; }
.link-btn { background: none; border: 0; color: var(--orange-dark); font-weight: 600; padding: 0; text-decoration: underline; text-underline-offset: 2px; }
.alert { padding: .7rem .9rem; border-radius: 10px; font-size: .87rem; margin-bottom: 1rem; display: none; }
.alert.show { display: block; }
.alert-error { background: #fdecec; color: #a12121; }
.alert-ok { background: var(--green-tint); color: var(--green); }
.switch { text-align: center; margin-top: 1.2rem; font-size: .9rem; color: var(--muted); }

/* ---------- Course page ---------- */
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { text-decoration: none; color: var(--ink-2); font-weight: 500; }
.course-hero { padding: 1.6rem; color: #fff; border-radius: var(--radius); margin-bottom: 1.5rem; position: relative; overflow: hidden; }
.course-hero h1 { font-size: 1.7rem; margin: .4rem 0; }
.course-hero p { margin: 0; max-width: 60ch; opacity: .9; }
.module-list { list-style: none; margin: 0; padding: 0; }
.module { display: grid; grid-template-columns: 38px 1fr auto; gap: 1rem; align-items: center; padding: 1rem 1.25rem; border-top: 1px solid var(--line); }
.module:first-child { border-top: 0; }
.module .num { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: #f1efec; }
.module.done .num { background: var(--green); color: #fff; }
.module.current .num { background: var(--orange); color: #fff; }
.module h3 { font-size: .97rem; }

/* ---------- Loading ---------- */
.loading { display: grid; place-items: center; min-height: 50vh; color: var(--muted); }
.spinner { width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--orange); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto .7rem; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid-main { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .brand span, .avatar-name { display: none; }
  .brand img { height: 38px; }
  .welcome h1 { font-size: 1.5rem; }
  .continue { grid-template-columns: 1fr; text-align: left; padding: 1.25rem; }
  .continue .ring { width: 64px; height: 64px; }
  .continue .ring::before { width: 50px; height: 50px; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-art { display: none; }
  .module { grid-template-columns: 34px 1fr; }
  .module .btn { grid-column: 2; justify-self: start; }
  .cat-item { flex-wrap: wrap; }
  .cat-item .btn { margin-left: 58px; }
}
@media (max-width: 420px) {
  .stats { gap: .7rem; }
  .stat .value { font-size: 1.5rem; }
}

/* ---------- v2: start card, images, journey, player, survey, certificate ---------- */
.start-card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink); color: #fff; min-height: 300px; display: flex; align-items: flex-end; }
.start-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.start-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 20%, rgba(0,0,0,.82) 100%); }
.start-body { position: relative; z-index: 1; padding: 1.6rem; display: grid; gap: .55rem; max-width: 620px; }
.start-body h2 { font-size: 1.6rem; }
.start-body p { margin: 0; color: #e6e6e6; }
.start-body .btn { justify-self: start; margin-top: .4rem; }
.course-band .band-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.course-band .code { position: relative; z-index: 1; }
.course-card .course-band { height: 120px; }

.course-hero.has-img { min-height: 220px; display: flex; flex-direction: column; justify-content: flex-end; background-size: cover; background-position: center 40%; }
.course-hero.has-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.78)); }
.course-hero > * { position: relative; }

.journey { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.step { display: grid; grid-template-columns: 112px 1fr auto; gap: 1rem; align-items: center; padding: .75rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.step.locked { background: #faf9f7; box-shadow: none; }
.step.locked .step-thumb { filter: grayscale(1); opacity: .55; }
.step.next { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(241,89,42,.14); }
.step-thumb { width: 112px; aspect-ratio: 4/3; border-radius: 10px; object-fit: cover; background: #eee; }
.step-thumb.survey { display: grid; place-items: center; background: var(--orange-tint); color: var(--orange-dark); }
.step-thumb.survey svg { width: 34px; height: 34px; }
.step h3 { font-size: 1rem; margin: .1rem 0 .15rem; }
.step .kicker { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.step .status { display: inline-flex; align-items: center; gap: .3rem; font-size: .8rem; font-weight: 600; }
.step .status.done { color: var(--green); }
.step .status.part { color: var(--orange-dark); }
.step .lock { display: inline-flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .85rem; font-weight: 500; padding-right: .5rem; }
.cert-ready { display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; background: #fffbe0; border: 1px solid #f1e08a; }

/* Player */
.player-page { height: 100vh; display: flex; flex-direction: column; background: #0d0d0d; overflow: hidden; }
.player-bar { display: flex; align-items: center; gap: 1rem; padding: .5rem 1rem; background: #111; color: #fff; border-bottom: 3px solid var(--orange); flex-wrap: wrap; }
.player-bar .btn-ghost { color: #fff; }
.player-bar .btn-ghost:hover { background: #262626; }
.player-bar .t { font-weight: 700; font-size: .95rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.player-bar .t small { display: block; color: #aaa; font-weight: 500; font-size: .76rem; }
.save-state { font-size: .8rem; color: #bbb; white-space: nowrap; }
.save-state.ok { color: #7bd69c; }
.player-frame { flex: 1; width: 100%; border: 0; background: #000; }
.player-msg { flex: 1; display: grid; place-items: center; color: #ddd; padding: 2rem; text-align: center; }
.player-msg .box { max-width: 460px; }
.player-msg h2 { color: #fff; margin-bottom: .5rem; }

/* Survey */
.survey-section { margin-bottom: 1.25rem; }
.survey-section > h2 { font-size: 1.05rem; padding: 1rem 1.35rem; border-bottom: 1px solid var(--line); background: #faf9f7; border-radius: var(--radius) var(--radius) 0 0; }
.q { padding: 1.15rem 1.35rem; border-top: 1px solid var(--line); }
.q:first-of-type { border-top: 0; }
.q fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.q legend, .q .qlabel { font-weight: 600; margin-bottom: .2rem; padding: 0; display: block; }
.q .req { color: var(--orange-dark); }
.q .hint { font-size: .83rem; color: var(--muted); margin-bottom: .6rem; display: block; }
.opts { display: grid; gap: .4rem; margin-top: .55rem; }
.opts.cols { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.opt { display: flex; gap: .6rem; align-items: flex-start; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: #fff; }
.opt:hover { border-color: #c8c4bf; }
.opt input { margin-top: .2rem; accent-color: var(--orange); width: 17px; height: 17px; flex: none; }
.opt:has(input:checked) { border-color: var(--orange); background: var(--orange-tint); }
.q textarea, .q input[type="text"] { width: 100%; font: inherit; padding: .65rem .8rem; border: 1px solid #d6d3cf; border-radius: 10px; margin-top: .55rem; }
.q textarea { min-height: 96px; resize: vertical; }
.q textarea:focus, .q input[type="text"]:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(241,89,42,.18); }
.q.invalid { background: #fff6f4; }
.q .err { color: #a12121; font-size: .83rem; font-weight: 600; margin-top: .45rem; display: none; }
.q.invalid .err { display: block; }
.matrix { width: 100%; border-collapse: collapse; margin-top: .6rem; font-size: .88rem; }
.matrix th { font-weight: 600; font-size: .78rem; color: var(--muted); padding: .4rem .3rem; text-align: center; }
.matrix td { padding: .55rem .3rem; border-top: 1px solid var(--line); text-align: center; }
.matrix td:first-child { text-align: left; font-weight: 500; padding-right: .8rem; }
.matrix input { accent-color: var(--orange); width: 19px; height: 19px; }
.matrix tr.missing td:first-child { color: #a12121; }
.survey-actions { display: flex; justify-content: flex-end; gap: .75rem; align-items: center; margin-top: 1rem; }

@media (max-width: 760px) {
  .step { grid-template-columns: 72px 1fr; }
  .step-thumb { width: 72px; }
  .step > :last-child { grid-column: 1 / -1; justify-self: stretch; }
  .step > :last-child.btn { width: 100%; }
  .matrix, .matrix tbody, .matrix tr, .matrix td { display: block; }
  .matrix thead { display: none; }
  .matrix tr { padding: .6rem 0; border-top: 1px solid var(--line); }
  .matrix td { border: 0; padding: .15rem 0; text-align: left; }
  .matrix td:first-child { margin-bottom: .35rem; }
  .matrix td:not(:first-child) label { display: flex; gap: .55rem; align-items: center; }
  .matrix td:not(:first-child) .mlabel { display: inline; }
  .start-card { min-height: 380px; }
}
.matrix .mlabel { display: none; }
.auth-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.auth-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35) 0%, rgba(0,0,0,.1) 35%, rgba(0,0,0,.85) 100%); }
.auth-art > div { z-index: 1; }
@media (max-width: 760px) {
  .auth-wrap { grid-template-rows: auto 1fr; }
  .auth-art { display: flex; min-height: 190px; padding: 1.25rem; }
  .auth-art h1 { font-size: 1.5rem; }
  .auth-art p, .auth-art ul { display: none; }
}

/* ---------- Admin: users ---------- */
.field select, .field input[type="search"] { font: inherit; padding: .65rem .8rem; border: 1px solid #d6d3cf; border-radius: 10px; background: #fff; width: 100%; }
.btn-sm { padding: .38rem .75rem; font-size: .82rem; }
.user-table { display: grid; }
.ut-row { display: grid; grid-template-columns: minmax(180px, 1.6fr) 110px minmax(130px, 1fr) 110px auto; gap: .9rem; align-items: center; padding: .75rem 0; border-top: 1px solid var(--line); font-size: .9rem; }
.ut-head { border-top: 0; padding-top: 0; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.ut-row.inactive > :not(.ut-actions) { opacity: .55; }
.ut-actions { display: flex; gap: .25rem; justify-content: flex-end; flex-wrap: wrap; }
.role-sel { font: inherit; font-size: .85rem; padding: .3rem .4rem; border: 1px solid #d6d3cf; border-radius: 8px; background: #fff; }
@media (max-width: 1000px) {
  .ut-head { display: none; }
  .ut-row { grid-template-columns: 1fr auto; gap: .5rem .9rem; }
  .ut-row > :nth-child(3) { grid-column: 1 / -1; }
  .ut-row > :nth-child(4) { grid-column: 1; }
  .ut-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
