:root {
  color-scheme: dark;
  --black: #000;
  --surface: #080808;
  --surface-2: #0d0d0d;
  --surface-3: #121212;
  --white: #f4f4f1;
  --muted: rgba(255, 255, 255, 0.46);
  --dim: rgba(255, 255, 255, 0.23);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.2);
  --sidebar-width: 252px;
  font-family:
    Inter, "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: var(--black);
}

body {
  min-height: 100vh;
  overflow: hidden;
  color: var(--white);
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible,
[tabindex]:focus-visible,
.screenshot-card:focus-visible,
.inbox-card:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.grain {
  position: fixed;
  z-index: 200;
  inset: 0;
  opacity: 0.018;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.85'/%3E%3C/svg%3E");
}

.app-header {
  position: relative;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 66px;
  padding: 0 27px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.87);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-self: start;
  padding: 0;
  border: 0;
  cursor: pointer;
  color: var(--white);
  background: none;
  font-size: 16px;
  font-weight: 730;
  letter-spacing: -0.035em;
}

.brand-mark {
  position: relative;
  display: block;
  width: 27px;
  height: 27px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 7px;
  transform: rotate(-4deg);
}

.brand-mark i {
  position: absolute;
  top: 5px;
  bottom: 5px;
  width: 7px;
  border: 1px solid #fff;
  border-radius: 2px;
}

.brand-mark i:first-child {
  left: 5px;
  background: #fff;
}

.brand-mark i:last-child {
  right: 5px;
}

.header-context {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--dim);
  font-size: 10px;
  letter-spacing: 0.02em;
}

.header-context i {
  color: rgba(255, 255, 255, 0.12);
  font-style: normal;
}

.header-context strong {
  color: rgba(255, 255, 255, 0.68);
  font-weight: 620;
}

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-self: end;
}

.local-badge {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-right: 7px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.local-badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.05);
}

.quiet-button,
.compare-button,
.toolbar-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.025);
  font-size: 10px;
  font-weight: 650;
}

.quiet-button:hover,
.toolbar-button:hover {
  color: #fff;
  border-color: var(--line-strong);
}

.compare-button {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #000;
  border-color: #fff;
  background: #fff;
}

.compare-button span {
  padding: 3px 5px;
  border-radius: 4px;
  color: #fff;
  background: #000;
  font-size: 8px;
}

.compare-button:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.dot-canvas {
  position: relative;
  min-height: calc(100vh - 66px);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at center, transparent 0 25%, rgba(0, 0, 0, 0.18) 58%, #000 100%),
    radial-gradient(circle, rgba(255, 255, 255, 0.15) 0 0.7px, transparent 0.9px) 0 0 / 24px 24px,
    #000;
}

.dot-canvas::after {
  position: absolute;
  z-index: -2;
  inset: -30%;
  content: "";
  opacity: 0.22;
  pointer-events: none;
  background: repeating-radial-gradient(
    ellipse at center,
    transparent 0 95px,
    rgba(255, 255, 255, 0.06) 96px,
    transparent 97px 146px
  );
  mask-image: radial-gradient(ellipse, #000, transparent 56%);
  animation: slowTurn 32s linear infinite;
}

@keyframes slowTurn {
  to {
    transform: rotate(360deg);
  }
}

.orbit-field {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
}

.orbit-a {
  width: min(80vw, 1100px);
  aspect-ratio: 2.15 / 1;
  transform: translate(-50%, -50%) rotate(-8deg);
}

.orbit-b {
  width: min(58vw, 790px);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%) rotate(21deg);
}

.signal {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  box-shadow:
    0 0 0 5px rgba(255, 255, 255, 0.035),
    0 0 22px rgba(255, 255, 255, 0.24);
}

.signal-a {
  top: 29%;
  left: 18%;
}

.signal-b {
  right: 24%;
  bottom: 20%;
}

.intro-view {
  display: grid;
  place-items: center;
}

.intro-content {
  margin-top: -36px;
  padding: 30px;
  text-align: center;
}

.overline {
  margin: 0 0 21px;
  color: rgba(255, 255, 255, 0.34);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.intro-content h1 {
  margin: 0;
  font-size: clamp(58px, 7.8vw, 116px);
  font-weight: 520;
  line-height: 0.91;
  letter-spacing: -0.075em;
}

.intro-content > p:not(.overline) {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(13px, 1.3vw, 17px);
}

.primary-pill {
  display: inline-flex;
  gap: 27px;
  align-items: center;
  height: 52px;
  margin-top: 39px;
  padding: 0 9px 0 21px;
  border: 1px solid #fff;
  border-radius: 999px;
  color: #000;
  cursor: pointer;
  background: #fff;
  font-size: 11px;
  font-weight: 740;
  transition: transform 160ms ease;
}

.primary-pill:hover {
  transform: translateY(-2px);
}

.primary-pill i {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #000;
  font-size: 17px;
  font-style: normal;
}

.primary-pill.small {
  height: 44px;
  margin: 0;
  padding-left: 18px;
}

.primary-pill.small i {
  width: 28px;
  height: 28px;
}

.privacy-note {
  position: absolute;
  bottom: 26px;
  left: 50%;
  display: flex;
  gap: 7px;
  align-items: center;
  margin: 0;
  color: rgba(255, 255, 255, 0.2);
  font-size: 8px;
  transform: translateX(-50%);
}

.privacy-note i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.46);
}

.projects-view {
  overflow-y: auto;
}

.projects-shell {
  width: min(1140px, calc(100% - 64px));
  margin: 0 auto;
  padding: 76px 0;
}

.projects-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.projects-heading .overline {
  margin-bottom: 11px;
}

.projects-heading h1 {
  margin: 0;
  font-size: clamp(48px, 6vw, 82px);
  font-weight: 520;
  line-height: 0.9;
  letter-spacing: -0.065em;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 25px;
}

.project-card {
  position: relative;
  display: grid;
  min-height: 210px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  cursor: pointer;
  text-align: left;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.1) 0 0.65px, transparent 0.9px) 0 0 / 18px 18px,
    rgba(6, 6, 6, 0.86);
  transition:
    border-color 160ms ease,
    transform 160ms ease;
}

.project-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

.project-card-number {
  color: var(--dim);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
}

.project-card-main {
  align-self: end;
}

.project-card-main span {
  display: inline-flex;
  margin-bottom: 9px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 560;
  letter-spacing: -0.04em;
}

.project-card p {
  margin: 0;
  color: var(--dim);
  font-size: 9px;
}

.no-projects {
  padding: 68px 0;
  text-align: center;
}

.no-projects > span {
  color: var(--dim);
  font-family: Georgia, serif;
  font-size: 11px;
  font-style: italic;
}

.no-projects h2 {
  margin: 17px 0 9px;
  font-size: 29px;
  font-weight: 540;
  letter-spacing: -0.04em;
}

.no-projects p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.text-action {
  margin-top: 21px;
  padding: 0 0 4px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  background: none;
  font-size: 10px;
}

.workspace-view {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  height: calc(100vh - 66px);
}

.sidebar {
  position: relative;
  z-index: 20;
  display: flex;
  min-width: 0;
  padding: 22px 13px 14px;
  border-right: 1px solid var(--line);
  background: #060606;
  flex-direction: column;
}

.project-block {
  padding: 3px 7px 21px;
  border-bottom: 1px solid var(--line);
}

.sidebar-label {
  display: block;
  color: rgba(255, 255, 255, 0.24);
  font-size: 8px;
  font-weight: 760;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-title-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 9px;
}

.project-title-row h2 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-icon {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 5px;
  color: var(--dim);
  cursor: pointer;
  background: none;
}

.mini-icon:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.mini-icon svg {
  width: 13px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.template-chip {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--dim);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.boards-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 7px 9px;
}

.boards-heading button {
  width: 25px;
  height: 25px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  background: var(--surface-2);
}

.boards-heading button:hover {
  color: #fff;
  border-color: var(--line-strong);
}

.boards-list {
  display: grid;
  gap: 3px;
}

.board-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  padding: 4px 6px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  background: transparent;
}

.board-row:hover {
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.025);
}

.board-row.active {
  color: #fff;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.055);
}

.board-index {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--dim);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 7px;
}

.board-row.active .board-index {
  color: #000;
  border-color: #fff;
  background: #fff;
}

.board-name {
  overflow: hidden;
  font-size: 10px;
  font-weight: 570;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-count {
  color: var(--dim);
  font-size: 8px;
}

.sidebar-tip {
  margin: auto 4px 12px;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 9px;
}

.sidebar-tip span {
  color: rgba(255, 255, 255, 0.42);
  font-size: 8px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sidebar-tip p {
  margin: 8px 0 0;
  color: var(--dim);
  font-size: 8px;
  line-height: 1.55;
}

.back-projects {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 36px;
  padding: 0 8px;
  border: 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  background: none;
  font-size: 9px;
}

.back-projects span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--dim);
  font-size: 8px;
}

.board-area {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: 82px minmax(0, 1fr);
  background: #000;
}

.board-toolbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(3, 3, 3, 0.92);
}

.board-kicker {
  margin: 0 0 4px;
  color: var(--dim);
  font-size: 7px;
  font-weight: 760;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.board-toolbar h1 {
  display: inline;
  margin: 0;
  font-size: 19px;
  font-weight: 590;
  letter-spacing: -0.035em;
}

.board-toolbar > div:first-child > span {
  margin-left: 8px;
  color: var(--dim);
  font-size: 8px;
}

.board-actions {
  display: flex;
  gap: 7px;
}

.toolbar-button.primary {
  color: #000;
  border-color: #fff;
  background: #fff;
}

.canvas-viewport {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  background: #030303;
}

.free-canvas {
  position: relative;
  width: max(100%, 2400px);
  height: max(100%, 1500px);
  overflow: hidden;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.16) 0 0.7px, transparent 0.9px) 0 0 / 22px 22px,
    #050505;
}

.free-canvas::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.025), transparent 22%),
    radial-gradient(circle at 72% 66%, rgba(255, 255, 255, 0.018), transparent 27%);
}

.canvas-empty {
  position: absolute;
  top: min(34vh, 330px);
  left: min(35vw, 500px);
  color: rgba(255, 255, 255, 0.16);
  text-align: center;
  transform: translate(-50%, -50%);
}

.drop-glyph {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto 18px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
}

.drop-glyph svg {
  width: 27px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.24);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.2;
}

.canvas-empty h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 510;
  letter-spacing: -0.055em;
}

.canvas-empty p {
  margin: 13px 0 0;
  color: rgba(255, 255, 255, 0.19);
  font-size: 9px;
}

kbd {
  display: inline-grid;
  height: 18px;
  min-width: 20px;
  padding: 0 4px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  font-size: 8px;
}

.screenshot-layer {
  position: absolute;
  inset: 0;
}

.screenshot-card {
  position: absolute;
  width: 280px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  cursor: grab;
  background: rgba(12, 12, 12, 0.96);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.42);
  user-select: none;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.screenshot-card:active {
  cursor: grabbing;
}

.screenshot-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.screenshot-card.selected {
  border-color: #fff;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 0 2px rgba(255, 255, 255, 0.13);
}

.card-image {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #101010;
}

.card-image img {
  display: block;
  width: 100%;
  pointer-events: none;
}

.card-loading {
  display: grid;
  height: 160px;
  place-items: center;
  color: var(--dim);
  font-size: 8px;
}

.select-dot {
  position: absolute;
  z-index: 4;
  top: 11px;
  left: 11px;
  display: grid;
  width: 22px;
  height: 22px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: transparent;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.62);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 10px;
}

.selected .select-dot {
  color: #000;
  border-color: #fff;
  background: #fff;
}

