:root {
  --bg: #ffffff;
  --surface: #f6f7fa;
  --surface-strong: #eef1f7;
  --text: #0f1115;
  --muted: #717783;
  --faint: #a4a9b3;
  --line: #e9ebf0;
  --primary: #315df5;
  --primary-soft: #e9eeff;
  --keep: #34c759;
  --hold: #ffb020;
  --reject: #ff4655;
  --purple: #7658e8;
  --radius-sm: 9px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --shadow: 0 16px 50px rgba(28, 35, 52, 0.16);
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #eef1f6;
  color: var(--text);
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(49, 93, 245, 0.28);
  outline-offset: 2px;
}

.preview-stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  gap: 24px;
  padding: 34px 24px;
}

.phone-shell {
  position: relative;
  width: min(430px, calc(100vw - 28px));
  height: min(900px, calc(100vh - 68px));
  min-height: 660px;
  overflow: hidden;
  border: 8px solid #12151b;
  border-radius: 44px;
  background: var(--bg);
  box-shadow: var(--shadow), inset 0 0 0 1px #56606c;
}

.status-bar {
  position: absolute;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  height: 36px;
  padding: 11px 19px 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  font-size: 13px;
  font-weight: 650;
  background: rgba(255, 255, 255, 0.96);
}

.camera-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #06080c;
  box-shadow: inset 0 0 0 3px #10151c;
}

.status-icons {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #0a0c10;
}

.signal {
  font-size: 8px;
  letter-spacing: -2px;
  transform: skewY(-8deg);
}

.wifi {
  font-size: 16px;
  line-height: 8px;
  transform: rotate(-16deg);
}

.battery {
  width: 18px;
  height: 9px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  position: relative;
}

.battery::before {
  content: "";
  position: absolute;
  inset: 1.5px;
  background: currentColor;
  border-radius: 1px;
}

.battery::after {
  content: "";
  position: absolute;
  width: 2px;
  height: 5px;
  top: 1px;
  right: -4px;
  border-radius: 0 1px 1px 0;
  background: currentColor;
}

.app {
  position: absolute;
  inset: 36px 0 0;
  overflow: hidden;
  background: var(--bg);
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

@keyframes screen-in {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

.topbar {
  flex: 0 0 auto;
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 17px 8px;
}

.topbar h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: -0.7px;
  font-weight: 760;
}

.topbar.compact h1 {
  font-size: 22px;
  letter-spacing: -0.3px;
}

.topbar-spacer {
  flex: 1;
}

.icon-button,
.back-button,
.plain-button {
  border: 0;
  background: transparent;
  padding: 0;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.icon-button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.icon-button:hover,
.back-button:hover {
  background: var(--surface);
}

.back-button {
  width: 34px;
  height: 38px;
  border-radius: 10px;
}

.icon {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon.solid {
  fill: currentColor;
  stroke: none;
}

.content-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding: 0 14px 88px;
}

.content-scroll::-webkit-scrollbar {
  display: none;
}

.review-card {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 84px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(105deg, #fff 0%, #fbfcff 65%, #f2f5ff 100%);
  box-shadow: 0 4px 14px rgba(28, 35, 52, 0.04);
}

.review-icon {
  width: 55px;
  height: 55px;
  border-radius: 17px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--hold);
  box-shadow: 0 8px 18px rgba(255, 176, 32, 0.24);
}

.review-copy {
  min-width: 0;
  flex: 1;
}

.review-copy strong {
  display: block;
  font-size: 18px;
  margin-bottom: 4px;
}

.review-copy span,
.section-count,
.metadata-line {
  color: var(--muted);
  font-size: 13px;
}

.primary-button {
  border: 0;
  border-radius: 22px;
  padding: 11px 17px;
  color: #fff;
  background: var(--primary);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(49, 93, 245, 0.22);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 25px 4px 11px;
}

.section-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 720;
}

.section-count {
  margin-left: auto;
}

.chevron {
  color: var(--muted);
  display: inline-grid;
  place-items: center;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns, 3), minmax(0, 1fr));
  gap: 4px;
}

