/* Hallmark · v2.0.0 · shape: app screen · scope: app · theme: locked docs/Design.md (repo rule, dark theme 2026-10-29) · genre: modern-minimal · screen: login + dashboard (railwork balance figure, task list, approval queue) · states: loading, empty, error, full · signature: ยอดวันลาคงเหลือเป็นตัวเลขจริงตัวเดียวที่นำสายตา · pre-emit critique: P4 H4 E4 S4 R5 V4 · weakest: H — data-first dashboard risks flatness; fix: leave balance as one big figure, everything else demoted · surface: absolute */
/* Hallmark · answered F24 · the app cards commit to a defined edge; elevation is carried by surface level only */

/* =====================================================================
   S.T. MASTERTECH — ระบบงานภายใน (Phase 2)
   Tokens ทั้งหมดจาก docs/Design.md (ล็อกไว้) — ไม่มี colour literal นอก token block
   ===================================================================== */

@font-face {
  font-family: "Prompt";
  src: url("Prompt-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: optional;
}
@font-face {
  font-family: "Prompt";
  src: url("Prompt-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: optional;
}
@font-face {
  font-family: "Prompt";
  src: url("Prompt-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: optional;
}
@font-face {
  font-family: "Prompt";
  src: url("Prompt-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: optional;
}
@font-face {
  font-family: "Inter";
  src: url("Inter-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: optional;
}

:root {
  /* สี (จาก Design.md §2) */
  --st-navy-950: #071828;
  --st-navy-900: #0a2134;
  --st-navy-800: #0f2a41;
  --st-navy-700: #16364f;
  --st-red: #f52c4b;
  --st-red-deep: #eb2341;
  --st-red-action: #da2444;
  --st-red-bright: #ff5d75;
  --st-white: #f8fbff;
  --st-text: #d4e1e9;
  --st-text-soft: #a6c1d2;
  --st-line: rgba(166, 193, 210, 0.26);
  --st-line-dark: rgba(255, 255, 255, 0.07);
  --st-surface: #0a2134;
  --st-red-tint: rgba(245, 44, 75, 0.12);
  --st-red-ink: #ffb3bd;
  --st-wash-dark: rgba(255, 255, 255, 0.08);
  --st-outline-line: rgba(248, 251, 255, 0.45);
  --st-red-wash: rgba(245, 44, 75, 0.18);
  --st-shadow: 0 12px 32px rgba(2, 10, 18, 0.45);
  --st-scrim: rgba(3, 10, 18, 0.72);
  --st-shadow-header: 0 1px 0 var(--st-line-dark), 0 8px 24px rgba(2, 10, 18, 0.35);

  /* semantic (ต่อจาก Design.md §2 — UI variation) */
  --ink: var(--st-white);
  --muted: var(--st-text-soft);
  --line: var(--st-line);
  --danger-ink: var(--st-red-ink);
  --danger-tint: var(--st-red-tint);
  --focus-ring: var(--st-red-bright);

  /* ตัวอักษร */
  --font-th: "Prompt", "Noto Sans Thai", system-ui, sans-serif;
  --font-num: "Inter", "Prompt", system-ui, sans-serif;
  --text-11: 0.6875rem;
  --text-12: 0.75rem;
  --text-14: 0.875rem;
  --text-16: 1rem;
  --text-18: 1.125rem;
  --text-20: 1.25rem;
  --text-24: 1.5rem;
  --text-40: 2.5rem;
  --text-48: 3rem;
  --leading-body: 1.65;
  --leading-head: 1.25;

  /* ระยะ (spacing scale) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* โครงสร้าง */
  --container: 1100px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius-s: 4px;
  --radius: 8px;
  --radius-l: 12px;
  --control-h: 40px;
  --hit-h: 44px;
  --topbar-h: 56px;
  --z-sticky-nav: 30;

  /* motion */
  --dur-micro: 120ms;
  --dur-short: 200ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  overflow-x: clip;
}

body {
  overflow-x: clip;
  margin: 0;
  background: var(--st-navy-950);
  color: var(--st-text);
  font-family: var(--font-th);
  font-size: var(--text-16);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--st-red-bright);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

h1, h2, h3 {
  font-family: var(--font-th);
  font-weight: 600;
  color: var(--ink);
  line-height: var(--leading-head);
  margin: 0;
  text-wrap: balance;
  overflow-wrap: break-word;
  min-width: 0;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

::selection {
  background: var(--st-red);
  color: var(--st-white);
}

html {
  caret-color: var(--st-red-bright);
  scrollbar-color: var(--st-navy-700) var(--st-navy-950);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--hit-h);
  padding: 0 var(--space-5);
  border-radius: var(--radius);
  font-family: var(--font-th);
  font-size: var(--text-16);
  font-weight: 500;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-micro) var(--ease), border-color var(--dur-micro) var(--ease), color var(--dur-micro) var(--ease), opacity var(--dur-micro) var(--ease);
}
.btn:hover {
  text-decoration: none;
}
.btn:disabled {
  background: var(--st-navy-800);
  color: var(--muted);
  border-color: var(--st-line);
  cursor: not-allowed;
}
.btn--primary {
  background: var(--st-red-action);
  color: var(--st-white);
  border-color: var(--st-red-action);
}
.btn--primary:hover:not(:disabled) {
  background: var(--st-red-deep);
  border-color: var(--st-red-deep);
}
.btn--primary:active:not(:disabled) {
  background: var(--st-red);
  border-color: var(--st-red);
}
.btn--ghost {
  background: transparent;
  color: var(--st-text);
  border-color: var(--st-outline-line);
}
.btn--ghost:hover:not(:disabled) {
  background: var(--st-wash-dark);
  border-color: var(--st-text-soft);
  color: var(--ink);
}
.btn--ghost:active:not(:disabled) {
  background: var(--st-navy-700);
  color: var(--ink);
}
.btn--block {
  width: 100%;
}

/* ---------- ฟอร์ม ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.field label {
  font-size: var(--text-14);
  font-weight: 500;
  color: var(--st-text);
}
.input {
  min-height: var(--hit-h);
  padding: 0 var(--space-4);
  background: var(--st-navy-800);
  border: 1px solid var(--st-line);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--font-th);
  font-size: var(--text-16);
  transition: border-color var(--dur-micro) var(--ease), background-color var(--dur-micro) var(--ease);
}
.input::placeholder {
  color: var(--muted);
}
.input:hover {
  border-color: var(--st-text-soft);
}
.input:focus {
  outline: none;
  border-color: var(--st-red-bright);
}
.input:disabled {
  background: var(--st-navy-900);
  color: var(--muted);
  border-color: var(--st-line-dark);
  cursor: not-allowed;
}
.input:active:not(:disabled) {
  background: var(--st-navy-700);
}

/* ---------- ข้อความสถานะ ---------- */
.alert {
  display: none;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  font-size: var(--text-14);
  line-height: 1.5;
}
.alert--error {
  background: var(--danger-tint);
  color: var(--danger-ink);
}
.alert.is-visible {
  display: block;
}

/* ---------- top bar (app shell) ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky-nav);
  min-height: var(--topbar-h);
  background: var(--st-navy-950);
  border-bottom: 1px solid var(--st-line-dark);
}
.topbar__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  min-height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0;
  text-decoration: none;
  min-width: 0;
  white-space: nowrap;
}
.brand:hover {
  text-decoration: none;
}
.brand__mark {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-s);
  background: var(--st-navy-800);
  border: 1px solid var(--st-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-num);
  font-size: var(--text-14);
  font-weight: 700;
  color: var(--ink);
}
.brand__mark::before {
  content: "ST";
  color: var(--st-red-bright);
}
.brand__text {
  font-size: var(--text-14);
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar__spacer {
  flex: 1;
}
.userchip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-14);
}
.userchip__name {
  color: var(--ink);
  font-weight: 500;
}
.badge {
  display: inline-block;
  padding: 2px var(--space-2);
  border-radius: 999px;
  border: 1px solid var(--st-line);
  background: var(--st-wash-dark);
  color: var(--muted);
  font-size: var(--text-12);
  line-height: 1.5;
}
.badge--admin {
  border-color: var(--st-red);
  color: var(--st-red-bright);
  background: var(--st-red-tint);
}

/* ---------- layout ---------- */
.page {
  flex: 1;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--space-8) var(--gutter) var(--space-16);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

/* ---------- login ---------- */
.login-body {
  display: flex;
  flex-direction: column;
}
.login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--gutter);
}
.login-card {
  width: 100%;
  max-width: 400px;
  background: var(--st-surface);
  color: var(--st-text);
  border: 1px solid var(--st-line-dark);
  border-radius: var(--radius-l);
  padding: var(--space-10) var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.login-card__head {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.login-card__head h1 {
  font-size: var(--text-24);
}
.login-card__head p {
  color: var(--muted);
  font-size: var(--text-14);
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.login-foot {
  font-size: var(--text-12);
  color: var(--muted);
  text-align: center;
}
.site-foot {
  border-top: 1px solid var(--st-line-dark);
  padding: var(--space-4) var(--gutter);
  text-align: center;
  font-size: var(--text-12);
  color: var(--muted);
}
.site-foot p {
  max-width: 70ch;
  margin: 0 auto;
}

/* ---------- dashboard ---------- */
.hero-strip {
  background: var(--st-navy-800);
  color: var(--st-text);
  border: 1px solid var(--st-line-dark);
  border-radius: var(--radius-l);
  padding: var(--space-8);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-6);
}
.hero-strip__label {
  font-size: var(--text-14);
  color: var(--muted);
}
.hero-strip h2.hero-strip__label {
  font-weight: 500;
  font-size: var(--text-14);
  color: var(--muted);
  line-height: 1.5;
}
.hero-strip__figure {
  font-family: var(--font-num);
  font-weight: 600;
  font-size: var(--text-48);
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.hero-strip__unit {
  font-size: var(--text-18);
  font-weight: 500;
  color: var(--st-text);
  margin-left: var(--space-2);
}
.hero-strip__note {
  font-size: var(--text-14);
  color: var(--muted);
  margin-top: var(--space-2);
}
.hero-strip__right {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: flex-start;
}

.panel {
  background: var(--st-surface);
  color: var(--st-text);
  border: 1px solid var(--st-line-dark);
  border-radius: var(--radius-l);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  min-width: 0;
}
.panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.panel__head h2 {
  font-size: var(--text-20);
}
.panel__count {
  font-family: var(--font-num);
  font-size: var(--text-14);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: var(--space-6);
  align-items: start;
  min-width: 0;
}
@media (max-width: 860px) {
  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- ตาราง/รายการ ---------- */
.table-wrap {
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-14);
}
.table th {
  text-align: left;
  font-weight: 500;
  color: var(--muted);
  font-size: var(--text-12);
  padding: var(--space-2) var(--space-3);
  border-bottom: 1px solid var(--st-line-dark);
  white-space: nowrap;
}
.table td:first-child,
.table th:first-child {
  min-width: 8rem;
}
.table td {
  padding: var(--space-3);
  border-bottom: 1px solid var(--st-line-dark);
  vertical-align: top;
}
.table tr:last-child td {
  border-bottom: none;
}
.table .num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  font-weight: 500;
}
.table .sub {
  color: var(--muted);
  font-size: var(--text-12);
  margin-top: var(--space-1);
}
.table td {
  white-space: nowrap;
}
.table td:first-child {
  white-space: normal;
  overflow-wrap: break-word;
}

.tag {
  display: inline-block;
  padding: 2px var(--space-2);
  border-radius: var(--radius-s);
  font-size: var(--text-12);
  border: 1px solid var(--st-line);
  color: var(--st-text-soft);
  background: var(--st-wash-dark);
}
.tag--pending {
  border-color: var(--st-red);
  color: var(--st-red-bright);
  background: var(--st-red-tint);
}
.tag--high {
  border-color: var(--st-red);
  color: var(--st-red-bright);
  background: var(--st-red-tint);
}

/* ---------- สถานะว่าง/โหลด ---------- */
.empty {
  padding: var(--space-8) var(--space-4);
  text-align: center;
  color: var(--muted);
  font-size: var(--text-14);
  display: none;
}
.empty.is-visible {
  display: block;
}

.skel {
  position: relative;
  overflow: hidden;
  background: var(--st-navy-800);
  border-radius: var(--radius-s);
  min-height: var(--space-4);
}
.skel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 20%, var(--st-wash-dark) 50%, transparent 80%);
  animation: skel-sweep 1.4s linear infinite;
}
@keyframes skel-sweep {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}
.skel-row {
  display: none;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-2) 0;
}
.js .skel-row {
  display: flex;
}

.errline {
  display: none;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  background: var(--danger-tint);
  color: var(--danger-ink);
  font-size: var(--text-14);
}
.errline.is-visible {
  display: block;
}

/* ---------- responsive 360px ---------- */
@media (max-width: 560px) {
  .brand__text {
    display: none;
  }
  .nav {
    margin-left: var(--space-2);
  }
  .nav__link {
    padding: 0 var(--space-2);
    font-size: var(--text-12);
  }
}

@media (max-width: 480px) {
  .userchip__name {
    display: none;
  }
  .topbar__hide-sm {
    display: none;
  }
  #logout-btn {
    padding: 0 var(--space-2);
    font-size: var(--text-12);
  }
  .hero-strip__figure {
    font-size: var(--text-40);
  }
  .topbar__inner {
    padding: 0 var(--space-4);
    gap: var(--space-2);
  }
  .page {
    padding-top: var(--space-6);
    gap: var(--space-6);
  }
  .btn {
    padding: 0 var(--space-3);
  }
  .panel {
    padding: var(--space-4);
  }
  .hero-strip {
    padding: var(--space-5);
  }
  .table th,
  .table td {
    padding: var(--space-2) var(--space-2);
    white-space: normal;
  }
  .table td:first-child,
  .table th:first-child {
    min-width: 0;
  }
  .table th {
    white-space: normal;
  }
  .page {
    min-width: 0;
  }
}

