/* =========================================================
   汪星恋爱事务所 · visual system
   ========================================================= */

:root {
  --cream: #fff7ec;
  --paper: #fffdf8;
  --paper-2: #fff9f0;
  --ink: #4a3030;
  --ink-soft: #715253;
  --muted: #9b7f7a;
  --line: #f1d9cc;
  --line-strong: #e7c0b3;
  --peach: #f58f8f;
  --peach-deep: #c8545c;
  --peach-soft: #ffe1e1;
  --peach-pale: #fff0ee;
  --caramel: #d8a05c;
  --brown: #9e3e44;
  --chocolate: #5a3034;
  --mint: #9bd4c5;
  --mint-deep: #5aa894;
  --mint-soft: #e2f4ee;
  --yellow: #ffd37e;
  --yellow-soft: #fff2cf;
  --lavender: #d9ccf0;
  --lavender-soft: #f0eafa;
  --shadow-sm: 0 2px 0 rgba(231, 192, 179, 0.55);
  --shadow: 0 16px 46px rgba(125, 66, 66, 0.08);
  --shadow-lg: 0 28px 80px rgba(125, 66, 66, 0.16);
  --radius: 26px;
  --sidebar: 252px;
  --sans: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
  --round: "YouYuan", "幼圆", "PingFang SC", "Microsoft YaHei UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 520px at 8% -4%, #ffe9d2 0%, rgba(255, 233, 210, 0) 58%),
    radial-gradient(760px 480px at 96% 0%, #ffe2dc 0%, rgba(255, 226, 220, 0) 55%),
    radial-gradient(720px 520px at 76% 100%, #e8f5ee 0%, rgba(232, 245, 238, 0) 62%),
    var(--cream);
}
body.modal-open { overflow: hidden; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { display: block; }
::selection { background: #ffd9dc; color: var(--ink); }
:focus-visible { outline: 3px solid rgba(255, 138, 122, 0.55); outline-offset: 2px; }

.paper-grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.34;
  background-image: radial-gradient(rgba(179, 127, 86, 0.34) 0.65px, transparent 0.65px);
  background-size: 17px 17px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
}

.app { position: relative; z-index: 1; display: flex; min-height: 100vh; }
.main-wrap { flex: 1; min-width: 0; }
.view {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 12px 38px 86px;
  outline: none;
}

/* ---------- boot ---------- */
.boot-splash {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--cream);
  transition: opacity 0.45s ease, visibility 0.45s;
}
.boot-splash img { width: 210px; animation: float 3.2s ease-in-out infinite; }
.boot-splash p { color: var(--muted); font-size: 12.5px; letter-spacing: 0.06em; }
.boot-splash.is-hidden { opacity: 0; visibility: hidden; }
.boot-dots { display: flex; gap: 5px; }
.boot-dots span {
  width: 6px; height: 6px; border-radius: 99px; background: var(--peach);
  animation: bounce 1.1s infinite;
}
.boot-dots span:nth-child(2) { animation-delay: 0.14s; background: var(--yellow); }
.boot-dots span:nth-child(3) { animation-delay: 0.28s; background: var(--mint); }

/* ---------- sidebar ---------- */
.sidebar {
  position: sticky;
  top: 0;
  width: var(--sidebar);
  height: 100vh;
  flex: 0 0 var(--sidebar);
  display: flex;
  flex-direction: column;
  padding: 27px 19px 22px;
  border-right: 1.5px solid rgba(228, 198, 169, 0.72);
  background: rgba(255, 253, 248, 0.8);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 7px; }
.brand-mark {
  width: 45px; height: 45px; flex: 0 0 45px;
  display: grid; place-items: center;
  border-radius: 15px;
  background: linear-gradient(145deg, #fff6e6, #ffe2ca);
  border: 1.5px solid var(--line);
  box-shadow: 0 3px 0 #efd7be;
  transform: rotate(-3deg);
}
.brand-mark img { width: 37px; height: 37px; }
.brand-copy { min-width: 0; }
.brand-name { font-weight: 850; font-size: 15.5px; letter-spacing: -0.02em; line-height: 1.3; white-space: nowrap; }
.brand-en { margin-top: 2px; font-family: Georgia, serif; font-size: 8px; letter-spacing: 0.18em; color: var(--caramel); font-weight: 700; }

.side-nav { display: grid; gap: 5px; margin-top: 32px; }
.nav-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border: 1.5px solid transparent;
  border-radius: 15px;
  background: transparent;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 13.5px;
  text-align: left;
  transition: background 0.18s, color 0.18s, transform 0.18s, border-color 0.18s;
}
.nav-link:hover { background: rgba(255, 239, 228, 0.7); color: var(--ink); transform: translateX(2px); }
.nav-icon {
  width: 30px; height: 30px; flex: 0 0 30px;
  display: grid; place-items: center;
  border-radius: 10px;
  color: var(--muted);
  transition: background 0.18s, color 0.18s;
}
.nav-icon svg { width: 18px; height: 18px; }
.nav-link.active {
  color: var(--ink);
  background: linear-gradient(100deg, #ffe8dc, #fff3e9);
  border-color: #f6cfbd;
  box-shadow: inset 0 -2px 0 rgba(233, 176, 151, 0.2);
}
.nav-link.active .nav-icon { background: var(--peach); color: #fff; box-shadow: 0 2px 0 #dc7165; }
.nav-badge {
  margin-left: auto;
  min-width: 20px; height: 20px; padding: 0 6px;
  display: grid; place-items: center;
  border-radius: 99px;
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}
.nav-link.active .nav-badge { background: #fff; color: var(--peach-deep); border-color: #f2c4b6; }

.side-bottom { margin-top: auto; display: grid; gap: 13px; }
.love-card {
  position: relative;
  overflow: hidden;
  padding: 17px 16px 16px;
  border-radius: 21px;
  color: #fff8ee;
  background:
    radial-gradient(150px 100px at 100% 0%, rgba(255, 198, 158, 0.32), transparent 70%),
    linear-gradient(145deg, #a0444a, #5a3034);
  box-shadow: 0 10px 24px rgba(77, 55, 46, 0.18);
}
.love-card::after {
  content: "";
  position: absolute; right: -18px; bottom: -18px;
  width: 90px; height: 90px;
  border: 1.5px dashed rgba(255, 248, 238, 0.22);
  border-radius: 50%;
}
.love-card .lc-eyebrow { display: flex; align-items: center; gap: 6px; font-size: 10px; letter-spacing: 0.12em; color: #f3cba9; font-weight: 700; }
.love-card .lc-days { margin-top: 8px; display: flex; align-items: baseline; gap: 5px; }
.love-card .lc-days b { font-family: Georgia, serif; font-size: 35px; line-height: 1; letter-spacing: -0.03em; }
.love-card .lc-days span { font-size: 11px; color: #e8c9b2; }
.love-card .lc-names { margin-top: 7px; font-size: 11.5px; color: #f6ddc8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.love-card .lc-heart { position: absolute; right: 13px; top: 15px; width: 25px; height: 25px; color: #ff9a8c; transform: rotate(8deg); }

.side-profile {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 9px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}
.avatar {
  position: relative;
  width: 37px; height: 37px; flex: 0 0 37px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: #ffe9d9;
  border: 1.5px solid #f0ceb4;
  font-size: 20px;
  line-height: 1;
}
.avatar.small { width: 25px; height: 25px; flex-basis: 25px; border-radius: 9px; font-size: 14px; border-width: 1px; }
.avatar.tiny { width: 21px; height: 21px; flex-basis: 21px; border-radius: 8px; font-size: 12px; border-width: 1px; }
.avatar.b { background: #e7f5ef; border-color: #c2e2d8; }
.profile-copy { min-width: 0; flex: 1; line-height: 1.35; }
.profile-copy small { display: block; font-size: 9.5px; color: var(--muted); }
.profile-copy b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.profile-switch-btn {
  border: 0; background: transparent; color: var(--muted);
  width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center;
}
.profile-switch-btn:hover { background: var(--peach-pale); color: var(--peach-deep); }
.profile-switch-btn svg { width: 15px; height: 15px; }

/* ---------- topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 38px 10px;
  background: linear-gradient(180deg, rgba(255, 248, 238, 0.96) 62%, rgba(255, 248, 238, 0));
  backdrop-filter: blur(4px);
}
.top-kicker { display: flex; align-items: center; gap: 9px; font-size: 11px; color: var(--muted); font-weight: 650; letter-spacing: 0.05em; }
.mobile-brand { display: none; align-items: center; gap: 8px; font-size: 13px; font-weight: 850; letter-spacing: -0.02em; white-space: nowrap; }
.mobile-brand img { width: 30px; height: 30px; }
.top-kicker .paw { color: var(--caramel); }
.top-kicker .paw svg { width: 14px; height: 14px; }
.top-kicker .dot { color: #cbb29e; }
.top-date { font-weight: 800; color: var(--ink-soft); }
.top-actions { display: flex; align-items: center; gap: 9px; }
.sync-pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 11px;
  border-radius: 99px;
  border: 1.5px solid #e7d8c5;
  background: rgba(255, 253, 248, 0.8);
  color: var(--muted); font-size: 10.5px; font-weight: 700;
}
.sync-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint-deep); box-shadow: 0 0 0 3px rgba(143, 205, 189, 0.2); }
.sync-pill.syncing .sync-dot { background: var(--yellow); animation: pulse 1s infinite; }
.sync-pill.error .sync-dot { background: var(--peach-deep); }
.top-profile {
  display: flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 10px 0 5px;
  border: 1.5px solid var(--line);
  border-radius: 99px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  font-size: 12px; font-weight: 800;
}
.top-profile svg { width: 13px; height: 13px; color: var(--muted); }
.top-share {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--paper);
  display: grid; place-items: center;
  box-shadow: var(--shadow-sm);
  color: var(--ink-soft);
}
.top-share:hover { background: var(--peach-pale); color: var(--peach-deep); }
.top-share svg { width: 17px; height: 17px; }

/* ---------- shared bits ---------- */
.card {
  background: rgba(255, 253, 248, 0.92);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--peach-deep);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 16px; height: 1.5px; border-radius: 99px; background: currentColor; }
.eyebrow.no-rule::before { display: none; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 10px 0 24px; }
.page-title { margin: 4px 0 0; font-size: clamp(28px, 3vw, 38px); line-height: 1.18; letter-spacing: -0.045em; font-weight: 850; }
.page-title .soft { color: var(--peach-deep); }
.page-sub { margin: 9px 0 0; max-width: 620px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.page-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.page-back {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; background: none; color: var(--muted);
  padding: 4px 0; font-size: 12px; font-weight: 700;
}
.page-back:hover { color: var(--peach-deep); }
.page-back svg { width: 15px; height: 15px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 43px; padding: 0 20px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 13px; font-weight: 800;
  white-space: nowrap;
  transition: transform 0.16s, box-shadow 0.16s, background 0.16s, border-color 0.16s;
}
.btn svg { width: 17px; height: 17px; }
.btn:active { transform: translateY(2px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #f7a0a0, #e46e73);
  box-shadow: 0 4px 0 #b94d55, 0 9px 20px rgba(228, 110, 115, 0.22);
  border-color: rgba(255, 255, 255, 0.24);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 5px 0 #b94d55, 0 13px 24px rgba(228, 110, 115, 0.26); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 #b94d55; }
.btn-secondary { background: var(--paper); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { background: #fff9f1; border-color: var(--line-strong); transform: translateY(-1px); }
.btn-soft { background: var(--peach-soft); color: #bd5148; border-color: #ffcec2; }
.btn-soft:hover { background: #ffd8cd; }
.btn-dark { background: var(--chocolate); color: #fff8ee; box-shadow: 0 4px 0 #33221c; }
.btn-dark:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { background: rgba(255, 235, 223, 0.6); }
.btn-sm { height: 35px; padding: 0 14px; font-size: 12px; gap: 6px; }
.btn-sm svg { width: 14px; height: 14px; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 50%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.icon-btn {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  background: var(--paper);
  color: var(--muted);
  transition: 0.16s;
}
.icon-btn:hover { color: var(--peach-deep); border-color: #f0c4b4; background: var(--peach-pale); }
.icon-btn.danger:hover { color: #c44f49; background: #ffebe8; border-color: #f4c8c3; }
.icon-btn svg { width: 15px; height: 15px; }
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  height: 25px; padding: 0 9px;
  border-radius: 99px;
  font-size: 10.5px; font-weight: 750;
  background: var(--paper);
  border: 1.5px solid var(--line);
  color: var(--ink-soft);
  white-space: nowrap;
}
.pill.peach { background: var(--peach-pale); border-color: #f7d1c4; color: #bf5f54; }
.pill.mint { background: var(--mint-soft); border-color: #c8e7de; color: #4c8b7b; }
.pill.yellow { background: var(--yellow-soft); border-color: #f3dfaf; color: #9e7529; }
.pill.lav { background: var(--lavender-soft); border-color: #ddd0ef; color: #77619b; }
.muted { color: var(--muted); }
.dashed-divider { height: 1px; border-top: 1.5px dashed var(--line); margin: 18px 0; }
.pill svg { width: 12px; height: 12px; flex: 0 0 12px; }
.btn-danger { background: #d9685e; color: #fff; box-shadow: 0 4px 0 #a94d45; border-color: rgba(255,255,255,.2); }
.btn-danger:hover { background: #cd5c53; transform: translateY(-1px); }
.btn-danger:active { transform: translateY(3px); box-shadow: 0 1px 0 #a94d45; }
.confirm-text { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.85; }
.share-lead { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.share-tip { display: flex; gap: 8px; margin-top: 14px; padding: 10px 12px; border-radius: 11px; background: #fff6e7; border: 1.5px dashed #ecd3b3; color: #8c6b51; font-size: 9.5px; line-height: 1.7; }
.share-tip svg { width: 14px; height: 14px; flex: 0 0 14px; margin-top: 1px; color: var(--caramel); }
.tip-author svg { width: 12px; height: 12px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 13px; }
.section-head h2 { margin: 0; font-size: 19px; letter-spacing: -0.03em; font-weight: 850; }
.section-head p { margin: 5px 0 0; color: var(--muted); font-size: 11.5px; }
.text-link { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--peach-deep); font-size: 11.5px; font-weight: 800; padding: 3px 0; }
.text-link:hover { color: #c85349; }
.text-link svg { width: 13px; height: 13px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  min-height: 388px;
  padding: 43px 12px 30px 42px;
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(430px 360px at 88% 44%, #ffe8d0 0%, rgba(255, 232, 208, 0) 70%),
    radial-gradient(320px 240px at 42% 110%, #ffe4dc 0%, rgba(255, 228, 220, 0) 70%),
    linear-gradient(120deg, #fffdf8 10%, #fff9ef 58%, #fff4e5 100%);
  border: 1.5px solid #f0d9c2;
  box-shadow: 0 22px 60px rgba(134, 84, 54, 0.09);
}
.hero::before {
  content: "";
  position: absolute; inset: 14px;
  border: 1px dashed rgba(205, 151, 108, 0.24);
  border-radius: 25px;
  pointer-events: none;
}
.hero::after {
  content: "🐾";
  position: absolute; right: 36%; top: 24px;
  font-size: 22px;
  opacity: 0.3;
  transform: rotate(-18deg);
}
.hero-copy { position: relative; z-index: 2; align-self: center; padding-bottom: 4px; }
.hero h1 {
  margin: 17px 0 0;
  font-size: clamp(34px, 3.55vw, 51px);
  line-height: 1.23;
  letter-spacing: -0.055em;
  font-weight: 880;
}
.hero h1 .name { color: var(--peach-deep); position: relative; }
.hero h1 .name::after {
  content: ""; position: absolute; left: 2%; right: 0; bottom: -2px; height: 8px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12'%3E%3Cpath d='M2 8C24 2 41 11 61 6C82 1 99 9 118 4' fill='none' stroke='%23FFB4A4' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.hero h1 em {
  font-style: normal;
  color: var(--caramel);
  position: relative;
  white-space: nowrap;
}
.hero h1 em::after {
  content: "";
  position: absolute; inset: 12% -4% 0;
  background: #ffe9b9;
  z-index: -1;
  border-radius: 8px 14px 9px 12px;
  transform: rotate(-1.2deg);
}
.hero-desc { margin: 17px 0 0; max-width: 455px; color: #8b7162; font-size: 13.5px; line-height: 1.85; }
.hero-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 23px; }
.hero-meta {
  display: flex; align-items: center; flex-wrap: wrap; gap: 7px 16px;
  margin-top: 19px;
  color: var(--muted);
  font-size: 11px;
}
.hero-meta b { color: var(--ink); font-size: 13px; }
.hero-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line-strong); }
.hero-art { position: relative; z-index: 1; display: grid; place-items: center; min-height: 300px; }
.hero-art > img {
  width: min(100%, 380px);
  filter: drop-shadow(0 22px 28px rgba(152, 92, 52, 0.14));
  animation: float 5.8s ease-in-out infinite;
  transform-origin: 50% 90%;
}
.art-note {
  position: absolute; left: 0; bottom: 18px;
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px 9px 9px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.95);
  box-shadow: 0 8px 20px rgba(121, 75, 45, 0.1);
  transform: rotate(-3deg);
  font-size: 10.5px; font-weight: 700; color: var(--ink-soft);
}
.art-note .mini-heart {
  width: 26px; height: 26px; border-radius: 9px;
  display: grid; place-items: center;
  background: var(--peach-soft); color: var(--peach-deep);
}
.art-note .mini-heart svg { width: 14px; height: 14px; }
.art-note small { display: block; font-weight: 500; color: var(--muted); font-size: 9px; margin-top: 1px; }
.art-bubble {
  position: absolute; right: 2px; top: 34px;
  padding: 7px 11px;
  border-radius: 13px 13px 13px 4px;
  background: #fffdf8;
  border: 1.5px solid #edcdb8;
  box-shadow: 0 6px 16px rgba(121, 75, 45, 0.08);
  color: var(--peach-deep);
  font-size: 10.5px; font-weight: 800;
  transform: rotate(3deg);
}
.hero-spark { position: absolute; color: var(--yellow); }
.hero-spark.s1 { right: 43%; top: 27px; width: 17px; }
.hero-spark.s2 { left: 47%; bottom: 34px; width: 12px; opacity: 0.7; }

/* ---------- stats ---------- */
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-top: 16px; }
.stat-card {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 16px;
  border: 1.5px solid var(--line);
  border-radius: 19px;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: var(--shadow-sm);
  min-width: 0;
}
.stat-icon {
  width: 40px; height: 40px; flex: 0 0 40px;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--peach-pale);
  color: var(--peach-deep);
}
.stat-icon.mint { background: var(--mint-soft); color: var(--mint-deep); }
.stat-icon.yellow { background: var(--yellow-soft); color: #b6872e; }
.stat-icon.lav { background: var(--lavender-soft); color: #7d68a3; }
.stat-icon svg { width: 19px; height: 19px; }
.stat-copy { min-width: 0; }
.stat-num { font-family: Georgia, "Times New Roman", serif; font-size: 23px; line-height: 1; font-weight: 700; letter-spacing: -0.03em; white-space: nowrap; }
.stat-num small { font-family: var(--sans); font-size: 10px; color: var(--muted); font-weight: 700; margin-left: 3px; }
.stat-label { font-size: 10.5px; color: var(--muted); margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- home layout ---------- */
.home-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.82fr); gap: 22px; margin-top: 30px; align-items: start; }
.side-stack { display: grid; gap: 17px; }
.recent-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; align-items: start; }

/* ---------- moment card ---------- */
.moment-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1.5px solid var(--line);
  border-radius: 23px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.moment-card:hover { transform: translateY(-3px); box-shadow: 0 18px 38px rgba(129, 82, 51, 0.12); border-color: #e8c9ae; }
.moment-card.is-clickable { cursor: pointer; }
.moment-photo { position: relative; overflow: hidden; background: #f7e8d7; }
.moment-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.moment-card:hover .moment-photo img { transform: scale(1.03); }
.moment-photo .photo-count {
  position: absolute; right: 9px; bottom: 9px;
  padding: 3px 8px; border-radius: 99px;
  background: rgba(45, 30, 24, 0.62); color: #fff;
  font-size: 9.5px; font-weight: 700;
  backdrop-filter: blur(4px);
}
.photo-grid { display: grid; gap: 2px; height: 100%; background: #f0dcc8; }
.photo-grid[data-count="1"] { grid-template-columns: 1fr; aspect-ratio: 4 / 3; }
.photo-grid[data-count="2"] { grid-template-columns: 1fr 1fr; aspect-ratio: 2 / 1.08; }
.photo-grid[data-count="3"] { grid-template-columns: 1.25fr 0.75fr; grid-template-rows: 1fr 1fr; aspect-ratio: 4 / 3; }
.photo-grid[data-count="3"] img:first-child { grid-row: 1 / 3; }
.photo-grid[data-count="4"] { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 1 / 1; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.moment-body { display: flex; flex-direction: column; flex: 1; padding: 17px 18px 15px; }
.moment-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.moment-top-left { display: flex; align-items: center; gap: 7px; min-width: 0; }
.date-stamp { display: flex; align-items: baseline; gap: 4px; }
.date-stamp b { font-family: Georgia, serif; font-size: 20px; line-height: 1; color: var(--ink); }
.date-stamp span { font-size: 9px; color: var(--muted); font-weight: 700; letter-spacing: 0.03em; }
.author-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px 3px 4px; border-radius: 99px; background: #fff8ef; border: 1px solid var(--line); font-size: 10px; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.mood-pill { display: inline-flex; align-items: center; gap: 3px; padding: 4px 8px; border-radius: 99px; font-size: 9.5px; font-weight: 750; white-space: nowrap; }
.mood-甜甜 { background: #ffe9ec; color: #c96172; }
.mood-开心 { background: #fff2cf; color: #9c762c; }
.mood-平静 { background: #e6f3ee; color: #558e7d; }
.mood-想哭 { background: #eae5f8; color: #77639b; }
.mood-生气 { background: #ffe6dc; color: #c06149; }
.mood-想念 { background: #ffeadd; color: #b97245; }
.moment-title { margin: 0 0 7px; font-size: 17px; line-height: 1.45; letter-spacing: -0.025em; font-weight: 850; }
.moment-text {
  margin: 0;
  color: #745d50;
  font-size: 12.5px;
  line-height: 1.82;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-wrap;
  word-break: break-word;
}
.moment-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 11px; }
.tag { padding: 3px 8px; border-radius: 7px; background: #fff7ea; border: 1px dashed #ebd2b8; color: #9c7b62; font-size: 9.5px; font-weight: 650; }
.moment-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1.3px dashed #f0dfcd; color: var(--muted); font-size: 10px; }
.moment-loc { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.moment-loc svg { width: 12px; height: 12px; }
.moment-loc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.moment-actions { display: flex; align-items: center; gap: 3px; }
.mini-action { width: 26px; height: 26px; border: 0; border-radius: 8px; background: transparent; color: #b39a88; display: grid; place-items: center; }
.mini-action:hover { background: var(--peach-pale); color: var(--peach-deep); }
.mini-action.danger:hover { background: #ffebe8; color: #c44f49; }
.mini-action svg { width: 13px; height: 13px; }
.photo-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }

/* empty state */
.empty-state {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 34px 24px 30px;
  border: 1.5px dashed #e6cbb2;
  border-radius: 23px;
  background: rgba(255, 250, 241, 0.72);
}
.empty-state img { width: min(230px, 62%); margin-bottom: 8px; }
.empty-state h3 { margin: 0; font-size: 18px; letter-spacing: -0.02em; }
.empty-state p { margin: 8px 0 16px; color: var(--muted); font-size: 12px; line-height: 1.7; max-width: 330px; }
.empty-state.compact { padding: 25px 18px; }
.empty-state.compact img { width: 140px; }
.empty-state.compact h3 { font-size: 15px; }

/* calendar */
.calendar-card { padding: 18px 18px 16px; }
.calendar-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 13px; }
.calendar-title { display: flex; align-items: baseline; gap: 6px; }
.calendar-title b { font-size: 14px; font-weight: 850; }
.calendar-title span { color: var(--muted); font-size: 10px; }
.cal-nav { display: flex; gap: 4px; }
.cal-nav button { width: 26px; height: 26px; border: 1px solid var(--line); border-radius: 8px; background: #fffaf3; color: var(--muted); display: grid; place-items: center; }
.cal-nav button:hover { color: var(--peach-deep); border-color: #efc4b3; }
.cal-nav svg { width: 12px; height: 12px; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-dow { text-align: center; font-size: 9px; color: #b39c8c; font-weight: 800; padding: 4px 0 6px; }
.cal-day {
  position: relative;
  height: 30px;
  display: grid; place-items: center;
  border: 0;
  padding: 0;
  border-radius: 9px;
  background: transparent;
  font-family: inherit;
  font-size: 10.5px;
  color: var(--ink-soft);
  transition: background 0.15s, color 0.15s;
}
button.cal-day:hover { background: #fff2e6; color: var(--peach-deep); }
.cal-day.dim { color: #d4c3b5; }
.cal-day.today { background: var(--chocolate); color: #fff8ee; font-weight: 800; box-shadow: 0 3px 0 #2d1d17; }
.cal-day.has-moment::after {
  content: "";
  position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--peach);
}
.cal-day.today.has-moment::after { background: var(--yellow); }
.cal-day.moment-a::after { background: var(--peach); }
.cal-day.moment-b::after { background: var(--mint-deep); }
.cal-day.moment-both::after { background: linear-gradient(90deg, var(--peach) 50%, var(--mint-deep) 50%); }
.calendar-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 10px; color: var(--muted); font-size: 9.5px; }
.legend { display: flex; align-items: center; gap: 9px; }
.legend i { width: 5px; height: 5px; border-radius: 50%; display: inline-block; margin-right: 3px; }

.tip-card {
  position: relative;
  overflow: hidden;
  padding: 18px 18px 17px;
  border-radius: 22px;
  border: 1.5px solid #f0dcb5;
  background:
    radial-gradient(180px 120px at 100% 0%, #fff2c9 0%, transparent 70%),
    linear-gradient(130deg, #fff7e2, #fff1dc);
}
.tip-card::before {
  content: "“";
  position: absolute; right: 14px; top: 3px;
  font-family: Georgia, serif;
  font-size: 62px; line-height: 1;
  color: #e9be83; opacity: 0.35;
}
.tip-label { display: flex; align-items: center; gap: 6px; color: #a57836; font-size: 9.5px; font-weight: 850; letter-spacing: 0.09em; }
.tip-label svg { width: 13px; height: 13px; }
.tip-text { position: relative; z-index: 1; margin: 9px 0 0; font-size: 14.5px; line-height: 1.72; font-weight: 750; letter-spacing: -0.015em; }
.tip-author { margin-top: 10px; display: flex; align-items: center; gap: 5px; color: #a78a72; font-size: 9.5px; }
.tip-paw { position: absolute; right: 12px; bottom: 10px; font-size: 22px; opacity: 0.14; transform: rotate(-16deg); }

.pact-mini { padding: 18px; }
.mood-weather { padding: 17px 18px 15px; }
.mw-bars { display: grid; gap: 7px; margin-top: 13px; }
.mw-row { display: grid; grid-template-columns: 62px minmax(0, 1fr) 15px; align-items: center; gap: 7px; }
.mw-name { display: flex; align-items: center; gap: 3px; color: var(--ink-soft); font-size: 9.5px; font-weight: 650; white-space: nowrap; }
.mw-track { height: 7px; border-radius: 99px; background: #f4e5d2; overflow: hidden; }
.mw-fill { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #ffc39f, var(--peach)); transition: width .5s ease; }
.mw-count { text-align: right; color: var(--muted); font-family: Georgia, serif; font-size: 11px; font-weight: 700; }
.mw-empty { margin-top: 11px; padding: 9px 10px; border-radius: 9px; background: #fff8ee; color: #b09a87; font-size: 9px; line-height: 1.65; }
.progress-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.progress-track { flex: 1; height: 7px; border-radius: 99px; background: #f3e2cf; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 99px; background: linear-gradient(90deg, #ffb08d, var(--peach)); transition: width 0.5s ease; }
.progress-num { font-family: Georgia, serif; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.mini-pact-list { display: grid; gap: 7px; margin-top: 13px; }
.mini-pact { display: flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: 10.5px; min-width: 0; }
.mini-pact .check-dot { width: 14px; height: 14px; flex: 0 0 14px; border-radius: 5px; border: 1.5px solid #dfc4a8; background: #fff; display: grid; place-items: center; color: #fff; }
.mini-pact.done .check-dot { background: var(--mint); border-color: var(--mint); }
.mini-pact.done .check-dot svg { width: 9px; height: 9px; }
.mini-pact.done span { text-decoration: line-through; color: #b7a18f; }
.mini-pact span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* judge CTA */
.judge-cta {
  position: relative;
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  overflow: hidden;
  margin-top: 24px;
  padding: 14px 30px 14px 14px;
  border-radius: 28px;
  border: 1.5px solid #cfe7dd;
  background:
    radial-gradient(270px 190px at 2% 100%, #dff2ea 0%, transparent 72%),
    radial-gradient(300px 180px at 100% 0%, #fff0cf 0%, transparent 66%),
    linear-gradient(110deg, #f8fdfa, #fffaf0);
  box-shadow: 0 12px 34px rgba(92, 137, 118, 0.08);
}
.judge-cta img { width: 160px; justify-self: center; filter: drop-shadow(0 12px 16px rgba(100, 70, 48, 0.12)); }
.judge-cta-copy h2 { margin: 4px 0 0; font-size: 21px; letter-spacing: -0.03em; font-weight: 850; }
.judge-cta-copy p { margin: 6px 0 0; color: var(--muted); font-size: 11.5px; line-height: 1.7; }
.judge-cta .btn { margin-right: 4px; }
.judge-cta .eyebrow { color: var(--mint-deep); }

/* ---------- page / toolbar ---------- */
.toolbar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  padding: 12px;
  border: 1.5px solid var(--line);
  border-radius: 19px;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.search-box {
  flex: 1 1 240px; min-width: 190px;
  display: flex; align-items: center; gap: 8px;
  height: 39px; padding: 0 12px;
  border-radius: 12px;
  background: #fffaf3;
  border: 1.5px solid #efdbc4;
  color: var(--muted);
}
.toolbar .search-box { max-width: 380px; }
.search-box svg { width: 15px; height: 15px; flex: 0 0 15px; }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 12.5px; color: var(--ink); }
.search-box input::placeholder { color: #b7a292; }
.filter-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.filter-chip {
  height: 33px; padding: 0 12px;
  border-radius: 10px; border: 1.5px solid transparent;
  background: transparent; color: var(--muted);
  font-size: 11px; font-weight: 750;
  transition: 0.16s;
}
.filter-chip:hover { background: #fff7ed; color: var(--ink); }
.filter-chip.active { background: var(--peach-soft); border-color: #f5cabf; color: #b9574e; }
.select-wrap { position: relative; }
.select-wrap svg { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 12px; height: 12px; color: var(--muted); pointer-events: none; }
.select {
  height: 39px; padding: 0 29px 0 11px;
  border-radius: 11px; border: 1.5px solid #efdbc4;
  background: #fffaf3; color: var(--ink-soft);
  font-size: 11.5px; font-weight: 650;
  appearance: none;
  max-width: 150px;
}
.month-groups { display: grid; gap: 11px; }
.month-heading { display: flex; align-items: center; gap: 10px; margin: 19px 0 13px; }
.month-heading h2 { margin: 0; font-family: Georgia, serif; font-size: 23px; letter-spacing: -0.03em; color: var(--ink); }
.month-heading span { color: var(--muted); font-size: 10.5px; font-weight: 650; }
.month-heading::after { content: ""; flex: 1; height: 1px; border-top: 1.3px dashed var(--line); }
.moments-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; }

/* ---------- album ---------- */
.album-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.album-item {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 18px;
  border: 1.5px solid var(--line);
  background: #f4e3d1;
  cursor: zoom-in;
  box-shadow: var(--shadow-sm);
}
.album-item:nth-child(7n + 1) { border-radius: 26px 18px 18px 18px; }
.album-item:nth-child(7n + 4) { border-radius: 18px 18px 26px 18px; }
.album-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.album-item:hover img { transform: scale(1.045); }
.album-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 14px;
  background: linear-gradient(180deg, transparent 45%, rgba(49, 32, 25, 0.72));
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s;
}
.album-item:hover .album-overlay { opacity: 1; }
.album-overlay b { font-size: 12px; font-weight: 800; }
.album-overlay span { font-size: 9.5px; color: rgba(255, 255, 255, 0.78); margin-top: 3px; }

/* ---------- judge ---------- */
.judge-hero {
  position: relative;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  overflow: hidden;
  padding: 10px 34px 10px 8px;
  border-radius: 32px;
  border: 1.5px solid #cfe6dd;
  background:
    radial-gradient(420px 300px at 4% 40%, #dcf1e9 0%, transparent 68%),
    radial-gradient(380px 240px at 100% 0%, #fff1d3 0%, transparent 70%),
    linear-gradient(115deg, #fbfefa, #fffaf1);
  box-shadow: 0 18px 48px rgba(84, 126, 108, 0.09);
}
.judge-hero img { width: 100%; max-width: 315px; justify-self: center; filter: drop-shadow(0 18px 22px rgba(100, 70, 48, 0.12)); }
.judge-hero h1 { margin: 12px 0 0; font-size: clamp(31px, 3.3vw, 44px); line-height: 1.25; letter-spacing: -0.05em; font-weight: 880; }
.judge-hero h1 em { font-style: normal; color: var(--mint-deep); }
.judge-hero p { max-width: 540px; margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.judge-hero .hero-meta { margin-top: 13px; }
.judge-layout { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(265px, 0.72fr); gap: 20px; margin-top: 22px; align-items: start; }
.form-card { padding: 25px 26px 20px; }
.form-section { margin-bottom: 23px; }
.form-section:last-child { margin-bottom: 8px; }
.field-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; font-size: 12px; font-weight: 800; color: var(--ink); }
.field-label .optional { color: #b6a08f; font-size: 9.5px; font-weight: 600; }
.field-hint { margin: 7px 0 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.input, .textarea, .select-input {
  width: 100%;
  border: 1.5px solid #ead6c0;
  border-radius: 13px;
  background: #fffaf3;
  padding: 11px 13px;
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.65;
  transition: border-color 0.16s, box-shadow 0.16s, background 0.16s;
}
.input::placeholder, .textarea::placeholder { color: #bda998; }
.input:focus, .textarea:focus, .select-input:focus {
  outline: 0;
  border-color: #f2ae9c;
  background: #fffdf8;
  box-shadow: 0 0 0 4px rgba(255, 190, 175, 0.18);
}
.textarea { min-height: 120px; resize: vertical; }
.textarea.tall { min-height: 142px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.topic-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.topic-option { position: relative; }
.topic-option input { position: absolute; opacity: 0; pointer-events: none; }
.topic-option span {
  display: inline-flex; align-items: center; gap: 5px;
  height: 34px; padding: 0 11px;
  border-radius: 10px;
  border: 1.5px solid #ead6c0;
  background: #fffaf3;
  color: var(--ink-soft);
  font-size: 11px; font-weight: 700;
  cursor: pointer;
  transition: 0.16s;
}
.topic-option span:hover { border-color: #f0bfae; background: var(--peach-pale); }
.topic-option input:checked + span { border-color: #f3b2a2; background: var(--peach-soft); color: #b45249; box-shadow: 0 2px 0 #efc0b2; }
.topic-option input:focus-visible + span { outline: 3px solid rgba(255, 138, 122, 0.45); outline-offset: 2px; }

.who-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.who-card { padding: 12px 13px 13px; border-radius: 16px; border: 1.5px solid #f0d9c6; background: #fffaf4; }
.who-card.b { border-color: #d7eae4; background: #f8fdfb; }
.who-head { display: flex; align-items: center; gap: 7px; margin-bottom: 9px; }
.who-head .avatar { width: 29px; height: 29px; flex-basis: 29px; border-radius: 9px; font-size: 16px; }
.who-head b { font-size: 11.5px; }
.who-head small { color: var(--muted); font-size: 9.5px; margin-left: auto; }
.who-card .textarea { min-height: 130px; border: 0; background: transparent; padding: 0; font-size: 12.5px; box-shadow: none; }
.who-card .textarea:focus { box-shadow: none; }
.who-card.focus-within { border-color: #f2b4a4; box-shadow: 0 0 0 3px rgba(255, 186, 171, 0.15); }
.who-card.b.focus-within { border-color: #a8d5c8; box-shadow: 0 0 0 3px rgba(143, 205, 189, 0.16); }
.swap-btn {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1.5px solid var(--line); border-radius: 99px;
  background: var(--paper); color: var(--muted);
  height: 28px; padding: 0 10px; font-size: 9.5px; font-weight: 700;
}
.swap-btn:hover { color: var(--peach-deep); border-color: #f1c5b6; }
.swap-btn svg { width: 12px; height: 12px; }

.temp-row { display: flex; align-items: center; gap: 13px; }
.temp-emoji { width: 42px; height: 42px; display: grid; place-items: center; font-size: 25px; border-radius: 13px; background: #fff3e1; border: 1.5px solid #f0d8b8; }
.temp-slider {
  --pct: 55%;
  flex: 1;
  height: 8px;
  border: 0;
  border-radius: 99px;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(90deg, #ffb29e 0%, #f57f71 var(--pct), #efdcc7 var(--pct), #efdcc7 100%);
  outline: none;
  cursor: pointer;
}
.temp-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 21px; height: 21px;
  border-radius: 50%;
  background: #fffdf8;
  border: 4px solid var(--peach);
  box-shadow: 0 3px 8px rgba(200, 91, 77, 0.25);
  cursor: grab;
}
.temp-slider::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.06); }
.temp-slider::-moz-range-thumb { width: 15px; height: 15px; border-radius: 50%; background: #fffdf8; border: 4px solid var(--peach); }
.temp-value { min-width: 47px; text-align: right; font-family: Georgia, serif; font-size: 23px; font-weight: 700; }
.temp-value small { font-family: var(--sans); color: var(--muted); font-size: 9px; margin-left: 2px; }
.temp-scale { display: flex; justify-content: space-between; margin: 3px 0 0 55px; padding-right: 55px; color: #b8a291; font-size: 8.5px; }
.tone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.tone-option input { position: absolute; opacity: 0; }
.tone-option span {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 9px 6px 8px;
  border: 1.5px solid #ead6c0;
  border-radius: 11px;
  background: #fffaf3;
  font-size: 10.5px; font-weight: 750;
  color: var(--ink-soft);
  cursor: pointer;
  transition: 0.16s;
}
.tone-option span small { font-size: 8.5px; color: var(--muted); font-weight: 500; }
.tone-option input:checked + span { background: var(--mint-soft); border-color: #a9d5c9; color: #417b6b; box-shadow: 0 2px 0 #c6e5dc; }
.judge-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 4px; }
.judge-submit-row .privacy { color: var(--muted); font-size: 9.5px; line-height: 1.55; max-width: 280px; }
.judge-submit-row .privacy b { color: var(--ink-soft); }
.judge-aside { display: grid; gap: 14px; position: sticky; top: 86px; }
.principle-card { padding: 19px; }
.principle-card h3 { margin: 0 0 13px; font-size: 13px; font-weight: 850; }
.principle { display: flex; gap: 9px; padding: 8px 0; border-top: 1px dashed #eedcca; }
.principle:first-of-type { border-top: 0; padding-top: 0; }
.principle-num { width: 21px; height: 21px; flex: 0 0 21px; display: grid; place-items: center; border-radius: 7px; background: var(--mint-soft); color: var(--mint-deep); font-family: Georgia, serif; font-size: 10px; font-weight: 700; }
.principle b { display: block; font-size: 10.5px; margin-bottom: 2px; }
.principle p { margin: 0; color: var(--muted); font-size: 9.5px; line-height: 1.6; }
.judge-quote-card { position: relative; padding: 19px; overflow: hidden; background: linear-gradient(145deg, #fff4df, #fff9ee); border-color: #f0dcb8; }
.judge-quote-card img { width: 110px; margin: -7px auto 2px; }
.judge-quote-card p { margin: 3px 0 0; text-align: center; color: #8e6b4e; font-size: 11.5px; line-height: 1.75; font-weight: 650; }
.judge-quote-card span { display: block; margin-top: 7px; text-align: center; font-size: 8.5px; color: #b3957d; }

/* ---------- verdict ---------- */
.verdict-wrap { max-width: 980px; margin: 0 auto; }
.ticket {
  position: relative;
  padding: 29px 34px 26px;
  border: 1.5px solid #e7cdb3;
  border-radius: 23px;
  background:
    radial-gradient(340px 190px at 100% 0%, #fff1d6 0%, transparent 68%),
    linear-gradient(135deg, #fffdf8, #fffaf0);
  box-shadow: 0 18px 50px rgba(129, 82, 51, 0.11);
}
.ticket::before, .ticket::after {
  content: ""; position: absolute; top: 50%; width: 19px; height: 38px;
  background: var(--cream);
  border: 1.5px solid #e7cdb3;
}
.ticket::before { left: -2px; transform: translateY(-50%); border-left: 0; border-radius: 0 99px 99px 0; }
.ticket::after { right: -2px; transform: translateY(-50%); border-right: 0; border-radius: 99px 0 0 99px; }
.ticket-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.ticket-kicker { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 9.5px; font-weight: 700; letter-spacing: 0.08em; }
.ticket-kicker .live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint-deep); }
.ticket h1 { margin: 12px 0 0; font-size: clamp(26px, 3.4vw, 37px); line-height: 1.3; letter-spacing: -0.045em; font-weight: 880; max-width: 690px; }
.ticket-sub { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.stamp {
  flex: 0 0 auto;
  width: 72px; height: 72px;
  display: grid; place-items: center;
  border: 2px solid #e98c7d;
  border-radius: 50%;
  color: #d9695e;
  font-size: 10px; font-weight: 850; letter-spacing: 0.08em;
  transform: rotate(8deg);
  opacity: 0.88;
  background: rgba(255, 247, 239, 0.65);
  box-shadow: inset 0 0 0 4px rgba(233, 140, 125, 0.12);
  text-align: center;
  line-height: 1.5;
}
.ticket-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
.ticket-meta .pill { height: 28px; padding: 0 10px; font-size: 10px; }
.meter-box { display: grid; gap: 10px; margin-top: 21px; padding-top: 19px; border-top: 1.4px dashed #ead4bd; }
.meter-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) 43px; align-items: center; gap: 9px; }
.meter-name { display: flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 750; min-width: 0; }
.meter-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meter-track { height: 10px; border-radius: 99px; background: #f3e2cf; overflow: hidden; }
.meter-fill { height: 100%; border-radius: 99px; transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.meter-fill.a { background: linear-gradient(90deg, #ffc0c0, #f58f8f); }
.meter-fill.b { background: linear-gradient(90deg, #b6e2d7, #7cc3b2); }
.meter-val { text-align: right; font-family: Georgia, serif; font-size: 15px; font-weight: 700; }
.meter-note { margin: 3px 0 0; color: #b19a87; font-size: 9px; line-height: 1.6; }
.verdict-section { margin-top: 17px; padding: 23px 25px; }
.verdict-section > h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 15px; letter-spacing: -0.02em; font-weight: 850; }
.verdict-section > h2 .num {
  width: 23px; height: 23px; flex: 0 0 23px;
  display: grid; place-items: center; border-radius: 7px;
  background: var(--peach-soft); color: #b9584f; font-family: Georgia, serif; font-size: 10px;
}
.verdict-section > h2 .spark { color: var(--caramel); }
.callout {
  padding: 14px 16px;
  border-radius: 13px;
  background: #fff6e7;
  border: 1.5px dashed #ecd0ae;
  color: #7d6048;
  font-size: 11.5px;
  line-height: 1.75;
}
.callout b { color: var(--ink); }
.callout.mint { background: #f1faf6; border-color: #cfe8df; color: #537b6e; }
.view-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.view-panel { padding: 16px; border-radius: 16px; border: 1.5px solid #f1d6c3; background: #fffaf4; }
.view-panel.b { border-color: #d3e8e1; background: #f9fdfb; }
.view-panel-head { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.view-panel-head .avatar { width: 28px; height: 28px; flex-basis: 28px; border-radius: 9px; font-size: 15px; }
.view-panel-head b { font-size: 11.5px; }
.view-panel .surface { margin: 0 0 9px; font-size: 12px; line-height: 1.75; color: var(--ink); }
.view-panel .need { display: flex; gap: 5px; align-items: flex-start; padding: 8px 10px; border-radius: 9px; background: rgba(255, 255, 255, 0.7); font-size: 9.5px; line-height: 1.6; color: #8a6a54; }
.view-panel .need b { color: var(--peach-deep); white-space: nowrap; }
.view-panel .read { margin: 9px 0 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.flag-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.flag-column h3 { margin: 0 0 8px; font-size: 11.5px; display: flex; align-items: center; gap: 6px; }
.flag-item { display: flex; gap: 7px; padding: 7px 0; border-top: 1px dashed #efdfcd; }
.flag-dot { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; margin-top: 5px; background: #e2a18f; }
.flag-dot.good { background: var(--mint-deep); }
.flag-item b { display: block; font-size: 10px; margin-bottom: 1px; }
.flag-item span { display: block; color: #a68c79; font-size: 9px; line-height: 1.55; }
.claims-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.claim-card { padding: 15px; border-radius: 14px; background: #fffaf4; border: 1.5px solid #f0d9c5; }
.claim-card.b { background: #f9fdfb; border-color: #d4e8e2; }
.claim-card h4 { display: flex; align-items: center; gap: 5px; margin: 0 0 7px; font-size: 10.5px; }
.claim-card ol { margin: 0; padding-left: 16px; color: #7b6252; font-size: 9.5px; line-height: 1.7; display: grid; gap: 4px; }
.script-grid { display: grid; gap: 11px; }
.script-card { position: relative; padding: 15px 16px 14px; border-radius: 15px; border: 1.5px dashed #e9cba9; background: #fff9ef; }
.script-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.script-head b { display: flex; align-items: center; gap: 5px; font-size: 10.5px; color: #9b704c; }
.script-head b svg { width: 13px; height: 13px; flex: 0 0 13px; }
.script-text { margin: 0; font-size: 11.5px; line-height: 1.85; color: #6f5544; }
.copy-btn { border: 1px solid #e7ccb1; border-radius: 7px; background: #fffdf8; color: #9b7b62; font-size: 8.5px; padding: 3px 7px; }
.copy-btn:hover { color: var(--peach-deep); border-color: #f0bfa9; }
.timeline { display: grid; gap: 0; }
.timeline-item { position: relative; display: grid; grid-template-columns: 66px 16px minmax(0, 1fr); gap: 8px; padding-bottom: 17px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-time { padding-top: 2px; color: #a8866c; font-size: 9px; font-weight: 750; text-align: right; }
.timeline-dot { position: relative; display: flex; justify-content: center; }
.timeline-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--peach); border: 2px solid #fff8ee; box-shadow: 0 0 0 1.5px #f0c1ae; z-index: 1; }
.timeline-dot::after { content: ""; position: absolute; top: 12px; bottom: -5px; width: 1.5px; background: #efd8c4; }
.timeline-item:last-child .timeline-dot::after { display: none; }
.timeline-body b { display: block; font-size: 11px; margin-bottom: 3px; }
.timeline-body p { margin: 0; color: var(--muted); font-size: 9.5px; line-height: 1.7; }
.agreement-list { display: grid; gap: 8px; }
.agreement-item { display: flex; align-items: flex-start; gap: 9px; padding: 9px 11px; border-radius: 10px; background: #f9fdfb; border: 1.5px solid #d9ebe5; font-size: 10.5px; line-height: 1.6; color: #50796c; }
.agreement-item span { width: 18px; height: 18px; flex: 0 0 18px; display: grid; place-items: center; border-radius: 6px; background: var(--mint); color: #fff; font-size: 9px; font-weight: 800; }
.strength-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.strength-chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 9px; border-radius: 99px; background: #fff3d6; border: 1.5px solid #f0dfb3; color: #9b7529; font-size: 9.5px; font-weight: 700; }
.strength-chip svg { width: 12px; height: 12px; flex: 0 0 12px; }
.judge-signoff { margin: 18px 0 0; text-align: center; color: #a1846c; font-size: 10.5px; line-height: 1.7; }
.judge-signoff .paw { display: block; font-size: 19px; margin-bottom: 2px; opacity: 0.6; }
.verdict-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.history-list { display: grid; gap: 9px; margin-top: 16px; }
.history-card {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: 0.16s;
}
.history-card:hover { border-color: #e9c7ac; transform: translateY(-1px); }
.history-icon { width: 36px; height: 36px; flex: 0 0 36px; display: grid; place-items: center; border-radius: 11px; background: var(--mint-soft); font-size: 17px; }
.history-copy { flex: 1; min-width: 0; }
.history-copy b { display: block; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-copy span { display: block; color: var(--muted); font-size: 9px; margin-top: 3px; }
.history-pct { font-family: Georgia, serif; font-size: 16px; font-weight: 700; color: var(--mint-deep); }
.history-card .chev { color: var(--muted); width: 14px; height: 14px; }

/* ---------- pacts ---------- */
.pact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 23px 26px;
  border-radius: 26px;
  border: 1.5px solid #ecd7b7;
  background:
    radial-gradient(300px 180px at 100% 0%, #fff0c9 0%, transparent 70%),
    linear-gradient(120deg, #fffaf0, #fff6e6);
  box-shadow: var(--shadow-sm);
}
.pact-hero h2 { margin: 0; font-size: 22px; letter-spacing: -0.03em; }
.pact-hero p { margin: 7px 0 0; color: var(--muted); font-size: 11.5px; line-height: 1.7; }
.ring-wrap { display: flex; align-items: center; gap: 13px; }
.ring {
  --pct: 0;
  width: 82px; height: 82px; flex: 0 0 82px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(var(--mint-deep) calc(var(--pct) * 1%), #f0e2cd 0);
  position: relative;
}
.ring::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #fffaf1; }
.ring b { position: relative; z-index: 1; font-family: Georgia, serif; font-size: 19px; }
.ring b small { font-size: 9px; font-family: var(--sans); color: var(--muted); }
.ring-copy b { display: block; font-size: 12px; }
.ring-copy span { display: block; color: var(--muted); font-size: 9.5px; margin-top: 3px; }
.pact-add { display: flex; gap: 8px; margin: 18px 0 15px; }
.pact-add .input { flex: 1; }
.pact-add .select-input { width: 112px; flex: 0 0 112px; }
.pact-filters { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 13px; }
.pact-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pact-item {
  display: flex; align-items: center; gap: 11px;
  padding: 14px 14px;
  border: 1.5px solid var(--line);
  border-radius: 15px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: 0.16s;
}
.pact-item:hover { border-color: #e9c8ad; }
.pact-item.done { background: #fbfdfb; border-color: #dfece7; }
.pact-check { position: relative; display: grid; place-items: center; }
.pact-check input { position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.pact-check span {
  width: 24px; height: 24px; border-radius: 8px;
  border: 1.8px solid #dfc4a8; background: #fffaf3;
  display: grid; place-items: center; color: #fff;
  transition: 0.16s;
}
.pact-check input:checked + span { background: var(--mint); border-color: var(--mint); box-shadow: 0 2px 0 #6eae9e; }
.pact-check span svg { width: 13px; height: 13px; opacity: 0; }
.pact-check input:checked + span svg { opacity: 1; }
.pact-copy { flex: 1; min-width: 0; }
.pact-copy b { display: block; font-size: 11.5px; line-height: 1.5; font-weight: 750; }
.pact-item.done .pact-copy b { text-decoration: line-through; color: #b09a88; }
.pact-copy small { display: inline-block; margin-top: 4px; font-size: 8.5px; color: #a88c75; background: #fff6e9; border: 1px solid #f0ddc7; border-radius: 5px; padding: 1px 5px; }
.pact-item .icon-btn { width: 27px; height: 27px; border: 0; background: transparent; opacity: 0; }
.pact-item:hover .icon-btn { opacity: 1; }
.pact-empty { grid-column: 1 / -1; }
.pact-note { display: flex; gap: 9px; margin-top: 16px; padding: 12px 14px; border-radius: 13px; background: #fff6e8; border: 1.5px dashed #ecd4b6; color: #8f6c50; font-size: 10px; line-height: 1.7; }
.pact-note svg { width: 15px; height: 15px; flex: 0 0 15px; margin-top: 1px; }

/* ---------- settings ---------- */
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.8fr); gap: 18px; align-items: start; }
.settings-card { padding: 24px 25px; }
.settings-card h2 { display: flex; align-items: center; gap: 7px; margin: 0 0 4px; font-size: 16px; letter-spacing: -0.02em; }
.settings-card h2 svg { width: 17px; height: 17px; color: var(--caramel); }
.settings-card > p { margin: 0 0 18px; color: var(--muted); font-size: 10.5px; line-height: 1.7; }
.avatar-picker { display: flex; flex-wrap: wrap; gap: 5px; }
.avatar-option { position: relative; }
.avatar-option input { position: absolute; opacity: 0; pointer-events: none; }
.avatar-option span {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 10px; border: 1.5px solid #ead6c0; background: #fffaf3;
  font-size: 18px; cursor: pointer; transition: 0.15s;
}
.avatar-option span:hover { border-color: #f0b8a7; background: var(--peach-pale); }
.avatar-option input:checked + span { border-color: var(--peach); background: var(--peach-soft); box-shadow: 0 2px 0 #efc0b2; }
.settings-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-bottom: 14px; }
.settings-person { padding: 14px; border: 1.5px solid #f0d9c5; background: #fffaf4; border-radius: 15px; }
.settings-person.b { border-color: #d8eae4; background: #f9fdfb; }
.settings-person-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.settings-person-head b { font-size: 11.5px; }
.settings-person .input { background: #fffdf8; }
.settings-person .avatar-picker { margin-top: 8px; }
.info-card { background: linear-gradient(145deg, #fff9ef, #fffdf8); }
.info-row { display: flex; gap: 9px; padding: 10px 0; border-top: 1px dashed #efdfcc; color: var(--muted); font-size: 9.5px; line-height: 1.7; }
.info-row:first-of-type { border-top: 0; padding-top: 0; }
.info-row svg { width: 14px; height: 14px; flex: 0 0 14px; margin-top: 1px; color: var(--caramel); }
.data-actions { display: grid; gap: 7px; margin-top: 4px; }
.data-action { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border: 1.5px solid var(--line); border-radius: 11px; background: #fffaf3; color: var(--ink-soft); font-size: 10.5px; font-weight: 700; text-align: left; }
.data-action:hover { border-color: #eac5ad; background: #fff7ed; }
.data-action svg { width: 14px; height: 14px; color: var(--muted); }
.data-action .arrow { margin-left: auto; }
.share-box { display: flex; gap: 6px; margin-top: 8px; }
.share-box .input { flex: 1; font-size: 10px; color: var(--muted); }
.version { margin-top: 8px; text-align: center; color: #c0ac9a; font-size: 8.5px; letter-spacing: 0.05em; }

/* ---------- onboarding ---------- */
.onboarding {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(700px 500px at 10% 0%, #ffe2c9 0%, transparent 60%),
    radial-gradient(600px 500px at 100% 100%, #dff2ea 0%, transparent 60%),
    rgba(255, 248, 238, 0.94);
  backdrop-filter: blur(8px);
  overflow-y: auto;
}
.onboarding-card {
  width: min(100%, 980px);
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  overflow: hidden;
  border: 1.5px solid #ecd3ba;
  border-radius: 34px;
  background: var(--paper);
  box-shadow: 0 40px 100px rgba(114, 71, 43, 0.18);
}
.onboarding-art {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 34px 24px;
  overflow: hidden;
  background:
    radial-gradient(320px 300px at 50% 45%, #fff3dc 0%, transparent 78%),
    linear-gradient(150deg, #ffe7cd, #ffdccb);
}
.onboarding-art::before {
  content: "";
  position: absolute; inset: 18px;
  border: 1.5px dashed rgba(163, 105, 65, 0.22);
  border-radius: 23px;
}
.onboarding-art img { position: relative; width: 85%; max-width: 340px; filter: drop-shadow(0 20px 24px rgba(132, 78, 43, 0.16)); animation: float 5s ease-in-out infinite; }
.onboarding-art p { position: relative; margin: 8px 0 0; color: #9c6f52; font-size: 11px; line-height: 1.7; text-align: center; }
.onboarding-art .art-brand { position: relative; margin-top: 4px; font-family: Georgia, serif; font-size: 10px; letter-spacing: 0.2em; color: #b7805c; }
.onboarding-form { padding: 40px 44px 35px; }
.onboarding-form h1 { margin: 9px 0 0; font-size: 29px; line-height: 1.3; letter-spacing: -0.045em; font-weight: 880; }
.onboarding-form .lead { margin: 9px 0 19px; color: var(--muted); font-size: 11.5px; line-height: 1.75; }
.onboarding-form .field-label { font-size: 10.5px; }
.onboarding-form .input { height: 42px; }
.onboarding-form .field-grid { gap: 10px; }
.onboarding-form .topic-grid { margin-top: 4px; }
.onboarding-form .avatar-picker { gap: 3px; }
.onboarding-form .avatar-option span { width: 29px; height: 29px; font-size: 15px; }
.onboarding-form .judge-submit-row { margin-top: 21px; }
.onboarding-form .privacy { font-size: 8.5px; }
.onboard-errors { min-height: 18px; margin-top: 6px; color: #c65449; font-size: 10px; }

/* ---------- modal ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(59, 40, 31, 0.38);
  backdrop-filter: blur(7px);
  animation: overlayIn 0.18s ease both;
}
.modal {
  width: min(100%, 620px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1.5px solid #ecd4bc;
  border-radius: 28px;
  background: var(--paper);
  box-shadow: 0 35px 100px rgba(54, 35, 26, 0.28);
  animation: modalIn 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.modal.wide { width: min(100%, 840px); }
.modal.narrow { width: min(100%, 430px); }
.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 22px 14px;
  border-bottom: 1.3px dashed #eedcc9;
  background: var(--paper);
}
.modal-title { margin: 0; font-size: 17px; letter-spacing: -0.025em; font-weight: 850; }
.modal-title small { display: block; margin-top: 3px; color: var(--muted); font-size: 9.5px; font-weight: 500; letter-spacing: 0; }
.modal-close { width: 31px; height: 31px; flex: 0 0 31px; border-radius: 9px; border: 1.5px solid var(--line); background: #fffaf3; display: grid; place-items: center; color: var(--muted); }
.modal-close:hover { background: #ffebe8; color: #c44f49; border-color: #f1c8c2; }
.modal-close svg { width: 14px; height: 14px; }
.modal-body { padding: 20px 22px; overflow-y: auto; }
.modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 13px 22px 17px; border-top: 1.3px dashed #eedcc9; background: var(--paper); }
.modal-foot .left { margin-right: auto; }
.modal-open { overflow: hidden; }

.composer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.composer-grid .full { grid-column: 1 / -1; }
.mood-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.mood-option { position: relative; }
.mood-option input { position: absolute; opacity: 0; }
.mood-option span { display: flex; align-items: center; gap: 4px; height: 33px; padding: 0 10px; border: 1.5px solid #ead6c0; border-radius: 9px; background: #fffaf3; font-size: 10px; font-weight: 700; cursor: pointer; }
.mood-option input:checked + span { border-color: #f1b7a7; background: var(--peach-soft); color: #b24f47; box-shadow: 0 2px 0 #f0c3b5; }
.weather-picker { display: flex; flex-wrap: wrap; gap: 5px; }
.weather-option { position: relative; }
.weather-option input { position: absolute; opacity: 0; }
.weather-option span { display: grid; place-items: center; width: 33px; height: 33px; border: 1.5px solid #ead6c0; border-radius: 9px; background: #fffaf3; cursor: pointer; font-size: 15px; }
.weather-option input:checked + span { border-color: #a9d5c9; background: var(--mint-soft); box-shadow: 0 2px 0 #c8e7dd; }
.photo-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 92px;
  border: 1.8px dashed #e5c6aa;
  border-radius: 15px;
  background: #fff9f0;
  color: var(--muted);
  cursor: pointer;
  transition: 0.16s;
  text-align: center;
  padding: 12px;
}
.photo-drop:hover { border-color: #eaa98f; background: var(--peach-pale); color: var(--peach-deep); }
.photo-drop svg { width: 22px; height: 22px; }
.photo-drop b { font-size: 10.5px; color: var(--ink-soft); }
.photo-drop small { font-size: 8.5px; }
.photo-previews { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 7px; }
.photo-preview { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 1.5px solid var(--line); background: #f3e3d2; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-remove { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: rgba(49, 32, 25, 0.7); color: #fff; display: grid; place-items: center; }
.photo-remove svg { width: 10px; height: 10px; }
.photo-loading { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255, 250, 243, 0.8); font-size: 9px; color: var(--muted); }

.detail-photos { display: grid; gap: 4px; border-radius: 15px; overflow: hidden; margin-bottom: 17px; }
.detail-photos[data-count="1"] { grid-template-columns: 1fr; }
.detail-photos[data-count="2"] { grid-template-columns: 1fr 1fr; }
.detail-photos[data-count="3"], .detail-photos[data-count="4"] { grid-template-columns: 1fr 1fr; }
.detail-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; cursor: zoom-in; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 13px; }
.detail-title { margin: 0 0 10px; font-size: 24px; line-height: 1.38; letter-spacing: -0.03em; }
.detail-content { white-space: pre-wrap; color: #6f5749; font-size: 13px; line-height: 1.9; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 14px; }
.detail-foot { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 18px; padding-top: 13px; border-top: 1.3px dashed #eedcc9; color: var(--muted); font-size: 10px; }
.detail-foot span { display: inline-flex; align-items: center; gap: 4px; }
.detail-foot svg { width: 12px; height: 12px; }

.profile-modal-list { display: grid; gap: 8px; }
.profile-choice {
  display: flex; align-items: center; gap: 10px;
  padding: 12px;
  border: 1.5px solid var(--line);
  border-radius: 15px;
  background: #fffaf4;
  text-align: left;
}
.profile-choice:hover { border-color: #eac7ae; background: #fff7ed; }
.profile-choice.active { border-color: #f1b7a7; background: var(--peach-pale); box-shadow: 0 2px 0 #efc5b7; }
.profile-choice .avatar { width: 39px; height: 39px; flex-basis: 39px; font-size: 21px; }
.profile-choice-copy { flex: 1; }
.profile-choice-copy b { display: block; font-size: 12px; }
.profile-choice-copy span { display: block; color: var(--muted); font-size: 9.5px; margin-top: 2px; }
.profile-choice .check { color: var(--peach-deep); width: 17px; height: 17px; opacity: 0; }
.profile-choice .check.arrow { color: var(--muted); opacity: 0.45; }
.profile-choice.active .check { opacity: 1; }
.profile-note { margin: 12px 0 0; color: var(--muted); font-size: 9.5px; line-height: 1.7; }

.lightbox { position: fixed; inset: 0; z-index: 1500; display: grid; place-items: center; padding: 30px; background: rgba(35, 23, 18, 0.86); backdrop-filter: blur(5px); }
.lightbox img { max-width: min(100%, 1100px); max-height: 82vh; border-radius: 12px; object-fit: contain; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.lightbox-close { position: absolute; top: 20px; right: 20px; width: 38px; height: 38px; border: 1.5px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; }
.lightbox-close svg { width: 17px; height: 17px; }
.lightbox-caption { position: absolute; left: 0; right: 0; bottom: 22px; text-align: center; color: rgba(255,255,255,.75); font-size: 10px; }

/* ---------- toast ---------- */
.toast-root { position: fixed; left: 50%; bottom: 26px; z-index: 3000; transform: translateX(-50%); display: grid; gap: 7px; pointer-events: none; width: min(92vw, 430px); }
.toast {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 15px;
  border-radius: 13px;
  background: var(--chocolate);
  color: #fff8ee;
  box-shadow: 0 12px 30px rgba(54, 35, 26, 0.25);
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.5;
  animation: toastIn 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.toast.out { animation: toastOut 0.22s ease both; }
.toast svg { width: 16px; height: 16px; flex: 0 0 16px; color: var(--yellow); }

/* ---------- mobile nav ---------- */
.mobile-nav { display: none; }

/* ---------- animation ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-0.6deg); }
  50% { transform: translateY(-8px) rotate(0.6deg); }
}
@keyframes bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(5px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.hero, .judge-hero { animation: fadeUp 0.5s ease both; }
.stats-grid .stat-card { animation: fadeUp 0.5s ease both; }
.stats-grid .stat-card:nth-child(2) { animation-delay: 0.04s; }
.stats-grid .stat-card:nth-child(3) { animation-delay: 0.08s; }
.stats-grid .stat-card:nth-child(4) { animation-delay: 0.12s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* =========================================================
   v2 · auth, check-ins, toolbox
   ========================================================= */
.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
  background:
    radial-gradient(700px 500px at 5% 0%, #ffe3dd 0%, transparent 62%),
    radial-gradient(600px 500px at 100% 100%, #e6f5ef 0%, transparent 62%),
    var(--cream);
}
.auth-card {
  width: min(100%, 960px);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  overflow: hidden;
  border: 1.5px solid var(--line-strong);
  border-radius: 34px;
  background: var(--paper);
  box-shadow: 0 40px 100px rgba(110, 55, 55, 0.2);
}
.auth-art {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 34px 24px;
  overflow: hidden;
  background:
    radial-gradient(340px 300px at 50% 42%, #fff4dc 0%, transparent 78%),
    linear-gradient(150deg, #ffe2d9, #ffd3d3);
}
.auth-art::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1.5px dashed rgba(158, 62, 68, 0.2);
  border-radius: 24px;
}
.auth-sticker { position: relative; width: 86%; max-width: 360px; filter: drop-shadow(0 24px 28px rgba(137, 67, 65, 0.16)); animation: float 5.6s ease-in-out infinite; }
.auth-sticker img { width: 100%; }
.auth-heart { position: absolute; right: 13%; top: 18%; font-size: 30px; transform: rotate(12deg); filter: drop-shadow(0 4px 6px rgba(160, 60, 60, .15)); }
.auth-art p { position: relative; margin: 4px 0 0; text-align: center; color: #96615f; font-size: 11px; line-height: 1.75; }
.auth-form { padding: 42px 44px 34px; }
.auth-form h1 { margin: 9px 0 0; font-size: 30px; line-height: 1.3; letter-spacing: -0.045em; font-weight: 880; }
.auth-form .lead { margin: 10px 0 20px; color: var(--muted); font-size: 11.5px; line-height: 1.8; }
.auth-password-wrap { position: relative; }
.auth-password-wrap .input { height: 48px; padding-right: 46px; }
.auth-eye { position: absolute; right: 6px; top: 6px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--muted); }
.auth-eye:hover { background: var(--peach-pale); color: var(--peach-deep); }
.auth-eye svg { width: 17px; height: 17px; }
.auth-submit { width: 100%; margin-top: 10px; height: 48px; }
.auth-note { display: flex; align-items: center; gap: 6px; margin-top: 17px; color: var(--muted); font-size: 9.5px; }
.auth-note svg { width: 13px; height: 13px; }
.auth-help { margin-top: 14px; color: #ad9184; font-size: 9.5px; line-height: 1.65; }
.auth-help summary { cursor: pointer; color: #a37d6e; }
.auth-help p { margin: 6px 0 0; }

.checkin-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 34px;
  align-items: center;
  gap: 18px;
  margin-top: 14px;
  padding: 14px 16px 14px 22px;
  background:
    radial-gradient(240px 130px at 100% 0%, #ffe1e2 0%, transparent 70%),
    linear-gradient(110deg, #fffdf8, #fff5ee);
}
.checkin-strip-copy h2 { margin: 3px 0 0; font-size: 17px; letter-spacing: -0.025em; }
.checkin-strip-copy p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.quick-checkins { display: flex; align-items: center; gap: 7px; }
.quick-checkin {
  width: 62px; height: 64px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 1.5px solid #f0d4c8;
  border-radius: 15px;
  background: #fffaf4;
  transition: .16s;
}
.quick-checkin:hover { transform: translateY(-2px); border-color: #efa99d; background: var(--peach-pale); }
.quick-checkin span { font-size: 21px; line-height: 1; }
.quick-checkin b { font-size: 9.5px; color: var(--ink-soft); }
.quick-checkin.done { opacity: .55; background: #f8f1e8; border-color: #ead8ca; transform: none; }
.checkin-more { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); background: #fffaf4; color: var(--muted); display: grid; place-items: center; }
.checkin-more:hover { color: var(--peach-deep); border-color: #f0bfb2; }
.checkin-more svg { width: 15px; height: 15px; }

.countdown-card { padding: 18px; }
.countdown-feature {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  padding: 11px 12px;
  border: 1.5px solid #f2dcc5;
  border-radius: 15px;
  background: linear-gradient(120deg, #fff7e9, #fff1e6);
  text-align: left;
}
.countdown-feature:hover { border-color: #ecc3a9; }
.cd-emoji { font-size: 23px; }
.cd-copy { min-width: 0; }
.cd-copy b { display: block; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cd-copy small { display: block; margin-top: 2px; color: var(--muted); font-size: 8.5px; }
.cd-days { text-align: right; }
.cd-days b { display: block; font-family: Georgia, serif; font-size: 27px; line-height: .95; color: var(--peach-deep); }
.cd-days small { color: var(--muted); font-size: 8px; }
.cd-mini-list { display: grid; gap: 5px; margin-top: 9px; }
.cd-mini { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 0; background: transparent; color: var(--ink-soft); font-size: 9.5px; padding: 4px 2px; }
.cd-mini:hover { color: var(--peach-deep); }
.cd-mini b { color: var(--muted); font-size: 9px; font-weight: 700; }

/* toolbox */
.tools-nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 6px;
  border: 1.5px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow-sm);
  scrollbar-width: none;
}
.tools-nav::-webkit-scrollbar { display: none; }
.tool-tab {
  position: relative;
  flex: 1 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 12px;
  border: 1.5px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 750;
  white-space: nowrap;
  transition: .16s;
}
.tool-tab:hover { background: #fff5ec; color: var(--ink); }
.tool-tab.active { background: var(--peach-soft); border-color: #f4c2bf; color: #b84f56; }
.tool-tab-icon { font-size: 14px; }
.tool-tab em { min-width: 16px; height: 16px; padding: 0 4px; display: grid; place-items: center; border-radius: 99px; background: var(--brown); color: #fff; font-size: 8px; font-style: normal; }
.tool-panel { padding-top: 18px; }
.tool-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  overflow: hidden;
  padding: 27px 30px;
  border: 1.5px solid var(--line);
  border-radius: 28px;
  background:
    radial-gradient(320px 220px at 100% 0%, #ffe1e1 0%, transparent 68%),
    linear-gradient(120deg, #fffdf8, #fff5ee);
  box-shadow: var(--shadow-sm);
}
.tool-hero::after { content: "🐾"; position: absolute; right: 34%; top: 18px; font-size: 20px; opacity: .18; transform: rotate(-14deg); }
.tool-hero h2 { margin: 9px 0 0; font-size: 27px; line-height: 1.32; letter-spacing: -0.04em; font-weight: 880; }
.tool-hero p { max-width: 620px; margin: 9px 0 0; color: var(--muted); font-size: 11.5px; line-height: 1.8; }
.tool-hero img { width: 190px; filter: drop-shadow(0 15px 20px rgba(130, 65, 60, .13)); }
.tool-card { padding: 21px 22px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 23px; box-shadow: var(--shadow-sm); }
.tool-card + .tool-card { margin-top: 14px; }
.tool-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.tool-two-col .tool-card + .tool-card { margin-top: 0; }
.modal-inline-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.emoji-picker { display: flex; flex-wrap: wrap; gap: 5px; }
.emoji-option { position: relative; }
.emoji-option input { position: absolute; opacity: 0; }
.emoji-option span { width: 37px; height: 37px; display: grid; place-items: center; border: 1.5px solid #ead6c0; border-radius: 10px; background: #fffaf3; cursor: pointer; font-size: 19px; }
.emoji-option input:checked + span { border-color: #f1b7a7; background: var(--peach-soft); box-shadow: 0 2px 0 #efc5b7; }

/* checkin page */
.checkin-hero { background: radial-gradient(310px 210px at 100% 8%, #ffe0e0 0%, transparent 68%), linear-gradient(120deg, #fffdf8, #fff7ef); }
.checkin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 15px; }
.ck-stat { display: flex; align-items: center; gap: 10px; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 17px; background: var(--paper); box-shadow: var(--shadow-sm); }
.ck-stat-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: var(--peach-pale); font-size: 18px; }
.ck-stat b { display: block; font-family: Georgia, serif; font-size: 20px; }
.ck-stat small { display: block; color: var(--muted); font-size: 8.5px; margin-top: 2px; }
.checkin-compose { margin-top: 15px; }
.checkin-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.checkin-big {
  position: relative;
  min-height: 112px;
  padding: 13px 11px;
  border: 1.5px solid #efd6c9;
  border-radius: 17px;
  background: #fffaf5;
  text-align: left;
  transition: .18s;
  overflow: hidden;
}
.checkin-big:hover { transform: translateY(-2px); box-shadow: 0 9px 20px rgba(140, 70, 65, .09); }
.checkin-big-emoji { display: block; font-size: 25px; line-height: 1; }
.checkin-big-label { display: block; margin-top: 7px; font-size: 13px; font-weight: 850; color: var(--ink); }
.checkin-big small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; line-height: 1.5; }
.checkin-big.tone-yellow { background: #fffaf0; }
.checkin-big.tone-lav { background: #fbf8ff; }
.checkin-big.tone-mint { background: #f8fdfb; }
.checkin-big.done { opacity: .62; background: #faf5ef; }
.checkin-done-mark { position: absolute; right: 9px; top: 9px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: var(--mint-deep); color: #fff; }
.checkin-done-mark svg { width: 10px; height: 10px; }
.today-checkin-list { display: grid; gap: 8px; }
.today-checkin-item { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px dashed #f1dfd0; }
.today-checkin-item:last-child { border-bottom: 0; }
.ck-emoji { width: 32px; height: 32px; flex: 0 0 32px; display: grid; place-items: center; border-radius: 10px; background: var(--peach-pale); font-size: 17px; }
.today-checkin-item b { display: block; font-size: 10.5px; }
.today-checkin-item small { display: block; margin-top: 2px; color: var(--muted); font-size: 8.5px; }
.ck-week { display: grid; gap: 13px; margin-top: 10px; }
.ck-week-row { display: flex; align-items: center; gap: 10px; }
.ck-week-row > span { width: 47px; flex: 0 0 47px; color: var(--ink-soft); font-size: 9.5px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ck-week-row > div { display: flex; gap: 5px; flex: 1; }
.ck-dot { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; background: #f7eee5; color: #c7ab98; font-size: 8px; }
.ck-dot.done { background: linear-gradient(145deg, #ffb7b1, #f58f8f); color: #fff; box-shadow: 0 2px 0 #d17070; }
.checkin-history { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 18px; }
.checkin-history-item { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px dashed #f1dfd0; min-width: 0; }
.checkin-history-item > span { font-size: 17px; }
.checkin-history-item b { display: block; font-size: 9.5px; }
.checkin-history-item small { display: block; margin-top: 1px; color: var(--muted); font-size: 8px; }

/* countdowns page */
.countdown-hero-art { width: 150px; height: 150px; flex: 0 0 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; background: #fff8e8; border: 1.5px dashed #eacda9; position: relative; }
.countdown-hero-art > span { position: absolute; top: 20px; color: var(--caramel); }
.countdown-hero-art > span svg { width: 20px; height: 20px; }
.countdown-hero-art b { font-family: Georgia, serif; font-size: 42px; line-height: 1; margin-top: 11px; color: var(--peach-deep); }
.countdown-hero-art small { color: var(--muted); font-size: 9px; margin-top: 3px; }
.countdown-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.countdown-item { position: relative; padding: 17px; border: 1.5px solid var(--line); border-radius: 19px; background: linear-gradient(145deg, #fffdf8, #fff8f0); box-shadow: var(--shadow-sm); }
.countdown-item.past { opacity: .62; }
.cd-item-top { display: flex; align-items: center; justify-content: space-between; }
.cd-item-emoji { font-size: 23px; }
.cd-item-days { margin-top: 11px; display: flex; align-items: baseline; gap: 4px; }
.cd-item-days b { font-family: Georgia, serif; font-size: 34px; line-height: 1; color: var(--peach-deep); letter-spacing: -0.04em; }
.cd-item-days small { color: var(--muted); font-size: 9px; }
.countdown-item h3 { margin: 8px 0 0; font-size: 13px; }
.countdown-item p { margin: 4px 0 0; color: var(--muted); font-size: 9px; line-height: 1.6; padding-right: 30px; }
.cd-item-actions { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 1px; }

/* tasks page */
.task-hero { background: radial-gradient(300px 200px at 100% 10%, #e0f2eb 0%, transparent 68%), linear-gradient(120deg, #fffdf8, #f7fcf9); }
.task-hero-stats { display: flex; gap: 16px; }
.task-hero-stats > div { width: 94px; height: 94px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 22px; background: #fffdf8; border: 1.5px solid #d9eae3; }
.task-hero-stats b { font-family: Georgia, serif; font-size: 33px; line-height: 1; color: var(--mint-deep); }
.task-hero-stats small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.task-list { display: grid; gap: 9px; }
.task-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px 15px; border: 1.5px solid var(--line); border-radius: 17px; background: var(--paper); box-shadow: var(--shadow-sm); transition: .16s; }
.task-item:hover { border-color: #e9c8b4; }
.task-item.done { opacity: .65; background: #fbfdfb; }
.task-item.overdue { border-color: #f0c1b8; background: #fffaf8; }
.task-check { position: relative; display: grid; place-items: center; margin-top: 2px; cursor: pointer; }
.task-check input { position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.task-check span { width: 25px; height: 25px; display: grid; place-items: center; border: 1.8px solid #dfc4b0; border-radius: 8px; background: #fffaf3; color: #fff; }
.task-check input:checked + span { background: var(--mint); border-color: var(--mint); box-shadow: 0 2px 0 #6eae9e; }
.task-check svg { width: 13px; height: 13px; opacity: 0; }
.task-check input:checked + span svg { opacity: 1; }
.task-copy { flex: 1; min-width: 0; }
.task-title-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.task-title-row h3 { margin: 0; font-size: 12.5px; line-height: 1.45; }
.task-item.done .task-title-row h3 { text-decoration: line-through; color: #b09a8a; }
.task-title-row .pill { height: 21px; font-size: 8.5px; }
.task-copy p { margin: 5px 0 0; color: var(--muted); font-size: 9.5px; line-height: 1.65; white-space: pre-wrap; }
.task-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 7px; color: #ad9383; font-size: 8.5px; }
.task-meta span { display: inline-flex; align-items: center; gap: 3px; }
.task-meta svg { width: 11px; height: 11px; }
.overdue-text { color: #c45c51; font-weight: 700; }
.task-actions { display: flex; gap: 1px; }

/* tree hole */
.tree-hero { background: radial-gradient(320px 210px at 100% 0%, #e4f3e4 0%, transparent 65%), linear-gradient(120deg, #fffdf8, #f8fcf7); }
.tree-hero-art { display: flex; flex-direction: column; align-items: center; font-size: 60px; line-height: 1; filter: drop-shadow(0 8px 10px rgba(80, 120, 75, .12)); }
.tree-hero-art span { margin-top: 6px; padding: 3px 9px; border-radius: 99px; background: #f2faf2; border: 1px solid #d6ead6; color: #6b8c66; font-size: 8.5px; }
.tree-compose { margin-top: 16px; }
.tree-compose textarea { min-height: 135px; }
.tree-intensity { display: flex; align-items: center; gap: 12px; margin-top: 10px; color: var(--ink-soft); font-size: 9.5px; }
.tree-intensity span { flex: 0 0 auto; font-weight: 700; }
.tree-intensity input { flex: 1; accent-color: var(--peach); }
.tree-intensity input[type=range] {
  --pct: 50%;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 99px;
  background: linear-gradient(90deg, #f9b1a9 0%, #ed7f82 var(--pct), #efdcc7 var(--pct), #efdcc7 100%);
  outline: none;
}
.tree-intensity input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: #fffdf8;
  border: 4px solid var(--peach);
  box-shadow: 0 3px 8px rgba(200, 91, 77, .22);
}
.tree-intensity output { flex: 0 0 auto; color: var(--peach-deep); font-weight: 700; }
.tree-form-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.tree-form-foot > span { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 8.5px; }
.tree-form-foot svg { width: 12px; height: 12px; }
.tree-list { display: grid; gap: 12px; }
.tree-item { padding: 18px 19px; border: 1.5px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: var(--shadow-sm); }
.tree-item.resolved { background: #fbfdfb; border-color: #dfece6; }
.tree-item-head { display: flex; align-items: center; gap: 8px; }
.tree-item-by { flex: 1; min-width: 0; }
.tree-item-by b { display: block; font-size: 10.5px; }
.tree-item-by small { display: block; margin-top: 2px; color: var(--muted); font-size: 8.5px; }
.tree-content { margin: 12px 0 0; color: #6d544b; font-size: 12px; line-height: 1.85; white-space: pre-wrap; }
.tree-replies { display: grid; gap: 6px; margin-top: 11px; padding-left: 10px; border-left: 2px solid #f0d9c8; }
.tree-reply { display: flex; gap: 6px; font-size: 9.5px; line-height: 1.65; color: var(--muted); }
.tree-reply b { flex: 0 0 auto; color: var(--ink-soft); }
.tree-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed #f0dfcf; }
.tree-actions .text-link svg { width: 12px; height: 12px; }
.mint-link { color: var(--mint-deep); }
.danger-link { color: #b58e84; margin-left: auto; }
.breathing { padding: 8px 0 2px; text-align: center; }
.breathing-circle { width: 148px; height: 148px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; background: radial-gradient(circle, #fff6e9 0%, #ffe0df 70%); border: 1.5px solid #f0c3ba; box-shadow: 0 0 0 12px rgba(255, 228, 224, .45), 0 0 0 24px rgba(255, 228, 224, .2); animation: breathe 4s ease-in-out infinite; }
.breathing-circle span { font-family: Georgia, serif; font-size: 45px; line-height: 1; color: var(--peach-deep); }
.breathing-circle small { color: var(--muted); font-size: 9px; margin-top: 4px; }
.breathing p { margin: 21px 0 13px; color: var(--muted); font-size: 11px; }
.breathing-dots { display: flex; justify-content: center; gap: 6px; }
.breathing-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--peach); opacity: .25; }
.breathing .modal-inline-actions { justify-content: center; margin-top: 3px; }

/* bills */
.bill-hero { background: radial-gradient(300px 210px at 100% 0%, #fff0ce 0%, transparent 66%), linear-gradient(120deg, #fffdf8, #fffaf0); }
.bill-hero-art { min-width: 190px; padding: 18px 21px; border: 1.5px solid #f0dcb7; border-radius: 21px; background: #fffaf0; text-align: right; }
.bill-hero-art span { display: block; font-family: Georgia, serif; font-size: 31px; line-height: 1; color: var(--ink); letter-spacing: -0.03em; }
.bill-hero-art small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; }
.bill-summary { margin-top: 15px; }
.bill-balance { display: grid; gap: 8px; }
.bill-balance > div { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 9px; background: #fff9f0; color: var(--muted); font-size: 9.5px; }
.bill-balance b { color: var(--ink); font-family: Georgia, serif; font-size: 15px; }
.bill-cats { display: grid; gap: 7px; margin-top: 13px; }
.bill-cat-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) 66px; align-items: center; gap: 8px; color: var(--muted); font-size: 9px; }
.bill-cat-row > span:first-child { white-space: nowrap; }
.bill-cat-track { height: 7px; border-radius: 99px; background: #f3e5d5; overflow: hidden; }
.bill-cat-track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #ffd59c, #f2ad73); }
.bill-cat-row b { text-align: right; font-family: Georgia, serif; font-size: 11px; color: var(--ink-soft); }
.bill-add-card { display: flex; flex-direction: column; align-items: center; text-align: center; justify-content: center; padding: 22px; }
.bill-add-icon { font-size: 39px; }
.bill-add-card h2 { margin: 5px 0 0; font-size: 16px; }
.bill-add-card p { margin: 5px 0 13px; color: var(--muted); font-size: 9.5px; }
.bill-scope { display: flex; gap: 4px; margin-top: 13px; }
.bill-scope button { border: 1.5px solid var(--line); border-radius: 8px; background: #fffaf3; color: var(--muted); font-size: 8.5px; padding: 4px 8px; }
.bill-scope button.active { background: var(--peach-soft); color: var(--peach-deep); border-color: #f2c4bc; }
.bill-list { display: grid; gap: 8px; }
.bill-item { display: flex; align-items: center; gap: 11px; padding: 12px 13px; border: 1.5px solid var(--line); border-radius: 15px; background: var(--paper); }
.bill-cat-icon { width: 35px; height: 35px; flex: 0 0 35px; display: grid; place-items: center; border-radius: 10px; background: #fff7e9; font-size: 17px; }
.bill-copy { flex: 1; min-width: 0; }
.bill-copy b { display: block; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bill-copy small { display: block; margin-top: 3px; color: var(--muted); font-size: 8.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bill-amount { text-align: right; flex: 0 0 auto; }
.bill-amount b { display: block; font-family: Georgia, serif; font-size: 15px; color: var(--ink); }
.bill-amount small { display: block; margin-top: 2px; color: var(--muted); font-size: 8px; }

/* letters */
.letter-hero { background: radial-gradient(320px 210px at 100% 4%, #ffe4e2 0%, transparent 66%), linear-gradient(120deg, #fffdf8, #fff5f2); }
.letter-hero-art { display: flex; flex-direction: column; align-items: center; font-size: 62px; line-height: 1; }
.letter-hero-art small { margin-top: 5px; padding: 3px 9px; border-radius: 99px; background: #fff3f0; border: 1px solid #f0d3cb; color: var(--muted); font-size: 8.5px; }
.letter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.letter-card { position: relative; min-height: 188px; overflow: hidden; padding: 18px 17px; border: 1.5px solid #edd2c0; border-radius: 18px; background: linear-gradient(145deg, #fffdf7, #fff7ec); text-align: left; box-shadow: var(--shadow-sm); transition: .2s; }
.letter-card:hover { transform: translateY(-3px); box-shadow: 0 14px 26px rgba(140, 75, 65, .1); }
.letter-card.locked { background: #faf6ef; }
.letter-card.unread { border-color: #f0b9b2; background: linear-gradient(145deg, #fffdf8, #fff0ee); }
.letter-flap { position: absolute; top: 0; left: 0; width: 0; height: 0; border-left: 140px solid transparent; border-right: 140px solid transparent; border-top: 55px solid rgba(255, 225, 215, .42); pointer-events: none; }
.letter-stamp { position: absolute; right: 12px; top: 11px; font-size: 21px; }
.letter-to { display: block; color: #b98d7a; font-size: 8px; font-weight: 850; letter-spacing: .14em; margin-top: 10px; }
.letter-card b { display: block; margin-top: 8px; font-size: 15px; line-height: 1.45; letter-spacing: -0.02em; position: relative; }
.letter-from { display: block; margin-top: 10px; color: var(--muted); font-size: 8.5px; position: relative; }
.letter-state { position: absolute; left: 17px; bottom: 14px; color: #b39a87; font-size: 8.5px; }
.letter-card.unread .letter-state { color: var(--peach-deep); font-weight: 700; }
.letter-paper { padding: 24px 26px; border: 1.5px solid #edd7bf; border-radius: 14px; background: repeating-linear-gradient(180deg, #fffdf7 0, #fffdf7 31px, #f8ecdc 32px); }
.letter-paper-top { display: flex; justify-content: space-between; align-items: center; }
.letter-paper-stamp { font-size: 26px; }
.letter-paper h2 { margin: 18px 0 14px; font-family: Georgia, "Songti SC", serif; font-size: 24px; letter-spacing: -0.03em; }
.letter-paper-body { white-space: pre-wrap; color: #6e5547; font-size: 13px; line-height: 2.35; min-height: 100px; }
.letter-paper-sign { margin-top: 20px; text-align: right; color: #9b715f; font-size: 11px; }

@keyframes breathe {
  0%, 100% { transform: scale(.94); box-shadow: 0 0 0 10px rgba(255, 228, 224, .45), 0 0 0 22px rgba(255, 228, 224, .2); }
  45% { transform: scale(1.04); box-shadow: 0 0 0 16px rgba(255, 228, 224, .4), 0 0 0 34px rgba(255, 228, 224, .12); }
}

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  :root { --sidebar: 224px; }
  .view { padding-left: 26px; padding-right: 26px; }
  .topbar { padding-left: 26px; padding-right: 26px; }
  .sidebar { padding-left: 15px; padding-right: 15px; }
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(270px, 0.8fr); padding-left: 34px; }
  .hero h1 { font-size: clamp(32px, 3.45vw, 45px); }
  .judge-cta { grid-template-columns: 140px minmax(0, 1fr) auto; padding-right: 22px; }
  .judge-cta img { width: 132px; }
  .album-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1120px) {
  .recent-grid { grid-template-columns: 1fr; }
  .judge-cta { grid-template-columns: 112px minmax(0, 1fr); padding: 13px 18px 13px 10px; }
  .judge-cta img { width: 100px; }
  .judge-cta .btn { grid-column: 2; justify-self: start; margin: 8px 0 0; }
  .judge-cta-copy h2 { font-size: 19px; }
}
@media (max-width: 1020px) {
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-grid { grid-template-columns: minmax(0, 1.4fr) minmax(255px, 0.8fr); gap: 17px; }
  .hero { grid-template-columns: 1fr 0.78fr; min-height: 355px; }
  .hero-art > img { max-width: 310px; }
  .judge-layout { grid-template-columns: minmax(0, 1.3fr) minmax(235px, 0.7fr); gap: 15px; }
  .form-card { padding: 22px 20px 18px; }
}
@media (max-width: 900px) {
  .auth-card { grid-template-columns: 1fr; max-width: 560px; }
  .auth-art { padding: 24px 22px 12px; }
  .auth-sticker { width: 220px; }
  .auth-art p { display: none; }
  .auth-heart { right: 23%; top: 20%; }
  .auth-form { padding: 26px 28px 28px; }
  .auth-form h1 { font-size: 26px; }
  .tool-hero { grid-template-columns: 1fr; padding: 22px 23px; }
  .tool-hero img { width: 150px; justify-self: center; }
  .tool-hero h2 { font-size: 24px; }
  .checkin-grid { grid-template-columns: repeat(3, 1fr); }
  .countdown-grid { grid-template-columns: repeat(2, 1fr); }
  .letter-grid { grid-template-columns: repeat(2, 1fr); }
  .tool-two-col { grid-template-columns: 1fr; }
  .checkin-history { grid-template-columns: 1fr; }
  .checkin-strip { grid-template-columns: minmax(0, 1fr) auto; }
  .checkin-more { display: none; }
  .checkin-strip .quick-checkins { justify-content: flex-end; }
  .app { display: block; }
  .sidebar { display: none; }
  .main-wrap { width: 100%; }
  .topbar { padding: 15px 16px 8px; }
  .top-kicker { display: none; }
  .mobile-brand { display: flex; }
  .view { padding: 8px 16px 108px; }
  .mobile-nav {
    position: fixed;
    left: 10px; right: 10px; bottom: 10px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 2px;
    padding: 7px 7px calc(7px + env(safe-area-inset-bottom));
    border: 1.5px solid var(--line);
    border-radius: 23px;
    background: rgba(255, 253, 248, 0.94);
    box-shadow: 0 12px 35px rgba(89, 55, 35, 0.16);
    backdrop-filter: blur(16px);
  }
  .mnav-item {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 6px 2px;
    border: 0; background: none; color: var(--muted);
    font-size: 8.5px; font-weight: 750;
    border-radius: 12px;
  }
  .mnav-item svg { width: 19px; height: 19px; }
  .mnav-item.active { color: var(--peach-deep); background: var(--peach-pale); }
  .mnav-item.judge-mnav { margin-top: -28px; }
  .mnav-item.judge-mnav .mnav-icon {
    width: 48px; height: 48px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #9ad7c7, #69b5a2);
    border: 3px solid #fffdf8;
    color: #fff;
    box-shadow: 0 6px 14px rgba(91, 168, 148, 0.35);
  }
  .mnav-item.judge-mnav .mnav-icon svg { width: 23px; height: 23px; }
  .mnav-item.judge-mnav span { color: var(--mint-deep); }
  .hero { grid-template-columns: 1fr; padding: 29px 23px 20px; min-height: 0; }
  .hero h1 { font-size: clamp(31px, 7vw, 41px); }
  .hero-art { min-height: 250px; margin-top: 6px; }
  .hero-art > img { max-width: 280px; }
  .art-note { left: 8%; bottom: 3px; }
  .art-bubble { right: 8%; top: 4px; }
  .hero-spark { display: none; }
  .home-grid { grid-template-columns: 1fr; }
  .side-stack { grid-template-columns: 1fr 1fr; }
  .side-stack .calendar-card { grid-row: span 2; }
  .recent-grid { gap: 12px; }
  .judge-cta { grid-template-columns: 120px minmax(0, 1fr); padding: 15px 18px 15px 10px; }
  .judge-cta img { width: 112px; }
  .judge-cta .btn { grid-column: 2; justify-self: start; margin: 9px 0 0; }
  .page-head { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 18px; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 0 0 auto; }
  .moments-grid { gap: 12px; }
  .album-grid { grid-template-columns: repeat(3, 1fr); gap: 9px; }
  .judge-hero { grid-template-columns: 210px minmax(0, 1fr); padding: 3px 20px 3px 0; }
  .judge-hero img { max-width: 210px; }
  .judge-hero h1 { font-size: 30px; }
  .judge-layout { grid-template-columns: 1fr; }
  .judge-aside { position: static; grid-template-columns: 1fr 1fr; }
  .judge-quote-card { display: flex; flex-direction: column; justify-content: center; }
  .settings-grid { grid-template-columns: 1fr; }
  .verdict-wrap { max-width: 100%; }
  .ticket { padding: 25px 23px 22px; }
  .ticket h1 { font-size: 29px; }
  .view-grid, .claims-grid, .flag-columns { grid-template-columns: 1fr; }
  .pact-list { grid-template-columns: 1fr; }
  .onboarding-card { grid-template-columns: 1fr; max-width: 560px; }
  .onboarding-art { padding: 22px 20px 14px; }
  .onboarding-art img { width: 210px; max-width: 210px; }
  .onboarding-art p { display: none; }
  .onboarding-art .art-brand { display: none; }
  .onboarding-form { padding: 27px 28px 25px; }
  .onboarding-form h1 { font-size: 25px; }
  .modal { max-height: 92vh; }
  .toast-root { bottom: 92px; }
  .side-stack .pact-mini { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .auth-screen { padding: 10px; }
  .auth-card { border-radius: 25px; }
  .auth-art { padding: 16px; }
  .auth-sticker { width: 175px; }
  .auth-heart { display: none; }
  .auth-form { padding: 22px 19px 23px; }
  .auth-form h1 { font-size: 23px; }
  .auth-form .lead { font-size: 10.5px; }
  .checkin-strip { grid-template-columns: 1fr; gap: 11px; padding: 16px; }
  .checkin-strip-copy p { max-width: none; }
  .quick-checkins { justify-content: space-between; }
  .quick-checkin { width: 19%; height: 59px; }
  .quick-checkin span { font-size: 19px; }
  .checkin-stats { gap: 7px; }
  .ck-stat { padding: 10px 8px; gap: 7px; border-radius: 13px; }
  .ck-stat-icon { width: 29px; height: 29px; flex-basis: 29px; font-size: 15px; }
  .ck-stat b { font-size: 16px; }
  .ck-stat small { font-size: 7.5px; }
  .tool-card { padding: 17px 15px; }
  .tool-hero { padding: 19px 17px; border-radius: 23px; }
  .tool-hero h2 { font-size: 22px; }
  .tool-hero p { font-size: 10.5px; }
  .tool-hero img { width: 128px; }
  .tools-nav { border-radius: 14px; padding: 5px; }
  .tool-tab { height: 37px; padding: 0 10px; font-size: 9.5px; }
  .tool-tab-icon { font-size: 13px; }
  .checkin-grid { grid-template-columns: repeat(2, 1fr); gap: 7px; }
  .checkin-big { min-height: 102px; }
  .checkin-history { gap: 0; }
  .countdown-grid { grid-template-columns: 1fr; }
  .countdown-hero-art { width: 112px; height: 112px; flex-basis: 112px; justify-self: center; }
  .countdown-hero-art b { font-size: 33px; }
  .letter-grid { grid-template-columns: 1fr; }
  .letter-card { min-height: 165px; }
  .task-hero-stats { gap: 8px; }
  .task-hero-stats > div { width: 76px; height: 76px; border-radius: 17px; }
  .task-hero-stats b { font-size: 26px; }
  .task-item { padding: 12px; }
  .task-actions { flex-direction: column; }
  .tree-intensity { flex-wrap: wrap; gap: 7px; }
  .tree-intensity input { flex-basis: 100%; order: 3; }
  .tree-form-foot { align-items: flex-start; flex-direction: column; }
  .tree-form-foot .btn { width: 100%; }
  .bill-hero-art { width: 100%; text-align: left; }
  .bill-cat-row { grid-template-columns: 50px minmax(0, 1fr) 60px; }
  .letter-paper { padding: 18px 17px; }
  .letter-paper-body { font-size: 12px; line-height: 2.1; }
  .modal-inline-actions { flex-wrap: wrap; }
  .breathing-circle { width: 132px; height: 132px; }
  .breathing-circle span { font-size: 39px; }
  .topbar { padding-top: 12px; }
  .top-kicker .top-date { display: none; }
  .sync-pill { display: none; }
  .top-profile { padding-right: 5px; }
  .top-profile > span:not(.avatar) { display: none; }
  .top-profile { width: 38px; padding: 0; justify-content: center; }
  .top-profile svg { display: none; }
  .top-profile .avatar.small { width: 28px; height: 28px; flex-basis: 28px; border-radius: 9px; font-size: 16px; }
  .view { padding-left: 13px; padding-right: 13px; }
  .hero { border-radius: 27px; padding: 24px 18px 10px; }
  .hero h1 { font-size: 30px; }
  .hero-desc { font-size: 12.5px; }
  .hero-actions .btn { flex: 1; }
  .hero-meta { gap: 5px 10px; }
  .hero-art { min-height: 220px; }
  .hero-art > img { max-width: 235px; }
  .art-note { left: 0; bottom: 0; font-size: 9px; padding: 6px 9px 6px 6px; }
  .art-note .mini-heart { width: 22px; height: 22px; }
  .art-bubble { top: -3px; right: 0; font-size: 9px; }
  .stats-grid { gap: 8px; margin-top: 10px; }
  .stat-card { padding: 11px 10px; gap: 8px; border-radius: 15px; }
  .stat-icon { width: 33px; height: 33px; flex-basis: 33px; border-radius: 10px; }
  .stat-icon svg { width: 16px; height: 16px; }
  .stat-num { font-size: 19px; }
  .stat-label { font-size: 9px; }
  .side-stack { grid-template-columns: 1fr; }
  .recent-grid { grid-template-columns: 1fr; }
  .moments-grid { grid-template-columns: 1fr; }
  .judge-cta { grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 13px; border-radius: 23px; }
  .judge-cta img { width: 88px; }
  .judge-cta h2 { font-size: 17px; }
  .judge-cta p { font-size: 10px; }
  .judge-cta .eyebrow { font-size: 8.5px; }
  .judge-hero { grid-template-columns: 1fr; padding: 13px 18px 22px; text-align: center; border-radius: 26px; }
  .judge-hero img { max-width: 200px; margin: -8px auto 0; }
  .judge-hero h1 { font-size: 29px; margin-top: 1px; }
  .judge-hero p { font-size: 11.5px; }
  .judge-hero .hero-meta { justify-content: center; }
  .judge-hero .eyebrow { justify-content: center; }
  .judge-layout { margin-top: 14px; }
  .form-card { padding: 18px 15px 15px; }
  .who-grid { grid-template-columns: 1fr; }
  .tone-grid { gap: 5px; }
  .judge-submit-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .judge-submit-row .btn { width: 100%; }
  .judge-aside { grid-template-columns: 1fr; }
  .judge-quote-card { flex-direction: row; align-items: center; gap: 8px; }
  .judge-quote-card img { width: 80px; margin: 0; flex: 0 0 80px; }
  .judge-quote-card p { text-align: left; font-size: 10.5px; }
  .judge-quote-card span { text-align: left; }
  .album-grid { grid-template-columns: repeat(2, 1fr); gap: 7px; }
  .toolbar { padding: 9px; gap: 7px; }
  .search-box { min-width: 100%; flex-basis: 100%; }
  .toolbar .search-box { max-width: none; }
  .select { max-width: none; flex: 1; }
  .album-grid .album-item { border-radius: 14px !important; }
  .ticket { padding: 21px 16px 18px; border-radius: 19px; }
  .ticket::before, .ticket::after { display: none; }
  .ticket h1 { font-size: 24px; }
  .stamp { width: 58px; height: 58px; font-size: 8.5px; }
  .ticket-top { gap: 8px; }
  .meter-row { grid-template-columns: 64px minmax(0, 1fr) 36px; gap: 6px; }
  .meter-note { font-size: 8.5px; }
  .verdict-section { padding: 18px 16px; }
  .view-panel { padding: 13px; }
  .view-panel .surface { font-size: 11.5px; }
  .script-card { padding: 13px; }
  .timeline-item { grid-template-columns: 51px 13px minmax(0, 1fr); gap: 6px; }
  .timeline-time { font-size: 8px; }
  .pact-hero { grid-template-columns: 1fr; }
  .ring-wrap { justify-content: flex-start; }
  .pact-add { flex-wrap: wrap; }
  .pact-add .input { flex-basis: 100%; }
  .pact-add .select-input { flex: 1; width: auto; }
  .settings-card { padding: 18px 16px; }
  .settings-pair { grid-template-columns: 1fr; }
  .settings-grid { gap: 12px; }
  .onboarding { padding: 10px; }
  .onboarding-card { border-radius: 25px; }
  .onboarding-art { padding: 16px; }
  .onboarding-art img { width: 165px; max-width: 165px; }
  .onboarding-form { padding: 22px 18px 22px; }
  .onboarding-form h1 { font-size: 23px; }
  .overlay { padding: 0; align-items: flex-end; }
  .modal, .modal.wide, .modal.narrow { width: 100%; max-height: 94vh; border-radius: 25px 25px 0 0; border-bottom: 0; }
  .modal-head { padding: 15px 17px 12px; }
  .modal-body { padding: 17px; }
  .modal-foot { padding: 11px 17px calc(14px + env(safe-area-inset-bottom)); }
  .composer-grid { grid-template-columns: 1fr; }
  .composer-grid .full { grid-column: auto; }
  .detail-title { font-size: 21px; }
  .lightbox { padding: 14px; }
  .lightbox-caption { bottom: 16px; font-size: 9px; }
  .page-title { font-size: 28px; }
  .top-share { width: 34px; height: 34px; }
}
