:root {
  color-scheme: light; --ink:#212926; --muted:#56665d; --line:#dde4d8; --canvas:#f8f8f1;
  --green:#24533d; --green-dark:#1a4130; --sage:#e9f1e3; --white:#fff;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif; color:var(--ink); background:var(--canvas);
}
* { box-sizing:border-box; }
body { margin:0; }
[hidden] { display:none!important; }
button,input,select { font:inherit; }
button { cursor:pointer; }
button:disabled { cursor:wait; opacity:.65; }
a { color:var(--green-dark); }
:focus-visible { outline:3px solid #497a62; outline-offset:3px; }
.wrap { width:min(1150px,calc(100% - 48px)); margin:auto; }
.top { border-bottom:1px solid var(--line); background:#fffefa; }
.bar { min-height:74px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.brand { text-decoration:none; font-weight:750; font-size:1.07rem; display:flex; align-items:center; gap:10px; }
.brand-icon,.trip-icon { display:grid; place-items:center; border-radius:12px; background:var(--green); color:white; width:36px; height:36px; }
.account { display:flex; align-items:center; gap:10px; color:var(--muted); font-size:.875rem; overflow-wrap:anywhere; }
main { padding-bottom:55px; }
.hero { padding:46px 0 25px; display:flex; align-items:end; justify-content:space-between; gap:20px; }
.eyebrow { color:var(--green); font-size:.875rem; font-weight:750; letter-spacing:.08em; text-transform:uppercase; margin:0 0 10px; }
h1 { margin:0; font-family:Georgia,serif; font-weight:500; font-size:clamp(2.65rem,7vw,4.6rem); line-height:1.02; letter-spacing:-.06em; }
h2 { margin:0; font-size:1.2rem; letter-spacing:-.025em; }
.intro { margin:14px 0 0; color:var(--muted); }
.tabs { display:flex; gap:24px; border-bottom:1px solid var(--line); margin-bottom:23px; }
.tabs button { border:0; border-bottom:3px solid transparent; color:var(--muted); background:transparent; padding:12px 3px; font-weight:650; }
.tabs button[aria-pressed=true] { border-color:var(--green); color:var(--green-dark); }
.layout { display:grid; grid-template-columns:minmax(0,1fr) 250px; gap:22px; align-items:start; }
.card { background:var(--white); border:1px solid var(--line); border-radius:18px; padding:22px; margin-bottom:17px; }
.fields { display:grid; grid-template-columns:minmax(145px,2fr) minmax(100px,1fr) minmax(120px,1.15fr) auto; align-items:end; gap:10px; margin-top:15px; }
label { display:grid; gap:6px; font-weight:650; font-size:.875rem; }
input,select { width:100%; min-width:0; padding:10px 11px; min-height:44px; border:1px solid #cbd7cc; border-radius:9px; background:#fff; color:var(--ink); font-size:1rem; }
input::placeholder { color:#69766c; }
.primary,.secondary,.quiet { border:1px solid transparent; border-radius:9px; padding:10px 14px; min-height:44px; font-weight:650; }
.primary { background:var(--green); color:white; }
.primary:hover { background:var(--green-dark); }
.secondary { background:var(--sage); color:var(--green-dark); }
.quiet { background:transparent; color:var(--green-dark); border-color:var(--line); }
.section-title,.entry,.person { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.count { font-size:.875rem; border-radius:99px; padding:4px 10px; background:var(--sage); color:var(--green-dark); }
.category { font-size:.875rem; font-weight:750; color:var(--muted); padding:17px 0 4px; margin:0; }
.entry,.person { min-height:55px; border-bottom:1px solid #edf0eb; }
.entry:last-child,.person:last-child { border-bottom:0; }
.entry label { flex:1; min-width:0; display:flex; align-items:center; gap:12px; font-size:1rem; min-height:49px; overflow-wrap:anywhere; }
.entry input { width:22px; min-height:22px; height:22px; margin:0; accent-color:var(--green); flex:none; }
.entry small { display:block; font-size:.875rem; font-weight:450; color:var(--muted); }
.entry.completed strong { text-decoration:line-through; color:var(--muted); }
.remove { padding:2px 10px; min-width:44px; min-height:44px; font-size:1.3rem; border:0; border-radius:8px; color:var(--muted); background:transparent; }
.remove:hover { background:#f3eee7; }
.trip { padding:21px; background:var(--sage); border-radius:17px; color:var(--green-dark); }
.trip h2 { margin-top:13px; }
.trip p { font-size:.9375rem; margin:12px 0 8px; }
progress { display:block; width:100%; height:10px; accent-color:var(--green); }
progress::-webkit-progress-bar { background:#ccdacc; border-radius:15px; }
progress::-webkit-progress-value { background:var(--green); border-radius:15px; }
.people { max-width:760px; }
.people form { display:flex; align-items:end; flex-wrap:wrap; gap:10px; margin:20px 0; }
.people form label { flex:1 1 220px; }
.person { padding:10px 0; flex-wrap:wrap; overflow-wrap:anywhere; }
.person-actions { display:flex; gap:8px; flex-wrap:wrap; }
.person small { color:var(--muted); display:block; margin-top:3px; font-size:.875rem; }
.share { background:var(--sage); padding:13px; border-radius:10px; }
.share p { margin:0 0 8px; }
.signin { max-width:540px; margin:60px auto 0; }
.signin h1 { font-size:clamp(2.5rem,7vw,3.5rem); }
.signin form { margin-top:16px; display:grid; gap:10px; }
.signin p,.empty { color:var(--muted); line-height:1.55; }
#notice:not(:empty) { position:fixed; z-index:2; bottom:18px; right:18px; max-width:min(430px,calc(100% - 36px)); padding:13px 17px; border-radius:12px; color:white; background:#23372b; box-shadow:0 4px 20px #0002; }
@media(max-width:930px) { .fields { grid-template-columns:1fr 1fr; } }
@media(max-width:690px) {
  .wrap { width:calc(100% - 28px); }
  .bar { min-height:64px; }
  .account { flex-wrap:wrap; justify-content:end; }
  .hero { padding-top:32px; flex-direction:column; align-items:start; }
  .layout { grid-template-columns:1fr; gap:4px; }
  .card { padding:16px; }
  .item-field { grid-column:1/-1; }
  .fields button { grid-column:1/-1; }
}