/* =====================================================================
   กระดานติดตามงาน (P2-M4)
   ===================================================================== */

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-left: var(--space-6);
}
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: var(--hit-h);
  padding: 0 var(--space-3);
  border-radius: var(--radius-s);
  color: var(--muted);
  font-size: var(--text-14);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-micro) var(--ease), background-color var(--dur-micro) var(--ease);
}
.nav__link:hover {
  color: var(--ink);
  background: var(--st-wash-dark);
  text-decoration: none;
}
.nav__link[aria-current="page"] {
  color: var(--ink);
  background: var(--st-navy-800);
}

.board-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
}
.board-head h1 {
  font-size: var(--text-24);
}
.board-head__sub {
  color: var(--muted);
  font-size: var(--text-14);
  margin-top: var(--space-1);
}
.board-tools {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.segmented {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--st-line);
  border-radius: var(--radius);
  background: var(--st-navy-900);
}
.segmented button {
  min-height: 40px;
  padding: 0 var(--space-3);
  border: 0;
  border-radius: var(--radius-s);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-th);
  font-size: var(--text-14);
  cursor: pointer;
  transition: background-color var(--dur-micro) var(--ease), color var(--dur-micro) var(--ease);
}
.segmented button:hover {
  color: var(--ink);
}
.segmented button[aria-pressed="true"] {
  background: var(--st-navy-700);
  color: var(--ink);
}
.segmented button:active {
  background: var(--st-navy-800);
}

