:root {
  color-scheme: light;
  font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  color: #182e26;
  background: #f3f6f2;
  --ink: #182e26;
  --muted: #51655b;
  --line: #dbe5da;
  --mint: #c5f477;
  --green: #21583e;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid #367d51; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.top { background: #122b22; color: #f4fff4; }
.top-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 850; font-size: 1.2rem; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--mint); color: #142b20; font: 900 1.5rem/1 system-ui; }
.brand-en { font-size: .7rem; color: #b5caba; letter-spacing: .12em; }
.local { color: #c4d7c9; font-size: .84rem; white-space: nowrap; }
.local span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #a9bbb0; margin-right: 4px; }
.local:has([data-ready]) span { background: var(--mint); }
.local strong { font-weight: 500; }
main { padding-block: 37px 48px; }
.intro { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.date, .eyebrow { color: var(--green); font-size: .875rem; font-weight: 800; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.18; letter-spacing: -.075em; margin-block: 6px 9px; }
.intro p:not(.date), .card p, dialog p { color: var(--muted); line-height: 1.55; }
.progress { flex: none; display: flex; align-items: center; gap: 12px; background: #e5eedf; border: 1px solid #d7e5d2; padding: 10px 15px; border-radius: 15px; }
.progress-icon { display: grid; place-items: center; width: 35px; height: 35px; color: var(--green); background: #d4e6cb; border-radius: 10px; font-size: 1.4rem; }
.progress div span, .progress strong { display: block; }
.progress div span { font-size: .85rem; color: var(--muted); }
.layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.side { min-width: 0; display: grid; gap: 14px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 21px; box-shadow: 0 4px 18px #16392308; }
.map-card, .routine { padding: 21px; }
.card-heading, .routine-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
h2 { font-size: 1.25rem; letter-spacing: -.04em; }
.card-heading p, .routine > p { font-size: .9rem; margin-top: 4px; }
.sample, .count { flex: none; border-radius: 100px; padding: 5px 10px; font-size: .8rem; font-weight: 750; color: #355a43; background: #e9f0e6; white-space: nowrap; }
.map { position: relative; isolation: isolate; height: clamp(345px, 39vw, 455px); margin-top: 15px; border: 1px solid #d5e2d5; border-radius: 15px; background-color: #eef4ed; background-image: linear-gradient(#dce7da80 1px, transparent 1px), linear-gradient(90deg, #dce7da80 1px, transparent 1px); background-size: 18px 18px; }
.wall { position: absolute; background: #b4c7b7; border-radius: 6px; }
.wall-top { left: 5%; right: 5%; height: 3px; top: 8%; }
.wall-bottom { bottom: 8%; left: 5%; right: 5%; height: 3px; background: linear-gradient(90deg, #b4c7b7 39%, transparent 39% 61%, #b4c7b7 61%); }
.wall-left, .wall-right { top: 8%; bottom: 8%; width: 3px; }
.wall-left { left: 5%; }
.wall-right { right: 5%; }
.floor-label { position: absolute; top: 2%; left: 6%; color: #51695a; font-size: .76rem; font-weight: 750; }
.aisle { position: absolute; left: 9%; right: 9%; top: 46%; border-top: 2px dashed #b8caba; }
.entrance { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 6px; white-space: nowrap; background: #e7f2e3; border: 1px solid #b9ccba; border-radius: 8px; padding: 6px 12px; font-size: .875rem; font-weight: 800; color: #31523c; }
.machine { position: absolute; transform: translate(-50%, -50%); width: min(132px, 26%); min-height: 91px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; background: #e5ece5; color: #333f36; border: 1px solid #c6d4c7; border-radius: 13px; padding: 7px 2px; }
.machine strong { font-size: .88rem; line-height: 1.15; word-break: keep-all; }
.machine small { font-size: .77rem; color: #405c4a; }
.machine-icon { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 7px; background: #d4e2d4; color: #285339; font: 800 1.2rem/1 system-ui; }
.machine.planned { background: #fafff8; border-color: #83a589; box-shadow: 0 3px 8px #204c2314; }
.machine.current { z-index: 1; background: #dbf9a9; border: 2px solid #537f2f; box-shadow: 0 0 0 4px #b7e58077; animation: float 2.7s ease-in-out infinite; }
.machine.current .machine-icon { background: #bce781; }
.machine.done { background: #d3e9dc; border-color: #79a58b; }
.number { position: absolute; top: 5px; right: 5px; display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 3px; background: #275b40; color: white; border-radius: 50%; font: 750 .73rem/1 system-ui; }
@keyframes float { 0%, 100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, calc(-50% - 5px)); } }
@media (prefers-reduced-motion: reduce) { .machine.current { animation: none; } }
.legend { display: flex; flex-wrap: wrap; column-gap: 17px; row-gap: 8px; margin-top: 15px; color: var(--muted); font-size: .85rem; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 11px; height: 11px; border: 1px solid #729780; border-radius: 50%; }
.next-dot { background: var(--mint); }
.planned-dot { background: #fafff8; }
.done-dot { background: #a5ceb6; }
.steps, .edit-list { display: grid; list-style: none; padding: 0; gap: 8px; margin-block: 15px; }
.step { width: 100%; min-height: 57px; display: flex; gap: 10px; align-items: center; text-align: left; color: var(--ink); border: 1px solid #e0e9de; border-radius: 12px; background: #f6f9f5; padding: 8px; }
.step-current { background: #edf9db; border-color: #a3bd84; }
.step-number { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 8px; background: #e4eee0; color: var(--green); font-weight: 800; font-size: .85rem; }
.step-current .step-number { background: #ccea9e; }
.step-copy { flex: 1; min-width: 0; }
.step-copy strong, .step-copy small { display: block; }
.step-copy small { margin-top: 3px; color: var(--muted); font-size: .86rem; }
.step-end { color: var(--green); padding-inline: 3px; }
.reason { padding: 4px 5px 2px; font-size: .84rem; }
.primary, .secondary { width: 100%; min-height: 45px; padding: 9px 12px; border: 1px solid transparent; border-radius: 11px; font-weight: 800; }
.primary { background: var(--mint); color: #203218; border-color: #afd968; }
.primary:not(:disabled):hover { background: #b6e969; }
.secondary { color: var(--green); border-color: #d7e5d7; background: #f7faf6; }
.secondary:hover, .step:hover { border-color: #87aa90; }
.primary + .secondary, dialog form > .primary { margin-top: 8px; }
.history summary { padding: 14px 17px; cursor: pointer; font-weight: 800; }
.history summary span { float: right; color: var(--muted); font-size: .875rem; }
.history-list { padding: 0 17px 15px; }
.history-list > div { border-top: 1px solid var(--line); padding-block: 8px; }
.history-list time { float: right; color: var(--muted); font-size: .85rem; }
.history-list p { font-size: .9rem; }
dialog { position: fixed; width: min(510px, calc(100% - 24px)); max-height: calc(100dvh - 32px); padding: 23px; border: 1px solid var(--line); border-radius: 19px; color: var(--ink); box-shadow: 0 14px 65px #0d2f2740; }
dialog::backdrop { background: #132b23aa; }
dialog h2 { margin-block: 5px 8px; font-size: 1.6rem; }
dialog h3 { font-size: 1.06rem; }
dialog .close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 11px; border: 1px solid var(--line); background: #f1f6ef; color: var(--ink); font-size: 1.4rem; }
.guide { margin-bottom: 18px; }
.set-grid { display: grid; grid-template-columns: 46px minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 8px; margin-block: 8px; }
.set-head, label { color: var(--muted); font-size: .87rem; }
input { display: block; width: 100%; min-height: 43px; border: 1px solid #bdcdbd; border-radius: 9px; padding: 6px 9px; color: var(--ink); background: #fff; }
.choices { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.choices button, .edit-title button { min-height: 42px; padding: 6px 9px; border-radius: 9px; border: 1px solid #c6d8c7; color: var(--ink); background: #f4f8f2; }
.choices [aria-pressed="true"] { background: #dff1cf; border-color: #80a875; font-weight: 800; }
.edit-list li { padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #f6f9f5; }
.edit-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.edit-title button { min-width: 42px; }
.edit-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.storage-error { margin-top: 14px; color: #a02323; }
@media (max-width: 760px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .wrap { width: calc(100% - 28px); }
  .top-inner { min-height: 56px; }
  main { padding-block: 20px 34px; }
  .intro { align-items: center; margin-bottom: 15px; }
  .intro p:not(.date) { font-size: .9rem; }
  .progress { padding: 8px 10px; }
  .progress-icon { display: none; }
  .map-card, .routine { padding: 14px; }
}
@media (max-width: 420px) {
  .brand-en { display: none; }
  .intro { flex-wrap: wrap; gap: 9px; }
  .progress { padding: 5px 9px; }
  .progress div { display: flex; align-items: center; gap: 7px; }
  .progress strong { font-size: .875rem; }
  .card-heading { align-items: start; }
  .map { height: 350px; }
}
