/* Emvane (views/emvane.js): requests, projects and rounds of emvane.com's client area. Built from the
   hub's own parts (card, chip, status, rl-tabs, notice); only what's Emvane's own is here, prefixed em-. */

.em{display:grid;gap:16px}
.em-back{justify-self:start;font-size:13px;margin-bottom:-4px}
.em-back .icon{transform:none}
.em-back:hover .icon{transform:translateX(-2px)}
.em-readonly{margin:0}
.em-small{font-size:var(--t-small);line-height:1.5}

/* Status of a request and phase of a project */
.em-status.s-received{background:var(--info-soft);color:var(--info)}
.em-status.s-call_planned{background:var(--season-soft);color:var(--season)}
.em-status.s-quote_sent{background:var(--warn-soft);color:var(--warn)}
.em-status.s-accepted{background:var(--success-soft);color:var(--success)}
.em-status.s-closed{background:var(--surface-3);color:var(--muted)}
.em-phase.p-deposit{background:var(--warn-soft);color:var(--warn)}
.em-phase.p-design,.em-phase.p-build{background:var(--accent-soft);color:var(--accent-ink)}
.em-phase.p-feedback_1,.em-phase.p-feedback_2{background:var(--season-soft);color:var(--season)}
.em-phase.p-live,.em-phase.p-aftercare{background:var(--success-soft);color:var(--success)}
.em-phase.p-done{background:var(--surface-3);color:var(--muted)}

/* Whose turn: the API's sentence (what the client sees) with who it waits on */
.em-turn{display:inline-flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;font-size:13px;line-height:1.45;color:var(--ink-2)}
.em-turn b{font-size:11.5px;font-weight:650;padding:1px 8px;border-radius:var(--r-full);white-space:nowrap;background:var(--surface-3);color:var(--muted)}
.em-turn.t-client b{background:var(--warn-soft);color:var(--warn)}
.em-turn.t-emvane b{background:var(--accent-soft);color:var(--accent-ink)}
.em-turn.t-none b{background:var(--success-soft);color:var(--success)}

/* The lists */
.em-table{padding:6px}
.em-table ul{list-style:none;margin:0;padding:0;display:grid;gap:1px}
.em-row{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(0,.9fr) minmax(0,.8fr) minmax(0,1.8fr) minmax(0,1.2fr);gap:14px;align-items:center;width:100%;text-align:left;padding:10px 12px;border:0;border-radius:var(--r-md);background:none;box-shadow:none;white-space:normal;font-weight:400;color:var(--ink)}
.em-table.projects .em-row{grid-template-columns:minmax(0,1.8fr) minmax(0,.8fr) minmax(0,2.2fr) minmax(0,1fr)}
button.em-row:hover{background:var(--surface-2)}
.em-head{padding:6px 12px 8px;font-size:var(--t-caption);font-weight:650;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);border-bottom:1px solid var(--line);border-radius:0;margin-bottom:4px}
.em-who{display:grid;gap:1px;min-width:0}
.em-who strong{font-weight:620;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.em-who .muted{font-size:var(--t-small);line-height:1.4;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.em-row.is-new .em-who strong::before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--info);margin-right:7px;vertical-align:1px}
.em-cell{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0;font-size:13px}
.em-date{display:grid;gap:0;font-variant-numeric:tabular-nums}
.em-date small{font-size:11.5px}
.em-in{display:inline-flex;align-items:center;gap:4px;color:var(--success);font-weight:560}
.em-in .icon{width:14px;height:14px}
.em-state .chip .icon{width:12px;height:12px}

