/* Alamo Hub — neutral graphite theme. Flat surfaces, 1px borders, no tints or glows. */
:root {
  --bg: #141414;          /* page */
  --chrome: #1c1c1c;      /* sidebar + header */
  --surface: #242424;     /* cards */
  --hover: #303030;       /* hover states */
  --border: #383838;      /* borders */
  --border-strong: #474747;
  --text: #e8e8e8;        /* primary text */
  --text-2: #a3a3a3;      /* secondary text */
  --text-3: #737373;      /* tertiary / placeholders */
  --primary: #ededed;     /* off-white buttons */
  --primary-hover: #ffffff;
  --on-primary: #141414;
  --focus: rgba(232, 232, 232, .28);
  --red: #f2555a;
  --red-soft: rgba(242, 85, 90, .1);
  --overlay: rgba(0, 0, 0, .6);
  --radius: 8px;
  --radius-sm: 6px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font: 14px/1.5 "Geist", "Inter", system-ui, "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  font-feature-settings: "ss01", "cv11";
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
::selection { background: rgba(232, 232, 232, .2); }
[hidden] { display: none !important; }
a { color: var(--text); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--text-2); }
:focus-visible { outline: 2px solid var(--text-2); outline-offset: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -.02em; font-weight: 600; }
h1 { font-size: 22px; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }
p { margin: 0; }
svg { flex: none; }
.muted { color: var(--text-2); }
.small { font-size: 12.5px; }
.spacer { flex: 1; }
@keyframes pop { from { opacity: 0; transform: translateY(3px); } }
@keyframes fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }

/* ---------- app shell: icon rail + framed page with header ---------- */
.layout { display: flex; min-height: 100vh; background: var(--chrome); }
.rail {
  position: sticky; top: 0; height: 100vh; width: 76px; flex: none; z-index: 20;
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 0;
  background: #000; border-right: 1px solid #262626; /* black, so the Alamo Studios logo sits seamlessly in it */
}
.rail-logo { display: grid; place-items: center; height: 56px; margin-bottom: 20px; text-decoration: none; }
.rail-nav { display: flex; flex-direction: column; gap: 4px; }
.rail-link {
  position: relative; width: 60px; height: 58px; border-radius: var(--radius); border: 1px solid transparent;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  color: var(--text-2); font-size: 11.5px; font-weight: 500; text-decoration: none;
  transition: background .12s, color .12s;
}
.rail-link:hover { background: #1a1a1a; color: var(--text); }
.rail-link.active { background: #1c1c1c; border-color: #2e2e2e; color: var(--text); }

.frame { flex: 1; min-width: 0; display: flex; flex-direction: column; background: var(--bg); }
.topbar { position: sticky; top: 0; z-index: 30; background: var(--chrome); border-bottom: 1px solid var(--border); }
/* Three columns with equal sides, so the search sits in the true center of the header. */
.topbar-inner { height: 60px; padding: 0 20px; display: grid; grid-template-columns: 1fr minmax(0, 560px) 1fr; align-items: center; gap: 16px; }
.top-actions { justify-self: end; display: flex; align-items: center; gap: 4px; }
.brand { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--text); font-size: 15px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; text-decoration: none; }
@media (max-width: 760px) { .brand { max-width: 34vw; } }
.brand:hover { color: var(--primary-hover); }
.wordmark { display: block; flex: none; }
.logo { display: block; border-radius: 0; }
.top-search { position: relative; width: 100%; }
.top-search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.top-search input { height: 36px; padding: 0 12px 0 34px; background: var(--bg); }
.top-search input::-webkit-search-cancel-button { cursor: pointer; filter: invert(1) opacity(.5); }
.hdr-btn {
  position: relative; width: 36px; height: 36px; border-radius: var(--radius); display: grid; place-items: center;
  background: none; border: 1px solid transparent; color: var(--text-2); cursor: pointer; padding: 0;
}
.hdr-btn:hover { background: var(--hover); color: var(--text); }
.avatar-btn { border-radius: 50%; }
.avatar-btn:hover { background: none; }
.avatar-btn:hover .avatar { border-color: var(--text-3); }
.badge {
  position: absolute; top: 8px; right: 9px; width: 7px; height: 7px; border-radius: 50%;
  background: #0a63e0; box-shadow: 0 0 0 2px var(--chrome); /* Alamo blue */
}

.dd-wrap { position: relative; }
.dropdown {
  position: absolute; right: 0; top: calc(100% + 6px); width: 300px; max-width: calc(100vw - 24px); z-index: 35;
  padding: 4px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4); animation: pop .12s ease-out;
}
.dd-title { font-size: 12px; font-weight: 500; color: var(--text-3); padding: 8px 10px 4px; }
.dd-item { padding: 9px 10px; }
.dd-item + .dd-item { border-top: 1px solid var(--border); }
.dd-me { display: flex; align-items: center; gap: 10px; padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.dd-me > div { min-width: 0; }
.dd-link {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 10px; border-radius: var(--radius-sm); text-align: left;
  color: var(--text-2); background: none; border: 0; font: inherit; cursor: pointer; text-decoration: none;
}
.dd-link:hover { background: var(--hover); color: var(--text); }
.dd-sep { height: 1px; background: var(--border); margin: 4px 0; }

/* ---------- announcement ---------- */
.notice {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; padding: 10px 14px;
  border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); animation: fade .2s;
}
.notice-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text); flex: none; }
.notice p { flex: 1; min-width: 200px; }
.notice-meta { display: flex; align-items: center; gap: 12px; color: var(--text-2); font-size: 13px; }
.pager { display: flex; align-items: center; gap: 2px; font-variant-numeric: tabular-nums; }

