/* ───────────── 桜の旅 · paleta e base ───────────── */
:root {
  --paper: #f6f1e7;
  --paper-2: #fbf8f2;
  --paper-3: #efe8dc;
  --ink: #372f50;
  --ink-soft: #6b6286;
  --ink-faint: #9a92b0;
  --lav-900: #3f3468;
  --lav-700: #5f4f9c;
  --lav-500: #8f80c4;
  --lav-300: #bfb4e0;
  --lav-100: #ebe6f5;
  --sakura-600: #b8678d;
  --sakura-500: #d98bab;
  --sakura-300: #f0c3d4;
  --sakura-100: #fbeaf0;
  --gold: #b89b5e;
  --branch: #574767;
  --line: #d9d0ea;
  --radius: 4px;
  --shadow: 0 1px 0 rgba(63, 52, 104, .04), 0 8px 24px -12px rgba(63, 52, 104, .25);
  --f-jp: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --f-latin: "Cormorant Garamond", Georgia, serif;
  --f-body: "Zen Kaku Gothic New", "Segoe UI", system-ui, sans-serif;
  --seigaiha: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' width='40' height='20'%3E%3Cdefs%3E%3Cg id='s'%3E%3Ccircle r='19.5'/%3E%3Ccircle r='14.5' fill='none'/%3E%3Ccircle r='9.5' fill='none'/%3E%3Ccircle r='4.5' fill='none'/%3E%3C/g%3E%3C/defs%3E%3Cg fill='%23f4eef6' stroke='%23bfb4e0' stroke-width='1.1'%3E%3Cuse href='%23s' x='20' y='-10'/%3E%3Cuse href='%23s' x='0' y='0'/%3E%3Cuse href='%23s' x='40' y='0'/%3E%3Cuse href='%23s' x='20' y='10'/%3E%3Cuse href='%23s' x='0' y='20'/%3E%3Cuse href='%23s' x='40' y='20'/%3E%3Cuse href='%23s' x='20' y='30'/%3E%3C/g%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .25 0 0 0 0 .2 0 0 0 0 .35 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 100% 0%, var(--sakura-100), transparent 45%),
    radial-gradient(ellipse at 0% 100%, var(--lav-100), transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
.jp { font-family: var(--f-jp); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
a { color: var(--lav-700); }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 28px 24px 64px; }

/* flor reutilizável */
/* a flor (#sakura) é estilizada por variáveis: --fl-stroke, --fl-so, --fl-center, --fl-stamen */
.flower { color: var(--sakura-300); }

/* ───────────── cabeçalho ───────────── */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 3px double var(--lav-300);
}
.header-inner {
  max-width: 1160px; margin: 0 auto; padding: 10px 24px;
  display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--lav-900); flex-shrink: 0; }