.card-menu-button {
  position: absolute;
  z-index: 4;
  top: 11px;
  right: 11px;
  width: 25px;
  height: 22px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  background: rgba(0, 0, 0, 0.64);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 12px;
}

.card-footer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 9px 6px 5px;
}

.version-number {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--dim);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 7px;
}

.card-copy {
  min-width: 0;
}

.card-copy strong,
.card-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-copy strong {
  margin-bottom: 3px;
  font-size: 9px;
  font-weight: 610;
}

.card-copy span {
  color: var(--dim);
  font-size: 7px;
}

.card-drag-hint {
  color: rgba(255, 255, 255, 0.16);
  font-size: 11px;
  letter-spacing: -2px;
}

.card-popover {
  position: absolute;
  z-index: 30;
  top: 38px;
  right: 8px;
  display: grid;
  min-width: 112px;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: rgba(12, 12, 12, 0.98);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

.card-popover button {
  min-height: 29px;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  background: none;
  font-size: 8px;
}

.card-popover button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.card-popover button.danger:hover {
  color: #ff8f83;
}

.selection-dock {
  position: absolute;
  z-index: 40;
  bottom: 22px;
  left: 50%;
  display: grid;
  grid-template-columns: auto minmax(160px, auto) auto auto;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 8px 9px 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(9, 9, 9, 0.92);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.selection-stack {
  display: flex;
  padding-left: 8px;
}

.selection-stack img {
  width: 34px;
  height: 34px;
  margin-left: -8px;
  object-fit: cover;
  border: 2px solid #0a0a0a;
  border-radius: 6px;
}

.selection-dock p {
  margin: 0;
}

.selection-dock p strong,
.selection-dock p span {
  display: block;
}

.selection-dock p strong {
  margin-bottom: 3px;
  font-size: 9px;
}

.selection-dock p span {
  color: var(--dim);
  font-size: 7px;
}

.selection-dock > button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  cursor: pointer;
  background: var(--surface-2);
  font-size: 8px;
}

.selection-dock .dock-compare {
  color: #000;
  border-color: #fff;
  background: #fff;
}

.selection-dock button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.drop-overlay {
  position: fixed;
  z-index: 180;
  inset: 66px 0 0;
  display: none;
  place-items: center;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.18) 0 0.7px, transparent 0.9px) 0 0 / 22px 22px,
    rgba(0, 0, 0, 0.91);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.drop-overlay.visible {
  display: grid;
}

.drop-overlay::before {
  position: absolute;
  inset: 24px;
  border: 1px dashed rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  content: "";
}

.drop-overlay div {
  text-align: center;
}

.drop-overlay strong,
.drop-overlay span {
  display: block;
}

.drop-overlay strong {
  color: rgba(255, 255, 255, 0.28);
  font-size: clamp(55px, 9vw, 130px);
  font-weight: 510;
  letter-spacing: -0.07em;
}

.drop-overlay span {
  margin-top: 15px;
  color: var(--muted);
  font-size: 9px;
}

.modal {
  width: min(640px, calc(100% - 30px));
  max-height: calc(100vh - 40px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  color: var(--white);
  background: #0b0b0b;
  box-shadow: 0 40px 130px rgba(0, 0, 0, 0.8);
}

.modal::backdrop,
.compare-modal::backdrop {
  background: rgba(0, 0, 0, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.modal form {
  padding: 24px;
}

.small-modal {
  width: min(430px, calc(100% - 30px));
}

.modal-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 28px;
}

.modal-heading.compact {
  margin-bottom: 23px;
}

.modal-heading span {
  display: block;
  margin-bottom: 7px;
  color: var(--dim);
  font-size: 8px;
  font-weight: 760;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.modal-heading h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 540;
  letter-spacing: -0.045em;
}

.modal-close {
  width: 31px;
  height: 31px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  cursor: pointer;
  background: var(--surface-2);
  font-size: 18px;
}

.field-label,
.template-fieldset legend {
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 9px;
}

.text-input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #fff;
  background: #050505;
  font-size: 13px;
}

.text-input:focus {
  border-color: rgba(255, 255, 255, 0.45);
}

.template-fieldset {
  margin: 24px 0 0;
  padding: 0;
  border: 0;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.template-option {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 10px;
  min-height: 78px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.015);
}

.template-option:has(input:checked) {
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.045);
}

.template-option input {
  position: absolute;
  opacity: 0;
}

.template-icon {
  display: grid;
  width: 30px;
  height: 30px;
  grid-row: 1 / 3;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-size: 14px;
}

.template-option:has(input:checked) .template-icon {
  color: #000;
  border-color: #fff;
  background: #fff;
}

.template-option strong {
  align-self: end;
  font-size: 10px;
  font-weight: 650;
}

.template-option small {
  align-self: start;
  margin-top: 3px;
  color: var(--dim);
  font-size: 7px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 23px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.modal-footer.right {
  justify-content: flex-end;
}

.modal-footer > span {
  color: var(--dim);
  font-size: 8px;
}

.modal-primary {
  min-height: 39px;
  padding: 0 14px;
  border: 1px solid #fff;
  border-radius: 8px;
  color: #000;
  cursor: pointer;
  background: #fff;
  font-size: 9px;
  font-weight: 700;
}

.compare-modal {
  width: min(1180px, calc(100% - 34px));
  max-height: calc(100vh - 34px);
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  color: #fff;
  background: #070707;
  box-shadow: 0 50px 150px rgba(0, 0, 0, 0.85);
}

.compare-shell {
  display: grid;
  height: min(820px, calc(100vh - 36px));
  grid-template-rows: 68px minmax(0, 1fr) 58px;
}

.compare-shell header,
.compare-shell footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
}

.compare-shell header span {
  display: block;
  margin-bottom: 3px;
  color: var(--dim);
  font-size: 7px;
  font-weight: 760;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.compare-shell header h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 560;
}

.compare-shell header h2 i,
.compare-shell footer i {
  font-style: normal;
}

.compare-shell header h2 b {
  margin: 0 5px;
  color: var(--dim);
  font-weight: 400;
}

.compare-shell header button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  cursor: pointer;
  background: var(--surface-2);
  font-size: 18px;
}

.compare-canvas {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(45deg, #101010 25%, transparent 25%),
    linear-gradient(-45deg, #101010 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #101010 75%),
    linear-gradient(-45deg, transparent 75%, #101010 75%),
    #0a0a0a;
  background-position:
    0 0,
    0 8px,
    8px -8px,
    -8px 0;
  background-size: 16px 16px;
}

.compare-canvas > img,
.compare-clip,
.compare-clip img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.compare-canvas img {
  object-fit: contain;
}

.compare-clip {
  overflow: hidden;
  clip-path: inset(0 0 0 50%);
}

.compare-clip img {
  max-width: none;
}

.compare-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: #fff;
}

.compare-line span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 50%;
  color: #000;
  background: #fff;
  font-size: 11px;
  transform: translate(-50%, -50%);
}

.compare-shell footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
  color: var(--dim);
  font-size: 8px;
}

.compare-shell footer label {
  display: flex;
  gap: 10px;
  align-items: center;
}

.compare-shell footer input {
  width: 190px;
  height: 2px;
  appearance: none;
  background: linear-gradient(90deg, #fff 50%, #333 50%);
}

.compare-shell footer input::-webkit-slider-thumb {
  width: 13px;
  height: 13px;
  appearance: none;
  border: 3px solid #000;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px #fff;
}

.toast {
  position: fixed;
  z-index: 220;
  right: 20px;
  bottom: 20px;
  max-width: min(350px, calc(100% - 40px));
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(13, 13, 13, 0.95);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.55);
  font-size: 9px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(7px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 800px) {
  :root {
    --sidebar-width: 210px;
  }

  .app-header {
    grid-template-columns: 1fr auto;
    padding: 0 16px;
  }

  .header-context {
    display: none !important;
  }

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

  .local-badge {
    display: none;
  }
}

@media (max-width: 580px) {
  body {
    overflow: auto;
  }

  .brand > span:last-child {
    display: none;
  }

  .projects-shell {
    width: calc(100% - 32px);
    padding-top: 45px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .workspace-view {
    grid-template-columns: 1fr;
    height: auto;
  }

  .sidebar {
    min-height: 230px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-tip {
    display: none;
  }

  .board-area {
    min-height: 700px;
  }

  .board-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .board-area {
    grid-template-rows: 124px 650px;
  }

  .template-grid {
    grid-template-columns: 1fr;
  }

  .selection-dock {
    grid-template-columns: auto 1fr auto;
    width: calc(100% - 24px);
  }

  .selection-dock > button:first-of-type {
    display: none;
  }
}

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

/* July 31-1 · multi-version comparison workspace */
.compare-shell {
  height: min(880px, calc(100vh - 36px));
  grid-template-rows: 66px 49px minmax(0, 1fr) 58px 82px;
}

.compare-header {
  border-bottom: 1px solid var(--line);
}

.compare-header h2 {
  font-size: 16px !important;
  letter-spacing: -0.025em;
}

.compare-modes {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 6px 12px;
  border-bottom: 1px solid var(--line);
  background: #090909;
}

.compare-modes button {
  display: flex;
  gap: 7px;
  align-items: center;
  height: 35px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  background: transparent;
  font-size: 8px;
  font-weight: 650;
}

.compare-modes button:hover {
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.03);
}

.compare-modes button.active {
  color: #fff;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.compare-modes button em {
  padding: 2px 4px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 3px;
  color: rgba(255, 255, 255, 0.34);
  font-size: 5px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.mode-glyph {
  position: relative;
  display: block;
  width: 14px;
  height: 13px;
  border: 1px solid currentColor;
  border-radius: 3px;
}

.swipe-glyph::after {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  content: "";
  background: currentColor;
}

.grid-glyph {
  border: 0;
  background:
    linear-gradient(currentColor 0 0) 0 0 / 6px 5px,
    linear-gradient(currentColor 0 0) 100% 0 / 6px 5px,
    linear-gradient(currentColor 0 0) 0 100% / 6px 5px,
    linear-gradient(currentColor 0 0) 100% 100% / 6px 5px;
  background-repeat: no-repeat;
}

.carousel-glyph::before,
.carousel-glyph::after {
  position: absolute;
  top: 3px;
  content: "";
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
}

.carousel-glyph::before {
  left: -5px;
  border-right: 3px solid currentColor;
}

.carousel-glyph::after {
  right: -5px;
  border-left: 3px solid currentColor;
}

.overlay-glyph::before,
.overlay-glyph::after {
  position: absolute;
  width: 9px;
  height: 8px;
  border: 1px solid currentColor;
  border-radius: 2px;
  content: "";
}

.overlay-glyph::before {
  top: -2px;
  left: -2px;
}

.overlay-glyph::after {
  right: -2px;
  bottom: -2px;
  background: rgba(255, 255, 255, 0.16);
}

.flicker-glyph::after {
  position: absolute;
  inset: 2px 4px;
  content: "";
  background: currentColor;
  animation: compareFlickerIcon 1s steps(1) infinite;
}

@keyframes compareFlickerIcon {
  50% {
    opacity: 0.15;
  }
}

.compare-stage-area {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(45deg, #101010 25%, transparent 25%),
    linear-gradient(-45deg, #101010 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #101010 75%),
    linear-gradient(-45deg, transparent 75%, #101010 75%),
    #080808;
  background-position:
    0 0,
    0 8px,
    8px -8px,
    -8px 0;
  background-size: 16px 16px;
}

.compare-view {
  position: absolute;
  inset: 0;
  min-width: 0;
  min-height: 0;
}

.compare-view[data-compare-view="swipe"] .compare-canvas {
  height: 100%;
}

.compare-view[hidden] {
  display: none;
}

.multi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 9px;
  height: 100%;
  padding: 12px;
  overflow: auto;
  align-content: start;
  background: #070707;
}

.multi-grid.dense {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.grid-version {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d0d0d;
}

.grid-version img {
  display: block;
  width: 100%;
  height: clamp(150px, 24vh, 250px);
  object-fit: contain;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.1) 0 0.65px, transparent 0.9px) 0 0 / 18px 18px,
    #090909;
}

.grid-version figcaption {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
}

.grid-version figcaption span {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--dim);
  font-size: 7px;
}

.grid-version figcaption strong {
  min-width: 0;
  overflow: hidden;
  font-size: 8px;
  font-weight: 580;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.carousel-stage {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  gap: 12px;
  align-items: center;
  height: 100%;
  padding: 12px 18px;
  background: #070707;
}

.carousel-stage > button {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  cursor: pointer;
  background: #0f0f0f;
}

.carousel-stage > button:hover {
  color: #000;
  border-color: #fff;
  background: #fff;
}

.carousel-stage figure {
  display: grid;
  min-width: 0;
  height: 100%;
  margin: 0;
  grid-template-rows: minmax(0, 1fr) auto;
}

.carousel-stage figure > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.carousel-stage figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px 0;
}

.carousel-stage figcaption strong {
  font-size: 9px;
  font-weight: 600;
}

.carousel-stage figcaption span {
  color: var(--dim);
  font-size: 8px;
}

.overlay-stage,
.flicker-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #080808;
}

.overlay-stage img,
.flicker-stage > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.overlay-stage img:last-of-type {
  opacity: 0.5;
}

.overlay-stage > span,
.flicker-stage > div {
  position: absolute;
  z-index: 4;
  top: 12px;
  left: 12px;
  padding: 6px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(5, 5, 5, 0.76);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.flicker-stage > div strong,
.flicker-stage > div span {
  display: block;
}

.flicker-stage > div span {
  margin-top: 3px;
  color: var(--dim);
  font-size: 6px;
}

.compare-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  padding: 8px 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #090909;
}

.pair-controls {
  display: flex;
  gap: 7px;
  align-items: center;
}

.pair-controls > span {
  color: var(--dim);
  font-size: 7px;
}

.pair-controls label {
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--dim);
  font-size: 7px;
}

.pair-controls select {
  width: min(150px, 13vw);
  height: 29px;
  padding: 0 24px 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.72);
  background: #101010;
  font-size: 8px;
}