.photo-tile {
  position: relative;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background-color: var(--surface-strong);
  background-image: url("assets/photo-sprite.png");
  background-repeat: no-repeat;
  background-size: 400% 400%;
  cursor: pointer;
}

.photo-tile:hover {
  filter: brightness(0.96);
}

.photo-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(10, 14, 22, 0.04);
  pointer-events: none;
}

.photo-badge {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.photo-badge svg {
  width: 11px;
  height: 11px;
}

.photo-badge.keep { background: var(--keep); }
.photo-badge.hold { background: var(--hold); }
.photo-badge.reject { background: var(--reject); }

.bottom-nav {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  bottom: 0;
  height: 76px;
  padding: 8px 10px 13px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
}

.nav-item {
  border: 0;
  background: transparent;
  color: #69707d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 11px;
  cursor: pointer;
  border-radius: 13px;
}

.nav-item .icon {
  width: 22px;
  height: 22px;
}

.nav-item.active {
  color: var(--primary);
  font-weight: 650;
}

.nav-item:hover {
  background: var(--surface);
}

.review-screen .topbar {
  min-height: 58px;
}

.review-progress-copy {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
}

.progress-track {
  margin: 0 18px 12px;
  height: 5px;
  border-radius: 999px;
  background: #dfe7ff;
  overflow: hidden;
}

.progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
  transition: width 220ms ease;
}

.review-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0 16px 18px;
}

.review-photo-wrap {
  position: relative;
  flex: 1;
  min-height: 260px;
  overflow: hidden;
  border-radius: 9px;
  background: var(--surface-strong);
  touch-action: pan-y;
}

.review-photo {
  position: absolute;
  inset: 0;
  background-image: url("assets/photo-sprite.png");
  background-repeat: no-repeat;
  background-size: 400% 400%;
  transition: transform 180ms ease, opacity 180ms ease;
}

.review-photo.swiping {
  transition: none;
}

.review-index {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 10px;
  border-radius: 13px;
  color: #fff;
  background: rgba(22, 28, 38, 0.62);
  font-size: 12px;
  font-weight: 650;
  backdrop-filter: blur(8px);
}

.swipe-hint {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 8px 10px;
  border-radius: 11px;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  opacity: 0;
  transition: opacity 100ms ease;
}

.swipe-hint.left { left: 12px; background: var(--reject); }
.swipe-hint.right { right: 12px; background: var(--keep); }
.swipe-hint.show { opacity: 1; }

.rating-row {
  display: flex;
  justify-content: center;
  gap: 9px;
  padding: 14px 0 12px;
}

.star-button {
  border: 0;
  padding: 1px;
  background: transparent;
  color: #ccd1dc;
  cursor: pointer;
}

.star-button.active {
  color: var(--primary);
}

.star-button .icon {
  width: 29px;
  height: 29px;
  fill: currentColor;
  stroke: currentColor;
}

.decision-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.decision-button {
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 680;
  cursor: pointer;
}

.decision-button:hover {
  background: var(--surface);
}

.decision-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
}

.decision-icon.keep { background: var(--keep); }
.decision-icon.hold { background: var(--hold); }
.decision-icon.reject { background: var(--reject); }

.decision-icon .icon {
  width: 21px;
  height: 21px;
}

.wide-action {
  margin-top: 10px;
  min-height: 52px;
  width: 100%;
  border: 0;
  border-radius: 17px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.review-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding-top: 10px;
  color: var(--faint);
  font-size: 12px;
}

.undo-button {
  border: 0;
  background: transparent;
  color: var(--primary);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.undo-button:disabled {
  color: var(--faint);
  cursor: default;
}

.list-section-title {
  margin: 9px 5px 8px;
  font-size: 16px;
  font-weight: 720;
}

.filter-list,
.tag-list {
  border-top: 1px solid transparent;
}

.filter-row,
.tag-row {
  width: 100%;
  min-height: 58px;
  padding: 8px 7px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  cursor: pointer;
}

.filter-row.selected,
.tag-row.selected {
  margin: 2px 0;
  padding-left: 10px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--primary-soft);
}