.hanko {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1.5px solid var(--lav-700); outline: 1px solid var(--lav-300); outline-offset: 2px;
  background: var(--paper-2);
}
.hanko svg { width: 30px; height: 30px; color: var(--lav-300); --fl-stroke: var(--lav-700); --fl-so: 1; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-jp { font-family: var(--f-jp); font-weight: 700; font-size: 22px; letter-spacing: .08em; }
.brand-ro { font-family: var(--f-latin); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }

.tabs { display: flex; gap: 2px; flex: 1; justify-content: center; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  display: flex; flex-direction: column; align-items: center;
  padding: 6px 14px 7px; text-decoration: none; color: var(--ink-soft);
  font-size: 13.5px; font-weight: 500; white-space: nowrap; position: relative;
  transition: color .2s;
}
.tabs a .jp { font-size: 11px; letter-spacing: .15em; color: var(--ink-faint); line-height: 1.2; }
.tabs a:hover { color: var(--lav-700); }
.tabs a.active { color: var(--lav-900); }
.tabs a.active .jp { color: var(--sakura-600); }
.tabs a.active::after {
  content: ""; position: absolute; left: 50%; bottom: -1px; width: 6px; height: 6px;
  background: var(--sakura-500); transform: translateX(-50%) rotate(45deg);
}
.settings-btn {
  border: 1px solid var(--lav-300); background: var(--paper-2); padding: 6px 10px;
  font-size: 13px; letter-spacing: .15em; color: var(--lav-700); border-radius: var(--radius);
}
.settings-btn:hover { border-color: var(--lav-700); }

/* indicador de sincronização */
.sync { font-size: 12px; color: var(--ink-faint); white-space: nowrap; display: inline-flex; gap: 5px; align-items: center; }
.sync .ic { font-size: 14px; color: var(--lav-500); }
.sync.salvo .ic { color: var(--lav-700); }
.sync.salvando .ic, .sync.carregando .ic { animation: spin 1.2s linear infinite; display: inline-block; }
.sync.offline, .sync.erro, .sync.semconfig { color: var(--sakura-600); }
.sync.offline .ic, .sync.erro .ic, .sync.semconfig .ic { color: var(--sakura-600); }
@keyframes spin { to { transform: rotate(360deg); } }
body.locked .tabs, body.locked .settings-btn { visibility: hidden; }

/* tela de entrada */
.login { max-width: 440px; margin: 40px auto; padding: 36px 32px 30px; text-align: center; }
.login .login-hanko { position: static; margin: 0 auto 18px; }
.login h2 { font-size: 20px; color: var(--lav-900); display: flex; flex-direction: column; gap: 2px; }
.login h2 .jp { font-size: 30px; color: var(--sakura-600); letter-spacing: .2em; }
.login > p { color: var(--ink-soft); font-size: 14px; margin: 10px 0 18px; }
.login .login-err { color: #a04a5f; background: var(--sakura-100); border: 1px solid var(--sakura-300); padding: 6px 10px; border-radius: var(--radius); }
.login form { display: grid; gap: 14px; text-align: left; }
.login small { font-weight: 400; color: var(--ink-faint); }
.login .btn { justify-content: center; padding: 10px; }

/* ───────────── pétalas caindo ───────────── */
.petal-rain { position: fixed; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.petal-rain svg {
  position: absolute; top: -40px; color: var(--sakura-300); fill: currentColor; opacity: .7;
  animation: fall linear infinite;
}
@keyframes fall {
  0%   { transform: translate3d(0, -5vh, 0) rotate(0deg); }
  25%  { transform: translate3d(40px, 25vh, 0) rotate(90deg); }
  50%  { transform: translate3d(-20px, 55vh, 0) rotate(180deg); }
  75%  { transform: translate3d(50px, 82vh, 0) rotate(270deg); }
  100% { transform: translate3d(10px, 110vh, 0) rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) { .petal-rain { display: none; } html { scroll-behavior: auto; } }

main, .site-footer { position: relative; z-index: 2; }

/* ───────────── títulos de seção ───────────── */
.sec-head { display: flex; align-items: flex-end; gap: 18px; margin: 8px 0 22px; flex-wrap: wrap; }
.sec-title { display: flex; align-items: baseline; gap: 14px; margin: 0; }
.sec-title .jp { font-size: 34px; font-weight: 700; color: var(--lav-900); letter-spacing: .1em; line-height: 1; }
.sec-title .pt { font-family: var(--f-latin); font-size: 22px; font-style: italic; color: var(--ink-soft); }
.sec-sub { margin: 4px 0 0; color: var(--ink-soft); font-size: 14px; }
.sec-head .grow { flex: 1; }

h2, h3, h4 { font-weight: 700; margin: 0; }

/* ───────────── botões, chips ───────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--lav-300); background: var(--paper-2); color: var(--lav-900);
  padding: 8px 16px; border-radius: var(--radius); font-size: 14px; font-weight: 500;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:hover { border-color: var(--lav-700); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--lav-700); border-color: var(--lav-700); color: #fff; }
.btn.primary:hover { background: var(--lav-900); }
.btn.sakura { background: var(--sakura-100); border-color: var(--sakura-300); color: var(--sakura-600); }
.btn.sakura:hover { border-color: var(--sakura-500); }
.btn.small { padding: 4px 10px; font-size: 13px; }
.btn.ghost { background: transparent; }
.btn.danger { color: #a04a5f; border-color: #e3bcc6; }
.btn:disabled { opacity: .55; cursor: default; }
.icon {
  border: 0; background: none; padding: 4px 6px; color: var(--ink-faint); border-radius: var(--radius); line-height: 1;
}
.icon:hover { color: var(--lav-700); background: var(--lav-100); }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 1px solid var(--line); background: var(--paper-2); padding: 4px 12px; border-radius: 99px;
  font-size: 13px; color: var(--ink-soft); display: inline-flex; gap: 6px; align-items: baseline;
}
.chip .jp { font-size: 12px; color: var(--ink-faint); }
.chip:hover { border-color: var(--lav-500); }
.chip.on { background: var(--lav-700); border-color: var(--lav-700); color: #fff; }
.chip.on .jp { color: var(--lav-100); }
.chip .n { font-size: 11px; opacity: .7; }

.badge {
  --c: var(--lav-500);
  display: inline-grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0;
  font-family: var(--f-jp); font-weight: 700; font-size: 15px;
  color: var(--c); border: 1.5px solid var(--c); background: color-mix(in srgb, var(--c) 8%, var(--paper-2));
  border-radius: 2px;
}
.who { display: flex; gap: 3px; flex-wrap: wrap; }
.who-chip {
  --c: var(--lav-500);
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  background: var(--c); color: #fff; font-size: 11px; font-weight: 700;
}

/* ───────────── cartões ───────────── */
.card {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px 22px; position: relative;
}
.card.framed { outline: 1px solid var(--line); outline-offset: 4px; }
.card-title { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.card-title .jp { font-size: 20px; color: var(--lav-900); letter-spacing: .08em; }
.card-title .pt { font-family: var(--f-latin); font-style: italic; font-size: 18px; color: var(--ink-soft); }
.card-title .grow { flex: 1; }

.empty {
  text-align: center; color: var(--ink-soft); padding: 28px 16px; border: 1px dashed var(--lav-300);
  border-radius: var(--radius); background: color-mix(in srgb, var(--paper-2) 70%, transparent);
}
.empty .jp { display: block; font-size: 26px; color: var(--lav-300); margin-bottom: 4px; letter-spacing: .2em; }

.notice {
  display: flex; gap: 12px; align-items: center; padding: 10px 16px; margin-bottom: 20px;
  background: var(--sakura-100); border: 1px solid var(--sakura-300); border-radius: var(--radius); color: var(--sakura-600);
  font-size: 14px;
}
.notice .grow { flex: 1; }

/* ───────────── postal (início) ───────────── */
.postcard {
  position: relative; overflow: hidden;
  background: var(--paper-2); border: 1px solid var(--lav-300);
  outline: 1px solid var(--lav-300); outline-offset: 5px;
  aspect-ratio: 1000 / 560; min-height: 420px; margin: 6px 6px 34px;
  box-shadow: 0 30px 60px -40px rgba(63, 52, 104, .55);
}
.postcard-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.postcard-art .flower { --fl-so: .7; }
.pc-title { position: absolute; left: 7%; top: 8%; }
.pc-title h1 {
  font-family: var(--f-jp); font-weight: 800; font-size: clamp(40px, 6.4vw, 76px); line-height: 1;
  color: var(--lav-700); margin: 0; letter-spacing: .12em;
}
.pc-title .romaji { font-family: var(--f-latin); font-size: clamp(14px, 1.7vw, 19px); letter-spacing: .22em; color: var(--lav-700); margin: 8px 0 0 .3em; }
.pc-title .trip-name { font-family: var(--f-latin); font-style: italic; font-size: clamp(16px, 2vw, 22px); color: var(--ink-soft); margin: 10px 0 0 .2em; }
.pc-swatches { position: absolute; left: 2.6%; top: 22%; display: flex; flex-direction: column; gap: 10px; }
.pc-swatches span { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--lav-500); }
.pc-stamp {
  position: absolute; left: 4%; bottom: 7%; background: var(--paper-2);
  border: 1.5px solid var(--lav-700); outline: 1px solid var(--lav-300); outline-offset: 3px;
  padding: 10px 18px 8px; text-align: center; color: var(--lav-900); min-width: 120px;
}
.pc-stamp .ato { font-family: var(--f-jp); font-size: 14px; letter-spacing: .3em; display: block; }
.pc-stamp .num { font-family: var(--f-jp); font-weight: 800; font-size: 40px; line-height: 1.05; display: block; }
.pc-stamp .num small { font-size: 18px; margin-left: 2px; }
.pc-stamp .lbl { font-family: var(--f-latin); font-size: 14px; color: var(--ink-soft); display: block; }
.pc-quote {
  position: absolute; left: 50%; bottom: 6%; transform: translateX(-38%);
  font-family: var(--f-latin); font-size: clamp(14px, 1.7vw, 19px); line-height: 1.3; color: var(--lav-900);
  background: var(--paper-2); border: 1px solid var(--lav-300); padding: 8px 16px; text-align: left; font-style: italic;
}
.pc-hanko {
  position: absolute; right: 3.5%; bottom: 7%; width: 64px; height: 64px; display: grid; place-items: center;
  border: 1.5px solid var(--lav-700); outline: 1px solid var(--lav-300); outline-offset: 3px; background: var(--paper-2);
}
.pc-hanko svg { width: 44px; height: 44px; color: var(--lav-300); --fl-stroke: var(--lav-700); --fl-so: 1; }
.pc-dates {
  position: absolute; right: 4%; top: 6%; font-family: var(--f-latin); font-size: 16px; color: var(--ink-soft);
  writing-mode: vertical-rl; letter-spacing: .15em; display: none;
}

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
.stat { text-decoration: none; color: inherit; display: flex; gap: 14px; align-items: center; padding: 16px 18px; }
.stat:hover { border-color: var(--lav-500); }
.stat .k {
  font-family: var(--f-jp); font-size: 22px; color: var(--sakura-600); width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--sakura-300); border-radius: 50%; background: var(--sakura-100); flex-shrink: 0;
}
.stat .v { font-family: var(--f-jp); font-weight: 700; font-size: 26px; line-height: 1; color: var(--lav-900); }
.stat .l { font-size: 13px; color: var(--ink-soft); }

.home-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; align-items: start; }
.home-col { display: grid; gap: 22px; }
.todo-mini { list-style: none; margin: 0; padding: 0; }
.todo-mini li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dotted var(--line); }
.todo-mini li:last-child { border-bottom: 0; }
.todo-mini .g { margin-left: auto; font-size: 12px; color: var(--ink-faint); white-space: nowrap; }
.tips { display: grid; gap: 12px; }
.tip { display: flex; gap: 12px; }
.tip .badge { --c: var(--sakura-500); }
.tip b { display: block; color: var(--lav-900); font-size: 14px; }
.tip p { margin: 0; font-size: 13.5px; color: var(--ink-soft); }
.family { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.member { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px 3px 3px; border: 1px solid var(--line); border-radius: 99px; background: var(--paper); font-size: 14px; }

/* ───────────── roteiro ───────────── */
.day-strip { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 12px; margin-bottom: 14px; scrollbar-width: thin; }
.day-pill {
  flex-shrink: 0; text-decoration: none; text-align: center; color: var(--ink-soft);
  border: 1px solid var(--line); background: var(--paper-2); border-radius: var(--radius); padding: 6px 10px 5px; min-width: 56px;
}
.day-pill b { display: block; font-family: var(--f-jp); font-size: 18px; color: var(--lav-900); line-height: 1.1; }
.day-pill small { font-size: 11px; display: block; }
.day-pill .dot { display: block; height: 4px; margin: 4px auto 0; width: 4px; border-radius: 50%; background: transparent; }
.day-pill.has .dot { background: var(--sakura-500); }
.day-pill:hover { border-color: var(--lav-500); }

.day { display: grid; grid-template-columns: 92px 1fr; gap: 0; margin-bottom: 16px; }
.day-date {
  background: var(--lav-700); color: #fff; text-align: center; padding: 16px 6px; border-radius: var(--radius) 0 0 var(--radius);
  display: flex; flex-direction: column; align-items: center; gap: 2px; position: relative; overflow: hidden;
}
.day-date::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 30px; background: var(--seigaiha); opacity: .25;
}
.day-date .dmon { font-family: var(--f-jp); font-size: 13px; opacity: .85; }
.day-date .dnum { font-family: var(--f-jp); font-weight: 800; font-size: 38px; line-height: 1; }
.day-date .dwk { font-family: var(--f-jp); font-size: 15px; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; margin-top: 4px; }
.day-date .dpt { font-size: 12px; opacity: .8; }
.day.today .day-date { background: var(--sakura-600); }
.day-body { background: var(--paper-2); border: 1px solid var(--line); border-left: 0; border-radius: 0 var(--radius) var(--radius) 0; padding: 14px 18px; box-shadow: var(--shadow); min-width: 0; }
.day-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.day-head h3 { font-size: 17px; color: var(--lav-900); }
.day-head .city { font-family: var(--f-latin); font-style: italic; font-size: 19px; color: var(--sakura-600); border: 0; background: none; padding: 0 2px; border-bottom: 1px dashed transparent; }
.day-head .city:hover { border-bottom-color: var(--sakura-500); }
.day-head .city.unset { color: var(--ink-faint); }
.day-head .grow { flex: 1; }
.day-note { font-size: 13.5px; color: var(--ink-soft); margin: -4px 0 8px; }

.day-empty { margin: 0; color: var(--ink-faint); font-size: 14px; padding: 6px 0 2px; }
.day-empty .jp { color: var(--lav-300); margin-right: 4px; }
.sched { width: 100%; border-collapse: collapse; }
.sched td { padding: 9px 8px; border-top: 1px dotted var(--line); vertical-align: top; }
.sched tr:first-child td { border-top: 0; }
.sched .t { width: 64px; font-family: var(--f-jp); font-weight: 700; color: var(--lav-700); white-space: nowrap; padding-top: 12px; }
.sched .b { width: 40px; }
.sched .what b { display: block; font-weight: 500; }
.sched .what .meta { font-size: 13px; color: var(--ink-soft); }
.sched .what .meta a { font-size: 13px; }
.sched .acts { width: 78px; text-align: right; white-space: nowrap; }
.sched tr.done .what b { text-decoration: line-through; text-decoration-color: var(--sakura-500); color: var(--ink-faint); }
.sched tr.done .badge { opacity: .45; }
.check { width: 18px; height: 18px; accent-color: var(--sakura-600); cursor: pointer; vertical-align: middle; }

/* ───────────── lugares / lojas ───────────── */
.filters { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-bottom: 20px; }
.filters select { border: 1px solid var(--line); background: var(--paper-2); border-radius: 99px; padding: 4px 12px; font-size: 13px; color: var(--ink-soft); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.spot { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 14px; }
.spot-top { display: flex; align-items: center; gap: 10px; }
.spot-top .grow { flex: 1; }
.spot h4 { font-size: 16.5px; color: var(--lav-900); line-height: 1.3; }
.spot .where { font-size: 13px; color: var(--sakura-600); margin: -4px 0 0; }
.spot .notes { font-size: 13.5px; color: var(--ink-soft); margin: 0; white-space: pre-line; }
.spot footer { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; border-top: 1px dotted var(--line); }
.spot footer .grow { flex: 1; }
.spot.feito { opacity: .72; }
.spot.feito h4 { text-decoration: line-through; text-decoration-color: var(--sakura-500); }
.prio { display: inline-flex; gap: 1px; }
.prio svg { width: 15px; height: 15px; color: var(--sakura-300); }
.prio svg.off { color: var(--paper-3); --fl-so: .25; --fl-stamen: none; }
.status {
  font-size: 12px; border: 1px solid var(--line); border-radius: 99px; padding: 2px 10px; background: var(--paper);
  color: var(--ink-soft); display: inline-flex; gap: 5px; align-items: baseline;
}
.status .jp { font-size: 11px; }
.status.agendado { background: var(--lav-100); border-color: var(--lav-300); color: var(--lav-700); }
.status.feito { background: var(--sakura-100); border-color: var(--sakura-300); color: var(--sakura-600); }

/* ───────────── checklist ───────────── */
.progress-wrap { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.progress { flex: 1; height: 10px; background: var(--lav-100); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--sakura-300), var(--sakura-500)); border-radius: 99px; transition: width .4s; }
.progress-wrap .pct { font-family: var(--f-jp); font-weight: 700; font-size: 22px; color: var(--lav-900); }
.ck-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; align-items: start; }
.ck-group .card-title .count { font-size: 13px; color: var(--ink-faint); }
.ck-list { list-style: none; margin: 0 0 10px; padding: 0; }
.ck-item { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; border-bottom: 1px dotted var(--line); }
.ck-item label { flex: 1; cursor: pointer; font-size: 14px; }
.ck-item .check { margin-top: 2px; }
.ck-item.done label { text-decoration: line-through; text-decoration-color: var(--sakura-500); color: var(--ink-faint); }
.ck-item select { border: 0; background: transparent; font-size: 12px; color: var(--ink-faint); max-width: 90px; cursor: pointer; }
.ck-item .icon { visibility: hidden; }
.ck-item:hover .icon { visibility: visible; }
.ck-add { display: flex; gap: 6px; }
.ck-add input { flex: 1; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); padding: 6px 10px; font-size: 14px; min-width: 0; }
.ck-add input:focus { outline: 2px solid var(--lav-300); border-color: var(--lav-500); }

