:root{
  --orange:#FD8401;
  --orange-dark:#E07600;
  --ink:#1A1819;
  --ink-soft:#4A4746;
  --bg:#F5F3F1;
  --card:#FFFFFF;
  --border:#E7E2DD;
  --green:#1E8A4C;
  --red:#C22B2B;
  --amber:#B8860B;
}
*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{
  font-family:'Segoe UI',Arial,Helvetica,sans-serif;
  background:var(--bg);
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;}
button{font-family:inherit;cursor:pointer;}
#app{min-height:100vh;display:flex;flex-direction:column;}

/* ---- Header ---- */
#header{
  background:var(--ink);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px 28px;
  position:sticky;top:0;z-index:50;
  box-shadow:0 2px 8px rgba(0,0,0,.15);
}
#header .brand{display:flex;align-items:center;gap:12px;}
#header .brand img{height:34px;display:block;background:#fff;border-radius:6px;padding:3px;}
#header .brand .word{font-size:19px;font-weight:700;letter-spacing:.2px;}
#header .brand .word span{color:var(--orange);}
#header .right{display:flex;align-items:center;gap:18px;}
#header .greet{font-size:13px;color:#D8D3CF;text-align:right;line-height:1.3;}
#header .greet b{color:#fff;font-size:14px;}
#header .avatar{
  width:36px;height:36px;border-radius:50%;
  background:var(--orange);color:#fff;font-weight:700;
  display:flex;align-items:center;justify-content:center;font-size:14px;
}
#header .logout{
  background:transparent;border:1px solid #55504C;color:#D8D3CF;
  padding:7px 14px;border-radius:6px;font-size:12.5px;
}
#header .logout:hover{border-color:var(--orange);color:#fff;}
#header .banner-help{margin-right:-6px}
.help-overlay{position:fixed;inset:0;background:rgba(20,28,38,.55);z-index:800;display:flex;align-items:center;justify-content:center;padding:24px}
.help-overlay.hidden{display:none}
.help-modal{background:#fff;border-radius:10px;width:min(720px,100%);max-height:92vh;display:flex;flex-direction:column;box-shadow:0 12px 40px rgba(0,0,0,.3);overflow:hidden}
.help-modal-head{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:linear-gradient(180deg,#4D1F79,#411B67);color:#fff}
.help-modal-head h3{margin:0;font-size:1.05rem}
.help-modal-close{background:transparent;border:0;color:#fff;font-size:1.4rem;cursor:pointer;line-height:1}
.help-modal-actions{display:flex;gap:10px;justify-content:flex-end;padding:12px 16px;border-top:1px solid var(--line)}
.help-modal-actions .btn.primary{background:var(--purple);color:#fff;border-color:var(--purple)}
/* Demo-only lifecycle switcher -- this wireframe has no real login/backend, so it can only ever
   reflect one hardcoded sample identity. To review the accumulation -> TTR -> full pension
   lifecycle described by the user (round 234), the SAME identity is toggled between three
   pre-authored data states rather than requiring three separate files. Styled distinctly (amber
   dashed border) so it visibly reads as a reviewer/demo control, not a real account setting. */
.lifecycle-switcher{
  display:flex;flex-direction:column;gap:2px;font-size:11px;color:#D8D3CF;
  border:1px dashed rgba(184,134,11,.55);border-radius:6px;padding:5px 10px;
}
.lifecycle-switcher label{text-transform:uppercase;letter-spacing:.4px;font-size:9.5px;color:var(--amber);font-weight:700;}
.lifecycle-switcher select{
  background:#2B2725;color:#fff;border:1px solid #55504C;border-radius:5px;
  padding:4px 6px;font-size:12px;font-family:inherit;
}
.lifecycle-badge{
  display:inline-block;font-size:11px;font-weight:700;border-radius:10px;padding:2px 10px;
  margin-left:8px;vertical-align:middle;
}
.lifecycle-badge.ttr{background:#FFF1DC;color:var(--amber);}
.lifecycle-badge.pension{background:#E7F3EC;color:var(--green);}

/* ---- Shell ---- */
#shell{display:flex;flex:1;min-height:0;}
#nav{
  width:230px;flex:none;background:#fff;border-right:1px solid var(--border);
  padding:18px 10px;
}
/* Nav colouring notes: #nav is an ID selector, which out-specificities any plain class
   selector (e.g. .navchild{...}) regardless of source order. So every background/color rule
   below is deliberately written with the #nav prefix (or #nav plus an element/class combo) so
   the specificity tiers stack the way we want: base tier (1 class) < active tier (class+element). */
#nav button{
  display:flex;align-items:center;gap:10px;width:100%;text-align:left;
  border:none;padding:11px 14px;border-radius:8px;font-size:14px;margin-bottom:3px;
  font-weight:500;
}
#nav button .ic{font-size:16px;width:20px;text-align:center;display:inline-flex;align-items:center;justify-content:center;}
#nav button .ic svg{width:16px;height:16px;}
#nav button:hover{filter:brightness(0.94);}
/* Top-level items: flat pages (direct children of #nav) and group headers (.navparent, one
   level down inside .navgroup) both get the brand orange as their resting colour. */
#nav > button{background:var(--orange);color:#fff;}
#nav .navparent{background:var(--orange);color:#fff;}
.navgroup{margin-bottom:3px;}
#nav .navgroup .navparent{margin-bottom:0;}
.navchevron{margin-left:auto;font-size:9px;opacity:.8;transition:transform .15s;}
.navgroup.expanded .navchevron{transform:rotate(90deg);}
/* Tree look: children sit in a .navchildren wrapper with a vertical guide line down its left
   edge (border-left); each child gets a short horizontal tick (::before) reaching from that
   trunk line to the button, like a classic file-explorer tree. The wrapper's own height is
   exactly the height of its children, so the trunk line naturally starts at the first child and
   stops at the last -- no extra bookkeeping needed. */
.navchildren{
  position:relative;margin:2px 0 3px 24px;padding-left:10px;
  border-left:1.5px solid rgba(0,0,0,.16);
}
/* .navchild buttons are only rendered into the DOM at all when their group is expanded
   (see renderShell()) -- deliberately not CSS display:none, because #nav button{...} is an
   ID-scoped rule that would out-specificity a plain .navchild{display:none} class rule and
   silently defeat the collapse. */
.navchild{
  position:relative;width:100%;text-align:left;border:none;padding:8px 14px;border-radius:8px;
  font-size:13px;font-weight:500;margin-bottom:2px;
}
.navchild::before{
  content:'';position:absolute;left:-10px;top:50%;width:10px;height:1.5px;
  background:rgba(0,0,0,.16);
}
#nav .navchild{background:#FEB567;color:#000;}
/* Selected item, at any level: orange text on a black background. Needs the extra "button"
   element in the selector to out-specificity the #nav > button / #nav .navparent / #nav
   .navchild base-colour rules above, all of which only have a single class (or none). */
#nav button.active{background:#000;color:var(--orange);}
/* Exception: a top-level item that owns sub-items (.navparent) stays in its resting white-on-
   orange colouring even while its group is expanded/current -- the chevron rotation already
   communicates expanded state, and only the specific .navchild being viewed should get the
   black-on-orange "selected" treatment. Two classes + element out-specificities the rule above. */
#nav button.navparent.active{background:var(--orange);color:#fff;}
#main{flex:1;padding:26px 32px 60px;overflow-y:auto;max-width:1100px;margin:0 auto;width:100%;}

/* ---- Typography ---- */
h1.page-title{font-size:22px;margin:0 0 4px;}
p.page-sub{color:var(--ink-soft);font-size:13.5px;margin:0 0 22px;}

/* ---- Cards ---- */
.card{
  background:var(--card);border:1px solid var(--border);border-radius:12px;
  padding:20px 22px;margin-bottom:18px;
  box-shadow:0 1px 2px rgba(0,0,0,.03);
}
.card h2{font-size:15.5px;margin:0 0 14px;display:flex;align-items:center;justify-content:space-between;}
.card h2 .actions{font-size:12px;font-weight:500;}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:18px;}
.grid3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:18px;}
@media(max-width:820px){.grid2,.grid3{grid-template-columns:1fr;}}

/* ---- Hero balance ---- */
.hero{
  background:linear-gradient(135deg,var(--ink) 0%,#2B2725 100%);
  color:#fff;border-radius:14px;padding:26px 28px;margin-bottom:20px;
  display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:18px;
}
.hero .label{font-size:12.5px;color:#CFC9C4;text-transform:uppercase;letter-spacing:.6px;margin-bottom:6px;}
.hero .amount{font-size:38px;font-weight:700;}
.hero .sub{font-size:12.5px;color:#CFC9C4;margin-top:6px;}
.hero .qa{display:flex;gap:10px;flex-wrap:wrap;}

/* ---- Buttons ---- */
.btn{
  border-radius:7px;padding:9px 16px;font-size:13.5px;font-weight:600;border:1px solid transparent;
  display:inline-flex;align-items:center;gap:6px;
}
.btn-primary{background:var(--orange);color:#fff;}
.btn-primary:hover{background:var(--orange-dark);}
.btn-secondary{background:#fff;color:var(--ink);border-color:var(--border);}
.btn-secondary:hover{border-color:var(--orange);}
.btn-danger{background:var(--red);color:#fff;}
.btn-danger:hover{background:#A52222;}
.btn-ghost{background:transparent;color:var(--orange);border:none;padding:4px 6px;font-weight:600;font-size:13px;}
.btn-dark{background:rgba(255,255,255,.12);color:#fff;border-color:rgba(255,255,255,.25);}
.btn-dark:hover{background:rgba(255,255,255,.22);}
.btn-sm{padding:6px 11px;font-size:12.5px;}

/* ---- Tables ---- */
table.dt{width:100%;border-collapse:collapse;font-size:13px;}
table.dt th{
  text-align:left;color:var(--ink-soft);font-weight:600;font-size:11.5px;
  text-transform:uppercase;letter-spacing:.3px;padding:8px 10px;border-bottom:2px solid var(--border);
}
table.dt td{padding:10px 10px;border-bottom:1px solid var(--border);}
table.dt tr:last-child td{border-bottom:none;}
.num{text-align:right;font-variant-numeric:tabular-nums;}

/* ---- Badges / pills ---- */
.pill{display:inline-block;padding:3px 10px;border-radius:20px;font-size:11.5px;font-weight:600;}
.pill-green{background:#E4F5EA;color:var(--green);}
.pill-red{background:#FBE7E7;color:var(--red);}
.pill-amber{background:#FBF1DA;color:var(--amber);}
.pill-orange{background:#FFEBD6;color:var(--orange-dark);}
.pill-grey{background:#EEEBE8;color:var(--ink-soft);}
.origin-badge{
  display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:600;
  padding:3px 9px;border-radius:20px;background:#F1EEEA;color:var(--ink-soft);
}
.origin-MP{background:#FFEBD6;color:var(--orange-dark);}
.origin-SS{background:#E4EEFB;color:#2255A4;}
.origin-AP{background:#EEEBE8;color:var(--ink-soft);}
.origin-CC{background:#EAF6EA;color:var(--green);}
.origin-AU{background:#F1EEFB;color:#6A3FB8;}
.origin-CR{background:#FBEDF6;color:#B8408F;}

/* ---- Bars (allocation) ---- */
.bar-row{margin-bottom:12px;}
.bar-row .lbl{display:flex;justify-content:space-between;font-size:13px;margin-bottom:5px;}
.bar-track{background:#F0EDEA;height:9px;border-radius:6px;overflow:hidden;}
.bar-fill{background:var(--orange);height:100%;border-radius:6px;}

/* ---- Forms / modal ---- */
.frow{margin-bottom:14px;}
.frow label{display:block;font-size:12.5px;font-weight:600;color:var(--ink-soft);margin-bottom:5px;}
.frow input,.frow select,.frow textarea{
  width:100%;padding:9px 11px;border:1px solid var(--border);border-radius:7px;font-size:13.5px;
  font-family:inherit;background:#fff;color:var(--ink);
}
.frow input:focus,.frow select:focus,.frow textarea:focus{outline:none;border-color:var(--orange);}
.frow .hint{font-size:11.5px;color:#8C8783;margin-top:4px;}
.ac-wrap{position:relative;}
.ac-results{
  position:absolute;left:0;right:0;top:100%;margin-top:2px;background:#fff;
  border:1px solid var(--border);border-radius:7px;box-shadow:0 6px 18px rgba(26,24,25,.12);
  z-index:60;max-height:220px;overflow:auto;
}
.ac-item{padding:8px 11px;font-size:13px;cursor:pointer;border-bottom:1px solid var(--border);}
.ac-item:last-of-type{border-bottom:none;}
.ac-item:hover{background:#FFF4E8;}
.ac-branding{font-size:10.5px;color:#9A958F;padding:5px 11px;text-align:right;background:#FAF8F6;}
#overlay{
  position:fixed;inset:0;background:rgba(26,24,25,.5);display:none;
  align-items:center;justify-content:center;z-index:100;padding:20px;
}
#overlay.show{display:flex;}
.modal{background:#fff;border-radius:14px;max-width:460px;width:100%;max-height:88vh;overflow-y:auto;}
.modal-head{padding:18px 22px;border-bottom:1px solid var(--border);display:flex;justify-content:space-between;align-items:center;}
.modal-head h3{margin:0;font-size:16px;}
.modal-head button{background:none;border:none;font-size:18px;color:var(--ink-soft);}
.modal-body{padding:20px 22px;}
.modal-foot{padding:14px 22px;border-top:1px solid var(--border);display:flex;justify-content:flex-end;gap:10px;}
.modaltabs{display:flex;gap:4px;border-bottom:1px solid var(--border);margin:-4px -4px 16px;padding:0 0 0 0;}
.modaltab{flex:1;background:transparent;border:none;border-bottom:2px solid transparent;padding:9px 6px;font-size:12.5px;font-weight:600;color:var(--ink-soft);}
.modaltab:hover{color:var(--ink);}
.modaltab.active{color:var(--orange-dark);border-bottom-color:var(--orange);}

/* ---- Toast ---- */
#toast{
  position:fixed;bottom:26px;left:50%;transform:translateX(-50%) translateY(20px);
  background:var(--ink);color:#fff;padding:13px 22px;border-radius:9px;font-size:13.5px;
  box-shadow:0 6px 20px rgba(0,0,0,.25);opacity:0;pointer-events:none;transition:all .25s;z-index:200;
  display:flex;align-items:center;gap:10px;
}
#toast.show{opacity:1;transform:translateX(-50%) translateY(0);}
#toast .dot{width:8px;height:8px;border-radius:50%;background:var(--orange);}

.muted{color:var(--ink-soft);}
.small{font-size:12px;}
.divider{border:none;border-top:1px solid var(--border);margin:16px 0;}
.empty{color:#9A958F;font-size:13px;padding:14px 0;text-align:center;}
.footer-note{margin-top:30px;padding:16px;border:1px dashed var(--border);border-radius:10px;font-size:11.5px;color:#9A958F;text-align:center;}
.chk-row{display:flex;align-items:center;gap:10px;padding:8px 0;font-size:13.5px;}
.chk-row input{width:16px;height:16px;accent-color:var(--orange);}

/* ---- Support chat widget ---- */
#chatWidget{position:fixed;right:24px;bottom:24px;z-index:150;}
.chat-fab{width:56px;height:56px;border-radius:50%;background:var(--orange);color:#fff;border:none;font-size:24px;box-shadow:0 6px 18px rgba(0,0,0,.25);cursor:pointer;display:flex;align-items:center;justify-content:center;}
.chat-fab:hover{background:var(--orange-dark);}
.chat-panel{display:none;flex-direction:column;position:absolute;right:0;bottom:70px;width:340px;max-width:calc(100vw - 48px);height:480px;max-height:calc(100vh - 120px);background:var(--card);border:1px solid var(--border);border-radius:14px;box-shadow:0 12px 32px rgba(0,0,0,.22);overflow:hidden;}
.chat-panel.show{display:flex;}
.chat-head{background:var(--orange);color:#fff;padding:14px 16px;display:flex;align-items:center;justify-content:space-between;flex-shrink:0;}
.chat-head-title{font-size:14px;font-weight:700;}
.chat-head-sub{font-size:11px;opacity:.9;}
.chat-head button{background:none;border:none;color:#fff;font-size:18px;cursor:pointer;}
.chat-messages{flex:1;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:10px;background:var(--bg);}
.chat-msg{max-width:82%;padding:9px 12px;border-radius:12px;font-size:13px;line-height:1.4;}
.chat-msg-bot,.chat-msg-agent{background:#fff;border:1px solid var(--border);align-self:flex-start;border-bottom-left-radius:3px;}
.chat-msg-member{background:var(--orange);color:#fff;align-self:flex-end;border-bottom-right-radius:3px;}
.chat-msg-system{align-self:center;background:transparent;color:var(--ink-soft);font-size:11px;font-style:italic;padding:2px 8px;max-width:100%;}
.chat-msg-meta{font-size:10px;color:var(--ink-soft);margin-top:3px;}
.chat-msg-member .chat-msg-meta{color:rgba(255,255,255,.8);}
.chat-quickactions{padding:0 14px 10px;display:flex;flex-wrap:wrap;gap:8px;background:var(--bg);flex-shrink:0;}
.chat-quickbtn{background:#fff;border:1px solid var(--orange);color:var(--orange-dark);border-radius:16px;padding:5px 12px;font-size:11.5px;cursor:pointer;}
.chat-quickbtn:hover{background:var(--orange);color:#fff;}
.chat-input-row{display:flex;gap:8px;padding:12px;border-top:1px solid var(--border);background:#fff;flex-shrink:0;}
.chat-input-row input{flex:1;border:1px solid var(--border);border-radius:20px;padding:9px 14px;font-size:13px;}
.chat-input-row input:focus{outline:none;border-color:var(--orange);}
.chat-send-btn{background:var(--orange);color:#fff;border:none;border-radius:50%;width:36px;height:36px;font-size:14px;cursor:pointer;flex-shrink:0;}
.chat-send-btn:hover{background:var(--orange-dark);}
/* Round 186: chat history view (backed by real ChatSession/ChatMessage seed data) */
.chat-histbtn{background:rgba(255,255,255,.16);border:none;color:#fff;font-size:15px;cursor:pointer;border-radius:6px;padding:4px 7px;margin-right:4px;}
.chat-histbtn:hover{background:rgba(255,255,255,.28);}
.chat-history-list{flex:1;overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:8px;background:var(--bg);}
.chat-history-item{background:#fff;border:1px solid var(--border);border-radius:10px;padding:10px 12px;cursor:pointer;}
.chat-history-item:hover{border-color:var(--orange);}
.chat-history-item-top{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12.5px;font-weight:700;color:var(--ink);}
.chat-history-item-meta{font-size:11px;color:var(--ink-soft);margin-top:3px;}
.chat-history-status{font-size:10.5px;font-weight:700;border-radius:10px;padding:2px 8px;background:var(--bg2,#f1f1f1);color:var(--ink-soft);}
.chat-history-empty{padding:20px 4px;font-size:12.5px;color:var(--ink-soft);font-style:italic;text-align:center;}
.chat-transcript-back{background:none;border:none;color:#fff;font-size:12px;cursor:pointer;text-decoration:underline;padding:0;}

/* =======================================================================
   TRUSTEE PORTAL ADDITIONS
   Everything above this line is the member portal's own stylesheet, taken
   whole rather than re-cut, because two portals from one administrator that
   look almost the same are worse than two that look the same. What follows is
   the handful of components a trustee portal needs and a member portal never
   did: an obligation with a deadline, a range a holding has to sit inside, and
   something waiting for a signature.
   ==================================================================== */

/* A KPI strip under the hero. The member portal's hero carries one number,
   because a member has one balance; a fund has four or five figures that only
   mean anything beside each other. */
.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:20px;}
.kpi{background:var(--card);border:1px solid var(--border);border-radius:12px;padding:15px 17px;}
.kpi .k{font-size:11px;text-transform:uppercase;letter-spacing:.5px;color:var(--ink-soft);
  font-weight:700;margin-bottom:6px;}
.kpi .v{font-size:22px;font-weight:700;line-height:1.15;}
.kpi .s{font-size:11.5px;color:var(--ink-soft);margin-top:4px;}
.kpi.alert{border-color:#F0C9C9;background:#FDF6F6;}
.kpi.warn{border-color:#EFE0BC;background:#FDFAF2;}
@media(max-width:980px){.kpis{grid-template-columns:1fr 1fr;}}
@media(max-width:560px){.kpis{grid-template-columns:1fr;}}

/* An obligation: what is due, when, and how much time is left. The days-left
   chip is the whole point — a date on its own makes the reader do arithmetic,
   and the reader is a trustee reading this on a Sunday. */
.due{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;font-weight:600;
  padding:3px 9px;border-radius:20px;background:#EEEBE8;color:var(--ink-soft);}
.due-over{background:#FBE7E7;color:var(--red);}
.due-soon{background:#FBF1DA;color:var(--amber);}
.due-ok{background:#E4F5EA;color:var(--green);}

/* The strategy range bar. A percentage against a band is the one thing on this
   whole portal that is genuinely hard to read as a number: 48.64% against 10 to
   30 needs a picture to land. The track is the 0-100 axis, the shaded block is
   the band the strategy allows, and the marker is where the fund actually is. */
.range{position:relative;height:22px;background:#F4F1EE;border-radius:6px;overflow:hidden;}
.range .band{position:absolute;top:0;bottom:0;background:#E2EDE4;border-left:1px solid #BBD3C1;
  border-right:1px solid #BBD3C1;}
.range .mark{position:absolute;top:2px;bottom:2px;width:3px;border-radius:2px;background:var(--ink);}
.range .mark.out{background:var(--red);}
.range .tgt{position:absolute;top:0;bottom:0;width:1px;background:#9DB9A6;}
.rangekey{display:flex;justify-content:space-between;font-size:11px;color:var(--ink-soft);
  margin-top:4px;}

/* Something waiting for a signature. It is a card with a coloured left edge
   rather than a table row because approving is an act, and an act wants room
   for what it is, what it rests on and what happens when it is given. */
.appr{border:1px solid var(--border);border-left:4px solid var(--orange);border-radius:10px;
  padding:16px 18px;margin-bottom:14px;background:#fff;}
.appr.done{border-left-color:var(--green);background:#FCFEFC;}
.appr.declined{border-left-color:var(--red);background:#FEFAFA;}
.appr h3{margin:0 0 6px;font-size:14.5px;display:flex;align-items:center;gap:10px;
  flex-wrap:wrap;}
.appr .why{font-size:13px;color:var(--ink-soft);margin:0 0 10px;line-height:1.5;}
.appr .rests{background:#F8F6F4;border-radius:8px;padding:11px 13px;font-size:12.5px;
  margin-bottom:12px;}
.appr .rests .rh{display:block;font-size:10.5px;text-transform:uppercase;letter-spacing:.4px;
  color:var(--ink-soft);margin-bottom:5px;font-weight:700;}
.appr .rests div+div{margin-top:4px;}
.appr .acts{display:flex;gap:9px;flex-wrap:wrap;align-items:center;}
.appr .outcome{font-size:12.5px;color:var(--ink-soft);}
.appr .outcome b{color:var(--ink);}

/* The activity trail, as a timeline rather than a table: a trustee reads it to
   answer "what has been done to my fund lately", which is a sequence. */
.tl{position:relative;padding-left:22px;}
.tl:before{content:'';position:absolute;left:5px;top:4px;bottom:4px;width:2px;background:var(--border);}
.tl .ti{position:relative;padding:0 0 16px;}
.tl .ti:before{content:'';position:absolute;left:-21px;top:5px;width:10px;height:10px;
  border-radius:50%;background:var(--orange);border:2px solid #fff;box-shadow:0 0 0 1px var(--border);}
.tl .ti .tw{font-size:11.5px;color:var(--ink-soft);}
.tl .ti .th{font-size:13.5px;font-weight:600;margin:1px 0 2px;}
.tl .ti .tn{font-size:12.5px;color:var(--ink-soft);line-height:1.45;}

/* A document row. The member portal downloads statements from a table; a
   trustee's documents have a year and a kind and get filtered by both. */
.docrow{display:flex;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid var(--border);}
.docrow:last-child{border-bottom:none;}
.docrow .di{width:34px;height:34px;border-radius:8px;background:#F1EEEA;display:flex;
  align-items:center;justify-content:center;font-size:14px;flex:none;}
.docrow .dm{flex:1;min-width:0;}
.docrow .dm .t{font-size:13.5px;font-weight:600;}
.docrow .dm .s{font-size:11.5px;color:var(--ink-soft);}

/* The fund switcher in the header, same dashed demo treatment as the member
   portal's lifecycle switcher, because it is the same kind of thing: a
   wireframe standing in for a login that does not exist. */
.fundsel select{min-width:260px;}

/* Two figures side by side where one is the register's and the other is what
   the trustee is being asked to accept. */
.sbs{display:grid;grid-template-columns:1fr 1fr;gap:0;border:1px solid var(--border);
  border-radius:9px;overflow:hidden;}
.sbs>div{padding:12px 14px;}
.sbs>div+div{border-left:1px solid var(--border);background:#FBFAF9;}
.sbs .k{font-size:10.5px;text-transform:uppercase;letter-spacing:.4px;color:var(--ink-soft);
  font-weight:700;margin-bottom:4px;}
.sbs .v{font-size:17px;font-weight:700;}

/* The compliance severity chips reuse the member portal's pills, so an error
   here and an unpaid premium there look like the same kind of object. */
.sevrow{display:flex;gap:9px;align-items:flex-start;padding:11px 0;border-bottom:1px solid var(--border);}
.sevrow:last-child{border-bottom:none;}
.sevrow .sv{flex:none;margin-top:1px;}
.sevrow .sb{flex:1;min-width:0;}
.sevrow .sb .st{font-size:13px;line-height:1.5;}
.sevrow .sb .sm{font-size:11.5px;color:var(--ink-soft);margin-top:3px;}

/* The header carries one more control than the member portal's — a fund
   switcher as well as a trustee switcher — which is enough extra width to push
   it off a laptop at 760px. Rather than shrink the controls everywhere, the bar
   is allowed to wrap once it stops fitting, and the greeting (which the avatar
   already says) drops out before the controls do. */
@media(max-width:1180px){
  #header{flex-wrap:wrap;row-gap:10px;}
  #header .right{flex-wrap:wrap;gap:12px;justify-content:flex-end;}
  .fundsel select{min-width:200px;}
}
@media(max-width:820px){
  #header .greet{display:none;}
  #header{padding:10px 16px;}
  .fundsel select{min-width:160px;}
  #nav{width:190px;padding:14px 8px;}
  #main{padding:20px 16px 48px;}
}
@media(max-width:620px){
  #shell{flex-direction:column;}
  #nav{width:100%;border-right:none;border-bottom:1px solid var(--border);}
  .hero{flex-direction:column;align-items:flex-start;}
  .hero .amount{font-size:30px;}
  .sbs{grid-template-columns:1fr;}
  .sbs>div+div{border-left:none;border-top:1px solid var(--border);}
  .appr .acts{flex-direction:column;align-items:stretch;}
}
/* Wide tables get their own scroller rather than pushing the page sideways. */
@media(max-width:820px){
  .card table.dt{display:block;overflow-x:auto;white-space:nowrap;}
}

/* =======================================================================
   SECOND EDITION ADDITIONS
   The screens added when the registry grew cases, determinations and the
   authorities that follow them.
   ==================================================================== */

/* A case stepper. The APRA registry draws its case timeline as a vertical
   list of stages with the current one marked; a trustee reads theirs to
   answer one question — how far through are we — so it runs horizontally
   and scrolls rather than stacking, which keeps the whole journey in one
   glance instead of a scroll. */
.steps{display:flex;gap:0;overflow-x:auto;padding:4px 0 2px;}
.step{flex:1 1 0;min-width:112px;position:relative;text-align:center;padding:0 6px;}
.step:before{content:'';position:absolute;left:0;right:50%;top:12px;height:2px;
  background:var(--border);}
.step:after{content:'';position:absolute;left:50%;right:0;top:12px;height:2px;
  background:var(--border);}
.step:first-child:before,.step:last-child:after{display:none;}
.step.done:before,.step.done:after,.step.at:before{background:var(--orange);}
.step .dot{position:relative;z-index:1;width:26px;height:26px;border-radius:50%;margin:0 auto 7px;
  display:flex;align-items:center;justify-content:center;font-size:11.5px;font-weight:700;
  background:#fff;border:2px solid var(--border);color:var(--ink-soft);}
.step.done .dot{background:var(--orange);border-color:var(--orange);color:#fff;}
.step.at .dot{border-color:var(--orange);color:var(--orange);box-shadow:0 0 0 4px #FCEFE3;}
.step .lb{font-size:11px;line-height:1.35;color:var(--ink-soft);}
.step.at .lb{color:var(--ink);font-weight:600;}
.step .lb .sd{font-size:10.5px;color:var(--orange);margin-top:2px;}

/* A divider inside a card, where one card carries two things that belong
   together and want separating — a contravention and what was undertaken
   about it, a determination and the member's election on it. */
hr.divider{border:none;border-top:1px solid var(--border);margin:16px 0;}

@media(max-width:620px){
  .step{min-width:96px;}
  .steps{padding-bottom:8px;}
}

/* Round 2026-10-12. The member screen gained two tables that carry a running
   build-up rather than a flat list, so a row can be a sub-total. The portal had
   no style for one, and a sub-total that reads like every other row is not a
   sub-total. */
.dt tr.total td{font-weight:700;border-top:2px solid var(--border);}