.range-control {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--dim);
  font-size: 7px;
}

.range-control input {
  width: 150px;
  height: 2px;
  appearance: none;
  background: linear-gradient(90deg, #fff 50%, #333 50%);
}

.range-control input::-webkit-slider-thumb {
  width: 13px;
  height: 13px;
  appearance: none;
  border: 3px solid #000;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px #fff;
}

.range-control output {
  min-width: 32px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 7px;
  text-align: right;
}

.keyboard-hint {
  justify-self: end;
  color: rgba(255, 255, 255, 0.18);
  font-size: 7px;
}

.compare-filmstrip {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 8px 13px;
  overflow-x: auto;
  background: #070707;
}

.filmstrip-item {
  position: relative;
  display: grid;
  width: 104px;
  min-width: 104px;
  height: 62px;
  padding: 3px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  background: #111;
}

.filmstrip-item:hover,
.filmstrip-item.active {
  border-color: rgba(255, 255, 255, 0.55);
}

.filmstrip-item.pair-a::after,
.filmstrip-item.pair-b::after {
  position: absolute;
  top: 5px;
  left: 5px;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  color: #000;
  background: #fff;
  font-size: 7px;
  font-weight: 800;
}

.filmstrip-item.pair-a::after {
  content: "A";
}

.filmstrip-item.pair-b::after {
  content: "B";
}

.filmstrip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
  opacity: 0.7;
}

.filmstrip-item.active img {
  opacity: 1;
}

.filmstrip-item span {
  position: absolute;
  right: 4px;
  bottom: 4px;
  left: 4px;
  overflow: hidden;
  padding: 4px;
  border-radius: 3px;
  color: rgba(255, 255, 255, 0.76);
  background: rgba(0, 0, 0, 0.72);
  font-size: 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .compare-shell {
    grid-template-rows: 60px 47px minmax(0, 1fr) 98px 72px;
  }

  .compare-modes {
    overflow-x: auto;
  }

  .compare-controls {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .keyboard-hint {
    display: none;
  }

  .pair-controls {
    justify-content: center;
  }

  .pair-controls select {
    width: 120px;
  }

  .range-control {
    justify-content: center;
  }

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

  .carousel-stage {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    padding-inline: 8px;
  }

  .carousel-stage > button {
    width: 34px;
    height: 34px;
  }
}

/* July 31-3 · universal screenshot inbox */

.nav-button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.nav-button span,
#projectsInboxCount {
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  place-items: center;
  border-radius: 5px;
  color: #000;
  background: #fff;
  font-size: 7px;
  font-weight: 800;
}

.projects-heading-actions,
.inbox-heading-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.projects-heading-actions .quiet-button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 40px;
  padding-inline: 15px;
}

.inbox-view {
  height: calc(100vh - 66px);
  overflow-y: auto;
}

.inbox-shell {
  width: min(1240px, calc(100% - 64px));
  margin: 0 auto;
  padding: 50px 0 130px;
}

.inbox-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 28px;
}

.inbox-heading h1 {
  margin: 6px 0 10px;
  font-size: clamp(52px, 6vw, 84px);
  font-weight: 520;
  line-height: 0.9;
  letter-spacing: -0.065em;
}

.inbox-heading > div:first-child > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.inbox-heading-actions .toolbar-button {
  min-height: 40px;
  padding-inline: 16px;
}

.inbox-dropzone {
  position: relative;
  display: grid;
  min-height: 210px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 28px 31px;
  overflow: hidden;
  border: 1px dashed rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  cursor: pointer;
  background:
    radial-gradient(circle at 72% 35%, rgba(255, 255, 255, 0.055), transparent 25%),
    radial-gradient(circle, rgba(255, 255, 255, 0.15) 0 0.7px, transparent 0.9px) 0 0 / 22px 22px,
    rgba(8, 8, 8, 0.9);
  transition:
    border-color 150ms ease,
    background-color 150ms ease;
}

.inbox-dropzone:hover,
.inbox-dropzone.dragging {
  border-color: rgba(255, 255, 255, 0.58);
  background-color: rgba(255, 255, 255, 0.025);
}

.inbox-dropzone::after {
  position: absolute;
  top: -110px;
  right: 8%;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 42px rgba(255, 255, 255, 0.012),
    0 0 0 84px rgba(255, 255, 255, 0.009);
  pointer-events: none;
}

.inbox-drop-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.inbox-drop-icon svg {
  width: 30px;
  fill: none;
  stroke: rgba(255, 255, 255, 0.7);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.2;
}

.inbox-step {
  display: block;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.3);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.inbox-dropzone h2 {
  margin: 0 0 11px;
  font-size: clamp(28px, 3vw, 43px);
  font-weight: 520;
  letter-spacing: -0.055em;
}

.inbox-dropzone p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.inbox-browse {
  position: relative;
  z-index: 2;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.68);
  cursor: pointer;
  background: #0b0b0b;
  font-size: 9px;
  font-weight: 650;
}

.inbox-browse:hover {
  color: #000;
  border-color: #fff;
  background: #fff;
}

.inbox-status {
  display: grid;
  grid-template-columns: repeat(3, 126px) minmax(0, 1fr);
  min-height: 69px;
  margin: 12px 0 31px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(7, 7, 7, 0.94);
}

.inbox-stat {
  display: flex;
  justify-content: center;
  padding: 13px 18px;
  border-right: 1px solid var(--line);
  flex-direction: column;
}

.inbox-stat span {
  margin-bottom: 4px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}

.inbox-stat small {
  color: var(--dim);
  font-size: 7px;
}

.inbox-status-note {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: flex-end;
  padding: 0 20px;
  color: var(--dim);
  font-size: 8px;
}

.inbox-status-note i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #70df9b;
  box-shadow: 0 0 0 4px rgba(112, 223, 155, 0.08);
}

.inbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.inbox-filters {
  display: flex;
  gap: 5px;
}

.inbox-filters button,
.inbox-text-button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--dim);
  cursor: pointer;
  background: transparent;
  font-size: 8px;
}

.inbox-filters button:hover,
.inbox-filters button.active {
  color: #fff;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.inbox-text-button:hover {
  color: #fff;
}

.inbox-text-button.danger:hover {
  color: #ff8f83;
}

.inbox-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-top: 15px;
}

.inbox-card {
  position: relative;
  min-width: 0;
  padding: 5px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
  background: rgba(8, 8, 8, 0.96);
  transition:
    border-color 140ms ease,
    transform 140ms ease;
}

.inbox-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
}

.inbox-card.selected {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.inbox-card-image {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  place-items: center;
  border-radius: 7px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.1) 0 0.6px, transparent 0.8px) 0 0 / 18px 18px,
    #101010;
}

.inbox-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inbox-card-image > span {
  color: var(--dim);
  font-size: 8px;
}

.inbox-check {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  display: grid;
  width: 23px;
  height: 23px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: transparent;
  background: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  font-size: 9px;
}

.inbox-card.selected .inbox-check {
  color: #000;
  border-color: #fff;
  background: #fff;
}

.duplicate-badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  padding: 5px 7px;
  border: 1px solid rgba(255, 184, 94, 0.4);
  border-radius: 5px;
  color: #ffd193;
  background: rgba(21, 14, 5, 0.86);
  font-size: 6px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.inbox-card-copy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 10px 7px 7px;
}

.inbox-version {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.5);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 7px;
}

.inbox-card-copy div {
  min-width: 0;
}

.inbox-card-copy strong,
.inbox-card-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inbox-card-copy strong {
  margin-bottom: 5px;
  font-size: 9px;
  font-weight: 600;
}

.inbox-card-copy span {
  color: var(--dim);
  font-size: 7px;
}

.inbox-path {
  padding: 0 8px 8px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.2);
  font-size: 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inbox-empty {
  padding: 74px 0 60px;
  text-align: center;
}

.inbox-empty > span {
  color: var(--dim);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
}

.inbox-empty h2 {
  margin: 14px 0 8px;
  font-size: 27px;
  font-weight: 520;
  letter-spacing: -0.045em;
}

.inbox-empty p {
  margin: 0;
  color: var(--dim);
  font-size: 9px;
}

.inbox-move-dock {
  position: fixed;
  z-index: 90;
  right: 22px;
  bottom: 20px;
  left: 22px;
  display: grid;
  max-width: 980px;
  min-height: 68px;
  margin: auto;
  padding: 9px 10px 9px 16px;
  grid-template-columns: minmax(170px, 1fr) 190px 190px auto auto;
  gap: 9px;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: rgba(9, 9, 9, 0.96);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.inbox-move-dock > div strong,
.inbox-move-dock > div span {
  display: block;
}

.inbox-move-dock > div strong {
  margin-bottom: 4px;
  font-size: 10px;
}

.inbox-move-dock > div span {
  color: var(--dim);
  font-size: 7px;
}

.inbox-move-dock label {
  color: var(--dim);
  font-size: 7px;
}

.inbox-move-dock select {
  display: block;
  width: 100%;
  height: 34px;
  margin-top: 4px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #fff;
  background: #080808;
  font-size: 8px;
}

#inboxMoveButton {
  min-height: 43px;
  padding: 0 15px;
  border: 1px solid #fff;
  border-radius: 8px;
  color: #000;
  cursor: pointer;
  background: #fff;
  font-size: 8px;
  font-weight: 720;
}

#inboxMoveButton:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.inbox-dock-clear {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  cursor: pointer;
  background: transparent;
  font-size: 18px;
}

