/* layout.css — sajugo design system (from saju globals.css) */

.app-shell {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 50% -12%, rgba(255, 248, 238, 0.78) 0%, transparent 52%),
    linear-gradient(180deg, #f3e4cc 0%, var(--canvas) 42%, #e0c6a3 100%);
}

.app-shell::before {
  content: "";
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.35;
  background-image:
    radial-gradient(1px 1px at 18% 22%, rgba(154, 107, 47, 0.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 18%, rgba(154, 107, 47, 0.28) 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 42% 78%, rgba(184, 92, 56, 0.22) 50%, transparent 51%);
}

.app-shell > * {
  position: relative;
  z-index: 1;
}

.page {
  min-height: 100dvh;
  padding: 1.25rem 1.15rem 2rem;
}

.page-dock {
  padding-bottom: 7rem;
}

.a4-sheet {
  position: relative;
  width: min(100%, 210mm);
  margin: 0 auto;
  min-height: 100dvh;
  padding: 1.15rem 1rem 1.8rem;
  background: var(--paper);
}

.a4-sheet > .home-top {
  position: absolute;
  top: 0.65rem;
  left: 0.7rem;
  right: 0.7rem;
  z-index: 2;
}

.a4-sheet:has(> .home-top) {
  padding-top: 3.2rem;
}

.form-sheet {
  width: min(100%, 42rem);
  margin: 0 auto;
  min-height: 100dvh;
  padding: 1.25rem 1.1rem calc(2.2rem + env(safe-area-inset-bottom, 0px));
}

.form-with-submit {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.form-sheet.form-with-submit {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.form-submit-slot {
  margin-top: auto;
  padding-top: 1.25rem;
}

.confirm-list {
  display: grid;
}

.confirm-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: 0.75rem;
  padding: 0.85rem 0.15rem;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.confirm-row:last-child {
  border-bottom: 0;
}

.confirm-row dt {
  margin: 0;
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.confirm-row dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.55;
  word-break: break-word;
}

.dock {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 1.15rem;
  width: min(390px, calc(100% - 2.5rem));
  transform: translateX(-50%);
}

@media (min-width: 720px) {
  .report-page {
    width: auto;
    padding-bottom: 2.5rem;
  }

  .report-page .a4-sheet {
    min-height: 297mm;
    margin-top: 12px;
  }

  .pillars {
    grid-template-columns: repeat(4, 1fr);
  }

  .report-toolbar {
    margin: 20px auto 0;
    padding: 0.85rem 1rem 0.2rem;
  }

  .mail-status {
    grid-column: 1 / -1;
  }
}
