* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 20rem;
  font-size: 1rem;
  line-height: 1.55;
}
button, a {
  -webkit-tap-highlight-color: transparent;
  font: inherit;
}

.app-shell {
  margin: 0 auto;
}
.topbar {
  justify-content: space-between;
  gap: 1rem;
}
.eyebrow {
  margin: 0 0 .28rem;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 0;
}
.topbar__actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.link-button,
.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  text-decoration: none;
  cursor: pointer;
}

.workspace {
  display: grid;
  padding: 1rem 0 3rem;
}
.side-panel,
.review-panel {
  min-width: 0;
}
.review-panel { order: -1; }
.side-panel {
  display: grid;
}
.panel,
.review-panel,
.card {
  border-radius: 8px;
}
.panel__head {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  align-items: center;
  font-size: .86rem;
}
.panel__head strong {
  font-size: .9rem;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.metric span {
  display: block;
}
.metric strong {
  display: block;
}
.batch-facts {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: .45rem .7rem;
  margin: .95rem 0 0;
  padding-top: .85rem;
  border-top: 1px solid var(--line);
  font-size: .86rem;
}
.batch-facts dt { color: var(--muted); }
.batch-facts dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.history-list {
  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
}
.history-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .15rem .7rem;
  align-content: start;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.history-item strong {
  font-size: .86rem;
}
.history-item small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.review-toolbar {
  z-index: 5;
  display: grid;
  gap: .85rem;
}
.review-toolbar > * {
  min-width: 0;
}
.review-toolbar h2 {
  margin-bottom: 0;
}
.filters {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-padding-inline: .15rem;
  -webkit-overflow-scrolling: touch;
}
.filters::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(148, 163, 184, .12);
}
.filters::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(91, 140, 255, .52);
}
.filter {
  flex: 0 0 auto;
  font-size: .86rem;
  cursor: pointer;
}
.filter[aria-pressed="true"] {
  border-color: rgba(91, 140, 255, .55);
}