@media (max-width: 980px) {
  .inbox-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .inbox-status {
    grid-template-columns: repeat(3, 1fr);
  }

  .inbox-status-note {
    display: none;
  }

  .inbox-move-dock {
    grid-template-columns: 1fr 150px 150px auto auto;
  }
}

@media (max-width: 720px) {
  .inbox-shell {
    width: min(100% - 28px, 1240px);
    padding-top: 30px;
  }

  .inbox-heading,
  .inbox-dropzone {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

  .inbox-heading {
    gap: 22px;
    flex-direction: column;
  }

  .inbox-drop-icon {
    display: none;
  }

  .inbox-browse {
    justify-self: start;
  }

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

  .inbox-move-dock {
    overflow-x: auto;
    grid-template-columns: 150px 150px 150px 120px 34px;
  }
}

/* July 31-4 · project organization system */

.board-area {
  grid-template-rows: 82px 46px minmax(0, 1fr);
}

.project-search {
  display: grid;
  width: min(270px, 24vw);
  height: 34px;
  grid-template-columns: 28px minmax(0, 1fr) 25px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.project-search:focus-within {
  border-color: rgba(255, 255, 255, 0.34);
}

.project-search svg {
  width: 13px;
  margin-left: 10px;
  fill: none;
  stroke: var(--dim);
  stroke-linecap: round;
  stroke-width: 1.5;
}

.project-search input {
  min-width: 0;
  height: 100%;
  padding: 0 5px;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 8px;
}

.project-search input::placeholder {
  color: rgba(255, 255, 255, 0.24);
}

.project-search button {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  color: var(--dim);
  cursor: pointer;
  background: transparent;
  font-size: 13px;
}

.group-bar {
  position: relative;
  z-index: 11;
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  padding: 6px 22px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: #060606;
}

.group-bar-label {
  margin-right: 2px;
  color: rgba(255, 255, 255, 0.24);
  font-size: 7px;
  font-weight: 760;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.group-list {
  display: flex;
  gap: 5px;
  align-items: center;
}

.group-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.02);
}

.group-chip.active {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.group-chip > button {
  height: 28px;
  padding: 0 9px;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  background: transparent;
  font-size: 8px;
}

.group-chip.active > button:first-child {
  color: #fff;
}

.group-chip .group-count {
  margin-left: 7px;
  color: var(--dim);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 7px;
}

.group-chip .group-edit {
  width: 25px;
  padding: 0;
  border-left: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.22);
}

.group-chip .group-edit:hover {
  color: #fff;
}

.group-add {
  height: 30px;
  flex: 0 0 auto;
  padding: 0 10px;
  border: 1px dashed rgba(255, 255, 255, 0.17);
  border-radius: 7px;
  color: var(--dim);
  cursor: pointer;
  background: transparent;
  font-size: 8px;
}

.group-add:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.canvas-no-results {
  position: absolute;
  z-index: 2;
  top: min(34vh, 330px);
  left: min(35vw, 500px);
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
  transform: translate(-50%, -50%);
}

.canvas-no-results > span {
  color: var(--dim);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.canvas-no-results h2 {
  margin: 14px 0 8px;
  font-size: 31px;
  font-weight: 520;
  letter-spacing: -0.045em;
}

.canvas-no-results p {
  margin: 0 0 18px;
  color: var(--dim);
  font-size: 8px;
}

.canvas-no-results button {
  padding: 0 0 4px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  color: var(--muted);
  cursor: pointer;
  background: transparent;
  font-size: 8px;
}

.item-statuses {
  position: absolute;
  z-index: 3;
  right: 43px;
  bottom: 11px;
  display: flex;
  gap: 4px;
}

.item-statuses span {
  padding: 4px 6px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  font-size: 6px;
  font-weight: 760;
  letter-spacing: 0.08em;
}

.item-statuses .current {
  color: #bfffd2;
  border-color: rgba(112, 223, 155, 0.48);
}

.item-statuses .reference {
  color: #cbd9ff;
  border-color: rgba(137, 167, 255, 0.45);
}

.item-statuses .starred {
  color: #ffe09c;
  border-color: rgba(255, 210, 117, 0.4);
}

.card-organization {
  display: flex;
  gap: 4px;
  min-height: 22px;
  padding: 0 6px 5px;
  overflow: hidden;
}

.card-organization span {
  max-width: 94px;
  padding: 4px 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--dim);
  font-size: 6px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-organization .card-group-tag {
  color: rgba(255, 255, 255, 0.56);
  border-style: dashed;
}

.card-organization .approved {
  color: #a9f4c3;
  border-color: rgba(112, 223, 155, 0.3);
}

.card-organization .rejected {
  color: #ffaaa1;
  border-color: rgba(255, 115, 105, 0.28);
}

.card-popover {
  min-width: 150px;
}

.split-actions {
  grid-template-columns: auto 1fr auto auto;
}

.modal-danger {
  min-height: 36px;
  padding: 0 11px;
  border: 1px solid rgba(255, 105, 94, 0.22);
  border-radius: 7px;
  color: #ff9187;
  cursor: pointer;
  background: rgba(255, 105, 94, 0.04);
  font-size: 8px;
}

.screenshot-details-modal,
.version-history-modal {
  width: min(920px, calc(100% - 34px));
  max-height: calc(100vh - 34px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 17px;
  color: var(--white);
  background: #090909;
  box-shadow: 0 42px 140px rgba(0, 0, 0, 0.86);
}

.screenshot-details-modal::backdrop,
.version-history-modal::backdrop {
  background: rgba(0, 0, 0, 0.84);
  -webkit-backdrop-filter: blur(9px);
  backdrop-filter: blur(9px);
}

.details-header,
.history-shell > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 21px 23px;
  border-bottom: 1px solid var(--line);
}

.details-header > div > span,
.history-shell > header > div > span {
  display: block;
  margin-bottom: 7px;
  color: var(--dim);
  font-size: 7px;
  font-weight: 780;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.details-header h2,
.history-shell > header h2 {
  margin: 0;
  font-size: 23px;
  font-weight: 560;
  letter-spacing: -0.045em;
}

.details-header > button,
.history-shell > header > button {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  font-size: 17px;
}

.details-body {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(380px, 1.15fr);
}

.details-preview {
  padding: 24px;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.09) 0 0.6px, transparent 0.8px) 0 0 / 18px 18px,
    #070707;
}

.details-image {
  display: grid;
  min-height: 260px;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #111;
}

.details-image img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
}

.details-image span {
  color: var(--dim);
  font-size: 8px;
}

.details-metadata {
  display: grid;
  margin-top: 12px;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line);
  border-radius: 9px;
}

.details-metadata div {
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

.details-metadata div:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.details-metadata div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.details-metadata span,
.details-metadata strong {
  display: block;
}

.details-metadata span {
  margin-bottom: 4px;
  color: var(--dim);
  font-size: 6px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.details-metadata strong {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  font-weight: 500;
}

.details-fields {
  padding: 24px;
}

.details-fields > label,
.tag-fieldset legend {
  display: block;
  margin: 0 0 7px;
  color: var(--dim);
  font-size: 7px;
  font-weight: 730;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.details-fields > input,
.details-fields > textarea,
.details-fields > select {
  width: 100%;
  margin: 0 0 18px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #fff;
  background: #050505;
  font-size: 9px;
}

.details-fields > input,
.details-fields > select {
  height: 40px;
}

.details-fields > textarea {
  min-height: 88px;
  padding-top: 11px;
  resize: vertical;
  line-height: 1.55;
}

.details-fields > input:focus,
.details-fields > textarea:focus,
.details-fields > select:focus {
  border-color: rgba(255, 255, 255, 0.42);
}

.tag-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.tag-options,
.custom-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag-options label {
  cursor: pointer;
}

.tag-options input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tag-options span,
.custom-tag-chip {
  display: inline-flex;
  min-height: 27px;
  padding: 0 9px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--dim);
  background: rgba(255, 255, 255, 0.02);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 7px;
}

.tag-options input:checked + span {
  color: #000;
  border-color: #fff;
  background: #fff;
}

.custom-tag-row {
  display: grid;
  margin-top: 8px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.custom-tag-row input {
  height: 35px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px 0 0 7px;
  color: #fff;
  background: #050505;
  font-size: 8px;
}

.custom-tag-row button {
  padding: 0 12px;
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 7px 7px 0;
  color: var(--muted);
  cursor: pointer;
  background: #0e0e0e;
  font-size: 8px;
}

.custom-tags {
  margin-top: 7px;
}

.custom-tag-chip {
  gap: 7px;
}

.custom-tag-chip button {
  padding: 0;
  border: 0;
  color: var(--dim);
  cursor: pointer;
  background: transparent;
}

.status-controls {
  display: grid;
  gap: 6px;
  margin-top: 20px;
  grid-template-columns: repeat(3, 1fr);
}

.status-controls button {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.025);
  font-size: 8px;
}

.status-controls button span {
  margin-right: 5px;
}

.status-controls button.active {
  color: #000;
  border-color: #fff;
  background: #fff;
}

.details-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 23px;
  border-top: 1px solid var(--line);
}

.details-footer button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  cursor: pointer;
  background: transparent;
  font-size: 8px;
}

.details-footer .details-delete {
  color: #ff9187;
  border-color: rgba(255, 105, 94, 0.2);
}

.details-footer .details-save {
  margin-left: 6px;
  color: #000;
  border-color: #fff;
  background: #fff;
}

.history-shell > header p {
  margin: 7px 0 0;
  color: var(--dim);
  font-size: 8px;
}

.history-legend,
.history-row {
  display: grid;
  grid-template-columns: 75px minmax(210px, 1.2fr) minmax(210px, 1fr) 145px;
  gap: 14px;
  align-items: center;
}

.history-legend {
  min-height: 39px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.22);
  font-size: 6px;
  font-weight: 780;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.history-list {
  max-height: min(620px, calc(100vh - 190px));
  overflow: auto;
}

.history-row {
  width: 100%;
  min-height: 86px;
  padding: 10px 22px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: #fff;
  cursor: pointer;
  text-align: left;
  background: transparent;
}

.history-row:hover {
  background: rgba(255, 255, 255, 0.035);
}

.history-version {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.history-shot {
  display: grid;
  min-width: 0;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.history-shot img,
.history-image-empty {
  width: 76px;
  height: 58px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #111;
}

.history-shot strong,
.history-shot span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-shot strong {
  margin-bottom: 5px;
  font-size: 9px;
}

.history-shot span,
.history-date span {
  color: var(--dim);
  font-size: 7px;
}

.history-tags {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}

.history-tags span {
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  font-size: 6px;
}

.history-tags .current {
  color: #bfffd2;
}

.history-tags .reference {
  color: #cbd9ff;
}

.history-tags .starred {
  color: #ffe09c;
}

.history-date strong,
.history-date span {
  display: block;
}

.history-date strong {
  margin-bottom: 5px;
  font-size: 8px;
  font-weight: 550;
}

.history-empty {
  padding: 70px 20px;
  text-align: center;
}

.history-empty > span {
  color: var(--dim);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
}

.history-empty h3 {
  margin: 14px 0 7px;
  font-size: 24px;
  font-weight: 520;
}

.history-empty p {
  margin: 0;
  color: var(--dim);
  font-size: 8px;
}

@media (max-width: 1100px) {
  .board-toolbar {
    height: auto;
  }

  .board-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .project-search {
    width: 230px;
  }

  .details-body {
    grid-template-columns: 1fr;
  }

  .details-preview {
    display: none;
  }
}

@media (max-width: 780px) {
  .project-search {
    width: 190px;
  }

  #historyButton,
  #renameBoardButton {
    display: none;
  }

  .history-legend,
  .history-row {
    grid-template-columns: 58px minmax(180px, 1fr) 130px;
  }

  .history-legend span:nth-child(3),
  .history-tags {
    display: none;
  }
}

.transport-buttons {
  display: flex;
  gap: 4px;
}
.transport-buttons button {
  height: 31px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.025);
  font-size: 7px;
}