/* ───────────── sugestões ───────────── */
.sug { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 16px; }
.sug .jpname { font-family: var(--f-jp); font-size: 13px; color: var(--ink-faint); letter-spacing: .08em; }
.sug h4 { font-size: 17px; color: var(--lav-900); }
.sug .why { font-size: 14px; margin: 0; }
.sug .tipline { font-size: 13px; color: var(--ink-soft); margin: 0; padding-left: 10px; border-left: 2px solid var(--sakura-300); }
.sug footer { margin-top: auto; padding-top: 10px; display: flex; align-items: center; gap: 8px; }
.sug footer .grow { flex: 1; }
.sug footer .where { font-size: 13px; color: var(--sakura-600); }
.sug.added { background: color-mix(in srgb, var(--lav-100) 50%, var(--paper-2)); }

/* ───────────── modal ───────────── */
dialog#modal {
  border: 0; padding: 0; background: transparent; max-width: min(560px, calc(100vw - 24px)); width: 100%;
}
dialog#modal::backdrop { background: rgba(55, 47, 80, .35); backdrop-filter: blur(2px); }
.modal-card {
  background: var(--paper-2); border: 1px solid var(--lav-300); outline: 1px solid var(--lav-300); outline-offset: -6px;
  border-radius: var(--radius); padding: 22px 24px 18px; box-shadow: 0 30px 80px -20px rgba(55, 47, 80, .5);
}
.modal-card > header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.modal-card > header .jp { font-size: 24px; color: var(--sakura-600); }
.modal-card > header h3 { font-size: 18px; color: var(--lav-900); flex: 1; }
.modal-card > header .icon { font-size: 22px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.f { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--ink-soft); grid-column: span 1; border: 0; padding: 0; margin: 0; min-width: 0; }
.f.wide { grid-column: 1 / -1; }
.f > span, .f > legend { font-weight: 500; padding: 0; margin-bottom: 4px; }
.f input:not([type=checkbox]):not([type=radio]), .f select, .f textarea {
  border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); padding: 8px 10px; font-size: 14.5px; color: var(--ink); width: 100%;
}
.f input:focus, .f select:focus, .f textarea:focus { outline: 2px solid var(--lav-300); border-color: var(--lav-500); }
.f textarea { resize: vertical; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opts label { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px 4px 8px; background: var(--paper); cursor: pointer; color: var(--ink); }
.opts input { accent-color: var(--lav-700); }
.opts label:has(input:checked) { border-color: var(--lav-500); background: var(--lav-100); }
.opts .prio svg { width: 16px; height: 16px; }
.modal-card > footer { display: flex; gap: 8px; margin-top: 20px; align-items: center; }
.modal-card > footer .grow { flex: 1; }
.modal-extra { margin-top: 18px; padding-top: 14px; border-top: 1px dotted var(--line); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-soft); }
.modal-extra p { margin: 0 0 4px; width: 100%; }

