/* ══════════════════════════════════════════════════════════════════════════
 *  SYNORA — THE CLIENT SHELL
 *
 *  One grade for every signed-in surface a CUSTOMER sees: the researcher
 *  workspace, the student account, the expert's services desk, and an
 *  organisation's or university's page. Before this there were five files
 *  with five layouts, five sets of card radii and five ideas of what a
 *  dashboard opens with. A student who also teaches met two products.
 *
 *  This file is the chrome only — doors, the direction strip, tiles, cards,
 *  empty states. Colour and type come from synora-app.css, which carries the
 *  Eclipse palette; nothing here hard-codes a colour that is not a shade of
 *  the ink, because a shell that owns colour is a second palette waiting to
 *  drift from the first.
 *
 *  Pair it with synora-shell.js, which draws the strip from one config per
 *  role. Adding a role is a config, not a layout.
 * ══════════════════════════════════════════════════════════════════════════ */

/* ── the direction strip ────────────────────────────────────────────────
   A role's views grouped under three or four things the person is trying to
   DO, with the siblings of wherever they are always visible. It replaces the
   long flat nav that every one of these pages had, where the only way to
   learn what existed was to read all of it. */
.gstrip{margin:0 0 26px}
.gstrip .gh{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.gstrip .gn{font:800 9px/1 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:var(--slate2)}
.gstrip .gd{font-size:13px;color:var(--slate)}
/* In-page tabs: the views of the direction the rail opened. They sit at the
   top of the WORK area rather than down the side, so the detail of where
   you are travels with the work instead of thickening the furniture. */
.gtabs{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;padding:4px;
  background:var(--stone);border-radius:14px;border:1px solid var(--line);
  margin:0 0 22px;width:max-content;max-width:100%}
.gtabs::-webkit-scrollbar{display:none}
.gtabs a,.gtabs button{flex:none;padding:9px 15px;border-radius:10px;text-decoration:none;
  font:600 14px/1 var(--sans);color:var(--slate);white-space:nowrap;border:0;background:none;cursor:pointer}
.gtabs a:hover,.gtabs button:hover{color:var(--ink)}
/* The active tab is the one place in this strip that carries the gradient.
   White on the gradient is the only pairing here that holds at 14px. */
.gtabs a[aria-current=page],.gtabs button[aria-current="true"]{background:var(--grad);color:#fff;
  box-shadow:0 5px 14px -7px rgba(0,167,158,.8)}
/* THE COUNTS CAME WITH THE SECTIONS. They used to sit at the right edge of
   a rail row; a bare number after a tab label reads as part of the label
   ("Methods 4"), so it keeps the chip it had, sized for this strip. */
.gtabs .pip{margin-left:7px;font:700 10.5px/1 var(--sans);background:var(--ink3,#E8EFF0);
  color:var(--ink);border-radius:99px;padding:3px 6px;min-width:18px;
  display:inline-block;text-align:center;vertical-align:1px}
.gtabs a[aria-current=page] .pip{background:rgba(255,255,255,.25);color:#fff}

/* THE STRIP ALREADY NAMED THIS VIEW. Every view used to open with an eyebrow
   carrying the orientation the strip now carries, and two labels for one
   place is one more than anybody needs. The eyebrow survives wherever there
   is no strip, so nothing ends up unlabelled. */
#gstrip:not(:empty) + #view .vh .eyebrow,
.has-strip .vh .eyebrow{display:none}
#gstrip:not(:empty) + #view .vh,.has-strip .vh{margin-bottom:24px}

/* ── the doors ──────────────────────────────────────────────────────────
   What a dashboard opens with. Each door is one direction, carrying the one
   or two numbers that say whether it needs the person today — not a metric
   wall, which is what each of these pages had, and which answers "how much
   of everything is there" rather than "what should I do". */
.doors{display:grid;grid-template-columns:repeat(var(--doors,3),minmax(0,1fr));gap:16px;margin-bottom:26px}
@media (max-width:900px){.doors{grid-template-columns:1fr}}
.door{display:flex;flex-direction:column;gap:14px;background:#fff;border:1px solid var(--line);
  border-radius:20px;padding:22px;text-decoration:none;color:inherit;min-width:0;
  box-shadow:0 1px 2px rgba(11,26,28,.03)}
.door:hover{border-color:rgba(0,167,158,.38);box-shadow:var(--shadow)}
/* Clipping a 135deg gradient to a 60px label samples its first pixel, so
   every door came out the same blue. Each takes its own stop instead and the
   row reads left to right as one sweep. */
.door .n{font:800 9px/1 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:var(--blue)}
.doors .door:nth-child(2) .n{color:#0C8FA8}
.doors .door:nth-child(3) .n{color:#00A79E}
.doors .door:nth-child(4) .n{color:#2CC2B8}
.door h2{font:700 22px/1.2 var(--sans);letter-spacing:-.025em}
.door .sub{font-size:14px;color:var(--slate);line-height:1.5}
.door .nums{display:flex;gap:18px;flex-wrap:wrap;margin-top:auto;padding-top:6px}
.door .num{min-width:0}
.door .num b{display:block;font:700 26px/1.1 var(--sans);letter-spacing:-.02em}
.door .num span{display:block;font-size:12px;color:var(--slate2);margin-top:3px}
.door .go{font:700 14px/1 var(--sans);color:var(--cobalt)}

/* ── the shared grade ───────────────────────────────────────────────────── */
.shell-wrap{max-width:1200px;margin:0 auto;
  padding-left:max(16px,env(safe-area-inset-left,0px));
  padding-right:max(16px,env(safe-area-inset-right,0px));
  padding-block:clamp(18px,3vw,32px) 64px}
.vh{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:20px}
.vh h1{font-family:var(--sans);font-weight:700;letter-spacing:-.035em;font-size:clamp(26px,3.4vw,36px);line-height:1.15}
.vh .eyebrow{font:800 9px/1 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:var(--slate2)}
.vh p{color:var(--slate)}
.tile{background:#fff;border:1px solid var(--line);border-radius:16px;padding:16px;min-width:0}
.tile .k{font:800 9px/1 var(--sans);letter-spacing:.14em;text-transform:uppercase;color:var(--slate2)}
.tile .v{font:700 26px/1.15 var(--sans);letter-spacing:-.025em;margin-top:6px;overflow-wrap:anywhere}
.tile .s{font-size:12.5px;color:var(--slate);margin-top:2px}
.bar{height:6px;border-radius:6px;background:var(--line);margin-top:8px;overflow:hidden}
.bar i{display:block;height:100%;background:var(--grad)}
.card{border-radius:20px}
.sec h2{font:700 15px/1.3 var(--sans);letter-spacing:-.01em;display:flex;justify-content:space-between;
  align-items:center;gap:10px;margin-bottom:12px}
.sec h2 a{font-size:14px;font-weight:700}
.item{display:flex;gap:12px;align-items:flex-start;padding:12px 0;border-top:1px solid var(--line)}
.item:first-of-type{border-top:0}
.item .t{font-weight:700}
.item .m{font-size:13.5px;color:var(--slate)}
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
@media (max-width:980px){.grid2{grid-template-columns:1fr}}

/* ══════════════════════════════════════════════════════════════════════════
 *  THE LEFT RAIL
 *
 *  Measured off goai.global rather than remembered: group label 8.5px/700 at
 *  1.19px tracking, items 13px/500 in a 46px row with an 11px radius, and an
 *  active item that is a GRADIENT PILL filling the row rather than a tinted
 *  background with a marker beside it. Those numbers are small on purpose —
 *  a rail that shouts competes with the work next to it.
 *
 *  WHY A RAIL AND NOT THE HORIZONTAL STRIP it replaces: a strip puts the
 *  siblings of where you are in front of you and hides everywhere else. That
 *  is right for a tab bar inside one area and wrong for the whole product —
 *  it means the only way to learn what exists is to visit all of it. The rail
 *  shows every direction at once, with a handful of items under each, which
 *  is the thing being asked for when somebody says "few tabs".
 * ══════════════════════════════════════════════════════════════════════════ */
/* ══════════════════════════════════════════════════════════════════════════
 *  SWITCHING AREAS SHOULD NOT LOOK LIKE LEAVING
 *
 *  Every row in the rail is a link to another document, because that is what
 *  these are -- separate pages, each owning its own data. Clicking one tore
 *  the window down and built it again: white, then furniture, then content.
 *  The rail is identical on both sides of that, so the only thing the flash
 *  communicated was that something had gone wrong.
 *
 *  A cross-document view transition keeps the old frame on screen until the
 *  new one is ready and crossfades between them, and anything carrying a
 *  view-transition-name is matched across the two documents and held still
 *  rather than faded. The rail gets one. It is in the static HTML of every
 *  surface -- <nav class="srail" id="srail"> -- so it exists in the first
 *  paint on both sides, which is the condition for being matched at all.
 *
 *  THIS IS NOT A ROUTER. Nothing here intercepts a click, owns history or
 *  re-renders anything; the navigation is the same navigation. A browser
 *  that does not implement it ignores these rules and behaves exactly as
 *  before, which is why this is three declarations and not a framework.
 *
 *  Both documents must opt in or no transition happens, and every surface
 *  loads this file, so that is already true across the product and nowhere
 *  else by accident.
 * ══════════════════════════════════════════════════════════════════════════ */
@view-transition{navigation:auto}

/* Held still across the navigation rather than crossfaded with the page. */
.srail{view-transition-name:synora-rail}

/* A transition is a nicety and motion is not free for everyone. Reduced
   motion keeps the crossfade suppressed while leaving the navigation
   itself untouched -- the point is to remove a flash, not to add movement. */
@media (prefers-reduced-motion:reduce){
  ::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){
    animation:none!important}
}

.shellframe{display:grid;grid-template-columns:248px minmax(0,1fr);min-height:100vh;align-items:start}
.srail{position:sticky;top:0;height:100vh;overflow-y:auto;scrollbar-width:thin;
  background:var(--ink1,#fff);border-right:1px solid var(--line);
  padding:18px 14px 28px;display:flex;flex-direction:column;gap:6px}
.srail .who{display:flex;align-items:center;gap:10px;padding:10px;border-radius:13px;
  border:1px solid var(--line);margin-bottom:12px;min-width:0}
/* The photograph sits ON the initial rather than instead of it: same
   circle, same size, and if the image fails the letter is still there
   underneath. position:relative is what makes the img's inset work. */
.srail .who .av{position:relative;overflow:hidden}
.srail .who .av img{position:absolute;inset:0;width:100%;height:100%;
  object-fit:cover;display:block;border-radius:50%}
.srail .who .av{width:34px;height:34px;flex:none;border-radius:50%;display:grid;place-items:center;
  background:var(--grad);color:#fff;font:700 14px/1 var(--sans)}
.srail .who .nm{min-width:0}
.srail .who .nm b{display:block;font:700 13.5px/1.2 var(--sans);overflow:hidden;
  text-overflow:ellipsis;white-space:nowrap}
.srail .who .nm span{display:block;font:500 11.5px/1.2 var(--sans);color:var(--slate2);
  overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* 8.5px is not a typo. It is what the reference uses, and at 700 weight with
   1.19px of tracking it reads as a label rather than as text somebody forgot
   to finish. */
.srail .grp{font:700 8.5px/1 var(--sans);letter-spacing:1.19px;text-transform:uppercase;
  color:var(--slate2);margin:16px 0 4px;padding:0 10px}
.srail .grp:first-of-type{margin-top:4px}
.srail a.it,.srail button.it{display:flex;align-items:center;gap:10px;width:100%;
  min-height:46px;padding:8px 10px;border-radius:11px;border:0;background:none;cursor:pointer;
  font:500 13px/1.25 var(--sans);color:var(--slate);text-decoration:none;text-align:left}
/* ── THE HOVER, AND WHY IT MAY NOT TOUCH THE INK RAMP ──────────────────
   This read `background:var(--ink2,#F1F6F7);color:var(--ink)`, and the
   fallback says what was meant: a pale wash. It never ran, because
   --ink2 IS defined everywhere the rail is used — and it means two
   opposite things.

     synora-app.css          --ink2: rgba(11,26,28,.78)   a TEXT colour
     synora.html             --ink2: #0C3F4A              a TEXT colour
     synora-experts.html     --ink2: #23384A              a TEXT colour
     synora-account.html     --ink2: #161C28              a dark SURFACE
     synora-inbox.html       --ink2: #161C28              a dark SURFACE

   So on the light pages the hover painted a near-black TEXT colour as a
   background and then wrote near-black text on it, and on the two dark
   pages it painted the right surface and then wrote #0B0E14 on it. Dark
   on dark, from both directions, on every page that has a rail.

   The fix is not a better ink token. It is to stop asking a ramp whose
   meaning flips between pages, so:

     THE WASH IS BRAND TEAL AT 16%, which reads as a tint on white and as
     a lift on near-black. One value, both palettes, no token.

     THE TEXT GOES TO THE PAGE'S OWN STRONGEST TEXT COLOUR. --t1 where a
     page defines one (the dark pages do, light), falling back to --ink
     (the light pages, dark). Each page already decided what its most
     readable colour is; this asks for that rather than guessing.

     AND A TEAL EDGE, because the ask was to make the hovered row more
     visible, and 16% of anything is subtle on its own. */
.srail a.it:hover,.srail button.it:hover{
  background:rgba(0,167,158,.16);color:var(--t1,var(--ink));
  box-shadow:inset 3px 0 0 0 var(--teal,#00A79E)}
.srail a.it[aria-current=page],.srail button.it[aria-current="true"]{
  background:var(--grad);color:#fff;font-weight:700;
  box-shadow:0 6px 16px -9px rgba(0,167,158,.9)}
.srail .it .ic{width:16px;height:16px;flex:none;opacity:.85}
/* The second group is the rest of the product, not the workspace. It is
   quieter on purpose: a reader scanning the rail for what to do next should
   land on the four directions, and find the website underneath when they
   are looking for it rather than instead of it. */
.srail .it.sub{min-height:38px;font-size:12.5px;color:var(--slate2)}
.srail .it.sub:hover{color:var(--t1,var(--ink))}
/* --ink3 is undefined on the light pages (so the pale fallback lands) and
   a dark surface on the two dark ones, which is right both times — but
   --ink as its TEXT is near-black both times, so the count was unreadable
   on a dark page. Same correction as the hover above. */
.srail .it .pip{margin-left:auto;font:700 10.5px/1 var(--sans);background:var(--ink3,#E8EFF0);
  color:var(--t1,var(--ink));border-radius:99px;padding:3px 7px;min-width:20px;text-align:center}
.srail a.it[aria-current=page] .pip{background:rgba(255,255,255,.25);color:#fff}
/* ── THE PINNED ACTION ────────────────────────────────────────────────
   One thing at the foot of the rail that is a VERB, not a destination. The
   rail's rows are places you go; this is a thing you do, and the difference
   is worth a different shape — a filled pill, pinned, so it reads as an
   action and does not add a fifth tab to a list of four.

   It exists because the four directions are the right grouping and the
   right grouping still buried something urgent. Starting a call when
   somebody is already waiting is not browsing. */
.srail .act{margin-top:auto;display:flex;align-items:center;justify-content:center;gap:9px;
  min-height:46px;padding:0 16px;border-radius:13px;background:var(--grad);color:#fff;
  text-decoration:none;font:700 13.5px/1 var(--sans);border:0;cursor:pointer;
  box-shadow:0 8px 20px -10px rgba(0,167,158,.95)}
.srail .act:hover{filter:saturate(1.08) brightness(1.04)}
.srail .act .ic{width:16px;height:16px;flex:none}
.srail .act + .foot{margin-top:14px}
.srail .foot{margin-top:auto;padding-top:14px;font-size:11.5px;color:var(--slate2);line-height:1.5}

.shellmain{min-width:0;
  padding-left:max(20px,env(safe-area-inset-left,0px));
  padding-right:max(20px,env(safe-area-inset-right,0px));
  padding-block:clamp(18px,3vw,30px) 64px}
.shellmain > *{max-width:1180px}

/* ON A PHONE THE RAIL IS NOT A RAIL. 248px of chrome beside a 390px screen
   leaves 142px for the work, so it lies down as one scrolling row of pills
   above the page. The group labels go with it — six pills in a row do not
   need three headings explaining them. */
@media (max-width:860px){
  .shellframe{display:block}
  .srail{position:sticky;top:0;z-index:40;height:auto;flex-direction:row;align-items:center;
    gap:6px;overflow-x:auto;overflow-y:hidden;border-right:0;border-bottom:1px solid var(--line);
    padding:10px max(16px,env(safe-area-inset-left,0px));
    background:color-mix(in srgb,var(--ink1,#fff) 94%,transparent);
    backdrop-filter:saturate(1.3) blur(10px);-webkit-backdrop-filter:saturate(1.3) blur(10px)}
  .srail::-webkit-scrollbar{display:none}
  .srail .grp,.srail .foot{display:none}
  .srail .act{margin:0 0 0 4px;flex:none;min-height:38px;padding:0 14px;white-space:nowrap}
  .srail .who{margin:0 8px 0 0;flex:none;border:0;padding:0}
  .srail .who .nm{display:none}
  .srail a.it,.srail button.it{flex:none;width:auto;min-height:38px;white-space:nowrap}
}

/* ══════════════════════════════════════════════════════════════════════════
 *  THE GRAPHICS
 *
 *  Two shapes, used everywhere, because a dashboard with six kinds of chart
 *  is a dashboard you have to read rather than scan. A RING for a single
 *  proportion that has a ceiling (a profile is 72% of the way to complete);
 *  a METER for a count against a target or a share of a row.
 *
 *  Both take the gradient, and both are sized so the number inside is the
 *  thing you see first. A chart whose label is easier to read than its value
 *  is decoration.
 * ══════════════════════════════════════════════════════════════════════════ */
.ring{position:relative;width:58px;height:58px;flex:none}
.ring svg{width:58px;height:58px;transform:rotate(-90deg)}
.ring .tr{stroke:var(--line);stroke-width:5;fill:none}
.ring .vl{stroke:url(#syn-ringgrad);stroke-width:5;fill:none;stroke-linecap:round;
  transition:stroke-dasharray .5s ease}
.ring b{position:absolute;inset:0;display:grid;place-items:center;
  font:700 15px/1 var(--sans);letter-spacing:-.03em}

.meters{display:flex;flex-direction:column;gap:11px}
.meter .lab{display:flex;justify-content:space-between;align-items:baseline;gap:10px;
  font:600 12.5px/1 var(--sans);margin-bottom:6px}
.meter .lab span{color:var(--slate)}
.meter .lab b{font-weight:700;letter-spacing:-.01em}
.meter .tr{height:6px;border-radius:99px;background:var(--line);overflow:hidden}
.meter .tr i{display:block;height:100%;border-radius:99px;background:var(--grad);
  background-size:var(--w,100%) 100%;background-repeat:no-repeat;transition:width .5s ease}

/* A door can carry a ring in place of one of its numbers. */
.door .nums.withring{align-items:center;gap:16px}

/* ── where you stand ──────────────────────────────────────────────────── */
.stand{display:flex;flex-direction:column;gap:16px;margin-bottom:26px}
/* .states is its own component, not a child of .stand. It was scoped to
   .stand, so the same markup used inside .shape got no flex-wrap, became a
   flex ITEM that will not shrink below its content, and pushed the document
   59px wider than a 390px phone. A row of chips that cannot wrap is a
   horizontal scrollbar on the whole page. */
.states{display:flex;flex-wrap:wrap;gap:8px;min-width:0}
.st{display:inline-flex;align-items:center;gap:8px;padding:7px 13px;border-radius:999px;
  border:1px solid var(--line);font:600 12.5px/1 var(--sans);color:var(--slate);white-space:nowrap}
.st i{width:7px;height:7px;border-radius:50%;background:var(--line2);flex:none}
.st.on{color:var(--ink);border-color:rgba(0,167,158,.32);background:rgba(0,167,158,.07)}
.st.on i{background:var(--teal,#00A79E)}
.stand .go{font:700 13.5px/1 var(--sans);color:var(--cobalt);text-decoration:none}

/* ══════════════════════════════════════════════════════════════════════════
 *  A FILTER BAR, NOT A FILTER FORM
 *
 *  Eight always-open fields above a list is a wall you read before you reach
 *  the thing you came for, and seven of the eight are usually empty. The bar
 *  shows what is ACTUALLY narrowing the list — as chips you can throw away
 *  one at a time — and keeps the rest one press behind a control that says
 *  how many are set.
 * ══════════════════════════════════════════════════════════════════════════ */
.fbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:14px}
.fbar .q{flex:1 1 240px;min-width:0;min-height:44px;padding:0 15px;border-radius:999px;
  border:1px solid var(--line);background:#fff;font:400 14.5px/1 var(--sans);color:var(--ink)}
.fbar .q::placeholder{color:var(--slate2)}
.fbar .q:focus{outline:none;border-color:var(--teal,#00A79E);box-shadow:0 0 0 3px rgba(0,167,158,.15)}
.fbar .more{flex:none;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 16px;
  border-radius:999px;border:1px solid var(--line);background:#fff;cursor:pointer;
  font:700 13.5px/1 var(--sans);color:var(--ink)}
.fbar .more[aria-expanded=true]{border-color:rgba(0,167,158,.4);background:rgba(0,167,158,.07)}
.fbar .more .n{background:var(--grad);color:#fff;border-radius:99px;padding:2px 7px;font-size:11px}
.fchips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:14px}
.fchips button{display:inline-flex;align-items:center;gap:7px;padding:6px 10px 6px 12px;
  border-radius:999px;border:1px solid rgba(0,167,158,.32);background:rgba(0,167,158,.08);
  cursor:pointer;font:600 12.5px/1 var(--sans);color:var(--ink)}
.fchips button::after{content:"\00d7";font-size:15px;line-height:1;color:var(--slate)}
.fchips button:hover::after{color:var(--ink)}
.fchips .clear{border-style:dashed;border-color:var(--line2);background:none;color:var(--slate)}
.fchips .clear::after{content:none}

/* ── the shape of the result set, before you read one card ─────────────── */
.shape{display:flex;align-items:center;gap:16px 20px;flex-wrap:wrap;margin-bottom:18px;
  padding:14px 18px;border:1px solid var(--line);border-radius:16px;background:#fff}
.shape .big{font:700 26px/1 var(--sans);letter-spacing:-.03em}
.shape .big span{font:600 13px/1 var(--sans);color:var(--slate);margin-left:7px;letter-spacing:0}
.shape .split{flex:1 1 200px;min-width:0}
.shape .states{flex:1 1 100%}
.shape .split .tr{display:flex;height:8px;border-radius:99px;overflow:hidden;background:var(--line)}
.shape .split .tr i{display:block;height:100%}
.shape .split .tr i.paid{background:var(--grad)}
.shape .split .tr i.unpaid{background:var(--line2)}
.shape .split .key{display:flex;gap:14px;margin-top:7px;font:600 11.5px/1 var(--sans);color:var(--slate)}
.shape .split .key em{font-style:normal;color:var(--ink)}

/* ── fit, on the card ──────────────────────────────────────────────────── */
.rq .fit{display:flex;align-items:center;gap:9px;margin-top:2px}
.rq .fit .tr{flex:1 1 auto;height:5px;border-radius:99px;background:var(--line);overflow:hidden}
.rq .fit .tr i{display:block;height:100%;border-radius:99px;background:var(--grad);
  background-size:var(--w,100%) 100%;background-repeat:no-repeat}
.rq .fit b{font:700 11px/1 var(--sans);letter-spacing:.06em;text-transform:uppercase;color:var(--slate)}
.rq.top{border-color:rgba(0,167,158,.38)}

/* ══════════════════════════════════════════════════════════════════════════
 *  COLOUR BY MEANING
 *
 *  Measured off the reference dashboard rather than invented: every panel
 *  there carries a hue that says what KIND of thing it is — amber for the
 *  tier, rose for a loss, emerald for help, violet for updates — each one a
 *  low-alpha tint of a full-strength accent, with the accent itself used for
 *  the icon and the number.
 *
 *  So the rule here is the same, and it is a rule rather than a palette: a
 *  hue means something, and nothing takes one for decoration.
 *
 *    EARN   amber    money, and work that becomes money
 *    TEACH  violet   time, sessions, conversation
 *    BUILD  teal     standing — the brand's own colour, because your
 *                    profile IS the thing Synora is
 *    good   emerald  done, confirmed, nothing owed
 *    warn   amber    waiting on you
 *    bad    rose     late, blocked, refused
 *
 *  The Eclipse gradient keeps what it had: the primary action and the active
 *  state. It is the brand, not a sixth meaning.
 *
 *  ON WHITE the tints sit at 7–9%, where a hue is unmistakable and still
 *  lets black text sit on it at full contrast. The reference uses 4–15% over
 *  near-black; the same alphas over white would be invisible, so these were
 *  set by eye against the real cards rather than copied as numbers.
 * ══════════════════════════════════════════════════════════════════════════ */
:root{
  --c-earn:#D97706;  --c-earn-ink:#B45309;  --c-earn-tint:rgba(245,158,11,.085);
  --c-teach:#6D4DF2; --c-teach-ink:#5B3CD9; --c-teach-tint:rgba(124,92,246,.085);
  --c-build:#00807A; --c-build-ink:#00706B; --c-build-tint:rgba(0,167,158,.10);
  --c-good:#0F9D6E;  --c-good-tint:rgba(16,185,129,.085);
  --c-bad:#E11D48;   --c-bad-tint:rgba(244,63,94,.085);
}

/* ── the doors take their direction's hue ──────────────────────────────── */
.doors .door:nth-child(1){--k:var(--c-earn);  --k-ink:var(--c-earn-ink);  --k-tint:var(--c-earn-tint)}
.doors .door:nth-child(2){--k:var(--c-teach); --k-ink:var(--c-teach-ink); --k-tint:var(--c-teach-tint)}
.doors .door:nth-child(3){--k:var(--c-build); --k-ink:var(--c-build-ink); --k-tint:var(--c-build-tint)}
.door{position:relative;overflow:hidden}
/* A wash in the corner the eyebrow sits in, so the hue is felt before it is
   read. Kept under 10% — a card you notice the background of is a card
   whose content you have stopped reading. */
.door::before{content:"";position:absolute;inset:0 auto auto 0;width:62%;height:116px;
  background:radial-gradient(120% 100% at 0% 0%,var(--k-tint) 0%,transparent 72%);
  pointer-events:none}
.doors .door .n{color:var(--k-ink)}
.door .go{color:var(--k-ink)}
.door:hover{border-color:color-mix(in srgb,var(--k) 38%,transparent)}
.door .ikon{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;
  background:var(--k-tint);color:var(--k);flex:none}
.door .ikon svg{width:19px;height:19px}
.door .hd{display:flex;align-items:center;gap:12px}
.door .hd .n{margin:0}

/* ── tinted stat tiles ─────────────────────────────────────────────────── */
.tints{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}
.tint{border-radius:14px;padding:12px 15px;border:1px solid transparent;min-width:0}
.tint .k{font:800 9px/1 var(--sans);letter-spacing:.14em;text-transform:uppercase;opacity:.8}
/* 22px, not 25. These sat ABOVE the doors in visual weight and the doors
   are the navigation — a summary that shouts louder than the thing it
   summarises sends people to the wrong place. */
.tint .v{font:700 22px/1.1 var(--sans);letter-spacing:-.03em;margin-top:6px}
.tint .s{font-size:12px;margin-top:3px;opacity:.75}
.tint.good{background:var(--c-good-tint);border-color:color-mix(in srgb,var(--c-good) 22%,transparent);color:var(--c-good)}
.tint.warn{background:var(--c-earn-tint);border-color:color-mix(in srgb,var(--c-earn) 24%,transparent);color:var(--c-earn-ink)}
.tint.bad{background:var(--c-bad-tint);border-color:color-mix(in srgb,var(--c-bad) 22%,transparent);color:var(--c-bad)}
.tint.cool{background:var(--c-teach-tint);border-color:color-mix(in srgb,var(--c-teach) 22%,transparent);color:var(--c-teach-ink)}
.tint .v,.tint .k{color:inherit}
/* A plain tint with no state. Without this rule a stateless tile had a
   transparent background and a transparent border, which is a tile that
   is not there. */
.tint:not(.good):not(.warn):not(.bad):not(.cool){background:var(--bg2);border-color:var(--line)}

/* ── THREE STEPS, AS THREE STEPS ───────────────────────────────────────
   For the handful of places that explain a flow — opening a room, what
   happens to a submission. A numbered strip is read in the order it
   happens; the paragraph it replaces was read in no order at all. */
.steps{display:grid;grid-template-columns:repeat(auto-fit,minmax(215px,1fr));gap:12px;margin-bottom:18px}
.sp{display:flex;gap:11px;align-items:flex-start;padding:13px 14px;background:#fff;
  border:1px solid var(--line);border-radius:14px;min-width:0}
.sp b{flex:none;width:26px;height:26px;border-radius:50%;background:var(--grad);color:#fff;
  display:grid;place-items:center;font:700 13px/1 var(--sans)}
.sp span{min-width:0;font-size:12.5px;color:var(--slate)}
.sp span em{display:block;font:700 14px/1.3 var(--sans);font-style:normal;color:var(--ink);margin-bottom:3px}

/* ── a card header that carries an icon, like the reference ───────────── */
.sec h2 .hd,.livecard h2 .hd{display:flex;align-items:center;gap:10px}
.ikon-sm{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;flex:none;
  background:var(--c-build-tint);color:var(--c-build)}
.ikon-sm svg{width:15px;height:15px}

/* The rail's direction rows carry the same hues, so the colour a person
   learns on the dashboard is the colour they follow down the side. */
.srail .it[data-k=earn] .ic{color:var(--c-earn)}
.srail .it[data-k=teach] .ic{color:var(--c-teach)}
.srail .it[data-k=build] .ic{color:var(--c-build)}
.srail .it[aria-current=page] .ic{color:#fff}
.srail .it[data-k] .pip{background:var(--c-earn-tint);color:var(--c-earn-ink)}
.srail .it[data-k=teach] .pip{background:var(--c-teach-tint);color:var(--c-teach-ink)}
.srail .it[data-k=build] .pip{background:var(--c-build-tint);color:var(--c-build-ink)}

/* ── the next seven days ──────────────────────────────────────────────────
   A week, not a month. A month grid of mostly empty cells answers "what is
   the date", and somebody opening an appointments page already knows. */
.week7{background:#fff;border:1px solid var(--line);border-radius:18px;padding:16px 18px;margin-bottom:18px}
/* Was var(--ink2), which on a light page is a near-black text colour: an
   empty day came out as a black square. A neutral wash recedes on either
   palette and belongs to neither ramp. */
.week7.empty{background:rgba(127,139,145,.12)}
.w7-hd{display:flex;align-items:baseline;gap:9px;flex-wrap:wrap;margin-bottom:14px}
.w7-hd b{font:700 22px/1 var(--sans);letter-spacing:-.03em}
.w7-hd span{font-size:13px;color:var(--slate)}
.w7-key{margin-left:auto;display:flex;align-items:center;gap:7px;font-size:11.5px;color:var(--slate2)}
.w7-key i{width:9px;height:9px;border-radius:3px;display:inline-block;margin-left:7px}
.w7{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}
.w7-d{display:flex;flex-direction:column;align-items:center;gap:5px;padding:10px 4px 11px;
  border-radius:13px;border:1px solid var(--line);min-width:0}
.w7-d.has{border-color:rgba(0,167,158,.28);background:rgba(0,167,158,.05)}
.w7-d.today{border-color:var(--teal,#00A79E);box-shadow:0 0 0 1px var(--teal,#00A79E) inset}
.w7-d .dn{font:800 8.5px/1 var(--sans);letter-spacing:1.19px;text-transform:uppercase;color:var(--slate2)}
.w7-d .dd{font:700 17px/1 var(--sans);letter-spacing:-.02em}
.w7-d .bars{display:flex;flex-wrap:wrap;justify-content:center;gap:3px;margin-top:2px;min-height:10px}
.w7-d .bars i{width:9px;height:9px;border-radius:3px;display:block}
/* Solid for confirmed, hatched for requested: "somebody has asked for
   Thursday" and "Thursday is gone" are different facts, and a calendar that
   draws them the same way is one you double-book from. */
.conf,.w7-d .bars i.conf,.w7-key i.conf{background:var(--teal,#00A79E)}
.req,.w7-d .bars i.req,.w7-key i.req{background:repeating-linear-gradient(45deg,
  var(--c-earn,#D97706) 0 2px,transparent 2px 4px),rgba(245,158,11,.22)}
.w7-d .bars i.none{background:var(--line);width:14px;height:3px;border-radius:2px;margin-top:3px}
@media (max-width:620px){.w7{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* ═══════════════════════════════════════════════════════════════════════
   THE BELL

   The button belongs to the rail and is styled here with it. The panel is
   attached to <body> by synora-bell.js and is positioned in script, so its
   rules carry no top/left — writing them here and overriding them there is
   how a panel ends up in two places depending on which file loaded last.
   ═══════════════════════════════════════════════════════════════════════ */
.srail .who .bellbtn{margin-left:auto;flex:none;position:relative;width:32px;height:32px;
  display:grid;place-items:center;border:1px solid var(--line);border-radius:10px;
  background:none;cursor:pointer;color:var(--slate2);padding:0}
.srail .who .bellbtn:hover{color:var(--ink);border-color:var(--cobalt)}
.srail .who .bellbtn:focus-visible{outline:2px solid var(--cobalt);outline-offset:2px}
.srail .who .bellbtn svg{width:17px;height:17px;fill:none;stroke:currentColor;
  stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
/* The count sits ON the button, so a rail that is narrow does not reflow
   when the number appears. min-width rather than width: "99+" is wider
   than "3" and must not be clipped into nonsense. */
.srail .who .belldot{position:absolute;top:-5px;right:-5px;min-width:17px;height:17px;
  padding:0 4px;border-radius:999px;background:var(--c-bad,#B42318);color:#fff;
  font:700 10px/17px var(--sans);text-align:center;box-shadow:0 0 0 2px var(--bg2,#fff)}

.bellpanel{position:fixed;z-index:60;max-height:min(70vh,520px);overflow:auto;
  background:var(--bg2,#fff);border:1px solid var(--line);border-radius:16px;
  box-shadow:0 18px 44px rgba(11,26,28,.16)}
.bellpanel[hidden]{display:none}
.bellhead{display:flex;align-items:center;justify-content:space-between;gap:8px;
  padding:13px 14px 9px;position:sticky;top:0;background:var(--bg2,#fff);
  border-bottom:1px solid var(--line)}
.bellhead b{font:700 13.5px/1 var(--sans)}
.bellhead button{border:0;background:none;cursor:pointer;color:var(--cobalt);
  font:600 12px/1 var(--sans);padding:4px}
.belltabs{display:flex;gap:4px;overflow-x:auto;padding:9px 10px;border-bottom:1px solid var(--line)}
.belltabs button{flex:none;border:1px solid var(--line);background:none;cursor:pointer;
  border-radius:999px;padding:5px 11px;font:600 11.5px/1 var(--sans);color:var(--slate2)}
.belltabs button[aria-pressed="true"]{background:var(--grad);border-color:transparent;color:#fff}
.belllist{list-style:none;margin:0;padding:4px}
.bellrow a{display:block;padding:11px 12px;border-radius:11px;text-decoration:none;color:inherit}
.bellrow a:hover{background:var(--c-build-tint,rgba(0,167,158,.07))}
/* Unread is a bar, not a colour wash: a panel where most rows are tinted
   reads as decoration, and the one thing the row has to say is whether it
   has been seen. */
.bellrow.unread a{box-shadow:inset 3px 0 0 var(--cobalt)}
.bellt{display:block;font:600 13px/1.4 var(--sans)}
.bellb{display:block;font:500 12px/1.45 var(--sans);color:var(--slate2);margin-top:2px}
.bellw{display:block;font:500 11px/1 var(--sans);color:var(--slate2);margin-top:5px}
.bellempty{margin:0;padding:22px 16px;font:500 12.5px/1.6 var(--sans);color:var(--slate2)}

@media (max-width:640px){
  .bellpanel{max-height:min(76vh,460px)}
}