/* Expanded image Comparison Lab */

.compare-modal {
  width: min(1380px, calc(100% - 26px));
}

.compare-shell {
  grid-template-rows: 66px 49px minmax(0, 1fr) 68px 82px;
}

.compare-header-actions {
  display: flex;
  gap: 7px;
}

.compare-shell header .compare-header-actions button {
  width: auto;
  min-width: 34px;
  padding: 0 11px;
  font-size: 8px;
}

.compare-shell header .compare-header-actions #closeCompareButton {
  width: 34px;
  padding: 0;
  font-size: 18px;
}

.compare-modes {
  overflow-x: auto;
  scrollbar-width: none;
}

.compare-modes::-webkit-scrollbar {
  display: none;
}

.compare-modes button {
  flex: 0 0 auto;
}

.image-side-stage {
  display: grid;
  width: 100%;
  height: 100%;
  padding: 11px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.image-side-stage figure {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #030303;
}

.image-side-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.image-side-stage figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.image-side-stage figcaption span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 5px;
  color: #000;
  background: #fff;
  font-size: 7px;
  font-weight: 800;
}

.image-side-stage figcaption strong {
  overflow: hidden;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.heatmap-stage,
.spotlight-stage,
.version-stack-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #030303;
}

.heatmap-stage {
  display: grid;
  padding: 12px 12px 51px;
  place-items: center;
}

.heatmap-stage canvas {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  image-rendering: auto;
}

.heatmap-legend {
  position: absolute;
  right: 15px;
  bottom: 12px;
  left: 15px;
  display: grid;
  grid-template-columns: auto 190px auto minmax(120px, 1fr);
  gap: 9px;
  align-items: center;
  color: var(--dim);
  font-size: 7px;
}

.heatmap-legend i {
  height: 7px;
  border-radius: 5px;
  background: linear-gradient(90deg, #05070d, #002d7d, #00d9ff, #ffe500, #ff2400);
}

.heatmap-legend strong {
  color: var(--muted);
  text-align: right;
}

.spotlight-stage {
  cursor: crosshair;
}

.spotlight-stage img,
.spotlight-reveal {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.spotlight-stage img {
  object-fit: contain;
}

.spotlight-reveal {
  overflow: hidden;
  clip-path: circle(120px at 50% 50%);
}

.spotlight-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  pointer-events: none;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.7),
    0 0 30px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, -50%);
}

.spotlight-label {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.72);
  font-size: 7px;
}

.device-compare-grid {
  display: flex;
  gap: 18px;
  height: 100%;
  padding: 20px;
  overflow: auto;
  align-items: flex-end;
  justify-content: center;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.09) 0 0.6px, transparent 0.8px) 0 0 / 19px 19px,
    #050505;
}

.device-frame {
  position: relative;
  display: flex;
  min-width: 180px;
  max-width: 430px;
  max-height: 100%;
  padding: 18px 7px 7px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  background: #111;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  flex-direction: column;
}

.device-frame.mobile {
  width: 210px;
}

.device-frame.tablet {
  width: 310px;
}

.device-frame.desktop {
  width: 410px;
  border-radius: 10px;
}

.device-frame::before {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 28px;
  height: 3px;
  border-radius: 3px;
  content: "";
  background: rgba(255, 255, 255, 0.25);
  transform: translateX(-50%);
}

.device-frame img {
  display: block;
  width: 100%;
  min-height: 0;
  object-fit: contain;
  border-radius: 8px;
  background: #000;
}

.device-frame footer {
  display: flex;
  justify-content: space-between;
  padding: 8px 4px 2px;
  color: var(--dim);
  font-size: 7px;
}

.device-frame footer strong {
  color: #fff;
  font-weight: 600;
}

.version-stack-stage {
  display: grid;
  place-items: center;
}

.version-stack-stage figure {
  position: relative;
  z-index: 3;
  display: grid;
  width: min(76%, 930px);
  height: calc(100% - 42px);
  margin: 0;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #050505;
  box-shadow: 0 25px 75px rgba(0, 0, 0, 0.7);
}

.version-stack-stage figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.version-stack-stage figcaption {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: flex;
  justify-content: space-between;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.76);
}

.version-stack-stage figcaption strong,
.version-stack-stage figcaption span {
  font-size: 8px;
}

.version-stack-stage figcaption span {
  color: var(--dim);
}

.stack-ghosts i {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: min(74%, 900px);
  height: calc(100% - 52px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #0c0c0c;
}

.stack-ghosts i:nth-child(1) {
  transform: translate(-48%, -48%) rotate(1.2deg);
}

.stack-ghosts i:nth-child(2) {
  transform: translate(-52%, -51%) rotate(-1deg);
}

.stack-ghosts i:nth-child(3) {
  transform: translate(-50%, -54%) rotate(0.4deg);
}

.version-stack-stage > button {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: #000;
  cursor: pointer;
  background: #fff;
  transform: translateY(-50%);
}

#stackPrevious {
  left: 18px;
}

#stackNext {
  right: 18px;
}

.compare-controls {
  grid-template-columns: minmax(230px, auto) minmax(210px, 1fr) auto auto;
}

.compare-navigation {
  display: flex;
  gap: 6px;
  align-items: center;
}

.compare-navigation label {
  display: grid;
  width: 190px;
  grid-template-columns: auto minmax(80px, 1fr) 38px;
  gap: 7px;
  align-items: center;
  color: var(--dim);
  font-size: 7px;
}

.compare-navigation input {
  width: 100%;
  accent-color: #fff;
}

.compare-navigation output {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 7px;
  text-align: right;
}

.compare-navigation button {
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.025);
  font-size: 7px;
}

.compare-navigation button.active {
  color: #000;
  border-color: #fff;
  background: #fff;
}

.compare-transform-target {
  transform: translate(var(--compare-pan-x, 0px), var(--compare-pan-y, 0px))
    scale(var(--compare-zoom, 1));
  transform-origin: center;
  transition: transform 80ms linear;
}

.compare-stage-area.pan-active {
  cursor: grab;
}

.compare-stage-area.pan-active:active {
  cursor: grabbing;
}

/* Inspection workspace */

.inspection-modal {
  width: min(1480px, calc(100% - 22px));
  height: min(960px, calc(100vh - 22px));
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 17px;
  color: #fff;
  background: #060606;
  box-shadow: 0 48px 160px rgba(0, 0, 0, 0.9);
}

.inspection-modal::backdrop {
  background: rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.inspection-shell {
  display: grid;
  height: 100%;
  grid-template-rows: 68px minmax(0, 1fr);
}

.inspection-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px 0 22px;
  border-bottom: 1px solid var(--line);
}

.inspection-header > div:first-child > span {
  display: block;
  margin-bottom: 5px;
  color: var(--dim);
  font-size: 7px;
  font-weight: 780;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.inspection-header h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 560;
  letter-spacing: -0.04em;
}

.inspection-source {
  display: flex;
  gap: 7px;
  align-items: center;
}

.inspection-source label {
  color: var(--dim);
  font-size: 7px;
}

.inspection-source select {
  width: 190px;
  height: 34px;
  margin-left: 8px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #fff;
  background: #050505;
  font-size: 8px;
}

.inspection-source button {
  height: 34px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.025);
  font-size: 8px;
}

#closeInspectionButton {
  width: 34px;
  padding: 0;
  font-size: 17px;
}

.inspection-body {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-columns: 150px minmax(420px, 1fr) 340px;
}

.inspection-tools {
  display: flex;
  min-width: 0;
  padding: 15px 10px;
  border-right: 1px solid var(--line);
  background: #080808;
  flex-direction: column;
}

.inspection-label {
  padding: 0 8px 10px;
  color: rgba(255, 255, 255, 0.24);
  font-size: 7px;
  font-weight: 780;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.inspection-tools > button {
  display: grid;
  min-height: 38px;
  padding: 0 8px;
  grid-template-columns: 23px 1fr;
  gap: 7px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  background: transparent;
  font-size: 8px;
}

.inspection-tools > button b {
  font-size: 12px;
  font-weight: 400;
}

.inspection-tools > button:hover,
.inspection-tools > button.active {
  color: #fff;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.045);
}

.inspection-zoom {
  margin-top: auto;
  padding: 12px 8px;
  border-top: 1px solid var(--line);
}

.inspection-zoom label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--dim);
  font-size: 7px;
}

.inspection-zoom input {
  width: 100%;
  accent-color: #fff;
}

.inspection-zoom button {
  width: 100%;
  min-height: 31px;
  margin-top: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.025);
  font-size: 7px;
}

.inspection-cursor {
  padding: 10px 8px 4px;
  border-top: 1px solid var(--line);
}

.inspection-cursor span,
.inspection-cursor strong {
  display: block;
}

.inspection-cursor span {
  margin-bottom: 6px;
  color: var(--dim);
  font-size: 6px;
  text-transform: uppercase;
}

.inspection-cursor strong {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  font-weight: 500;
}

.inspection-viewport {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background:
    linear-gradient(45deg, #101010 25%, transparent 25%),
    linear-gradient(-45deg, #101010 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #101010 75%),
    linear-gradient(-45deg, transparent 75%, #101010 75%),
    #050505;
  background-position:
    0 0,
    0 8px,
    8px -8px,
    -8px 0;
  background-size: 16px 16px;
  cursor: crosshair;
}

.inspection-canvas-holder {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(calc(-50% + var(--inspect-pan-x, 0px)), calc(-50% + var(--inspect-pan-y, 0px)))
    scale(var(--inspect-zoom, 1));
  transform-origin: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.62);
}

.inspection-canvas-holder canvas {
  position: absolute;
  inset: 0;
  display: block;
}

#inspectionCanvas {
  position: relative;
  background: #000;
}

#inspectionOverlay {
  z-index: 2;
}

.inspection-ruler {
  position: absolute;
  z-index: 5;
  pointer-events: none;
  color: rgba(255, 255, 255, 0.42);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 6px;
}

.ruler-top {
  top: 0;
  right: 0;
  left: 24px;
  height: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  background:
    repeating-linear-gradient(90deg, transparent 0 9px, rgba(255, 255, 255, 0.2) 9px 10px) bottom / auto 7px no-repeat,
    rgba(5, 5, 5, 0.88);
}

.ruler-left {
  top: 24px;
  bottom: 0;
  left: 0;
  width: 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  background:
    repeating-linear-gradient(180deg, transparent 0 9px, rgba(255, 255, 255, 0.2) 9px 10px) right / 7px auto no-repeat,
    rgba(5, 5, 5, 0.88);
}

.inspection-help {
  position: absolute;
  z-index: 6;
  right: 14px;
  bottom: 13px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.76);
  font-size: 7px;
}

.inspection-analysis {
  min-width: 0;
  padding: 10px;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background: #080808;
}

.analysis-card {
  margin-bottom: 8px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.018);
}

.analysis-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.analysis-heading > span {
  color: var(--dim);
  font-size: 6px;
  font-weight: 780;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.analysis-heading > strong {
  max-width: 190px;
  overflow: hidden;
  font-size: 8px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analysis-heading > button {
  padding: 0;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  background: transparent;
  font-size: 7px;
}

.source-metadata dl {
  display: grid;
  margin: 0;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
}

.source-metadata dl div {
  padding: 8px;
  background: #090909;
}

.source-metadata dt,
.source-metadata dd {
  margin: 0;
}

.source-metadata dt {
  margin-bottom: 4px;
  color: var(--dim);
  font-size: 6px;
  text-transform: uppercase;
}

.source-metadata dd {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 7px;
}

#sampleSwatch {
  width: 27px;
  height: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: #000;
}

.color-value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line);
  border-radius: 7px;
}

