:root {
  --bg: #f4f1ea;
  --card: #e8e1d4;
  --text: #1f1a16;
  --muted: #6f655c;
  --border: rgba(40, 30, 20, 0.14);
  --primary: #2b6cb0;
  --danger: #c53030;
  --fs-body: clamp(13px, 3.4vw, 16px);
  --fs-h1: clamp(18px, 5.2vw, 26px);
  --fs-h2: clamp(15px, 4vw, 18px);
  --fs-small: clamp(11px, 3vw, 13px);
  --fs-btn: clamp(12px, 3.2vw, 14px);
  /* 게시판: 화면 비율(vmin) + 너비(vw)에 맞춘 유동 크기 */
  --fs-board: clamp(12px, 2.55vmin + 0.55vw, 16.5px);
  --fs-board-meta: clamp(10px, 2.15vmin + 0.4vw, 13px);
  --fs-board-head: clamp(14px, 3.1vmin + 0.65vw, 20px);
  --fs-board-ui: clamp(11.5px, 2.45vmin + 0.5vw, 15px);
  --space-x: clamp(10px, 3.5vw, 16px);
  --space-y: clamp(10px, 3vw, 14px);
  --container-pad: clamp(10px, 4vw, 16px);
  --radius: clamp(10px, 2.5vw, 16px);
  --btn-pad-y: clamp(8px, 2.2vw, 10px);
  --btn-pad-x: clamp(10px, 2.8vw, 12px);
  --control-pad: clamp(10px, 2.8vw, 12px);
  --gap: clamp(8px, 2.5vw, 12px);
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--text);
  background-color: #f4f1ea;
  background-image: none;
}

body.page--admin {
  background-color: #f4f1ea;
  background-image: none;
}

.container {
  width: min(980px, calc(100% - (var(--container-pad) * 2)));
  margin: 0 auto;
  max-width: 100%;
}

img, video, canvas {
  max-width: 100%;
  height: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 241, 234, 0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap);
  padding: clamp(10px, 2.5vw, 14px) 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .2px;
}
.brand__logo {
  display: block;
  width: auto;
  height: clamp(42px, 10vw, 58px);
  flex-shrink: 0;
  object-fit: contain;
  filter: invert(1);
}
.brand__text {
  font-size: clamp(12px, 3.2vw, 15px);
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: clamp(6px, 2vw, 10px);
  align-items: center;
  min-width: 0;
}

.nav__user {
  color: var(--text);
  font-size: var(--fs-small);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(52vw, 260px);
}
.nav form { margin: 0; flex-shrink: 0; }
.nav__password,
.nav__logout { padding: 8px 10px; font-size: var(--fs-small); }
.nav__password { flex-shrink: 0; }