.content-grid {
  display: grid;
}
.card {
  overflow: hidden;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(.5rem); }
  to { opacity: 1; transform: none; }
}
.card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  font-size: .78rem;
}
.card__meta-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .55rem;
  min-width: 0;
}
.card__delete {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: .4rem .68rem;
  border: 1px solid rgba(255, 107, 107, .38);
  font-size: .78rem;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.card__delete:disabled {
  cursor: not-allowed;
  opacity: .55;
}
.review-state {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .78rem;
}
.review-state__dot {
  width: .5rem;
  height: .5rem;
  flex: 0 0 auto;
  border-radius: 50%;
}
.review-state time {
  margin-left: auto;
  color: var(--muted);
  white-space: nowrap;
}
.copy-display {
  display: grid;
}
.copy-display__section {
  min-width: 0;
}
.copy-display__label {
  display: block;
  margin-bottom: .35rem;
  font-size: .78rem;
}
.copy-display__title,
.copy-display__body {
  margin: 0;
  padding: .72rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 12, 20, .36);
  color: var(--text);
  overflow-wrap: anywhere;
}
.copy-display__title {
  line-height: 1.5;
}
.copy-display__body {
  font-size: .95rem;
  white-space: pre-wrap;
}
.copy-display__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .42rem;
  min-height: 2.75rem;
  padding: .58rem .65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 12, 20, .36);
  overflow-wrap: anywhere;
}
.tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 1.75rem;
  padding: .2rem .48rem;
  border: 1px solid rgba(91, 140, 255, .28);
  border-radius: 999px;
  font-size: .78rem;
  overflow-wrap: anywhere;
}
.editor {
  display: grid;
  gap: .7rem;
  margin-top: .8rem;
}
.editor__field {
  display: grid;
  gap: .35rem;
  font-size: .78rem;
}
.editor__field small {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 500;
}
.editor__field input,
.editor__field textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: .68rem .72rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  outline: 0;
  background: rgba(7, 12, 20, .56);
  color: var(--text);
  font: 500 1rem/1.55 "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.editor__field textarea {
  min-height: 7.5rem;
  resize: vertical;
  overflow-y: auto;
}
.editor__field textarea.editor__tags {
  min-height: 3.25rem;
  resize: vertical;
}
.editor__field input:disabled,
.editor__field textarea:disabled {
  opacity: 1;
}
.card__facts {
  display: grid;
  grid-template-columns: 2.8rem 1fr;
  gap: .22rem .65rem;
  margin: .9rem 0 0;
  padding-top: .8rem;
  border-top: 1px solid var(--line);
  font-size: .82rem;
}
.card__facts dt { color: var(--muted); }
.card__facts dd {
  margin: 0;
}
.card__media {
  min-height: 11rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(82%, 1fr);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.gallery__item {
  margin: 0;
  overflow: hidden;
  scroll-snap-align: start;
}
.gallery__preview {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.gallery__item img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 38rem;
  object-fit: contain;
}
.gallery__item figcaption {
  display: flex;
  justify-content: space-between;
  gap: .65rem;
  padding: .55rem .65rem;
  font-size: .76rem;
}
.gallery__item figcaption a {
  font-weight: 700;
}
.image-feedback {
  padding: .7rem;
  border-top: 1px solid var(--line);
}
.image-feedback__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  margin-bottom: .55rem;
  font-size: .8rem;
}
.image-feedback__head span {
  color: var(--muted);
  font-size: .74rem;
}
.image-feedback__list {
  display: grid;
  gap: .45rem;
  margin: 0 0 .6rem;
  padding: 0;
  list-style: none;
}
.image-feedback__list li {
  padding: .55rem .62rem;
  border-left: .18rem solid rgba(242, 184, 75, .7);
}
.image-feedback__list p {
  margin: 0;
  font-size: .86rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.image-feedback__list time {
  display: block;
  margin-top: .28rem;
  color: var(--muted);
  font-size: .7rem;
}
.image-feedback__composer {
  display: grid;
  gap: .5rem;
}
.image-feedback__composer textarea {
  width: 100%;
  min-height: 4.75rem;
  max-height: 11.25rem;
  padding: .62rem .68rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  outline: 0;
  resize: vertical;
  background: rgba(5, 10, 17, .72);
  color: var(--text);
  font: 500 1rem/1.5 "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
.action--feedback {
  width: 100%;
}
.media-empty {
  display: grid;
  min-height: 11rem;
  place-items: center;
  align-content: center;
  gap: .25rem;
  padding: 1.4rem;
  color: var(--muted);
  text-align: center;
  background-size: 1.3rem 1.3rem;
}
.media-empty strong { color: var(--amber); }
.media-empty span { font-size: .82rem; }
.card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
  padding: .75rem .95rem .95rem;
}
.review-actions {
  display: grid;
  grid-template-columns: minmax(4.5rem, .55fr) minmax(0, 1.45fr);
  gap: .45rem .55rem;
  margin-top: .75rem;
}
.review-actions--locked {
  grid-template-columns: 1fr;
}
.review-actions .action {
  width: 100%;
}
.review-actions small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: .74rem;
  text-align: center;
}
.action:disabled {
  cursor: not-allowed;
}
.action[aria-disabled="true"] {
  opacity: .45;
  pointer-events: none;
}

.image-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(4, 7, 12, .76);
  backdrop-filter: blur(.45rem);
}
.image-modal.is-open { display: flex; }
.image-modal__img {
  max-width: min(94vw, 58rem);
  max-height: 86vh;
  object-fit: contain;
  background: #fff;
}
.image-modal__close,
.image-modal__download {
  position: fixed;
  z-index: 51;
  border: 1px solid var(--line-strong);
  font-weight: 800;
}
.confirm-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(4, 7, 12, .78);
  backdrop-filter: blur(.5rem);
}
.confirm-modal.is-open { display: flex; }
.confirm-modal__panel {
  width: min(100%, 29rem);
}
.confirm-modal__eyebrow {
  display: block;
  margin-bottom: .45rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
}
.confirm-modal__panel h2 {
  margin-bottom: .48rem;
  font-size: 1.25rem;
}
.confirm-modal__panel p {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.6;
}
.confirm-modal__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
}
.image-modal__close {
  top: 1rem;
  right: 1rem;
  width: 2.7rem;
  height: 2.7rem;
  cursor: pointer;
}
.image-modal__download {
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%);
  padding: .8rem 1rem;
  text-decoration: none;
}
.toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 1rem;
  transform: translate(-50%, 4rem);
  padding: .65rem .9rem;
  border: 1px solid var(--line-strong);
  opacity: 0;
  transition: .22s ease;
  font-size: .9rem;
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.empty-note {
  margin: 0;
  padding: .85rem;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
}

