:root {
  --paper: #f7f5ee;
  --ink: #203d36;
  --muted: #64746b;
  --line: #dce0d5;
  --green: #204f43;
  --gold: #ad8b4f;
  --white: #fffefa;
  --hex-gold: #e4c786;
  --shine: 0.75;
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  line-height: 1.65;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a {
  color: inherit;
}
button {
  color: inherit;
}
a,
button {
  outline-offset: 5px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid #8f5a25;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  word-break: keep-all;
}
h1,
h2 {
  font-family: Batang, "Noto Serif KR", "AppleMyungjo", serif;
  font-weight: 500;
}
h1 {
  font-size: clamp(2rem, 3.8vw, 3.6rem);
  line-height: 1.4;
  letter-spacing: -0.05em;
}
h2 {
  font-size: 1.65rem;
  line-height: 1.5;
}
h3 {
  font-size: 1.05rem;
}
small {
  font-size: 0.8125rem;
}
button {
  border: 0;
  background: none;
}
input,
textarea,
select {
  max-width: 100%;
}
textarea {
  resize: vertical;
}
::selection {
  background: #ccdac9;
  color: #163d36;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.skip {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: white;
  padding: 12px;
}
.skip:focus {
  top: 10px;
}
.topbar {
  height: 96px;
  max-width: 1360px;
  padding: 0 64px;
  margin: auto;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  gap: 36px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: Batang, serif;
  font-size: 1.75rem;
  font-weight: bold;
  flex-shrink: 0;
}
.brand-symbol {
  display: grid;
  place-items: center;
  width: 43px;
  height: 47px;
  border: 1px solid #426654;
  border-radius: 2px;
  font-family: Batang, serif;
  font-size: 1.8rem;
  font-weight: normal;
  line-height: 1;
}
.brand small {
  font-family: Georgia, serif;
  font-weight: normal;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  margin-left: 7px;
}
.topbar nav {
  display: flex;
  gap: 35px;
  margin: auto;
  font-size: 0.875rem;
}
.topbar nav a {
  text-decoration: none;
  position: relative;
  padding: 34px 0;
  color: #5e6b60;
}
.topbar nav a[aria-current] {
  color: var(--green);
  font-weight: bold;
}
.topbar nav a[aria-current]:after {
  content: "";
  position: absolute;
  bottom: 19px;
  left: 45%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}
.balance {
  display: flex;
  gap: 7px;
  align-items: center;
  text-decoration: none;
  border: 1px solid #d8decd;
  padding: 7px 14px;
  border-radius: 40px;
  font-family: Georgia, serif;
  font-size: 1.125rem;
  white-space: nowrap;
}
.balance > span {
  color: #8a6d30;
  font-size: 1.5rem;
}
.balance small {
  font-family: inherit;
  font-size: 0.75rem;
  color: var(--muted);
  margin-left: 4px;
}
main {
  max-width: 1232px;
  margin: auto;
  padding: 0 32px;
  min-height: 65vh;
}
main:focus {
  outline: none;
}
.home-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  min-height: 710px;
  align-items: center;
  padding: 44px 0 55px;
}
.eyebrow {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: #64745e;
  margin-bottom: 18px;
  font-weight: 500;
}
.eyebrow i,
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #54745b;
  margin-right: 10px;
  vertical-align: middle;
}
.hero-copy {
  padding-left: 20px;
  padding-top: 10px;
}
.hero-copy h1 {
  font-size: clamp(2.4rem, 3.9vw, 3.6rem);
  margin: 23px 0 24px;
  line-height: 1.5;
}
.hero-copy h1 em {
  font-style: normal;
  position: relative;
  color: #346146;
}
.hero-copy h1 em:after {
  content: "";
  height: 7px;
  background: #cad6bf7a;
  position: absolute;
  bottom: 0;
  left: -4px;
  right: -5px;
  transform: rotate(-4deg);
}
.hero-description {
  color: #667266;
  line-height: 2.05;
  font-size: 0.9375rem;
  margin-bottom: 32px;
}
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 15px 26px;
  background: var(--green);
  color: #fffdf1;
  border-radius: 4px;
  text-decoration: none;
  min-height: 52px;
  border: 1px solid var(--green);
  font-size: 0.9375rem;
  transition:
    background 0.2s,
    transform 0.2s;
}
.primary:hover {
  background: #123b31;
  transform: translateY(-1px);
}
.primary span {
  font-size: 1.25rem;
}
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  min-height: 46px;
  border: 1px solid #c6d0c1;
  border-radius: 4px;
  background: var(--white);
  font-size: 0.9375rem;
  text-decoration: none;
}
.secondary:hover {
  background: #edf0e5;
}
.wide {
  width: 100%;
}
.quiet-link {
  display: block;
  width: fit-content;
  text-decoration: none;
  margin-top: 19px;
  font-size: 0.8125rem;
  color: #637362;
}
.quiet-link span {
  margin-left: 11px;
}
.hero-footnote {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-top: 46px;
  font-family: Batang, serif;
  font-size: 0.8125rem;
  color: #7a806e;
}
.seal {
  font-size: 1.75rem;
  line-height: 1;
  border: 1px solid #a66b51;
  color: #a66b51;
  width: 35px;
  height: 40px;
  display: grid;
  place-items: center;
  transform: rotate(-4deg);
}
.hero-experience {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  isolation: isolate;
}
.halo {
  position: absolute;
  width: 480px;
  height: 480px;
  border: 1px solid #dfd9c550;
  border-radius: 50%;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: -1;
  background: radial-gradient(circle, #dfdac25c, transparent 69%);
}
.halo:before,
.halo:after {
  content: "";
  position: absolute;
  border: 1px solid #d5d7c444;
  border-radius: 50%;
  inset: 30px;
}
.halo:after {
  inset: -32px;
  border-style: dashed;
}
.vertical-caption {
  writing-mode: vertical-rl;
  position: absolute;
  right: -3px;
  top: 190px;
  letter-spacing: 0.25em;
  font-family: Batang, serif;
  font-size: 0.75rem;
  color: #929984;
}
.experience-label {
  font-family: Georgia, serif;
  font-size: 0.625rem;
  letter-spacing: 0.17em;
  color: #78806b;
  margin: 7px 0 24px;
}
.live-dot {
  background: #728f76;
  width: 5px;
  height: 5px;
  margin-right: 5px;
}
.hex-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 83px;
}
.hex-line {
  display: flex;
  gap: 10px;
  height: 5px;
  position: relative;
}
.hex-line i {
  flex: 1;
  display: block;
  background: var(--hex-gold);
  height: 100%;
  box-shadow: inset 0 1px 0 #fff9;
}
.hex-line.yang {
  gap: 0;
}
.hex-line.moving:after {
  content: "○";
  position: absolute;
  right: -14px;
  top: -8px;
  font-size: 13px;
}
.experience-controls {
  display: flex;
  align-items: center;
  gap: 11px;
  justify-content: center;
  margin-top: 15px;
  flex-wrap: wrap;
}
.theme-picker {
  display: flex;
  gap: 8px;
}
.swatch {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 50%;
}
.swatch::after {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--swatch);
}
.swatch[aria-pressed="true"] {
  border-color: #64735c;
  background: #e5e9dd;
}
.swatch.theme-jade {
  --swatch: #345f4d;
}
.swatch.theme-moon {
  --swatch: #404c7b;
}
.swatch.theme-amber {
  --swatch: #9b683b;
}
.control-divider {
  height: 15px;
  width: 1px;
  background: #c9cfbf;
  margin: 0 2px;
}
.text-button {
  font-size: 0.8125rem;
  text-decoration: none;
  color: #66715c;
  padding: 5px;
  min-height: 44px;
}
.text-button:hover {
  color: #234935;
  text-decoration: underline;
}
.sample-note {
  font-size: 0.75rem;
  color: #8b927d;
  margin-top: 11px;
  margin-bottom: 0;
}
.reading-menu {
  padding-top: 35px;
  border-top: 1px solid var(--line);
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 22px;
}
.section-heading h2 {
  margin: 0;
}
.section-heading .eyebrow {
  font:
    10px Georgia,
    serif;
  letter-spacing: 0.18em;
  margin-bottom: 7px;
}
.section-heading > span {
  font-size: 0.8125rem;
  color: #839079;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.product-card {
  text-decoration: none;
  background: #fffef979;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 25px 27px 19px;
  transition:
    transform 0.2s,
    border 0.2s,
    box-shadow 0.2s;
}
.product-card:hover {
  transform: translateY(-4px);
  border-color: #91a387;
  box-shadow: 0 8px 20px #183e3510;
}
.product-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.product-symbol {
  font-size: 31px;
  color: #6b7d62;
  line-height: 1.2;
}
.tag {
  font-size: 0.6875rem;
  color: #748365;
  padding: 3px 8px;
  background: #edf0e5;
  border-radius: 3px;
}
.product-card h3 {
  font-family: Batang, serif;
  font-size: 1.125rem;
  font-weight: 500;
  margin: 0 0 8px;
}
.product-card > p {
  font-size: 0.8125rem;
  color: #75806e;
}
.product-bottom {
  border-top: 1px solid #e3e5d9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 13px;
  margin-top: 24px;
  font-size: 0.875rem;
}
.product-bottom small {
  font-size: 0.6875rem;
  color: #839077;
}
.product-bottom > span:last-child {
  font-size: 1.3rem;
  color: #738465;
}
.demo-note {
  font-size: 0.75rem;
  color: #80896f;
  text-align: right;
  margin: 14px 0 0;
}
.quiet-strip {
  display: flex;
  align-items: center;
  gap: 25px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 27px 0;
  margin: 51px 0 0;
}
.quiet-strip > span {
  font-size: 36px;
  color: #89987c;
}
.quiet-strip h2 {
  font-family: inherit;
  font-size: 0.9375rem;
  margin-bottom: 5px;
}
.quiet-strip p {
  font-size: 0.8125rem;
  color: #77836d;
  margin: 0;
}
.quiet-strip > a {
  margin-left: auto;
  white-space: nowrap;
  font-size: 0.75rem;
  text-decoration: none;
}
.footer {
  max-width: 1168px;
  padding: 29px 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: auto;
  gap: 15px;
  font-size: 0.75rem;
  color: #7d8975;
}
.footer > a {
  text-decoration: none;
}
.footer .text-button {
  font-size: 0.75rem;
}
.mobile-nav {
  display: none;
}
.page-heading {
  padding: 44px 0 30px;
}
.page-heading h1 {
  font-size: 2.5rem;
  margin: 10px 0 13px;
}
.page-heading > p {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 0;
}
.back-link {
  display: block;
  width: fit-content;
  font-size: 0.8125rem;
  text-decoration: none;
  color: var(--muted);
  margin-bottom: 26px;
}
.centered {
  text-align: center;
}
.centered .back-link {
  margin-right: auto;
}
.centered .eyebrow {
  margin-top: 10px;
}
.ask-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 95px;
  padding: 6px 0 60px;
}
.ask-aside {
  padding-top: 20px;
  display: flex;
  align-items: center;
  flex-direction: column;
}
.small-guide {
  margin-top: 42px;
  text-align: center;
  max-width: 280px;
}
.small-guide > span {
  color: #a99465;
  font-family: Batang, serif;
  letter-spacing: 0.4em;
}
.small-guide h3 {
  font-size: 0.875rem;
  margin: 15px 0;
}
.small-guide p {
  font-size: 0.8125rem;
  line-height: 1.9;
  color: var(--muted);
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 25px;
}
legend {
  font-size: 0.9375rem;
  padding: 0;
  margin-bottom: 12px;
}
.topic-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.topic-options input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.topic-options label span {
  display: block;
  border: 1px solid #d8dece;
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 0.8125rem;
  color: var(--muted);
  cursor: pointer;
}
.topic-options input:checked + span {
  border-color: #496a4f;
  background: #e7ecde;
  color: #254c36;
}
.topic-options input:focus-visible + span {
  outline: 2px solid #8f5a25;
  outline-offset: 3px;
}
.field {
  display: block;
  font-size: 0.875rem;
  margin: 0 0 23px;
}
.field > span:not(.sr-only) {
  font-size: 0.75rem;
  color: #87907e;
  margin-left: 7px;
}
.field textarea,
.field input:not([type="range"]) {
  display: block;
  width: 100%;
  margin-top: 10px;
  background: #fffefb;
  border: 1px solid #d8dece;
  padding: 13px 15px;
  border-radius: 5px;
  color: var(--ink);
  line-height: 1.8;
  font-size: 0.9375rem;
}
.field textarea::placeholder,
.field input::placeholder {
  color: #8d9586;
}
.two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.engine-choice {
  border: 1px solid var(--line);
  padding: 20px;
  border-radius: 5px;
  background: #edf0e542;
  margin-bottom: 23px;
  font-size: 0.875rem;
}
.engine-choice p {
  font-size: 0.8125rem;
  margin: 7px 0 12px;
  color: var(--muted);
}
.muted {
  font-size: 0.8125rem;
  color: var(--muted);
}
.form-footnote {
  font-size: 0.75rem;
  text-align: center;
  color: var(--muted);
  margin: 12px 0;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0;
  font-size: 0.875rem;
}
.check input {
  accent-color: var(--green);
  margin-top: 6px;
}
.form-error,
.casting-error {
  color: #a04635;
  font-size: 0.875rem;
}
.question-display {
  max-width: 760px;
  margin-inline: auto;
  word-break: break-word;
}
.casting-table {
  display: grid;
  grid-template-columns: 1fr 300px;
  align-items: center;
  gap: 65px;
  max-width: 1000px;
  margin: 20px auto 45px;
  border: 1px solid #d6ddcd;
  border-radius: 12px;
  padding: 50px;
  background: #f0f1e66b;
}
.casting-ritual {
  text-align: center;
  position: relative;
}
#toss-description {
  font-size: 0.8125rem;
  min-height: 32px;
  color: #65705a;
}
.ritual-button {
  min-width: 270px;
  margin: 9px 0 16px;
}
.ritual-progress {
  display: flex;
  gap: 9px;
  justify-content: center;
  margin-top: 28px;
}
.ritual-progress span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d0d5c5;
}
.ritual-progress .done {
  background: #6b865f;
}
.line-board {
  padding: 27px 22px;
  background: var(--white);
  border: 1px solid #d7ddcf;
  border-radius: 8px;
}
.board-title {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  margin-bottom: 21px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e5e8dc;
}
.board-title span:last-child {
  font-family: Georgia, serif;
  color: #8a936f;
}
.board-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 11px 0;
}
.board-row > span {
  width: 52px;
  font-size: 0.75rem;
  color: #8d9587;
}
.board-row small {
  width: 28px;
  font-size: 0.75rem;
  color: #a37943;
  text-align: right;
  white-space: nowrap;
}
.board-line {
  display: flex;
  gap: 10px;
  height: 5px;
  flex: 1;
}
.board-line i {
  flex: 1;
  background: #42654d;
}
.board-line.yang {
  gap: 0;
}
.board-line.pending i {
  background: #e9ebe2;
}
.board-line.moving i {
  background: #ae8749;
}
.line-board > p {
  font-size: 0.6875rem;
  color: #8b947f;
  margin: 18px 0 0;
}
.reading-meta {
  display: inline-block;
  margin-top: 15px;
  font-size: 0.75rem;
  color: #859078;
}
.reading-meta i {
  font-style: normal;
  margin: 0 8px;
}
.change-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #8a987d;
  gap: 10px;
}
.change-bridge > span {
  font-size: 2rem;
  font-weight: 200;
}
.change-bridge small {
  font-size: 0.6875rem;
}
.result-controls {
  margin: 5px 0 40px;
}
.interpretation {
  max-width: 850px;
  margin: auto;
  padding-bottom: 65px;
}
.reading-summary {
  padding: 31px 0 33px;
  border-block: 1px solid var(--line);
  margin-bottom: 39px;
  text-align: center;
}
.reading-summary h2 {
  font-size: 1.6rem;
  max-width: 650px;
  margin: 0 auto 17px;
}
.reading-summary > span:last-child {
  font-size: 0.8125rem;
  color: #83906f;
}
.reading-disclosure {
  margin: 0 0 20px;
  line-height: 1.8;
}
.reading-sections {
  border-top: 1px solid var(--line);
}
details {
  border-bottom: 1px solid var(--line);
}
summary {
  cursor: pointer;
  list-style: none;
  padding: 22px 2px;
  display: flex;
  align-items: center;
  gap: 17px;
  font-size: 1rem;
}
summary::-webkit-details-marker {
  display: none;
}
.section-number {
  font-family: Georgia, serif;
  color: #939c83;
  font-size: 0.875rem;
  min-width: 22px;
}
.plus {
  margin-left: auto;
  color: #839177;
  transition: transform 0.2s;
  font-size: 1.2rem;
}
details[open] .plus {
  transform: rotate(45deg);
}
.section-body {
  padding: 2px 35px 28px 42px;
  font-size: 1rem;
  line-height: 2.05;
  color: #4d6256;
  overflow-wrap: anywhere;
}
.section-body p {
  white-space: pre-wrap;
  margin-bottom: 23px;
}
.section-body p:last-child {
  margin-bottom: 0;
}
.method-details {
  margin-top: 20px;
}
.method-details summary {
  font-size: 0.875rem;
  color: var(--muted);
}
.method-details p {
  font-size: 0.8125rem;
  padding: 10px;
  line-height: 1.9;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
th,
td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 12px 7px;
}
th {
  font-size: 0.8125rem;
  color: #5a725b;
  font-weight: normal;
}
.journal-note {
  margin-top: 45px;
  border: 1px solid var(--line);
  padding: 27px 30px;
  background: #fdfcf5;
  border-radius: 6px;
}
.journal-note .eyebrow {
  font:
    10px Georgia,
    serif;
  margin-bottom: 9px;
}
.journal-note h2 {
  font-size: 1.4rem;
}
.journal-note > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.journal-note .field {
  margin-bottom: 12px;
}
.result-actions {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 30px;
}
.library-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
}
.search {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
  padding: 9px 14px;
  max-width: 480px;
  width: 100%;
}
.search > span {
  font-size: 1.5rem;
  line-height: 1;
  color: #7f8f70;
}
.search input {
  border: 0;
  background: transparent;
  width: 100%;
  color: var(--ink);
  padding: 4px;
  font-size: 0.875rem;
}
.filter-label {
  display: flex;
  gap: 15px;
  align-items: center;
  font-size: 0.8125rem;
  white-space: nowrap;
}
.filter-label select {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
}
#library-count {
  margin: 20px 0;
}
.hex-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-bottom: 45px;
}
.hex-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #d7dfcf;
  border-radius: 6px;
  padding: 25px 15px 20px;
  background: linear-gradient(145deg, #fffefb, #eef1e5);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  min-height: 227px;
}
.hex-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px #173e3410;
  border-color: #899e7e;
}
.tile-number {
  font:
    12px Georgia,
    serif;
  position: absolute;
  left: 15px;
  top: 12px;
  color: #8c977c;
}
.hex-tile .hex-lines {
  width: 54px;
  gap: 5px;
  margin: 8px 0 18px;
}
.hex-tile .hex-line {
  height: 4px;
  gap: 7px;
}
.hex-tile .hex-line.yang {
  gap: 0;
}
.hex-tile .hex-line i {
  background: #607653;
}
.hex-tile strong {
  font-family: Batang, serif;
  font-size: 1.15rem;
  font-weight: normal;
}
.hex-tile > span:not(.tile-number) {
  font-size: 0.8125rem;
  color: #6f8064;
  margin: 5px 0;
}
.hex-tile small {
  font-size: 0.6875rem;
  color: #8a957d;
}
.hex-detail {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 45px;
  align-items: center;
}
.hex-detail h2 {
  font-size: 2rem;
  margin-bottom: 14px;
}
.hex-detail h2 small {
  font-size: 1.5rem;
  color: #91a27d;
}
.hex-detail h3 {
  font-weight: normal;
  color: #667d57;
  font-family: Batang, serif;
  font-size: 1.2rem;
}
.hex-detail p {
  font-size: 0.9375rem;
  line-height: 1.9;
}
.hex-detail .muted {
  font-size: 0.8125rem;
}
.trigram-detail {
  display: flex;
  flex-direction: column;
  gap: 7px;
  border-block: 1px solid var(--line);
  padding: 13px 0;
  margin: 20px 0;
  font-size: 0.875rem;
}
.journal-search {
  margin-bottom: 28px;
}
.journal-item {
  display: flex;
  align-items: center;
  gap: 23px;
  border-top: 1px solid var(--line);
  padding: 22px 5px;
}
.journal-item:last-child {
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.journal-symbol {
  width: 58px;
  height: 77px;
  border: 1px solid #cbd6bf;
  border-radius: 4px;
  background: #edf1e5;
  display: grid;
  place-items: center;
  font-size: 36px;
  color: #70815d;
  flex-shrink: 0;
}
.journal-item > a {
  flex: 1;
  text-decoration: none;
  min-width: 0;
}
.journal-item small {
  font-size: 0.75rem;
  color: #8b957e;
}
.journal-item h3 {
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 500;
  margin: 5px 0;
  overflow-wrap: anywhere;
}
.journal-item a > span {
  font-size: 0.8125rem;
  color: #6b805a;
}
.danger {
  color: #9f6a53;
}
.empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 70px 25px;
  color: #7c896e;
}
.empty > span {
  font-size: 45px;
}
.empty h2 {
  font-size: 1.5rem;
  margin: 12px;
}
.empty p {
  font-size: 0.875rem;
}
.empty .primary {
  margin-top: 20px;
}
.wallet-panel {
  border: 1px solid #d4ddc9;
  border-radius: 8px;
  padding: 30px 35px;
  margin: 3px 0 40px;
  background: linear-gradient(120deg, #e5ecd9, #f2f3e9);
  text-align: center;
}
.wallet-panel > span {
  font-size: 0.875rem;
  color: #6d825b;
}
.wallet-panel strong {
  display: block;
  font:
    3rem Georgia,
    serif;
  margin: 10px;
}
.wallet-panel p {
  font-size: 0.8125rem;
  color: #7c8b6b;
  margin: 0;
}
.credit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.credit-pack {
  padding: 25px 15px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
  text-align: center;
}
.credit-pack > span {
  font-size: 2rem;
  color: #9f8551;
}
.credit-pack h3 {
  font:
    1.75rem Batang,
    serif;
  margin: 10px 0;
}
.credit-pack p {
  font-size: 0.8125rem;
  color: var(--muted);
}
.credit-pack strong {
  font-size: 0.8125rem;
  font-weight: normal;
  color: #2c6142;
}
.shop-info {
  margin: 45px 0;
  padding: 25px 0;
  border-top: 1px solid var(--line);
  max-width: 760px;
}
.shop-info h2 {
  font-size: 1.5rem;
}
.shop-info p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.9;
}
.guide-layout {
  display: grid;
  grid-template-columns: 1fr 330px;
  gap: 100px;
  padding-bottom: 60px;
}
.guide-copy > h2 {
  font-size: 1.5rem;
  margin-top: 36px;
}
.guide-copy > h2:first-child {
  margin-top: 0;
}
.guide-copy > p {
  font-size: 1rem;
  color: #546b5b;
  line-height: 2;
}
.trigram-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 28px 0;
}
.trigram-grid > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #edf0e4;
  padding: 14px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.trigram-grid span {
  font-size: 2rem;
  color: #607e4d;
}
.trigram-grid strong {
  font-size: 0.8125rem;
  font-weight: normal;
}
.trigram-grid small {
  font-size: 0.6875rem;
  color: #7d8c6e;
  margin-top: 5px;
}
.guide-layout aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  align-self: start;
  position: sticky;
  top: 35px;
  padding-top: 15px;
}
.boot {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 35px;
  text-align: center;
}
.boot h1 {
  font-size: 1.75rem;
}
.boot p {
  max-width: 600px;
}
dialog {
  border: 1px solid #cbd4bf;
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  padding: 40px;
  max-width: min(580px, calc(100vw - 32px));
  max-height: calc(100dvh - 50px);
  box-shadow: 0 20px 80px #11271c40;
}
dialog::backdrop {
  background: #10241dd1;
  backdrop-filter: blur(5px);
}
dialog.wide-modal {
  width: 900px;
  max-width: calc(100vw - 50px);
  padding: 45px;
}
dialog h2 {
  font-size: 1.75rem;
  margin-top: 6px;
}
dialog p {
  color: #607153;
  font-size: 0.9375rem;
  line-height: 1.9;
}
.modal-close {
  position: absolute;
  right: 14px;
  top: 9px;
  font-size: 27px;
  color: #7e8b6d;
  width: 35px;
  height: 35px;
}
.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 26px;
}
.confirm-question {
  padding: 20px;
  background: #eaf0df;
  border-left: 2px solid #819c67;
  margin: 20px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
input[type="range"] {
  display: block;
  width: 100%;
  margin-top: 20px;
  accent-color: var(--green);
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 1000;
  transform: translate(-50%, 15px);
  background: #1d473cf5;
  color: #f8faed;
  padding: 13px 25px;
  border-radius: 7px;
  box-shadow: 0 8px 30px #10251b30;
  font-size: 0.875rem;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
  width: max-content;
  max-width: calc(100vw - 35px);
  text-align: center;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
[data-theme="moon"] {
  --hex-gold: #e2ddbe;
}
[data-theme="amber"] {
  --hex-gold: #edd59b;
}
@media (min-width: 1450px) {
  .home-intro {
    min-height: 740px;
    gap: 90px;
  }
  .hero-copy {
    padding-left: 0;
  }
  .hero-experience {
    min-height: 640px;
  }
}
@media (max-width: 1100px) {
  .topbar {
    padding-inline: 32px;
  }
  .topbar nav {
    gap: 22px;
  }
  .home-intro {
    gap: 20px;
  }
  .hero-copy {
    padding-left: 0;
  }
  .hero-copy h1 {
    font-size: 2.9rem;
  }
  .halo {
    width: 380px;
    height: 380px;
    top: 60px;
  }
  .vertical-caption {
    display: none;
  }
  .ask-layout {
    gap: 45px;
    grid-template-columns: 1fr 280px;
  }
  .footer {
    padding-inline: 32px;
  }
  .guide-layout {
    gap: 40px;
  }
  .casting-table {
    gap: 30px;
    padding: 35px;
  }
  .hex-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 780px) {
  .topbar {
    height: 78px;
    padding: 0 22px;
    gap: 14px;
  }
  .topbar nav {
    display: none;
  }
  .brand {
    font-size: 1.5rem;
  }
  .brand-symbol {
    width: 35px;
    height: 40px;
    font-size: 1.5rem;
  }
  .brand small {
    font-size: 0.6875rem;
  }
  .balance {
    margin-left: auto;
    font-size: 1rem;
    padding: 5px 10px;
  }
  .balance small {
    font-size: 0.6875rem;
  }
  main {
    padding-inline: 22px;
  }
  .home-intro {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 35px;
  }
  .hero-copy {
    padding: 0 4px;
    text-align: center;
  }
  .hero-copy .eyebrow {
    font-size: 0.6875rem;
    margin-bottom: 12px;
  }
  .hero-copy h1 {
    font-size: 2.3rem;
    line-height: 1.45;
    margin: 14px 0;
  }
  .hero-description {
    font-size: 0.8125rem;
    line-height: 1.9;
    margin: 18px 0 22px;
  }
  .hero-copy .primary {
    min-height: 48px;
    padding: 11px 22px;
    font-size: 0.875rem;
  }
  .hero-copy .quiet-link {
    margin: 16px auto 0;
  }
  .hero-footnote {
    display: none;
  }
  .hero-experience {
    min-height: auto;
    padding-top: 4px;
  }
  .experience-label {
    margin: 5px 0 21px;
  }
  .halo {
    width: 350px;
    height: 350px;
    top: 60px;
  }
  .halo:after {
    inset: -15px;
  }
  .sample-note {
    font-size: 0.6875rem;
  }
  .experience-controls {
    gap: 7px;
    margin-top: 11px;
  }
  .experience-controls .text-button {
    font-size: 0.75rem;
  }
  .reading-menu {
    padding-top: 30px;
  }
  .section-heading {
    align-items: flex-start;
  }
  .section-heading h2 {
    font-size: 1.35rem;
  }
  .section-heading > span {
    font-size: 0.6875rem;
  }
  .product-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .product-card {
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 18px 20px;
    column-gap: 12px;
  }
  .product-top {
    grid-column: 1/-1;
    margin-bottom: 8px;
  }
  .product-symbol {
    font-size: 25px;
  }
  .product-card h3 {
    font-size: 1.0625rem;
  }
  .product-card > p {
    margin-bottom: 0;
    font-size: 0.8125rem;
    grid-column: 1;
  }
  .product-bottom {
    border: 0;
    margin: 0;
    padding: 0;
    grid-column: 2;
    grid-row: 2/4;
    gap: 14px;
    font-size: 0.8125rem;
    align-items: center;
  }
  .product-bottom small {
    display: block;
  }
  .tag {
    font-size: 0.6875rem;
  }
  .demo-note {
    text-align: center;
    font-size: 0.6875rem;
    line-height: 1.7;
  }
  .quiet-strip {
    margin-top: 35px;
    padding: 24px 0;
    gap: 14px;
    flex-wrap: wrap;
  }
  .quiet-strip > span {
    font-size: 30px;
  }
  .quiet-strip > div {
    flex: 1;
  }
  .quiet-strip p {
    font-size: 0.75rem;
    line-height: 1.8;
  }
  .quiet-strip > a {
    margin-left: 44px;
    font-size: 0.75rem;
  }
  .footer {
    flex-wrap: wrap;
    font-size: 0.6875rem;
    padding: 25px 22px 100px;
    gap: 10px;
  }
  .footer > span {
    order: 3;
    flex-basis: 100%;
  }
  .footer .text-button {
    font-size: 0.6875rem;
    margin-left: auto;
  }
  .mobile-nav {
    position: fixed;
    display: flex;
    justify-content: space-around;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 9px 15px max(10px, env(safe-area-inset-bottom));
    background: #f7f8eff5;
    border-top: 1px solid #dce2d2;
    z-index: 20;
    backdrop-filter: blur(14px);
  }
  .mobile-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    font-size: 0.6875rem;
    color: #929a85;
    gap: 1px;
    min-width: 56px;
  }
  .mobile-nav a > span {
    font-size: 1.3rem;
    line-height: 1.2;
    margin-bottom: 5px;
  }
  .mobile-nav a[aria-current] {
    color: #294e35;
  }
  .page-heading {
    padding: 28px 0 24px;
  }
  .page-heading h1 {
    font-size: 1.9rem;
  }
  .page-heading > p {
    font-size: 0.875rem;
  }
  .back-link {
    margin-bottom: 22px;
  }
  .page-heading .eyebrow {
    font-size: 0.6875rem;
  }
  .ask-layout {
    display: block;
    padding-bottom: 30px;
  }
  .ask-aside {
    display: none;
  }
  .two-fields {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .topic-options {
    gap: 7px;
  }
  .topic-options label span {
    padding: 8px 10px;
    font-size: 0.75rem;
  }
  .engine-choice {
    padding: 17px;
  }
  .casting-table {
    grid-template-columns: 1fr;
    padding: 25px 20px;
    gap: 30px;
    margin-top: 5px;
  }
  .line-board {
    padding: 22px;
  }
  .board-row > span {
    width: 65px;
  }
  .board-line {
    max-width: 165px;
    margin-inline: auto;
  }
  .board-row small {
    margin-left: auto;
  }
  .ritual-progress {
    margin-top: 20px;
  }
  .casting-ritual > .muted {
    margin-bottom: 0;
  }
  .change-bridge {
    gap: 6px;
    max-width: none;
  }
  .change-bridge > span {
    font-size: 1.5rem;
    transform: rotate(90deg);
  }
  .change-bridge small {
    display: block;
    font-size: 0.75rem;
  }
  .result-controls {
    margin-bottom: 28px;
  }
  .reading-summary {
    padding: 25px 0;
  }
  .reading-summary h2 {
    font-size: 1.3rem;
  }
  .interpretation .section-heading {
    align-items: center;
  }
  .interpretation .section-heading .text-button {
    font-size: 0.75rem;
    white-space: nowrap;
  }
  .reading-disclosure {
    font-size: 0.75rem;
  }
  summary {
    gap: 10px;
    padding: 20px 0;
    font-size: 0.9375rem;
  }
  .section-number {
    font-size: 0.75rem;
  }
  .section-body {
    padding: 0 8px 22px;
    font-size: 1rem;
    line-height: 2;
  }
  .journal-note {
    padding: 21px 18px;
  }
  .journal-note h2 {
    font-size: 1.25rem;
  }
  .journal-note > div {
    align-items: flex-end;
  }
  .journal-note .muted {
    font-size: 0.6875rem;
    max-width: 170px;
  }
  .journal-note button {
    white-space: nowrap;
    font-size: 0.8125rem;
    padding: 9px 14px;
  }
  .result-actions {
    gap: 12px;
    flex-wrap: wrap;
  }
  .result-actions > * {
    flex: 1;
    font-size: 0.8125rem;
    white-space: nowrap;
    padding-inline: 15px;
  }
  .library-toolbar {
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
  }
  .filter-label {
    justify-content: flex-end;
  }
  .hex-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .hex-tile {
    padding: 25px 10px 16px;
    min-height: 208px;
  }
  .hex-tile strong {
    font-size: 1.05rem;
  }
  .hex-tile small {
    font-size: 0.625rem;
  }
  .hex-tile > span:not(.tile-number) {
    font-size: 0.75rem;
  }
  .journal-item {
    gap: 13px;
  }
  .journal-symbol {
    width: 45px;
    height: 66px;
    font-size: 29px;
  }
  .journal-item h3 {
    font-size: 0.875rem;
  }
  .journal-item small {
    font-size: 0.6875rem;
  }
  .journal-item .danger {
    font-size: 0.75rem;
    white-space: nowrap;
  }
  .credit-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .credit-pack {
    padding: 20px 10px;
  }
  .credit-pack h3 {
    font-size: 1.5rem;
  }
  .credit-pack p {
    font-size: 0.75rem;
  }
  .credit-pack strong {
    font-size: 0.75rem;
  }
  .wallet-panel {
    padding: 25px 17px;
  }
  .guide-layout {
    display: block;
  }
  .guide-layout aside {
    position: static;
    margin-top: 35px;
  }
  .trigram-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .guide-copy > h2 {
    font-size: 1.35rem;
  }
  dialog {
    padding: 33px 23px;
  }
  dialog h2 {
    font-size: 1.5rem;
  }
  dialog.wide-modal {
    max-width: calc(100vw - 26px);
    padding: 36px 22px;
  }
  .hex-detail {
    display: flex;
    flex-direction: column;
    gap: 38px;
  }
  .hex-detail h2 {
    font-size: 1.75rem;
  }
  .modal-actions {
    flex-wrap: wrap;
  }
  .modal-actions > button {
    flex: 1;
    white-space: nowrap;
    font-size: 0.8125rem;
    padding-inline: 12px;
  }
  #toast {
    bottom: 91px;
    font-size: 0.8125rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  :root:not([data-motion="full"]) * {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* Account, saved questions and one-off checkout share the existing paper palette. */
.access-panel,
.checkout-panel {
  max-width: 650px;
  margin: 55px auto 90px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}
.access-panel h1,
.checkout-panel h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
}
.access-panel .back-link,
.checkout-panel .back-link {
  display: block;
  margin-bottom: 25px;
}
.mode-notice {
  padding: 12px 16px;
  border: 1px solid #dccda6;
  background: #f3eddd;
  color: #685227;
  border-radius: 9px;
  font-size: 0.84rem;
}
.access-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.access-divider::before,
.access-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.social-logins {
  display: grid;
  gap: 9px;
}
.social-login {
  width: 100%;
  min-height: 50px;
  border-radius: 9px;
  font-weight: 700;
}
.toss-login {
  background: #0064ff;
  color: white;
}
.naver-login {
  background: #03c75a;
  color: white;
}
.kakao-login {
  background: #fee500;
  color: #191919;
}
.google-login {
  background: white;
  color: #242424;
  border: 1px solid #dadce0;
}
.social-login:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}
.easy-pay-info {
  margin: 20px 0 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.easy-pay-info span {
  margin-left: 10px;
}
.easy-pay-info p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}
#code-area {
  margin-top: 25px;
}
.question-meta {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: var(--muted);
  font-size: 0.76rem;
  margin: -12px 0 14px;
}
#question-count {
  white-space: nowrap;
}
.example-questions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.example {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 7px 13px;
  font-size: 0.8rem;
  background: var(--white);
}
.example:hover {
  border-color: var(--green);
}
.optional-fields {
  border-block: 1px solid var(--line);
  margin: 25px 0;
}
.optional-fields summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
}
.optional-fields summary span {
  color: var(--muted);
  font-weight: 400;
  margin-left: 8px;
  font-size: 0.8rem;
}
.optional-fields[open] {
  padding-bottom: 5px;
}
.optional-fields summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.save-status {
  font-size: 0.8rem;
  color: var(--muted);
  min-height: 1.5em;
  overflow-wrap: anywhere;
}
.order-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-block: 1px solid var(--line);
  margin: 25px 0;
  padding: 20px 0;
}
.order-summary strong {
  font-size: 1.7rem;
  white-space: nowrap;
}
.checkout-actions {
  display: grid;
  gap: 12px;
  margin: 24px 0 14px;
}
.checkout-panel blockquote,
.access-panel blockquote {
  margin-inline: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.order-state {
  color: var(--green);
  font-weight: 700;
}
.account-links {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}
.order-item {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 25px 0;
  border-bottom: 1px solid var(--line);
}
.order-item small {
  color: var(--muted);
}
.order-item h3 {
  margin: 6px 0;
}
.order-item h3 span {
  font-weight: 400;
  margin-left: 12px;
}
.order-item p {
  margin-bottom: 4px;
}
.order-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  max-width: 50%;
}
.order-actions .text-button {
  min-height: 44px;
}
.orders-list {
  margin-bottom: 65px;
}
.form-error {
  overflow-wrap: anywhere;
}
@media (max-width: 680px) {
  .access-panel,
  .checkout-panel {
    margin: 22px 0 40px;
    padding: 24px 18px;
  }
  .form-submit {
    position: sticky;
    bottom: 72px;
    z-index: 3;
    background: var(--paper);
    padding: 12px 0 2px;
    border-top: 1px solid var(--line);
  }
  .form-submit .primary {
    font-size: 0.9rem;
    min-height: 52px;
  }
  .form-submit .form-footnote {
    font-size: 0.72rem;
    margin-bottom: 0;
  }
  .order-item {
    flex-direction: column;
  }
  .order-actions {
    max-width: none;
    justify-content: flex-start;
  }
  .account-links {
    gap: 10px;
    margin-bottom: 35px;
  }
  .question-meta {
    gap: 8px;
  }
  .order-summary {
    font-size: 0.86rem;
  }
  .order-summary strong {
    font-size: 1.4rem;
  }
  .checkout-actions {
    position: sticky;
    bottom: 72px;
    z-index: 3;
    padding: 10px 0;
    background: var(--white);
    border-top: 1px solid var(--line);
  }
  .checkout-actions button {
    font-size: 0.8rem;
    padding-inline: 10px;
  }
}