.admin-storage {
  width: min(320px, 100%);
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(40, 30, 20, 0.12);
  background: rgba(255, 255, 255, 0.55);
  display: grid;
  gap: 4px;
}
.admin-storage__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.admin-storage__name {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.admin-storage__size {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.admin-storage__track {
  height: 8px;
  border-radius: 999px;
  background: rgba(40, 30, 20, 0.1);
  overflow: hidden;
}
.admin-storage__fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3b82f6, #2563eb);
  transition: width 0.25s ease;
}
.admin-storage--warn .admin-storage__fill {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}
.admin-storage--danger .admin-storage__fill {
  background: linear-gradient(90deg, #ef4444, #dc2626);
}
.admin-storage__free {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav__link {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
}
.nav__link:hover { background: rgba(255,255,255,0.06); color: var(--text); }

.nav__btn {
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid rgba(110,168,254,0.35);
  background: rgba(110,168,254,0.15);
  color: var(--text);
}
.nav__btn:hover { background: rgba(110,168,254,0.22); }

.footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  background: rgba(244, 241, 234, 0.94);
  backdrop-filter: blur(8px);
}
.footer--empty .footer__inner {
  min-height: 18px;
  padding: 18px 0;
}
.footer__inner {
  padding: 18px 0;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}
.footer__logo {
  display: block;
  height: 24px;
  width: auto;
  opacity: 0.95;
}

.page-head {
  margin: clamp(14px, 4vw, 22px) 0 clamp(10px, 3vw, 14px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--gap);
  flex-wrap: wrap;
}
.page-head__title,
.page-head > div:first-child {
  min-width: 0;
  flex: 1 1 auto;
}
.page-head--board {
  margin-bottom: 8px;
  align-items: center;
  gap: 8px;
}
.page-head--board .muted {
  margin-top: 4px;
}
.page-head--board .head-actions {
  flex: 0 0 auto;
  margin: 0;
}
.page-head--board .btn--new-post {
  min-width: 7.5em;
  padding-left: clamp(18px, 4vw, 28px);
  padding-right: clamp(18px, 4vw, 28px);
}

/* 메인 게시판 폰트: 화면 비율에 따라 유동 조절 */
.page-head--board,
.page-head--board .h1,
.page-head--board .muted,
.page-head--board .btn,
.board-toolbar,
.board-toolbar .input,
.board-toolbar .btn,
.card--table,
.card--table .table,
.card--table .table th,
.card--table .table td,
.card--table .table .link,
.card--table .col-category,
.card--table .col-title,
.card--table .col-author,
.card--table .col-date,
.card--table .col-date__time,
.card--table .empty,
.pager,
.pager__btn,
.pager__page,
.pager__dots {
  font-family: inherit;
}

.page-head--board .h1 {
  font-size: var(--fs-board-head);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.45;
}

.page-head--board .muted,
.page-head--board .btn,
.board-toolbar .input,
.board-toolbar .btn,
.card--table .table th,
.card--table .table td,
.card--table .table .link,
.card--table .col-category,
.card--table .col-title,
.card--table .empty,
.pager__btn,
.pager__page,
.pager__dots {
  font-size: var(--fs-board);
  line-height: 1.45;
}

.page-head--board .btn,
.board-toolbar .btn,
.board-toolbar .input,
.pager__btn,
.pager__page {
  font-size: var(--fs-board-ui);
}

.card--table .col-author,
.card--table .col-date,
.card--table .col-date__time {
  font-size: var(--fs-board-meta);
  line-height: 1.4;
}

.page-head--board .muted,
.card--table .col-category,
.card--table .col-author,
.card--table .col-date,
.card--table .col-date__time,
.card--table .empty,
.pager__dots {
  color: var(--text);
  opacity: 0.78;
}

.card--table .table th {
  font-weight: 700;
  color: var(--text);
  opacity: 1;
}

.card--table .table td,
.card--table .table .link,
.page-head--board .btn,
.board-toolbar .btn,
.pager__btn,
.pager__page {
  font-weight: 500;
}

.card--table .table .link {
  color: #3d5a80;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.card--table .table .link:hover {
  color: #1f3a5f;
  text-decoration-thickness: 2px;
}

.col-title .link,
.card--table .table .col-title .link {
  display: grid;
  gap: 2px;
  min-width: 0;
  color: #3d5a80;
  text-decoration: none;
  cursor: pointer;
}

.col-title .link:hover,
.card--table .table .col-title .link:hover {
  color: #1f3a5f;
  text-decoration: none;
}

.issue-flag--danger {
  color: var(--danger);
  font-weight: 700;
}

.col-title__text {
  display: block;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-transform: uppercase;
}

.col-title__note {
  display: block;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #9b2c2c;
  font-size: var(--fs-board-meta);
  line-height: 1.35;
  text-decoration: none;
}

.col-title .link:hover .col-title__note {
  text-decoration: none;
}
.head-actions {
  display: flex;
  gap: var(--gap);
  align-items: center;
  flex-wrap: wrap;
}

.work-order-sheet {
  margin: 0 0 22px;
  min-width: 0;
  max-width: 100%;
}
.work-order-date,
.muted .work-order-date {
  color: #c62828;
  font-weight: 700;
}
.work-order-sheet__title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
}
.work-order-sheet .card--table,
.work-order-sheet .table-scroll {
  max-width: 100%;
  min-width: 0;
}
.work-order-sheet .table-scroll {
  overflow-x: auto;
}
.work-order-table {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  table-layout: auto;
}
.work-order-table th,
.work-order-table td {
  width: auto;
  max-width: 18rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  vertical-align: middle;
}
.work-order-table th:nth-child(1),
.work-order-table td:nth-child(1),
.work-order-table th:nth-child(2),
.work-order-table td:nth-child(2),
.work-order-table th:nth-child(3),
.work-order-table td:nth-child(3),
.work-order-table th:nth-child(4),
.work-order-table td:nth-child(4),
.work-order-table th:nth-child(5),
.work-order-table td:nth-child(5) {
  max-width: none;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}
.work-order-table th:nth-child(6),
.work-order-table td:nth-child(6) {
  max-width: min(28rem, 42vw);
  white-space: pre-wrap;
}

.search {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}
.search__input {
  width: min(360px, 100%);
  min-width: 0;
  flex: 1 1 160px;
}
.search--table {
  margin-top: 0;
  justify-content: flex-end;
  flex: 1 1 220px;
}
.search--table .search__input {
  width: auto;
  min-width: 0;
  flex: 1 1 140px;
}
.board-toolbar {
  margin: 0 0 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.h1 {
  margin: 0;
  font-size: var(--fs-h1);
  line-height: 1.3;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.h2 { margin: 0; font-size: var(--fs-h2); line-height: 1.3; word-break: break-word; }
.muted { margin: 8px 0 0; color: var(--muted); font-size: var(--fs-small); }

.card {
  background: rgba(232, 225, 212, 0.94);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-x);
  box-shadow: 0 10px 28px rgba(60, 45, 30, 0.10);
  max-width: 100%;
}
.card--table { padding: 0; overflow: hidden; }
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table {
  width: 100%;
  min-width: min(480px, 100%);
  border-collapse: collapse;
  table-layout: fixed;
}
.table th, .table td {
  padding: clamp(10px, 2.4vw, 12px) clamp(8px, 2vw, 10px);
  border-bottom: 1px solid rgba(40, 30, 20, 0.10);
  vertical-align: top;
}
.table th { text-align: left; font-size: var(--fs-small); color: var(--muted); font-weight: 600; }
.table tr:hover td { background: rgba(40, 30, 20, 0.04); }
.col-id {
  width: clamp(44px, 12vw, 56px);
  color: var(--muted);
  white-space: nowrap;
}
.col-category {
  width: clamp(108px, 22vw, 140px);
  color: var(--muted);
  font-size: var(--fs-small);
  white-space: nowrap;
  word-break: keep-all;
}
.col-title {
  width: auto;
  max-width: 0; /* table-layout:fixed에서 남은 폭을 쓰되 넘치면 말줄임 */
  white-space: normal;
  overflow: hidden;
  word-break: keep-all;
  overflow-wrap: normal;
  vertical-align: top;
}

.card--table .col-category {
  padding-right: clamp(16px, 3.5vw, 28px);
}

.card--table .col-title {
  padding-left: clamp(8px, 2vw, 14px);
}
.col-author {
  width: clamp(72px, 14vw, 108px);
  color: var(--muted);
  font-size: var(--fs-small);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: keep-all;
}
.col-date {
  width: clamp(88px, 18vw, 132px);
  color: var(--muted);
  font-size: var(--fs-small);
  white-space: nowrap;
}
.col-date__time {
  display: block;
  margin-top: 2px;
  opacity: 0.85;
}
.empty { color: var(--muted); padding: 18px 10px; text-align: center; }
.link { color: var(--text); text-decoration: none; }
.link:hover { text-decoration: underline; }

.pager {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pager__pages { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pager__btn, .pager__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  min-width: 40px;
}
.pager__btn:hover, .pager__page:hover { background: rgba(255,255,255,0.10); }
.pager__page.is-active {
  border-color: rgba(110,168,254,0.40);
  background: rgba(110,168,254,0.18);
}
.pager__btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}
.pager__dots { color: var(--muted); padding: 0 2px; }

.form { display: grid; gap: var(--space-y); max-width: 100%; }
.label { display: grid; gap: clamp(6px, 2vw, 8px); min-width: 0; }
.label[hidden],
#issuesSection[hidden] {
  display: none !important;
}
.label__text { font-size: var(--fs-small); color: var(--muted); }
.input, textarea {
  width: 100%;
  max-width: 100%;
  padding: var(--control-pad);
  border-radius: clamp(10px, 2.5vw, 12px);
  border: 1px solid rgba(40, 30, 20, 0.14);
  background: rgba(244, 241, 234, 0.92);
  color: var(--text);
  outline: none;
  font-size: var(--fs-body);
}
input.input[name="title"] {
  text-transform: uppercase;
}
.input:focus, textarea:focus { border-color: rgba(110,168,254,0.55); box-shadow: 0 0 0 3px rgba(110,168,254,0.18); }
.post-title {
  text-transform: uppercase;
}
.field-text {
  color: var(--text);
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1.5;
  padding: 2px 0;
}
.input--sm { padding: 9px 10px; border-radius: 10px; font-size: 14px; }
.textarea {
  resize: vertical;
  min-height: 220px;
  font: inherit;
  line-height: 1.6;
}

.notice {
  margin: 12px 0;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.06);
}
.notice--ok {
  border-color: rgba(110,168,254,0.35);
  background: rgba(110,168,254,0.12);
}
.notice--err {
  border-color: rgba(255,92,122,0.35);
  background: rgba(255,92,122,0.10);
}

