@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+KR:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --pine: #18362f;
  --pine-soft: #274b41;
  --lime: #d9f26a;
  --paper: #f4f5ef;
  --white: #fff;
  --ink: #19241f;
  --muted: #718079;
  --line: #e3e8e1;
  font-family: 'DM Sans', 'Noto Sans KR', sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--paper); }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid #9aba34; outline-offset: 3px; }
.app-shell { width: min(100% - 40px, 500px); margin: 0 auto; padding: 28px 0 24px; }
.topbar { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--pine); font-size: 15px; font-weight: 800; letter-spacing: -.04em; text-decoration: none; }
.brand-mark { width: 27px; height: 27px; display: flex; align-items: end; gap: 3px; padding: 5px; border-radius: 9px; background: var(--lime); transform: rotate(-5deg); }
.brand-mark i { width: 4px; display: block; border-radius: 4px; background: var(--pine); transform: skew(-18deg); }
.brand-mark i:nth-child(1) { height: 8px; }.brand-mark i:nth-child(2) { height: 14px; }.brand-mark i:nth-child(3) { height: 10px; }
.icon-button { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #dce3db; border-radius: 50%; color: var(--pine); background: transparent; }
.icon-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.intro { padding: 46px 0 27px; }
.eyebrow { margin: 0 0 9px; color: #71817a; font-size: 12px; font-weight: 700; }
.intro h1 { margin: 0; color: var(--pine); font-size: clamp(30px, 8vw, 39px); line-height: 1.28; letter-spacing: -.075em; font-weight: 800; }
.intro h1 span { color: #77904a; }
[hidden] { display: none !important; }
.empty-state { padding: 26px 22px; border: 1px solid #dfe5dd; border-radius: 22px; background: #fff; }
.empty-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; color: var(--pine); background: var(--lime); font-size: 22px; }
.empty-state h2 { margin: 18px 0 7px; color: var(--pine); font-size: 19px; letter-spacing: -.06em; }
.empty-state p { margin: 0 0 20px; color: #6f7d74; font-size: 13px; line-height: 1.7; }
.empty-state .use-button { justify-content: center; }
.pass-card { position: relative; overflow: hidden; padding: 23px 24px 21px; border-radius: 24px; color: #f8fbf4; background: var(--pine); box-shadow: 0 18px 36px #1a372b20; }
.pass-card::before, .pass-card::after { position: absolute; content: ''; pointer-events: none; border: 1px solid #ffffff12; border-radius: 50%; transform: rotate(-28deg); }
.pass-card::before { width: 340px; height: 150px; top: 67px; right: -133px; }
.pass-card::after { width: 370px; height: 178px; top: 79px; right: -152px; }
.pass-topline, .remaining-label, .section-heading, .pass-details > div { display: flex; justify-content: space-between; align-items: center; }
.pass-type { color: var(--pine); background: var(--lime); border-radius: 99px; padding: 6px 11px; font-size: 11px; font-weight: 800; }
.active-dot { display: inline-flex; align-items: center; gap: 7px; color: #c5d4c9; font-size: 11px; }
.active-dot span { width: 6px; height: 6px; border-radius: 100%; background: var(--lime); box-shadow: 0 0 0 4px #d9f2261b; }
.pass-heading { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; margin-top: 22px; }
.pass-heading h2 { margin: 0; font-size: 21px; font-weight: 700; letter-spacing: -.06em; }
.pass-heading p { margin: 3px 0 0; color: #bacbc0; font-size: 12px; }
.pass-glyph { width: 54px; height: 50px; position: relative; opacity: .88; }
.pass-glyph::before { content: ''; position: absolute; width: 32px; height: 32px; left: 8px; top: 8px; border: 2px solid var(--lime); border-radius: 9px 9px 17px 9px; transform: rotate(45deg); }
.pass-glyph span { position: absolute; z-index: 1; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }
.pass-glyph span:nth-child(1) { left: 12px; top: 23px; }.pass-glyph span:nth-child(2) { left: 24px; top: 11px; }.pass-glyph span:nth-child(3) { left: 37px; top: 24px; }
.remaining-block { position: relative; z-index: 1; margin-top: 24px; }
.remaining-label { color: #c0d0c6; font-size: 11px; }
.remaining-label span:last-child { color: #eff6e8; font-weight: 600; }
.count-line { display: flex; align-items: baseline; gap: 6px; margin: 0 0 11px; }
.count-line strong { color: var(--lime); font-family: 'DM Sans', sans-serif; font-size: 67px; line-height: 1; letter-spacing: -.085em; font-weight: 600; }
.count-line span { color: #dce8dc; font-size: 16px; font-weight: 600; }
.progress-track { display: flex; gap: 5px; height: 5px; }
.progress-track span { flex: 1; border-radius: 5px; background: #ffffff27; }
.progress-track span.filled { background: var(--lime); }
.pass-details { display: grid; gap: 11px; margin-top: 21px; padding-top: 16px; border-top: 1px solid #ffffff22; }
.pass-details > div span { color: #a9bcb0; font-size: 11px; }
.pass-details > div strong { color: #eef4e9; font-size: 11px; font-weight: 600; }
.action-area { padding-top: 17px; }
.use-button { width: 100%; min-height: 58px; display: flex; align-items: center; gap: 11px; padding: 0 17px; border: 0; border-radius: 16px; color: var(--pine); background: var(--lime); font-size: 14px; font-weight: 800; transition: transform .16s ease, background .16s ease; }
.use-button:hover { background: #d0ed57; transform: translateY(-1px); }
.use-button:active { transform: translateY(1px); }
.button-plus { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: #18362f12; font-size: 19px; font-weight: 500; }
.button-hint { margin-left: auto; color: #45603d; font-size: 11px; font-weight: 600; }
.action-message { min-height: 17px; margin: 7px 4px 0; color: #587249; font-size: 11px; }
.history-section { margin-top: 11px; }
.section-heading { margin-bottom: 11px; }
.section-heading h2 { margin: 0; color: var(--pine); font-size: 15px; letter-spacing: -.04em; }
.section-heading span { color: #7d8981; font-size: 11px; }
.history-list { list-style: none; margin: 0; padding: 0; }
.history-item { display: flex; align-items: center; gap: 11px; padding: 13px 1px; border-top: 1px solid var(--line); }
.history-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 12px; color: var(--pine); background: #e3eada; font-size: 15px; }
.history-copy { flex: 1; }.history-copy strong { display: block; color: #2d3933; font-size: 12px; font-weight: 700; }.history-copy span { display: block; margin-top: 2px; color: #849087; font-size: 10px; }
.history-delta { color: #748170; font-size: 11px; font-weight: 700; }
.footer-note { margin-top: 22px; color: #9aa39b; text-align: center; font-size: 10px; }
.edit-dialog { width: min(calc(100% - 32px), 440px); max-height: 90vh; padding: 0; border: 0; border-radius: 22px; color: var(--ink); background: var(--paper); box-shadow: 0 24px 80px #0004; }
.edit-dialog::backdrop { background: #12221db3; backdrop-filter: blur(3px); }
.edit-dialog form { padding: 23px; }
.connect-copy { margin: -5px 0 20px; color: #6f7d74; font-size: 13px; line-height: 1.7; }
.connect-message { min-height: 18px; margin: 0; color: #8b4436; font-size: 12px; }
.connect-dialog .dialog-actions { justify-content: flex-end; }
.dialog-heading { display: flex; align-items: start; justify-content: space-between; margin-bottom: 20px; }.dialog-heading h2 { margin: 0; color: var(--pine); font-size: 23px; letter-spacing: -.06em; }.dialog-heading .eyebrow { margin-bottom: 4px; }
.close-button { border: 0; font-size: 25px; line-height: 1; }
.edit-dialog label { display: block; margin: 0 0 13px; color: #53645b; font-size: 11px; font-weight: 700; }
.edit-dialog input { display: block; width: 100%; height: 43px; margin-top: 6px; padding: 0 12px; border: 1px solid #dce3db; border-radius: 11px; color: var(--ink); background: #fff; font-size: 13px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.text-button, .save-button { min-height: 44px; padding: 0 16px; border-radius: 12px; font-size: 12px; font-weight: 700; }
.text-button { border: 1px solid #dce3db; color: #53645b; background: transparent; }
.save-button { margin-left: auto; border: 0; color: var(--pine); background: var(--lime); }
@media (max-width: 380px) { .app-shell { width: min(100% - 28px, 500px); } .pass-card { padding: 20px; } .pass-details > div strong { font-size: 10px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