.color-value-grid div {
  padding: 8px;
}

.color-value-grid div:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.color-value-grid div:nth-child(-n + 2) {
  border-bottom: 1px solid var(--line);
}

.color-value-grid span,
.color-value-grid strong {
  display: block;
}

.color-value-grid span {
  margin-bottom: 4px;
  color: var(--dim);
  font-size: 5px;
}

.color-value-grid strong {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 7px;
  font-weight: 500;
}

.sample-targets {
  display: grid;
  margin-top: 8px;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}

.sample-targets button,
.crop-actions button {
  min-height: 29px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--dim);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  font-size: 6px;
}

.sample-targets button.active {
  color: #000;
  border-color: #fff;
  background: #fff;
}

.contrast-colors {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.contrast-colors label {
  color: var(--dim);
  font-size: 6px;
}

.contrast-colors input {
  display: block;
  width: 100%;
  height: 29px;
  margin-top: 5px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #050505;
}

.contrast-results {
  display: flex;
  gap: 5px;
  margin-top: 8px;
}

.contrast-results span {
  padding: 5px 7px;
  border: 1px solid rgba(112, 223, 155, 0.3);
  border-radius: 5px;
  color: #a9f4c3;
  font-size: 6px;
}

.contrast-results span.fail {
  color: #ff9c93;
  border-color: rgba(255, 105, 94, 0.25);
}

.palette-swatches {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}

.palette-swatch {
  position: relative;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

.palette-swatch span {
  position: absolute;
  right: 2px;
  bottom: 2px;
  left: 2px;
  padding: 3px;
  overflow: hidden;
  border-radius: 3px;
  color: #fff;
  background: rgba(0, 0, 0, 0.62);
  font-size: 5px;
  text-align: center;
  text-overflow: ellipsis;
}

#histogramCanvas {
  display: block;
  width: 100%;
  height: 100px;
  border-radius: 6px;
  background: #030303;
}

#samePixelList {
  display: grid;
  gap: 5px;
}

.same-pixel-row {
  display: grid;
  min-height: 31px;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
}

.same-pixel-row i {
  width: 20px;
  height: 20px;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.same-pixel-row strong {
  overflow: hidden;
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.same-pixel-row span {
  color: var(--dim);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 6px;
}

.measurement-card > strong,
.measurement-card > span {
  display: block;
}

.measurement-card > strong {
  margin-bottom: 6px;
  font-size: 8px;
}

.measurement-card > span {
  color: var(--dim);
  font-size: 7px;
}

.crop-actions {
  display: grid;
  margin-top: 9px;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}

.crop-actions button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Point 5 · Notes, annotations and decision history */

.screenshot-details-modal {
  width: min(1240px, calc(100% - 30px));
  height: min(900px, calc(100vh - 30px));
  overflow: hidden;
}

.screenshot-details-modal > form {
  display: grid;
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.screenshot-details-modal .details-body {
  min-height: 0;
  grid-template-columns: minmax(480px, 1.08fr) minmax(420px, 0.92fr);
}

.screenshot-details-modal .details-preview,
.screenshot-details-modal .details-fields {
  min-height: 0;
  overflow-y: auto;
}

.annotation-toolbar {
  display: flex;
  gap: 5px;
  margin-bottom: 9px;
  align-items: center;
  flex-wrap: wrap;
}

.annotation-toolbar button {
  min-height: 31px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--dim);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.025);
  font-size: 7px;
}

.annotation-toolbar button:hover,
.annotation-toolbar button.active {
  color: #050505;
  border-color: #fff;
  background: #fff;
}

.annotation-toolbar button:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.annotation-toolbar label {
  display: grid;
  width: 31px;
  height: 31px;
  padding: 4px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
}

.annotation-toolbar input[type="color"] {
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: transparent;
}

.annotation-canvas-wrap {
  position: relative;
  min-height: 300px;
  overflow: auto;
  padding: 10px;
  background:
    linear-gradient(45deg, #111 25%, transparent 25%),
    linear-gradient(-45deg, #111 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #111 75%),
    linear-gradient(-45deg, transparent 75%, #111 75%),
    #080808;
  background-position:
    0 0,
    0 8px,
    8px -8px,
    -8px 0;
  background-size: 16px 16px;
}

#detailsAnnotationCanvas {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 520px;
  touch-action: none;
  cursor: default;
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.55);
}

#detailsAnnotationCanvas[data-tool="pin"],
#detailsAnnotationCanvas[data-tool="arrow"],
#detailsAnnotationCanvas[data-tool="rectangle"],
#detailsAnnotationCanvas[data-tool="draw"] {
  cursor: crosshair;
}

.annotation-help {
  margin: 8px 0;
  color: var(--dim);
  font-size: 7px;
  line-height: 1.5;
}

.annotation-note-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
}

.annotation-note-row input {
  min-width: 0;
  height: 35px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px 0 0 7px;
  color: #fff;
  background: #050505;
  font-size: 8px;
}

.annotation-note-row button {
  padding: 0 10px;
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 7px 7px 0;
  color: var(--muted);
  cursor: pointer;
  background: #111;
  font-size: 7px;
}

.quick-note-row {
  display: flex;
  gap: 5px;
  margin-top: 6px;
}

.quick-note-row button {
  min-height: 27px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--dim);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  font-size: 7px;
}

.quick-note-row button:hover {
  color: #fff;
  border-color: var(--line-strong);
}

.annotation-list {
  display: grid;
  margin-top: 9px;
  gap: 5px;
}

.annotation-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.018);
}

.annotation-list-row.active {
  border-color: rgba(255, 212, 92, 0.65);
  background: rgba(255, 212, 92, 0.04);
}

.annotation-list-row > button:first-child {
  display: grid;
  min-width: 0;
  min-height: 39px;
  padding: 7px 9px;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  border: 0;
  color: #fff;
  cursor: pointer;
  text-align: left;
  background: transparent;
}

.annotation-list-row strong {
  font-size: 7px;
}

.annotation-list-row span {
  overflow: hidden;
  color: var(--dim);
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.annotation-remove {
  border: 0;
  border-left: 1px solid var(--line);
  color: var(--dim);
  cursor: pointer;
  background: transparent;
  font-size: 14px;
}

.decision-fieldset {
  margin: 0 0 18px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
}

.decision-fieldset legend {
  padding: 0 6px;
  color: var(--dim);
  font-size: 7px;
  font-weight: 730;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.decision-status button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--dim);
  cursor: pointer;
  background: #080808;
  font-size: 7px;
}

.decision-status button[data-decision-status="approved"].active {
  color: #07180e;
  border-color: #7de4a3;
  background: #9cf0ba;
}

.decision-status button[data-decision-status="rejected"].active {
  color: #210805;
  border-color: #ff9187;
  background: #ffaaa1;
}

.decision-status button[data-decision-status="undecided"].active {
  color: #050505;
  border-color: #fff;
  background: #fff;
}

.rating-row {
  display: grid;
  margin-top: 10px;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
}

.rating-row > span,
.rating-row output {
  color: var(--dim);
  font-size: 7px;
}

#detailsRating {
  display: flex;
  gap: 1px;
}

#detailsRating button {
  padding: 0 2px;
  border: 0;
  color: rgba(255, 255, 255, 0.26);
  cursor: pointer;
  background: transparent;
  font-size: 20px;
}

#detailsRating button.active {
  color: #ffd45c;
}

.decision-fieldset > label {
  display: block;
  margin: 10px 0 6px;
  color: var(--dim);
  font-size: 7px;
}

.decision-fieldset > textarea {
  width: 100%;
  min-height: 66px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #fff;
  background: #050505;
  font-size: 8px;
  line-height: 1.5;
  resize: vertical;
}

.record-decision {
  width: 100%;
  min-height: 34px;
  margin-top: 6px;
  border: 1px solid #fff;
  border-radius: 7px;
  color: #000;
  cursor: pointer;
  background: #fff;
  font-size: 7px;
  font-weight: 700;
}

.decision-history {
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.decision-history-heading {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--dim);
  font-size: 7px;
  text-transform: uppercase;
}

.decision-history-heading strong {
  font-weight: 500;
}

#decisionHistoryList {
  display: grid;
  gap: 6px;
}

.decision-history-empty {
  margin: 0;
  padding: 10px;
  color: var(--dim);
  border: 1px dashed var(--line);
  border-radius: 7px;
  font-size: 7px;
  text-align: center;
}

.decision-entry {
  padding: 9px;
  border: 1px solid var(--line);
  border-left: 2px solid #777;
  border-radius: 7px;
  background: #080808;
}

.decision-entry.approved {
  border-left-color: #7de4a3;
}

.decision-entry.rejected {
  border-left-color: #ff8277;
}

.decision-entry header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.decision-entry strong,
.decision-entry span {
  font-size: 7px;
}

.decision-entry span {
  color: var(--dim);
}

.decision-entry p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
}

.item-statuses .decision-approved {
  color: #07180e;
  background: #9cf0ba;
}

.item-statuses .decision-rejected {
  color: #210805;
  background: #ffaaa1;
}

.item-statuses .rating,
.item-statuses .annotations {
  color: #151003;
  background: #ffd45c;
}

.item-statuses {
  left: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.history-tags .approved {
  color: #a9f4c3;
  border-color: rgba(112, 223, 155, 0.3);
}

.history-tags .rejected {
  color: #ffaaa1;
  border-color: rgba(255, 115, 105, 0.28);
}

@media (max-width: 980px) {
  .screenshot-details-modal .details-body {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .screenshot-details-modal .details-preview,
  .screenshot-details-modal .details-fields {
    overflow: visible;
  }
}

/* Points 6–7 · Export Center and Presentation Mode */

.export-modal {
  width: min(1180px, calc(100% - 30px));
  height: min(900px, calc(100vh - 30px));
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 17px;
  color: #fff;
  background: #080808;
  box-shadow: 0 48px 160px rgba(0, 0, 0, 0.9);
}

.export-modal::backdrop,
.presentation-modal::backdrop {
  background: rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.export-shell {
  display: grid;
  height: 100%;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
}

.export-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.export-header > div > span {
  display: block;
  margin-bottom: 7px;
  color: var(--dim);
  font-size: 7px;
  font-weight: 780;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.export-header h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 560;
  letter-spacing: -0.045em;
}

.export-header p {
  margin: 6px 0 0;
  color: var(--dim);
  font-size: 8px;
}

.export-header > button,
.presentation-actions button,
.presentation-arrow,
.presentation-reveal {
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.025);
}

.export-header > button {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border-radius: 9px;
  font-size: 17px;
}

.export-source-bar {
  display: grid;
  padding: 13px 24px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 15px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: #060606;
}

.export-source-bar > span,
.export-source-bar output {
  color: var(--dim);
  font-size: 7px;
  text-transform: uppercase;
}

#exportSourceControls {
  display: flex;
  gap: 5px;
}

#exportSourceControls button {
  min-height: 31px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--dim);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.02);
  font-size: 7px;
}

#exportSourceControls button.active {
  color: #000;
  border-color: #fff;
  background: #fff;
}

.export-grid {
  display: grid;
  min-height: 0;
  padding: 18px 24px 24px;
  overflow-y: auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  align-content: start;
}

.export-card {
  display: grid;
  min-height: 155px;
  padding: 15px;
  grid-template-rows: auto 1fr auto;
  border: 1px solid var(--line);
  border-radius: 11px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 255, 255, 0.045), transparent 48%),
    #0a0a0a;
}

.export-card.featured {
  border-color: rgba(255, 255, 255, 0.25);
}