.board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  align-items: start;
}
@media (max-width: 1100px) {
  .board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .board {
    grid-template-columns: minmax(0, 1fr);
  }
}

.col {
  background: var(--st-navy-900);
  color: var(--st-text);
  border: 1px solid var(--st-line-dark);
  border-radius: var(--radius-l);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
  min-height: 120px;
}
.col.is-target {
  border-color: var(--st-red);
  background: var(--st-navy-800);
  color: var(--st-text);
}
.col__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-2);
}
.col__title {
  font-size: var(--text-14);
  font-weight: 600;
  color: var(--text-line, var(--st-text));
}
.col__count {
  font-family: var(--font-num);
  font-size: var(--text-12);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.col__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-height: 40px;
}
.col__empty {
  padding: var(--space-3) var(--space-2);
  font-size: var(--text-12);
  color: var(--muted);
  text-align: center;
}
.col__add {
  width: 100%;
  min-height: 36px;
  padding: 0 var(--space-3);
  border: 1px dashed var(--st-line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-th);
  font-size: var(--text-14);
  text-align: left;
  cursor: pointer;
  transition: color var(--dur-micro) var(--ease), border-color var(--dur-micro) var(--ease);
}
.col__add:hover {
  color: var(--ink);
  border-color: var(--st-text-soft);
}
.col__add:active {
  background: var(--st-wash-dark);
}