/* Functional copy has a 14px floor; body copy remains 16px. */
.muted,
.text-button,
small,
.sample-note,
.reading-meta,
.reading-disclosure,
.field > span,
.field small,
.form-footnote,
.form-submit .form-footnote,
.question-meta,
.check,
.checkout-actions button,
.sensor-status,
.example,
.save-status,
.optional-fields summary span,
.mobile-nav a,
.small-guide p,
.back-link,
.engine-choice p,
.footer,
.form-submit .primary,
.reading-menu > span {
  font-size: 0.875rem;
  color: #53645b;
}
.form-submit .primary,
.checkout-actions .primary {
  color: var(--white);
}
.page-heading p,
.hero-description,
.section-body p,
.field {
  font-size: 1rem;
}
.balance,
.topbar nav a,
.footer > a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.dice-steps li span {
  word-break: keep-all;
}
button,
.primary,
.secondary,
.quiet-link,
.back-link,
summary {
  min-height: 44px;
}
button,
.primary,
.secondary {
  min-width: 44px;
}
.quiet-link,
.back-link {
  display: inline-flex;
  align-items: center;
}
.check {
  min-height: 44px;
}
.sensor-status {
  flex-basis: 100%;
  text-align: center;
  margin: 0;
}
.reading-highlights {
  max-width: 840px;
  margin: 0 auto 40px;
  padding: 28px 32px;
  border: 1px solid #cbd4c5;
  border-left: 4px solid var(--green);
  border-radius: 4px 16px 16px 4px;
  background: #f0f1e8;
}
.reading-highlights dl {
  margin: 18px 0 0;
  display: grid;
  gap: 18px;
}
.reading-highlights dl > div {
  display: grid;
  grid-template-columns: 95px 1fr;
  gap: 18px;
}
.reading-highlights dt {
  color: #385446;
  font-size: 14px;
  font-weight: 700;
}
.reading-highlights dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.comparison-grid section {
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.comparison-grid section > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.generation-status {
  max-width: 520px;
  margin: 16px auto;
  font-size: 14px;
  color: #53645b;
}
.diagnostics {
  max-width: 840px;
  margin: auto;
}
.diagnostic-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}
.diagnostic-summary > div {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.diagnostic-summary dd {
  margin: 0;
  text-align: right;
}
@media (max-width: 600px) {
  .reading-highlights {
    padding: 24px 20px;
  }
  .reading-highlights dl > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .comparison-grid section > div {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .experience-controls {
    gap: 8px;
  }
}

/* Account, records and resilient saves share native controls. */
.public-page {
  max-width: 760px;
  margin: 64px auto 100px;
  padding: 0 24px;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
.public-page h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.35;
  margin: 20px 0 36px;
}
.public-page h2 {
  margin-top: 40px;
}
.public-page nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.agreements {
  border: 1px solid #d6ddcd;
  border-radius: 12px;
  margin: 24px 0;
  padding: 18px;
}
.agreements .check {
  align-items: start;
  margin: 12px 0;
}
.agreements input[type="checkbox"],
.journal-select input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.account-tools {
  max-width: 960px;
  margin: 40px auto;
}
.account-tools details {
  padding: 22px 0;
  border-bottom: 1px solid #d6ddcd;
}
.account-tools summary {
  cursor: pointer;
  font-size: 1.1rem;
  min-height: 44px;
  font-weight: 600;
}
.account-tools p {
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.device-list {
  list-style: none;
  padding: 0;
}
.device-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #e0e4d8;
}
.device-list small {
  display: block;
  color: #65705a;
  margin-top: 6px;
}
.consent-history {
  padding-left: 20px;
  line-height: 1.9;
  font-size: 0.83rem;
}
.ticket-list article {
  padding: 22px 0;
  border-bottom: 1px solid #d6ddcd;
}
.ticket-list p,
.ticket-list blockquote {
  white-space: pre-wrap;
}
.journal-filters {
  display: flex;
  gap: 14px;
  align-items: end;
  flex-wrap: wrap;
  margin: 26px 0;
}
.journal-filters label {
  display: grid;
  gap: 8px;
  flex: 1;
  min-width: 140px;
}
.journal-filters input,
.journal-filters select,
.feedback-form select {
  max-width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid #c5cebc;
  border-radius: 7px;
  background: #fbfbf5;
  color: #173d35;
  font: inherit;
}
.journal-pagination {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin: 24px 0;
}
.journal-select {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}
.journal-item {
  display: grid;
  grid-template-columns: 44px 50px minmax(0, 1fr) auto;
}
.saved-preview {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 260px;
  overflow: auto;
  padding: 16px;
  background: #eef0e6;
}
.feedback-form {
  padding: 28px 0;
  border-top: 1px solid #d6ddcd;
  border-bottom: 1px solid #d6ddcd;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.feedback-form h3,
.feedback-form p {
  width: 100%;
  margin: 0;
}
.feedback-form label {
  display: grid;
  gap: 8px;
}
#note-status {
  font-size: 0.85rem;
  color: #4c6545;
  min-height: 24px;
}
#note-status.form-error {
  color: #9a392d;
}
@media (max-width: 600px) {
  .journal-item {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 8px;
  }
  .journal-item .journal-symbol {
    display: none;
  }
  .journal-filters label {
    min-width: 110px;
  }
  .device-list li {
    align-items: start;
  }
  .account-tools {
    margin: 24px 0;
  }
  .feedback-form label {
    width: 100%;
  }
}