.actions {
  display: flex;
  gap: var(--gap);
  justify-content: flex-end;
  flex-wrap: wrap;
  width: 100%;
}
.actions--center { justify-content: center; }

.btn {
  appearance: none;
  border: 1px solid rgba(40, 30, 20, 0.14);
  background: rgba(244, 241, 234, 0.88);
  color: var(--text);
  padding: var(--btn-pad-y) var(--btn-pad-x);
  border-radius: clamp(10px, 2.5vw, 12px);
  cursor: pointer;
  text-decoration: none;
  font-size: var(--fs-btn);
  white-space: nowrap;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn:hover { background: rgba(255,255,255,0.95); }
.btn.primary {
  border-color: rgba(43, 108, 176, 0.45);
  background: rgba(43, 108, 176, 0.14);
}
.btn.primary:hover { background: rgba(43, 108, 176, 0.22); }
.btn.btn--ocr {
  border-color: rgba(46, 125, 90, 0.45);
  background: rgba(46, 125, 90, 0.16);
  color: #1f4d38;
  font-weight: 600;
}
.btn.btn--ocr:hover {
  background: rgba(46, 125, 90, 0.26);
}
.btn.btn--ocr:disabled {
  opacity: 0.65;
  cursor: wait;
}
.btn.danger {
  border-color: rgba(255,92,122,0.45);
  background: rgba(255,92,122,0.14);
}
.btn.danger:hover { background: rgba(255,92,122,0.22); }

.btn--wide {
  min-width: min(220px, 100%);
  padding-left: 36px;
  padding-right: 36px;
}

.article { padding: 0; overflow: hidden; }
.article__content {
  padding: 18px;
  line-height: 1.7;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}
.article__content img { max-width: 100%; height: auto; }
.details { margin-top: 12px; }
.pre {
  white-space: pre-wrap;
  word-break: break-word;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
}

.comments { margin-top: 14px; display: grid; gap: 14px; }
.card.comments.comments--admin {
  background: linear-gradient(135deg, rgba(255, 92, 122, 0.16), rgba(232, 225, 212, 0.95));
  border-color: rgba(255, 92, 122, 0.38);
  box-shadow: 0 12px 36px rgba(60, 45, 30, 0.12), 0 0 0 1px rgba(255, 92, 122, 0.12) inset;
}
.attachments { margin-top: 14px; display: grid; gap: 12px; }

.special-note {
  background: #f3dede;
  border-color: rgba(197, 48, 48, 0.18);
}
.attachList { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.attachItem {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: space-between;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  padding: 10px 12px;
}
.attachItem form { margin: 0; }
.comments__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.comments__form { display: grid; gap: 10px; }
.comments__formActions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.comments__list { display: grid; gap: 10px; }
.comment {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255, 255, 255, 0.40);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  gap: 8px;
}
.comment__meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.comment__author { font-weight: 700; }
.comment__date { color: var(--muted); font-size: 13px; }
.comment__body { white-space: pre-wrap; line-height: 1.6; }
.comment__actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

.input--file-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.camera-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
  align-items: center;
}

