:root {
  color-scheme: light;
  --ink: #102a32;
  --ink-soft: #4e666c;
  --muted: #7e9295;
  --line: #dce6e4;
  --paper: #f4f7f5;
  --white: #fff;
  --teal: #147568;
  --teal-deep: #0d5a51;
  --teal-light: #e4f2ed;
  --gold: #efc35a;
  --gold-light: #fff5d9;
  --rose: #b64643;
  --rose-light: #fff0ed;
  --shadow: 0 20px 60px rgb(16 42 50 / 8%);
  font-family: "Noto Sans Thai", "Leelawadee UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; font-family: "Noto Sans Thai", "Leelawadee UI", system-ui, sans-serif; }
button, input, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.public-body {
  min-height: 100vh;
  background: radial-gradient(ellipse at 18% 4%, #e2efeb 0, transparent 32%), var(--paper);
}
.public-shell { width: min(100% - 40px, 760px); margin: 0 auto; padding: 34px 0 28px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark { display: grid; width: 39px; height: 39px; place-items: center; border-radius: 12px 12px 12px 4px; color: #f8f4e7; background: var(--ink); font-size: 17px; font-weight: 700; letter-spacing: -.08em; }
.brand-lockup strong, .brand-lockup small { display: block; }
.brand-lockup strong { font-size: 13px; letter-spacing: .17em; }
.brand-lockup small { margin-top: 3px; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .2em; }
.intro-block { padding: 55px 4px 30px; }
.eyebrow { margin: 0 0 9px; color: var(--teal); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.intro-block h1 { margin: 0; font-size: clamp(32px, 7vw, 48px); line-height: 1.25; letter-spacing: -.055em; }
.intro-block h1 span { color: var(--teal); }
.intro-copy { max-width: 540px; margin: 15px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.8; }
.panel { border: 1px solid rgb(207 222 217 / 75%); border-radius: 18px; background: var(--white); box-shadow: var(--shadow); }
.form-panel { padding: clamp(22px, 5vw, 40px); }
.panel-heading { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 23px; }
.step-index { display: grid; width: 34px; height: 34px; flex: 0 0 auto; place-items: center; border: 1px solid #cbded8; border-radius: 10px; color: var(--teal); background: #f4faf7; font-size: 11px; font-weight: 700; }
.panel-heading h2 { margin: 0; font-size: 18px; letter-spacing: -.03em; }
.panel-heading p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 14px; }
.field { display: grid; gap: 8px; min-width: 0; color: var(--ink-soft); font-size: 12px; font-weight: 600; }
.field span b { color: var(--rose); }
.field-full { grid-column: 1 / -1; }
.field input, .field textarea, .inline-date input { width: 100%; border: 1px solid var(--line); border-radius: 9px; outline: 0; color: var(--ink); background: #fbfdfc; transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.field input, .inline-date input { min-height: 46px; padding: 0 13px; }
.field textarea { min-height: 116px; padding: 12px 13px; resize: vertical; line-height: 1.7; }
.field input::placeholder, .field textarea::placeholder { color: #a2b0b1; font-weight: 400; }
.field input:focus, .field textarea:focus, .inline-date input:focus { border-color: var(--teal); background: var(--white); box-shadow: 0 0 0 3px rgb(20 117 104 / 11%); }
.field-hint { color: var(--muted); font-size: 10px; font-weight: 400; }
.section-divider { height: 1px; margin: 28px 0 26px; background: var(--line); }
.compact-heading { margin-bottom: 16px; }
.calendar-card { padding: 16px; border: 1px solid var(--line); border-radius: 13px; background: #fcfefd; }
.calendar-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.calendar-topline h3 { margin: 0; font-size: 14px; font-weight: 700; }
.calendar-nav { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--ink-soft); background: white; cursor: pointer; font-size: 22px; line-height: 1; }
.calendar-nav:hover:not(:disabled) { border-color: var(--teal); color: var(--teal); }
.calendar-nav:disabled { opacity: .35; cursor: not-allowed; }
.calendar-weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; text-align: center; }
.calendar-weekdays { margin-bottom: 7px; color: #8b9da0; font-size: 10px; font-weight: 700; }
.calendar-day, .calendar-spacer { aspect-ratio: 1; }
.calendar-day { display: grid; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 9px; color: var(--ink); background: transparent; cursor: pointer; font-size: 12px; transition: background .15s ease, border-color .15s ease; }
.calendar-day:hover:not(:disabled) { border-color: #c7e0d7; background: #f2f9f6; }
.calendar-day-selected { border-color: var(--teal) !important; color: white !important; background: var(--teal) !important; font-weight: 700; }
.calendar-day-full { color: #a7b1b2; text-decoration: line-through; background: #f2f4f3; cursor: not-allowed; }
.calendar-day-past { color: #c3cccb; cursor: not-allowed; }
.calendar-legend { display: flex; gap: 18px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #edf1f0; color: var(--muted); font-size: 10px; }
.calendar-legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; }
.open-dot { background: var(--teal); }
.full-dot { background: #c3cecb; }
.link-field { margin-top: 19px; }
.link-field label { color: var(--ink-soft); font-size: 12px; font-weight: 600; }
.link-field label small { color: var(--muted); font-size: 10px; font-weight: 400; }
.turnstile-wrap { margin-top: 18px; }
.privacy-note { display: flex; align-items: flex-start; gap: 10px; margin: 22px 0 18px; padding: 13px; border: 1px solid #d9ebe4; border-radius: 10px; background: #f3faf6; }
.privacy-icon { color: var(--teal); font-size: 18px; line-height: 1; }
.privacy-note p { margin: 0; color: #52726a; font-size: 10px; line-height: 1.7; }
.privacy-note a { color: var(--teal); text-underline-offset: 2px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; padding: 0 16px; border: 1px solid transparent; border-radius: 8px; cursor: pointer; font-size: 12px; font-weight: 700; transition: background .16s ease, transform .16s ease, opacity .16s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: wait; }
.button-primary { color: white; background: var(--teal); }
.button-primary:hover:not(:disabled) { background: var(--teal-deep); }
.button-quiet { border-color: var(--line); color: var(--ink-soft); background: white; }
.submit-button { width: 100%; min-height: 52px; border-radius: 10px; font-size: 13px; }
.submit-button span:last-child { margin-left: auto; font-size: 17px; }
.form-footnote { margin: 10px 0 0; color: var(--muted); text-align: center; font-size: 10px; }
.notice { margin: 14px 0; padding: 12px 14px; border-radius: 9px; font-size: 12px; line-height: 1.6; }
.notice-success { color: #146155; background: var(--teal-light); }
.notice-error { color: #8e302d; background: var(--rose-light); }
.public-footer { display: flex; justify-content: space-between; margin-top: 21px; color: #91a2a3; font-size: 8px; font-weight: 700; letter-spacing: .16em; }

.admin-body { min-height: 100vh; background: #f2f5f3; }
.admin-layout { display: grid; min-height: 100vh; grid-template-columns: 232px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; display: flex; height: 100vh; flex-direction: column; padding: 28px 17px 19px; color: #dbe7e2; background: var(--ink); }
.sidebar-brand { align-self: flex-start; color: white; }
.sidebar-brand .brand-mark { color: var(--ink); background: #e9c968; }
.sidebar-brand small { color: #8fa5a5; }
.side-nav { display: grid; gap: 5px; margin-top: 52px; }
.side-link { display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 0 11px; border-radius: 8px; color: #aebfbc; font-size: 11px; }
.side-link > span { width: 17px; color: #83a6a0; text-align: center; font-size: 14px; }
.side-link:hover, .side-link-active { color: white; background: #1a3a41; }
.side-link-active > span { color: #f0ca61; }
.nav-count { display: grid; min-width: 21px; height: 21px; margin-left: auto; place-items: center; border-radius: 7px; color: #102a32; background: #efc35a; font-size: 9px; }
.sidebar-bottom { display: grid; grid-template-columns: 9px 1fr; align-items: center; gap: 0 9px; margin-top: auto; padding: 14px 10px; border-top: 1px solid #29444a; color: #d9e5e0; font-size: 10px; }
.sidebar-bottom small { grid-column: 2; margin-top: 4px; color: #8da3a1; font-size: 9px; }
.status-pip, .live-dot, .ready-dot { width: 7px; height: 7px; border-radius: 50%; background: #67cda1; box-shadow: 0 0 0 4px rgb(103 205 161 / 12%); }
.admin-main { width: min(100%, 1450px); margin: 0 auto; padding: 34px clamp(24px, 4vw, 58px) 50px; }
.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 28px; }
.topbar .eyebrow { margin-bottom: 6px; font-size: 9px; }
.topbar h1 { margin: 0; font-size: 28px; letter-spacing: -.05em; }
.topbar-actions { display: flex; align-items: center; gap: 11px; }
.today-label { color: var(--ink-soft); font-size: 11px; }
.alert-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.alert-card { position: relative; display: grid; grid-template-columns: 36px minmax(90px, 130px) minmax(0, 1fr); align-items: center; gap: 12px; min-height: 78px; padding: 14px 17px; border: 1px solid #e6dad3; border-radius: 12px; background: #fff9f6; }
.alert-due { border-color: #ebdfbf; background: #fffaf0; }
.alert-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 10px; color: var(--rose); background: #ffe8e2; font-size: 17px; font-weight: 700; }
.alert-due .alert-icon { color: #9b7417; background: #f9edcc; }
.alert-card small, .alert-card strong { display: block; }
.alert-card small { color: #866e67; font-size: 9px; }
.alert-card strong { margin-top: 3px; color: #873a36; font-size: 15px; }
.alert-due strong { color: #785b11; }
.alert-detail { overflow: hidden; color: #9d7e77; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.alert-due .alert-detail { color: #998650; }
.focus-section { margin-top: 34px; }
.section-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-title-row .eyebrow { margin-bottom: 5px; font-size: 9px; }
.section-title-row h2 { display: flex; align-items: center; gap: 9px; margin: 0; font-size: 17px; letter-spacing: -.04em; }
.section-caption { color: var(--muted); font-size: 10px; }
.focus-card { min-height: 174px; padding: 20px 22px; border-radius: 13px; color: white; background: linear-gradient(120deg, #12373c, #1b5751); box-shadow: 0 14px 32px rgb(17 57 57 / 15%); }
.focus-kicker { display: flex; align-items: center; gap: 8px; color: #b6d7cf; font-size: 10px; }
.focus-kicker .ready-dot { background: var(--gold); box-shadow: 0 0 0 4px rgb(239 195 90 / 12%); }
.focus-content { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; }
.focus-content h3 { margin: 0; font-size: 20px; letter-spacing: -.04em; }
.focus-content p { margin: 5px 0 0; color: #b7d0ca; font-size: 10px; }
.focus-actions { display: flex; gap: 8px; }
.focus-actions .button-quiet { border-color: rgb(255 255 255 / 22%); color: white; background: rgb(255 255 255 / 7%); }
.focus-actions .button-primary { color: var(--ink); background: #f0cb67; }
.focus-brief { max-width: 850px; overflow: hidden; margin: 15px 0 0; color: #d1e1dc; font-size: 11px; line-height: 1.7; text-overflow: ellipsis; white-space: nowrap; }
.empty-focus { display: flex; min-height: 130px; align-items: center; gap: 14px; }
.empty-glyph { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 12px; color: #f1d375; background: rgb(255 255 255 / 10%); font-size: 18px; }
.empty-focus strong { font-size: 15px; }
.empty-focus p { margin: 5px 0 0; color: #b7d0ca; font-size: 11px; }
.skeleton-line { width: 48%; height: 10px; border-radius: 10px; background: rgb(255 255 255 / 12%); }
.skeleton-line.short { width: 28%; margin-top: 12px; }
.local-gate { display: grid; min-height: 134px; align-content: center; gap: 14px; }
.local-gate h3 { margin: 9px 0 0; font-size: 17px; }
.local-gate p { max-width: 760px; margin: 6px 0 0; color: #bdd3cd; font-size: 10px; line-height: 1.7; }
.local-gate code { padding: 1px 4px; border-radius: 4px; color: #f2d575; background: rgb(0 0 0 / 16%); }
.local-token-form { display: grid; gap: 6px; color: #d2e3dd; font-size: 9px; }
.local-token-form > div { display: flex; max-width: 570px; gap: 8px; }
.local-token-form input { min-width: 0; flex: 1; padding: 0 11px; border: 1px solid rgb(255 255 255 / 22%); border-radius: 8px; outline: 0; color: white; background: rgb(255 255 255 / 8%); }
.local-token-form input:focus { border-color: #9ed3bf; box-shadow: 0 0 0 3px rgb(158 211 191 / 12%); }
.local-token-form .button-primary { color: var(--ink); background: #efc35a; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(220px, .8fr); align-items: start; gap: 22px; margin-top: 34px; }
.content-main-column, .side-column { min-width: 0; }
.work-section + .work-section { margin-top: 30px; }
.count-pill { display: grid; min-width: 21px; height: 21px; place-items: center; padding: 0 6px; border-radius: 7px; color: #795b12; background: #f9edcc; font-size: 10px; }
.task-list, .queue-list, .mini-list { display: grid; gap: 10px; }
.task-card { padding: 17px 18px; border: 1px solid var(--line); border-radius: 11px; background: white; box-shadow: 0 5px 17px rgb(16 42 50 / 3%); }
.task-card-top, .task-card-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.task-card-top small { color: var(--muted); font-size: 9px; }
.status-badge { padding: 5px 8px; border-radius: 6px; font-size: 9px; font-weight: 700; }
.status-pending { color: #8b6712; background: #fff4d7; }
.task-card-title { margin-top: 11px; align-items: flex-start; }
.task-card-title h3 { margin: 0; font-size: 14px; letter-spacing: -.03em; }
.task-card-title p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.deadline-chip { flex: 0 0 auto; padding: 6px 8px; border: 1px solid #e5eeeb; border-radius: 6px; color: #54736a; background: #f4faf7; font-size: 9px; }
.task-description { display: -webkit-box; overflow: hidden; margin: 13px 0 14px; color: #667d80; font-size: 10px; line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.reference-link { display: inline-flex; margin: -5px 0 12px; color: var(--teal); font-size: 10px; font-weight: 700; }
.reference-link:hover { color: var(--teal-deep); text-decoration: underline; }
.accept-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid #edf1f0; }
.inline-date { display: grid; gap: 5px; color: var(--ink-soft); font-size: 9px; }
.inline-date input { min-height: 36px; padding: 0 9px; font-size: 10px; }
.queue-item { display: flex; min-height: 61px; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.queue-number { color: #a6b8b6; font-size: 10px; font-weight: 700; letter-spacing: .05em; }
.queue-copy { min-width: 0; flex: 1; }
.queue-copy h3 { overflow: hidden; margin: 0; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.queue-copy p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.queue-date { flex: 0 0 auto; color: #70878a; font-size: 9px; }
.icon-action { display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid #dcebe5; border-radius: 7px; color: var(--teal); background: #f3faf7; cursor: pointer; }
.side-panel { padding: 17px 15px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.side-panel .section-title-row h2 { font-size: 15px; }
.drive-connection-status { margin: 8px 0 12px; color: var(--muted); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.drive-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.drive-actions .button { font-size: 11px; }
.mini-task { display: flex; align-items: flex-start; gap: 10px; padding: 11px 0; border-top: 1px solid #eef2f1; }
.review-icon { display: grid; width: 26px; height: 26px; flex: 0 0 auto; place-items: center; border-radius: 8px; color: var(--teal); background: var(--teal-light); font-size: 12px; }
.mini-task strong, .mini-task small { display: block; }
.mini-task strong { font-size: 10px; }
.mini-task small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.mini-empty { padding: 13px 0 2px; border-top: 1px solid #eef2f1; color: var(--muted); font-size: 10px; line-height: 1.6; }
.side-tip { margin-top: 13px; padding: 18px 16px; border: 1px solid #dcece5; border-radius: 11px; background: #eaf4ee; }
.tip-mark { display: block; margin-bottom: 13px; color: var(--teal); font-size: 18px; }
.side-tip .eyebrow { margin-bottom: 7px; font-size: 8px; }
.side-tip p:not(.eyebrow) { margin: 0; color: #436961; font-size: 10px; line-height: 1.75; }
.tip-rule { display: block; width: 27px; height: 2px; margin: 15px 0 9px; background: #96c6b4; }
.side-tip small { color: #78968d; font-size: 8px; }
.empty-state { display: grid; justify-items: center; gap: 6px; padding: 26px 14px; border: 1px dashed #d5e1de; border-radius: 10px; color: var(--ink-soft); text-align: center; background: #fafcfb; }
.empty-state .empty-glyph { width: 30px; height: 30px; color: var(--teal); background: #e7f3ee; font-size: 14px; }
.empty-state strong { font-size: 11px; }
.empty-state p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.compact-empty { padding: 20px 12px; }
.toast { position: fixed; right: 24px; bottom: 22px; z-index: 5; max-width: min(90vw, 420px); padding: 12px 16px; border: 1px solid #d0e5dc; border-radius: 9px; color: #165e51; background: white; box-shadow: 0 12px 32px rgb(16 42 50 / 14%); font-size: 11px; }
.toast-error { border-color: #edceca; color: #8e302d; }

@media (max-width: 900px) {
  .admin-layout { grid-template-columns: 190px minmax(0, 1fr); }
  .admin-main { padding-inline: 25px; }
  .content-grid { grid-template-columns: minmax(0, 1fr); }
  .side-column { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .side-tip { margin-top: 0; }
}

@media (max-width: 620px) {
  .public-shell { width: min(100% - 24px, 500px); padding-top: 20px; }
  .intro-block { padding: 37px 2px 21px; }
  .intro-block h1 { font-size: 34px; }
  .intro-copy { font-size: 12px; }
  .form-panel { padding: 19px 16px; border-radius: 14px; }
  .field-grid { grid-template-columns: 1fr; gap: 14px; }
  .field-full { grid-column: auto; }
  .field input { min-height: 44px; }
  .calendar-card { padding: 12px 10px; }
  .calendar-weekdays, .calendar-days { gap: 3px; }
  .calendar-day { border-radius: 7px; }
  .public-footer { font-size: 7px; letter-spacing: .1em; }
  .admin-layout { display: block; }
  .sidebar { position: sticky; z-index: 4; top: 0; display: flex; height: auto; flex-direction: row; align-items: center; justify-content: space-between; padding: 10px 14px; }
  .sidebar-brand .brand-mark { width: 33px; height: 33px; }
  .side-nav { display: flex; gap: 3px; margin: 0; }
  .side-link { min-height: 36px; gap: 5px; padding: 0 8px; font-size: 9px; }
  .side-link > span { width: auto; font-size: 12px; }
  .nav-count { min-width: 17px; height: 17px; font-size: 8px; }
  .sidebar-bottom { display: none; }
  .admin-main { padding: 23px 14px 38px; }
  .topbar { align-items: flex-start; margin-bottom: 20px; }
  .topbar h1 { font-size: 24px; }
  .today-label { display: none; }
  .button-quiet { min-height: 36px; padding-inline: 10px; }
  .alert-grid { gap: 8px; }
  .alert-card { grid-template-columns: 28px minmax(0, 1fr); gap: 9px; min-height: 70px; padding: 10px; }
  .alert-icon { width: 28px; height: 28px; }
  .alert-card small { font-size: 8px; }
  .alert-card strong { font-size: 12px; }
  .alert-detail { display: none; }
  .focus-section { margin-top: 25px; }
  .focus-card { min-height: 158px; padding: 16px; }
  .focus-content { align-items: flex-start; flex-direction: column; }
  .focus-content h3 { font-size: 17px; }
  .focus-brief { white-space: normal; }
  .local-token-form > div { align-items: stretch; flex-direction: column; }
  .local-token-form input { min-height: 40px; }
  .section-caption { font-size: 8px; }
  .content-grid { gap: 20px; margin-top: 27px; }
  .side-column { grid-template-columns: 1fr; }
  .accept-row { align-items: stretch; flex-direction: column; }
  .inline-date input { width: 100%; }
  .task-card-title { align-items: flex-start; flex-direction: column; gap: 8px; }
  .queue-date { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

.reference-links { display: grid; gap: 5px; margin: 12px 0; padding-left: 18px; }
.attachment-grid { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.attachment-grid figure { width: 112px; margin: 0; }
.attachment-grid img { display: block; width: 112px; height: 84px; border: 1px solid var(--line); border-radius: 8px; background: #f1f4f2; object-fit: cover; }
.attachment-grid figcaption { margin-top: 4px; overflow-wrap: anywhere; color: var(--muted); font-size: 10px; }
.queue-actions, .review-actions { display: flex; align-items: center; gap: 5px; }
.queue-item[draggable="true"] { cursor: grab; }
.queue-item.dragging { opacity: .45; }
.review-card { display: flex; align-items: flex-start; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.review-copy { min-width: 0; flex: 1; }
.revision-entry { display: block; margin-top: 6px; white-space: normal; }
.revision-input { display: grid; gap: 5px; margin: 12px 0 8px; font-size: 11px; }
.revision-input textarea { width: 100%; min-height: 58px; resize: vertical; padding: 9px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.archive-card > div:first-child { display: flex; justify-content: space-between; gap: 10px; }
.archive-card > div:first-child small { color: var(--muted); }
.blocked-date-form { display: grid; gap: 7px; margin-bottom: 14px; font-size: 12px; }
.blocked-date-form input { min-height: 38px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.blocked-date-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 0; border-top: 1px solid var(--line); }
.blocked-date-row > div { display: grid; gap: 2px; }
.blocked-date-row small { color: var(--muted); }
.review-actions .button, .archive-card .button { min-height: 34px; padding: 6px 10px; font-size: 11px; }

.selected-images { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.selected-images li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 6px 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink); overflow-wrap: anywhere; }
.selected-image-remove { flex: none; width: 36px; height: 36px; border: 0; border-radius: 6px; background: var(--paper); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.selected-image-remove:hover, .selected-image-remove:focus-visible { background: var(--line); }
/* ซ่อนข้อความ "No file chosen" เพราะรายการรูปที่เลือกแสดงด้านล่างแทน */
#reference-images { color: transparent; }
#reference-images::file-selector-button { color: var(--ink); }