.export-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.export-card > div:first-child span {
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--dim);
  font-size: 6px;
  letter-spacing: 0.1em;
}

.export-card strong {
  font-size: 10px;
  font-weight: 620;
}

.export-card p {
  margin: 12px 0;
  color: var(--dim);
  font-size: 8px;
  line-height: 1.55;
}

.export-card > button,
.export-card-actions button {
  min-height: 33px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #000;
  cursor: pointer;
  background: #fff;
  font-size: 7px;
  font-weight: 700;
}

.export-card-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.export-card-actions:has(button:nth-child(2):last-child) {
  grid-template-columns: repeat(2, 1fr);
}

.export-card button:disabled {
  opacity: 0.24;
  cursor: not-allowed;
}

.export-footer {
  display: flex;
  min-height: 58px;
  padding: 0 24px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  background: #060606;
}

.export-footer > div {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--dim);
  font-size: 8px;
}

.export-footer i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7de4a3;
}

.export-footer i.busy {
  background: #ffd45c;
  animation: export-pulse 0.8s infinite alternate;
}

@keyframes export-pulse {
  to {
    opacity: 0.25;
  }
}

.export-footer > button {
  min-height: 33px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.025);
  font-size: 7px;
}

.presentation-modal {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: #fff;
  background: #000;
}

.presentation-shell {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-rows: 62px minmax(0, 1fr) 45px;
  background: #000;
}

.presentation-shell.controls-hidden {
  grid-template-rows: 0 minmax(0, 1fr) 0;
}

.presentation-shell.controls-hidden .presentation-controls {
  visibility: hidden;
  opacity: 0;
}

.presentation-controls {
  transition:
    opacity 180ms ease,
    visibility 180ms ease;
}

.presentation-shell > header {
  z-index: 6;
  display: flex;
  padding: 0 17px 0 22px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.presentation-context {
  display: grid;
  gap: 4px;
}

.presentation-context span {
  color: var(--dim);
  font-size: 7px;
  text-transform: uppercase;
}

.presentation-context strong {
  max-width: 380px;
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.presentation-actions {
  display: flex;
  gap: 5px;
}

.presentation-actions button {
  min-height: 32px;
  padding: 0 9px;
  border-radius: 7px;
  font-size: 7px;
}

.presentation-actions button.active {
  color: #000;
  border-color: #fff;
  background: #fff;
}

#closePresentationButton {
  width: 32px;
  padding: 0;
  font-size: 15px;
}

.presentation-stage {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.025), transparent 55%),
    #000;
}
.presentation-stage > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition:
    opacity 180ms ease,
    transform 240ms ease;
}
.presentation-stage > img.changing {
  opacity: 0.3;
  transform: scale(0.992);
}

.presentation-arrow {
  position: absolute;
  z-index: 4;
  top: 50%;
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.56);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transform: translateY(-50%);
}

.presentation-arrow.previous {
  left: 18px;
}

.presentation-arrow.next {
  right: 18px;
}

.controls-hidden .presentation-arrow {
  opacity: 0;
  pointer-events: none;
}

.presentation-status {
  position: absolute;
  z-index: 3;
  top: 17px;
  left: 17px;
  display: flex;
  gap: 5px;
}

.presentation-status span {
  padding: 5px 7px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 5px;
  color: #fff;
  background: rgba(0, 0, 0, 0.65);
  font-size: 7px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.presentation-notes {
  position: absolute;
  z-index: 5;
  right: 22px;
  bottom: 22px;
  width: min(360px, calc(100% - 44px));
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: rgba(5, 5, 5, 0.86);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.presentation-notes > span {
  color: var(--dim);
  font-size: 6px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.presentation-notes p {
  margin: 9px 0;
  font-size: 11px;
  line-height: 1.55;
}

#presentationDecisionCopy {
  color: var(--dim);
  font-size: 8px;
  line-height: 1.5;
}

.presentation-footer {
  z-index: 6;
  display: grid;
  padding: 0 22px;
  grid-template-columns: auto minmax(100px, 1fr) auto;
  gap: 15px;
  align-items: center;
  border-top: 1px solid var(--line);
  color: var(--dim);
  background: rgba(0, 0, 0, 0.88);
  font-size: 7px;
}

.presentation-progress {
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.1);
}

.presentation-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: #fff;
  transition: width 200ms ease;
}

.presentation-reveal {
  position: absolute;
  z-index: 10;
  top: 13px;
  right: 13px;
  min-height: 31px;
  padding: 0 9px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.56);
  font-size: 7px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

@media (max-width: 900px) {
  .export-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .presentation-actions button:not(#closePresentationButton) {
    display: none;
  }
}

/* Points 8–9 · Templates, autosave and local safety */

.history-control {
  width: 34px;
  padding: 0;
  font-size: 15px;
}

.history-control:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.create-modal {
  width: min(940px, calc(100% - 30px));
}

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

.template-grid.expanded .template-option {
  min-height: 74px;
}

.template-option.personal {
  border-style: dashed;
}

.template-option.personal::after {
  position: absolute;
  top: 7px;
  right: 7px;
  content: "SAVED";
  color: var(--dim);
  font-size: 5px;
  letter-spacing: 0.1em;
}

.custom-template-builder {
  display: grid;
  margin-top: 12px;
  padding: 14px;
  grid-template-columns: minmax(150px, 0.75fr) minmax(180px, 1fr) minmax(230px, 1.25fr);
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.custom-template-builder[hidden] {
  display: none;
}

.custom-template-builder > div span,
.custom-template-builder > div strong {
  display: block;
}

.custom-template-builder > div span {
  margin-bottom: 6px;
  color: var(--dim);
  font-size: 6px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.custom-template-builder > div strong {
  font-size: 10px;
  line-height: 1.4;
}

.custom-template-builder > label {
  color: var(--dim);
  font-size: 7px;
}

.custom-template-builder input[type="text"],
.custom-template-builder textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #fff;
  background: #050505;
  font-size: 8px;
  resize: vertical;
}

.custom-template-builder input[type="text"] {
  height: 36px;
}

.custom-template-builder .save-template-check {
  grid-column: 2 / 4;
  display: flex;
  gap: 7px;
  align-items: center;
}

.safety-modal {
  width: min(1180px, calc(100% - 30px));
  height: min(880px, calc(100vh - 30px));
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 17px;
  color: #fff;
  background: #080808;
  box-shadow: 0 48px 160px rgba(0, 0, 0, 0.9);
}

.safety-modal::backdrop {
  background: rgba(0, 0, 0, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.safety-shell {
  display: grid;
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr);
}

.safety-header {
  display: flex;
  padding: 22px 24px;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.safety-header > div > span {
  display: block;
  margin-bottom: 7px;
  color: var(--dim);
  font-size: 7px;
  font-weight: 780;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.safety-header h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 560;
  letter-spacing: -0.045em;
}

.safety-header p {
  margin: 6px 0 0;
  color: var(--dim);
  font-size: 8px;
}

.safety-header > button {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.025);
  font-size: 17px;
}

.safety-body {
  display: grid;
  min-height: 0;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
}

.safety-body > main,
.trash-panel {
  min-height: 0;
  padding: 16px;
  overflow-y: auto;
}

.safety-body > main {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  align-content: start;
}

.safety-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.018);
}

.backup-card,
.folder-card {
  grid-column: 1 / -1;
}

.safety-card-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.safety-card-heading > div span,
.safety-card-heading > div strong {
  display: block;
}