.camera-actions .btn,
.camera-actions label.btn {
  flex: 1 1 auto;
  min-width: min(140px, 100%);
}

.check-option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  color: var(--text);
  font-size: var(--fs-body);
  cursor: pointer;
  user-select: none;
  width: fit-content;
}

.check-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.multi-select {
  border: 1px solid rgba(255,255,255,0.10);
  margin: 0;
  padding: var(--space-x);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
  min-inline-size: 0;
  max-width: 100%;
}

.multi-select--bare {
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
}

.multi-select > .label__text,
.multi-select > legend.label__text {
  float: none;
  width: auto;
  padding: 0;
  margin: 0 0 10px;
  display: block;
}

.multi-select__list {
  display: grid;
  gap: 8px;
}

.multi-select__list--inline {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.multi-select__list--product {
  gap: 8px;
}

@media (max-width: 480px) {
  .multi-select__list--inline:not(.multi-select__list--product) {
    grid-template-columns: 1fr;
  }
}

.multi-select__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  cursor: pointer;
  min-width: 0;
}

.multi-select__option span {
  min-width: 0;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.multi-select__option:has(input:checked) {
  border-color: rgba(110,168,254,0.45);
  background: rgba(110,168,254,0.14);
}

.multi-select__option input[type="checkbox"],
.multi-select__option input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.multi-select__option--other {
  display: flex;
  align-items: stretch;
  padding: 0;
  cursor: default;
  overflow: hidden;
  border: 1px solid rgba(40, 30, 20, 0.22);
  background: rgba(244, 241, 234, 0.72);
}

.multi-select__option--other:has(.multi-select__other-input:focus) {
  border-color: rgba(110, 168, 254, 0.55);
  background: rgba(244, 241, 234, 0.92);
  box-shadow: 0 0 0 3px rgba(110, 168, 254, 0.18);
}

.multi-select__other-input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 11px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  font-size: var(--fs-body);
  line-height: 1.45;
}

.multi-select__other-input:focus {
  border: 0;
  box-shadow: none;
}

.issue-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.issue-list__item {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(110,168,254,0.35);
  background: rgba(110,168,254,0.14);
  font-size: var(--fs-small);
}

.photo-preview-wrap {
  margin-top: 4px;
}

.photo-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr));
  gap: var(--gap);
  column-gap: calc(var(--gap) + 18px);
  margin-top: 4px;
  min-height: clamp(96px, 28vw, 120px);
  padding: var(--space-x);
  padding-right: calc(var(--space-x) + 18px);
  border: 1px dashed rgba(255,255,255,0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.35);
}

.photo-preview__empty {
  grid-column: 1 / -1;
  margin: 0;
  text-align: center;
  padding: 28px 10px;
}

.photo-preview__item {
  position: relative;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255, 255, 255, 0.45);
  border-radius: 14px;
  overflow: visible;
  display: grid;
  gap: 0;
}

.photo-preview__media {
  position: relative;
  display: block;
  overflow: visible;
  border-radius: 14px 14px 0 0;
}

.photo-preview__img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: rgba(0,0,0,0.25);
  border-radius: 14px 14px 0 0;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(160px, 100%), 1fr));
  gap: var(--gap);
}

.photo-gallery__item {
  margin: 0;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  overflow: hidden;
  display: grid;
}

.photo-gallery__link {
  display: block;
  background: rgba(0,0,0,0.25);
  cursor: zoom-in;
}

.photo-gallery__img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo-gallery__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  flex-wrap: wrap;
}

.photo-preview__file {
  min-height: 96px;
  display: grid;
  place-items: center;
  padding: 10px;
  color: var(--muted);
  font-size: var(--fs-small);
  word-break: break-all;
  text-align: center;
}

.photo-preview__meta {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.photo-preview__name {
  font-size: var(--fs-small);
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn.photo-preview__remove {
  position: absolute;
  top: 8px;
  right: 0;
  z-index: 3;
  transform: translateX(50%);
  width: 28px;
  min-width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border: 1px solid rgba(196, 59, 78, 0.45);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  background: #fff;
  color: #c43b4e;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.btn.photo-preview__remove:hover {
  background: #ffe4e8;
  color: #a81e33;
}

.photo-preview__trash-icon {
  width: 15px;
  height: 15px;
  display: block;
  pointer-events: none;
}

.photo-preview__ocr {
  margin-top: 0;
  width: 100%;
  font-size: var(--fs-small);
}

.photo-ocr-actions {
  margin-top: 10px;
  display: flex;
  justify-content: stretch;
}

.photo-ocr-actions .btn {
  width: 100%;
}

#ocrStatus {
  margin-top: 8px;
}

.camera-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: var(--container-pad);
  background: rgba(0, 0, 0, 0.72);
}

.camera-modal[hidden] {
  display: none !important;
}

.camera-modal__panel {
  width: min(720px, 100%);
  max-height: calc(100vh - (var(--container-pad) * 2));
  overflow: auto;
  background: rgba(232, 225, 212, 0.98);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-x);
  display: grid;
  gap: var(--gap);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
}

