/* Wild Willow Atelier: amour, chantilly, menthe, petal, and ink for text. */
@font-face { font-family: "Editorial"; src: url("fonts/PPEditorialNew-Regular.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Editorial"; font-style: italic; src: url("fonts/PPEditorialNew-Italic.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "Lamar Pen"; src: url("fonts/lamarpen.ttf") format("truetype"); font-display: swap; }

:root {
  --amour: #791340;
  --amour-soft: #F3DCE3;
  --chantilly: #F3E7CF;
  --paper: #FBF6EC;
  --menthe: #C6D178;
  --menthe-ink: #5E6B1F;
  --menthe-soft: #EEF2D3;
  --petal: #F1A0B3;
  --petal-soft: #FBE3E9;
  --ink: #1E2722;
  --muted: #5F625A;
  --line: rgba(121, 19, 64, 0.14);
  --urgent: #A61E3C;
  --today: #C7782E;
  --today-soft: #F8E6CF;
  --soon: #7C8B2E;
  --shadow: 0 1px 2px rgba(30, 39, 34, 0.06), 0 6px 18px rgba(121, 19, 64, 0.06);
  --radius: 14px;
  --serif: "Editorial", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Futura PT", Futura, "Century Gothic", "Avenir Next", "Trebuchet MS", system-ui, sans-serif;
  --script: "Lamar Pen", "Snell Roundhand", cursive;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--chantilly); color: var(--ink);
  font: 16px/1.5 var(--sans); letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}
body.sheet-open { overflow: hidden; }
a { color: var(--amour); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0 0 0.4em; }
[hidden] { display: none !important; }

.display { font-family: var(--serif); font-size: clamp(28px, 6vw, 40px); line-height: 1.1; text-transform: uppercase; letter-spacing: 0.02em; color: var(--amour); }
.script { font-family: var(--script); }
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.prewrap { white-space: pre-wrap; }
.struck { text-decoration: line-through; opacity: 0.6; }
.amount { font-variant-numeric: tabular-nums; white-space: nowrap; }
.note-script { font-family: var(--script); font-size: 20px; line-height: 1.4; color: var(--amour); margin-top: 8px; }

/* ---- Top bar and navigation */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px;
  padding: calc(env(safe-area-inset-top) + 8px) 20px 8px; background: rgba(243, 231, 207, 0.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--amour); }
.brand img { height: 38px; width: auto; }
.wordmark { font-family: var(--serif); text-transform: uppercase; letter-spacing: 0.14em; font-size: 15px; white-space: nowrap; }
.wordmark em { font-family: var(--script); text-transform: none; letter-spacing: 0; font-style: normal; font-size: 18px; margin-left: 2px; }
.mainnav { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.mainnav a { display: flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ink); font-size: 15px; }
.mainnav a .ico { color: var(--amour); opacity: 0.7; }
.mainnav a[aria-current="page"] { background: var(--amour); color: var(--paper); }
.mainnav a[aria-current="page"] .ico { color: var(--petal); opacity: 1; }
.add-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--amour); color: var(--paper);
  font-size: 24px; line-height: 1; cursor: pointer; box-shadow: var(--shadow); margin: 0 6px;
}
.top-actions { display: flex; gap: 4px; }
.icon-link { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; text-decoration: none; color: var(--amour); font-size: 20px; }
.icon-link[aria-current="page"], .icon-link:hover { background: var(--amour-soft); }

main { max-width: 1060px; margin: 0 auto; padding: 24px 20px 120px; outline: none; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }

@media (max-width: 760px) {
  /* A blurred bar would trap the fixed bottom menu inside it, so the phone bar is plain. */
  .topbar { padding: calc(env(safe-area-inset-top) + 6px) 16px 6px; backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--chantilly); }
  .wordmark { font-size: 13px; }
  .brand img { height: 32px; }
  .top-actions { margin-left: auto; }
  .mainnav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0; justify-content: space-around;
    padding: 6px 8px calc(env(safe-area-inset-bottom) + 6px); background: rgba(251, 246, 236, 0.97);
    border-top: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .mainnav a { flex-direction: column; gap: 0; padding: 4px 8px; font-size: 11px; border-radius: 12px; min-width: 60px; }
  .mainnav a .ico { font-size: 20px; }
  .mainnav a[aria-current="page"] { background: none; color: var(--amour); }
  .mainnav a[aria-current="page"] .ico { color: var(--amour); }
  .add-btn { width: 50px; height: 50px; margin-top: -22px; font-size: 28px; border: 3px solid var(--chantilly); }
  main { padding: 18px 16px calc(110px + env(safe-area-inset-bottom)); }
}

