:root{
  /* Sampled from the brand banner: the paper is #f9f9ed and the fruit is
     #f06023. Orange belongs to the fruit — the lettering is ink. */
  --wl-orange:#f06023;
  --wl-orange-dark:#d44f16;
  --wl-orange-light:#f48354;
  --wl-cream:#f9f9ed;
  --wl-cream-tint:#f3f3e4;
  --wl-ink:#1c1c17;
  /* Structure is drawn in ink and paper. Orange is reserved for the one thing
     on a screen that wants the eye — not for every card edge and heading. */
  --wl-paper:#ffffff;
  --wl-rule:#e6e6d6;
  --wl-rule-strong:#d0d0be;
  --wl-muted:#7c7c70;
  --wl-serif:'Cormorant SC',Georgia,serif;
  --wl-serif-body:'Cormorant Garamond',Georgia,serif;
}
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;background:var(--wl-cream);color:#333}
nav{background:var(--wl-ink);color:#f3ece2;padding:0 14px;display:flex;align-items:center;height:46px;gap:2px;position:sticky;top:0;z-index:100;box-shadow:0 1px 0 rgba(58,46,37,.18);overflow-x:auto;-webkit-overflow-scrolling:touch;flex-wrap:nowrap}
.nav-brand{font-family:var(--wl-serif);font-weight:600;font-size:16px;letter-spacing:2.5px;text-transform:uppercase;margin-right:18px;white-space:nowrap;flex-shrink:0;color:#fffdf9}
.nav-link{color:rgba(255,253,249,.62);font-size:11px;letter-spacing:.9px;text-transform:uppercase;padding:5px 9px;border-radius:3px;cursor:pointer;border:none;background:none;white-space:nowrap;flex-shrink:0;font-family:inherit}
.nav-more{position:relative;flex-shrink:0}
/* position:fixed, not absolute: the nav scrolls horizontally (overflow-x:
   auto), and an absolute child gets CLIPPED to its 46px strip — the menu
   opened invisibly and "pressing More did nothing". */
.nav-more-menu{display:none;position:fixed;z-index:300;
  background:#26261f;border:1px solid #3a3a2e;border-radius:6px;padding:6px;min-width:150px;
  box-shadow:0 10px 24px rgba(0,0,0,.35)}
.nav-more.open .nav-more-menu{display:flex;flex-direction:column;align-items:stretch}
.nav-more-menu .nav-link{text-align:left;padding:7px 10px}
.nav-link:hover{color:#fffdf9}
.nav-link.active{color:#fffdf9;background:rgba(255,253,249,.14)}
.nav-search{margin-left:auto;flex-shrink:0}
.nav-search input{padding:5px 10px;border-radius:20px;border:none;background:rgba(255,255,255,.25);color:white;width:130px;outline:none;font-size:11px}
.nav-search input::placeholder{color:rgba(255,255,255,.65)}
main{max-width:1200px;margin:0 auto;padding:24px 20px}
.page{display:none}.page.active{display:block}
.card{background:var(--wl-paper);border:1px solid var(--wl-rule);border-radius:4px;padding:24px 26px;box-shadow:0 1px 6px rgba(58,46,37,.05);margin-bottom:20px}
/* Coloured left edges were doing the work headings should do. Any card still
   asking for one gets a hairline in ink, not a stripe in orange. */
.card[style*="border-left"]{border-left:1px solid var(--wl-rule) !important}
.card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-bottom:24px}
.kpi-val{font-family:var(--wl-serif-body);font-size:42px;font-weight:600;color:var(--wl-ink);line-height:1}
.kpi-label{font-size:11px;color:var(--wl-muted);margin-top:6px;text-transform:uppercase;letter-spacing:.8px}
.kpi-sub{font-size:12px;color:#9a9a8c;margin-top:6px}
table{width:100%;border-collapse:collapse;font-size:14px}
th{text-align:left;padding:9px 12px;background:transparent;color:var(--wl-muted);font-weight:600;font-size:10px;text-transform:uppercase;letter-spacing:1.2px;border-bottom:1px solid var(--wl-rule-strong)}
td{padding:11px 12px;border-bottom:1px solid var(--wl-rule);vertical-align:middle}
tr:last-child td{border-bottom:none}
tr.click{cursor:pointer}tr.click:hover td{background:var(--wl-cream-tint)}
.badge{display:inline-block;padding:2px 8px;border-radius:10px;font-size:11px;font-weight:700;text-transform:uppercase}
.b-family{background:#f8e3d3;color:var(--wl-ink)}.b-friend{background:#fef3e2;color:#8f3a1c}
.b-preferred{background:#e8f4fd;color:#2980b9}.b-none{background:#f0f0f0;color:#888}
.b-hot{background:#fff3e0;color:#8f3a1c}.b-vip{background:#f3e5f5;color:#7b1fa2}
/* Stage badges were eight different hues. The distinction is carried by
   weight and one ink, so a table reads as one thing rather than a paint chart. */
/* No pill, no fill. A filled black lozenge on every other row was the
   loudest mark in the table and the least important thing in it. The stage
   is small caps in ink, and how emphatic it is carries the difference. */
.sb{padding:0;border:none;background:none;border-radius:0;font-size:10px;font-weight:600;
  letter-spacing:1.3px;text-transform:uppercase;color:#9a9a8c;white-space:nowrap}
.sb-recurring{color:var(--wl-ink);font-weight:700}
.sb-vip{color:var(--wl-ink);font-weight:700;border-bottom:1px solid var(--wl-ink)}
.sb-active{color:#6a6a5c}
.sb-new-lead,.sb-contacted,.sb-responded,.sb-proposal{color:#9a9a8c}
.sb-inactive{color:#b5b5a5}
.alert-list{display:flex;flex-direction:column;gap:8px}
.ai{padding:11px 14px;border-radius:3px;font-size:13px;border:1px solid var(--wl-rule);border-left:2px solid var(--wl-rule-strong);background:var(--wl-paper);display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.ai-red,.ai-orange,.ai-blue,.ai-green{border-left-color:var(--wl-rule-strong)}
.aico{font-weight:600}
.sh{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.st{font-family:var(--wl-serif);font-size:20px;font-weight:600;letter-spacing:2px;text-transform:uppercase;color:var(--wl-ink)}
.ss{font-family:var(--wl-serif-body);font-style:italic;font-size:14px;color:var(--wl-muted);margin-top:3px}
/* A thin rule under a heading reads as structure without a coloured bar. */
.sh{border-bottom:1px solid var(--wl-rule);padding-bottom:12px}
#modal-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:200;align-items:center;justify-content:center}
#modal-overlay.open{display:flex}
/* 820 cut the last column off every six-column table it held. */
#modal{background:var(--wl-cream);border-radius:4px;width:94%;max-width:1060px;max-height:90vh;
  overflow-y:auto;padding:34px 36px;position:relative;border:1px solid var(--wl-rule)}
.mc{position:absolute;top:14px;right:18px;font-size:26px;cursor:pointer;color:#aaa;border:none;background:none}
.mco{font-family:var(--wl-serif);font-size:26px;font-weight:700;color:var(--wl-ink);margin-bottom:4px}
.mme{font-size:13px;color:#888;margin-bottom:20px}
.ms{margin-bottom:22px}
.ms h3{font-size:12px;font-weight:700;text-transform:uppercase;color:#aaa;letter-spacing:.6px;margin-bottom:10px;padding-bottom:6px;border-bottom:1px solid #eee}
.sr{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px}
.sb2{background:#f8f8f8;border-radius:8px;padding:12px;text-align:center}
.sb2 .v{font-size:20px;font-weight:700;color:var(--wl-ink)}.sb2 .l{font-size:11px;color:#888;margin-top:3px}
.form-row{display:flex;gap:12px;margin-bottom:14px;flex-wrap:wrap}
.dtabs{display:flex;gap:4px;margin-bottom:20px;border-bottom:2px solid #f0ebe5}
.dtab{background:none;border:none;padding:8px 16px;font-size:13px;font-weight:600;color:#aaa;cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-2px;transition:color .15s}
.dtab.active{color:var(--wl-ink);border-bottom-color:var(--wl-ink)}
.dtab:hover:not(.active){color:#555}
.pfield{margin-bottom:14px}
.pfield label{display:block;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:#aaa;margin-bottom:4px}
.pfield input,.pfield textarea,.pfield select{width:100%;padding:8px 10px;border:1px solid #e8e0d8;border-radius:6px;font-size:13px;background:#fafaf8;resize:vertical;font-family:inherit}
.pfield input:focus,.pfield textarea:focus{outline:none;border-color:var(--wl-ink);background:#fff}
.story-box{background:#f8f4ee;border-left:3px solid var(--wl-orange);border-radius:0 8px 8px 0;padding:14px 16px;margin-bottom:20px;font-size:13px;line-height:1.65;color:#3a2e25}
.story-box strong{display:block;font-size:10px;text-transform:uppercase;letter-spacing:1px;color:var(--wl-ink);margin-bottom:6px}
.profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}
@media(max-width:600px){.profile-grid{grid-template-columns:1fr}}
.fg{display:flex;flex-direction:column;gap:4px;flex:1;min-width:140px}
.fg label{font-size:12px;font-weight:600;color:#555}
.fg input,.fg select,.fg textarea{padding:7px 10px;border:1px solid #ddd;border-radius:6px;font-size:13px;font-family:inherit}
/* Actions are set in the page, not stuck on top of it. A filled black pill
   on every row made the eye go to the button instead of the figure it was
   about. These read as words and answer to the pointer: a rule appears
   under them on hover, and inside a row they stay out of the way until you
   are on that row. */
.btn{padding:5px 2px;border:none;border-radius:0;background:none;cursor:pointer;
  font-size:12px;font-weight:600;font-family:inherit;letter-spacing:.3px;color:#6a6a5c;
  border-bottom:1px solid transparent;transition:color .12s,border-color .12s,opacity .12s}
.btn:hover{color:var(--wl-ink);border-bottom-color:var(--wl-ink)}
.btn:focus-visible{outline:1px solid var(--wl-ink);outline-offset:3px}
.btn[disabled]{opacity:.4;cursor:default;border-bottom-color:transparent!important;color:#9a9a8c}
.btn-p{color:var(--wl-ink);border-bottom-color:var(--wl-rule-strong)}
.btn-p:hover{border-bottom-color:var(--wl-ink)}
.btn-s{color:#6a6a5c}
.btn-sm{padding:3px 2px;font-size:12px}
/* In a row or an action line, wait to be looked at. */
tbody tr .btn,.wl-action .btn,.ai .btn{opacity:.4}
tbody tr:hover .btn,.wl-action:hover .btn,.ai:hover .btn,
tbody tr .btn:focus-visible,.wl-action .btn:focus-visible{opacity:1}
/* Anchors styled as buttons (the mailto: and tel: ones) come along too. */
a.btn{text-decoration:none;display:inline-block}
.filter-bar{display:flex;gap:18px;margin-bottom:16px;flex-wrap:wrap;align-items:baseline}
.fc{padding:3px 0;border:none;background:none;cursor:pointer;font-size:12px;color:#8a8a7c;
  font-family:inherit;letter-spacing:.3px;border-bottom:1px solid transparent;
  transition:color .12s,border-color .12s}
.fc:hover{color:var(--wl-ink)}
.fc.active{color:var(--wl-ink);border-bottom-color:var(--wl-ink);font-weight:700}
/* ---- the roadmap ---- */
.wl-road-lede{font-family:var(--wl-serif-body);font-size:19px;line-height:1.6;color:#3c3c34;
  max-width:68ch;margin:0 0 24px}
.wl-road-lede strong{font-weight:700;color:var(--wl-ink)}
.wl-ms-list{display:flex;flex-direction:column}
.wl-ms{border-bottom:1px solid var(--wl-rule)}
.wl-ms:last-child{border-bottom:none}
.wl-ms-head{display:grid;grid-template-columns:22px minmax(96px,1.1fr) minmax(74px,.8fr) 64px 76px 1fr;
  gap:14px;align-items:baseline;width:100%;padding:13px 2px;background:none;border:none;
  cursor:pointer;font-family:inherit;text-align:left;transition:background .12s}
.wl-ms-head:hover{background:var(--wl-cream-tint)}
.wl-ms-mark{font-size:13px;color:var(--wl-muted)}
.wl-ms-next .wl-ms-mark{color:var(--wl-ink)}
.wl-ms-label{font-family:var(--wl-serif-body);font-size:17px;font-weight:600;color:var(--wl-ink)}
.wl-ms-done .wl-ms-label{color:#8a8a7c;font-weight:400}
.wl-ms-date{font-size:12px;color:var(--wl-muted)}
.wl-ms-pct{font-family:var(--wl-serif-body);font-size:16px;font-weight:600;color:var(--wl-ink)}
.wl-ms-done .wl-ms-pct{color:#9a9a8c;font-weight:400}
.wl-ms-amt{font-size:13px;color:#6a6a5c}
.wl-ms-state{font-size:12px;color:var(--wl-muted);font-style:italic;
  font-family:var(--wl-serif-body);text-align:right}
.wl-ms-state.is-done{color:#4a7c59;font-style:normal}
.wl-ms-state.is-late{color:var(--wl-fruit,#a8502a)}
.wl-ms-body{padding:4px 2px 18px 36px}
.wl-ms-line{display:flex;justify-content:space-between;gap:16px;padding:6px 0;
  border-bottom:1px dashed var(--wl-rule);font-size:13px}
.wl-ms-line:last-child{border-bottom:none}
.wl-ms-line span{color:var(--wl-muted)}
.wl-ms-line strong{color:var(--wl-ink);font-weight:600;text-align:right}
@media(max-width:760px){
  .wl-ms-head{grid-template-columns:20px 1fr auto;row-gap:2px}
  .wl-ms-date,.wl-ms-amt{grid-column:2}
  .wl-ms-state{grid-column:1/-1;text-align:left}
  .wl-ms-body{padding-left:8px}
}
.wl-chart-read{font-family:var(--wl-serif-body);font-size:14px;color:#6a6a5c;
  min-height:22px;margin-top:14px;padding-top:11px;border-top:1px solid var(--wl-rule);
  line-height:1.5}
.wl-chart-read strong{color:var(--wl-ink);font-weight:600}
.wl-bar:hover{opacity:1!important}
/* ---- the diary ---- */
.wl-cal-head{display:flex;align-items:center;gap:14px;margin-bottom:16px}
.wl-cal-month{font-family:var(--wl-serif);font-size:16px;letter-spacing:2.4px;
  text-transform:uppercase;color:var(--wl-ink);min-width:172px}
/* minmax(0,1fr), not 1fr: a grid track's min-width is auto, so one long
   company name in a nowrap span pushes the whole calendar wider than the
   window and the last column disappears off the edge. */
.wl-cal{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:1px;
  background:var(--wl-rule);border:1px solid var(--wl-rule)}
.wl-cal-dow{background:var(--wl-cream-tint);padding:6px 8px;font-size:9px;letter-spacing:1.6px;
  text-transform:uppercase;color:var(--wl-muted);text-align:center}
.wl-day{background:var(--wl-paper);min-height:74px;padding:6px 7px 8px;display:flex;
  flex-direction:column;gap:3px;min-width:0;overflow:hidden}
.wl-day-out{background:#fbfbf3}
.wl-day-out .wl-day-n{color:#cfcfc0}
.wl-day-now{background:var(--wl-cream-tint)}
.wl-day-now .wl-day-n{color:var(--wl-ink);font-weight:700}
.wl-day-n{font-family:var(--wl-serif-body);font-size:12px;color:#b5b5a5;line-height:1;
  margin-bottom:1px}
.wl-day-clash{box-shadow:inset 0 0 0 2px #b5432a}
.wl-clash{float:right;font-size:9px;font-weight:700;letter-spacing:.4px;color:#b5432a;
  text-transform:uppercase;font-family:var(--wl-sans,inherit)}
/* Two shapes, not two greys. Booked is a block you could pick up: a filled
   card with a heavy rule down its edge. Catered is a plain ledger line under
   a divider, with the money in the right-hand column. Told apart by weight,
   fill and position, so it still reads with the colour taken away. */
.wl-bk{display:block;width:100%;min-width:0;text-align:left;cursor:pointer;font-family:inherit;
  padding:4px 6px 5px 8px;background:var(--wl-cream-tint);border:none;
  border-left:3px solid var(--wl-ink);transition:background .12s;line-height:1.3}
.wl-bk:hover{background:#ecead6}
.wl-bk .wl-ev-co{font-size:11.5px;font-weight:700;letter-spacing:.1px}
.wl-bk .wl-ev-sub{color:#8a8a7c;font-size:10px}
/* CATERED — work that happened. No rule, a filled mark, the money on the
   right. Deliberately a different shape so the two never read as one list. */
.wl-sv-group{display:flex;flex-direction:column;gap:1px}
.wl-sv-ruled{margin-top:4px;padding-top:4px;border-top:1px dotted #d8d8c6}
.wl-sv{display:flex;width:100%;min-width:0;gap:5px;align-items:flex-start;text-align:left;
  background:none;border:none;cursor:pointer;font-family:inherit;padding:1px 2px 1px 0;
  line-height:1.3;transition:color .12s}
.wl-sv:hover .wl-sv-co,.wl-sv:hover .wl-sv-amt{color:var(--wl-ink)}
.wl-sv-co{flex:1;min-width:0;font-size:10.5px;color:#9a9a8c;overflow:hidden;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  line-height:1.25;word-break:break-word;font-weight:400}
.wl-sv-amt{font-size:10px;color:#b8b8a8;white-space:nowrap;font-family:var(--wl-serif-body);
  font-variant-numeric:tabular-nums}
/* The clock, where the export gave us one. */
.wl-sv-t{font-size:9.5px;color:#a8a89a;font-variant-numeric:tabular-nums;
  white-space:nowrap;flex:0 0 auto}
.wl-bk-t{font-variant-numeric:tabular-nums;color:inherit;opacity:.72;font-weight:600}
.wl-legend{display:flex;gap:14px;align-items:center;margin-left:14px}
.wl-leg{display:flex;align-items:center;gap:6px;background:none;border:none;cursor:pointer;
  font-family:inherit;font-size:11px;color:#b5b5a5;padding:3px 0;letter-spacing:.2px}
.wl-leg.on{color:var(--wl-ink)}
.wl-leg-bk{width:9px;height:11px;background:var(--wl-cream-tint);
  border-left:3px solid var(--wl-ink);display:inline-block;margin-right:1px}
.wl-leg-sv{width:14px;height:11px;border-top:1px dotted #c2c2b0;display:inline-block;
  position:relative}
.wl-leg-sv:after{content:'';position:absolute;left:0;right:5px;top:4px;
  border-top:1px solid #d8d8c6}
.wl-leg:not(.on) .wl-leg-bk{border-left-color:#dedecd;background:none}
.wl-leg:not(.on) .wl-leg-sv{opacity:.4}
/* A cell is ~145px. "WJ Landscape Maintenance, Inc." cut to one line reads
   "WJ Landscape Mai…", which names nothing. Two lines, then ellipsis. */
.wl-ev-co{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  min-width:0;font-size:11px;font-weight:600;color:var(--wl-ink);overflow:hidden;
  line-height:1.25;word-break:break-word}
.wl-ev-sub{display:block;font-size:10px;color:#b0b0a0;white-space:nowrap;overflow:hidden;
  margin-top:1px}
/* The fill says "this is a booking"; the rule says which kind. #c7c7b5 was
   near-invisible against the fill, so every enquiry — which is most of
   them — looked unruled. */
.wl-bk-enquiry{border-left-color:#9a9a8c;background:#f4f4e6}
.wl-bk-held{border-left-color:#d4622a;background:#fbf0e7}
.wl-bk-held .wl-ev-co{color:#8f3a1c}
.wl-bk-confirmed{border-left-color:#2f6b45;background:#eaf3ec}
.wl-bk-confirmed .wl-ev-co{color:#235436}
.wl-bk-delivered{border-left-color:#7b9aa8;background:#eef3f5}
.wl-bk-delivered .wl-ev-co{color:#4a6875}
.wl-bk-lost{border-left-color:#cfcfc0}
.wl-bk-lost{background:none}
.wl-bk-lost .wl-ev-co{color:#b5b5a5;text-decoration:line-through;font-weight:400}
.sb-bk-enquiry{color:#9a9a8c}
.sb-bk-held{color:#a8502a;font-weight:700}
.sb-bk-confirmed{color:var(--wl-ink);font-weight:700}
.sb-bk-delivered{color:#4a7c59}
.sb-bk-lost{color:#b5b5a5}
@media(max-width:760px){
  .wl-day{min-height:64px}
  .wl-ev-sub{display:none}
}

/* ---- Mediaslide-style agenda ------------------------------------------
   ONE fixed meaning per visual element, used identically everywhere:
   SHAPE  = status. A pencil entry (cream card, dashed edge) is an enquiry
            or a hold; a solid card is confirmed; faded + struck + red X is
            cancelled and stays on the calendar; a thin ruled line is an
            order already catered.
   COLOUR = use case (tokens below): the left edge of a pencil entry, the
            whole fill once confirmed. Charcoal = no use case recorded.
   ICONS top-right = billing/confirmation state (INV, lock, paid,
            client-confirmed, awaiting-reply).
   Status had been carried by stripes vs solid in the SAME colour, and with
   most bookings on the pale no-use-case tint the two were hard to tell
   apart at a glance. Shape now does that job on its own. */
:root{
  --uc-office:#4a7ba6; --uc-meeting:#6b5ea8; --uc-client:#2f8560;
  --uc-party:#d4622a;  --uc-conf:#b08c2e;    --uc-film:#a83a5e;
  --uc-other:#7d7d6f;  --uc-none:#a8a89a;
}
/* The agenda fills the window and STOPS: each column scrolls inside itself.
   Without the height cap, 158 companies in the sidebar set the height of the
   whole grid and the page became an endless scroll past an empty calendar. */
.ms-wrap{display:grid;grid-template-columns:208px minmax(0,1fr) 228px;gap:0;
  border:1px solid var(--wl-rule);background:var(--wl-paper);
  height:calc(100vh - 168px);min-height:520px}
.ms-wrap>*{min-height:0}
.ms-main{overflow-y:auto}
/* dark company sidebar */
.ms-side{background:#26261f;color:#cfcfc0;padding:10px 0;display:flex;flex-direction:column;
  min-height:0;font-size:12px}
.ms-side select,.ms-side input{width:calc(100% - 20px);margin:0 10px 8px;background:#33332a;
  border:1px solid #44443a;color:#e8e8dc;font-family:inherit;font-size:11.5px;padding:5px 8px;
  border-radius:4px;outline:none;box-sizing:border-box}
.ms-az{display:flex;flex-wrap:wrap;gap:1px;padding:0 10px 6px;font-size:9px}
.ms-az button{background:none;border:none;color:#8a8a7c;cursor:pointer;font-family:inherit;
  font-size:9px;padding:1px 3px}
.ms-az button:hover{color:#fffdf9}
.ms-side-count{padding:2px 12px 6px;font-size:10px;color:#8a8a7c;letter-spacing:.6px;
  text-transform:uppercase;border-bottom:1px solid #33332a}
.ms-side-list{overflow-y:auto;flex:1;min-height:0}
.ms-co{display:block;width:100%;text-align:left;background:none;border:none;cursor:pointer;
  font-family:inherit;color:#dcdccb;padding:6px 12px 5px;border-bottom:1px solid #2e2e26;line-height:1.3}
.ms-co:hover{background:#2e2e26}
.ms-co.on{background:#3a3a2e;color:#fffdf9}
.ms-co .n{font-size:12px;font-weight:600;display:block}
.ms-co .t{font-size:9.5px;color:#8a8a7c;letter-spacing:.3px}
/* main calendar column */
.ms-main{min-width:0;display:flex;flex-direction:column;padding:10px 12px 14px}
.ms-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:6px}
.ms-title{flex:1;text-align:center;font-family:var(--wl-serif);font-size:19px;
  letter-spacing:2.6px;text-transform:uppercase;color:var(--wl-ink);min-width:200px}
.ms-btn{background:var(--wl-paper);border:1px solid var(--wl-rule-strong);color:var(--wl-ink);
  font-family:inherit;font-size:11px;padding:4px 10px;cursor:pointer;border-radius:4px}
.ms-btn:hover{background:var(--wl-cream-tint)}
.ms-btn.on{background:var(--wl-ink);color:var(--wl-paper);border-color:var(--wl-ink)}
.ms-filters{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:8px}
.ms-filters select,.ms-filters input[type=date]{font-family:inherit;font-size:11px;
  border:1px solid var(--wl-rule-strong);background:var(--wl-paper);color:var(--wl-ink);
  padding:3px 6px;border-radius:4px;outline:none}
/* the grid, with a legend gutter on the left edge */
.ms-body{display:grid;grid-template-columns:96px minmax(0,1fr);gap:0;flex:1;min-height:0}
.ms-legend{border:1px solid var(--wl-rule);border-right:none;background:var(--wl-cream-tint);
  padding:8px 7px;font-size:9px;display:flex;flex-direction:column;gap:7px}
.ms-leg-row{line-height:1.25;color:#6f6f61}
.ms-leg-sw{display:inline-block;width:11px;height:9px;vertical-align:-1px;margin-right:3px}
.ms-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:1px;
  background:var(--wl-rule);border:1px solid var(--wl-rule);align-content:start}
.ms-grid.ms-1col{grid-template-columns:minmax(0,1fr)}
.ms-dow{background:#eceadb;padding:4px 6px;font-size:9px;letter-spacing:1.4px;
  text-transform:uppercase;color:var(--wl-muted);text-align:center}
.ms-day{background:var(--wl-paper);min-height:96px;padding:3px 4px 5px;display:flex;
  flex-direction:column;gap:2px;min-width:0;overflow:hidden}
.ms-day.ms-drop{outline:2px dashed var(--uc-office);outline-offset:-2px}
.ms-day-out{background:#fbfbf3}
.ms-day-now{background:var(--wl-cream-tint)}
.ms-day-n{font-family:var(--wl-serif-body);font-size:11px;color:#b5b5a5;line-height:1.1}
.ms-day-now .ms-day-n{color:var(--wl-ink);font-weight:700}
.ms-day-clash .ms-day-n:after{content:'\26a0 overlap';float:right;font-size:8px;font-weight:700;
  letter-spacing:.4px;color:#b5432a;text-transform:uppercase}
/* THE BLOCK. Shape = status; --uc (use-case colour) = the left edge on a
   pencil entry, the whole fill once confirmed. Solid = confirmed. */
.ms-ev{position:relative;display:block;width:100%;min-width:0;text-align:left;cursor:pointer;
  font-family:inherit;border:1px solid transparent;padding:3px 5px 3px 7px;line-height:1.25;border-radius:2px;
  color:#fffdf9;background:var(--uc);overflow:hidden;box-shadow:inset 3px 0 0 var(--uc)}
.ms-ev .ms-ev-time{font-size:9px;font-weight:600;opacity:.85;font-variant-numeric:tabular-nums;display:block}
.ms-ev .ms-ev-co{font-size:11px;font-weight:700;display:-webkit-box;-webkit-line-clamp:2;
  -webkit-box-orient:vertical;overflow:hidden;word-break:break-word}
.ms-ev .ms-ev-own{font-size:9px;opacity:.8;display:block}
/* enquiry / hold: a pencil entry — open cream card, dashed edge, the use
   case only as a thin left bar. Nothing about it looks booked. */
.ms-ev.ms-tent{color:#3c3c34;background:#fffdf9;border:1px dashed #9a9a8c;
  box-shadow:inset 3px 0 0 var(--uc)}
.ms-ev.ms-tent .ms-ev-co{color:#2c2c26}
/* cancelled: faded, struck through, red X. It stays visible. */
.ms-ev.ms-cxl{background:#f1f0e6;border:1px solid #e2e0d0;color:#8a8a7c;box-shadow:inset 3px 0 0 #c9c8b8}
.ms-ev.ms-cxl .ms-ev-co{text-decoration:line-through;font-weight:600;color:#8a8a7c}
.ms-ev.ms-cxl:before{content:'\2715';position:absolute;right:3px;bottom:2px;color:#b5432a;
  font-size:10px;font-weight:700}
.ms-ev[draggable=true]{cursor:grab}
/* icon strip, top-right, fixed order: INV · lock · paid/confirmed/awaiting */
.ms-ic{position:absolute;top:2px;right:3px;display:flex;gap:2px;align-items:center;line-height:1}
.ms-ic span{font-size:8px}
.ms-ic .inv{background:#fffdf9;color:#3c3c34;border-radius:2px;font-weight:800;
  font-size:7px;padding:0 2px;letter-spacing:.4px}
.ms-tent .ms-ic .inv,.ms-cxl .ms-ic .inv{background:#3c3c34;color:#fffdf9}
.ms-ic .pay{color:#8fe3a8}.ms-tent .ms-ic .pay,.ms-cxl .ms-ic .pay{color:#2f8560}
.ms-ic .awt{color:#fffdf9;opacity:.75}.ms-tent .ms-ic .awt,.ms-cxl .ms-ic .awt{color:#8a8a7c}
/* confirmed with no use case recorded: solid charcoal. Still unmistakably a
   firm booking — the pale tint it used to get read as "maybe". */
/* legend samples are the real block styles at legend size, not swatches */
.ms-leg-ev{font-size:8.5px;padding:2px 4px 2px 6px;margin-bottom:3px;cursor:default;pointer-events:none}
.ms-leg-ev .ms-ev-co{font-size:8.5px}
.ms-leg-dot{display:inline-block;width:7px;height:7px;border-radius:50%;vertical-align:-1px;margin-right:4px}
.ms-leg-h{color:#3c3c34;font-weight:700;margin-bottom:3px;letter-spacing:.2px}
/* CATERED: history, not a plan. A thin ledger row under a rule — a different
   SHAPE from bookings, so colour stays free to mean "use case". */
.ms-svg{display:flex;flex-direction:column;gap:1px}
.ms-svg-ruled{margin-top:3px;padding-top:3px;border-top:1px dotted #d8d8c6}
.ms-svr{display:flex;width:100%;min-width:0;gap:4px;align-items:baseline;text-align:left;
  background:none;border:none;cursor:pointer;font-family:inherit;padding:1px 2px;line-height:1.3}
.ms-svr .t{font-size:9px;color:#a8a89a;font-variant-numeric:tabular-nums;flex:0 0 auto}
.ms-svr .n{flex:1;min-width:0;font-size:10px;color:#8f8f80;overflow:hidden;white-space:nowrap;
  text-overflow:ellipsis}
.ms-svr .a{font-size:9.5px;color:#a8a89a;font-variant-numeric:tabular-nums;white-space:nowrap;
  font-family:var(--wl-serif-body)}
.ms-svr:hover .n,.ms-svr:hover .a{color:var(--wl-ink)}
.ms-svr-guest .n{font-style:italic;color:#a8a89a}
/* multi-day span: continuous bar across day cells */
.ms-ev.ms-span-mid,.ms-ev.ms-span-end{margin-left:-5px;border-top-left-radius:0;border-bottom-left-radius:0}
.ms-ev.ms-span-start,.ms-ev.ms-span-mid{margin-right:-5px;border-top-right-radius:0;border-bottom-right-radius:0}
.ms-ev.ms-span-mid .ms-ev-co,.ms-ev.ms-span-end .ms-ev-co{visibility:hidden}
/* live feed rail */
.ms-rail{border-left:1px solid var(--wl-rule);padding:10px 12px;font-size:11px;min-width:0;
  background:#fbfaf2;overflow-y:auto}
.ms-rail h4{margin:0 0 8px;font-size:10px;letter-spacing:1.6px;text-transform:uppercase;
  color:var(--wl-muted);font-weight:700}
.ms-feed{padding:6px 0;border-bottom:1px solid #eceadb;line-height:1.35;color:#55554b}
.ms-feed .who{font-weight:700;color:var(--wl-ink)}
.ms-feed .ago{display:block;font-size:9.5px;color:#a8a89a}
/* hover card */
.ms-hover{position:fixed;z-index:400;width:250px;background:#fffdf9;border:1px solid var(--wl-rule-strong);
  box-shadow:0 8px 22px rgba(30,30,20,.18);padding:10px 12px;font-size:12px;line-height:1.4;
  border-radius:4px;display:none}
.ms-hover.on{display:block}
.ms-hover .hc-co{font-weight:700;font-size:13px}
.ms-hover .hc-when{color:#6f6f61;font-size:11px}
.ms-hover .hc-row{margin-top:4px;color:#55554b;font-size:11px}
.ms-hover .hc-cxl{margin-top:8px;width:100%;background:#fdecea;border:1px solid #f5b7b1;
  color:#a8442a;font-family:inherit;font-size:11px;font-weight:700;padding:4px;cursor:pointer;border-radius:4px}
@media(max-width:1180px){.ms-wrap{grid-template-columns:minmax(0,1fr)}.ms-side,.ms-rail{display:none}}
@media print{
  .nav,.ms-side,.ms-rail,.ms-toolbar .ms-btn,.ms-filters{display:none !important}
  .ms-wrap{grid-template-columns:minmax(0,1fr);border:none;min-height:0}
}
/* ---- clickable column headings ---- */
th.wl-th{cursor:pointer;user-select:none;position:relative;padding-right:14px;
  transition:color .12s}
th.wl-th:hover{color:var(--wl-ink)}
th.wl-th:after{content:'';position:absolute;right:4px;top:50%;margin-top:-2px;
  border-left:3px solid transparent;border-right:3px solid transparent;
  border-top:4px solid #c7c7b5;opacity:0;transition:opacity .12s}
th.wl-th:hover:after,th.wl-th-open:after{opacity:1}
th.wl-th-on{color:var(--wl-ink);border-bottom:2px solid var(--wl-ink)}
th.wl-th-sorted{color:var(--wl-ink)}
.wl-th-mark{font-size:10px;margin-left:3px;color:var(--wl-ink)}
.wl-tf-menu{position:absolute;z-index:400;min-width:206px;max-width:320px;
  background:var(--wl-paper);border:1px solid var(--wl-rule-strong);border-radius:3px;
  box-shadow:0 6px 24px rgba(28,28,23,.14);font-size:12px;overflow:hidden}
.wl-tf-menu-sort{display:flex;flex-direction:column;border-bottom:1px solid var(--wl-rule)}
.wl-tf-menu-sort button,.wl-tf-menu-foot button{background:none;border:none;font-family:inherit;
  font-size:12px;color:#55554b;text-align:left;padding:7px 12px;cursor:pointer}
.wl-tf-menu-sort button:hover,.wl-tf-menu-foot button:hover{background:var(--wl-cream-tint);color:var(--wl-ink)}
.wl-tf-menu-find{width:100%;border:none;border-bottom:1px solid var(--wl-rule);background:none;
  font-family:inherit;font-size:12px;padding:7px 12px;outline:none;color:var(--wl-ink)}
.wl-tf-menu-list{max-height:250px;overflow-y:auto;padding:4px 0}
.wl-tf-menu-list label{display:flex;align-items:center;gap:8px;padding:5px 12px;cursor:pointer}
.wl-tf-menu-list label:hover{background:var(--wl-cream-tint)}
.wl-tf-menu-list label span{flex:1;color:var(--wl-ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wl-tf-menu-list label em{font-style:normal;color:#a89a8a;font-size:11px}
.wl-tf-menu-list input{accent-color:var(--wl-ink);margin:0}
.wl-tf-menu-foot{display:flex;align-items:center;gap:4px;border-top:1px solid var(--wl-rule)}
.wl-tf-menu-foot span{margin-left:auto;padding-right:12px;color:#a89a8a;font-size:11px}
.wl-tf-chosen{display:flex;gap:8px;flex-wrap:wrap}
.wl-tf-pill{background:none;border:none;border-bottom:1px solid var(--wl-ink);color:var(--wl-ink);
  font-family:inherit;font-size:11px;padding:2px 0;cursor:pointer;letter-spacing:.2px}
.wl-tf-pill:hover{opacity:.6}
/* ---- the filter bar every table gets ---- */
.wl-tf{display:flex;gap:16px;align-items:baseline;flex-wrap:wrap;margin:0 0 10px;
  padding-bottom:8px;border-bottom:1px solid var(--wl-rule)}
.wl-tf input{border:none;border-bottom:1px solid var(--wl-rule-strong);background:none;
  font-family:inherit;font-size:12px;color:var(--wl-ink);padding:3px 2px;min-width:170px;outline:none;
  transition:border-color .12s}
.wl-tf input:focus{border-bottom-color:var(--wl-ink)}
.wl-tf input::placeholder{color:#b0b0a0}
.wl-tf-count{font-size:11px;color:#a89a8a;margin-left:auto;font-style:italic;
  font-family:var(--wl-serif-body)}
.wl-tf-group{display:flex;gap:12px;flex-wrap:wrap;align-items:baseline}
.wl-tf-none td{text-align:center;color:#a89a8a;padding:26px;font-style:italic}
.prog-bar{background:#f0f0f0;border-radius:10px;height:8px;overflow:hidden;margin-top:6px}
.prog-fill{background:var(--wl-orange);height:100%;border-radius:10px}
.red{color:#8f3a1c}.green{color:#27ae60}.orange{color:#8f3a1c}
.tsm{font-size:12px;color:#888}
.mb8{margin-bottom:8px}.mb16{margin-bottom:16px}.mb24{margin-bottom:24px}
.mt8{margin-top:8px}.mt16{margin-top:16px}
.flex{display:flex}.gap8{gap:8px}.aic{align-items:center}
a{color:var(--wl-ink)}
.tab-bar{display:flex;border-bottom:1px solid var(--wl-rule);margin-bottom:18px;gap:2px}
.tab{padding:9px 18px;cursor:pointer;font-family:var(--wl-serif);font-size:14px;font-weight:600;letter-spacing:1.6px;text-transform:uppercase;color:#a89a8a;border-bottom:1px solid transparent;margin-bottom:-1px}
.tab.active{color:var(--wl-ink);border-bottom-color:var(--wl-ink)}
.tmpl-tabs{margin-bottom:24px}
.tmpl-tabs .tab{font-family:var(--wl-serif);font-size:15px;font-weight:600;letter-spacing:2px;text-transform:uppercase;color:#9a9a8c;padding:10px 18px}
.tmpl-tabs .tab.active{color:var(--wl-ink);border-bottom-color:var(--wl-ink)}
.letter-card{background:var(--wl-paper);border:1px solid var(--wl-rule);border-radius:4px;padding:28px 32px;margin-bottom:24px;box-shadow:0 1px 6px rgba(28,28,23,.04)}
.letter-card .lc-name{font-family:var(--wl-serif);font-size:20px;letter-spacing:1px;color:var(--wl-ink);text-align:center}
.letter-card .lc-rule{width:48px;height:1px;background:var(--wl-ink);margin:10px auto 18px;opacity:.35}
/* ---- the briefing ---- */
.wl-expand{opacity:0;transition:opacity .12s}
.card:hover .wl-expand{opacity:1}
.sh .st{flex:0 1 auto}
.wl-brief{padding:4px 2px 26px}
.wl-brief-hi{font-family:var(--wl-serif);font-size:30px;letter-spacing:3px;text-transform:uppercase;color:var(--wl-ink)}
.wl-brief-date{font-family:var(--wl-serif-body);font-style:italic;font-size:15px;color:var(--wl-muted);margin-top:2px}
.wl-brief-body{font-family:var(--wl-serif-body);font-size:20px;line-height:1.55;color:#3c3c34;margin-top:16px;max-width:64ch}
.wl-brief-body strong{font-weight:700;color:var(--wl-ink)}
.wl-stats{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:22px}
.wl-stat{flex:1;min-width:158px;text-align:left;padding:16px 18px;background:var(--wl-paper);
  border:1px solid var(--wl-rule);border-radius:4px;cursor:pointer;font-family:inherit;display:block;transition:border-color .12s}
.wl-stat:hover{border-color:var(--wl-ink)}
.wl-stat-val{display:block;font-family:var(--wl-serif-body);font-size:30px;font-weight:600;line-height:1;color:var(--wl-ink)}
.wl-stat-label{display:block;font-size:10px;text-transform:uppercase;letter-spacing:1.2px;color:var(--wl-muted);margin-top:7px}
.wl-stat-sub{display:block;font-size:12px;color:#9a9a8c;margin-top:4px}
.wl-stat-note{display:block;font-size:11px;color:#b5b5a5;margin-top:3px;font-style:italic;
  font-family:var(--wl-serif-body)}
.wl-action{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:15px 0;border-bottom:1px solid var(--wl-rule)}
.wl-action:last-child{border-bottom:none;padding-bottom:0}
.wl-action-n{font-family:var(--wl-serif-body);font-size:22px;color:#b8b8a8;width:22px;flex-shrink:0;text-align:center}
.wl-action-title{font-family:var(--wl-serif-body);font-size:19px;font-weight:600;color:var(--wl-ink);
  background:none;border:none;padding:0;cursor:pointer;text-align:left;font-family:var(--wl-serif-body)}
.wl-action-title:hover{text-decoration:underline;text-underline-offset:3px}
.wl-action-why{font-size:13px;color:var(--wl-muted);margin-top:3px}
#modal table{margin-top:4px}
.btn-quiet{background:transparent;border:1px solid var(--wl-rule-strong);color:#55554b;border-radius:20px;padding:5px 14px;font-size:12px;cursor:pointer;font-family:inherit}
.btn-quiet:hover{border-color:var(--wl-ink);color:var(--wl-ink)}
.overlay-modal{display:none;position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:300;align-items:center;justify-content:center}
.inner-modal{background:white;border-radius:12px;padding:32px;position:relative;width:520px;max-width:95vw}
@media(max-width:768px){
  nav{overflow-x:auto;-webkit-overflow-scrolling:touch;gap:2px}
  .nav-brand{font-size:14px;margin-right:8px}
  .nav-search input{width:92px}
  main{padding:14px 10px}
  .card-grid{grid-template-columns:repeat(2,1fr);gap:10px}
  table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .inner-modal{padding:20px;max-height:90vh;overflow-y:auto}
  #modal{width:96%;padding:18px;max-height:92vh}
  .sr{grid-template-columns:repeat(2,1fr)}
  .sh{flex-wrap:wrap;gap:8px}
  .form-row{flex-direction:column}
}
/* Auth gate */
#wl-auth-gate{position:fixed;inset:0;background:var(--wl-cream);z-index:9999;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:20px}
#wl-auth-gate .auth-logo{width:100px;height:100px;object-fit:contain;border-radius:16px}
#wl-auth-gate h2{font-family:var(--wl-serif);font-size:30px;font-weight:700;color:var(--wl-ink)}
#wl-auth-gate .auth-sub{font-size:13px;color:#888;margin-bottom:8px}
#wl-auth-gate .auth-err{font-size:13px;color:var(--wl-ink);display:none;margin-top:8px}
.auth-user-bar{display:none;align-items:center;gap:8px;margin-left:auto;flex-shrink:0}
.auth-user-bar img{width:24px;height:24px;border-radius:50%}
.auth-user-bar span{font-size:11px;color:rgba(255,255,255,.85)}
.auth-user-bar button{background:rgba(255,255,255,.15);border:none;color:rgba(255,255,255,.85);cursor:pointer;font-size:10px;padding:2px 8px;border-radius:10px}
.empty-state{text-align:center;padding:36px 20px;color:#a08c74}
.empty-state .es-icon{font-size:30px;margin-bottom:8px}
.empty-state .es-title{font-family:var(--wl-serif);font-size:18px;font-weight:700;color:var(--wl-ink);margin-bottom:4px}
.empty-state .es-sub{font-size:13px}
#wl-toast{position:fixed;bottom:32px;left:50%;transform:translateX(-50%) translateY(90px);background:var(--wl-ink);color:#fff;padding:12px 24px;border-radius:8px;font-size:13px;font-weight:500;box-shadow:0 8px 24px rgba(0,0,0,.25);transition:transform .3s ease;z-index:10000;max-width:88vw}
#wl-toast.show{transform:translateX(-50%) translateY(0)}
#wl-toast.err{background:var(--wl-orange-dark)}
#wl-toast.ok{background:#27ae60}

/* ---- Diary colour = STAGE (see msStage in app.js). The left stripe stays the use case. ---- */
:root{--st-inquiry:#c7891b;--st-inquiry-bg:#fdf1d4;--st-quoted:#3a6ea5;--st-quoted-bg:#e3edf8;
  --st-confirmed:#2b8157;--st-pending:#178585;--st-pending-bg:#dff2f1;--st-done:#6b786f;--st-done-bg:#e7ebe8}
.ms-ev.ms-st-inquiry{background:var(--st-inquiry-bg);color:#4d3910;border:1px dashed var(--st-inquiry);box-shadow:inset 4px 0 0 var(--uc)}
.ms-ev.ms-st-inquiry .ms-ev-co{color:#3d2c08}
.ms-ev.ms-st-quoted{background:var(--st-quoted-bg);color:#1b3b5f;border:1px solid var(--st-quoted);box-shadow:inset 4px 0 0 var(--uc)}
.ms-ev.ms-st-quoted .ms-ev-co{color:#12304f}
.ms-ev.ms-st-confirmed{background:var(--st-confirmed);color:#fff;border:1px solid var(--st-confirmed);box-shadow:inset 4px 0 0 var(--uc),inset 5px 0 0 rgba(255,255,255,.55)}
.ms-ev.ms-st-pending{background:var(--st-pending-bg);color:#0f5c5c;border:1px dashed var(--st-pending);box-shadow:inset 4px 0 0 var(--st-pending)}
.ms-ev.ms-st-done{background:var(--st-done-bg);color:#46524a;border:1px solid #cdd5cf;box-shadow:inset 4px 0 0 var(--uc)}
.ms-st-inquiry .ms-ic .inv,.ms-st-quoted .ms-ic .inv,.ms-st-pending .ms-ic .inv,.ms-st-done .ms-ic .inv{background:#3c3c34;color:#fffdf9}
.ms-st-inquiry .ms-ic .pay,.ms-st-quoted .ms-ic .pay,.ms-st-done .ms-ic .pay{color:#2f8560}
.ms-st-inquiry .ms-ic .awt,.ms-st-quoted .ms-ic .awt,.ms-st-done .ms-ic .awt{color:#8a8a7c}
/* orders: thin rows with a platform tag; teal when the price is still to come, slate once it's in the book */
.ms-svr{border-left:3px solid transparent;border-radius:2px;padding-left:3px}
.ms-svr.ms-st-pending{background:var(--st-pending-bg);border-left-color:var(--st-pending)}
.ms-svr.ms-st-pending .n,.ms-svr.ms-st-pending .t{color:#0f5c5c;font-weight:600}
.ms-svr.ms-st-done{border-left-color:var(--st-done)}
.ms-svr .p,.ms-leg-tag{flex:0 0 auto;font-size:7px;font-weight:800;letter-spacing:.5px;padding:0 3px;border-radius:2px;
  background:#e3e1d2;color:#5f5f52;line-height:1.5}
.ms-leg-tag{display:inline-block;margin-right:3px}
.ms-leg-ev.ms-st-pending .ms-ev-co,.ms-leg-ev.ms-st-done .ms-ev-co{font-weight:700}

/* a big Toast order nobody has looked at yet: red, so it can't be missed on the month */
.ms-svr.ms-st-big{background:#fde6e1;border-left-color:#c0392b}
.ms-svr.ms-st-big .n,.ms-svr.ms-st-big .t,.ms-svr.ms-st-big .a{color:#8c2f1f;font-weight:700}
.ms-svr .p.big,.ms-svr.ms-st-big .p{background:#c0392b;color:#fff}
.ms-ev.ms-st-big{background:#fde6e1;color:#8c2f1f;border:1px solid #c0392b;box-shadow:inset 4px 0 0 #c0392b}

/* did the enquiry become an order */
/* the outcome sits on its own line under the name; enquiries that passed with no order step back */
.ms-cv{display:block;margin-top:2px;font-size:9px;font-weight:800;letter-spacing:.3px;text-transform:uppercase}
.ms-cv.ok{color:#1e6b46}
.ms-cv.no{color:#a8442a}
.ms-st-confirmed .ms-cv.ok{color:#fff}
.ms-ev.ms-lapsed{opacity:.55;filter:grayscale(.55)}
.ms-ev.ms-lapsed:hover{opacity:1;filter:none}

/* Proposals workspace */
.pq-pills{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}
.pq-pill{font-size:11.5px;padding:4px 10px;border:1px solid var(--wl-rule);border-radius:999px;color:var(--wl-muted);background:var(--wl-paper)}
.pq-pill.hot{background:#f6e7c8;border-color:#d9b866;color:#6b4e08;font-weight:600}
.pq-grid{display:grid;grid-template-columns:340px minmax(0,1fr);gap:18px;align-items:start;margin-bottom:24px}
@media(max-width:900px){.pq-grid{grid-template-columns:1fr}}
.pq-side{position:sticky;top:12px;max-height:calc(100vh - 40px);overflow:auto;padding-right:4px}
.pq-sh{font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--wl-muted);margin:0 0 8px;display:flex;justify-content:space-between}
.pq-gh{font-size:11px;color:var(--wl-muted);margin:12px 0 4px;display:flex;justify-content:space-between}
.pq-card,.pq-row{border:1px solid var(--wl-rule);background:var(--wl-paper);border-radius:6px;padding:10px 12px;margin-bottom:8px;cursor:pointer}
.pq-card:hover,.pq-row:hover{border-color:var(--wl-rule-strong)}
.pq-card.on{border-color:#c79a2c;box-shadow:inset 3px 0 0 #c79a2c;background:#fbf4e2}
.pq-card{border-style:dashed}
.pq-row{display:flex;gap:10px;align-items:center;padding:8px 12px;margin-bottom:6px}
.pq-who{font-weight:600;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pq-meta{font-size:11.5px;color:var(--wl-muted);margin-top:2px}
.pq-snip{font-size:11.5px;color:#8c8272;margin-top:5px;line-height:1.35}
.pq-amt{font-variant-numeric:tabular-nums;font-weight:600;font-size:13px}
.pq-work{padding:20px 22px}
.pq-empty{padding:48px 20px;text-align:center}
.pq-paste summary{cursor:pointer;font-size:12px;color:var(--wl-muted)}
.pq-pk{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.pq-chip{display:inline-flex;border:1px solid var(--wl-rule-strong);border-radius:999px;overflow:hidden}
.pq-chip button{font:inherit;font-size:11.5px;border:0;background:var(--wl-paper);padding:3px 10px;cursor:pointer;color:var(--wl-ink)}
.pq-chip button.x{padding:3px 7px;color:var(--wl-muted);border-left:1px solid var(--wl-rule)}
.pq-docbar{display:flex;gap:8px;align-items:center;margin:22px 0 8px}
.pq-doc{border:1px solid var(--wl-rule);border-radius:6px;background:#fff;overflow:hidden}
.pq-act{display:flex;gap:6px;margin-top:6px;align-items:center}
.pq-ok{font-size:11.5px;color:#2f6b2f;font-weight:600}
.pq-steps{display:flex;gap:4px;margin:0 0 18px}
.pq-step{flex:1;font-size:11.5px;color:var(--wl-muted);display:flex;align-items:center;gap:6px;padding:6px 8px;border-bottom:2px solid var(--wl-rule)}
.pq-step i{font-style:normal;width:18px;height:18px;border-radius:50%;border:1px solid var(--wl-rule-strong);display:inline-flex;align-items:center;justify-content:center;font-size:10.5px;flex:none}
.pq-step.done{color:#2f6b2f;border-bottom-color:#4a9a4a}.pq-step.done i{background:#4a9a4a;border-color:#4a9a4a;color:#fff}
.pq-step.now{color:var(--wl-ink);font-weight:600;border-bottom-color:#c79a2c}.pq-step.now i{border-color:#c79a2c;background:#fbf4e2}
.pq-mods{font-size:11.5px;color:var(--wl-muted);margin-top:3px}
.pq-need{font-size:11.5px;color:#a26a00;margin-top:3px}
.pq-opts{background:var(--wl-paper);border-bottom:1px solid var(--wl-rule);padding:12px 14px!important;display:table-cell}
.pq-opts{column-count:2;column-gap:28px}
.pq-g{break-inside:avoid;margin-bottom:12px}
.pq-gt{font-weight:600;font-size:12.5px;display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}
.pq-gt em{font-style:normal;font-weight:400;font-size:10.5px;background:var(--wl-rule);border-radius:999px;padding:2px 8px;color:var(--wl-muted)}
.pq-o{display:flex;gap:8px;align-items:center;font-size:12.5px;padding:3px 0;cursor:pointer}
.pq-o input{width:14px;height:14px;flex:none}.pq-o span{flex:1}.pq-o b{font-weight:400;color:var(--wl-muted);font-variant-numeric:tabular-nums}

/* Detail drawer */
#wl-drawer{position:fixed;inset:0;z-index:900;pointer-events:none}
#wl-drawer .dr-scrim{position:absolute;inset:0;background:rgba(30,27,22,.28);opacity:0;transition:opacity .2s}
#wl-drawer .dr-panel{position:absolute;top:0;right:0;bottom:0;width:min(470px,100vw);background:var(--wl-paper,#fffdf9);box-shadow:-12px 0 40px rgba(0,0,0,.18);transform:translateX(100%);transition:transform .24s cubic-bezier(.2,.8,.2,1);overflow-y:auto;padding:26px 26px 40px}
#wl-drawer.open{pointer-events:auto}#wl-drawer.open .dr-scrim{opacity:1}#wl-drawer.open .dr-panel{transform:none}
.dr-x{position:absolute;top:12px;right:14px;border:0;background:none;font-size:16px;cursor:pointer;color:var(--wl-muted)}
.dr-eyebrow{font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--wl-muted)}
.dr-title{font-family:Georgia,serif;font-size:26px;margin:4px 0 2px}
.dr-sub{font-size:12.5px;color:var(--wl-muted);margin-bottom:12px}
.dr-actions{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 14px}
.dr-kv{width:100%;margin:6px 0 10px}.dr-kv td{padding:6px 0;border-bottom:1px solid var(--wl-rule);font-size:13px;vertical-align:top}
.dr-k{color:var(--wl-muted);white-space:nowrap;padding-right:18px!important;width:1%}
.dr-h{margin:20px 0 6px;font-size:10.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--wl-muted);display:flex;justify-content:space-between}.dr-h span{letter-spacing:0;text-transform:none}
.dr-list{width:100%;font-size:12.5px}.dr-list td{padding:6px 4px;border-bottom:1px solid var(--wl-rule)}.dr-list tr.click:hover{background:#f4f1e8}
/* Ask bar and panel */
#wl-askbar{position:sticky;top:46px;z-index:99;background:var(--wl-paper,#fffdf9);border-bottom:1px solid var(--wl-rule);padding:10px 16px 8px}
#wl-askbar .ab-in{max-width:880px;margin:0 auto;display:flex;align-items:center;gap:10px;border:1px solid var(--wl-rule-strong);border-radius:999px;padding:5px 6px 5px 14px;background:#fff;transition:box-shadow .15s,border-color .15s}
#wl-askbar .ab-in:focus-within{border-color:#c79a2c;box-shadow:0 0 0 3px rgba(199,154,44,.18)}
#wl-askbar .ab-spark{color:#c79a2c;font-size:15px}
#wl-askbar input{flex:1;border:0;outline:0;background:none;font:inherit;font-size:13.5px;color:var(--wl-ink)}
#wl-askbar button{border:0;background:var(--wl-ink,#1e1b16);color:#fff;border-radius:999px;padding:6px 16px;font:inherit;font-size:12.5px;cursor:pointer}
.ab-chips{max-width:880px;margin:8px auto 0;display:flex;gap:6px;flex-wrap:wrap}
.ab-chip{border:1px solid var(--wl-rule)!important;background:transparent!important;color:var(--wl-muted)!important;padding:3px 11px!important;font-size:11.5px!important}.ab-chip:hover{color:var(--wl-ink)!important;border-color:var(--wl-rule-strong)!important}
.ask-panel{position:fixed;left:50%;width:min(820px,calc(100vw - 32px));z-index:600;background:#fff;border-radius:14px;box-shadow:0 18px 50px rgba(0,0,0,.28);overflow:hidden;opacity:0;transform:translate(-50%,-8px);transition:opacity .18s,transform .18s}
.ask-panel.open{opacity:1;transform:translate(-50%,0)}
#ask-thread{max-height:56vh;overflow-y:auto;padding:16px 18px;font-size:13.5px;line-height:1.55;scroll-behavior:smooth}
.ask-hint{color:#888;font-size:12.5px}
.ask-msg{margin-bottom:10px;border-radius:12px;padding:9px 13px;animation:askIn .22s ease-out}
.ask-user{background:var(--wl-cream-tint,#f6efe0);font-weight:600;margin-left:auto;max-width:85%;width:fit-content}
.ask-bot{background:#f7f8fa}.ask-bot p{margin:0 0 8px}.ask-bot p:last-child{margin:0}.ask-bot ul{margin:4px 0 8px 18px;padding:0}
.ask-bot.typing::after{content:'▍';opacity:.5;animation:askBlink 1s steps(2) infinite}
.ask-err{color:#a8442a}
.ask-load{display:inline-flex;align-items:center;gap:10px;color:var(--wl-muted)}
.ask-dots{display:inline-flex;gap:4px}.ask-dots i{width:6px;height:6px;border-radius:50%;background:#c79a2c;animation:askDot 1.1s infinite ease-in-out}
.ask-dots i:nth-child(2){animation-delay:.15s}.ask-dots i:nth-child(3){animation-delay:.3s}
.ask-stage{animation:askIn .3s ease-out}
@keyframes askDot{0%,80%,100%{transform:translateY(0);opacity:.35}40%{transform:translateY(-4px);opacity:1}}
@keyframes askIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@keyframes askBlink{50%{opacity:0}}
@media(prefers-reduced-motion:reduce){.ask-dots i,.ask-msg,.ask-stage{animation:none}}
@media print{#wl-askbar,#wl-drawer,.ask-panel{display:none!important}}

.ask-head{display:flex;align-items:center;justify-content:space-between;padding:12px 18px;border-bottom:1px solid var(--wl-rule);background:var(--wl-paper,#fffdf9)}
.ask-title{font-family:Georgia,serif;font-size:16px;color:var(--wl-ink)}.ask-title span{color:#c79a2c;margin-right:4px}
.ask-head button{border:0;background:none;font:inherit;font-size:12px;color:var(--wl-muted);cursor:pointer;padding:3px 8px;border-radius:6px}.ask-head button:hover{background:var(--wl-rule)}
#ask-thread{max-height:62vh;overflow-y:auto;padding:16px 18px 6px;font-size:14px;line-height:1.6}
.ask-foot{display:flex;gap:8px;padding:10px 14px 12px;border-top:1px solid var(--wl-rule)}
.ask-foot input{flex:1;padding:9px 14px;border:1px solid var(--wl-rule-strong);border-radius:999px;font:inherit;font-size:13.5px;outline:none}.ask-foot input:focus{border-color:#c79a2c}
.ask-bot{background:var(--wl-paper,#fffdf9)!important;border:1px solid var(--wl-rule);padding:12px 16px}
.ask-bot h4{margin:14px 0 6px;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--wl-muted);font-weight:600}.ask-bot h4:first-child{margin-top:0}
.ask-bot p>strong:only-child{display:block;margin-top:10px;font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--wl-muted);font-weight:600}
.ask-bot ol{margin:4px 0 8px 20px;padding:0}.ask-bot li{margin:2px 0}
.ask-bot code{background:#f1ede2;border-radius:4px;padding:1px 5px;font-size:12.5px}
.ask-tbl{overflow-x:auto;margin:8px 0 12px;border:1px solid var(--wl-rule);border-radius:8px}
.ask-tbl table{width:100%;border-collapse:collapse;font-size:12.5px}
.ask-tbl th{background:#f4f1e8;text-align:left;font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--wl-muted);padding:7px 10px;font-weight:600}
.ask-tbl td{padding:6px 10px;border-top:1px solid var(--wl-rule)}
.ask-tbl .num{text-align:right;font-variant-numeric:tabular-nums}

/* =====================================================================
   One system (2026-11-02)
   Everything above grew a screen at a time: a gold accent here, Georgia
   there, six greys, pills next to square corners. This block is the last
   word on all of it. Brand: ink and paper, Cormorant for headings and
   figures, the system sans for everything you read or click, and orange
   as the single accent. Change a token, change the whole app.
   ===================================================================== */
:root{
  --wl-sans:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  --wl-text:#2b2b24;
  --wl-muted:#7c7c70;
  --wl-faint:#a3a396;
  --wl-accent:var(--wl-orange);
  --wl-accent-tint:#fdeee4;
  --wl-good:#2f6f4e;
  --wl-bad:#a8442a;
  --wl-r:4px;
  --wl-ctl:32px;
}
body{font-family:var(--wl-sans);font-size:14px;line-height:1.5;color:var(--wl-text);-webkit-font-smoothing:antialiased}
main{padding:28px 24px 64px}
table,td,th,input,select,textarea,button{font-family:var(--wl-sans)}
td{font-size:13.5px;color:var(--wl-text)}
td strong{color:var(--wl-ink);font-weight:600}
td,.tsm{font-variant-numeric:tabular-nums}
.tsm{font-size:12px;color:var(--wl-muted)}

/* Headings: serif, one scale. */
.st{font-size:22px;letter-spacing:2px}
.ss{font-family:var(--wl-sans);font-style:normal;font-size:13px;color:var(--wl-muted);margin-top:4px;line-height:1.45}
.sh{margin-bottom:18px}
.mco,.dr-title,.ask-title{font-family:var(--wl-serif);font-weight:700;letter-spacing:.5px;color:var(--wl-ink)}
.dr-title{font-size:26px}.ask-title{font-size:18px;letter-spacing:1px}
.ask-title span,#wl-askbar .ab-spark,.ask-dots i{color:var(--wl-accent);background-color:transparent}
.ask-dots i{background:var(--wl-accent)}

/* The greys written inline across the pages are one grey. */
[style*="color:#aaa"],[style*="color:#888"],[style*="color:#a89a8a"],[style*="color:#8f8f80"],
[style*="color:#9a9a8c"],[style*="color:#7a7060"],[style*="color:#666"],[style*="color:#8a8a7c"]{color:var(--wl-muted)!important}
[style*="color:#27ae60"],[style*="color:#146c43"],[style*="color:#2f8560"],[style*="color:#4a7c59"]{color:var(--wl-good)!important}
[style*="color:#c0392b"],[style*="color:#a8442a"],[style*="color:#b5432a"]{color:var(--wl-bad)!important}
[style*="background:#fdecc8"],[style*="background:#fff4d6"],[style*="background:#fff9f0"]{background:var(--wl-accent-tint)!important;color:#8f3a1c!important}
[style*="background:#e4e9e6"],[style*="background:#f7f8fa"],[style*="background:#f4f1e6"]{background:var(--wl-cream-tint)!important;color:var(--wl-text)!important}
tr[style*="background:#fff4d6"]{background:var(--wl-accent-tint)!important}
.nav-link[data-page="dashboard"] span{background:var(--wl-accent)!important}

/* Controls: one height, one radius, one focus ring. */
main input[type="text"],main input[type="search"],main input[type="email"],main input[type="tel"],
main input[type="number"],main input[type="date"],main select,.nav-search input{
  height:var(--wl-ctl);padding:0 10px!important;font-size:13px!important;border:1px solid var(--wl-rule-strong)!important;
  border-radius:var(--wl-r)!important;background:var(--wl-paper)!important;color:var(--wl-ink)!important;outline:none}
main textarea{font-size:13px;border:1px solid var(--wl-rule-strong);border-radius:var(--wl-r);padding:8px 10px}
main input:focus,main select:focus,main textarea:focus,.ask-foot input:focus{
  border-color:var(--wl-ink)!important;box-shadow:0 0 0 3px rgba(28,28,23,.08)}
.nav-search input{background:rgba(255,255,255,.14)!important;border-color:transparent!important;color:#fffdf9!important;height:28px;width:170px;border-radius:var(--wl-r)!important}
.nav-search input:focus{background:rgba(255,255,255,.22)!important;box-shadow:none}
.nav-search button{border-radius:var(--wl-r)!important;font-size:11px!important;padding:5px 12px!important;background:var(--wl-accent)!important;color:#fff!important}
.ms-btn,.fc,.dtab{font-size:12.5px}
.ms-btn{border-radius:var(--wl-r);padding:4px 10px}
.ms-btn.on{background:var(--wl-ink);border-color:var(--wl-ink)}

/* Cards and tables: same padding, same rules, nothing floating. */
.card{padding:20px 24px;border-radius:var(--wl-r);box-shadow:none}
th{font-size:10.5px;color:var(--wl-muted)}
td{padding:12px 12px}
tr.click:hover td{background:var(--wl-cream-tint)}
.wl-tf{margin-bottom:10px}
.wl-tf input{height:var(--wl-ctl)}

/* Ask: same card language as the rest, accent not gold. */
#wl-askbar{background:var(--wl-cream);border-bottom:1px solid var(--wl-rule)}
#wl-askbar .ab-in,.ask-foot input{border-radius:var(--wl-r);border-color:var(--wl-rule-strong)}
#wl-askbar .ab-in:focus-within,.ask-foot input:focus{border-color:var(--wl-ink);box-shadow:0 0 0 3px rgba(28,28,23,.08)}
#wl-askbar button,.ask-foot .btn{border-radius:var(--wl-r);background:var(--wl-ink);color:#fff;padding:6px 14px}
#wl-askbar button:hover{background:var(--wl-accent)}
.ask-foot .btn{border:0;font-size:12.5px;padding:0 16px;opacity:1}
.ask-foot .btn:hover{background:var(--wl-accent);color:#fff}
.ask-panel{border-radius:var(--wl-r);box-shadow:0 18px 50px rgba(28,28,23,.28);border:1px solid var(--wl-rule-strong)}
.ask-head{background:var(--wl-ink);border-bottom:0}
.ask-head .ask-title{color:#fffdf9}
.ask-head button{color:rgba(255,253,249,.8);font-size:12px;border:1px solid rgba(255,253,249,.28);border-radius:var(--wl-r);padding:3px 10px}
.ask-head button:hover{background:rgba(255,253,249,.14);color:#fff}
.ask-user{background:var(--wl-cream-tint);border-radius:var(--wl-r)}
.ask-bot{border-radius:var(--wl-r)}
.ab-chip{border-radius:var(--wl-r)!important}

/* Calm movement: pages arrive, they do not blink. */
@keyframes wlPageIn{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:none}}
.page.active{animation:wlPageIn .16s ease-out}
.nav-link{transition:color .12s,background .12s}
@media(prefers-reduced-motion:reduce){.page.active{animation:none}}
