:root {
  --desk: #2A2420;
  --grain: #332B26;
  --paper: #F3ECDF;
  --paper2: #E6DCCB;
  --rule: #E0D5C2;
  --ink: #2E2620;
  --ink-sub: #6B5E52;
  --amber: #D98A2B;
  --amber-ink: #A9631A;
  --leaf: #5E8C6A;
  --rust: #B8513A;
  --bar: rgba(30, 26, 23, 0.72);
  --cream: #F3ECDF;
  --mint: #7FE3C4;
  --lilac: #B6A4FF;
  --top: 52px;
  --bottom: 76px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #E9E1D2; }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  background-color: var(--desk);
  background-image:
    repeating-linear-gradient(0deg, transparent 0 11px, rgba(51, 43, 38, 0.6) 11px 12px, transparent 12px 23px, rgba(51, 43, 38, 0.35) 23px 24px),
    radial-gradient(120% 80% at 20% 0%, rgba(255, 210, 150, 0.06), transparent 60%);
  color: var(--cream);
  font: 16px/1.6 system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", sans-serif;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
body.night { background-image: repeating-linear-gradient(0deg, transparent 0 11px, rgba(51, 43, 38, 0.6) 11px 12px, transparent 12px 23px, rgba(51, 43, 38, 0.35) 23px 24px), radial-gradient(60vmax 60vmax at 12% 8%, rgba(255, 200, 130, 0.10), transparent 70%); }
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; box-shadow: 0 0 0 4px var(--ink); }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.app { position: fixed; inset: 0; display: grid; grid-template-rows: calc(var(--top) + var(--safe-t)) 1fr auto calc(var(--bottom) + var(--safe-b)); grid-template-columns: minmax(0, 1fr); grid-template-areas: "bar" "stage" "tray" "tools"; }
.bar { grid-area: bar; display: flex; align-items: center; gap: 12px; padding: var(--safe-t) 12px 0 14px; background: var(--bar); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 5; font-variant-numeric: tabular-nums; }
.day { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; }
.day div { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; flex: 1 1 auto; }
.day b { font-size: 16px; white-space: nowrap; }
.day .elapsed { font-style: normal; color: #F3ECDF; font-variant-numeric: tabular-nums; flex: none; }
.day small span { flex: 1 1 0; width: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; contain: inline-size; }
.day small { display: flex; font-size: 12px; color: rgba(243, 236, 223, 0.72); white-space: nowrap; min-width: 0; }
.clock { width: 12px; height: 12px; border-radius: 50%; background: #F2C14E; box-shadow: 0 0 8px rgba(242, 193, 78, 0.6); flex: none; }
.clock.moon { background: #C9D3E8; box-shadow: inset -4px -2px 0 0 rgba(30, 26, 23, 0.9); }
.pop { display: flex; align-items: center; gap: 4px; background: none; border: 0; min-height: 44px; padding: 0 6px; border-radius: 10px; }
.pop svg { width: 22px; height: 22px; stroke-width: 1.4; }
.pop svg ellipse, .pop svg circle { fill: currentColor; stroke: none; }
.pop b { font-size: 20px; transition: color 0.6s; }
.pop b.up { color: var(--amber); }
.stock { display: flex; flex-direction: column; gap: 2px; font-size: 12px; line-height: 1.2; }
.stock span { display: flex; align-items: center; gap: 5px; color: rgba(243, 236, 223, 0.8); }
.stock i { display: block; width: 48px; height: 6px; border-radius: 3px; background: rgba(243, 236, 223, 0.18); overflow: hidden; }
.stock em { font-style: normal; font-size: 13px; min-width: 2.2em; color: var(--cream); font-variant-numeric: tabular-nums; }
.stock i b.prot { background: #B0654A; }
.stock i b { display: block; height: 100%; width: 0; background: var(--amber); border-radius: 3px; transition: width 0.6s; }
.stock i b.low { background: var(--rust); }
@media (max-width: 359px) { .bar { gap: 6px; padding-right: 8px; } .stock i { width: 30px; } .pop { padding: 0 2px; } }
.speed { width: 48px; height: 44px; flex: none; border-radius: 12px; border: 1px solid rgba(243, 236, 223, 0.25); background: rgba(243, 236, 223, 0.08); font-weight: 700; font-variant-numeric: tabular-nums; }
.speed.fast { background: var(--amber); color: var(--ink); border-color: var(--amber); }
.speed.paused { background: var(--rust); color: var(--paper); border-color: var(--rust); font-size: 13px; }
.stage { grid-area: stage; position: relative; min-height: 0; overflow: hidden; }
#cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#cv.tool-food, #cv.tool-water { cursor: copy; }
#cv.tool-look { cursor: zoom-in; }
.toast { position: absolute; left: 50%; top: 10px; transform: translate(-50%, -12px); width: min(360px, calc(100% - 32px)); min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 16px; border-radius: 12px; background: var(--paper); color: var(--ink); font-size: 15px; line-height: 1.45; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s; z-index: 6; border-left: 4px solid var(--amber); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; cursor: pointer; }
.toast.good { border-left-color: var(--leaf); }
.toast.warn { border-left-color: var(--rust); }
.caption { position: absolute; left: 50%; bottom: 18%; transform: translateX(-50%); width: min(520px, calc(100% - 40px)); text-align: center; font-size: 17px; line-height: 1.6; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8), 0 0 18px rgba(0, 0, 0, 0.6); opacity: 0; transition: opacity 0.8s; pointer-events: none; z-index: 4; letter-spacing: 0.04em; }
.caption.show { opacity: 1; }
.slip { position: absolute; z-index: 3; max-width: min(340px, calc(100% - 32px)); padding: 8px 14px 9px; background: var(--paper); color: var(--ink); border: 0; border-radius: 2px; text-align: left; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35); transform: rotate(-1.6deg); display: flex; flex-direction: column; line-height: 1.4; }
.slip small { font-size: 12px; color: var(--ink-sub); }
.slip span { font-size: 14px; }
.slip.inside { transform: none; opacity: 0.92; padding: 5px 10px 6px; }
.slip .daily { margin-top: 4px; padding-top: 4px; border-top: 1px dashed #D8CCB8; color: var(--amber-ink); font-size: 12px; }
.slip .daily.done { color: var(--leaf); }
.legend { position: absolute; left: 50%; transform: translateX(-50%); bottom: 12px; display: flex; gap: 12px; padding: 6px 12px; border-radius: 10px; background: rgba(10, 14, 22, 0.75); font-size: 12px; z-index: 4; white-space: nowrap; }
.legend span::before { content: ""; display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.lg-food::before { background: var(--mint); box-shadow: 0 0 6px var(--mint); }
.lg-home::before { background: var(--lilac); box-shadow: 0 0 6px var(--lilac); }
.hint { position: absolute; z-index: 7; left: 50%; transform: translateX(-50%); bottom: 12px; width: min(380px, calc(100% - 28px)); background: var(--paper); color: var(--ink); border-radius: 14px; padding: 12px 14px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.55; }
.hint p { margin: 0; flex: 1; }
.hint button { background: none; border: 0; color: var(--ink-sub); font-size: 13px; min-height: 32px; padding: 0 4px; flex: none; }
.hint::after { content: ""; position: absolute; bottom: -7px; left: var(--arrow, 50%); width: 14px; height: 14px; background: var(--paper); transform: rotate(45deg); }
.hint.no-arrow::after { display: none; }
.look { position: absolute; z-index: 6; left: 8px; right: 8px; bottom: 8px; min-height: 104px; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 4px; padding: 10px 6px 10px; background: var(--paper); color: var(--ink); border-radius: 16px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4); }
.lk-body { display: flex; flex-direction: column; line-height: 1.4; min-width: 0; }
.lk-body b { font-size: 16px; }
.lk-body small { font-size: 13px; color: var(--ink-sub); }
.lk-body p { margin: 2px 0; font-size: 15px; }
.lk-nav { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--paper2); font-size: 24px; line-height: 1; color: var(--ink); }
.lk-close { position: absolute; right: 8px; top: -50px; min-height: 44px; padding: 0 16px; border-radius: 22px; border: 0; background: var(--paper); color: var(--ink); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35); font-size: 14px; }
.tools { grid-area: tools; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 6px 8px calc(6px + var(--safe-b)); background: rgba(30, 26, 23, 0.6); z-index: 5; }
.tools button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px; border: 0; border-radius: 14px; background: var(--paper); color: var(--ink); transition: transform 0.08s, background 0.2s; }
.tools button span { font-size: 12px; color: var(--ink-sub); line-height: 1.2; }
.tools button:active { transform: scale(0.94); }
.tools button[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: inset 0 3px 0 var(--amber); }
.tools button[aria-pressed="true"] span { color: var(--paper); }
.tools button[data-tool="scent"][aria-pressed="true"] { box-shadow: inset 0 3px 0 var(--mint); }
.tools button.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(217, 138, 43, 0.6); } 50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(217, 138, 43, 0); } }
.tools .cd { position: absolute; right: 6px; top: 6px; font-style: normal; font-size: 11px; color: var(--amber-ink); font-variant-numeric: tabular-nums; }
.tools .dot { position: absolute; right: 12px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.tray { grid-area: tray; background: rgba(30, 26, 23, 0.85); padding: 8px 8px 4px; z-index: 5; }
.tray-in { display: flex; gap: 8px; overflow-x: auto; }
.tray-in button { flex: 1 0 auto; min-width: 96px; min-height: 52px; border-radius: 12px; border: 2px solid transparent; background: var(--paper); color: var(--ink); display: flex; align-items: center; gap: 8px; padding: 6px 10px; font-size: 14px; text-align: left; line-height: 1.25; }
.tray-in button small { display: block; font-size: 12px; color: var(--ink-sub); }
.tray-in button[aria-pressed="true"] { border-color: var(--amber); }
.tray-in button:disabled { opacity: 0.45; }
.tray-in .ic { width: 22px; height: 22px; border-radius: 50%; flex: none; }
.tray-note { margin: 4px 4px 0; font-size: 13px; color: rgba(243, 236, 223, 0.8); min-height: 1.4em; }
.panel { position: fixed; left: 0; right: 0; bottom: 0; height: 85%; z-index: 20; background: var(--paper); color: var(--ink); border-radius: 16px 16px 0 0; box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35); transform: translateY(105%); transition: transform 0.3s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; background-image: radial-gradient(circle at 20% 30%, rgba(120, 90, 60, 0.03), transparent 40%), radial-gradient(circle at 80% 70%, rgba(120, 90, 60, 0.035), transparent 45%); user-select: text; -webkit-user-select: text; touch-action: pan-y; }
.panel.open { transform: none; }
.grip { width: 36px; height: 4px; border-radius: 2px; background: #CFC4B2; margin: 8px auto 2px; flex: none; }
.tabs { display: flex; align-items: stretch; border-bottom: 1px solid var(--rule); padding: 0 8px; flex: none; }
.tabs button { min-height: 44px; padding: 0 12px; border: 0; background: none; color: var(--ink-sub); font-size: 15px; border-bottom: 3px solid transparent; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--amber); font-weight: 700; }
.tabs .close { margin-left: auto; font-size: 24px; color: var(--ink-sub); width: 44px; padding: 0; }
.tabs svg { width: 20px; height: 20px; vertical-align: middle; }
.tabbody { overflow-y: auto; padding: 14px 16px calc(24px + var(--safe-b)); flex: 1; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.diary-day { margin: 0 0 18px; }
.diary-day h3 { font-size: 16px; margin: 0 0 2px; }
.diary-day ul { list-style: none; margin: 0; padding: 0; background-image: repeating-linear-gradient(180deg, transparent 0 27px, var(--rule) 27px 28px); line-height: 28px; font-size: 15px; }
.diary-day li { position: relative; padding-left: 3.6em; }
.diary-day li time { position: absolute; left: 0; color: var(--ink-sub); font-size: 13px; font-variant-numeric: tabular-nums; }
.diary-day li time.away { top: 6px; line-height: 1; font-size: 11px; background: var(--paper2); border-radius: 4px; padding: 3px 6px; }
.diary-day li.tip { color: var(--ink-sub); }
.diary-day li.tip::before { content: "豆知識　"; color: var(--amber-ink); font-size: 12px; }
.diary-day figure { margin: 6px 0 10px 3.6em; display: inline-block; background: #fff; padding: 4px 4px 6px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); transform: rotate(-2deg); }
.diary-day figure img { display: block; width: 96px; height: 109px; }
.diary-empty { color: var(--ink-sub); font-size: 15px; }
.zukan-head { font-size: 14px; color: var(--ink-sub); margin: 0 0 12px; }
.zukan { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.zk { background: #FBF7EF; border: 1px solid var(--rule); border-radius: 12px; padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 2px; }
.zk canvas { width: 100%; aspect-ratio: 4 / 3; border-radius: 8px; background: #3a2b20; display: block; }
.zk b { font-size: 15px; }
.zk p { margin: 0; font-size: 13px; color: var(--ink-sub); line-height: 1.45; }
.zk.locked b { color: #A89C8A; }
.zk.locked canvas { background: #E9E0D0; }
.nest dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0 0 16px; font-size: 15px; font-variant-numeric: tabular-nums; }
.nest dt { color: var(--ink-sub); }
.nest dd { margin: 0; text-align: right; }
.nest h3 { font-size: 15px; margin: 14px 0 6px; }
.nest .bar2 { height: 6px; border-radius: 3px; background: var(--paper2); overflow: hidden; margin-top: 4px; }
.nest .bar2 b { display: block; height: 100%; background: var(--amber); }
.memories { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.memories figure { margin: 0; background: #fff; padding: 4px 4px 6px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); flex: none; font-size: 12px; color: var(--ink-sub); text-align: center; }
.memories img { display: block; width: 96px; height: 109px; }
.set { margin: 0 0 20px; }
.set h3 { font-size: 15px; margin: 0 0 8px; }
.set label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--ink-sub); margin: 0 0 10px; }
.set input[type=text], .set textarea { font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid #D8CCB8; border-radius: 10px; padding: 10px 12px; width: 100%; user-select: text; -webkit-user-select: text; }
.set textarea { font-size: 12px; font-family: ui-monospace, monospace; margin-top: 8px; }
.set .savemsg { margin: 8px 0 0; font-size: 13px; line-height: 1.5; color: var(--rust); }
.set .savemsg.ok { color: var(--leaf); }
.set label.chk { flex-direction: row; align-items: center; gap: 10px; color: var(--ink); min-height: 44px; }
.set label.chk input { width: 22px; height: 22px; accent-color: var(--amber); flex: none; }
.set .sub { font-size: 13px; color: var(--ink-sub); margin: 0 0 8px; line-height: 1.6; }
.set .steps { margin: 0 0 12px; padding-left: 1.4em; font-size: 13px; line-height: 1.6; color: var(--ink); }
.set .steps li + li { margin-top: 4px; }
.movebox { width: 100%; display: flex; flex-direction: column; gap: 8px; margin-top: 8px; text-align: left; }
.movebox p { margin: 0; font-size: 13px; letter-spacing: 0; line-height: 1.6; color: rgba(243, 236, 223, 0.85); }
.movebox textarea { width: 100%; font: 12px ui-monospace, monospace; color: var(--ink); background: #fff; border: 1px solid #D8CCB8; border-radius: 10px; padding: 10px 12px; user-select: text; -webkit-user-select: text; }
.movebox .btn { background: var(--paper); color: var(--ink); }
.movebox .err { color: #F0A58E; }
.set .row { display: flex; gap: 8px; flex-wrap: wrap; }
.set.about p { font-size: 13px; color: var(--ink-sub); }
.set.about a { color: var(--amber-ink); }
.btn { min-height: 44px; padding: 0 18px; border-radius: 14px; border: 0; background: var(--ink); color: var(--paper); font-size: 15px; }
.btn.warn { background: var(--rust); }
.btn.big { min-height: 52px; width: 100%; background: var(--amber); color: var(--ink); font-weight: 700; font-size: 16px; }
.title { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: radial-gradient(70% 60% at 50% 45%, rgba(42, 36, 32, 0.55), rgba(18, 14, 11, 0.92)); transition: opacity 1s; }
.title.out { opacity: 0; pointer-events: none; }
.title-in { width: min(340px, calc(100% - 48px)); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.title h1 { margin: 0; font-size: 44px; letter-spacing: 0.12em; font-weight: 700; line-height: 1.1; color: var(--paper); }
.title h1 span + span { color: var(--amber); }
.title p { margin: 0 0 22px; font-size: 16px; color: rgba(243, 236, 223, 0.8); letter-spacing: 0.1em; }
.title small { font-size: 12px; color: rgba(243, 236, 223, 0.6); margin-top: 6px; }
.title .linkbtn { margin-top: 10px; min-height: 44px; padding: 0 12px; border: 0; background: none; color: rgba(243, 236, 223, 0.85); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.modal { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: rgba(15, 11, 8, 0.55); padding: 16px; }
.card { width: min(420px, 100%); max-height: calc(100% - 16px); overflow-y: auto; background: var(--paper); color: var(--ink); border-radius: 16px; padding: 20px 18px 18px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }
.card h2 { margin: 0; font-size: 20px; }
.card .elapsed { margin: 2px 0 12px; color: var(--ink-sub); font-size: 14px; }
.compare { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 12px; }
.compare figure { margin: 0; text-align: center; font-size: 12px; color: var(--ink-sub); }
.compare canvas { width: 120px; height: 136px; border-radius: 6px; display: block; image-rendering: pixelated; }
.compare span { font-size: 20px; color: var(--ink-sub); }
.nums { list-style: none; margin: 0 0 10px; padding: 0; font-size: 15px; font-variant-numeric: tabular-nums; }
.nums li { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px solid var(--rule); }
.nums .plus { color: var(--leaf); font-weight: 700; }
.nums .minus { color: var(--rust); }
.card .note { font-size: 14px; color: var(--ink); line-height: 1.7; margin: 0 0 14px; }
.traits { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 14px; }
.traits button { min-height: 52px; border-radius: 12px; border: 2px solid var(--rule); background: #fff; color: var(--ink); text-align: left; padding: 8px 12px; font-size: 15px; }
.traits button small { display: block; color: var(--ink-sub); font-size: 13px; }
.traits button[aria-pressed="true"] { border-color: var(--amber); background: #FFF6E8; }
@media (min-width: 900px) and (min-height: 560px) {
  :root { --top: 56px; }
  .app { grid-template-columns: 88px 1fr 360px; grid-template-rows: var(--top) 1fr auto; grid-template-areas: "bar bar bar" "tools stage panel" "tools tray panel"; }
  .tools { grid-template-columns: 1fr; grid-auto-rows: 72px; align-content: start; gap: 10px; padding: 14px 12px; background: transparent; }
  .tools button { min-height: 64px; }
  .panel { position: relative; inset: auto; height: auto; transform: none; grid-area: panel; border-radius: 16px 0 0 0; margin-top: 10px; box-shadow: -4px 0 18px rgba(0, 0, 0, 0.25); }
  .grip, .tabs .close { display: none; }
  .tray { background: transparent; padding: 0 12px 12px; }
  .zukan { grid-template-columns: repeat(2, 1fr); }
  .look { left: auto; right: 16px; bottom: 16px; width: 320px; }
  .hint { bottom: 18px; }
}
@media (min-width: 1280px) and (min-height: 560px) {
  .app { grid-template-columns: 88px 1fr 380px; }
  .zukan { grid-template-columns: repeat(3, 1fr); }
}
@media (max-height: 500px) and (orientation: landscape) {
  :root { --top: 44px; }
  .app { grid-template-columns: 76px 1fr; grid-template-rows: var(--top) 1fr auto; grid-template-areas: "bar bar" "tools stage" "tools tray"; }
  .tools { grid-template-columns: 1fr; grid-auto-rows: 1fr; padding: 6px; }
  .tools button { min-height: 44px; }
  .tools button span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .toast, .caption, .panel, .title { transition-duration: 0.01s; }
  .tools button.pulse { animation: none; outline: 2px solid var(--amber); }
}
body.reduce .toast, body.reduce .caption, body.reduce .panel, body.reduce .title { transition-duration: 0.01s; }
body.reduce .tools button.pulse { animation: none; outline: 2px solid var(--amber); }
html:has(body.docpage), body.docpage { overflow: auto; height: auto; }
body.docpage { touch-action: auto; user-select: text; -webkit-user-select: text; padding: 0 16px 40px; }
.doc-top { max-width: 720px; margin: 0 auto; padding: 18px 0; }
.doc-top a { display: inline-flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font-weight: 700; font-size: 18px; }
.doc { max-width: 720px; margin: 0 auto; background: var(--paper); color: var(--ink); border-radius: 16px; padding: 24px 22px 28px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }
.doc h1 { font-size: 24px; margin: 0 0 16px; }
.doc h2 { font-size: 17px; margin: 26px 0 8px; }
.doc p { font-size: 15px; line-height: 1.85; margin: 0 0 12px; }
.doc a, .doc-foot a { color: var(--amber-ink); }
.doc .date { color: var(--ink-sub); font-size: 14px; margin-top: 24px; }
.doc-foot { max-width: 720px; margin: 20px auto 0; font-size: 13px; color: rgba(243, 236, 223, 0.7); }
.doc-foot nav { display: flex; gap: 16px; }
.doc-foot a { color: var(--cream); }