.camera-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.camera-modal__video {
  width: 100%;
  max-height: min(60vh, 480px);
  border-radius: 12px;
  background: #000;
  object-fit: cover;
}

.camera-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
  justify-content: flex-end;
}

.camera-modal__actions .btn {
  flex: 1 1 auto;
  min-width: min(120px, 100%);
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(20, 14, 10, 0.45);
}

.admin-modal[hidden] {
  display: none;
}

.board-notice-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(15, 15, 20, 0.45);
}
.board-notice-modal[hidden] {
  display: none;
}
.board-notice-modal__panel {
  width: min(360px, 100%);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(20, 20, 30, 0.28);
  padding: 22px 22px 20px;
  display: grid;
  gap: 16px;
}
.board-notice-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.board-notice-modal__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: #333;
  letter-spacing: -0.02em;
}
.board-notice-modal__close {
  appearance: none;
  border: 0;
  background: transparent;
  color: #555;
  font-size: 22px;
  line-height: 1;
  width: 28px;
  height: 28px;
  margin: -4px -6px 0 0;
  padding: 0;
  cursor: pointer;
  border-radius: 6px;
  flex-shrink: 0;
}
.board-notice-modal__close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #222;
}
.board-notice-modal__body {
  margin: 0;
  text-align: left;
  line-height: 1.65;
  font-size: 15px;
  font-weight: 600;
  color: #333;
}
.board-notice-modal__body strong {
  color: #c62828;
  font-weight: 800;
}
.board-notice-modal__check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  user-select: none;
}
.board-notice-modal__check input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #806cfb;
  cursor: pointer;
}
.board-notice-modal__btn {
  appearance: none;
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: 8px;
  background: #806cfb;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(128, 108, 251, 0.28);
}
.board-notice-modal__btn:hover {
  background: #6f5ce8;
}
.board-notice-modal__btn:active {
  background: #5f4dd6;
  transform: translateY(1px);
}
.board-notice-modal__btn:focus-visible {
  outline: 2px solid #806cfb;
  outline-offset: 2px;
}

.admin-modal__panel {
  width: min(420px, 100%);
  background: rgba(244, 241, 234, 0.98);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 18px 40px rgba(40, 30, 20, 0.22);
  display: grid;
  gap: 12px;
}

.admin-modal__panel--wide {
  width: min(640px, 100%);
}

.admin-work-order-list-wrap {
  display: grid;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

.admin-work-order-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.admin-work-order-tab.is-active {
  border-color: rgba(43, 108, 176, 0.45);
  background: rgba(43, 108, 176, 0.14);
  font-weight: 700;
}

.admin-work-order-list-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.admin-work-order-list-head .h3 {
  margin: 0;
  font-size: clamp(15px, 3.2vw, 17px);
}

.admin-work-order-list {
  display: grid;
  gap: 8px;
  max-height: min(40vh, 280px);
  overflow: auto;
}

.admin-work-order-list--history {
  max-height: min(55vh, 420px);
}

.admin-work-order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(60, 45, 30, 0.14);
  border-radius: 12px;
  background: rgba(255, 252, 246, 0.9);
}

.admin-work-order-item__meta {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 2px;
}

.admin-work-order-item__name {
  font-weight: 600;
  word-break: break-word;
}

.admin-work-order-item__actions {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
}

.admin-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-modal__form {
  display: grid;
  gap: 10px;
}

.admin-modal__form .actions {
  margin-top: 4px;
}

.admin-origin-qty__log {
  display: grid;
  gap: 10px;
  min-height: 180px;
  max-height: min(42vh, 360px);
  overflow: auto;
  padding: 12px;
  border: 1px solid rgba(40, 30, 20, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.admin-origin-qty__empty {
  margin: 0;
  text-align: center;
  padding: 28px 8px;
}

.admin-origin-qty__msg {
  display: grid;
  gap: 4px;
}

.admin-origin-qty__role {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.admin-origin-qty__text {
  white-space: pre-wrap;
  word-break: break-word;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(40, 30, 20, 0.08);
}

.admin-origin-qty__msg--user .admin-origin-qty__text {
  background: rgba(43, 108, 176, 0.10);
}

.admin-origin-qty__msg--model .admin-origin-qty__text {
  background: rgba(255, 255, 255, 0.96);
}

.admin-origin-qty__form {
  display: grid;
  gap: 10px;
}

.admin-origin-qty__input {
  resize: vertical;
  min-height: 72px;
}

.admin-sku-master__textarea {
  min-height: 320px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre;
  overflow-wrap: normal;
}
.admin-sku-master__meta {
  margin: 0;
}

.admin-edit-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 12px;
  background: rgba(20, 14, 10, 0.5);
}

.admin-edit-modal[hidden] {
  display: none;
}

.admin-edit-modal__panel {
  width: min(920px, 100%);
  height: min(92vh, 900px);
  background: rgba(244, 241, 234, 0.98);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(40, 30, 20, 0.24);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.admin-edit-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 252, 246, 0.95);
}

.admin-edit-modal__frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.origin-sku-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 12px;
  background: rgba(20, 14, 10, 0.5);
}

.origin-sku-modal[hidden] {
  display: none;
}

.origin-sku-modal__panel {
  width: min(1100px, 100%);
  height: min(92vh, 920px);
  background: rgba(244, 241, 234, 0.98);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(40, 30, 20, 0.24);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.origin-sku-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 252, 246, 0.95);
}