/* A request's or project's page */
.em-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:16px;align-items:start}
.em-layout>*{min-width:0}
.em-main{gap:16px}
.em-side{display:grid;gap:12px;position:sticky;top:16px}
.em-top{display:grid;gap:12px}
.em-top-row{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.em-top h2{font:650 var(--t-title-3)/1.25 var(--font-display);letter-spacing:-.01em}
.em-top-row .muted{font-size:13.5px;margin:0}
.em-top-row .link-button{font-size:13px}
.em-chip-link{text-decoration:none}
.em-chip-link:hover{color:var(--accent-ink)}
.em-side-card{display:grid;gap:12px}
.em-side-card .card-head{margin-bottom:0}
.em-side-card>.primary,.em-side-card>.ghost{justify-self:start}
.em-side-card.is-live{box-shadow:inset 0 0 0 1px var(--success-soft),var(--shadow-1)}
.em-form{display:grid;gap:12px}
.em-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.em-buttons{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.em-form .em-small{display:flex;gap:6px;align-items:flex-start;margin:0}
.em-form .em-small .icon{width:14px;height:14px;margin-top:2px;flex:none}
.em-client-sees{font-size:13px;line-height:1.5;color:var(--ink-2);display:grid;gap:2px;padding:10px 12px;border-radius:var(--r-md);background:var(--surface-2);margin:0}
.em-client-sees .muted{font-size:11.5px;font-weight:600;text-transform:uppercase;letter-spacing:.05em}

/* Status steps of a request */
.em-steps{list-style:none;margin:0;padding:0;display:grid;gap:6px;font-size:13px;color:var(--muted)}
.em-steps li{display:flex;align-items:center;gap:9px}
.em-steps li>span{width:18px;height:18px;border-radius:50%;box-shadow:inset 0 0 0 1.5px var(--line-strong);display:grid;place-items:center;flex:none}
.em-steps li>span .icon{width:12px;height:12px}
.em-steps li.done{color:var(--ink-2)}
.em-steps li.done>span{background:var(--success);box-shadow:none;color:#fff}
.em-steps li.now{color:var(--ink);font-weight:620}
.em-steps li.now>span{box-shadow:inset 0 0 0 5px var(--accent)}

/* What the client filled in */
.em-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 20px;margin:0}
.em-fields>div{min-width:0}
.em-fields .wide{grid-column:1/-1}
.em-fields dt{font-size:var(--t-small);font-weight:600;color:var(--muted);margin-bottom:2px}
.em-fields dd{margin:0;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere}
.em-fields a{color:var(--accent-ink)}

/* Members */
.em-members{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.em-members li{display:flex;gap:10px;align-items:center;min-width:0}
.em-members li>span:last-child{display:grid;min-width:0}
.em-members strong{font-size:13.5px;font-weight:600;overflow:hidden;text-overflow:ellipsis}
.em-members small{font-size:var(--t-small);overflow:hidden;text-overflow:ellipsis}

/* The log */
.em-log ol{list-style:none;margin:0;padding:0;display:grid;gap:0;position:relative}
.em-log li{display:grid;grid-template-columns:16px minmax(0,1fr);column-gap:10px;padding:0 0 12px;position:relative}
.em-log li:not(:last-child)::after{content:"";position:absolute;left:7px;top:14px;bottom:0;width:2px;background:var(--line)}
.em-log-dot{width:10px;height:10px;border-radius:50%;margin:4px 0 0 3px;background:var(--accent);box-shadow:0 0 0 3px var(--surface)}
.em-log li.a-client .em-log-dot{background:var(--warn)}
.em-log li.a-system .em-log-dot{background:var(--faint)}
.em-log-text{font-size:13.5px;line-height:1.45}
.em-log-meta{grid-column:2;font-size:var(--t-small);line-height:1.4}

/* Rounds */
.em-rounds{display:grid;gap:10px}
.em-rounds-head{margin:4px 0 0;gap:6px 10px;justify-content:flex-start;flex-wrap:wrap}
.em-rounds-head .muted{white-space:nowrap}
.em-rounds-head>button{margin-left:auto}
.em-round-list{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.em-round{display:grid;gap:14px}
.em-round.is-draft{box-shadow:inset 0 0 0 1.5px var(--accent-line),var(--shadow-1)}
.em-round-head{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.em-round-head h3{font-size:var(--t-body);font-weight:650;margin-right:2px}
.em-round-toggle{width:100%;border:0;background:none;box-shadow:none;padding:0;text-align:left;white-space:normal;font-weight:400;color:var(--ink)}
.em-round-toggle:hover{background:none}
.em-round-when{margin-left:auto}
.em-chevron{transition:transform var(--dur-2) var(--ease-out);color:var(--muted)}
.em-round-toggle[aria-expanded=true] .em-chevron{transform:rotate(180deg)}
.em-kind{margin-left:auto}
.em-round-state.draft{background:var(--surface-3);color:var(--muted)}
.em-round-state.waiting{background:var(--info-soft);color:var(--info)}
.em-round-state.approved{background:var(--success-soft);color:var(--success)}
.em-round-state.feedback{background:var(--warn-soft);color:var(--warn)}
.em-extra{background:var(--danger-soft);color:var(--danger);font-weight:620}
.em-extra-notice{background:var(--danger-soft);color:var(--danger)}
.em-extra-notice strong{display:block;margin-bottom:2px}
.em-note textarea{min-height:90px}
.em-round-note{white-space:pre-wrap;line-height:1.55;color:var(--ink-2);margin:0}
.em-round-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:14px}

.em-items{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.em-item{position:relative;display:grid;gap:6px;min-width:0}
.em-item-view{display:grid;place-items:center;aspect-ratio:4/3;border-radius:var(--r-md);overflow:hidden;background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--line);color:var(--muted);text-decoration:none}
.em-item-view:hover{box-shadow:inset 0 0 0 1.5px var(--accent-line)}
.em-item-view img{width:100%;height:100%;object-fit:cover;object-position:top}
.em-item-icon{display:grid;justify-items:center;gap:6px;padding:10px;text-align:center}
.em-item-icon .icon{width:26px;height:26px}
.em-item-icon b{font-size:12px;font-weight:600;color:var(--ink-2);overflow-wrap:anywhere}
.em-item.k-pdf .em-item-icon .icon{color:var(--danger)}
.em-item.k-link .em-item-icon .icon{color:var(--accent-ink)}
.em-item-caption{font-size:12.5px;line-height:1.35;color:var(--ink-2);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.em-item-remove{position:absolute;top:6px;right:6px;width:28px;height:28px;background:var(--surface);box-shadow:var(--shadow-sm);opacity:.9}
.em-item-remove:hover{color:var(--danger);opacity:1}

.em-add{display:grid;gap:10px}
.em-drop{display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:var(--r-md);border:1.5px dashed var(--line-strong);background:var(--surface-2);transition:border-color var(--dur-1) ease,background var(--dur-1) ease}
.em-drop.over{border-color:var(--accent);background:var(--accent-softer)}
.em-drop>.icon{color:var(--muted);flex:none}
.em-drop>span{display:grid;gap:1px;flex:1;min-width:0;font-size:13px}
.em-drop small{font-size:var(--t-small)}
.em-staged{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.em-staged li{display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:10px;align-items:center}
.em-staged-thumb{width:48px;height:48px;border-radius:var(--r-sm);overflow:hidden;background:var(--surface-2);display:grid;place-items:center;color:var(--muted);box-shadow:inset 0 0 0 1px var(--line)}
.em-staged-thumb img{width:100%;height:100%;object-fit:cover}
.em-staged-main{display:grid;gap:4px;min-width:0}
.em-staged-name{font-size:13px;font-weight:560;display:flex;gap:8px;align-items:baseline;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.em-staged-name small{font-weight:400;font-size:var(--t-small)}
.em-staged input{padding:6px 10px;font-size:13px}
.em-staged li.s-bad .em-staged-thumb,.em-staged li.s-failed .em-staged-thumb{box-shadow:inset 0 0 0 1.5px var(--danger)}
.em-link-form{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) auto;gap:8px}

.em-feedback{display:grid;gap:8px}
.em-feedback blockquote{margin:0;padding:12px 14px;border-radius:var(--r-md);background:var(--warn-soft);display:grid;gap:4px}
.em-round.d-approved .em-feedback blockquote{background:var(--success-soft)}
.em-feedback p{white-space:pre-wrap;line-height:1.55;margin:0;color:var(--ink)}
.em-feedback footer{font-size:var(--t-small)}

@media(max-width:1100px){
  .em-layout{grid-template-columns:minmax(0,1fr)}
  .em-side{position:static;grid-template-columns:repeat(auto-fit,minmax(280px,1fr))}
}
@media(max-width:720px){
  .em-head{display:none}
  .em-row,.em-table.projects .em-row{grid-template-columns:minmax(0,1fr) auto;gap:6px 10px}
  .em-row .em-who{grid-column:1/-1}
  .em-row .em-cell:not(.em-state):not(.em-turn-cell):not(.em-phase-cell){display:none}
  .em-row .em-state,.em-row .em-turn-cell{grid-column:1/-1}
  .em-side{grid-template-columns:minmax(0,1fr)}
  .em-fields{grid-template-columns:minmax(0,1fr)}
  .em-link-form{grid-template-columns:minmax(0,1fr)}
  .em-drop{flex-wrap:wrap}
  .em-items{grid-template-columns:repeat(2,minmax(0,1fr))}
  .em-kind{margin-left:0}
  .em-round-when{margin-left:0}
  .em-chevron{margin-left:auto}
}

/* ── Mails (emvane/notify.js): what a change will mail, and what went out ── */
.em-mail-notice{display:grid;gap:8px;padding:10px 12px;border:1px solid var(--line);border-radius:var(--r-md,10px);background:var(--surface-2,var(--surface))}
.em-mail-notice.is-off{opacity:.72}
.em-mail-notice ul{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.em-mail-notice li{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;align-items:start;font-size:var(--t-small);line-height:1.45}
.em-mail-notice li>span{min-width:0;overflow-wrap:anywhere}
.em-mail-notice li small{display:block}
.em-mail-notice li .icon,p.em-mail-notice .icon{width:14px;height:14px;margin-top:2px;color:var(--accent)}
.em-mail-notice .link-button{padding:0;font-size:12.5px}
.em-check{display:flex;gap:8px;align-items:center;font-size:var(--t-small);font-weight:600;cursor:pointer}
.em-check input{width:16px;height:16px;margin:0;accent-color:var(--accent)}
.em-mails ul{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.em-mails li{display:grid;gap:3px;min-width:0;padding-bottom:12px;border-bottom:1px solid var(--line)}
.em-mails li:last-child{padding-bottom:0;border-bottom:0}
.em-mail-row{display:flex;gap:8px;align-items:baseline;min-width:0}
.em-mail-row strong{font-size:var(--t-small);overflow-wrap:anywhere}
.em-mail-row .chip{flex:none}
.em-mails small{overflow-wrap:anywhere}
.em-mails .chip.bad{color:var(--danger);background:var(--danger-soft)}
.em-mail-actions{display:flex;gap:14px}
.em-mail-actions .link-button{padding:0;font-size:12.5px}
.em-mail-dialog{width:min(720px,calc(100vw - 32px))}
.em-mail-meta{margin:0;padding:10px 18px 0}
.em-mail-frame{display:block;width:100%;height:min(72vh,900px);border:0;background:#f5f5f9;margin-top:10px;border-radius:0 0 var(--r-xl) var(--r-xl)}

/* ── The quote (request page) ── */
.em-quote{display:grid;gap:14px}
.em-quote .card-head{margin-bottom:0}
.em-quote-sum{display:grid;gap:12px}
.em-quote-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px}
.em-quote-price strong{font:650 var(--t-title-2,26px)/1.1 var(--font-display);letter-spacing:-.02em}
.em-quote-price span{font-size:13px}
.em-quote-lists{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.em-quote-lists h4{margin:0 0 6px;font-size:12px;font-weight:650;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.em-quote-lists ul{margin:0;padding-left:18px;display:grid;gap:3px;font-size:var(--t-small)}
.em-quote-sum p{margin:0}
.em-quote-note{padding:10px 12px;border-left:3px solid var(--accent);background:var(--surface-2,var(--surface));border-radius:0 8px 8px 0;white-space:pre-wrap}
.em-quote-draft{padding:14px;border:1px dashed var(--line-strong,var(--line));border-radius:var(--r-lg,12px)}
.em-quote-draft-head{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.em-quote-draft p{margin:0}
.em-quote-draft p.em-small{display:flex;gap:6px;align-items:flex-start}
.em-quote-draft p.em-small .icon{width:14px;height:14px;margin-top:2px;flex:none}
.em-trio{display:grid;grid-template-columns:2fr 1fr 1fr;gap:10px}
.em-quote-pdf{display:grid;gap:6px;align-content:start}
.em-label{font-size:var(--t-small);font-weight:600}
.em-file-button{display:inline-flex;gap:7px;align-items:center;justify-self:start;cursor:pointer;padding:8px 14px;border:1px solid var(--line-strong);border-radius:var(--r-md);background:var(--surface);font-size:var(--t-body-s);font-weight:560}
.em-file-button .icon{width:15px;height:15px}
.em-quote-older summary{cursor:pointer;font-size:var(--t-small);color:var(--muted)}
.em-quote-older ul{list-style:none;margin:8px 0 0;padding:0;display:grid;gap:6px}
.em-quote-older li{display:flex;gap:10px;align-items:center;font-size:var(--t-small)}
.chip.bad{color:var(--danger);background:var(--danger-soft)}
@media (max-width:720px){.em-quote-lists,.em-trio{grid-template-columns:1fr}}

.em-quote .notice{display:flex;gap:8px;align-items:flex-start;margin:0;padding:10px 12px;background:var(--success-soft);color:var(--success);border:0}
.em-quote .notice .icon{width:14px;height:14px;margin-top:2px;flex:none}

/* ── The deposit (project page) ── */
.em-deposit-amount{margin:0;display:flex;align-items:baseline;gap:6px}
.em-deposit-amount strong{font:650 var(--t-title-3,20px)/1.2 var(--font-display)}
.em-deposit .rp-meta:empty{display:none}

/* ── Reminders (Mails card) ── */
.em-reminders{flex-wrap:wrap;row-gap:2px}
.em-reminders small{flex-basis:100%;padding-left:24px;font-weight:400}
.em-mails ul.em-upcoming li{border-bottom-style:dashed}
.em-mails .chip .icon{width:12px;height:12px}


/* The intake call on a request (mail 7), and a new expected date's mail (18) */
.em-call{display:flex;justify-content:space-between;gap:8px;align-items:center;padding:10px 12px;border-radius:var(--r-md);background:var(--surface-2);font-size:13px;color:var(--ink-2)}
.em-call span{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
.em-call a{color:inherit}
.em-call-form,.em-live-change{display:grid;gap:10px}

/* What we still need (mail 14) */
.em-needs{display:grid;gap:14px}
.em-need-list{list-style:none;margin:0;padding:0;display:grid}
.em-need-list li{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}
.em-need-list li:last-child{border-bottom:0}
.em-need-list li .em-check{align-items:flex-start;font-weight:400}
.em-need-list li .em-check input{margin-top:2px}
.em-need-list li .em-check span{display:grid;gap:2px}
.em-need-list li .em-check small{font-weight:400}
.em-need-list li.is-in strong{color:var(--muted);text-decoration:line-through;text-decoration-color:var(--line-strong)}
.em-need-list li>form{flex:1}
.em-need-send,.em-need-last{display:grid;gap:10px}
.em-need-send .em-buttons{align-items:center}

/* The weekly update (mail 19) */
.em-weekly{display:grid;gap:10px}
.em-weekly p{margin:0;display:flex;gap:6px;align-items:center}
.em-weekly p .icon{width:14px;height:14px;flex:none}
.em-weekly-list{margin:0;padding-left:18px;display:grid;gap:4px;font-size:13px;line-height:1.45}
.em-weekly .em-buttons{align-items:center}

/* Aftercare on the live card (mails 21 and 22) */
.em-aftercare{display:grid;gap:8px;padding-top:12px;margin-top:4px;border-top:1px solid var(--line)}
.em-aftercare p{margin:0;display:flex;gap:6px;align-items:flex-start}
.em-aftercare p .icon{width:14px;height:14px;flex:none;margin-top:2px}
.em-aftercare .em-check{flex-wrap:wrap}
.em-aftercare .em-check small{font-weight:400;flex-basis:100%;padding-left:24px}

/* Today (#/emvane-today): greeting and score, "Start here", tiles per group, the list; the day bar, week and
   what was done on the side. Colors from the tokens, so light and dark both work. */
.em-today{display:grid;gap:18px;max-width:1180px}
.em-today-hero{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:24px 26px;border-radius:var(--r-xl);
  background:radial-gradient(120% 140% at 0% 0%,var(--accent-soft),transparent 60%),var(--surface);box-shadow:inset 0 0 0 1px var(--line),var(--shadow-1)}
.em-today-hello{display:grid;gap:6px}
.em-today-hello h2{margin:0;font-family:var(--font-display);font-size:30px;line-height:1.1;letter-spacing:-.6px}
.em-today-hello p{margin:0}
.em-today-hello .em-buttons{margin-top:8px}
.em-today-score{display:flex;align-items:center;gap:12px}
.em-today-score>span{display:grid}
.em-ring{width:76px;height:76px}
.em-ring-track{fill:none;stroke:var(--line);stroke-width:7}
.em-ring-fill{fill:none;stroke:var(--accent);stroke-width:7;stroke-linecap:round;transition:stroke-dasharray .6s var(--ease-out)}
.em-ring text{font:600 18px var(--font);fill:var(--ink)}

/* Start here: the first thing, bigger */
.em-today-focus{list-style:none;margin:0;padding:0}
.em-today-focus .em-today-item{padding:18px 20px;border-radius:var(--r-lg);border:0;background:var(--surface);
  box-shadow:inset 0 0 0 1.5px var(--accent-line),var(--shadow-2)}
.em-today-focus .em-today-item.u-now{box-shadow:inset 3px 0 0 var(--danger),inset 0 0 0 1px var(--line),var(--shadow-2)}
.em-today-focus .em-today-text strong{font-size:17px}
.em-today-eyebrow{font-size:11px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;color:var(--accent)}

/* Tiles: a count per group, a click filters */
.em-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.em-tile{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:12px;align-items:center;text-align:left;
  padding:14px 16px;border-radius:var(--r-lg);border:0;background:var(--surface);color:inherit;font:inherit;cursor:pointer;
  box-shadow:inset 0 0 0 1px var(--line);transition:box-shadow var(--dur-1) ease,transform var(--dur-1) ease}
.em-tile:hover{transform:translateY(-1px);box-shadow:inset 0 0 0 1px var(--line-strong),var(--shadow-1)}
.em-tile.active{box-shadow:inset 0 0 0 2px var(--accent),var(--shadow-1)}
.em-tile.is-empty{opacity:.7}
.em-tile-icon{grid-row:span 2;display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--accent-soft);color:var(--accent)}
.em-tile-icon .icon{width:20px;height:20px}
.em-tile.g-money .em-tile-icon{background:var(--success-soft);color:var(--success)}
.em-tile.g-planning .em-tile-icon{background:var(--warn-soft);color:var(--warn)}
.em-tile.g-mails .em-tile-icon{background:var(--danger-soft);color:var(--danger)}
.em-tile strong{font-size:24px;line-height:1;font-variant-numeric:tabular-nums}
.em-tile strong+span{font-size:13px;font-weight:600}
.em-tile small{grid-column:2;font-size:12px}
.is-late{color:var(--danger);font-weight:600}

/* The list */
.em-today-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:18px;align-items:start}
.em-today-main,.em-today-side{display:grid;gap:18px;min-width:0}
.em-today-side{grid-template-columns:minmax(0,1fr)} /* long titles in the week ahead don't widen the column */
.em-today-list ul{list-style:none;margin:0;padding:0;display:grid}
.em-today-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:14px;align-items:start;padding:14px 10px;margin:0 -10px;border-radius:var(--r-md);border-top:1px solid var(--line);transition:background var(--dur-1) ease}
.em-today-list li:first-child{border-top:0}
.em-today-item.is-selected{background:var(--accent-softer,var(--surface-2));box-shadow:inset 2px 0 0 var(--accent)}
.em-today-who{position:relative;display:inline-grid}
.em-av{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;font-size:13px;font-weight:700;letter-spacing:.3px;
  color:light-dark(hsl(var(--h) 45% 30%),hsl(var(--h) 70% 85%));background:light-dark(hsl(var(--h) 70% 92%),hsl(var(--h) 30% 22%))}
.em-today-dot{position:absolute;right:-2px;bottom:-2px;width:12px;height:12px;border-radius:50%;background:var(--line-strong);box-shadow:0 0 0 2px var(--surface)}
.u-now .em-today-dot{background:var(--danger)}
.u-soon .em-today-dot{background:var(--warn)}
.em-today-text{display:grid;gap:4px;min-width:0}
.em-today-text strong{font-weight:600;overflow-wrap:anywhere}
.em-today-meta{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;font-size:13px}
.em-today-meta .muted{overflow-wrap:anywhere}
.em-today-when{display:inline-flex;gap:4px;align-items:center;color:var(--muted);white-space:nowrap}
.em-today-when .icon{width:13px;height:13px}
.em-today-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap;align-self:center}
.em-today-actions button .icon{width:14px;height:14px}
.em-later{display:inline-flex;gap:4px;align-items:center;color:var(--muted)}
.em-later span{font-size:13px}
.em-today-clear{display:grid;justify-items:center;gap:6px;padding:36px;text-align:center}
.em-today-clear .icon{width:28px;height:28px;color:var(--success)}
.em-keys kbd{font:600 11px var(--mono);padding:1px 6px;border-radius:5px;background:var(--surface-2);box-shadow:inset 0 -1px 0 var(--line-strong)}

/* The working day as a bar */
.em-daybar{display:grid;gap:14px}
.em-daybar-head{display:flex;justify-content:space-between;gap:8px;align-items:baseline;font-size:13px}
.em-daybar-track{position:relative;height:56px;margin:0 8px;border-radius:8px;
  background:linear-gradient(to bottom,transparent 25px,var(--line) 25px,var(--line) 27px,transparent 27px)}
.em-daybar-hour{position:absolute;bottom:0;transform:translateX(-50%);font-size:11px;color:var(--faint)}
.em-daybar-now{position:absolute;top:8px;height:36px;width:2px;background:var(--accent);transform:translateX(-1px);border-radius:2px}
.em-daybar-now i{position:absolute;top:-10px;left:50%;transform:translateX(-50%);font:600 10px var(--font);font-style:normal;color:var(--accent)}
.em-daybar-mark{position:absolute;top:10px;transform:translateX(-50%);display:inline-flex;gap:4px;align-items:center;padding:3px 7px;border:0;border-radius:999px;
  font:600 11px var(--font);cursor:pointer;background:var(--warn-soft);color:var(--warn);box-shadow:0 0 0 2px var(--surface)}
.em-daybar-mark.k-auto{background:var(--accent-soft);color:var(--accent);cursor:default}
.em-daybar-mark .icon{width:12px;height:12px}

/* The week ahead */
.em-week ol{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.em-week ol>li{display:grid;grid-template-columns:44px minmax(0,1fr);gap:10px;padding:8px;border-radius:var(--r-md)}
.em-week ol>li.is-today{background:var(--accent-soft)}
.em-week-day{display:grid;justify-items:center;line-height:1.1}
.em-week-day span{font-size:11px;text-transform:uppercase;letter-spacing:.8px;color:var(--muted)}
.em-week-day strong{font-size:18px}
.em-week ul{list-style:none;margin:0;padding:0;display:grid;gap:4px;min-width:0}
.em-week ul li{display:flex;gap:6px;align-items:baseline;min-width:0;font-size:13px}
.em-week ul li::before{content:"";flex:none;width:7px;height:7px;border-radius:50%;background:var(--accent);transform:translateY(-1px)}
.em-week ul li.k-call::before{background:var(--warn)}
.em-week ul li.k-money::before{background:var(--danger)}
.em-week ul li.k-live::before{background:var(--success)}
.em-week ul li.muted::before{display:none}
.em-week ul .link-button{display:block;justify-content:flex-start;padding:0;text-align:left;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;color:inherit}
.em-week ul .link-button b{margin-right:4px;font-variant-numeric:tabular-nums}
.em-week p{margin:4px 0 0;font-size:13px}

/* Done today */
.em-done ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:minmax(0,1fr);gap:8px}
.em-done li{display:grid;gap:1px;font-size:13px}
.em-done .link-button{display:block;justify-content:flex-start;padding:0;text-align:left;font-size:13px;font-weight:600;color:inherit;white-space:normal;overflow-wrap:anywhere}
.em-done .muted{font-size:12px}

@media (max-width:1100px){.em-today-grid{grid-template-columns:1fr}.em-today-side{grid-template-columns:repeat(auto-fit,minmax(300px,1fr))}}
@media (max-width:720px){
  .em-today-hero{padding:18px;flex-direction:column;align-items:flex-start}
  .em-today-hello h2{font-size:24px}
  .em-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .em-today-item{grid-template-columns:auto minmax(0,1fr)}
  .em-today-actions{grid-column:2;justify-content:flex-start}
  .em-today-side{grid-template-columns:1fr}
  .em-keys{display:none}
}

/* Next step (the API's emvane/next.js): the one step on top of a request's or project's page, what's ready for
   it, and the journey from the request to aftercare. The stripe on the left: whose turn it is. */
.em-next{position:relative;display:grid;gap:16px;padding:20px 22px 18px;overflow:hidden;
  background:radial-gradient(110% 120% at 0% 0%,var(--accent-softer),transparent 55%),var(--surface);
  box-shadow:inset 3px 0 0 var(--accent),inset 0 0 0 1px var(--accent-line),var(--shadow-2)}
.em-next.t-client{box-shadow:inset 3px 0 0 var(--warn),inset 0 0 0 1px var(--line),var(--shadow-1);background:radial-gradient(110% 120% at 0% 0%,var(--warn-soft),transparent 50%),var(--surface)}
.em-next.t-planned{box-shadow:inset 3px 0 0 var(--info),inset 0 0 0 1px var(--line),var(--shadow-1);background:radial-gradient(110% 120% at 0% 0%,var(--info-soft),transparent 50%),var(--surface)}
.em-next.t-none{box-shadow:inset 3px 0 0 var(--success),inset 0 0 0 1px var(--line),var(--shadow-1);background:radial-gradient(110% 120% at 0% 0%,var(--success-soft),transparent 50%),var(--surface)}
.em-next.em-next-late{box-shadow:inset 3px 0 0 var(--danger),inset 0 0 0 1px var(--accent-line),var(--shadow-2)}
.em-next-head{display:flex;justify-content:space-between;align-items:center;gap:8px 14px;flex-wrap:wrap}
.em-next-eyebrow{display:inline-flex;align-items:center;gap:10px;font-size:11px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;color:var(--accent)}
.em-next-turn{font-size:11.5px;font-weight:650;letter-spacing:0;text-transform:none;padding:2px 9px;border-radius:var(--r-full);background:var(--accent-soft);color:var(--accent-ink)}
.t-client .em-next-eyebrow{color:var(--warn)} .t-client .em-next-turn{background:var(--warn-soft);color:var(--warn)}
.t-planned .em-next-eyebrow{color:var(--info)} .t-planned .em-next-turn{background:var(--info-soft);color:var(--info)}
.t-none .em-next-eyebrow{color:var(--success)}
.em-next-when{display:inline-flex;align-items:center;gap:5px;font-size:12.5px;color:var(--muted);font-variant-numeric:tabular-nums}
.em-next-when .icon{width:13px;height:13px}
.em-next-when.is-late{color:var(--danger);font-weight:620}
.em-next-body{display:grid;grid-template-columns:auto minmax(0,1fr);gap:16px;align-items:start}
.em-next-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:var(--accent-soft);color:var(--accent)}
.em-next-icon .icon{width:22px;height:22px}
.t-client .em-next-icon{background:var(--warn-soft);color:var(--warn)}
.t-planned .em-next-icon{background:var(--info-soft);color:var(--info)}
.t-none .em-next-icon{background:var(--success-soft);color:var(--success)}
.em-next-text{display:grid;gap:12px;min-width:0}
.em-next-text h2{margin:0;font:650 var(--t-title-2)/1.15 var(--font-display);letter-spacing:-.02em;overflow-wrap:anywhere}
.em-next-why{margin:-4px 0 0;font-size:14.5px;line-height:1.55;color:var(--ink-2);max-width:68ch}
.em-next-feedback blockquote{border-left:3px solid var(--warn)}
.em-next-facts{margin:0;padding:0;list-style:none;display:grid;gap:4px;font-size:13px;color:var(--ink-2)}
.em-next-facts li{display:flex;gap:8px;align-items:baseline}
.em-next-facts li::before{content:"";flex:none;width:5px;height:5px;border-radius:50%;background:var(--accent);transform:translateY(-2px)}
.em-next-ready{display:grid;gap:8px;padding:12px 14px;border-radius:var(--r-md);border:1px dashed var(--accent-line);background:var(--surface)}
.em-next-label{font-size:11px;font-weight:700;letter-spacing:.8px;text-transform:uppercase;color:var(--muted)}
.em-next-chips{display:flex;flex-wrap:wrap;gap:6px}
.em-next-chips .chip{font-size:13px;font-variant-numeric:tabular-nums}
.em-next-chips .chip .icon{width:13px;height:13px}
.em-next-needs{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.em-next-needs li{display:grid;grid-template-columns:150px minmax(0,1fr);gap:10px;font-size:13px;line-height:1.45}
.em-next-needs strong{font-weight:600}
.em-next-ready>.em-small{margin:0}
.em-next-check summary{display:inline-flex;align-items:center;gap:6px;cursor:pointer;font-size:13px;font-weight:600;color:var(--ink-2)}
.em-next-check summary .icon{width:14px;height:14px;color:var(--success)}
.em-next-check ul{margin:8px 0 0;padding-left:20px;display:grid;gap:3px;font-size:13px;color:var(--ink-2);columns:2;column-gap:28px}
.em-next-check li{break-inside:avoid}
.em-next-buttons .primary{padding-inline:16px}
.em-next-buttons .primary .icon:last-child{transition:transform var(--dur-1) var(--ease-out)}
.em-next-buttons .primary:hover .icon:last-child{transform:translateX(2px)}
.em-next-later{display:inline-flex;gap:5px;align-items:center;color:var(--muted);font-size:13px}
.em-next-later .icon{width:14px;height:14px}
.em-next-then{display:flex;gap:6px;align-items:center;margin:0;font-size:13px;color:var(--muted)}
.em-next-then .icon{width:13px;height:13px;flex:none}
.em-next-also{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.em-next-also li{display:flex;flex-wrap:wrap;gap:4px 8px;align-items:center;padding:8px 12px;border-radius:var(--r-md);background:var(--surface-2);font-size:13px;color:var(--ink-2)}
.em-next-also li>.icon{width:14px;height:14px;flex:none;color:var(--warn)}
.em-next-also li.is-plan{background:var(--info-soft)}
.em-next-also li.is-plan>.icon{color:var(--info)}
.em-next-also li>span{flex:1;min-width:12ch}
.em-next-also .link-button{font-size:13px;padding:0}
.em-next-sees{margin:0;font-size:12.5px;color:var(--ink-2);padding-top:12px;border-top:1px solid var(--line)}
.em-next-sees .muted{font-size:11px;font-weight:650;text-transform:uppercase;letter-spacing:.05em;margin-right:4px}
.em-next.is-snoozed{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 16px;background:var(--surface);box-shadow:inset 0 0 0 1px var(--line)}
.em-next-snoozed{display:flex;gap:8px;align-items:center;font-size:13.5px;min-width:0}
.em-next-snoozed>.icon{width:15px;height:15px;color:var(--muted);flex:none}

/* The journey: ten stations on a line that fills up to now */
.em-journey{padding-top:14px;border-top:1px solid var(--line)}
.em-journey ol{position:relative;list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(10,minmax(0,1fr))}
.em-journey ol::before,.em-journey ol::after{content:"";position:absolute;top:10px;left:5%;height:2px;border-radius:2px}
.em-journey ol::before{right:5%;background:var(--line)}
.em-journey ol::after{width:calc(90% * var(--done));background:var(--success);transition:width .6s var(--ease-out)}
.em-journey li{position:relative;z-index:1;display:grid;justify-items:center;gap:4px;text-align:center;min-width:0}
.em-journey-dot{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--surface);box-shadow:inset 0 0 0 2px var(--line-strong)}
.em-journey-dot .icon{width:12px;height:12px}
.em-journey .j-done .em-journey-dot{background:var(--success);color:var(--surface);box-shadow:0 0 0 3px var(--surface)}
.em-journey .j-now .em-journey-dot{background:var(--surface);box-shadow:inset 0 0 0 6px var(--accent),0 0 0 3px var(--surface),0 0 0 6px var(--accent-soft);animation:em-now 2.4s ease-in-out infinite}
.t-client .em-journey .j-now .em-journey-dot{box-shadow:inset 0 0 0 6px var(--warn),0 0 0 3px var(--surface),0 0 0 6px var(--warn-soft)}
.em-journey .j-waiting .em-journey-dot{box-shadow:inset 0 0 0 2px var(--warn);background:var(--warn-soft)}
.em-journey-label{font-size:11.5px;line-height:1.2;color:var(--muted);overflow-wrap:anywhere}
.em-journey .j-done .em-journey-label{color:var(--ink-2)}
.em-journey .j-now .em-journey-label{color:var(--ink);font-weight:650}
.em-journey .j-waiting .em-journey-label{color:var(--warn);font-weight:600}
.em-journey small{font-size:10.5px;line-height:1.2;color:var(--faint);font-variant-numeric:tabular-nums}
.em-journey-short{display:none;margin:10px 0 0;font-size:12.5px}
.em-journey-short b{color:var(--ink);font-weight:650}
@keyframes em-now{50%{box-shadow:inset 0 0 0 6px var(--accent),0 0 0 3px var(--surface),0 0 0 9px var(--accent-softer)}}

/* A card the Next step (or Today) opened: lit up for a moment */
.em-flash{animation:em-flash 1.6s var(--ease-out)}
@keyframes em-flash{0%,30%{box-shadow:0 0 0 3px var(--accent),var(--shadow-2)}100%{box-shadow:var(--shadow-1)}}
@media (prefers-reduced-motion:reduce){.em-journey .j-now .em-journey-dot,.em-flash{animation:none}}

@media (max-width:720px){
  .em-next{padding:16px}
  .em-next-body{grid-template-columns:minmax(0,1fr)}
  .em-next-icon{display:none}
  .em-next-text h2{font-size:21px}
  .em-next-needs li{grid-template-columns:minmax(0,1fr);gap:0}
  .em-next-check ul{columns:1}
  .em-journey-label,.em-journey small{display:none}
  .em-journey-short{display:block}
  .em-next-buttons>button{flex:1 1 auto;justify-content:center}
  .em-next-buttons .em-next-later{flex:0 0 auto}
}

/* Next step in the lists: the step, a dot for whose turn it is, late in red, put off in grey */
.em-next-cell{display:flex;gap:9px;align-items:flex-start;min-width:0}
.em-next-cell>i{flex:none;width:8px;height:8px;margin-top:6px;border-radius:50%;background:var(--accent)}
.em-next-cell.t-client>i{background:var(--warn)}
.em-next-cell.t-planned>i{background:var(--info)}
.em-next-cell.t-none>i{background:var(--success)}
.em-next-cell.t-off>i{background:var(--line-strong)}
.em-next-cell.is-overdue>i{background:var(--danger);box-shadow:0 0 0 3px var(--danger-soft)}
.em-next-cell>span{display:grid;gap:1px;min-width:0}
.em-next-cell strong{font-size:13.5px;font-weight:600;line-height:1.35;overflow-wrap:anywhere}
.em-next-cell small{font-size:12px;color:var(--muted)}
.em-next-cell.is-overdue small{color:var(--danger);font-weight:600}
.em-next-cell.t-off strong{color:var(--muted);font-weight:500}
.em-signed{display:inline-grid;place-items:center;width:15px;height:15px;margin-left:6px;border-radius:50%;background:var(--success-soft);color:var(--success);vertical-align:-2px}
.em-signed .icon{width:10px;height:10px}
.rl-tab.em-tab-late span{background:var(--danger-soft);color:var(--danger)}
@media (max-width:720px){.em-row .em-turn-cell:has(.em-next-none){display:none}}

/* Writing help from Claude (the API's emvane/writing.js): a sparkle on the buttons, the suggestion in a soft box */
.em-suggest .icon{color:var(--accent)}
.em-suggest:disabled .icon{color:var(--muted)}
.em-suggested{display:inline-flex;gap:5px;align-items:center;font-size:12px}
.em-suggested .icon{width:12px;height:12px;color:var(--accent)}
.em-suggestion{display:grid;gap:8px;padding:12px 14px;border-radius:var(--r-md);background:var(--accent-softer);box-shadow:inset 0 0 0 1px var(--accent-line)}
.em-suggestion p{margin:0;font-size:13px;line-height:1.5}
.em-suggestion p.em-small{display:flex;gap:6px;align-items:flex-start}
.em-suggestion p .icon{width:13px;height:13px;flex:none;margin-top:2px}
.em-quote-suggest{margin-top:-4px}
/* Call notes */
.em-notes{display:grid;gap:10px}
.em-notes .card-head{margin-bottom:0}
.em-notes .card-head .muted{display:inline-flex;gap:5px;align-items:center}
.em-notes .card-head .muted .icon,.em-notes .em-buttons .icon{width:13px;height:13px}
.em-notes textarea{min-height:120px;line-height:1.5}
.em-notes .em-buttons .muted{display:inline-flex;gap:5px;align-items:center}
.em-notes-ask summary{cursor:pointer;font-size:13px;font-weight:600;color:var(--ink-2)}
.em-notes-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.em-notes-chips .chip{border:0;cursor:pointer;font:inherit;font-size:12.5px}
.em-notes-chips .chip .icon{width:11px;height:11px}
.em-notes-chips .chip:hover{background:var(--accent-soft);color:var(--accent-ink)}
/* Tasks from a round's feedback */
.em-tasks{display:grid;gap:10px;padding-top:12px;border-top:1px solid var(--line)}
.em-tasks-head{display:flex;justify-content:space-between;align-items:center;gap:8px}
.em-tasks-head strong{display:inline-flex;gap:6px;align-items:center;font-size:13.5px}
.em-tasks-head .icon{width:15px;height:15px;color:var(--accent)}
.em-tasks ul{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.em-tasks li{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:4px 0}
.em-tasks li .em-check{font-weight:500;align-items:flex-start}
.em-tasks li .em-check input{margin-top:2px}
.em-tasks li.is-done .em-check span{color:var(--muted);text-decoration:line-through;text-decoration-color:var(--line-strong)}
.em-tasks li .icon-button{width:26px;height:26px;opacity:.6}
.em-tasks li .icon-button:hover{opacity:1;color:var(--danger)}
.em-task-add{flex:1;min-width:180px}
.em-task-add input{width:100%;padding:6px 10px;font-size:13px}
.em-changed{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:center;padding:8px 12px;border-radius:var(--r-md);background:var(--success-soft)}
.em-changed .muted{display:inline-flex;gap:5px;align-items:center;color:var(--success)}
.em-changed .icon{width:13px;height:13px}
.em-changed .link-button{font-size:13px;padding:0}
/* The assistant's Emvane proposals: the mail a confirmed action sends, with its own "Send mail" */
.ai-mail{display:flex;gap:6px;align-items:flex-start;margin-top:4px;font-size:12px;color:var(--muted);cursor:pointer}
.ai-mail input{margin-top:2px;accent-color:var(--accent)}
.ai-mail span{display:inline;overflow-wrap:anywhere}
.ai-mail .icon{width:12px;height:12px;vertical-align:-1px;margin-right:3px;color:var(--accent)}

/* Planning (#/emvane-planning): the weeks ahead with the hours against your capacity, and on the side the first
   free spot, the running projects and your Emvane days. Project colours come from their name, like the avatars. */
.em-plan{display:grid;gap:18px;max-width:1180px}
.em-plan-hero{align-items:flex-end}
.em-plan-range button{white-space:nowrap}
.em-plan-week{display:grid;gap:12px;padding:16px 18px}
.em-plan-week.is-now{box-shadow:inset 0 0 0 1.5px var(--accent-line),var(--shadow-1)}
.em-plan-week.is-over{box-shadow:inset 3px 0 0 var(--danger),inset 0 0 0 1px var(--line),var(--shadow-1)}
.em-plan-week-head{display:grid;grid-template-columns:150px minmax(0,1fr);gap:14px;align-items:center}
.em-plan-week-name{display:grid;line-height:1.25}
.em-plan-week-name strong{font-size:15px}
.em-plan-week-name .muted{font-size:12.5px}
.em-load{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}
.em-load-track{position:relative;display:flex;height:12px;border-radius:999px;background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--line);overflow:visible}
.em-load-seg{height:100%;background:light-dark(hsl(var(--h) 55% 58%),hsl(var(--h) 45% 55%));box-shadow:1px 0 0 var(--surface)}
.em-load-seg:first-child{border-radius:999px 0 0 999px}
.em-load-seg:last-of-type{border-radius:0 999px 999px 0}
.em-load-seg:only-of-type{border-radius:999px}
.em-load-cap{position:absolute;top:-4px;bottom:-4px;width:2px;margin-left:-1px;background:var(--ink-2);border-radius:2px}
.em-load-text{font-size:12.5px;color:var(--muted);white-space:nowrap}
.em-load-text strong{color:var(--ink);font-size:13.5px}
.em-load.is-full .em-load-text strong{color:var(--warn)}
.em-load.is-over .em-load-text strong{color:var(--danger)}
.em-load.is-over .em-load-track{box-shadow:inset 0 0 0 1px var(--danger)}
.em-plan-warn{display:flex;gap:6px;align-items:flex-start;margin:0;padding:8px 12px;border-radius:var(--r-md);background:var(--danger-soft);color:var(--danger);font-size:13px;font-weight:560}
.em-plan-warn .icon{width:14px;height:14px;flex:none;margin-top:2px}
.em-plan-who{display:flex;flex-wrap:wrap;gap:4px 14px;margin:0;font-size:12.5px;color:var(--ink-2)}
.em-plan-who-item{display:inline-flex;gap:6px;align-items:center}
.em-plan-who-item i,.em-plan-proj>i{width:8px;height:8px;border-radius:50%;flex:none;background:light-dark(hsl(var(--h) 55% 58%),hsl(var(--h) 45% 55%))}
.em-plan-who-item b{font-weight:600;color:var(--muted)}
.em-plan-days{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.em-plan-days>li{display:grid;align-content:start;gap:6px;min-height:76px;padding:8px;border-radius:var(--r-md);background:var(--surface-2);min-width:0}
.em-plan-days>li.is-emvane{background:var(--accent-softer);box-shadow:inset 0 0 0 1px var(--accent-line)}
.em-plan-days>li.is-off{background:repeating-linear-gradient(135deg,var(--surface-2) 0 6px,transparent 6px 12px)}
.em-plan-days>li.is-past{opacity:.6}
.em-plan-days>li.is-today{box-shadow:inset 0 0 0 2px var(--accent)}
.em-plan-day{display:flex;align-items:baseline;gap:6px}
.em-plan-day span{font-size:11px;text-transform:uppercase;letter-spacing:.8px;color:var(--muted)}
.em-plan-day strong{font-size:16px}
.em-plan-day small{font-size:11px;color:var(--muted);margin-left:auto}
.em-plan-dot{width:7px;height:7px;border-radius:50%;background:var(--accent);margin-left:auto;align-self:center}
.em-plan-days ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:minmax(0,1fr);gap:4px;min-width:0}
.em-plan-days ul li{min-width:0}
.em-plan-days ul .link-button{display:flex;gap:4px;align-items:center;width:100%;justify-content:flex-start;padding:3px 6px;border-radius:6px;font-size:12px;font-weight:500;text-align:left;color:var(--ink);background:var(--surface);box-shadow:inset 0 0 0 1px var(--line);min-width:0;max-width:100%;overflow:hidden;white-space:normal;align-items:flex-start;line-height:1.3}
.em-plan-days ul .link-button span{overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow-wrap:anywhere;min-width:0}
.em-plan-days ul .link-button .icon{margin-top:2px}
.em-plan-days ul .link-button b{font-weight:650}
.em-plan-days ul .icon{width:12px;height:12px;flex:none}
.em-plan-days li.k-call .icon{color:var(--warn)}
.em-plan-days li.k-live .icon{color:var(--success)}
.em-plan-days li.k-quote_expires .icon{color:var(--danger)}
.em-plan-days li.k-weekly .icon{color:var(--accent)}
.em-plan-days li.k-aftercare_end .icon{color:var(--info)}
.em-plan-free ul,.em-plan-projects ul{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.em-plan-free li{display:grid;grid-template-columns:76px minmax(0,1fr);gap:8px;font-size:13px;align-items:baseline}
.em-plan-free li>span{display:grid}
.em-plan-free small{font-size:12px}
.em-plan-projects li{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 10px;align-items:center}
.em-plan-proj{display:flex;gap:8px;align-items:flex-start;min-width:0}
.em-plan-proj>i{margin-top:6px}
.em-plan-proj>span{display:grid;min-width:0}
.em-plan-proj .link-button{justify-content:flex-start;padding:0;font-size:13.5px;font-weight:600;color:var(--ink);text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.em-plan-proj small{font-size:12px}
.em-plan-hours{display:flex;gap:4px;align-items:center;font-size:12.5px}
.em-plan-hours input{width:64px;padding:4px 8px;text-align:right}
.em-plan-est{grid-column:2;justify-self:end;font-size:11.5px;padding:0}
.em-plan-settings .segmented{margin-top:6px;display:flex}
.em-plan-settings .segmented button{flex:1}
.em-plan-settings p{margin:6px 0 0}
@media (max-width:720px){
  .em-plan-hero{align-items:flex-start}
  .em-plan-week{padding:14px}
  .em-plan-week-head{grid-template-columns:minmax(0,1fr)}
  .em-plan-days{grid-template-columns:minmax(0,1fr)}
  .em-plan-days>li{min-height:0;grid-template-columns:64px minmax(0,1fr);align-items:start}
  .em-plan-days>li:not(.is-emvane):not(.is-today):not(:has(li)){display:none}
}

/* The planning in your calendar: the link, shown once */
.em-plan-cal p{margin:0;display:flex;gap:6px;align-items:flex-start}
.em-plan-cal p .icon{width:14px;height:14px;flex:none;margin-top:2px;color:var(--success)}
.em-plan-cal .em-suggestion p{display:block}
.em-plan-cal input[readonly]{font:12px var(--mono);padding:6px 8px;width:100%}
.em-plan-cal .button-link{display:inline-flex;gap:6px;align-items:center;text-decoration:none;padding:8px 14px;border-radius:var(--r-md);font-weight:600;font-size:var(--t-body-s)}
.em-plan-cal .button-link .icon{width:15px;height:15px}
.em-plan-cal .link-button.danger-text{color:var(--danger)}

/* Templates (#/emvane-templates): per package the price and time, the quote and the list in three languages side by
   side, the day plan; and saved phrases. "Yours" or "Default" next to each field. */
.em-tpl{display:grid;gap:16px;max-width:1180px}
.em-tpl-hero{align-items:flex-end}
.em-tpl-switch button{display:inline-flex;gap:6px;align-items:center}
.em-tpl-dot{width:7px;height:7px;border-radius:50%;background:var(--accent)}
.em-tpl-pkg{display:grid;gap:16px}
.em-tpl-card{display:grid;gap:12px}
.em-tpl-card .card-head{margin-bottom:0;flex-wrap:wrap;gap:4px 12px}
.em-tpl-card label{display:flex;flex-wrap:wrap;align-items:center;gap:4px 0}
.em-tpl-card label>input,.em-tpl-card label>textarea,.em-tpl-card label>select{flex-basis:100%;width:100%}
.em-tpl-langs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.em-tpl-lang{display:grid;gap:10px;align-content:start;min-width:0}
.em-tpl-lang h4,.em-tpl-phrase-group h4{margin:0;display:flex;gap:8px;align-items:center;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.em-tpl-lang textarea{line-height:1.45;font-size:13px}
.em-tpl-origin{display:inline-flex;gap:6px;align-items:center;font-size:11px;font-weight:600;letter-spacing:0;text-transform:none;padding:1px 8px;border-radius:999px;background:var(--surface-2);color:var(--muted);margin-left:6px}
.em-tpl-origin.is-custom{background:var(--accent-soft);color:var(--accent-ink)}
.em-tpl-origin .link-button{padding:0;font-size:11px}
.em-tpl-needs{display:grid;gap:8px}
.em-tpl-need{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr) auto;gap:6px;align-items:center;padding:8px;border-radius:var(--r-md);background:var(--surface-2)}
.em-tpl-need select,.em-tpl-need input{font-size:13px;padding:6px 8px;min-width:0}
.em-tpl-need .em-tpl-need-note{grid-column:1/3}
.em-tpl-need .icon-button{grid-row:1;grid-column:3;width:28px;height:28px}
.em-tpl-plan{display:grid;gap:10px}
.em-tpl-plan-bar{position:relative;height:30px;border-radius:8px;background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--line);overflow:hidden}
.em-tpl-plan-bar span{position:absolute;top:3px;bottom:3px;display:flex;align-items:center;padding:0 8px;border-radius:6px;font-size:11.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
  background:light-dark(hsl(var(--h) 70% 90%),hsl(var(--h) 35% 25%));color:light-dark(hsl(var(--h) 45% 28%),hsl(var(--h) 70% 86%));box-shadow:0 0 0 1px var(--surface)}
.em-tpl-plan-axis{display:flex;justify-content:space-between;font-size:11px;margin-top:-6px}
.em-tpl-plan-row{display:grid;grid-template-columns:72px 72px minmax(0,1fr) auto;gap:8px;align-items:end}
.em-tpl-plan-row input{padding:6px 8px;font-size:13px}
.em-tpl-plan-row .icon-button{width:30px;height:30px;margin-bottom:2px}
.em-tpl-bar{position:sticky;bottom:12px;z-index:2;display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 14px;border-radius:var(--r-lg);background:var(--surface);box-shadow:inset 0 0 0 1px var(--line),var(--shadow-2)}
.em-tpl-bar.is-changed{box-shadow:inset 0 0 0 1.5px var(--accent-line),var(--shadow-2)}
.em-tpl-phrase-group{display:grid;gap:8px;padding-top:10px;border-top:1px solid var(--line)}
.em-tpl-phrase{display:grid;gap:8px;padding:10px;border-radius:var(--r-md);background:var(--surface-2)}
.em-tpl-phrase-head{display:flex;gap:8px;align-items:center}
.em-tpl-phrase-head input{flex:1;font-weight:600;font-size:13px;padding:6px 8px}
.em-tpl-phrase textarea{font-size:13px}
.em-tpl-phrases>.em-tpl-bar{position:static}
@media (max-width:900px){.em-tpl-langs{grid-template-columns:minmax(0,1fr)}}
@media (max-width:720px){
  .em-tpl-hero{align-items:flex-start}
  .em-tpl-plan-row{grid-template-columns:64px 64px minmax(0,1fr) auto}
  .em-tpl-bar{bottom:84px}
}
.em-tpl-bar{margin-right:64px}
.em-tpl-phrases>.em-tpl-bar{margin-right:0}
.em-tpl-phrase-group>.link-button{justify-self:start}
/* Five tabs and More in Emvane on a phone: a touch smaller, so the names fit */
@media (max-width:720px){body:has(.em) .tabbar:has(> button:nth-child(6)){gap:0;padding:4px 2px}body:has(.em) .tabbar:has(> button:nth-child(6)) button{padding:0;font-size:9.5px;letter-spacing:-.25px}}

/* Saved phrases next to a field */
.em-phrases{position:relative;justify-self:end;display:flex;justify-content:flex-end;margin-bottom:-8px;z-index:3}
.em-phrases>.link-button{display:inline-flex;gap:5px;align-items:center;padding:0;font-size:12.5px}
.em-phrases>.link-button .icon{width:13px;height:13px}
.em-phrases-list{position:absolute;right:0;top:calc(100% + 4px);width:min(320px,80vw);max-height:280px;overflow:auto;list-style:none;margin:0;padding:6px;display:grid;gap:2px;border-radius:var(--r-md);background:var(--surface);box-shadow:inset 0 0 0 1px var(--line),var(--shadow-2)}
.em-phrases-list button{display:grid;gap:2px;width:100%;text-align:left;padding:8px 10px;border:0;border-radius:8px;background:none;box-shadow:none;white-space:normal;font-weight:400;color:var(--ink)}
.em-phrases-list button:hover{background:var(--surface-2)}
.em-phrases-list strong{font-size:13px}
.em-phrases-list small{font-size:12px;line-height:1.4;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* Planning: what the day plans say this week */
.em-plan-work{list-style:none;margin:0;padding:0;display:grid;gap:4px}
.em-plan-work li{display:grid;grid-template-columns:auto auto minmax(0,1fr);gap:8px;align-items:baseline;font-size:13px}
.em-plan-work li>i{width:8px;height:8px;border-radius:2px;align-self:center;background:light-dark(hsl(var(--h) 55% 58%),hsl(var(--h) 45% 55%))}
.em-plan-work li>span{display:flex;flex-wrap:wrap;gap:2px 12px;color:var(--ink-2)}
.em-plan-work small{font-size:11.5px}
@media (max-width:720px){.em-plan-work li{grid-template-columns:auto minmax(0,1fr)}.em-plan-work li>span{grid-column:1/-1}}

/* Hours on a project (the card on its page) */
.em-time-total{font-size:13px;color:var(--muted)}
.em-time-total strong{color:var(--ink);font-size:15px}
.em-time-bar{display:block;height:8px;border-radius:999px;background:var(--surface-2);box-shadow:inset 0 0 0 1px var(--line);overflow:hidden}
.em-time-bar>span{display:block;height:100%;border-radius:999px;background:var(--accent);transition:width .4s var(--ease-out)}
.em-time-bar.is-full>span{background:var(--warn)}
.em-time-bar.is-over>span{background:var(--danger)}
.em-time-rate{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0}
.em-time-quick{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.em-time-quick>button{padding-inline:12px}
.em-time-quick form{display:flex;gap:4px;margin-left:auto}
.em-time-quick input{width:56px;padding:6px 8px;text-align:right}
.em-time .em-pair input{font-size:13px;padding:6px 8px;min-width:0}
.em-time-list{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.em-time-list li{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;align-items:center;font-size:13px;padding:4px 0;border-top:1px solid var(--line)}
.em-time-list li>.muted{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.em-time-list .icon-button{width:26px;height:26px;opacity:.6}
.em-time-list .icon-button:hover{opacity:1;color:var(--danger)}
.em-time>.link-button{justify-self:start;font-size:12.5px;padding:0}
.em-time-lessons{display:grid;gap:4px;font-size:var(--t-small);font-weight:600;padding-top:10px;border-top:1px solid var(--line)}
.em-time-lessons small{font-weight:400}
/* Money (#/emvane-money) */
.em-money{display:grid;gap:18px;max-width:1180px}
.em-money-hero{align-items:flex-end}
.em-money-tiles .em-tile{cursor:default}
.em-money-tiles .em-tile:hover{transform:none;box-shadow:inset 0 0 0 1px var(--line)}
.em-money-tiles strong{font-size:20px}
.em-tile.g-open .em-tile-icon{background:var(--warn-soft);color:var(--warn)}
.em-tile.g-paid .em-tile-icon,.em-tile.g-year .em-tile-icon{background:var(--success-soft);color:var(--success)}
.em-tile.g-coming .em-tile-icon{background:var(--accent-soft);color:var(--accent)}
.em-money-legend{display:flex;gap:12px;flex-wrap:wrap;font-size:12px;color:var(--muted)}
.em-money-legend span{display:inline-flex;gap:5px;align-items:center}
.em-money-legend i{width:9px;height:9px;border-radius:3px}
.k-paid>i,.em-money-stack i.k-paid{background:var(--success)}
.k-open>i,.em-money-stack i.k-open{background:var(--warn)}
.k-draft>i,.em-money-stack i.k-draft{background:var(--line-strong)}
.k-expected>i,.em-money-stack i.k-expected{background:repeating-linear-gradient(135deg,var(--accent) 0 3px,var(--accent-soft) 3px 6px)}
.em-money-chart ol{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(52px,1fr));gap:8px;align-items:end}
.em-money-chart li button{display:grid;grid-template-rows:auto 160px auto;gap:6px;width:100%;padding:6px 4px;border:0;border-radius:var(--r-md);background:none;box-shadow:none;font-weight:400;color:var(--ink);cursor:pointer;white-space:normal}
.em-money-chart li button:hover,.em-money-chart li.is-selected button{background:var(--surface-2)}
.em-money-chart li.is-selected button{box-shadow:inset 0 0 0 1.5px var(--accent-line)}
.em-money-amount{font-size:11.5px;font-weight:650;text-align:center;overflow:hidden;text-overflow:ellipsis}
.em-money-stack{display:flex;flex-direction:column-reverse;justify-content:flex-start;width:60%;max-width:42px;margin:0 auto;height:100%;border-bottom:2px solid var(--line)}
.em-money-stack i{display:block;width:100%;min-height:2px;box-shadow:0 1px 0 var(--surface)}
.em-money-stack i:last-child{border-radius:5px 5px 0 0}
.em-money-month{font-size:11.5px;text-align:center;color:var(--muted);text-transform:uppercase;letter-spacing:.6px}
.em-money-chart li.is-now .em-money-month{color:var(--accent);font-weight:700}
.em-money-items ul,.em-money-projects ul{list-style:none;margin:0;padding:0;display:grid}
.em-money-items li{display:grid;grid-template-columns:auto minmax(0,auto) minmax(0,1fr) auto;gap:10px;align-items:baseline;padding:8px 0;border-top:1px solid var(--line);font-size:13px}
.em-money-items li:first-child{border-top:0}
.em-money-items .link-button{padding:0;font-size:13px;font-weight:600;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.em-money-items .muted{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.em-money-kind{font-size:11px;font-weight:650;padding:1px 8px;border-radius:999px;background:var(--surface-2);color:var(--muted)}
.em-money-kind.k-paid{background:var(--success-soft);color:var(--success)}
.em-money-kind.k-open{background:var(--warn-soft);color:var(--warn)}
.em-money-kind.k-expected{background:var(--accent-soft);color:var(--accent-ink)}
.em-money-projects li{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) auto;gap:14px;align-items:center;padding:10px 0;border-top:1px solid var(--line)}
.em-money-projects li:first-child{border-top:0}
.em-money-proj{display:grid;min-width:0}
.em-money-proj .link-button{justify-content:flex-start;padding:0;font-size:13.5px;font-weight:600;color:var(--ink);text-align:left}
.em-money-proj small{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.em-money-hours{display:grid;gap:4px}
.em-money-hours small{font-size:12px}
.em-money-export .em-buttons button{flex:1}
@media (max-width:720px){
  .em-money-hero{align-items:flex-start}
  .em-money-chart li button{grid-template-rows:auto 110px auto}
  .em-money-items li{grid-template-columns:auto minmax(0,1fr) auto}
  .em-money-items li>.muted{grid-column:2/4;grid-row:2}
  .em-money-projects li{grid-template-columns:minmax(0,1fr) auto}
  .em-money-hours{grid-column:1/-1;grid-row:2}
}
.em-money-items .link-button{justify-content:flex-start;text-align:left}
@media (max-width:720px){.em-money-chart ol{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:2px}.em-money-amount{display:none}.em-money-month{font-size:10px;letter-spacing:0}.em-money-stack{width:72%}.em-money-chart .card-head{flex-wrap:wrap}}
@media (max-width:720px){.em-money-chart li button{grid-template-rows:110px auto}}

/* The quote as the client sees it: "View as client" next to Send */
.em-round-foot-end{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;align-items:center}
button.chip.em-chip-link{cursor:pointer;font:inherit;border:0}

/* Checklists (PLAN §17): on the project page, and the lists in Templates */
.em-checks .card-head{flex-wrap:wrap}
.em-checks-sum{display:flex;gap:10px;margin-left:auto;font-size:12.5px;color:var(--ink-2)}
.em-checks-sum span{padding:3px 8px;border-radius:999px;background:var(--surface-2)}
.em-checks-sum span.is-done{background:light-dark(#e6f4ea,#1d3527);color:light-dark(#1e6b3a,#8fd6a6)}
.em-checks.is-closed .card-head{margin-bottom:0}
.em-checks-all{display:flex;gap:8px;align-items:center;margin:0 0 12px;padding:10px 12px;border-radius:var(--r-md);background:light-dark(#e6f4ea,#1d3527);color:light-dark(#1e6b3a,#8fd6a6);font-weight:500;font-size:14px}
.em-checks-all .icon{width:16px;height:16px}
.em-checks-lists{display:grid;gap:22px}
.em-checks-list+.em-checks-list{padding-top:18px;border-top:1px solid var(--line)}
.em-checks-list{display:grid;gap:10px}
.em-checks-list.is-later ul{opacity:.72}
.em-checks-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.em-checks-head h4{margin:0;font-size:14px}
.em-checks-head span{font-size:12.5px}
.em-checks-bar{height:6px;border-radius:3px;background:var(--line);overflow:hidden}
.em-checks-bar i{display:block;height:100%;border-radius:3px;background:var(--accent);transition:width .3s ease}
.em-checks-list ul{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.em-checks-list li{display:flex;align-items:flex-start;gap:8px;padding:6px 8px;margin:0 -8px;border-radius:8px}
.em-checks-list li:hover{background:var(--surface-2)}
.em-checks-list li label{display:flex;align-items:flex-start;gap:10px;flex:1;min-width:0;cursor:pointer;font-weight:400;font-size:13.5px;line-height:1.45;color:var(--ink)}
.em-checks-list li input[type=checkbox]{margin-top:2px;flex:none;width:16px;height:16px;accent-color:var(--accent)}
.em-checks-text{display:flex;flex-wrap:wrap;gap:2px 8px;align-items:baseline;min-width:0}
.em-checks-text small{font-size:11.5px}
.em-checks-own{padding:1px 6px;border-radius:999px;background:var(--accent-soft,var(--surface-2));color:var(--accent-ink,var(--ink-2));font-size:11px}
.em-checks-list li.is-done .em-checks-text>:first-child,.em-checks-list li.is-done label{color:var(--ink-2)}
.em-checks-list li.is-skipped label{color:var(--ink-2)}
.em-checks-list li.is-skipped .em-checks-text{text-decoration:line-through;text-decoration-color:color-mix(in srgb,currentColor 45%,transparent)}
.em-checks-list li.is-skipped .em-checks-text small{text-decoration:none}
.em-checks-tools{display:flex;gap:4px;align-items:center;flex:none;opacity:0;transition:opacity .15s}
.em-checks-list li:hover .em-checks-tools,.em-checks-list li:focus-within .em-checks-tools{opacity:1}
.em-checks-tools .link-button{font-size:12px;padding:0}
.em-checks-tools .icon-button .icon{width:13px;height:13px}
.em-checks-add{display:flex;gap:8px}
.em-checks-add input{flex:1;min-width:0;font-size:13px}
@media (hover:none),(max-width:720px){.em-checks-tools{opacity:1}}
.em-tpl-checks-lists{display:grid;gap:22px}
.em-tpl-checks-list+.em-tpl-checks-list{padding-top:18px;border-top:1px solid var(--line)}
.em-tpl-checks-list h4{display:flex;align-items:center;gap:8px;margin:0 0 8px;font-size:14px}
.em-tpl-checks-list h4 .link-button{margin-left:auto;font-size:12px}
.em-tpl-checks-list ol{list-style:none;margin:0 0 8px;padding:0;display:grid;gap:6px}
.em-tpl-checks-list li{display:flex;align-items:center;gap:8px}
.em-tpl-checks-list li input{flex:1;min-width:0;font-size:13px}
.em-tpl-checks-n{width:18px;text-align:right;font-size:12px;color:var(--ink-2)}
.em-tpl-checks-tools{display:flex;gap:2px}
.em-tpl-checks-tools .icon-button.is-up .icon{transform:rotate(180deg)}
.em-tpl-checks-tools .icon{width:13px;height:13px}

/* The timeline: one client's story, by day */
.em-timeline .card-head{flex-wrap:wrap}
.em-tl-filters{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 14px}
.em-tl-filters .chip{cursor:pointer;font:inherit;font-size:12.5px;border:0;display:inline-flex;gap:6px;align-items:center}
.em-tl-filters .chip span{color:var(--ink-2);font-size:11.5px}
.em-tl-filters .chip.is-on{background:var(--ink);color:var(--surface)}
.em-tl-filters .chip.is-on span{color:inherit;opacity:.7}
.em-tl-filters .chip:disabled{opacity:.45;cursor:default}
.em-tl{display:grid;gap:16px}
.em-tl-day h4{margin:0 0 8px;font-size:12px;font-weight:600;letter-spacing:.02em;text-transform:uppercase;color:var(--ink-2)}
.em-tl-day ol{list-style:none;margin:0;padding:0;position:relative}
.em-tl-day ol::before{content:"";position:absolute;left:11px;top:6px;bottom:6px;width:2px;border-radius:1px;background:var(--line)}
.em-tl-item{position:relative;display:grid;grid-template-columns:24px minmax(0,1fr);gap:10px;padding:5px 0}
.em-tl-dot{position:relative;z-index:1;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:var(--surface);box-shadow:inset 0 0 0 2px var(--line)}
.em-tl-dot:empty::after{content:"";width:8px;height:8px;border-radius:50%;background:var(--ink-2)}
.em-tl-dot .icon{width:12px;height:12px;color:var(--ink-2)}
.em-tl-item.a-client .em-tl-dot{box-shadow:inset 0 0 0 2px light-dark(#e9a23b,#c98a2c)}
.em-tl-item.a-client .em-tl-dot:empty::after{background:light-dark(#e9a23b,#e0a54a)}
.em-tl-item.a-client .em-tl-dot .icon{color:light-dark(#b8741a,#e0a54a)}
.em-tl-item.a-emvane .em-tl-dot:empty::after{background:var(--accent)}
.em-tl-item.a-emvane .em-tl-dot{box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--accent) 55%,var(--line))}
.em-tl-item.a-emvane .em-tl-dot .icon{color:var(--accent)}
.em-tl-body{display:grid;gap:4px;min-width:0;padding-top:2px}
.em-tl-text{font-size:13.5px;line-height:1.45;color:var(--ink)}
.em-tl-meta{font-size:11.5px}
.em-tl-quote{margin:2px 0 0;padding:8px 12px;border-left:2px solid light-dark(#e9a23b,#c98a2c);border-radius:0 8px 8px 0;background:var(--surface-2);font-size:13px;line-height:1.5;color:var(--ink);white-space:pre-line;overflow-wrap:anywhere}
.em-tl-quote.is-notes{border-left-color:var(--accent)}
.em-tl-mails{display:grid;gap:4px}
.em-tl-mail{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;font-size:12.5px}
.em-tl-mail-subject .icon{width:12px;height:12px;margin-right:6px;vertical-align:-1px;color:var(--ink-2)}
.em-tl-mail-subject{color:var(--ink-2);min-width:0;overflow-wrap:anywhere}
.em-tl-mail .chip{font-size:11px;padding:1px 7px}
.em-tl-mail .link-button{font-size:12.5px;padding:0}
.em-tl-more{margin-top:8px}

/* Search above the lists: all of them, and where the server found it */
.em .rl-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px}
.em-search-note{white-space:nowrap}
.rl-tabs.is-searching{opacity:.55}
.em-found{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin-top:3px;font-size:12px;line-height:1.4;font-weight:400;color:var(--accent-ink,var(--ink-2));white-space:normal}
.em-found .icon{width:11px;height:11px;margin-right:4px;vertical-align:-1px}
@media (max-width:720px){.em .rl-toolbar .search-field{flex:1 1 100%}.em-search-note{flex-basis:100%}}

/* Delete a request (spam, a test): quietly at the bottom of the status card */
.em-delete-request{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 12px;margin-top:4px;padding-top:12px;border-top:1px solid var(--line)}
.em-delete-request .link-button{display:inline-flex;gap:5px;align-items:center;padding:0;font-size:13px;color:var(--danger)}
.em-delete-request .icon{width:13px;height:13px}
