:root {
  --bg: #1b1b1d;
  --surface: #26262a;
  --ink: #ececee;
  --muted: #a3a3a9;
  --line: #3a3a40;
  --brand: #141416;
  --on-brand: #ececee;
  --accent: #d9d9dc;
  --on-accent: #18181a;
  --track: #3a3a40;
  --danger: #f08a78;
  --danger-soft: #3a211d;
  --warn: #e6b45c;
  --warn-soft: #352a14;
  --done: #6fd0a8;
  --done-soft: #20352c;
  --radius: 12px;
  --board-col: #131315;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

h1 { font-size: 1.35rem; line-height: 1.25; margin: 0; }
h2 { font-size: 1rem; margin: 0 0 12px; }
p { margin: 0; }
a { color: inherit; }

/* Khung trang */
.topbar {
  background: var(--brand);
  color: var(--on-brand);
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
}
.topbar-inner { max-width: 960px; margin: 0 auto; display: flex; align-items: center; gap: 24px; min-height: 36px; }
.brand { font-weight: 700; }
.who { margin-left: auto; font-size: .875rem; opacity: .8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nav { display: flex; gap: 4px; }
.nav a {
  color: var(--on-brand);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: .9375rem;
}
.nav a.on { background: rgba(255, 255, 255, .16); font-weight: 600; }

main { max-width: 960px; margin: 0 auto; padding: 20px 16px 32px; }

@media (max-width: 640px) {
  .nav {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 10;
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  }
  .nav a { flex: 1; text-align: center; color: var(--muted); padding: 10px 4px; }
  .nav a.on { background: var(--track); color: var(--ink); }
  main { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
}

.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.back { display: inline-block; color: var(--muted); text-decoration: none; margin-bottom: 8px; padding: 4px 0; }

/* Nut va form */
button, .btn {
  font: inherit;
  font-weight: 600;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
button.primary, .btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
button.danger { color: var(--danger); }
button:disabled { opacity: .6; cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: 14px; }
label small { display: block; font-weight: 400; color: var(--muted); margin-top: 4px; }
input, select, textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  /* 16px de iPhone khong tu zoom khi cham vao o nhap */
  font: 400 16px/1.4 inherit;
  font-family: inherit;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
}
textarea { min-height: 88px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.err { color: var(--danger); font-size: .9375rem; margin: 0 0 12px; }
.err:empty { display: none; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.narrow { max-width: 520px; }
.empty { text-align: center; color: var(--muted); padding: 40px 16px; }
.empty .btn { margin-top: 16px; }
.muted { color: var(--muted); }

/* Dang nhap */
.login { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 16px; }
.login .card { width: 100%; max-width: 380px; padding: 24px; margin: 0; }
.login h1 { margin-bottom: 4px; }
.login p { color: var(--muted); margin-bottom: 20px; }
.login button { width: 100%; }

/* Danh sach don */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin: 12px -16px 8px; padding-inline: 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  min-height: 36px;
  padding: 0 12px;
  font-weight: 500;
  font-size: .875rem;
  border-radius: 999px;
}
.chip b { font-weight: 700; margin-left: 4px; }
.chip.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

.orders { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.order {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-decoration: none;
}
.order:hover { border-color: var(--accent); }
.order-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .8125rem; color: var(--muted); }
.order-title { font-weight: 600; margin: 6px 0 2px; overflow-wrap: anywhere; }
.order-meta { font-size: .875rem; color: var(--muted); overflow-wrap: anywhere; }
.code { font-variant-numeric: tabular-nums; font-weight: 600; }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  background: var(--track);
  color: var(--ink);
  white-space: nowrap;
}
.badge.done { background: var(--done-soft); color: var(--done); }
.badge.cancelled { background: var(--danger-soft); color: var(--danger); }
.badge.late { background: var(--warn-soft); color: var(--warn); }

.progress { display: flex; gap: 3px; margin-top: 12px; }
.progress i { flex: 1; height: 6px; border-radius: 3px; background: var(--track); }
.progress i.on { background: var(--accent); }
.progress.off i.on { background: var(--muted); }
.progress-text { font-size: .875rem; font-weight: 600; margin-top: 8px; }

/* Kieu xem */
.page-head { flex-wrap: wrap; }
.view-toggle { display: inline-flex; flex: none; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); }
.view-toggle button { min-height: 40px; padding: 0 12px; border: 0; border-radius: 0; background: none; font-size: .875rem; }
.view-toggle button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }

/* Bang tien do */
.app-board { display: flex; flex-direction: column; height: 100vh; height: 100dvh; }
.topbar-inner.wide { max-width: none; }
main.board-page {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: none;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.board-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px; }
.board-bar h1 { font-size: 1.125rem; }
.board-bar input[type="search"] { flex: 0 1 300px; min-width: 0; margin: 0; min-height: 40px; padding: 8px 12px; }
.board-bar .btn { min-height: 40px; }
.board-hint { font-size: .8125rem; color: var(--muted); }
@media (hover: none) { .board-hint { display: none; } }

.board {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0 16px 12px;
  overflow-x: auto;
  scroll-padding-inline: 16px;
  scroll-snap-type: x proximity;
}
.board-col {
  flex: 0 0 min(84vw, 280px);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--board-col);
  border-radius: var(--radius);
  scroll-snap-align: start;
}
.board-col.over { outline: 2px solid var(--ink); outline-offset: -2px; }
.board-col h2 { display: flex; justify-content: space-between; gap: 8px; margin: 0; padding: 12px 14px; font-size: .875rem; }
.board-col h2 b { font-weight: 500; color: var(--muted); }
.board-cards { min-height: 8px; overflow-y: auto; padding: 0 8px; display: grid; gap: 8px; }
.board-cards:not(:empty) { padding-bottom: 8px; }

