/* Casa Monteflores CRM: the palette and type of the guest-links page, the layout of the Maple Zen CRM. */
:root {
  --cream: #F8F4ED; --paper: #FFFCF7; --sage: #525C3F; --sage-deep: #3F4730; --sage-soft: #828B6E;
  --coral: #DD8268; --coral-deep: #C66A52; --hairline: #E2D9C6; --red: #a4352a; --dark: #2B3020;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--cream); color: var(--sage-deep); font-family: var(--sans); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h2, h3 { margin: 0; font-weight: 500; }
h2 { font-family: var(--serif); font-size: 2rem; }
h3 { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage); margin-bottom: 10px; }
h3.gap, .gap { margin-top: 18px; }
p { margin: 0 0 10px; }
a { color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--sage-soft); } .small { font-size: 0.84rem; }
.err { color: var(--red); font-size: 0.86rem; min-height: 1em; margin: 6px 0 0; }
.note { font-size: 0.86rem; color: var(--sage-soft); } .note.error { color: var(--red); }
.hint { font-size: 0.84rem; color: var(--sage-soft); margin: 4px 0 12px; }

label { display: flex; flex-direction: column; gap: 5px; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.04em; color: var(--sage); }
label.check { flex-direction: row; align-items: center; gap: 8px; font-size: 0.92rem; font-weight: 400; letter-spacing: 0; color: var(--sage-deep); margin: 6px 0; cursor: pointer; }
label.check input { width: auto; margin: 0; cursor: pointer; }
input, select, textarea { font: inherit; font-weight: 400; padding: 9px 12px; border: 1px solid var(--hairline); border-radius: 9px; background: #fff; color: var(--sage-deep); min-height: 40px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--coral); outline-offset: 1px; }
textarea { resize: vertical; line-height: 1.5; }
select { cursor: pointer; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 18px; min-height: 40px; border: 1px solid transparent; border-radius: 999px; background: var(--coral); color: #fff; font: inherit; font-size: 0.86rem; font-weight: 600; text-decoration: none; white-space: nowrap; cursor: pointer; }
.btn:hover { background: var(--coral-deep); }
.btn.small { min-height: 34px; padding: 0 14px; font-size: 0.8rem; }
.btn.quiet { background: transparent; border-color: var(--sage); color: var(--sage-deep); }
.btn.quiet:hover { background: var(--sage); color: #fff; }
.btn.coral { background: var(--sage-deep); } .btn.coral:hover { background: var(--dark); }
.btn.light { background: #fff; color: var(--dark); } .btn.red { background: #d7263d; } .btn.red:hover { background: #b81f33; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.link { border: 0; background: none; padding: 0; color: var(--sage); font: inherit; font-size: 0.86rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link:hover { color: var(--coral-deep); } .link.danger:hover { color: var(--red); } .link.small { font-size: 0.78rem; margin-left: 8px; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 14px clamp(16px, 4vw, 40px); background: var(--paper); border-bottom: 1px solid var(--hairline); position: sticky; top: 0; z-index: 50; }
.brand { font-family: var(--serif); font-size: 1.45rem; color: var(--sage-deep); text-decoration: none; cursor: pointer; }
.where { margin-left: 10px; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--coral); }
.topnav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.nav-item { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage-soft); text-decoration: none; padding: 5px 0; border-bottom: 2px solid transparent; cursor: pointer; }
.nav-item:hover, .nav-item.active { color: var(--sage-deep); } .nav-item.active { border-bottom-color: var(--coral); }
.count { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--coral); color: #fff; font-size: 0.68rem; letter-spacing: 0; text-align: center; }
.top-right { display: flex; align-items: center; gap: 14px; }
.who { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.who select { min-height: 32px; padding: 2px 8px; width: auto; }

.main { width: min(100% - 32px, 1180px); margin: 26px auto 80px; }
.topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.topbar h2 { margin-right: auto; }
#view-contact .topbar h2 { margin-right: 0; } #c-from { margin-right: auto; }
.topbar input { width: 260px; }
.dial { display: flex; gap: 6px; align-items: center; } .dial input { width: 180px; }
.card { background: var(--paper); border: 1px solid var(--hairline); border-radius: 14px; overflow: hidden; }
.card.pad { padding: clamp(16px, 2.4vw, 24px); }
.card + .card, .card + details, details + .card, #inbox-list .card { margin-top: 14px; }
#inbox-list .card:first-child { margin-top: 0; }
.empty { padding: 34px; text-align: center; color: var(--sage-soft); }

.row { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; align-items: center; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .grid2 .wide { grid-column: 1 / -1; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.grid4 { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr auto; gap: 12px; align-items: end; }
.grid-btn { display: flex; gap: 12px; align-items: center; min-height: 40px; }

.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; background: var(--cream); color: var(--sage-soft); border: 1px solid var(--hairline); }
.chip.on { background: #E7EEDD; border-color: #C9D6B6; color: var(--sage-deep); }
.chip.hot { background: #FBE6DD; border-color: #F1C4B4; color: var(--coral-deep); }
.chip:empty { display: none; }
.email-state { margin-top: -4px; padding: 8px 12px; border-radius: 8px; font-size: 0.84rem; line-height: 1.5; background: #FBE6DD; border: 1px solid #F1C4B4; color: var(--red); }
.email-state.delayed { background: #FFF6DD; border-color: #EBD9A4; color: #7A5A12; }
.email-state.quiet { padding: 0; background: none; border: 0; }
.email-state .link { margin-left: 6px; }
.bad-email { color: var(--red); }

/* guests and people */
.guest { border-top: 1px solid var(--hairline); padding: 16px clamp(16px, 2.4vw, 24px); }
.guest:first-child { border-top: 0; }
.guest-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 16px; }
.guest-who { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.guest-name { font-family: var(--serif); font-size: 1.35rem; text-decoration: none; cursor: pointer; } .guest-name:hover { color: var(--coral-deep); }
.guest-meta { font-size: 0.88rem; color: var(--sage); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.actions-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; }
.avatar { flex: none; width: var(--s, 44px); height: var(--s, 44px); padding: 0; border: 1px solid var(--hairline); border-radius: 50%; overflow: hidden; background: var(--cream); cursor: pointer; }
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.avatar:hover, .avatar:focus-visible { outline: 2px solid var(--coral); outline-offset: 2px; }
.avatar.blank { display: inline-flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 600; color: var(--sage-soft); cursor: default; outline: 0; }

/* inbox */
.prop-head { display: flex; gap: 12px; align-items: flex-start; }
.prop-ic { flex: none; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; background: var(--cream); border-radius: 50%; font-size: 1rem; }
.prop-title { font-weight: 600; }
.prop-context { margin-top: 10px; white-space: pre-wrap; word-break: break-word; }
.prop-draft { margin-top: 10px; background: #fff; }
.prop-en { margin-top: 6px; font-size: 0.86rem; color: var(--sage-soft); white-space: pre-wrap; }
#c-proposals .card { margin-top: 12px; background: #fff; }

/* tables */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--sage-soft); text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--hairline); }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--hairline); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl.plain td { padding: 8px 0; } .tbl.plain select { max-width: 420px; }
#wa-phone { max-width: 260px; }
.tname { color: var(--sage-deep); font-weight: 500; } .tsub { color: var(--sage-soft); font-size: 0.84rem; }
.cal-wrap { display: block; margin-top: 14px; padding: 0; border: 1px solid var(--hairline); border-radius: 10px; overflow: hidden; background: #fff; cursor: zoom-in; max-width: 560px; }
.cal-wrap img { display: block; width: 100%; height: auto; }

/* one person */
.detail { display: grid; grid-template-columns: 410px 1fr; gap: 16px; align-items: start; }
.col-left { display: flex; flex-direction: column; gap: 14px; } .col-left .card + .card, #c-stays .card + .card { margin-top: 0; }
#c-stays { display: flex; flex-direction: column; gap: 14px; } #c-stays:empty { display: none; }
.stay-dates { font-family: var(--serif); font-size: 1.25rem; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; border-top: 1px solid var(--hairline); padding-top: 14px; margin-top: 14px; }
.actions-danger { display: flex; justify-content: flex-end; margin-top: 10px; }
.composer { padding: 14px 16px; border-bottom: 1px solid var(--hairline); background: var(--cream); }
#timeline, #chat-messages { max-height: 72vh; overflow-y: auto; }
.ev { padding: 13px 16px; border-bottom: 1px solid var(--hairline); display: flex; gap: 12px; }
.ev:last-child { border-bottom: 0; }
.ev .ic { flex: none; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; background: var(--cream); border-radius: 50%; font-size: 0.95rem; }
.ev.mine { background: #F3F6EC; }
.ev .ev-type { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage-soft); }
.ev .body { white-space: pre-wrap; word-break: break-word; }
.ev .when { margin-left: auto; flex: none; color: var(--sage-soft); font-size: 0.78rem; }
.ev audio { margin-top: 6px; width: 270px; height: 34px; display: block; }
.ev img.mms { max-width: 200px; display: block; margin-top: 8px; border: 1px solid var(--hairline); border-radius: 8px; cursor: zoom-in; }
.ai { margin-top: 8px; padding: 10px 12px; background: var(--cream); border-left: 2px solid var(--coral); border-radius: 0 8px 8px 0; font-size: 0.86rem; line-height: 1.55; }
.ai-h { margin-top: 8px; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--sage-soft); }
.ai ul { margin: 2px 0 0 16px; padding: 0; }
.ai details summary { cursor: pointer; color: var(--sage-soft); margin-top: 8px; font-size: 0.8rem; }
.ai pre { white-space: pre-wrap; font: inherit; margin: 6px 0 0; max-height: 340px; overflow: auto; }

/* chats */
.chat-layout { display: grid; grid-template-columns: 300px 1fr; gap: 16px; align-items: start; } .chat-layout .card + .card { margin-top: 0; }
.chat-item { display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--hairline); background: none; text-align: left; font: inherit; cursor: pointer; }
.chat-item:hover, .chat-item.active { background: var(--cream); }
.wa-code { font-family: ui-monospace, Menlo, monospace; font-size: 2rem; letter-spacing: 0.2em; margin: 14px 0 0; color: var(--sage-deep); }

/* calls */
.livecall, .callbar { position: sticky; top: 70px; z-index: 30; background: var(--dark); color: #fff; padding: 12px 16px; margin-bottom: 14px; border-radius: 12px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.livecall { cursor: pointer; animation: ring 1.2s ease-in-out infinite; } .livecall b { color: var(--coral); }
.callbar .cb-who { flex: 1; min-width: 150px; line-height: 1.25; } .callbar .cb-who b { display: block; color: #F3C9BB; font-weight: 500; } .callbar .cb-who span { font-size: 0.84rem; opacity: 0.85; }
.callbar .cb-status { font-variant-numeric: tabular-nums; min-width: 150px; font-size: 0.84rem; }
.callbar .cb-actions { display: flex; gap: 8px; }
.cb-keypad { flex-basis: 100%; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 0 4px; }
.cb-digits { min-height: 20px; font-size: 1rem; letter-spacing: 4px; color: #F3C9BB; }
.cb-grid { display: grid; grid-template-columns: repeat(3, 64px); gap: 8px; }
.cb-grid button { height: 44px; font: inherit; font-size: 1.1rem; background: #3a402c; color: #fff; border: 1px solid #555c44; border-radius: 8px; cursor: pointer; }
.cb-grid button:hover { background: #4a5138; }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(221, 130, 104, 0.6); } 50% { box-shadow: 0 0 0 8px rgba(221, 130, 104, 0); } }

.photo-box { padding: 0; border: 0; border-radius: 14px; background: var(--paper); max-width: min(94vw, 1000px); overflow: hidden; }
.photo-box::backdrop { background: rgba(31, 36, 24, 0.78); cursor: pointer; }
.photo-box figure { margin: 0; }
.photo-box img { display: block; width: auto; height: auto; min-width: min(80vw, 320px); max-width: 100%; max-height: 82vh; margin: 0 auto; background: var(--cream); }
.photo-box figcaption { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 18px; font-family: var(--serif); font-size: 1.2rem; }

/* Call bar on a person's page: their number and other ways to reach them */
.reach { margin-bottom: 16px; }
.reach-head { padding: 10px 16px; font-size: 0.78rem; color: var(--sage-soft); border-bottom: 1px solid var(--hairline); background: var(--cream); }
.reach-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--hairline); }
.reach-row > .btn { flex: none; }
.reach-sub { font-size: 0.8rem; color: var(--sage-soft); } .reach-sub .link { font-size: 0.8rem; }
.reach-head + .reach-row { border-top: 0; }
.reach-who { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; line-height: 1.3; }
.reach-label { font-size: 0.74rem; font-weight: 600; color: var(--sage); }
.reach-num { font-size: 1.05rem; color: var(--sage-deep); text-decoration: none; font-variant-numeric: tabular-nums; }
.reach-main .reach-num { font-size: 1.2rem; }
.reach-act { display: flex; align-items: center; gap: 14px; }
.reach .btn .i.inline { margin-right: 0; }
.reach .err { margin: 0; padding: 0 16px; } .reach .err:empty { display: none; } .reach .err:not(:empty) { padding: 0 16px 12px; }
#call-btn { display: none; } .actions { grid-template-columns: 1fr; }

/* Phones and short screens (a phone turned sideways is wide but short) */
@media (max-width: 900px), (max-height: 520px) {
  .detail, .chat-layout { grid-template-columns: 1fr; }
  .grid3, .grid4 { grid-template-columns: 1fr; }
  .topbar input, .dial, .dial input { flex: 1 1 100%; width: auto; }
  input, textarea, select { font-size: 16px; } /* stops iOS focus-zoom */
  .livecall, .callbar { top: 0; }
  .top { gap: 6px 12px; padding: 8px 16px 0; }
  .brand { font-size: 1.2rem; } .where { margin-left: 6px; }
  .topnav { order: 3; flex: 1 1 100%; flex-wrap: nowrap; gap: 18px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 6px; }
  .topnav::-webkit-scrollbar { display: none; }
  .nav-item { white-space: nowrap; flex: none; padding: 8px 0 6px; }
  #biz-number { display: none; }
  .top-right { gap: 10px; }
  .main { margin: 14px auto 60px; }
  h2 { font-size: 1.6rem; }
  .topbar { gap: 8px 10px; margin-bottom: 12px; }
  #timeline, #chat-messages { max-height: none; }
  .ev { padding: 12px 14px; gap: 10px; flex-wrap: wrap; } .ev > div:not(.ic):not(.when) { flex: 1 1 0; min-width: 0; }
  .ev audio { width: 100%; max-width: 320px; }
  .guest-name { font-size: 1.2rem; }
  .callbar { padding: 10px 12px; gap: 8px 12px; } .callbar .cb-status { min-width: 0; }
}
/* Short screens: the header scrolls away instead of covering half the page */
@media (max-height: 520px) { .top { position: static; } }

/* Narrow screens: table rows become stacked cards instead of a sideways scroll */
@media (max-width: 700px) {
  .tbl:not(.plain) thead { display: none; }
  .tbl:not(.plain), .tbl:not(.plain) tbody, .tbl:not(.plain) tr, .tbl:not(.plain) td { display: block; width: 100%; }
  .tbl:not(.plain) tr { padding: 10px 0; border-bottom: 1px solid var(--hairline); }
  .tbl:not(.plain) tr:last-child { border-bottom: 0; }
  .tbl:not(.plain) td { border: 0; padding: 4px 16px; }
  .tbl:not(.plain) td input, .tbl:not(.plain) td select { max-width: 100%; }
  .tbl:not(.plain) td:empty { display: none; }
  .tbl.plain td { display: block; }
  .reach-row { padding: 10px 14px; }
  .reach-row .btn { min-height: 40px; padding: 0 18px; }
  .grid2 { grid-template-columns: 1fr; }
  .top-right .who { font-size: 0.8rem; }
}
.rating-line { margin: 0 0 12px; color: var(--sage); }
.rating-line b { color: var(--sage-deep); font-size: 1.1rem; }
.chip.star { background: #FFF6DD; border-color: #EBD9A4; color: #7A5A12; letter-spacing: 0.02em; }
.review-stars { color: #C8961E; font-size: 1.15rem; letter-spacing: 0.08em; margin-bottom: 6px; }
.review-draft { margin-top: 4px; background: #fff; }
#c-reviews { display: flex; flex-direction: column; gap: 14px; } #c-reviews:empty { display: none; }

.steps { margin: 8px 0 10px; padding-left: 20px; line-height: 1.55; }
.steps li { margin: 3px 0; }

/* bedrooms made up to the party size */
.rooms-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 10px 0 0; padding: 8px 10px; background: var(--cream); border-radius: 10px; }
.rooms-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sage-soft); }
.rooms-words { font-size: 0.84rem; color: var(--sage-deep); }
.rooms-pick { max-width: 100%; }
.rooms-note { flex-basis: 100%; font-size: 0.82rem; color: var(--sage); }
.rooms-note i { color: var(--sage-soft); }
.rooms { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.room { display: inline-block; padding: 3px 9px; border-radius: 8px; font-size: 0.72rem; font-weight: 600; line-height: 1.3; }
.room.open { background: var(--room); color: #fff; }
.room.closed { background: var(--cream); color: #9A9382; border: 1px solid var(--hairline); }
#bedroom-legend:empty { display: none; }
.legend summary { cursor: pointer; font-weight: 600; color: var(--sage-deep); font-size: 0.92rem; }
.bedroom-chart { border-collapse: separate; border-spacing: 4px; margin: 12px 0 4px; font-size: 0.8rem; }
.bedroom-chart th { font-weight: 600; color: var(--sage); text-align: left; padding: 2px 6px; white-space: nowrap; }
.bedroom-chart thead th i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.bedroom-chart td { padding: 7px 10px; border-radius: 8px; text-align: center; font-weight: 600; min-width: 84px; }
.bedroom-chart td.on { background: var(--room); color: #fff; }
.bedroom-chart td.off { background: var(--cream); color: #9A9382; border: 1px solid var(--hairline); }
.bedroom-chart td.n { text-align: left; color: var(--sage-deep); white-space: nowrap; }
#minut-url { font-size: 0.82rem; background: var(--paper); border: 1px solid var(--hairline); border-radius: 6px; padding: 4px 8px; word-break: break-all; }
/* Stay Extras: a surprise someone in the group ordered, and the orders on a stay. */
.chip.surprise { background: #F3E9F5; border-color: #DCC6E2; color: #6A3F78; }
.extras-list { margin: 10px 0 0; padding: 8px 10px; background: var(--cream); border-radius: 10px; }
.extra-order { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 6px 0; border-top: 1px solid var(--hairline); font-size: 0.86rem; }
.extras-list .rooms-label + .extra-order { border-top: 0; }
.extra-act { display: inline-flex; align-items: center; gap: 8px; }

/* Inbox: recent activity, one tab at a time */
.activity { margin-top: 28px; }
.activity-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.activity-head h3 { margin: 0; }
.tabs { display: inline-flex; gap: 2px; padding: 3px; background: var(--paper); border: 1px solid var(--hairline); border-radius: 999px; }
.tab { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 6px 14px; border-radius: 999px; font: inherit; font-size: 0.8rem; font-weight: 600; color: var(--sage-soft); cursor: pointer; }
.tab:hover { color: var(--sage-deep); }
.tab.active { background: var(--sage-deep); color: #fff; }
.tab-n { font-size: 0.7rem; font-weight: 600; opacity: 0.7; }
.tab-n:empty { display: none; }
.activity-list .ev .ev-type { text-transform: none; letter-spacing: 0.02em; font-size: 0.74rem; }
.activity-list .quote { margin-top: 6px; padding-left: 10px; border-left: 2px solid var(--hairline); color: var(--sage-soft); font-size: 0.88rem; }
.status { font-weight: 600; } .status.s-sent, .status.s-done { color: var(--sage); } .status.s-dismissed, .status.s-expired { color: var(--sage-soft); } .status.s-failed { color: var(--red); }
.activity-more { display: block; margin: 10px auto 0; }
@media (max-width: 600px) { .activity-head { flex-direction: column; align-items: flex-start; } }
.activity-list .ev .ev-type::first-letter { text-transform: uppercase; }

/* Folding sections: no browser triangle; a line chevron that turns when open */
summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ''; flex: none; width: 16px; height: 16px; background: currentColor; opacity: 0.55; transition: transform 0.15s ease;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; }
details[open] > summary::after { transform: rotate(180deg); }
.past { margin-top: 16px; background: var(--paper); border: 1px solid var(--hairline); border-radius: 14px; overflow: hidden; }
.past > summary { padding: 14px 18px; font-size: 0.86rem; font-weight: 600; color: var(--sage-deep); }
.past > summary::after { margin-left: auto; }
.past > summary:hover { background: #FBF7F0; }
.past > .card { margin-top: 0; border: 0; border-top: 1px solid var(--hairline); border-radius: 0; }
.legend > summary, .tr > summary { display: inline-flex; }

/* Line icons */
.i { width: 18px; height: 18px; display: block; }
.i.inline { display: inline-block; width: 13px; height: 13px; vertical-align: -2px; margin-right: 3px; }
.ev .ic, .prop-ic { color: var(--sage); }
.ev .ic .i { width: 16px; height: 16px; }