.filter-row:hover,
.tag-row:hover {
  background-color: var(--surface);
}

.filter-icon {
  width: 31px;
  height: 31px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--row-color, var(--primary));
}

.filter-icon .icon {
  width: 23px;
  height: 23px;
}

.row-label {
  flex: 1;
  min-width: 0;
  font-size: 16px;
  font-weight: 600;
}

.row-count {
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.outlined-action {
  width: 100%;
  min-height: 58px;
  margin-top: 10px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  cursor: pointer;
}

.outlined-action .icon {
  color: var(--primary);
}

.segmented-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 0 14px 8px;
  border-bottom: 1px solid var(--line);
}

.segment {
  position: relative;
  border: 0;
  background: transparent;
  padding: 10px 3px 12px;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
}

.segment.active {
  color: var(--primary);
  font-weight: 650;
}

.segment.active::after {
  content: "";
  position: absolute;
  left: 24%;
  right: 24%;
  bottom: -1px;
  height: 3px;
  border-radius: 999px;
  background: var(--primary);
}

.tag-dot {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--tag-color);
}

.inspector {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.inspector-main {
  display: flex;
  gap: 12px;
}

.inspector-thumb {
  width: 92px;
  height: 92px;
  flex: 0 0 auto;
  border-radius: 10px;
  background-image: url("assets/photo-sprite.png");
  background-repeat: no-repeat;
  background-size: 400% 400%;
}

.inspector-copy {
  min-width: 0;
  padding-top: 2px;
}

.inspector-copy strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  margin-bottom: 8px;
}

.metadata-line {
  margin: 4px 0;
}

.tag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 5px 11px;
  border: 0;
  border-radius: 16px;
  background: var(--surface);
  font-size: 12px;
  cursor: pointer;
}

.tag-chip.active {
  background: var(--primary-soft);
  color: var(--primary);
}

.settings-group {
  margin: 3px 0 20px;
}

.settings-group h2 {
  margin: 0 5px 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.setting-row {
  min-height: 59px;
  padding: 10px 6px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}

.setting-row > div:first-of-type {
  flex: 1;
}

.setting-row strong {
  display: block;
  font-size: 15px;
  margin-bottom: 3px;
}

.setting-row span {
  color: var(--muted);
  font-size: 12px;
}

.setting-row select {
  min-width: 92px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 7px 9px;
  color: var(--text);
  font-size: 13px;
}

.privacy-panel {
  padding: 15px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: #555d69;
  font-size: 13px;
  line-height: 1.6;
}

.danger-button {
  width: 100%;
  min-height: 50px;
  border: 1px solid #ffd8dc;
  border-radius: 14px;
  background: #fff8f9;
  color: #d82f3c;
  font-weight: 650;
  cursor: pointer;
}

.setting-symbol {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--primary);
  background: var(--primary-soft);
}

.setting-symbol.success {
  color: #158b36;
  background: #e8f8ed;
}

.privacy-panel .icon {
  width: 18px;
  height: 18px;
  margin: 0 5px -4px 0;
  color: var(--primary);
}

.detail-scroll {
  padding-bottom: 24px;
}

.detail-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: var(--surface-strong) url("assets/photo-sprite.png") no-repeat;
  background-size: 400% 400%;
}

.detail-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 2px 4px;
}

.detail-heading > div {
  flex: 1;
  min-width: 0;
}

.detail-heading strong,
.detail-heading span {
  display: block;
}

.detail-heading strong {
  font-size: 19px;
  margin-bottom: 4px;
}