/* ───────────── rodapé ───────────── */
.site-footer { text-align: center; color: var(--ink-soft); font-size: 14px; padding-bottom: 28px; }
.seigaiha-band { height: 46px; background: var(--seigaiha); border-top: 1px solid var(--lav-300); border-bottom: 1px solid var(--lav-300); margin-bottom: 16px; opacity: .9; }
.site-footer .jp { color: var(--lav-700); letter-spacing: .15em; }
.site-footer em { font-family: var(--f-latin); font-size: 16px; }

/* ───────────── responsivo ───────────── */
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; gap: 8px 16px; padding: 8px 16px 0; }
  .tabs { order: 3; flex-basis: 100%; justify-content: flex-start; margin: 0 -16px; padding: 0 10px; }
  .sync { margin-left: auto; }
  .sync.salvo .txt { display: none; }
  .wrap { padding: 20px 16px 48px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .home-grid { grid-template-columns: 1fr; }
  html { scroll-padding-top: 130px; }
}
@media (max-width: 640px) {
  /* no celular a capa vira coluna: título, frase e a ilustração embaixo */
  .postcard { aspect-ratio: auto; min-height: 0; margin: 4px 4px 28px; display: flex; flex-direction: column; }
  .postcard-art { position: relative; inset: auto; height: auto; aspect-ratio: 4 / 3; order: 3; margin-top: -40px; }
  .pc-swatches { display: none; }
  .pc-title { position: relative; left: auto; top: auto; padding: 22px 20px 0; z-index: 1; }
  .pc-quote { position: relative; left: auto; bottom: auto; transform: none; margin: 14px 20px 0; font-size: 15px; z-index: 1; align-self: flex-start; }
  .pc-stamp { left: 16px; bottom: 14px; min-width: 96px; padding: 6px 12px 5px; z-index: 1; }
  .pc-stamp .num { font-size: 30px; }
  .pc-hanko { right: 16px; bottom: 14px; width: 50px; height: 50px; z-index: 1; }
  .pc-hanko svg { width: 34px; height: 34px; }
  .sec-title .jp { font-size: 28px; }
  .day { grid-template-columns: 62px 1fr; }
  .day-date .dnum { font-size: 28px; }
  .day-body { padding: 12px; }
  .sched .t { width: 48px; font-size: 13px; }
  .sched .b { display: none; }
  .fields { grid-template-columns: 1fr; }
  .f { grid-column: 1 / -1; }
  .ck-grid { grid-template-columns: 1fr; }
  .ck-item .icon { visibility: visible; }
}