.board-card { display: block; overflow: hidden; background: var(--surface); border-radius: 10px; color: var(--ink); text-decoration: none; }
.board-card:hover { box-shadow: inset 0 0 0 2px var(--muted); }
.board-card[draggable="true"] { cursor: grab; }
.board-card.dragging { opacity: .4; }
/* contain: rap 2D thuong nam ngang, khong duoc cat mat chi tiet */
.board-cover { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; }
.board-body { padding: 10px 12px; }
.board-title { font-weight: 600; font-size: .9375rem; line-height: 1.3; overflow-wrap: anywhere; }
.board-meta { margin-top: 3px; font-size: .8125rem; color: var(--muted); overflow-wrap: anywhere; }
.board-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }

/* Timeline: moi don mot hang, cot ten dinh ben trai, dong ngay dinh ben tren */
.tl-check { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 400; font-size: .875rem; color: var(--muted); cursor: pointer; }
.tl-check input { width: 18px; min-height: 18px; margin: 0; }
.timeline { --tl-day: 34px; --tl-label: 230px; flex: 1; min-height: 0; overflow: auto; margin: 0 16px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--board-col); }
.tl-grid { position: relative; width: max-content; min-width: 100%; }
.tl-head, .tl-row { display: flex; }
.tl-head { position: sticky; top: 0; z-index: 3; background: var(--board-col); border-bottom: 1px solid var(--line); }
.tl-corner { position: sticky; left: 0; z-index: 4; flex: 0 0 var(--tl-label); padding: 6px 12px; background: var(--board-col); border-right: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }
.tl-day { flex: 0 0 var(--tl-day); padding-top: 18px; position: relative; text-align: center; font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-day.weekend { background: var(--surface); }
.tl-day.today { color: var(--on-accent); background: var(--accent); font-weight: 700; }
.tl-month { position: absolute; top: 2px; left: 4px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.tl-row { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.tl-row:hover .tl-label { background: var(--surface); }
.tl-label { position: sticky; left: 0; z-index: 2; flex: 0 0 var(--tl-label); min-width: 0; padding: 8px 12px; background: var(--board-col); border-right: 1px solid var(--line); }
.tl-title { font-weight: 600; font-size: .875rem; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-sub { font-size: .75rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-track { position: relative; flex: none; background-image: linear-gradient(to right, var(--line) 1px, transparent 1px); background-size: var(--tl-day) 100%; }
.tl-today { position: absolute; top: 0; bottom: 0; width: var(--tl-day); background: rgba(217, 217, 220, .1); }
.tl-bar { position: absolute; top: 50%; height: 26px; margin-top: -13px; padding: 0 8px; overflow: hidden; border-radius: 6px; background: var(--accent); color: var(--on-accent); font-size: .75rem; font-weight: 600; line-height: 26px; white-space: nowrap; text-overflow: ellipsis; }
.tl-bar.open { background: var(--track); color: var(--ink); }
.tl-bar.finished { background: var(--done-soft); color: var(--done); }
.tl-bar.off { background: var(--danger-soft); color: var(--danger); }
.tl-over { position: absolute; top: 50%; height: 26px; margin-top: -13px; border-radius: 6px; background: var(--warn-soft); box-shadow: inset 0 0 0 1px var(--warn); }
.tl-empty { padding: 32px 16px; text-align: center; color: var(--muted); }

@media (max-width: 640px) {
  .timeline { --tl-day: 30px; --tl-label: 128px; margin-inline: 8px; }
  main.board-page { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .board-bar input[type="search"] { flex: 1 1 100%; order: 1; }
  /* Menu duoi da co Tao don; cot trong chi lam phai vuot them */
  .board-bar .btn, .board-col.no-cards { display: none; }
}

/* Chi tiet don */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 0; }
.facts dt { font-size: .8125rem; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.note-text { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; }

.columns { display: grid; gap: 16px; align-items: start; }
@media (min-width: 760px) { .columns { grid-template-columns: 1fr 1fr; } }
.columns .card { margin-bottom: 0; }
.column { display: grid; gap: 16px; }
.detail-head { margin-bottom: 16px; }
.detail-head h1 { overflow-wrap: anywhere; }
.title-row { display: flex; align-items: center; gap: 8px; }
.link-btn { display: inline-flex; align-items: center; flex: none; min-height: 32px; padding: 0 8px; border: 0; background: none; color: var(--muted); font-size: .8125rem; font-weight: 600; text-decoration: underline; }
.title-form { margin: 6px 0 4px; }
.title-form .link-row { margin-top: 0; }
.detail-head .badge { margin-top: 8px; }

.steps { list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; padding: 0 0 18px 30px; color: var(--muted); }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--line);
}
.steps li::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 21px;
  bottom: -1px;
  width: 2px;
  background: var(--line);
}
.steps li:last-child::after { display: none; }
.steps li.passed { color: var(--ink); }
.steps li.passed::before { background: var(--accent); border-color: var(--accent); }
.steps li.passed::after { background: var(--accent); }
.steps li.current { color: var(--ink); font-weight: 700; }
.steps li.current::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--done-soft); }
.steps.off li.current::before, .steps.off li.passed::before { background: var(--muted); border-color: var(--muted); box-shadow: none; }
.steps.off li.passed::after { background: var(--muted); }

.history { list-style: none; margin: 0; padding: 0; }
.history li { padding: 10px 0; border-top: 1px solid var(--line); }
.history li:first-child { border-top: 0; padding-top: 0; }
.history li:last-child { padding-bottom: 0; }
.history .when { font-size: .8125rem; color: var(--muted); }
.history .what { font-weight: 600; }
.history .say { white-space: pre-wrap; overflow-wrap: anywhere; }

[hidden] { display: none !important; }

/* Form tao don: tren may tinh bang loai hang nam ben phai */
.order-form { display: grid; gap: 0 24px; grid-template-areas: "info" "items" "files"; grid-template-columns: minmax(0, 1fr); }
.order-info { grid-area: info; }
.order-items { grid-area: items; margin-bottom: 16px; }
.order-files { grid-area: files; }
@media (min-width: 860px) {
  .order-form {
    grid-template-areas: "info items" "files items";
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    grid-template-rows: auto 1fr;
  }
}

/* Dong hang */
.items-head, .item-row { display: grid; grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr); gap: 8px; }
.items-head { font-size: .8125rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.item-row { margin-bottom: 8px; align-items: start; }
.item-row input, .item-row select { margin-top: 0; }
.item-custom { margin-top: 6px !important; }
.items-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
#items-total { font-weight: 600; margin-left: auto; }
@media (max-width: 640px) {
  .items-head { display: none; }
  .item-row {
    grid-template-columns: 76px minmax(0, 1fr);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
  }
  .item-type { grid-column: 1 / -1; }
}

/* Khach xac nhan hinh */
.approval { border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; background: var(--track); overflow-wrap: anywhere; }
.approval.approved { background: var(--done-soft); }
.approval.changes { background: var(--danger-soft); }
.approval.pending { background: var(--warn-soft); }
.approval strong { display: block; }
.approval .say { white-space: pre-wrap; margin-top: 4px; }
.approval small { display: block; color: var(--muted); margin-top: 4px; }
.approval-actions { margin-bottom: 12px; }
.approval-form { margin-top: 10px; }
.order-badges { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }

/* Danh sach file va link */
.confirm-card { border-color: var(--accent); }
.attach-list { list-style: none; margin: 0 0 12px; padding: 0; }
.attach-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.attach-list li:first-child { border-top: 0; }
.attach-name { min-width: 0; overflow-wrap: anywhere; }
.attach-name a { font-weight: 600; color: var(--accent); }
.attach-name small { display: block; color: var(--muted); }
.link-row { display: flex; gap: 8px; margin-top: 10px; }
.link-row input { margin-top: 0; flex: 1; min-width: 0; }

.items { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: .9375rem; }
.items th { text-align: left; font-size: .8125rem; font-weight: 400; color: var(--muted); padding: 0 8px 6px 0; }
.items td { padding: 8px 8px 8px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.items .num { text-align: right; padding-right: 20px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Hinh anh */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-bottom: 12px; }
.gallery:empty { display: none; }
.gallery figure { margin: 0; min-width: 0; }
/* contain: rap 2D thuong nam ngang, khong duoc cat mat chi tiet */
.gallery img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.gallery figcaption { display: flex; justify-content: space-between; align-items: center; gap: 4px; font-size: .75rem; color: var(--muted); margin-top: 2px; min-height: 32px; }
.gallery figcaption span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gallery .is-cover img { border: 2px solid var(--accent); }
.cover-btn { width: 100%; min-height: 32px; padding: 0 4px; font-size: .75rem; }
.cover-btn.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.cover-note { display: block; min-height: 32px; font-size: .75rem; line-height: 32px; text-align: center; color: var(--muted); }
.thumb { display: block; width: 100%; min-height: 0; padding: 0; border: 0; background: none; border-radius: 8px; }
.link-danger { min-height: 32px; padding: 0 4px; border: 0; background: none; color: var(--danger); font-size: .8125rem; font-weight: 600; }
.gallery-empty { margin-bottom: 12px; }
.hint { display: block; font-size: .8125rem; margin-top: 8px; }
.field { margin-bottom: 16px; }
.field-label { font-weight: 600; font-size: .9375rem; margin-bottom: 8px; }
label.btn { display: inline-flex; margin: 0; position: relative; font-size: 1rem; }
label.btn:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.file-input { position: absolute; width: 1px; height: 1px; min-height: 0; margin: 0; padding: 0; border: 0; opacity: 0; }

dialog.lightbox {
  border: 0;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  padding: 12px;
  max-width: calc(100vw - 16px);
  max-height: calc(100dvh - 16px);
}
dialog.lightbox::backdrop { background: rgba(0, 0, 0, .75); }
dialog.lightbox img { display: block; max-width: 100%; max-height: calc(100dvh - 104px); margin: 0 auto 12px; border-radius: 8px; }
dialog.lightbox .actions { justify-content: flex-end; }

/* Tai chinh */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.stat span { display: block; font-size: .8125rem; color: var(--muted); }
.stat b { display: block; margin-top: 2px; font-size: 1.25rem; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat.owed b, .owed-text { color: var(--warn); }
.table-wrap { overflow-x: auto; margin-bottom: 12px; }
.fin-table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.fin-table th { text-align: left; font-size: .8125rem; font-weight: 400; color: var(--muted); padding: 0 12px 6px 0; white-space: nowrap; }
.fin-table td { padding: 8px 12px 8px 0; border-top: 1px solid var(--line); vertical-align: middle; }
.fin-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fin-table th:last-child, .fin-table td:last-child { padding-right: 0; }
.fin-link { font-weight: 600; }
.fin-sub { font-size: .8125rem; }
.cell-input { min-width: 92px; margin: 0; min-height: 38px; padding: 6px 8px; text-align: right; font-variant-numeric: tabular-nums; }
.money-facts { margin: 4px 0 12px; }
.price-card { margin-top: 16px; }
.price-table td:first-child { white-space: nowrap; }
.payment-form { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
#payments .attach-list .actions { flex: none; flex-wrap: nowrap; gap: 4px; }
.shop-card { padding-block: 12px 8px; }
.shop-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; }
.shop-head h2 { margin: 0; overflow-wrap: anywhere; }
.shop-head .actions { gap: 2px; align-items: center; }
.add-user { border-top: 1px solid var(--line); padding: 10px 0 2px; }
.add-user summary { cursor: pointer; font-weight: 600; font-size: .9375rem; }
.add-user form { margin-top: 12px; }

/* Khach hang */
.customer { border-top: 1px solid var(--line); }
.customer:first-of-type { border-top: 0; }
.customer summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  cursor: pointer;
  list-style: none;
}
.customer summary::-webkit-details-marker { display: none; }
.customer-name { font-weight: 600; overflow-wrap: anywhere; }
.customer-sub { font-size: .875rem; color: var(--muted); overflow-wrap: anywhere; }
.customer-body { padding: 4px 0 16px; }
.customers-card { padding-block: 4px; }

.creds { background: var(--done-soft); border-radius: 10px; padding: 14px; margin-bottom: 16px; }
.creds pre { margin: 8px 0 12px; font: 600 1rem/1.5 ui-monospace, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; }

#toast {
  position: fixed;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: .9375rem;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
}
#toast.show { opacity: 1; }