main.page { width: 100%; max-width: 1160px; margin: 0 auto; padding: 40px 32px 72px; min-width: 0; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { font-size: 26px; }
.page-head p { margin-top: 4px; }

@media (max-width: 760px) {
  .layout { flex-direction: column; }
  .rail {
    position: fixed; top: auto; bottom: 0; left: 0; right: 0; width: auto; height: auto; padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    flex-direction: row; justify-content: center; border-right: 0; border-top: 1px solid #262626;
  }
  .rail-logo { display: none; }
  .rail-nav { flex-direction: row; gap: 4px; width: 100%; justify-content: space-around; }
  .rail-link { width: auto; flex: 1; max-width: 120px; height: 52px; gap: 3px; }
  .frame { padding-bottom: 68px; }
  .topbar-inner { padding: 0 10px 0 16px; gap: 10px; height: 56px; grid-template-columns: auto minmax(0, 1fr) auto; }
  main.page { padding: 24px 16px 40px; }
  .page-head h1 { font-size: 22px; }
}

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); border: 1px solid var(--border);
  font: inherit; font-weight: 500; cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background .12s, border-color .12s, color .12s;
}
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn.danger { color: var(--red); }
.btn.danger:hover { background: var(--red-soft); border-color: rgba(242, 85, 90, .35); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 13px; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--hover); }
.btn.block { width: 100%; }
.icon-btn {
  display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border-radius: var(--radius-sm);
  background: none; border: 0; color: var(--text-3); cursor: pointer;
}
.icon-btn:hover { background: var(--hover); color: var(--text); }

input, select, textarea {
  width: 100%; height: 36px; padding: 0 11px; border-radius: var(--radius-sm); font: inherit;
  background: var(--bg); color: var(--text); border: 1px solid var(--border); outline: 0;
  transition: border-color .12s, box-shadow .12s;
}
textarea { height: auto; min-height: 88px; padding: 9px 11px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--border-strong); }
input:focus, select:focus, textarea:focus { border-color: var(--text-2); box-shadow: 0 0 0 3px var(--focus); }
input:disabled, select:disabled { background: var(--surface); color: var(--text-3); }
input::placeholder, textarea::placeholder { color: var(--text-3); }
input[type=checkbox] { width: 16px; height: 16px; padding: 0; accent-color: var(--text); flex: none; }
label.field, div.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; color: var(--text); }
.hint { font-size: 12.5px; color: var(--text-3); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
@media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }

