/* ==========================================================================
   SkipBoard v2 — Done (the filed moment)
   Scope: .screen-done, plus .is-done-sheet for the body-level send sheet.
   ========================================================================== */

.screen-done .done-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
  padding: var(--s-4) var(--gutter) var(--s-6);
}

/* ------------------------------- Hero + stamp --------------------------- */
.screen-done .done-top { display: flex; flex-direction: column; gap: var(--s-5); }

.screen-done .done-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--s-2);
}

.screen-done .done-paper {
  width: min(258px, 82%);
  min-height: 196px;
  padding: 16px 16px 18px;
  margin: 0 auto var(--s-1);
  overflow: hidden;
  animation: done-paper-in 260ms var(--ease) both;
}
[data-theme='sunlight'] .screen-done .done-paper {
  box-shadow: none;
  border-color: var(--line);
}
@media (prefers-reduced-motion: reduce) {
  .screen-done .done-paper { animation: none; }
}
@keyframes done-paper-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.screen-done .done-paper-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  margin-bottom: 6px;
  border-bottom: 2px solid rgba(13, 21, 18, 0.35);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(13, 21, 18, 0.62);
}
.screen-done .done-paper-head span:first-child {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.screen-done .done-paper-line {
  display: block;
  height: 8px;
  margin: 9px 0;
  border-bottom: 1px solid rgba(30, 58, 138, 0.3);
}
.screen-done .done-paper-sign {
  display: block;
  margin-top: 2px;
  text-align: right;
  font-size: 27px;
  font-weight: 600;
  line-height: 1;
  color: #1e3a8a;
}

.screen-done .filed-stamp {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  border: 3px solid #0b6b4f;
  border-radius: 7px;
  color: #0b6b4f;
  font-family: var(--font-hand);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
  transform: rotate(-8deg);
  opacity: 0.92;
  animation: filed-land 380ms var(--ease) 80ms both;
}
@media (prefers-reduced-motion: reduce) {
  .screen-done .filed-stamp { animation: none; transform: rotate(-6deg); }
}
@keyframes filed-land {
  from { opacity: 0; transform: rotate(-16deg) scale(1.7); }
  70% { opacity: 1; transform: rotate(-8deg) scale(0.97); }
  to { opacity: 0.92; transform: rotate(-8deg) scale(1); }
}

.screen-done .done-title {
  margin-top: var(--s-1);
  font-family: var(--font-display);
  font-size: var(--t-34);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.screen-done .done-sub {
  max-width: 36ch;
  color: var(--muted);
  font-size: var(--t-15);
  line-height: 1.5;
}
.screen-done .done-sub strong { color: var(--text); font-weight: 600; }

/* ------------------------------- Summary -------------------------------- */
.screen-done .done-summary {
  padding: var(--s-4) var(--s-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--e-1);
}
.screen-done .done-summary-title {
  font-size: var(--t-11);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.screen-done .done-rows { margin: var(--s-2) 0 0; }
.screen-done .done-rows > div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: var(--s-3);
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}
.screen-done .done-rows > div:last-child { border-bottom: 0; padding-bottom: 2px; }
.screen-done .done-rows dt { color: var(--muted); font-size: var(--t-13); font-weight: 600; }
.screen-done .done-rows dd {
  margin: 0;
  font-size: var(--t-15);
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* ------------------------------- Next rows ------------------------------ */
.screen-done .done-next { display: flex; flex-direction: column; gap: var(--s-2); }
.screen-done .done-row { min-height: 64px; }

/* -------------------------------- Footer -------------------------------- */
.screen-done .done-foot {
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.screen-done .done-foot-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3);
}
.screen-done .done-foot .btn-block { width: 100%; }

@media (min-width: 760px) {
  .screen-done .done-body { padding: var(--s-5) var(--s-8) var(--s-8); gap: var(--s-8); }
  .screen-done .done-top {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: var(--s-6);
    align-items: center;
  }
  .screen-done .done-hero { align-items: flex-start; text-align: left; }
  .screen-done .done-paper { width: 268px; margin-left: 0; }
  .screen-done .done-sub { max-width: none; }
}

/* ==========================================================================
   Send sheet (body-level, scoped with .is-done-sheet)
   ========================================================================== */
.is-done-sheet .done-sheet-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0 2px var(--s-3);
  line-height: 1.45;
}
.is-done-sheet .done-sheet-note svg { color: var(--faint); margin-top: 2px; flex-shrink: 0; }
.is-done-sheet .done-send-menu { gap: 0; }
.is-done-sheet .done-send-item {
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0;
  padding: 8px;
}
.is-done-sheet .done-send-item:first-child { border-top: 1px solid var(--line-soft); }
.is-done-sheet .done-send-item > svg:first-child { color: var(--accent); }
.is-done-sheet .done-send-item > svg:last-child { color: var(--faint); margin-left: auto; }
.is-done-sheet .done-send-item:hover { background: var(--surface-2); }
.is-done-sheet .done-send-item strong { font-weight: 600; }
.is-done-sheet .done-send-back { margin: 0 0 var(--s-2) -4px; }
.is-done-sheet .done-send-status {
  min-height: 20px;
  margin: var(--s-3) 0 var(--s-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.is-done-sheet .done-send-status.is-busy::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, currentColor 25%, transparent);
  border-top-color: currentColor;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}
