:root {
  color-scheme: light;
  --paper: #f8f5ee;
  --panel: #fffdf8;
  --ink: #231e1c;
  --muted: #665d56;
  --line: #e4ddd2;
  --brick: #ab432d;
  --hot: #f58363;
  --dark: #2d2020;
  --dark-line: #5b4744;
  --round: 22px;
  font-family:
    Inter,
    Segoe UI,
    system-ui,
    sans-serif;
  font-synthesis: none;
  background: var(--paper);
  color: var(--ink);
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  min-width: 280px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.48;
  cursor: wait;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #ec7f58;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-family: Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.045em;
}
h3 {
  font-size: 1rem;
}
p {
  line-height: 1.55;
}
.shell {
  max-width: 1210px;
  margin: auto;
  padding-inline: 32px;
}
.top {
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}
.bar {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
}
.brand strong {
  display: block;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-top: 3px;
}
.mark {
  width: 39px;
  height: 39px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  background: #342320;
  color: #fa9275;
  flex: none;
}
.mark i,
.wave i {
  display: block;
  width: 3px;
  height: var(--h, 14px);
  border-radius: 5px;
  background: currentColor;
}
.mark i:nth-child(2),
.mark i:nth-child(4) {
  --h: 19px;
}
.mark i:nth-child(3) {
  --h: 25px;
}
.mark i:first-child,
.mark i:last-child {
  --h: 9px;
}
.top-actions,
.row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.plain {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 9px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 0.86rem;
  text-decoration: none;
  font-weight: 650;
}
.plain:hover {
  color: var(--ink);
  text-decoration: underline;
}
.intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding-block: 48px 29px;
}
.label {
  font-size: 0.71rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--brick);
  margin-bottom: 7px;
}
.intro h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.03;
}
.intro-copy {
  color: var(--muted);
  margin-top: 10px;
  max-width: 43rem;
}
.button {
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 12px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  background: none;
  font-weight: 730;
  padding: 0 15px;
  color: inherit;
  text-decoration: none;
}
.ghost {
  border-color: #d7cec1;
  background: #fffcf5;
}
.ghost:hover {
  background: #f0e8dc;
}
.dark {
  background: #312220;
  color: #fff9ef;
}
.dark:hover {
  background: #513631;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.11fr) minmax(0, 1fr);
  gap: 23px;
  align-items: start;
}
.capture,
.history {
  border-radius: var(--round);
  min-width: 0;
  padding: 28px;
}
.capture {
  color: #fff7ee;
  background: radial-gradient(
    ellipse at 75% 12%,
    #4c2f2a 0,
    #352522 45%,
    var(--dark) 82%
  );
  box-shadow: 0 9px 25px #3f201417;
}
.capture-heading,
.history-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.capture h2,
.history h2 {
  font-size: clamp(1.48rem, 3.2vw, 2.03rem);
  line-height: 1.1;
}
.capture-heading span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fbd4c6;
  font-size: 0.72rem;
  white-space: nowrap;
}
.capture-heading i {
  width: 7px;
  height: 7px;
  background: #f09173;
  border-radius: 50%;
  display: inline-block;
}
.capture-clock {
  text-align: center;
  font-size: clamp(3.75rem, 9vw, 5.7rem);
  letter-spacing: -0.085em;
  font-weight: 540;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin: 31px 0 11px;
}
.wave {
  max-width: 340px;
  margin: auto;
  height: 37px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 1.35vw, 9px);
  color: #bc725f;
}
.wave i {
  width: 3px;
  --h: 10px;
}
.wave i:nth-child(3n) {
  --h: 24px;
}
.wave i:nth-child(3n + 2) {
  --h: 17px;
}
.wave i:nth-child(5n) {
  --h: 32px;
}
.wave i:first-child,
.wave i:last-child {
  --h: 4px;
}
.capture[data-status="recording"] .wave {
  color: #ff9e81;
}
.capture[data-status="recording"] .wave i {
  animation: level 0.75s ease-in-out infinite alternate;
}
.capture[data-status="recording"] .wave i:nth-child(2n) {
  animation-delay: -0.4s;
}
.capture[data-status="recording"] .wave i:nth-child(3n) {
  animation-delay: -0.65s;
}
@keyframes level {
  to {
    transform: scaleY(0.42);
  }
}
.capture-buttons {
  display: flex;
  justify-content: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 21px;
}
.record {
  background: var(--hot);
  color: #241810;
  border-color: #ff997c;
}
.record:hover {
  background: #ffa084;
}
.record i {
  width: 11px;
  height: 11px;
  background: currentColor;
  display: block;
  border-radius: 50%;
}
.capture-ghost {
  border-color: #845e53;
  color: #fff6ea;
}
.capture-ghost:hover {
  background: #553630;
}
.capture-hint {
  text-align: center;
  font-size: 0.8rem;
  color: #e1c6ba;
  margin: 12px 0 0;
  min-height: 1.6rem;
}
.capture-form {
  border-top: 1px solid var(--dark-line);
  padding-top: 18px;
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.capture-form label,
.stack label {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 690;
  min-width: 0;
}
.capture-form input:not([type="checkbox"]),
.capture-form select {
  background: #332320;
  border: 1px solid #75554a;
  color: #fff7ee;
  border-radius: 9px;
  height: 43px;
  padding: 0 10px;
  min-width: 0;
  width: 100%;
  font-size: 1rem;
}
.capture-form input::placeholder {
  color: #c6a598;
}
.capture-form select {
  color-scheme: dark;
}
.capture-form .consent {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 32px;
}
.consent input {
  width: 19px;
  height: 19px;
  flex: none;
  accent-color: var(--hot);
  margin: 0;
}
.privacy {
  grid-column: 1/-1;
  color: #dfc4b7;
  font-size: 0.77rem;
}
.capture #retry-upload,
.capture #discard-upload {
  margin: 12px 5px 0 0;
}
.history {
  background: var(--panel);
  border: 1px solid var(--line);
  min-height: 465px;
}
.search {
  border: 1px solid #dcd2c4;
  border-radius: 12px;
  background: #faf7f0;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 12px;
  margin-top: 17px;
  min-height: 46px;
}
.search i {
  width: 14px;
  height: 14px;
  border: 1.65px solid var(--muted);
  border-radius: 50%;
  position: relative;
  display: block;
  flex: none;
}
.search i::after {
  content: "";
  position: absolute;
  height: 6px;
  width: 1.6px;
  background: var(--muted);
  transform: rotate(-45deg);
  bottom: -4px;
  right: -2px;
}
.search input {
  min-width: 0;
  width: 100%;
  min-height: 44px;
  border: 0;
  background: none;
  color: var(--ink);
  padding: 0;
  font-size: 1rem;
}
.search input:focus {
  outline: none;
}
.search:focus-within {
  outline: 3px solid #ec7f58;
  outline-offset: 2px;
}
.history-list {
  list-style: none;
  margin: 13px 0 0;
  padding: 0;
}
.history-list li + li {
  border-top: 1px solid var(--line);
}
.history-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  color: inherit;
  background: none;
  border: 0;
  width: 100%;
  text-align: left;
  padding: 12px 1px;
  min-height: 64px;
}
.history-item:hover {
  background: #faf5eb;
}
.history-item strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.96rem;
}
.history-item small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
  font-size: 0.77rem;
}
.item-icon,
.empty-mark {
  display: grid;
  place-items: center;
  background: #f4e6d9;
  color: #a64c36;
  border-radius: 11px;
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  font-weight: 800;
  flex: none;
}
.arrow {
  color: #827065;
  font-size: 1.35rem;
}
.empty {
  min-height: 260px;
  text-align: center;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
}
.empty strong {
  color: var(--ink);
}
.empty p {
  font-size: 0.86rem;
}
.empty-mark {
  width: 52px;
  height: 52px;
  margin-bottom: 7px;
  font-size: 1.7rem;
}
#more {
  margin-top: 14px;
}
footer {
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.75rem;
  padding: 21px 0 max(20px, env(safe-area-inset-bottom));
}
.notice {
  background: #fce8da;
  color: #671f10;
  border-radius: 12px;
  padding: 12px 15px;
  margin-bottom: 13px;
}
.notice[data-tone="ok"] {
  background: #eaf0df;
  color: #374829;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--panel);
  color: var(--ink);
  padding: 0;
  width: min(720px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  box-shadow: 0 22px 70px #22150f60;
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: #1d1513a6;
}
.dialog-inner {
  padding: 26px;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
  margin-bottom: 18px;
}
.dialog-head h2 {
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  overflow-wrap: anywhere;
}
.close {
  border: 1px solid #ddd2c2;
  background: #fbf5eb;
  border-radius: 12px;
  color: var(--ink);
  width: 44px;
  height: 44px;
  font-size: 1.45rem;
  flex: none;
}
.dialog-inner > p + p {
  margin-top: 0.8rem;
}
.detail-status {
  background: #f4ede2;
  padding: 11px 13px;
  margin-bottom: 12px;
  border-radius: 10px;
  color: #584339;
}
.detail-status[data-verified="true"] {
  background: #edf0e2;
  color: #3e5029;
}
.detail-actions {
  margin: 12px 0;
}
.detail-content {
  display: grid;
  gap: 15px;
}
.detail-content section {
  display: grid;
  gap: 5px;
}
.detail-content ul {
  padding-left: 1.3rem;
  margin: 0;
  line-height: 1.5;
}
.detail-content p,
.detail-content li,
.transcript {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.transcript {
  font: inherit;
  font-size: 0.93rem;
}
.transcript-box {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 10px;
}
.transcript-box summary {
  cursor: pointer;
  font-weight: 750;
}
.danger {
  color: #912f1b;
  border-color: #e5c8bb;
}
.select-light,
.stack input,
.stack textarea {
  padding: 10px;
  border: 1px solid #d9cebd;
  background: #fffdfa;
  border-radius: 9px;
  min-height: 44px;
  color: var(--ink);
  max-width: 100%;
  font-size: 1rem;
}
.stack {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.template-list {
  display: grid;
  gap: 8px;
}
.template-entry {
  background: #f8f1e7;
  padding: 12px;
  border-radius: 11px;
  overflow-wrap: anywhere;
}
.template-entry p {
  color: var(--muted);
  font-size: 0.84rem;
  margin: 4px 0;
}
.template-entry .button {
  min-height: 44px;
}
.auth-shell {
  max-width: 640px;
  padding-top: clamp(35px, 10vh, 100px);
  padding-bottom: 36px;
}
.auth-card {
  padding: clamp(24px, 6vw, 52px);
}
.auth-card h1 {
  font-size: clamp(2.35rem, 8vw, 4.2rem);
  margin-bottom: 14px;
}
.auth-card p {
  color: #f4d8cd;
  margin-bottom: 12px;
}
.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.auth-card .auth-status {
  margin-top: 16px;
  color: #ffe8d4;
}
.local-banner {
  background: #fce8da;
  color: #671f10;
  text-align: center;
  padding: 8px;
  font-size: 0.84rem;
}
@media (max-width: 740px) {
  .shell {
    padding-inline: 16px;
  }
  .bar {
    min-height: 62px;
  }
  .layout {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .intro {
    padding-block: 28px 19px;
    align-items: start;
  }
  .intro .button {
    margin-top: 13px;
  }
  .intro-copy {
    font-size: 0.9rem;
  }
  .capture,
  .history {
    padding: 18px;
  }
  .history {
    min-height: 320px;
  }
  .capture-clock {
    margin-top: 22px;
  }
  .empty {
    min-height: 185px;
  }
  .plain {
    font-size: 0.78rem;
    padding-inline: 6px;
  }
  .dialog-inner {
    padding: 18px;
  }
  .top-actions {
    gap: 0;
  }
}
@media (max-width: 375px) {
  .top-actions .plain {
    padding-inline: 4px;
  }
  .brand {
    gap: 6px;
    font-size: 0.86rem;
  }
  .brand strong {
    font-size: 0.6rem;
  }
  .intro {
    flex-wrap: wrap;
    gap: 7px;
  }
  .intro .button {
    margin-top: 0;
  }
  .capture-form {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
  }
}