@media (min-width: 54rem) {
  .app-shell { padding: 1.25rem; }
  .workspace {
    align-items: start;
  }
  .review-panel { order: initial; }
  .panel--history {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  .panel--history .panel__head {
    flex: 0 0 auto;
  }
  .history-list {
    overflow-y: auto;
    overscroll-behavior-y: contain;
    padding-right: .35rem;
    scrollbar-gutter: stable;
    scrollbar-width: thin;
  }
  .history-list:focus-visible {
    outline: 2px solid rgba(51, 214, 200, .72);
    outline-offset: .22rem;
  }
  .history-list::-webkit-scrollbar {
    width: .42rem;
  }
  .history-list::-webkit-scrollbar-track {
    border-radius: 999px;
  }
  .history-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
  }
  .review-toolbar {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: end;
  }
  .image-feedback__composer {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
  .action--feedback {
    width: auto;
    min-width: 6.5rem;
  }
}

@media (min-width: 82rem) {
  .gallery { grid-auto-columns: minmax(70%, 1fr); }
}

@media (max-width: 39rem) {
  .topbar {
    display: grid;
  }
  .topbar__actions {
    justify-content: stretch;
  }
  .topbar__actions .link-button {
    flex: 1 1 auto;
  }
  .card__actions {
    grid-template-columns: 1fr;
  }
  .review-state {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .review-state time {
    width: 100%;
    margin-left: .95rem;
  }
  .card__meta {
    align-items: flex-start;
  }
  .card__meta-actions {
    flex-wrap: wrap;
  }
  .confirm-modal__actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

/* Local Apple-style preview layer. Kept separate so the visual experiment is easy to review or remove. */
:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --panel: rgba(255, 255, 255, .72);
  --panel-strong: rgba(255, 255, 255, .9);
  --line: rgba(15, 23, 42, .08);
  --line-strong: rgba(15, 23, 42, .14);
  --text: #1d1d1f;
  --muted: #6e6e73;
  --soft: #3a3a3c;
  --cyan: #007aff;
  --green: #248a3d;
  --amber: #b25000;
  --red: #ff3b30;
  --blue: #007aff;
  --shadow: 0 1rem 3.5rem rgba(31, 35, 48, .08), 0 .12rem .7rem rgba(31, 35, 48, .05);
  --shadow-raised: 0 1.45rem 4.5rem rgba(31, 35, 48, .13), 0 .25rem 1rem rgba(31, 35, 48, .07);
}

html {
  background: var(--bg);
}

body {
  position: relative;
  min-height: 100dvh;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", system-ui, sans-serif;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .92) .7px, transparent .7px);
  background-size: .45rem .45rem;
  opacity: .18;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

button,
a,
input,
textarea {
  font: inherit;
}

button,
.action,
.link-button,
.history-item,
.filter,
.gallery__preview {
  touch-action: manipulation;
}

button:active,
.action:active,
.link-button:active,
.history-item:active,
.filter:active,
.gallery__preview:active {
  transform: scale(.975);
  transition: transform 100ms ease-out;
}

:focus-visible {
  outline: .19rem solid rgba(0, 122, 255, .58);
  outline-offset: .18rem;
}

.app-shell {
  width: min(100%, 98rem);
  padding: clamp(.75rem, 2vw, 1.6rem);
}

.topbar {
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 1.5rem;
}

.topbar__identity {
  display: flex;
  align-items: flex-start;
}

.window-controls {
  display: flex;
  flex: 0 0 auto;
  gap: .42rem;
  padding-top: .18rem;
}

.window-controls span {
  width: .72rem;
  height: .72rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .07);
}

.window-controls span:nth-child(1) { background: #ff5f57; }
.window-controls span:nth-child(2) { background: #febc2e; }
.window-controls span:nth-child(3) { background: #28c840; }

.eyebrow {
  margin-bottom: .38rem;
  color: var(--blue);
  font: 700 .68rem/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  letter-spacing: .11em;
}

h1 {
  color: #111113;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: 720;
  letter-spacing: -.035em;
  line-height: 1.08;
}

.topbar__subtitle {
  margin: .42rem 0 0;
  color: var(--muted);
  font-size: .86rem;
  letter-spacing: -.006em;
}

.link-button,
.action {
  min-height: 2.75rem;
  padding: .6rem .9rem;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: .82rem;
  color: #343438;
  font-weight: 650;
  transition: transform 180ms cubic-bezier(.2, .8, .2, 1), background 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.link-button:hover,
.action:hover {
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 .4rem 1.1rem rgba(31, 35, 48, .09);
}

.link-button--primary:hover,
.action--primary:hover {
  background: #087ff5;
  box-shadow: 0 .62rem 1.5rem rgba(0, 122, 255, .28);
}

.workspace {
  gap: 1.1rem;
  padding-top: 1.1rem;
}

.side-panel {
  gap: 1.1rem;
}

.panel,
.review-panel,
.card {
  border: 1px solid rgba(255, 255, 255, .8);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(1.45rem) saturate(155%);
  -webkit-backdrop-filter: blur(1.45rem) saturate(155%);
}

.panel,
.card {
  border-radius: 1.35rem;
}

.review-panel {
  border-radius: 1.65rem;
}

.panel {
  padding: 1rem;
}

.panel__head {
  margin-bottom: .95rem;
  color: var(--muted);
}

.panel__head strong {
  color: var(--text);
  font-weight: 680;
}

.metrics {
  gap: .55rem;
}

.metric {
  border: 1px solid rgba(15, 23, 42, .055);
  border-radius: 1rem;
}

.metric span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 560;
}

.metric strong {
  color: var(--blue);
  font-weight: 720;
}

.batch-facts {
  border-top-color: var(--line);
}

.batch-facts dd {
  color: var(--text);
}

.history-list {
  gap: .55rem;
}

.history-item {
  min-height: 4.75rem;
  padding: .72rem .78rem;
  border: 1px solid transparent;
  border-radius: 1rem;
  color: var(--soft);
  transition: transform 180ms cubic-bezier(.2, .8, .2, 1), background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.history-item:hover {
  box-shadow: 0 .35rem 1rem rgba(31, 35, 48, .06);
}

.history-item[aria-pressed="true"] {
  border-color: rgba(0, 122, 255, .18);
  background: rgba(0, 122, 255, .1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .58);
}

.history-item strong {
  color: var(--blue);
}

.review-panel {
  overflow: clip;
}

.review-toolbar h2 {
  color: #111113;
  font-size: 1.45rem;
  font-weight: 720;
  letter-spacing: -.03em;
}

.filters {
  gap: .38rem;
  padding: .28rem;
  border-radius: .95rem;
  scrollbar-color: rgba(0, 122, 255, .45) transparent;
}

.filter {
  min-height: 2.45rem;
  padding: .42rem .76rem;
  border: 0;
  border-radius: .72rem;
  background: transparent;
  color: #57575d;
  font-weight: 620;
  transition: transform 180ms cubic-bezier(.2, .8, .2, 1), background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.filter[aria-pressed="true"] {
  color: #111113;
}

.card {
  box-shadow: 0 .75rem 2.6rem rgba(31, 35, 48, .08), inset 0 1px 0 rgba(255, 255, 255, .96);
  animation: apple-rise .42s cubic-bezier(.2, .8, .2, 1) both;
  transition: transform 260ms cubic-bezier(.2, .8, .2, 1), box-shadow 260ms ease;
}

.card:not(.card--focused):hover {
  transform: translateY(-.15rem);
  box-shadow: var(--shadow-raised);
}

@keyframes apple-rise {
  from {
    opacity: 0;
    transform: translateY(.8rem) scale(.985);
    filter: blur(.22rem);
  }
  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

.card__copy {
  padding: 1rem;
}

.card__meta {
  color: var(--muted);
  font-weight: 560;
}

.card__delete {
  border-color: transparent;
  border-radius: .78rem;
  background: rgba(255, 59, 48, .09);
  color: #d92d25;
  font-weight: 650;
}

.card__delete:hover {
  border-color: transparent;
  background: rgba(255, 59, 48, .15);
  color: #c1221b;
}

.review-state {
  min-height: 2.4rem;
  margin-top: .72rem;
  padding: .5rem .68rem;
  border: 1px solid rgba(255, 149, 0, .12);
  border-radius: .85rem;
  background: rgba(255, 149, 0, .09);
  color: #9a4c00;
}

.review-state--locked {
  border-color: rgba(52, 199, 89, .12);
  background: rgba(52, 199, 89, .09);
  color: #1f7536;
}

.review-state__dot {
  background: #ff9500;
  box-shadow: 0 0 0 .22rem rgba(255, 149, 0, .12);
}

.review-state--locked .review-state__dot {
  background: #34c759;
  box-shadow: 0 0 0 .22rem rgba(52, 199, 89, .12);
}

.copy-display {
  gap: .82rem;
  margin-top: .85rem;
}

.copy-display__label {
  color: var(--muted);
  font-weight: 600;
}

.copy-display__title,
.copy-display__body,
.copy-display__tags {
  border: 1px solid rgba(15, 23, 42, .055);
  border-radius: .95rem;
  background: rgba(245, 245, 247, .78);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .88);
}

.copy-display__title {
  font-size: 1.06rem;
  font-weight: 650;
  letter-spacing: -.012em;
}

.copy-display__body {
  line-height: 1.7;
}

.tag {
  border-color: rgba(0, 122, 255, .08);
  background: rgba(0, 122, 255, .085);
  color: #075cac;
  font-weight: 620;
}

.editor__field {
  color: var(--soft);
  font-weight: 620;
}

.editor__field input,
.editor__field textarea,
.image-feedback__composer textarea {
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: .9rem;
  background: rgba(247, 247, 249, .92);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", system-ui, sans-serif;
}

.editor__field input:focus,
.editor__field textarea:focus {
  border-color: rgba(0, 122, 255, .48);
  background: #fff;
  box-shadow: 0 0 0 .23rem rgba(0, 122, 255, .11);
}

.editor__field input:disabled,
.editor__field textarea:disabled {
  border-color: rgba(52, 199, 89, .09);
  background: rgba(52, 199, 89, .04);
  color: #434347;
  -webkit-text-fill-color: #434347;
}

.card__facts {
  border-top-color: var(--line);
}

.card__facts dd {
  color: var(--soft);
}

.card__media {
  border-color: var(--line);
  background: rgba(245, 245, 247, .72);
}

.gallery {
  gap: .75rem;
  padding: .82rem;
}

.gallery__item {
  border: 1px solid rgba(15, 23, 42, .075);
  border-radius: 1.05rem;
  background: #fff;
  box-shadow: 0 .35rem 1.2rem rgba(31, 35, 48, .06);
}

.gallery__item img {
  background: #f5f5f7;
}

.gallery__item figcaption {
  color: var(--muted);
}

.gallery__item figcaption a {
  color: var(--blue);
}

.image-feedback {
  border-top-color: var(--line);
  background: rgba(247, 247, 249, .82);
}

.image-feedback__head {
  color: var(--soft);
}

.image-feedback__list li {
  border-left-color: rgba(255, 149, 0, .72);
  border-radius: 0 .8rem .8rem 0;
  background: rgba(255, 149, 0, .08);
}

.image-feedback__list p {
  color: #5d3a13;
}

.image-feedback__composer textarea:focus {
  border-color: rgba(255, 149, 0, .48);
  background: #fff;
  box-shadow: 0 0 0 .23rem rgba(255, 149, 0, .1);
}

.action--feedback {
  border-color: transparent;
  background: rgba(255, 149, 0, .12);
  color: #9a4c00;
}

.media-empty {
  background:
    linear-gradient(135deg, transparent 48%, rgba(118, 118, 128, .08) 49%, rgba(118, 118, 128, .08) 51%, transparent 52%),
    rgba(245, 245, 247, .8);
}

.action--confirm {
  border-color: transparent;
  background: #34c759;
  color: #fff;
  box-shadow: 0 .38rem 1rem rgba(52, 199, 89, .19);
}

.image-modal,
.confirm-modal {
  background: rgba(30, 30, 32, .34);
  backdrop-filter: blur(1.35rem) saturate(145%);
  -webkit-backdrop-filter: blur(1.35rem) saturate(145%);
}

.image-modal__img {
  border-radius: 1.4rem;
  box-shadow: 0 2rem 7rem rgba(0, 0, 0, .32);
}

.confirm-modal__panel {
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, .88);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 2rem 7rem rgba(0, 0, 0, .2);
  backdrop-filter: blur(1.75rem) saturate(170%);
  -webkit-backdrop-filter: blur(1.75rem) saturate(170%);
}

.confirm-modal__panel h2 {
  color: var(--text);
  letter-spacing: -.025em;
}

.confirm-modal__eyebrow {
  color: #9a4c00;
}

.image-modal__close,
.image-modal__download {
  border-color: rgba(255, 255, 255, .72);
  border-radius: .9rem;
  box-shadow: 0 .55rem 1.5rem rgba(0, 0, 0, .14);
}

.image-modal__close {
  background: rgba(255, 255, 255, .88);
  color: var(--text);
  backdrop-filter: blur(1rem);
  -webkit-backdrop-filter: blur(1rem);
}

.image-modal__download {
  background: rgba(0, 122, 255, .92);
  color: #fff;
}

.toast {
  border-color: rgba(255, 255, 255, .34);
  border-radius: .9rem;
  background: rgba(34, 34, 36, .88);
  color: #fff;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, .18);
  backdrop-filter: blur(1rem) saturate(155%);
  -webkit-backdrop-filter: blur(1rem) saturate(155%);
}

.empty-note {
  border-color: rgba(15, 23, 42, .12);
  border-radius: 1rem;
}

@media (min-width: 54rem) {

  .history-list {
    scrollbar-color: rgba(0, 122, 255, .38) rgba(118, 118, 128, .08);
  }

  .history-list:focus-visible {
    outline-color: rgba(0, 122, 255, .58);
  }

  .history-list::-webkit-scrollbar-track {
    background: rgba(118, 118, 128, .08);
  }

  .history-list::-webkit-scrollbar-thumb {
    background: rgba(0, 122, 255, .38);
  }
}

@media (max-width: 39rem) {
  .app-shell {
    padding: .65rem;
  }

  .topbar {
    top: .45rem;
    gap: .85rem;
    padding: .9rem;
    border-radius: 1.25rem;
  }

  .topbar__identity {
    gap: .72rem;
  }

  .window-controls {
    padding-top: .12rem;
  }

  .window-controls span {
    width: .62rem;
    height: .62rem;
  }

  .topbar__subtitle {
    font-size: .78rem;
  }

  .workspace {
    gap: .75rem;
    padding-top: .75rem;
  }

  .review-panel {
    border-radius: 1.3rem;
  }

  .review-toolbar {
    padding: .9rem;
  }

  .card {
    border-radius: 1.15rem;
  }

  .card:hover {
    transform: none;
  }

  .metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .metric {
    min-height: 4.5rem;
    padding: .62rem .52rem;
  }

  .metric span {
    font-size: .67rem;
  }

  .metric strong {
    font-size: 1.42rem;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .topbar,
  .panel,
  .review-panel,
  .card,
  .review-toolbar,
  .confirm-modal__panel {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