.safety-card-heading > div span {
  margin-bottom: 5px;
  color: var(--dim);
  font-size: 6px;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.safety-card-heading > div strong {
  font-size: 10px;
}

.safety-card-heading > button {
  padding: 0;
  border: 0;
  color: var(--dim);
  cursor: pointer;
  background: transparent;
  font-size: 7px;
}

.storage-meter {
  height: 5px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
}

.storage-meter i {
  display: block;
  width: 0;
  height: 100%;
  background: #7de4a3;
  transition: width 250ms ease;
}

.storage-meter i.warning {
  background: #ff8a70;
}

.storage-details {
  display: flex;
  margin-top: 8px;
  justify-content: space-between;
  gap: 10px;
  color: var(--dim);
  font-size: 7px;
}

.protect-storage,
.safety-inline-actions button,
.backup-actions button {
  min-height: 33px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  cursor: pointer;
  background: rgba(255, 255, 255, 0.025);
  font-size: 7px;
}

.protect-storage {
  width: 100%;
  margin-top: 12px;
}

.protect-storage.active {
  color: #07180e;
  border-color: #7de4a3;
  background: #9cf0ba;
}

.safety-stat-grid {
  display: grid;
  margin-top: 14px;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.safety-stat-grid > div {
  padding: 10px;
  border-right: 1px solid var(--line);
}

.safety-stat-grid > div:last-child {
  border-right: 0;
}

.safety-stat-grid span,
.safety-stat-grid strong {
  display: block;
}

.safety-stat-grid span {
  color: var(--dim);
  font-size: 6px;
}

.safety-stat-grid strong {
  margin-top: 5px;
  font-size: 15px;
}

.safety-inline-actions,
.backup-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.safety-inline-actions button {
  flex: 1;
}

.safety-inline-actions button:disabled,
.backup-actions button:disabled {
  opacity: 0.28;
  cursor: not-allowed;
}

.safety-card > p,
.trash-panel > p,
.folder-card > p {
  margin: 10px 0 0;
  color: var(--dim);
  font-size: 8px;
  line-height: 1.5;
}

.backup-actions button:first-child {
  color: #000;
  border-color: #fff;
  background: #fff;
}

.backup-list {
  display: grid;
  margin-top: 11px;
  gap: 5px;
}

.backup-list > div {
  display: flex;
  min-height: 34px;
  padding: 0 8px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.backup-list span,
.backup-list p {
  margin: 0;
  color: var(--dim);
  font-size: 7px;
}

.backup-list button {
  padding: 0;
  border: 0;
  color: #fff;
  cursor: pointer;
  background: transparent;
  font-size: 7px;
}

.trash-panel {
  border-left: 1px solid var(--line);
  background: #060606;
}

.trash-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.trash-heading span {
  margin-bottom: 5px;
  color: var(--dim);
  font-size: 6px;
  text-transform: uppercase;
}

.trash-heading strong {
  font-size: 13px;
}

.trash-heading button {
  padding: 0;
  border: 0;
  color: #ff8a80;
  cursor: pointer;
  background: transparent;
  font-size: 7px;
}

.trash-heading button:disabled {
  opacity: 0.28;
}

.trash-list {
  display: grid;
  margin-top: 13px;
  gap: 6px;
}

.trash-row {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.018);
}

.trash-row > div:first-child strong,
.trash-row > div:first-child span {
  display: block;
}

.trash-row > div:first-child strong {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trash-row > div:first-child span {
  margin-top: 5px;
  color: var(--dim);
  font-size: 6px;
}

.trash-row > div:last-child {
  display: flex;
  gap: 5px;
  margin-top: 10px;
}

.trash-row button {
  min-height: 29px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  background: transparent;
  font-size: 7px;
}

.trash-row button.danger {
  color: #ff8a80;
}

.trash-empty {
  display: grid;
  min-height: 250px;
  place-items: center;
  align-content: center;
  color: var(--dim);
  text-align: center;
}

.trash-empty[hidden] {
  display: none;
}

.trash-empty > span {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 11px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.trash-empty strong {
  color: var(--muted);
  font-size: 10px;
}

.trash-empty p {
  margin: 6px 0 0;
  font-size: 7px;
}

@media (max-width: 900px) {
  .template-grid.expanded {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .custom-template-builder,
  .safety-body,
  .safety-body > main {
    grid-template-columns: 1fr;
  }

  .custom-template-builder .save-template-check,
  .backup-card,
  .folder-card {
    grid-column: auto;
  }

  .trash-panel {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 1120px) {
  .inspection-body {
    grid-template-columns: 130px minmax(380px, 1fr) 300px;
  }

  .compare-navigation label {
    width: 150px;
  }
}

@media (max-width: 760px) {
  .pricing-trigger {
    display: none;
  }

  .upgrade-button {
    padding-inline: 10px;
  }

  .plan-strip {
    grid-template-columns: 1fr auto;
  }

  .plan-usage {
    display: none;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .price-card {
    min-height: 330px;
  }

  .pricing-footer {
    grid-template-columns: 1fr;
  }

  .license-status {
    grid-column: 1;
  }
}

/* ==========================================================================
   Landing page — the public homepage that precedes the workspace.
   The intro view is the only scrolling view; every other one is a fixed shell.
   ========================================================================== */

.intro-view {
  display: block;
  height: calc(100vh - 66px);
  overflow-x: hidden;
  overflow-y: auto;
  place-items: initial;
  scroll-behavior: smooth;
}

.intro-view .intro-content {
  display: grid;
  min-height: calc(100vh - 106px);
  margin-top: 0;
  place-content: center;
  justify-items: center;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-top: 39px;
}

.intro-actions .primary-pill {
  margin-top: 0;
}

.ghost-pill {
  height: 52px;
  padding: 0 24px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--white);
  cursor: pointer;
  background: transparent;
  font-size: 11px;
  font-weight: 740;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.ghost-pill:hover {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.05);
}

/* The base rule centres this by absolute positioning (left:50% + translateX).
 * In the landing hero it sits in normal flow instead, so both halves of that
 * trick have to be undone — leaving the transform behind shifts it off centre
 * by half its own width. */
.intro-view .privacy-note {
  position: static;
  left: auto;
  bottom: auto;
  margin-top: 30px;
  transform: none;
  justify-content: center;
}

/* ------------------------------------------------------------- landing body */

.landing {
  position: relative;
  z-index: 2;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 30px 90px;
}

.landing h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 540;
  letter-spacing: -0.04em;
}

.landing section {
  padding: 78px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}

/* the app header is fixed, so anchored scrolls need to clear it */
.landing {
  scroll-margin-top: 24px;
}

.landing-steps ol {
  display: grid;
  gap: 22px;
  margin: 40px 0 0;
  padding: 0;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  list-style: none;
}

.landing-steps li {
  padding: 26px 24px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
}

.landing-steps li > span {
  display: block;
  margin-bottom: 18px;
  color: var(--dim);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.16em;
}

.landing-steps h3,
.feature-grid h3 {
  margin: 0 0 9px;
  font-size: 15px;
  font-weight: 640;
  letter-spacing: -0.01em;
}

.landing-steps p,
.feature-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.62;
}

.landing kbd {
  padding: 2px 6px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  font-family: inherit;
  font-size: 11px;
}

.feature-grid {
  display: grid;
  gap: 20px 34px;
  margin-top: 40px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.feature-grid article {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.landing-privacy {
  display: grid;
  gap: 40px;
  align-items: start;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
}

.landing-privacy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.68;
}

.landing-privacy ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-privacy li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-2);
}

.landing-privacy li strong {
  font-size: 27px;
  font-weight: 540;
  letter-spacing: -0.05em;
}

.landing-privacy li span {
  color: var(--muted);
  font-size: 12px;
}

.landing-cta {
  text-align: center;
}

.landing-cta p {
  max-width: 460px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.landing-cta .intro-actions {
  margin-top: 32px;
}

.landing-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: baseline;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.landing-footer span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.landing-footer p {
  margin: 0;
  color: var(--dim);
  font-size: 12px;
}

@media (max-width: 760px) {
  .landing-privacy {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing section {
    padding: 54px 0;
  }
}

/* ==========================================================================
   Static content pages (about, privacy) and the advertising slot.
   These pages do not load app.js — they are plain documents.
   ========================================================================== */

.doc-body {
  overflow: auto;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.05), transparent 60%),
    var(--black);
}

.landing-footer nav {
  display: flex;
  gap: 18px;
  margin-left: auto;
}

.landing-footer nav a {
  color: var(--dim);
  font-size: 12px;
  text-decoration: none;
  transition: color 140ms ease;
}

.landing-footer nav a:hover {
  color: var(--white);
}

/* --------------------------------------------------------------- ad slot ---
 * Hidden outright until a real ad unit exists. :empty cannot be used here — the
 * indentation inside the element is a text node, so the slot would never match
 * it and would reserve space before AdSense is even switched on.
 */

.ad-slot {
  display: none;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

/* Only a genuine ad unit brings the slot back into the layout. */
.ad-slot:has(ins),
.ad-slot:has(iframe) {
  display: block;
  margin: 34px auto;
}

/* Advertising is confined to the informational landing sections. Nothing may
   render an ad over the tool, the drop area, or any dialog. */
.workspace-view .ad-slot,
.projects-view .ad-slot,
.inbox-view .ad-slot,
dialog .ad-slot {
  display: none !important;
}

/* --------------------------------------------------------------- scroll cue ---
 * "How it works" sits in the bottom-right of the hero rather than in the button
 * row: it is a way to read on, not a third call to action competing with the
 * two that matter. Falls back to static flow on narrow screens.
 */

.intro-view .intro-content {
  position: relative;
}

.scroll-hint {
  position: absolute;
  right: 34px;
  bottom: 26px;
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding: 9px 4px;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  background: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: color 160ms ease;
}

.scroll-hint:hover {
  color: var(--white);
}

.scroll-hint i {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 11px;
  font-style: normal;
  animation: scrollNudge 2.4s ease-in-out infinite;
}

.scroll-hint:hover i {
  border-color: rgba(255, 255, 255, 0.45);
}

@keyframes scrollNudge {
  0%,
  62%,
  100% {
    transform: translateY(0);
  }
  78% {
    transform: translateY(3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint i {
    animation: none;
  }
}

@media (max-width: 720px) {
  .scroll-hint {
    position: static;
    margin-top: 26px;
  }
}

/* ==========================================================================
   Static content pages (about, privacy, terms, contact).
   These do not load app.js — they are plain crawlable documents.
   ========================================================================== */

.doc-body {
  overflow: auto;
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.05), transparent 60%),
    var(--black);
}

.doc-header {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  max-width: 760px;
  margin: 0 auto;
  padding: 26px 30px;
}

.doc-brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.doc-header nav,
.doc-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.doc-header nav a,
.doc-footer nav a {
  color: var(--muted);
  font-size: 12.5px;
  text-decoration: none;
  transition: color 140ms ease;
}

.doc-header nav a:hover,
.doc-footer nav a:hover,
.doc-header nav a:focus-visible,
.doc-footer nav a:focus-visible {
  color: var(--white);
}

.doc-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 30px 30px 90px;
}

.doc-page h1 {
  margin: 0 0 18px;
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 540;
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.doc-lede {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  line-height: 1.62;
}

.doc-page h2 {
  margin: 52px 0 14px;
  font-size: 21px;
  font-weight: 620;
  letter-spacing: -0.02em;
}

.doc-page h3 {
  margin: 32px 0 9px;
  font-size: 15px;
  font-weight: 640;
}

.doc-page p {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.72;
}

.doc-page strong {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 640;
}

.doc-page ul {
  margin: 0 0 15px;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.72;
}

.doc-page li {
  margin-bottom: 7px;
}

.doc-page a {
  color: var(--white);
  text-underline-offset: 3px;
}

.doc-page code,
.doc-page kbd,
.landing kbd {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  font-family: inherit;
  font-size: 12.5px;
}

.doc-cta {
  display: inline-block;
  margin-top: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  color: #000 !important;
  background: var(--white);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.doc-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 20px;
  align-items: center;
  justify-content: space-between;
  max-width: 760px;
  margin: 0 auto;
  padding: 26px 30px 46px;
  border-top: 1px solid var(--line);
}

.doc-footer > div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
}

.doc-footer > div span {
  font-size: 12px;
  font-weight: 700;
}

.doc-footer > div small {
  color: var(--dim);
  font-size: 12px;
}

/* ==========================================================================
   Accessibility support
   ========================================================================== */

/* Visually hidden but available to assistive technology. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Smooth scrolling was the one motion the reduced-motion rules did not cover. */
@media (prefers-reduced-motion: reduce) {
  html,
  .intro-view {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Older browsers without dialog support: the fallback panel still needs to read
   as a layer rather than inline content. */
dialog.no-native-dialog {
  position: fixed;
  z-index: 90;
  inset: 12px;
  margin: auto;
}

/* ==========================================================================
   Touch behaviour on draggable surfaces.
   Without touch-action the browser claims the gesture for scrolling, so on a
   real touchscreen dragging the swipe divider or the spotlight lens just pans
   the page and the control never moves.
   ========================================================================== */

.compare-canvas,
.spotlight-stage,
.overlay-stage,
.inspection-viewport {
  touch-action: none;
}

/* Comfortable touch targets on small screens (WCAG 2.5.8 asks for 24px, the
   platform guidance for fingers is 44px). */
@media (pointer: coarse), (max-width: 720px) {
  .intro-actions button,
  .scroll-hint,
  .landing-footer nav a,
  .doc-footer nav a,
  .doc-header nav a {
    min-height: 44px;
  }

  .scroll-hint,
  .landing-footer nav a,
  .doc-footer nav a,
  .doc-header nav a {
    display: inline-flex;
    align-items: center;
  }
}

/* ==========================================================================
   Canvas trash bin — drag a screenshot onto it to delete, like the macOS Dock.
   Sits above the canvas, out of the way, and only in the workspace view.
   ========================================================================== */

.canvas-trash {
  position: absolute;
  z-index: 12;
  right: 26px;
  bottom: 26px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 18px 12px 14px;
  border: 1px dashed var(--line-strong);
  border-radius: 15px;
  color: var(--muted);
  cursor: pointer;
  background: rgba(10, 10, 10, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  text-align: left;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.canvas-trash:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.canvas-trash-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
}

.canvas-trash-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.canvas-trash-label {
  display: grid;
  gap: 2px;
}

.canvas-trash-label strong {
  color: inherit;
  font-size: 12px;
  font-weight: 640;
  letter-spacing: -0.01em;
}

.canvas-trash-label small {
  color: var(--dim);
  font-size: 11px;
}

/* Something is in the bin — make it look occupied rather than empty. */
.canvas-trash.has-items {
  border-style: solid;
  border-color: var(--line-strong);
  color: rgba(255, 255, 255, 0.78);
}

.canvas-trash.has-items .canvas-trash-icon {
  background: rgba(255, 255, 255, 0.12);
}

/* A card is hovering over it — this is the "let go now" state. */
.canvas-trash.armed {
  border-style: solid;
  border-color: #ff6b6b;
  color: #fff;
  background: rgba(60, 12, 12, 0.92);
  transform: scale(1.06);
}

.canvas-trash.armed .canvas-trash-icon {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.16);
}

.canvas-trash.armed .canvas-trash-label small {
  color: rgba(255, 190, 190, 0.9);
}

/* The card being dragged onto the bin. */
.screenshot-card.over-trash {
  opacity: 0.55;
  transform: scale(0.9);
}

/* The undo affordance inside a toast. */
.toast-action {
  margin-left: 14px;
  padding: 4px 11px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: inherit;
  cursor: pointer;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}

.toast-action:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 720px) {
  .canvas-trash {
    right: 14px;
    bottom: 14px;
    padding: 10px 14px 10px 11px;
  }

  .canvas-trash-label strong {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .canvas-trash,
  .screenshot-card.over-trash {
    transition: none;
  }

  .canvas-trash.armed {
    transform: none;
  }
}
