/* ITT Victor Engine — console styles
   Palette: ink #0F1722 · navy #17356B (overridable brand accent) · signal #E0A21C
   Type: Space Grotesk (display/nav) · system UI (body) · IBM Plex Mono (slugs & codes)
   Slugs, IDs and permission keys are set in mono because they are literal keys. */

:root {
  --ink:        #0F1722;
  --ink-soft:   #16202E;
  --ink-line:   #243143;
  --brand:      #17356B;
  --brand-ink:  #ffffff;
  --signal:     #E0A21C;
  --success:    #12805C;
  --danger:     #C2352C;
  --canvas:     #EEF1F6;
  --paper:      #FFFFFF;
  --line:       #DCE2EC;
  --line-soft:  #EAEEF4;
  --text:       #1B2432;
  --muted:      #67768C;

  --radius:     10px;
  --radius-sm:  6px;
  --shadow:     0 1px 2px rgba(15, 23, 34, .06), 0 8px 24px -16px rgba(15, 23, 34, .28);
  --rail-w:     248px;

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

/* The UA rule [hidden]{display:none} loses to any class that sets display,
   e.g. .auth__form{display:flex}. Without this, hidden panels still render. */
[hidden] { display: none !important; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -.015em; margin: 0; }
a { color: var(--brand); }
code, .slug, .mono { font-family: var(--font-mono); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--paper); padding: .6rem 1rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.muted { color: var(--muted); }
.ta-right { text-align: right; }
.ta-center { text-align: center; }

/* ------------------------------------------------------------------ shell */
.shell { display: flex; min-height: 100vh; }

.rail {
  width: var(--rail-w);
  flex: 0 0 var(--rail-w);
  background: var(--ink);
  color: #C6D0DE;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.rail__brand {
  display: flex; align-items: center; gap: .6rem;
  padding: 1.15rem 1.15rem 1rem;
  border-bottom: 1px solid var(--ink-line);
  min-height: 68px;
}
.rail__logo { max-height: 34px; max-width: 176px; object-fit: contain; }
.rail__mark {
  width: 30px; height: 30px; border-radius: 8px; background: var(--brand);
  color: #fff; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
}
.rail__word { font-family: var(--font-display); font-weight: 600; color: #fff; font-size: 15px; }

.rail__nav { padding: .9rem .7rem; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; }
.rail__section {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: #6C7C92; padding: 1.1rem .65rem .4rem;
}
.rail__link {
  display: flex; align-items: center; gap: .65rem;
  padding: .55rem .65rem; border-radius: var(--radius-sm);
  color: #BAC6D6; text-decoration: none; font-size: 14px;
  border-left: 2px solid transparent;
  transition: background .12s ease, color .12s ease;
}
.rail__link:hover { background: var(--ink-soft); color: #fff; }
.rail__link.is-active { background: var(--ink-soft); color: #fff; border-left-color: var(--signal); }
.rail__glyph { color: var(--signal); font-size: 12px; width: 14px; text-align: center; }

.rail__foot {
  border-top: 1px solid var(--ink-line);
  padding: .75rem; display: flex; align-items: center; gap: .4rem;
}
.rail__me {
  display: flex; align-items: center; gap: .6rem; flex: 1; min-width: 0;
  padding: .4rem; border-radius: var(--radius-sm); text-decoration: none; color: inherit;
}
.rail__me:hover, .rail__me.is-active { background: var(--ink-soft); }
.rail__me-text { min-width: 0; display: flex; flex-direction: column; }
.rail__me-text strong { color: #fff; font-size: 13px; font-weight: 600; }
.rail__me-text small,
.rail__me-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail__me-text small { color: #7E8DA3; font-size: 11.5px; }
.rail__out {
  background: transparent; border: 1px solid var(--ink-line); color: #9FB0C4;
  width: 32px; height: 32px; border-radius: var(--radius-sm); cursor: pointer;
}
.rail__out:hover { color: #fff; border-color: #3A4A61; }

.avatar {
  width: 32px; height: 32px; flex: none; border-radius: 9px;
  background: var(--brand); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 12.5px;
}
.avatar--lg { width: 52px; height: 52px; border-radius: 12px; font-size: 18px; }
.avatar--sm { width: 28px; height: 28px; font-size: 11px; border-radius: 8px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 1rem;
  padding: .85rem 1.5rem; min-height: 68px;
}
.topbar__burger { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius-sm); width: 36px; height: 36px; cursor: pointer; }
.topbar__title h1 { font-size: 19px; }
.topbar__slot { margin-left: auto; }

.eyebrow {
  display: block; font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--muted);
}

.canvas { padding: 1.5rem; flex: 1; }

/* ------------------------------------------------------------- primitives */
.stack { display: flex; flex-direction: column; gap: 1.25rem; }
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel__head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--line-soft);
}
.panel__label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.panel__body { padding: 1.1rem; }

.stat {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem; display: flex; flex-direction: column; gap: .2rem;
  text-decoration: none; color: inherit; box-shadow: var(--shadow);
}
.stat--link:hover { border-color: var(--brand); }
.stat__value { font-family: var(--font-display); font-size: 30px; font-weight: 600; line-height: 1.1; }
.stat__label { font-size: 12.5px; color: var(--muted); }

.hello { display: flex; gap: 1rem; align-items: center; padding: 1.1rem; }
.hello h2 { font-size: 18px; }

.chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.chip {
  font-size: 12px; padding: .2rem .55rem; border-radius: 999px;
  background: #EDF1F8; color: #2C4470; border: 1px solid #DCE4F1;
}
.chip--super { background: #FDF4E1; color: #8A6410; border-color: #F2E2BB; }
.chip--muted { background: var(--line-soft); color: var(--muted); border-color: var(--line); }

.slugs { display: flex; flex-wrap: wrap; gap: .35rem; }
.slug {
  font-size: 12px; background: #F3F5F9; border: 1px solid var(--line);
  padding: .12rem .4rem; border-radius: 5px; color: #33465F; white-space: nowrap;
}
.slug--sm { font-size: 11px; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.dot--on { background: var(--brand); }

.feed { list-style: none; margin: 0; padding: .35rem 0; }
.feed__item {
  display: flex; align-items: center; gap: .6rem;
  padding: .45rem 1.1rem; font-size: 13px;
  border-bottom: 1px solid var(--line-soft);
}
.feed__item:last-child { border-bottom: 0; }
.feed__who { color: var(--text); }
.feed__when { margin-left: auto; color: var(--muted); font-size: 12px; font-family: var(--font-mono); }

/* ----------------------------------------------------------------- forms */
.field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .95rem; }
.field--inline { margin: 0; }
.field__label { font-size: 12.5px; font-weight: 600; color: #34445B; }
.field__hint { font-size: 12px; color: var(--muted); }
.field__error { font-size: 12px; color: var(--danger); min-height: 0; }
.field__error:empty { display: none; }

.input {
  width: 100%; padding: .55rem .7rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper); color: var(--text);
  font-family: inherit; font-size: 14px;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent); outline: none; }
.input:disabled { background: #F5F7FA; color: var(--muted); }
.input.is-invalid { border-color: var(--danger); }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: right 14px center, right 9px center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 2rem; }
.input--search { min-width: 240px; }

.form__actions { display: flex; gap: .6rem; justify-content: flex-end; padding-top: .3rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .55rem .95rem; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  font-family: var(--font-display); font-size: 13.5px; font-weight: 600;
  text-decoration: none; transition: filter .12s ease, background .12s ease;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn--primary { background: var(--brand); color: var(--brand-ink); }
.btn--primary:hover:not(:disabled) { filter: brightness(1.12); }
.btn--ghost { background: var(--paper); border-color: var(--line); color: var(--text); }
.btn--ghost:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover:not(:disabled) { filter: brightness(1.08); }
.btn--block { width: 100%; }
.btn--sm { padding: .32rem .6rem; font-size: 12.5px; }
.btn--link-danger { background: none; border: 0; color: var(--danger); padding: .3rem .2rem; font-size: 12.5px; }
.btn--link-danger:hover { text-decoration: underline; }

.rowbtns { display: inline-flex; gap: .35rem; justify-content: flex-end; }

/* ---------------------------------------------------------------- tables */
.toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem 1.1rem; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap;
}
.toolbar--sub { border-bottom: 1px solid var(--line-soft); background: #FAFBFD; }
.toolbar__filters { display: flex; gap: .6rem; flex-wrap: wrap; }
.toolbar__hint { margin: 0; max-width: 62ch; font-size: 13px; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th, .table td { padding: .7rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table thead th {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); font-weight: 500;
  background: #FAFBFD; border-bottom: 1px solid var(--line);
  position: sticky; top: 0;
}
.table tbody tr:hover { background: #FAFBFD; }
.table tbody tr:last-child td { border-bottom: 0; }
.table__empty { text-align: center; color: var(--muted); padding: 2.2rem 1rem; }
.table--matrix th[scope="row"] { font-weight: 500; }
.th--manage { color: #8A6410; }

.who { display: flex; align-items: center; gap: .6rem; }
.who__name { font-weight: 600; }
.who__mail { color: var(--muted); font-size: 12.5px; }

.pill {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: 12px; padding: .15rem .5rem; border-radius: 999px;
  border: 1px solid transparent;
}
.pill--active { background: #E7F5EF; color: var(--success); border-color: #CBE9DC; }
.pill--inactive { background: #F4F5F7; color: var(--muted); border-color: var(--line); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 1.1rem; flex-wrap: wrap; }
.pager__info { font-size: 12.5px; color: var(--muted); font-family: var(--font-mono); }
.pager__nav { display: flex; gap: .35rem; }

/* --------------------------------------------------------- modal & toast */
.modal-root { position: fixed; inset: 0; z-index: 60; display: none; }
.modal-root.is-open { display: block; }
.modal__scrim { position: absolute; inset: 0; background: rgba(15, 23, 34, .45); animation: fade .16s ease; }
.modal {
  position: relative; margin: 4vh auto; width: min(680px, calc(100% - 2rem));
  background: var(--paper); border-radius: var(--radius);
  box-shadow: 0 24px 60px -20px rgba(15, 23, 34, .5);
  max-height: 92vh; display: flex; flex-direction: column;
  animation: rise .18s ease;
}
.modal--sm { width: min(460px, calc(100% - 2rem)); }
.modal--lg { width: min(880px, calc(100% - 2rem)); }
.modal__head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: 1.05rem 1.25rem; border-bottom: 1px solid var(--line-soft);
}
.modal__head h2 { font-size: 17px; }
.modal__sub { font-size: 12.5px; color: var(--muted); margin: .15rem 0 0; }
.modal__close { background: none; border: 0; font-size: 20px; line-height: 1; color: var(--muted); cursor: pointer; padding: .1rem .3rem; }
.modal__close:hover { color: var(--text); }
.modal__body { padding: 1.25rem; overflow-y: auto; }
.modal__foot { display: flex; justify-content: flex-end; gap: .6rem; padding: .9rem 1.25rem; border-top: 1px solid var(--line-soft); background: #FAFBFD; }

@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

.toasts { position: fixed; right: 1rem; bottom: 1rem; z-index: 80; display: flex; flex-direction: column; gap: .5rem; max-width: min(380px, calc(100vw - 2rem)); }
.toast {
  display: flex; gap: .6rem; align-items: flex-start;
  background: var(--ink); color: #EAF0F8;
  border-radius: var(--radius); padding: .7rem .85rem;
  box-shadow: 0 12px 30px -12px rgba(15, 23, 34, .6);
  font-size: 13.5px; animation: rise .18s ease;
  border-left: 3px solid var(--brand);
}
.toast--success { border-left-color: #2FBF8F; }
.toast--error { border-left-color: #F2645A; }
.toast--warning { border-left-color: var(--signal); }
.toast__close { margin-left: auto; background: none; border: 0; color: #8A9AB0; cursor: pointer; font-size: 15px; line-height: 1; }
.toast.is-leaving { opacity: 0; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease; }

/* ------------------------------------------------------ permission matrix */
.matrix { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.matrix table { width: 100%; border-collapse: collapse; font-size: 13px; }
.matrix th, .matrix td { padding: .5rem .7rem; border-bottom: 1px solid var(--line-soft); }
.matrix thead th {
  background: var(--ink); color: #C6D0DE; font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
  text-align: center;
}
.matrix thead th:first-child { text-align: left; }
.matrix thead th.is-manage { color: var(--signal); }
.matrix td { text-align: center; }
.matrix td:first-child { text-align: left; }
.matrix tbody tr:hover { background: #FAFBFD; }
.matrix__module { display: flex; align-items: center; gap: .5rem; }
.matrix__count { font-size: 11px; color: var(--muted); font-family: var(--font-mono); }
.matrix__na { color: var(--line); }
.matrix__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem .8rem; background: #FAFBFD; font-size: 12.5px; }

.check { display: inline-flex; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }
.check input:disabled { cursor: not-allowed; }
.check--manage input { accent-color: var(--signal); }

.notice {
  display: flex; gap: .6rem; padding: .7rem .85rem; border-radius: var(--radius-sm);
  background: #FDF6E7; border: 1px solid #F2E2BB; color: #6E5310; font-size: 13px;
  margin-bottom: 1rem;
}
.notice--info { background: #EEF3FB; border-color: #D8E3F4; color: #2C4470; }

/* -------------------------------------------------------------- branding */
.upload { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.upload__preview {
  width: 176px; height: 64px; border: 1px dashed var(--line); border-radius: var(--radius-sm);
  display: grid; place-items: center; background: #FAFBFD; overflow: hidden; flex: none;
}
.upload__preview--sq { width: 64px; }
.upload__preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.upload__placeholder { font-size: 12px; color: var(--muted); }
.upload__meta { display: flex; flex-direction: column; gap: .35rem; align-items: flex-start; }

.colour { display: flex; align-items: center; gap: .6rem; }
.colour input[type="color"] { width: 46px; height: 34px; padding: 2px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper); cursor: pointer; }

.preview { display: flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-height: 190px; margin-bottom: .9rem; }
.preview__rail { width: 150px; background: var(--ink); padding: .8rem .6rem; display: flex; flex-direction: column; gap: .3rem; }
.preview__brand { display: flex; align-items: center; gap: .4rem; color: #fff; font-family: var(--font-display); font-size: 12px; margin-bottom: .6rem; }
.preview__brand img { max-height: 24px; max-width: 100px; object-fit: contain; }
.preview__mark { width: 22px; height: 22px; border-radius: 6px; background: var(--brand); display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.preview__link { font-size: 11.5px; color: #8A9AB0; padding: .25rem .4rem; border-radius: 4px; }
.preview__link--on { background: var(--ink-soft); color: #fff; border-left: 2px solid var(--signal); }
.preview__body { flex: 1; padding: 1rem; background: var(--canvas); display: flex; flex-direction: column; gap: .6rem; }
.preview__btn { align-self: flex-start; background: var(--brand); color: #fff; font-size: 12px; padding: .4rem .7rem; border-radius: var(--radius-sm); font-family: var(--font-display); font-weight: 600; }
.preview__line { height: 9px; background: #DCE2EC; border-radius: 4px; width: 100%; }
.preview__line--short { width: 60%; }

/* ------------------------------------------------------------------ auth */
.body--auth { background: var(--ink); }
.auth { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); min-height: 100vh; }
.auth__panel { background: var(--paper); padding: 3rem 2.4rem; display: flex; flex-direction: column; justify-content: center; }
.auth__brand { display: flex; align-items: center; gap: .8rem; margin-bottom: 2rem; }
.auth__brand img { max-height: 44px; max-width: 190px; object-fit: contain; }
.auth__brand h1 { font-size: 22px; }
.auth__mark { width: 42px; height: 42px; border-radius: 11px; background: var(--brand); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.auth__form { display: flex; flex-direction: column; gap: .2rem; }
.auth__note { font-size: 12.5px; color: var(--muted); margin-top: 1.6rem; }

.auth__aside { padding: 3rem; display: flex; flex-direction: column; justify-content: center; gap: 1.4rem; color: #9FB0C4; }
.auth__aside-copy { max-width: 46ch; font-size: 13.5px; line-height: 1.6; }
.auth__aside-copy code { color: var(--signal); }
.board { border: 1px solid var(--ink-line); border-radius: var(--radius); overflow: hidden; max-width: 460px; }
.board__row {
  display: grid; grid-template-columns: 1.2fr 1fr .8fr; gap: 1rem;
  padding: .55rem .9rem; font-family: var(--font-mono); font-size: 12.5px;
  border-bottom: 1px solid var(--ink-line); color: #C6D0DE;
}
.board__row:first-child { background: var(--ink-soft); color: #6C7C92; font-size: 10.5px; letter-spacing: .14em; }
.board__row:last-child { border-bottom: 0; }
.board__row b { color: var(--signal); font-weight: 500; }
.board__row i { color: #6C7C92; font-style: normal; }

.errpage { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; color: #C6D0DE; padding: 2rem; text-align: center; }
.errpage__code { font-family: var(--font-mono); font-size: 13px; color: var(--signal); letter-spacing: .3em; }
.errpage h1 { color: #fff; font-size: 30px; }
.errpage__actions { display: flex; gap: .6rem; margin-top: 1rem; flex-wrap: wrap; justify-content: center; }

/* ----------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .grid--2, .row { grid-template-columns: minmax(0, 1fr); }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth__aside { display: none; }
  .rail {
    position: fixed; z-index: 40; left: 0; top: 0;
    transform: translateX(-100%); transition: transform .2s ease;
  }
  .rail.is-open { transform: translateX(0); box-shadow: 0 0 40px rgba(0, 0, 0, .4); }
  .topbar__burger { display: block; }
  .canvas { padding: 1rem; }
  .input--search { min-width: 0; }
  .toolbar__filters { width: 100%; }
  .toolbar__filters .field--inline { flex: 1 1 150px; }
}

@media (max-width: 560px) {
  .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .toasts { left: 1rem; right: 1rem; max-width: none; }
  .auth__panel { padding: 2rem 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ------------------------------------------------------- auth: otp & reset */
.auth__link { font-size: 12.5px; margin: .9rem 0 0; text-align: center; color: var(--muted); }
.auth__link a { color: var(--brand); text-decoration: none; }
.auth__link a:hover { text-decoration: underline; }
.btn--link { background: none; border: 0; color: var(--brand); font-family: var(--font-body); font-size: 12.5px; padding: 0; cursor: pointer; }
.btn--link:hover { text-decoration: underline; }
.btn--link:disabled { color: var(--muted); cursor: not-allowed; text-decoration: none; }

.otp__head { margin-bottom: 1rem; }
.otp__head h2 { font-size: 18px; margin: .15rem 0 .35rem; }
.otp__head p { margin: 0; font-size: 13px; }
.input--otp {
  font-size: 26px; letter-spacing: 10px; text-align: center;
  padding: .6rem .7rem; font-weight: 500;
}
.input--otp::placeholder { letter-spacing: 10px; color: var(--line); }

/* the mail settings page reuses .colour for a number + unit pair */
.colour .input { max-width: 110px; }

/* per-user sign-in code flag */
.chip--code { background: #EAF1FB; color: #1B4E9B; border-color: #D2E1F6; margin-left: .35rem; }
.field--check { flex-direction: row; align-items: flex-start; gap: .6rem; }
.field--check .check { padding-top: .15rem; }
.field--check .field__label { display: block; }

/* module push */
.pill--failed { background: #FCEDEC; color: var(--danger); border-color: #F3D6D4; }
.pill--warn { background: #FDF6E7; color: #8A6410; border-color: #F2E2BB; }
