:root {
  color-scheme: light;
  font-family: Inter, "Segoe UI", "Microsoft YaHei UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  color: #121916;
  background: #f4f8f6;
  --ink: #121916;
  --muted: #65716c;
  --line: #d7e1dc;
  --line-strong: #b8c8bf;
  --surface: #fff;
  --canvas: #f4f8f6;
  --green: #00b85a;
  --green-dark: #008f49;
  --green-soft: #e4f9ed;
  --cyan: #12b9c4;
  --red: #e94e50;
  --red-soft: #fff0ef;
  --amber: #a86b0c;
  --amber-soft: #fff3d8;
  --shadow: 0 12px 32px rgba(18, 30, 24, .12);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body { margin: 0; min-width: 320px; min-height: 100vh; min-height: 100dvh; }
body.viewer-open { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}
::selection { color: #102c1b; background: #c6f6d9; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 3;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 28px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid #18201c;
  backdrop-filter: blur(16px);
}
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 5px;
  background: var(--ink);
  color: #70f49d;
  font-size: 14px;
  font-weight: 750;
}
.brand-title { font-size: 15px; font-weight: 680; white-space: nowrap; }
.topbar-right { display: flex; align-items: center; gap: 10px; }
.role-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}
.role-dot, .connection-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.page { width: min(1560px, 100%); margin: 0 auto; padding: 25px 28px 56px; }
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 20px;
}
.section-kicker { color: var(--green); font-size: 11px; font-weight: 750; }
.page-heading h1 { margin: 4px 0 3px; font-size: 23px; line-height: 1.25; font-weight: 690; overflow-wrap: anywhere; }
.page-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.review-progress { width: min(190px, 32%); flex: 0 0 auto; }
.progress-copy { display: flex; justify-content: flex-end; align-items: baseline; gap: 5px; color: var(--muted); font-size: 11px; }
.progress-copy strong { color: var(--ink); font-size: 17px; font-weight: 700; }
.progress-track { height: 5px; margin-top: 7px; overflow: hidden; border-radius: 99px; background: #e1e8e3; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--green); transition: width .18s ease; }

.owner-tools {
  margin-bottom: 22px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}
.owner-summary { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 15px; cursor: pointer; list-style: none; }
.owner-summary::-webkit-details-marker { display: none; }
.owner-summary:hover { background: #f6fbf8; }
.owner-summary:focus-visible { outline: 3px solid var(--cyan); outline-offset: -3px; }
.owner-summary-title { display: flex; flex-direction: column; gap: 2px; flex: 0 0 auto; }
.owner-summary-title strong { color: var(--ink); font-size: 14px; line-height: 1.25; }
.owner-summary-chevron { display: grid; place-items: center; width: 30px; height: 30px; margin-left: auto; border: 1px solid var(--line); color: var(--ink); }
.owner-summary-chevron svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; transition: transform .16s ease; }
.owner-tools[open] .owner-summary-chevron svg { transform: rotate(180deg); }
.owner-content { padding: 0 15px 15px; }
.folder-state { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 11px; }
.folder-state strong { max-width: 220px; overflow: hidden; color: var(--ink); font-size: 12px; font-weight: 620; text-overflow: ellipsis; white-space: nowrap; }
.connection-dot.idle { background: #aab4af; }
.owner-row { display: grid; grid-template-columns: minmax(220px, 1fr) auto auto auto; align-items: end; gap: 9px; }
.owner-row + .owner-row { margin-top: 13px; }
.owner-row.share-row { grid-template-columns: minmax(0, 1fr) auto auto; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.grow { min-width: 0; }
.field label, .field-label { color: #4d5b56; font-size: 11px; font-weight: 690; }
.field input, .field select, .field textarea, .login-card input {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
}
.field input::placeholder, textarea::placeholder { color: #929d98; }
.field-note { color: var(--muted); font-size: 11px; line-height: 1.5; }
.field-note code { color: #596963; font-family: inherit; }
.share-result {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 9px 10px;
  border: 1px solid #b6e8c9;
  border-radius: 4px;
  background: #f0fbf4;
}
.share-result input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #08793b; font-size: 12px; }
.share-result[hidden] { display: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 620;
  text-decoration: none;
  white-space: nowrap;
  transition: background .14s ease, border-color .14s ease, transform .14s ease;
}
.button:hover { border-color: #aab9b1; background: #f5f8f6; }
.button:active { transform: translateY(1px); }
.button.primary { border-color: var(--green); background: var(--green); color: #071b10; font-weight: 730; }
.button.primary:hover { border-color: var(--green-dark); background: var(--green-dark); }
.button.danger { border-color: #f1b7b6; background: #fff; color: var(--red); }
.button.danger:hover { background: var(--red-soft); }
.button.quiet { border-color: transparent; background: transparent; color: #596762; }
.button.quiet:hover { border-color: var(--line); background: #f4f6f4; }
.button:disabled { opacity: .42; cursor: not-allowed; transform: none; }
.button svg, .card-open svg, .search-field svg { width: 16px; height: 16px; flex: 0 0 auto; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-button { width: 40px; min-height: 40px; padding: 0; }
.icon-button svg { width: 18px; height: 18px; }

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 14px;
  margin: 0 0 16px;
  padding: 0 0 13px;
  border-bottom: 1px solid var(--line);
}
.toolbar-main { display: flex; align-items: center; gap: 13px; min-width: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.filter-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #4f5c56;
  cursor: pointer;
  font-size: 12px;
  white-space: nowrap;
}
.filter-button:hover { background: #e7f2eb; }
.filter-button.active { border-color: var(--ink); background: var(--ink); color: #fff; }
.filter-count { min-width: 17px; color: inherit; opacity: .76; font-size: 10px; font-variant-numeric: tabular-nums; text-align: center; }
.filter-button.active .filter-count { opacity: .88; }
.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(220px, 26vw);
  min-width: 150px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: #77837e;
}
.search-field:focus-within { border-color: var(--green); box-shadow: 0 0 0 2px rgba(0, 184, 90, .12); }
.search-field input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.search-field input:focus-visible { outline: 0; }
.search-field input::placeholder { color: #899590; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.toolbar-meta { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.result-count { min-width: 64px; font-variant-numeric: tabular-nums; }
.toolbar-meta label { margin-left: 4px; }
.toolbar-meta select { min-height: 36px; padding: 0 9px; border: 1px solid var(--line); border-radius: 4px; background: white; color: var(--ink); font-size: 12px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(232px, 100%), 1fr)); gap: 14px; }
.media-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  transition: border-color .16s ease, transform .16s ease;
}
.media-card:hover { transform: translateY(-2px); border-color: var(--green); }
.preview {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: #e7efeb;
  cursor: zoom-in;
}
.preview img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .28s ease; }
.media-card:hover .preview img { transform: scale(1.025); }
.video-poster { position: absolute; inset: 0; display: grid; place-items: center; background: #111b16; color: white; }
.video-poster::before { content: ""; position: absolute; width: 48px; height: 48px; border-radius: 50%; background: rgba(13, 25, 20, .72); }
.video-poster::after { content: ""; position: absolute; width: 0; height: 0; margin-left: 4px; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-left: 12px solid white; }
.video-label { position: absolute; left: 10px; bottom: 9px; z-index: 1; padding: 4px 6px; border-radius: 4px; background: rgba(15, 25, 21, .78); color: white; font-size: 10px; }
.preview-type { position: absolute; top: 10px; left: 10px; padding: 4px 7px; border: 1px solid rgba(255,255,255,.42); border-radius: 3px; background: rgba(13, 24, 18, .82); color: white; font-size: 10px; font-weight: 630; }
.preview-expand { position: absolute; top: 9px; right: 9px; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.66); border-radius: 4px; background: rgba(255,255,255,.96); color: #101914; opacity: 0; transform: translateY(-2px); transition: opacity .14s, transform .14s; }
.preview-expand svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.preview:hover .preview-expand, .preview:focus-visible .preview-expand { opacity: 1; transform: translateY(0); }
.card-body { display: flex; flex-direction: column; min-height: 145px; padding: 12px 13px 11px; }
.filename { display: -webkit-box; min-height: 2.7em; overflow: hidden; color: #293731; font-size: 12px; font-weight: 660; line-height: 1.4; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.filepath { margin-top: 3px; overflow: hidden; color: #85918b; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.card-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 9px; color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.card-status { display: flex; flex-wrap: wrap; gap: 5px; min-height: 21px; margin-top: 8px; }
.tag { display: inline-flex; align-items: center; min-height: 20px; padding: 2px 7px; border-radius: 3px; background: #edf2ef; color: #4f5c56; font-size: 10px; }
.tag.green { background: var(--green-soft); color: #08753b; }
.tag.red { background: var(--red-soft); color: #a5242b; }
.tag.amber { background: var(--amber-soft); color: #82520a; }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 9px; }
.card-open, .small-action { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: transparent; color: var(--green); cursor: pointer; font-size: 11px; font-weight: 650; }
.card-open:hover, .small-action:hover { color: var(--green-dark); text-decoration: underline; }
.card-open svg { width: 14px; height: 14px; }
.small-action { color: #52615a; }

.empty {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  border: 1px dashed #aebeb5;
  border-radius: 4px;
  background: rgba(255,255,255,.68);
  text-align: center;
}
.empty-mark { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 12px; background: var(--green-soft); color: var(--green); font-size: 20px; font-weight: 700; }
.empty h2 { margin: 0 0 6px; font-size: 15px; }
.empty p { max-width: 430px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.empty .button { margin-top: 15px; }
.notice { margin: 12px 0; color: var(--amber); font-size: 12px; }

.login-shell { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 20px; }
.login-card { width: min(100%, 390px); padding: 26px; border: 1px solid var(--line); border-radius: 4px; background: #fff; box-shadow: 0 12px 40px rgba(18, 30, 24, .08); }
.login-card h1 { margin: 24px 0 0; font-size: 21px; }
.login-card p { margin: 8px 0 20px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.login-card .field { margin-top: 16px; }
.login-card .button { width: 100%; min-height: 44px; margin-top: 8px; }
.login-error { min-height: 18px; margin: 6px 0 8px; color: var(--red); font-size: 12px; }

.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(14, 22, 18, .78);
  backdrop-filter: blur(4px);
}
.dialog {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  width: min(1320px, 100%);
  height: min(90dvh, 860px);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(0,0,0,.3);
}
.viewer-stage {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  place-items: center;
  background: #080d0a;
  touch-action: none;
  user-select: none;
}
.viewer-stage > img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer-image { transform-origin: center; transition: transform .13s ease-out; will-change: transform; }
.viewer-image.zoomed { cursor: grab; transition: none; }
.viewer-image.zoomed:active { cursor: grabbing; }
.viewer-stage video { display: block; width: 100%; max-width: 100%; max-height: 100%; object-fit: contain; }
.viewer-panel { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 20px; background: #fff; }
.viewer-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.viewer-heading-copy { flex: 1; min-width: 0; }
.viewer-header-side { flex: 0 0 auto; }
.viewer-name { color: var(--ink); font-size: 14px; font-weight: 680; line-height: 1.45; overflow-wrap: anywhere; }
.viewer-path { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; }
.viewer-mobile-summary { display: none; }
.review-toggle { display: none; }
.panel-scroll { flex: 1; min-height: 0; overflow: auto; padding: 2px 1px 6px; overscroll-behavior: contain; }
.panel-section { padding: 15px 0; border-bottom: 1px solid var(--line); }
.panel-title { margin: 0 0 10px; color: #4d5b56; font-size: 11px; font-weight: 690; }
.rating-buttons, .mark-buttons, .decision-buttons { display: flex; gap: 7px; }
.choice { flex: 1; min-width: 0; min-height: 40px; border: 1px solid var(--line); border-radius: 3px; background: white; color: #4f5c56; cursor: pointer; font-size: 12px; transition: background .12s, border-color .12s; }
.choice:hover { background: #f4f7f5; }
.choice.selected { border-color: var(--green); background: var(--green-soft); color: #075a30; font-weight: 680; }
.choice.selected.reject { border-color: #f1aaa8; background: var(--red-soft); color: #a5242b; }
.rating-buttons .choice { font-size: 14px; font-weight: 680; font-variant-numeric: tabular-nums; }
.note-area { width: 100%; min-height: 100px; padding: 10px; border: 1px solid var(--line-strong); border-radius: 4px; background: #fff; resize: vertical; font-size: 12px; line-height: 1.5; }
.feedback-line { color: var(--muted); font-size: 11px; line-height: 1.55; overflow-wrap: anywhere; }
.spaced-title { margin-top: 16px !important; }
.panel-footer { display: flex; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.panel-footer .button { flex: 1; min-height: 44px; }
.viewer-zoom-controls, .viewer-nav { position: absolute; top: 12px; z-index: 2; display: flex; align-items: center; gap: 6px; }
.viewer-zoom-controls { left: 12px; }
.viewer-nav { right: 12px; }
.viewer-zoom-controls .button, .viewer-nav .button { width: 40px; min-height: 40px; border-color: rgba(255,255,255,.38); background: rgba(255,255,255,.94); color: #22322b; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.viewer-zoom-controls .button:hover, .viewer-nav .button:hover { background: #fff; }
.viewer-zoom-controls .zoom-readout { width: auto; min-width: 54px; padding: 0 9px; font-size: 10px; font-variant-numeric: tabular-nums; }
.viewer-counter { position: absolute; right: 14px; bottom: 13px; padding: 5px 8px; border-radius: 4px; background: rgba(0,0,0,.48); color: white; font-size: 10px; font-variant-numeric: tabular-nums; pointer-events: none; }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom));
  z-index: 12;
  max-width: calc(100vw - 24px);
  padding: 10px 14px;
  transform: translate(-50%, 12px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 4px;
  background: #101914;
  color: #fff;
  font-size: 12px;
  line-height: 1.4;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s, transform .15s;
}
.toast.visible { transform: translate(-50%, 0); opacity: 1; }

@media (max-width: 1120px) {
  .page { padding-right: 20px; padding-left: 20px; }
  .topbar { padding-right: 20px; padding-left: 20px; }
  .toolbar { grid-template-columns: 1fr; align-items: stretch; }
  .toolbar-meta { justify-content: flex-end; }
}
@media (max-width: 760px) {
  .topbar { min-height: 54px; padding: 0 14px; }
  .brand { gap: 8px; }
  .brand-mark { width: 30px; height: 30px; border-radius: 7px; }
  .brand-title { font-size: 14px; }
  .topbar-right { gap: 4px; }
  .role-label { font-size: 11px; }
  .page { padding: 12px 14px calc(38px + env(safe-area-inset-bottom)); }
  .page-heading { margin-bottom: 11px; }
  .page-heading h1 { font-size: 19px; }
  .review-progress { width: 112px; }
  .progress-copy strong { font-size: 15px; }
  .owner-tools { margin-bottom: 12px; }
  .owner-summary { min-height: 54px; gap: 8px; padding: 8px 11px; }
  .owner-summary-title strong { font-size: 13px; }
  .owner-summary-chevron { width: 28px; height: 28px; }
  .owner-content { padding: 0 11px 11px; }
  .folder-state { flex-wrap: wrap; justify-content: flex-end; max-width: 56%; gap: 4px; }
  .folder-state strong { max-width: 110px; }
  .owner-row, .owner-row.share-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .owner-row .field { grid-column: 1 / -1; }
  .owner-row .button, .owner-row .field { min-width: 0; }
  .owner-row .button { min-height: 42px; padding-right: 8px; padding-left: 8px; }
  .field-note { line-height: 1.45; }
  .share-result { align-items: stretch; flex-direction: column; gap: 8px; }
  .share-result input { min-height: 36px; flex: none; }
  .share-result .button { width: 100%; min-height: 42px; }
  .toolbar { gap: 8px; margin-bottom: 10px; padding-bottom: 9px; }
  .toolbar-main { align-items: stretch; flex-direction: column; gap: 9px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; gap: 3px; padding: 0 0 2px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
  .filter-button { flex: 0 0 auto; min-height: 40px; padding: 0 10px; }
  .search-field { width: 100%; min-width: 0; min-height: 42px; }
  .search-field input { font-size: 16px; }
  .toolbar-meta { justify-content: space-between; gap: 7px; }
  .toolbar-meta select { min-height: 40px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .media-card { border-radius: 3px; }
  .preview-expand { width: 32px; height: 32px; opacity: 1; transform: none; }
  .card-body { min-height: 112px; padding: 8px 9px 8px; }
  .filename { min-height: 2.6em; font-size: 11px; }
  .filepath { display: none; }
  .card-meta { margin-top: 5px; font-size: 9px; }
  .card-status { gap: 4px; min-height: 19px; margin-top: 5px; }
  .tag { min-height: 19px; padding-right: 6px; padding-left: 6px; font-size: 9px; }
  .card-actions { padding-top: 4px; }
  .card-open, .small-action { font-size: 10px; }
  .card-open svg { width: 13px; height: 13px; }
  .dialog-backdrop { display: block; padding: 0; }
  .dialog { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; width: 100%; height: 100dvh; max-height: 100dvh; border: 0; border-radius: 0; }
  .viewer-stage { max-height: none; min-height: 0; }
  .viewer-stage > img, .viewer-stage video { max-height: 100%; }
  .viewer-panel { padding: 9px 13px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid #26352d; }
  .viewer-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3px 10px; padding: 0; border: 0; }
  .viewer-name { overflow: hidden; font-size: 12px; font-weight: 710; text-overflow: ellipsis; white-space: nowrap; }
  .viewer-path { margin-top: 2px; overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
  .viewer-header-side { display: contents; }
  .viewer-mobile-summary { display: block; max-width: 48vw; color: var(--muted); font-size: 9px; text-align: right; white-space: nowrap; }
  .reviewer-viewer .viewer-mobile-summary { display: none; }
  .review-toggle { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; width: 100%; min-height: 42px; margin-top: 6px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 3px; background: #f7fbf8; color: var(--ink); text-align: left; cursor: pointer; }
  .review-toggle-label { font-size: 11px; font-weight: 710; }
  .review-toggle-status { overflow: hidden; margin-left: auto; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  .review-toggle-chevron { display: flex; color: var(--green-dark); }
  .review-toggle-chevron svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; transition: transform .16s ease; }
  .review-panel-open .review-toggle-chevron svg { transform: rotate(180deg); }
  .owner-viewer .panel-scroll, .reviewer-viewer:not(.review-panel-open) .panel-scroll, .reviewer-viewer:not(.review-panel-open) .panel-footer { display: none; }
  .viewer-panel.review-panel-open { height: min(52dvh, 460px); max-height: 52dvh; overflow: hidden; }
  .review-panel-open .panel-scroll { display: block; padding: 0 1px 4px; }
  .review-panel-open .panel-footer { display: flex; padding-top: 8px; }
  .panel-section { padding: 9px 0; }
  .panel-title { margin-bottom: 6px; }
  .choice { min-height: 44px; }
  .note-area { min-height: 60px; }
  .panel-footer { padding-top: 8px; }
  .panel-footer .button { min-height: 44px; }
  .viewer-zoom-controls, .viewer-nav { top: calc(9px + env(safe-area-inset-top)); gap: 5px; }
  .viewer-zoom-controls { left: 9px; }
  .viewer-nav { right: 9px; }
  .viewer-zoom-controls .button, .viewer-nav .button { width: 42px; min-height: 42px; }
  .viewer-zoom-controls .zoom-readout { width: auto; min-width: 48px; }
  .viewer-counter { right: 10px; bottom: 9px; }
  .toast { bottom: calc(14px + env(safe-area-inset-bottom)); }
}
@media (max-width: 430px) {
  .role-label { display: none; }
  .page { padding-right: 11px; padding-left: 11px; }
  .owner-tools { padding: 0; }
  .owner-row .button { font-size: 11px; }
  .folder-state { font-size: 10px; }
  .folder-state strong { max-width: 88px; }
  .toolbar-meta { font-size: 10px; }
  .grid { gap: 8px; }
  .card-body { padding-right: 8px; padding-left: 8px; }
  .card-meta span:last-child { max-width: 65px; overflow: hidden; text-overflow: ellipsis; }
  .card-open { gap: 4px; }
  .viewer-panel { padding-right: 12px; padding-left: 12px; }
}
@media (max-width: 360px) {
  .page-heading { align-items: flex-start; }
  .review-progress { width: 92px; }
  .filter-button { gap: 4px; padding: 0 8px; font-size: 11px; }
  .card-meta { font-size: 8px; }
  .card-open { font-size: 9px; }
  .viewer-zoom-controls .button, .viewer-nav .button { width: 38px; min-height: 38px; }
  .viewer-zoom-controls .zoom-readout { min-width: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