.detail-heading > div span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-pill {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.status-pill.keep { color: #168137; background: #e9f9ee; }
.status-pill.hold { color: #a66a00; background: #fff4dc; }
.status-pill.reject { color: #d82f3c; background: #fff0f1; }

.compact-stars {
  justify-content: flex-start;
  padding-left: 0;
}

.compact-stars .icon {
  width: 25px;
  height: 25px;
}

.metadata-grid {
  margin: 6px 0 20px;
  border-top: 1px solid var(--line);
}

.metadata-grid > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.metadata-grid dt { color: var(--muted); }
.metadata-grid dd { margin: 0; overflow-wrap: anywhere; }

.read-only-note {
  margin: 20px 0 0;
  padding: 13px;
  border-radius: 13px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.check-field {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  color: var(--muted);
  font-size: 13px;
}

.option-pill .tag-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 5px;
}

.undo-button .icon {
  width: 15px;
  height: 15px;
  margin: 0 3px -3px 0;
}

.empty-state {
  min-height: 360px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: var(--muted);
  text-align: center;
}

.empty-state .icon {
  width: 48px;
  height: 48px;
  color: #b9bfcb;
}

.empty-state strong {
  color: var(--text);
}

.modal-backdrop {
  position: absolute;
  z-index: 50;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background: rgba(18, 22, 31, 0.32);
  backdrop-filter: blur(2px);
  animation: fade-in 160ms ease both;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-sheet {
  width: 100%;
  max-height: 82%;
  overflow-y: auto;
  padding: 20px 18px 24px;
  border-radius: 24px 24px 0 0;
  background: #fff;
  box-shadow: 0 -18px 50px rgba(24, 30, 42, 0.16);
  animation: sheet-in 200ms ease both;
}

@keyframes sheet-in {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.modal-head h2 {
  margin: 0;
  font-size: 20px;
}

.field {
  display: grid;
  gap: 7px;
  margin: 13px 0;
}

.field label,
.field-title {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.field input,
.field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  background: #fff;
  color: var(--text);
}

.option-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option-pill {
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

.option-pill.active {
  color: var(--primary);
  border-color: #b9c7ff;
  background: var(--primary-soft);
  font-weight: 650;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 10px;
  margin-top: 18px;
}

.secondary-button {
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  background: var(--surface);
  cursor: pointer;
}

.save-button {
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  font-weight: 650;
  cursor: pointer;
}

.toast {
  position: absolute;
  z-index: 80;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%);
  min-width: 150px;
  max-width: 82%;
  padding: 10px 15px;
  border-radius: 16px;
  background: rgba(21, 25, 34, 0.9);
  color: #fff;
  text-align: center;
  font-size: 13px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.18);
  animation: toast-in 180ms ease both;
}

@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.desktop-note {
  width: min(430px, calc(100vw - 28px));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 0 8px;
  color: #4f5764;
  font-size: 12px;
}

.desktop-note strong,
.desktop-note span {
  display: block;
}

.desktop-note strong {
  margin-bottom: 3px;
  color: #202631;
  font-size: 14px;
}

.shortcut-list {
  display: grid;
  grid-template-columns: auto auto;
  gap: 3px 7px;
  align-items: center;
}

kbd {
  min-width: 22px;
  padding: 2px 5px;
  border: 1px solid #cfd4dd;
  border-bottom-width: 2px;
  border-radius: 5px;
  background: #fff;
  color: #222831;
  text-align: center;
  font: 11px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (max-width: 520px) {
  html,
  body {
    background: #fff;
  }

  .preview-stage {
    min-height: 100dvh;
    padding: 0;
  }

  .phone-shell {
    width: 100vw;
    height: 100dvh;
    min-height: 600px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .desktop-note {
    display: none;
  }
}

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

/* The next-version demo keeps the native blue/white palette and four-tab shell. */
.eyebrow { display: block; font-size: 11px; color: var(--muted); margin-bottom: 6px; letter-spacing: .5px; }
.topbar:has(.eyebrow) { min-height: 88px; }
.progress-card { margin: 3px 0 20px; padding: 18px; border: 1px solid #e1e8fb; background: #f5f8ff; border-radius: 22px; }
.progress-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: #526584; }
.demo-badge { display: inline-block; white-space: nowrap; padding: 4px 8px; border-radius: 7px; background: #e8efff; color: #315df5; font-size: 10px; font-weight: 600; }
.progress-number { display: flex; gap: 8px; align-items: baseline; margin: 15px 0 12px; }
.progress-number strong { font-size: 38px; line-height: 1; letter-spacing: -1.5px; }
.progress-number span { color: #65738a; font-size: 12px; }
.progress-number b { margin-left: auto; font-size: 20px; color: var(--primary); font-variant-numeric: tabular-nums; }
.progress-card .progress-track { margin: 0 0 10px; height: 6px; }
.progress-caption { color: #65738a; font-size: 11px; }
.review-start { display: flex; align-items: center; justify-content: center; gap: 9px; width: 100%; margin-top: 17px; border-radius: 13px; box-shadow: none; min-height: 46px; }
.review-start .icon { width: 19px; height: 19px; }
.progress-card small { display: block; margin-top: 10px; font-size: 10px; color: #65738a; text-align: center; }
.library-segments { display: flex; align-items: center; gap: 20px; margin: 0 0 14px; }
.library-segments button { padding: 6px 0; border: 0; background: none; font-size: 16px; font-weight: 650; color: #7b8494; cursor: pointer; }
.library-segments button.active { color: var(--text); }
.library-segments button span { margin-left: 4px; font-size: 11px; font-weight: 400; color: var(--muted); }
.album-cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px 12px; }
.album-card { display: flex; flex-direction: column; align-items: stretch; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.album-cover { display: block; position: relative; aspect-ratio: 1.3; border-radius: 13px; background: url('assets/photo-sprite.png') no-repeat; background-size: 400% 400%; margin-bottom: 9px; }
.album-cover .icon { position: absolute; bottom: 9px; right: 9px; color: white; filter: drop-shadow(0 1px 4px #333); }
.album-card strong { font-size: 14px; margin-bottom: 4px; }
.album-card > span:last-child { font-size: 11px; color: var(--muted); }
.album-review { margin: 0 0 14px; color: var(--primary); }
.tab-art { width: 30px; height: 30px; object-fit: contain; }
.nav-item:not(.active) .tab-art { opacity: .6; filter: grayscale(1); }
.progress-percentage { font-size: 18px; font-weight: 700; color: var(--primary); }
.review-screen .topbar { min-height: 72px; }
.review-screen .eyebrow { margin-top: 6px; margin-bottom: 0; }
.review-body { overflow-y: auto; }
.review-photo-wrap { flex: 0 0 auto; width: min(100%, max(190px, calc(100dvh - 375px))); aspect-ratio: 1; min-height: 0; align-self: center; border-radius: 16px; }
.photo-context { display: flex; justify-content: space-between; gap: 8px; padding: 10px 0 0; font-size: 10px; color: var(--muted); }
.photo-context .icon { width: 12px; height: 12px; vertical-align: -2px; }
.rating-row { padding: 8px 0; }
.star-button { min-width: 40px; min-height: 40px; }
.decision-button { min-height: 72px; border-radius: 15px; font-size: 13px; }
.decision-icon { width: 30px; height: 30px; }
.wide-action { min-height: 44px; font-size: 13px; }
.review-safety { text-align: center; color: var(--muted); font-size: 10px; margin: 10px 0 0; }
.review-footer .plain-button { font-size: 11px; }
.detail-status-controls { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 16px; }
.empty-state p { max-width: 290px; font-size: 13px; line-height: 1.8; padding: 0 10px; }
.completion { min-height: 440px; gap: 20px; }
.completion > .icon { color: var(--keep); }
.full-width { width: 100%; margin-top: 18px; }
.gesture-guide p { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.gesture-guide .icon { color: var(--primary); }
@media (max-width: 520px) {
  .phone-shell { min-height: 0; }
  .status-bar { display: none; }
  .app { inset: env(safe-area-inset-top, 0px) 0 0; }
  .bottom-nav { height: calc(70px + env(safe-area-inset-bottom, 0px)); padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); }
  .content-scroll { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  .detail-scroll { padding-bottom: 24px; }
  .review-body { padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
  .review-photo-wrap { width: min(100%, max(180px, calc(100dvh - 350px))); }
}