.card {
  background: var(--st-navy-800);
  border: 1px solid var(--st-line-dark);
  border-radius: var(--radius);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  cursor: grab;
  text-align: left;
  width: 100%;
  font-family: var(--font-th);
  color: var(--st-text);
  transition: border-color var(--dur-micro) var(--ease), background-color var(--dur-micro) var(--ease);
}
.card:hover {
  border-color: var(--st-text-soft);
  background: var(--st-navy-700);
}
.card:active {
  cursor: grabbing;
}
.card.is-dragging {
  opacity: 0.55;
}
.card__title {
  font-size: var(--text-14);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.45;
  overflow-wrap: break-word;
}
.card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-12);
  color: var(--muted);
}
.card__due {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
}
.card__due.is-late {
  color: var(--st-red-bright);
}
.card__people {
  display: inline-flex;
  gap: 2px;
}
.avatar {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--st-navy-700);
  border: 1px solid var(--st-line);
  color: var(--text-line, var(--st-text));
  font-family: var(--font-num);
  font-size: var(--text-11);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: lowercase;
}

/* ---------- dialog: รายละเอียดงาน ---------- */
.dialog {
  border: 1px solid var(--st-line);
  border-radius: var(--radius-l);
  background: var(--st-navy-900);
  color: var(--st-text);
  padding: 0;
  width: 100%;
  max-width: 560px;
  max-height: calc(100dvh - 48px);
}
.dialog::backdrop {
  background: var(--st-scrim);
}
.dialog__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  overflow-y: auto;
  max-height: calc(100dvh - 48px);
}
.dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.dialog__head h2 {
  font-size: var(--text-18);
}
.dialog__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-3);
}
@media (max-width: 520px) {
  .dialog__row {
    grid-template-columns: minmax(0, 1fr);
  }
}
.select {
  min-height: var(--hit-h);
  padding: 0 var(--space-3);
  background: var(--st-navy-800);
  border: 1px solid var(--st-line);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--font-th);
  font-size: var(--text-16);
  cursor: pointer;
}
.select:active {
  background: var(--st-navy-700);
}
.textarea {
  min-height: 88px;
  padding: var(--space-3) var(--space-4);
  background: var(--st-navy-800);
  border: 1px solid var(--st-line);
  border-radius: var(--radius);
  color: var(--ink);
  font-family: var(--font-th);
  font-size: var(--text-16);
  line-height: 1.5;
  resize: vertical;
}
.textarea:active {
  background: var(--st-navy-700);
}
.assignees {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.check {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 36px;
  padding: 0 var(--space-3);
  border: 1px solid var(--st-line);
  border-radius: 999px;
  font-size: var(--text-14);
  color: var(--st-text);
  cursor: pointer;
  background: var(--st-navy-800);
  transition: border-color var(--dur-micro) var(--ease), background-color var(--dur-micro) var(--ease);
}
.check:hover {
  border-color: var(--st-text-soft);
}
.check input {
  accent-color: var(--st-red-action);
  width: 16px;
  height: 16px;
}
.check:has(input:checked) {
  border-color: var(--st-red);
  background: var(--st-red-tint);
  color: var(--ink);
}
.check input:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}
.dialog__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.dialog__actions-right {
  display: flex;
  gap: var(--space-2);
  margin-left: auto;
}
.dialog__hint {
  font-size: var(--text-12);
  color: var(--muted);
}
.sr-live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