.icon-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(38px, 1fr)); gap: 6px; }
.icon-opt {
  position: relative; height: 38px; display: grid; place-items: center; border-radius: var(--radius-sm); cursor: pointer;
  border: 1px solid var(--border); background: var(--bg); color: var(--text-2);
}
.icon-opt:hover { background: var(--hover); color: var(--text); }
.icon-opt input { position: absolute; opacity: 0; pointer-events: none; }
.icon-opt:has(input:checked) { background: var(--text); border-color: var(--text); color: var(--on-primary); }
.icon-opt:has(input:focus-visible) { outline: 2px solid var(--text-2); outline-offset: 2px; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card-head { padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
fieldset { margin: 0; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); }
legend { padding: 0 6px; font-size: 13px; font-weight: 600; }

/* ---------- launcher tiles ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.tile {
  position: relative; height: 136px; padding: 16px; border-radius: var(--radius); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center;
  background: var(--surface); border: 1px solid var(--border);
  transition: background .12s, border-color .12s;
}
.tile:hover { background: var(--hover); border-color: var(--border-strong); }
.tile:focus-visible { outline: 2px solid var(--text-2); outline-offset: 2px; }
.tile .mark { --s: 56px; }
.tile-name { font-size: 14.5px; font-weight: 500; color: var(--text); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fav { opacity: 0; transition: opacity .12s; }
.tile .fav { position: absolute; top: 6px; right: 6px; }
.tile:hover .fav, .tool-row:hover .fav, .fav:focus-visible, .fav.on { opacity: 1; }
.fav.on { color: var(--text); }
@media (hover: none) { .fav { opacity: 1; } }
.all-link { display: flex; justify-content: flex-end; margin-top: 20px; }
.all-link a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-2); text-decoration: none; }
.all-link a:hover { color: var(--text); }

/* ---------- browse list ---------- */
.browse { margin-top: 40px; scroll-margin-top: 80px; }
.browse h2 { font-size: 16px; margin-bottom: 14px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.chip {
  height: 30px; padding: 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: transparent;
  color: var(--text-2); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer;
}
.chip:hover { background: var(--hover); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--on-primary); }
.tool-list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.tool-row {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; cursor: pointer;
  border-bottom: 1px solid var(--border); transition: background .1s;
}
.tool-row:last-child { border-bottom: 0; }
.tool-row:hover { background: var(--hover); }
.tool-row:focus-visible { outline: 0; box-shadow: inset 0 0 0 1px var(--text-2); }
.tool-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tool-row-body strong { font-weight: 500; }
.tool-row-body span { color: var(--text-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-go { color: var(--text-3); display: grid; }
.tool-row:hover .row-go { color: var(--text); }
@media (max-width: 760px) {
  .tile-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
  .tile { height: 120px; gap: 10px; }
  .tile .mark { --s: 44px !important; } /* beats the inline size */
  .tool-row .pill { display: none; }
}

/* Tool mark: the tool's real logo, or a colored app icon (its own color + white Lucide glyph). */
.mark {
  --s: 32px; width: var(--s); height: var(--s); flex: none; display: grid; place-items: center;
  border-radius: calc(var(--s) * .24); background: var(--c); color: #fff; overflow: hidden;
}
.mark > svg { stroke-width: 2; }
.mark-logo { background: transparent; }
.mark-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mark-logo > svg { display: none; }
.mark-logo.broken { background: var(--c); }
.mark-logo.broken img { display: none; }
.mark-logo.broken > svg { display: block; }

.logo-edit { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.logo-side { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.logo-side .hint { font-weight: 400; }
.logo-side label.btn { cursor: pointer; }
.logo-side label.btn:focus-visible { outline: 2px solid var(--text-2); outline-offset: 2px; }

.pill {
  display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--radius-sm); white-space: nowrap;
  font-size: 12px; font-weight: 500; background: transparent; color: var(--text-2); border: 1px solid var(--border);
}
.pill.accent { color: var(--text); border-color: var(--border-strong); background: var(--hover); }

.empty {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 48px 20px;
  color: var(--text-2); border: 1px dashed var(--border); border-radius: var(--radius);
}
.empty strong { color: var(--text); font-weight: 500; }

.embed-wrap { position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--bg); z-index: 40; }
.embed-bar { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 12px; background: var(--chrome); border-bottom: 1px solid var(--border); }
.embed-wrap iframe { flex: 1; border: 0; width: 100%; background: #fff; }

/* ---------- profile ---------- */
.avatar {
  --size: 30px; width: var(--size); height: var(--size); flex: none; border-radius: 50%; display: inline-grid; place-items: center;
  color: var(--text); font-weight: 500; font-size: calc(var(--size) * .38); line-height: 1;
  background: var(--hover); border: 1px solid var(--border-strong); transition: border-color .12s;
}
img.avatar { object-fit: cover; padding: 0; }

/* Phone: country picker (flag + calling code) joined to the number field */
.flag { display: block; flex: none; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.phone-field { position: relative; display: flex; font-weight: 400; }
.cc-btn {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 9px 0 10px; flex: none; cursor: pointer;
  background: var(--surface); color: var(--text); font: inherit; font-size: 14px;
  border: 1px solid var(--border); border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.cc-btn:hover { background: var(--hover); }
.cc-btn svg { color: var(--text-3); }
.cc-dial { font-variant-numeric: tabular-nums; }
.phone-field .cc-number { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; min-width: 0; }
.cc-menu {
  position: absolute; left: 0; top: calc(100% + 6px); z-index: 40; width: 300px; max-width: calc(100vw - 48px);
  padding: 6px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4); animation: pop .12s ease-out;
}
.cc-search { height: 32px; margin-bottom: 6px; }
.cc-list { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow: auto; }
.cc-list li[data-iso] {
  display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: var(--radius-sm); cursor: pointer; color: var(--text);
}
.cc-list li[data-iso]:hover, .cc-list li[data-iso]:focus { background: var(--hover); outline: 0; }
.cc-list li[aria-selected="true"] { background: var(--hover); }
.cc-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-code { color: var(--text-2); font-variant-numeric: tabular-nums; }
.cc-sep { height: 1px; background: var(--border); margin: 4px 2px; }
.cc-empty { padding: 10px 8px; color: var(--text-3); }
.phone-display { display: inline-flex; align-items: center; gap: 8px; }
.dd-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-edit { display: flex; align-items: center; gap: 16px; padding-bottom: 4px; }
.photo-btn { padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; flex: none; }
.photo-btn .avatar { transition: border-color .12s, opacity .12s; }
.photo-btn:hover .avatar { border-color: var(--text-3); opacity: .85; }
.photo-btn.drop .avatar { border-color: var(--text); box-shadow: 0 0 0 3px var(--focus); }
.profile-hero { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.profile-hero .avatar { --size: 60px; }
.profile-hero h2 { font-size: 18px; }
.kv { display: grid; grid-template-columns: 100px 1fr; gap: 10px 14px; margin: 0; padding-top: 16px; border-top: 1px solid var(--border); }
.kv dt { color: var(--text-3); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.bio { white-space: pre-wrap; color: var(--text-2); }
.two-col { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.preview-label { font-size: 12px; font-weight: 500; color: var(--text-3); margin-bottom: 8px; }
@media (max-width: 1000px) { .two-col { grid-template-columns: 1fr; } }

/* ---------- admin ---------- */
.tabs { display: flex; gap: 4px; margin-bottom: 20px; box-shadow: inset 0 -1px 0 var(--border); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tab {
  position: relative; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; white-space: nowrap;
  color: var(--text-2); font-weight: 500; text-decoration: none;
}
.tab:hover { color: var(--text); }
.tab .count { font-size: 12px; color: var(--text-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 0 6px; line-height: 18px; }
.tab.active { color: var(--text); }
.tab.active::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 0; height: 2px; background: var(--text); }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: 12px; font-weight: 500; color: var(--text-2); background: var(--chrome); }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: var(--hover); }
td .actions { display: flex; gap: 4px; justify-content: flex-end; }
td .actions .btn.danger { background: transparent; border-color: transparent; }
td .actions .btn.danger:hover { background: var(--red-soft); }
td .url { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-note { margin-top: 10px; }
.checklist {
  max-height: 180px; overflow: auto; padding: 4px; border-radius: var(--radius-sm); display: flex; flex-direction: column;
  border: 1px solid var(--border); background: var(--bg);
}
.checklist label { display: flex; gap: 10px; align-items: center; padding: 6px 8px; border-radius: var(--radius-sm); font-weight: 400; cursor: pointer; }
.checklist label:hover { background: var(--hover); }
.check-row { display: flex; gap: 10px; align-items: center; font-weight: 500; cursor: pointer; }

/* ---------- modal / toast ---------- */
.modal-backdrop { position: fixed; inset: 0; background: var(--overlay); display: grid; place-items: center; padding: 16px; z-index: 50; animation: fade .15s; }
.modal {
  width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .5); animation: pop .15s ease-out;
}
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px 0; margin-bottom: 18px; }
.modal form { padding: 0 20px 20px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin: 6px -20px -20px; padding: 12px 20px; border-top: 1px solid var(--border); background: var(--chrome); }
.error { color: var(--red); font-size: 13px; margin: 0; }
.error:empty { display: none; }

#toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 8px); opacity: 0; pointer-events: none; z-index: 60;
  padding: 9px 14px; border-radius: var(--radius); font-weight: 500; background: var(--surface); color: var(--text); border: 1px solid var(--border);
  transition: opacity .15s, transform .15s;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- sign in ---------- */
.login-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 24px 16px; }
.login-card { width: min(380px, 100%); padding: 32px 28px 28px; animation: pop .2s ease-out; }
.login-brand { margin-bottom: 24px; }
.login-foot { display: flex; align-items: center; gap: 8px; }
.login-foot .wordmark { opacity: .55; }
.login-card h1 { font-size: 20px; }
.callout {
  display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 13px;
  background: var(--bg); border: 1px solid var(--border); color: var(--text-2);
}
.callout strong { color: var(--text); font-weight: 500; }
.callout svg { color: var(--text-2); margin-top: 2px; }
.login-card .btn.primary { height: 38px; margin-top: 4px; }
.login-foot { color: var(--text-3); font-size: 12.5px; }