.origin-sku-modal__head .h2 {
  margin: 0;
}

.origin-sku-modal__frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.origin-sku-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 12px;
  background: rgba(20, 14, 10, 0.5);
}

.origin-sku-modal[hidden] {
  display: none;
}

.origin-sku-modal__panel {
  width: min(1100px, 100%);
  height: min(92vh, 920px);
  background: rgba(244, 241, 234, 0.98);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(40, 30, 20, 0.24);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.origin-sku-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 252, 246, 0.95);
}

.origin-sku-modal__head .h2 {
  margin: 0;
}

.origin-sku-modal__frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.page--embed .topbar,
.page--embed .footer {
  display: none;
}

.page--embed main.container {
  padding-top: 12px;
  padding-bottom: 24px;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: var(--container-pad);
  background: rgba(7, 12, 22, 0.72);
  backdrop-filter: blur(6px);
}

.loading-overlay[hidden] {
  display: none !important;
}

.loading-overlay__panel {
  width: min(320px, 100%);
  text-align: center;
  background: rgba(232, 225, 212, 0.98);
  border: 1px solid rgba(110, 168, 254, 0.35);
  border-radius: var(--radius);
  padding: clamp(22px, 5vw, 28px) clamp(18px, 4vw, 24px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

.loading-overlay__spinner {
  width: 42px;
  height: 42px;
  margin: 0 auto 14px;
  border-radius: 50%;
  border: 3px solid rgba(110, 168, 254, 0.22);
  border-top-color: #6ea8fe;
  animation: loading-spin 0.8s linear infinite;
}

.loading-overlay__text {
  margin: 0;
  font-size: clamp(15px, 3.6vw, 17px);
  font-weight: 700;
}

.loading-overlay__sub {
  margin: 8px 0 0;
  font-size: var(--fs-small);
}

body.is-loading {
  overflow: hidden;
}

@keyframes loading-spin {
  to { transform: rotate(360deg); }
}

.admin-date-panel {
  margin-bottom: 16px;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  max-width: 100%;
}

.admin-date-filter {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 280px;
  min-width: 0;
}

.admin-date-filter__range {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
}

.admin-date-filter__input {
  width: 100%;
  min-width: 0;
  color: var(--text);
  color-scheme: light;
  text-align: center;
}

.admin-action-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 0 1 220px;
  min-width: min(200px, 100%);
  justify-content: stretch;
}

.admin-date-filter-submit-form,
.admin-cleanup-form {
  margin: 0;
  flex: 1 1 auto;
  display: flex;
}

.admin-date-filter-submit-form .admin-date-filter__submit,
.admin-cleanup-form .admin-cleanup-form__btn {
  flex: 1 1 auto;
}

.admin-date-filter__sep {
  color: var(--muted);
  font-weight: 700;
}

.admin-date-filter__presets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.admin-date-filter__categories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.admin-date-filter__category {
  width: 100%;
  justify-content: center;
  background: rgba(60, 45, 30, 0.05);
  border-color: rgba(60, 45, 30, 0.14);
  color: var(--muted);
  font-weight: 500;
  opacity: 0.9;
}

.admin-date-filter__category:hover {
  background: rgba(60, 45, 30, 0.08);
  border-color: rgba(60, 45, 30, 0.22);
  color: var(--text);
  opacity: 1;
}

.admin-date-filter__category.is-active {
  background: rgba(120, 90, 55, 0.22);
  border-color: rgba(120, 90, 55, 0.55);
  color: var(--text);
  font-weight: 700;
  opacity: 1;
  box-shadow: inset 0 0 0 1px rgba(120, 90, 55, 0.18);
}

.admin-date-filter__preset {
  width: 100%;
  justify-content: center;
  background: rgba(60, 45, 30, 0.05);
  border-color: rgba(60, 45, 30, 0.14);
  color: var(--muted);
  font-weight: 500;
  opacity: 0.9;
}

.admin-date-filter__preset:hover {
  background: rgba(60, 45, 30, 0.08);
  border-color: rgba(60, 45, 30, 0.22);
  color: var(--text);
  opacity: 1;
}

.admin-date-filter__preset.is-active {
  background: rgba(120, 90, 55, 0.22);
  border-color: rgba(120, 90, 55, 0.55);
  color: var(--text);
  font-weight: 700;
  opacity: 1;
  box-shadow: inset 0 0 0 1px rgba(120, 90, 55, 0.18);
}

.admin-date-filter__submit {
  width: 100%;
  white-space: nowrap;
  justify-content: center;
  background: #6b4f35;
  border-color: rgba(107, 79, 53, 0.75);
  color: #fff;
  font-weight: 700;
  padding: 10px 14px;
}

.admin-date-filter__submit:hover {
  background: #7d5d3f;
}

.admin-cleanup-form__btn {
  width: 100%;
  justify-content: center;
  padding: 10px 14px;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .admin-date-filter,
  .admin-action-stack {
    flex: 1 1 100%;
    min-width: 0;
  }
}

.admin-date-filter__reset {
  display: block;
  text-align: center;
  margin-top: 2px;
}

.admin-date-filter__summary {
  margin: 12px 0 0;
  text-align: center;
}

.admin-date-panel .notice {
  text-align: center;
}

@media (max-width: 520px) {
  .admin-date-filter__presets,
  .admin-date-filter__categories {
    grid-template-columns: 1fr;
  }
}

.admin-day-groups {
  display: grid;
  gap: clamp(24px, 4.5vw, 36px);
  margin-bottom: 24px;
}

.admin-day-pager {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 10px 12px;
  background: rgba(244, 241, 234, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.admin-day-pager__btn {
  min-width: 88px;
  font-weight: 700;
}

.admin-day-pager__btn:disabled {
  opacity: 0.45;
  cursor: default;
}

.admin-day-pager__meta {
  display: grid;
  justify-items: center;
  gap: 2px;
  min-width: 0;
  text-align: center;
}

.admin-day-pager__label {
  font-weight: 700;
  font-size: clamp(14px, 3.2vw, 16px);
  word-break: keep-all;
}

.admin-day-pager__count {
  font-size: var(--fs-small);
}

.card.admin-day[hidden] {
  display: none;
}

.card.admin-day {
  --day-accent: #6b4f35;
  --day-r: 180;
  --day-g: 155;
  --day-b: 120;
  background: rgba(var(--day-r), var(--day-g), var(--day-b), 0.22);
  border: 1px solid rgba(var(--day-r), var(--day-g), var(--day-b), 0.45);
  box-shadow: 0 12px 36px rgba(60, 45, 30, 0.10), 0 0 0 1px rgba(var(--day-r), var(--day-g), var(--day-b), 0.12) inset;
}

.admin-day--tone-0 { --day-accent: #6b4f35; --day-r: 190; --day-g: 168; --day-b: 135; }
.admin-day--tone-1 { --day-accent: #5c4632; --day-r: 176; --day-g: 158; --day-b: 138; }
.admin-day--tone-2 { --day-accent: #7a5a3a; --day-r: 200; --day-g: 175; --day-b: 140; }
.admin-day--tone-3 { --day-accent: #65503c; --day-r: 168; --day-g: 150; --day-b: 128; }
.admin-day--tone-4 { --day-accent: #74553a; --day-r: 184; --day-g: 162; --day-b: 132; }

.admin-day__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: calc(var(--space-x) * -1) calc(var(--space-x) * -1) 12px;
  padding: 12px var(--space-x);
  background: rgba(var(--day-r), var(--day-g), var(--day-b), 0.42);
  border-bottom: 1px solid rgba(var(--day-r), var(--day-g), var(--day-b), 0.55);
  border-radius: var(--radius) var(--radius) 0 0;
}

.admin-day__head-main {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.admin-day__head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.admin-day__download {
  white-space: nowrap;
  font-weight: 700;
  background: rgba(107, 79, 53, 0.92);
  border-color: rgba(107, 79, 53, 0.95);
  color: #fff;
}

.admin-day__download:hover {
  background: rgba(125, 93, 63, 0.98);
  color: #fff;
}

.admin-day__download.is-disabled {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
  background: rgba(60, 45, 30, 0.18);
  border-color: rgba(60, 45, 30, 0.22);
  color: var(--muted);
}

.admin-bulk-bar {
  display: flex;
  justify-content: stretch;
  margin: 0 0 var(--gap);
}

.admin-bulk-download {
  width: 100%;
  white-space: nowrap;
  font-weight: 700;
  min-height: 44px;
  background: rgba(107, 79, 53, 0.92);
  border-color: rgba(107, 79, 53, 0.95);
  color: #fff;
}

.admin-bulk-download:hover {
  background: rgba(125, 93, 63, 0.98);
  color: #fff;
}

.admin-bulk-download.is-disabled,
.admin-bulk-download:disabled {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
  background: rgba(60, 45, 30, 0.18);
  border-color: rgba(60, 45, 30, 0.22);
  color: var(--muted);
}

.admin-day__excel {
  white-space: nowrap;
  font-weight: 700;
  background: rgba(46, 125, 50, 0.92);
  border-color: rgba(46, 125, 50, 0.95);
  color: #fff;
}

.admin-day__excel:hover {
  background: rgba(56, 142, 60, 0.98);
  color: #fff;
}

.admin-day__excel:disabled {
  opacity: 0.7;
  cursor: wait;
}

.admin-day__head .h2 {
  color: var(--day-accent);
}

.admin-day__head .muted {
  color: rgba(80, 60, 40, 0.78);
}

.admin-day__list {
  display: grid;
  gap: 14px;
}

.admin-day__item {
  border: 1px solid rgba(var(--day-r), var(--day-g), var(--day-b), 0.40);
  background: rgba(244, 241, 234, 0.72);
  border-radius: var(--radius);
  padding: var(--space-x);
  display: grid;
  gap: 12px;
}

.admin-day__meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-day__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.admin-day__title {
  font-size: clamp(15px, 3.4vw, 17px);
  font-weight: 700;
  word-break: break-word;
  min-width: 0;
  flex: 1 1 auto;
  text-transform: uppercase;
}

.admin-day__view {
  flex: 0 0 auto;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  color: #fff;
  border-color: #1e5a96;
  background: #2b6cb0;
}

.admin-day__view:hover {
  color: #fff;
  border-color: #174a7c;
  background: #245a96;
}

.admin-day__photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr));
  gap: var(--gap);
}

.admin-day__photo {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(60, 45, 30, 0.08);
  border: 1px solid rgba(60, 45, 30, 0.12);
  cursor: zoom-in;
}

.admin-day__photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.admin-day__empty-photos {
  margin: 0;
}

body.is-lightbox-open {
  overflow: hidden;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  overflow: hidden;
  background: rgba(20, 16, 12, 0.82);
  backdrop-filter: blur(2px);
}

.photo-lightbox[hidden] {
  display: none !important;
}

.photo-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.photo-lightbox__close:hover {
  background: rgba(255, 255, 255, 0.28);
}

.photo-lightbox__scroll {
  position: absolute;
  inset: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 56px 12px 12px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-lightbox__stage {
  width: 100%;
  height: 100%;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.photo-lightbox__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  background: rgba(0, 0, 0, 0.2);
}

.admin-day__special-note {
  border: 1px solid rgba(197, 48, 48, 0.18);
  border-radius: 12px;
  padding: 10px 12px;
  display: grid;
  gap: 4px;
}

.admin-day__special-note-label {
  font-size: var(--fs-small);
  font-weight: 700;
  color: #9b2c2c;
}

.admin-day__special-note-text {
  margin: 0;
  word-break: break-word;
}

.login {
  max-width: 420px;
  margin: clamp(28px, 8vw, 56px) auto 0;
}
.login .h1 {
  margin-bottom: 12px;
}
.login .actions {
  justify-content: stretch;
  margin-bottom: 8px;
}
.login .actions .btn {
  flex: 1;
  text-align: center;
}

/* Tablet / mobile refinements */
@media (max-width: 720px) {
  .brand {
    gap: 8px;
    min-width: 0;
  }

  .page-head {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .page-head--board {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
  }

  .page-head--board .page-head__title {
    flex: 1 1 auto;
    min-width: 0;
  }

  .page-head--board .head-actions {
    width: auto;
    flex: 0 0 auto;
    margin: 0;
  }

  .page-head .head-actions,
  .board-toolbar .head-actions,
  .actions {
    width: 100%;
  }

  .page-head--board .head-actions {
    width: auto;
  }

  .page-head .head-actions .btn,
  .page-head .head-actions form,
  .board-toolbar .head-actions .btn,
  .actions .btn {
    flex: 1 1 calc(50% - var(--gap));
    min-width: 0;
    text-align: center;
  }

  .page-head--board .head-actions .btn {
    flex: 0 0 auto;
  }

  .page-head .head-actions form,
  .actions form {
    display: flex;
  }

  .page-head .head-actions form .btn,
  .actions form .btn {
    width: 100%;
  }

  .board-toolbar {
    align-items: stretch;
    margin-top: 0;
  }

  .search--table {
    width: 100%;
    flex: 1 1 100%;
  }

  .search--table .search__input {
    flex: 1 1 100%;
  }

  .search--table .search__btn {
    flex: 1 1 auto;
  }

  .table {
    min-width: 0;
    width: 100%;
  }

  .col-author {
    width: 18%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .col-date {
    width: 22%;
  }

  .col-date__time {
    display: none;
  }

  .col-id {
    width: 12%;
  }

  .col-category {
    width: 22%;
    white-space: nowrap;
    padding-right: 10px;
  }

  .card--table .col-title {
    padding-left: 8px;
    white-space: normal;
    overflow: hidden;
  }

  .card--table .col-title .link {
    white-space: normal;
  }

  .card--table .col-title__text,
  .card--table .col-title__note {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .pager {
    gap: 6px;
  }

  .pager__btn, .pager__page {
    min-width: 36px;
    min-height: 36px;
    padding: 6px 8px;
    font-size: var(--fs-board-ui);
  }

  .photo-preview,
  .photo-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .login {
    max-width: none;
    width: 100%;
  }

  .footer {
    margin-top: 28px;
  }
}

@media (max-width: 480px) {
  .brand__text {
    max-width: 38vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav__user {
    max-width: 42vw;
  }

  .nav__logout {
    padding: 7px 8px;
  }

  .card--table .table th,
  .card--table .table td,
  .card--table .col-category,
  .card--table .table .link,
  .page-head--board .muted,
  .card--table .empty {
    font-size: var(--fs-board);
  }

  .page-head--board .btn,
  .board-toolbar .input,
  .board-toolbar .btn,
  .pager__btn,
  .pager__page {
    font-size: var(--fs-board-ui);
  }

  .card--table .col-author,
  .card--table .col-date,
  .card--table .col-date__time {
    font-size: var(--fs-board-meta);
  }

  .page-head--board .h1 {
    font-size: var(--fs-board-head);
  }

  .card--table .table th,
  .card--table .table td {
    padding: 8px 6px;
  }

  .col-id {
    width: 12%;
  }

  .col-author {
    width: 18%;
  }

  .col-date {
    width: 22%;
  }

  .page-head .head-actions .btn,
  .page-head .head-actions form,
  .board-toolbar .head-actions .btn,
  .actions .btn,
  .camera-actions .btn,
  .camera-actions label.btn,
  .camera-modal__actions .btn {
    flex: 1 1 100%;
  }

  .page-head--board .head-actions .btn {
    flex: 0 0 auto;
  }

  .photo-preview,
  .photo-gallery,
  .admin-day__photos {
    grid-template-columns: 1fr;
  }

  .multi-select__option {
    padding: 10px;
  }

  .camera-modal__video {
    max-height: 45vh;
  }
}

@media (max-width: 360px) {
  .brand__text {
    display: none;
  }

  .col-date {
    width: 24%;
  }

  .col-author {
    width: 16%;
  }
}