/* ---- Buttons and form controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; min-height: 42px;
  border-radius: 999px; border: 1px solid var(--amour); background: transparent; color: var(--amour);
  text-decoration: none; cursor: pointer; font-size: 15px; letter-spacing: 0.02em;
}
.btn:hover { background: var(--amour-soft); }
.btn.primary { background: var(--amour); color: var(--paper); }
.btn.primary:hover { background: #5f0f33; }
.btn.ghost { border-color: transparent; }
.btn.small { padding: 6px 14px; min-height: 34px; font-size: 14px; }
.btn.wide { width: 100%; }
.btn.danger, .btn.ghost.danger { color: var(--urgent); }
.btn:disabled { opacity: 0.5; cursor: default; }
.link { background: none; border: 0; color: var(--amour); text-decoration: underline; text-underline-offset: 3px; padding: 0; cursor: pointer; }
.icon-btn { background: none; border: 0; width: 36px; height: 36px; border-radius: 50%; font-size: 22px; color: var(--amour); cursor: pointer; }
.icon-btn:hover { background: var(--amour-soft); }
.chip-btn {
  display: inline-flex; align-items: center; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); color: var(--amour); text-decoration: none; font-size: 13px; cursor: pointer; white-space: nowrap;
}
.chip-btn:hover { border-color: var(--amour); }
.reach { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field .label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); min-height: 1em; }
.field .hint, .hint { font-size: 12px; color: var(--muted); }
.field.bad input, .field.bad select, .field.bad textarea { border-color: var(--urgent); }
input:not([type=checkbox]), select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid rgba(30, 39, 34, 0.2); border-radius: 10px; background: #fff;
  min-height: 44px; font-size: 16px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--petal); outline-offset: 1px; border-color: var(--amour); }
input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--amour); flex: none; cursor: pointer; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.form { display: flex; flex-direction: column; gap: 14px; }
.inline-form { margin-top: 12px; }
.inline-form .btn { align-self: flex-start; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 80px 1fr 1fr; gap: 10px; align-items: end; }
@media (max-width: 480px) { .row2 { grid-template-columns: 1fr; } .row3 { grid-template-columns: 70px 1fr; } .row3 .field:last-child { grid-column: 1 / -1; } }
.actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.actions .danger { margin-right: auto; }
.actions-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0; }
.search-box { margin-bottom: 12px; }

.date-field { position: relative; display: block; }
.date-field input { color: transparent; }
.date-field input::-webkit-datetime-edit { color: transparent; }
.date-face { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.date-face.empty { color: var(--muted); }

/* ---- Tags, dots, chips */
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; background: var(--menthe-soft); color: var(--menthe-ink); white-space: nowrap; border: 0; }
.tag.soft { background: rgba(30, 39, 34, 0.06); color: var(--muted); }
.tag.warn { background: var(--today-soft); color: #8a4f15; }
.tag.urgent { background: var(--amour-soft); color: var(--urgent); }
.tag.ok { background: var(--menthe-soft); color: var(--menthe-ink); }
.btn-tag { cursor: pointer; }
.person-pending { background: var(--today-soft); color: #8a4f15; }
.person-confirmed { background: var(--menthe-soft); color: var(--menthe-ink); }
.person-declined { background: var(--amour-soft); color: var(--urgent); }
.status-inquiry, .status-proposal { background: var(--petal-soft); color: var(--amour); }
.status-confirmed { background: var(--menthe-soft); color: var(--menthe-ink); }
.status-completed { background: rgba(30, 39, 34, 0.08); color: var(--muted); }
.status-cancelled { background: rgba(30, 39, 34, 0.08); color: var(--muted); text-decoration: line-through; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: middle; flex: none; }
.dot.urgent { background: var(--urgent); }
.dot.high, .dot.today { background: var(--today); }
.dot.soon, .dot.events { background: var(--soon); }
.dot.normal { background: var(--menthe); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: 14px; }
.chip.on { background: var(--amour); color: var(--paper); border-color: var(--amour); }
.segmented { display: inline-flex; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 3px; margin-bottom: 16px; max-width: 100%; overflow-x: auto; }
.segmented button { border: 0; background: none; padding: 7px 16px; border-radius: 999px; cursor: pointer; white-space: nowrap; font-size: 14px; }
.segmented button.on { background: var(--amour); color: var(--paper); }
.segmented .count { margin-left: 6px; font-size: 12px; opacity: 0.75; }
.segmented.compact { margin-bottom: 0; }

/* ---- Cards */
.card { background: var(--paper); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 16px; display: block; color: inherit; text-decoration: none; }
.card-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted); margin-bottom: 10px; display: flex; gap: 8px; align-items: baseline; }
.card-label .note { margin-left: auto; font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--ink); }
.card-label-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.card-label-row .card-label { margin: 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.two-col > .card { margin-bottom: 0; }
.two-col { margin-bottom: 16px; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
dl { margin: 0; }
.detail { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 5px 0; }
.detail dt { color: var(--muted); font-size: 14px; }
.detail dd { margin: 0; }
.line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line.warn .amount { color: #8a4f15; }
.line.total { font-weight: 600; border-top: 1px solid var(--amour); }
.link-line { text-decoration: none; color: inherit; }
.link-line:hover { color: var(--amour); }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty .script { font-size: 24px; color: var(--amour); }

/* ---- Home */
.hello { margin: 4px 0 18px; }
.greeting { font-size: clamp(28px, 7vw, 40px); color: var(--amour); line-height: 1.2; margin-bottom: 2px; }
.home .display { font-size: clamp(22px, 5vw, 30px); color: var(--ink); }
.summary { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.pill { padding: 4px 12px; border-radius: 999px; font-size: 14px; background: var(--paper); }
.pill.urgent { background: var(--urgent); color: #fff; }
.pill.today { background: var(--today-soft); color: #8a4f15; }
.pill.soon { background: var(--menthe-soft); color: var(--menthe-ink); }
.banner { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; background: var(--petal-soft); border: 1px solid var(--petal); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; }
.banner p { margin: 4px 0 10px; }
.banner.soft { background: var(--paper); border-color: var(--line); margin: 10px 0; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 22px; }
.quick-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: 14px; color: var(--ink); }
.quick-btn span { font-family: var(--serif); font-size: 22px; color: var(--amour); line-height: 1; }
.quick-btn:hover { border-color: var(--amour); }
.block { background: var(--paper); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 16px; box-shadow: var(--shadow); }
.block-title { display: flex; align-items: center; font-family: var(--serif); text-transform: uppercase; letter-spacing: 0.08em; font-size: 19px; margin-bottom: 10px; cursor: default; }
details > summary.block-title { cursor: pointer; }
.block-title .note { margin-left: auto; font-family: var(--sans); text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--muted); }
.block.urgent { border-left: 4px solid var(--urgent); }
.block.today { border-left: 4px solid var(--today); }
.block.soon, .block.events { border-left: 4px solid var(--menthe); }
.calm { font-family: var(--script); font-size: 20px; color: var(--amour); }
.alert { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; margin-bottom: 6px; border-radius: 10px; background: var(--amour-soft); color: var(--urgent); text-decoration: none; }
.alert:hover { filter: brightness(0.97); }
.group { margin-bottom: 8px; }
.group-head { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--amour); text-decoration: none; margin: 10px 0 2px; }
.group-head .muted { text-transform: none; letter-spacing: 0; }
.more > summary, .day-fold > summary { cursor: pointer; color: var(--amour); font-size: 14px; padding: 6px 0; list-style-position: inside; }
.day-fold { border-bottom: 1px solid var(--line); padding: 2px 0; }
.day-fold:last-child { border-bottom: 0; }
.day-name { font-weight: 600; }
.event-minis { display: grid; gap: 10px; }
.event-mini { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: inherit; }
.event-mini:hover { border-color: var(--amour); }
.event-mini .when { display: flex; flex-direction: column; align-items: center; min-width: 76px; font-size: 12px; color: var(--muted); text-align: center; }
.event-mini .big { font-family: var(--serif); font-size: 20px; color: var(--amour); }
.event-mini .what { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.event-mini .name { font-size: 16px; }

/* ---- Tasks */
.task { display: flex; align-items: flex-start; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: 0; }
.task input[type=checkbox] { margin-top: 2px; }
.task-body { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; display: flex; flex-direction: column; }
.task-title { display: flex; align-items: center; }
.task-meta { font-size: 13px; color: var(--muted); }
.task-meta .late { color: var(--urgent); }
.task.done .task-title { text-decoration: line-through; color: var(--muted); }
.task.is-late .task-title { color: var(--urgent); }
.later { align-self: center; }
.later-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.later-row .label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-right: 4px; }

/* ---- Events */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.event-card { margin: 0; transition: transform 0.15s; }
.event-card:hover { transform: translateY(-2px); }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.card-title { font-family: var(--serif); font-size: 22px; line-height: 1.2; margin-bottom: 4px; color: var(--amour); }
.progress { height: 6px; border-radius: 3px; background: rgba(121, 19, 64, 0.1); margin: 12px 0 8px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--menthe); border-radius: 3px; }
.card-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card-foot .amount { margin-left: auto; font-family: var(--serif); font-size: 17px; }
.back { display: inline-block; margin-bottom: 10px; text-decoration: none; font-size: 14px; }
.event-head { margin-bottom: 18px; }
.event-head .display { margin: 4px 0 6px; }
.lede { font-family: var(--serif); font-style: italic; font-size: 20px; }
.head-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.status-select { width: auto; min-height: 34px; padding: 4px 30px 4px 14px; border-radius: 999px; border: 0; font-size: 14px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 10px; }
.check-group { background: var(--paper); border-radius: var(--radius); padding: 4px 18px; margin-bottom: 10px; box-shadow: var(--shadow); }
.check-group > summary { display: flex; justify-content: space-between; align-items: center; cursor: pointer; padding: 12px 0; list-style: none; }
.check-group > summary::-webkit-details-marker { display: none; }
.check-group .cat { font-family: var(--serif); text-transform: uppercase; letter-spacing: 0.08em; font-size: 17px; }
.check-group .count { font-size: 13px; color: var(--muted); }
.check-group.complete .cat { color: var(--menthe-ink); }
.check-group.complete .cat::after { content: " ✓"; }
.check-group[open] > summary { border-bottom: 1px solid var(--line); }
.person { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.person:last-child { border-bottom: 0; }
.person-main { min-width: 0; }
.person-name { font-size: 17px; text-decoration: none; }
.person-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 640px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat { background: var(--paper); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.stat .label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.stat .value { font-family: var(--serif); font-size: 26px; color: var(--amour); }
.stat.pos .value { color: var(--menthe-ink); }
.stat.neg .value, .stat.warn .value { color: var(--urgent); }
.expense { display: grid; grid-template-columns: 70px 1fr auto auto; gap: 10px; align-items: center; width: 100%; padding: 9px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; }
.expense:last-child { border-bottom: 0; }
@media (max-width: 520px) { .expense { grid-template-columns: 1fr auto; } .expense .tag, .expense > .muted { display: none; } }

/* ---- Calendar */
.cal-nav { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.cal-title { font-family: var(--serif); font-size: 22px; min-width: 0; margin: 0 6px; }
.cal-nav .check { margin-left: auto; }
.legend { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.pill-mini { display: block; font-size: 11px; padding: 1px 6px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.legend .pill-mini { display: inline-block; }
.k-event { background: var(--amour); color: var(--paper); }
.k-install { background: var(--petal); color: var(--ink); }
.k-dismantle { background: var(--menthe); color: var(--ink); }
.k-money { background: var(--today-soft); color: #8a4f15; }
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.month .dow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); text-align: center; padding: 4px 0; }
.cell { min-height: 92px; background: var(--paper); border: 1px solid transparent; border-radius: 10px; padding: 4px; display: flex; flex-direction: column; gap: 2px; text-align: left; cursor: pointer; min-width: 0; }
.cell:hover { border-color: var(--amour); }
.cell.other { opacity: 0.45; }
.cell.is-today { border-color: var(--amour); box-shadow: inset 0 0 0 1px var(--amour); }
.cell .num { font-size: 13px; color: var(--muted); }
.cell .task-count, .cell .more-mini { font-size: 11px; color: var(--muted); }
@media (max-width: 640px) { .cell { min-height: 64px; } .cell .pill-mini { font-size: 0; height: 6px; padding: 0; } .cell .task-count { font-size: 0; } .cell .task-count::before { content: "•"; font-size: 14px; color: var(--today); } }
.agenda-day { background: var(--paper); border-radius: var(--radius); padding: 10px 16px; margin-bottom: 10px; box-shadow: var(--shadow); }
.agenda-day.is-today { border-left: 4px solid var(--amour); }
.agenda-day h3 { display: flex; align-items: center; font-family: var(--serif); font-size: 18px; padding-bottom: 4px; }
.agenda-day h3 .dow { text-transform: uppercase; letter-spacing: 0.08em; color: var(--amour); }
.agenda-day h3 .add { margin-left: auto; }
.cal-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; margin: 6px 0; text-decoration: none; }
.cal-item .time { min-width: 44px; font-size: 13px; }
.cal-item .what { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.cal-item .eyebrow { color: inherit; opacity: 0.8; }
.cal-item .amount { font-size: 14px; }

/* ---- Contacts */
.list { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 4px 16px; }
.contact-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.contact-row:last-child { border-bottom: 0; }
.contact-row .main { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.contact-row .name { font-size: 16px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--petal-soft); color: var(--amour); font-family: var(--serif); font-size: 18px; flex: none; }
.kind-client { background: var(--petal-soft); color: var(--amour); }
.kind-supplier { background: var(--today-soft); color: #8a4f15; }
.kind-florist, .kind-freelancer { background: var(--menthe-soft); color: var(--menthe-ink); }

/* ---- Settings timeline */
.timeline { margin-top: 14px; }
.tl-group { margin-bottom: 12px; }
.tl-when { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--amour); margin-bottom: 4px; }
.tl-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer; }
.tl-item span:first-child { flex: 1; }
.tl-item:disabled { cursor: default; opacity: 0.75; }

/* ---- Sheets */
.backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(30, 39, 34, 0.35); display: flex; align-items: center; justify-content: center; padding: 16px; }
.sheet { background: var(--chantilly); border-radius: 18px; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 18px 20px 22px; box-shadow: 0 20px 60px rgba(30, 39, 34, 0.25); }
.sheet.wide { max-width: 680px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sheet-head h2 { font-family: var(--serif); text-transform: uppercase; letter-spacing: 0.06em; font-size: 21px; color: var(--amour); }
@media (max-width: 760px) {
  .backdrop { align-items: flex-end; padding: 0; }
  .sheet, .sheet.wide { max-width: none; border-radius: 18px 18px 0 0; max-height: 92vh; padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
}
.pick-list { display: flex; flex-direction: column; gap: 8px; }
.pick { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: 16px; text-align: left; }
.pick:hover { border-color: var(--amour); }

/* ---- Toasts */
#toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(90px + env(safe-area-inset-bottom)); z-index: 60; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 440px); }
@media (min-width: 761px) { #toasts { bottom: 24px; } }
.toast { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 12px; background: var(--ink); color: var(--paper); box-shadow: var(--shadow); }
.toast.error { background: var(--urgent); }
.toast-action { background: none; border: 1px solid currentColor; color: inherit; border-radius: 999px; padding: 4px 12px; cursor: pointer; }

/* ---- Login */
.login-page { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.login { width: min(360px, 100%); display: flex; flex-direction: column; align-items: center; gap: 18px; }
.login-logo { width: 240px; max-width: 80%; }
.login form { width: 100%; display: flex; flex-direction: column; gap: 14px; }
.form-error { color: var(--urgent); margin: 0; }
