@font-face{font-family:"IBM Plex Sans";font-weight:400;font-display:swap;src:url("/static/fonts/ibm-plex-sans-latin-400.woff2") format("woff2")}
@font-face{font-family:"IBM Plex Sans";font-weight:600;font-display:swap;src:url("/static/fonts/ibm-plex-sans-latin-600.woff2") format("woff2")}
@font-face{font-family:"Spectral";font-weight:400;font-display:swap;src:url("/static/fonts/spectral-latin-400.woff2") format("woff2")}
/* Every colour comes from the theme file (ui/static/themes/), light and dark together, and never from
   this sheet. These are this sheet's own names for the theme's tokens. */
:root{
  --panel:var(--surface); --card:var(--surface); --panel-2:var(--surface-2); --muted:var(--ink-2);
  --hue-money:var(--money); --hue-term:var(--dates); --hue-property:var(--property);
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{background:var(--bg);color:var(--ink);font-family:"IBM Plex Sans",system-ui,-apple-system,"Segoe UI",sans-serif;font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
a{color:var(--accent)}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.num{font-variant-numeric:tabular-nums lining-nums}

/* ---------- stage and page frame ---------- */
.stage{min-height:100vh;display:block;padding:0}
.phone{width:100%;height:100dvh;height:100vh;background:var(--bg);display:flex;flex-direction:column;position:relative;overflow:hidden}
@supports (height:100dvh){ .phone{height:100dvh} }
.screen{display:flex;flex:1;flex-direction:column;overflow:hidden}
/* Reading width, mobile first: one fluid column that fills the window, its text
   held to 640px (about 77 characters of the 16px body face) and centred once the
   window is wider. --col is the side padding that does it; from 900px it is
   redefined below for the wide layout. No text on any screen is set under 16px
   (the body's size): the smallest rule here is 16px, and what sets a label apart
   from its value is weight and colour, never a smaller size. */
.topbar,.scroll,.phonehead{--col:max(18px,calc((100% - 640px) / 2))}
.scroll{flex:1;overflow-y:auto;padding:0 var(--col) 24px}
.topbar{display:flex;align-items:center;gap:10px;padding:22px var(--col) 12px}
.topbar h2{font-size:25px;line-height:1.18;font-weight:700;letter-spacing:-.02em;margin:0;flex:1;text-wrap:balance}
/* The bar below 900px draws the first four items of the person's menu and, where the menu has
   more, a More button, in equal columns, so the bar never scrolls sideways; a label that does not
   fit its column wraps. The items after the fourth are in the side list too (.extra, hidden below
   900px) and in the More sheet, which the button opens. What the side menu also holds (Account,
   the theme switch, Sign out) is in .desk, which is shown from 900px only; below it the header
   has them. */
.tabbar{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);align-items:stretch;border-top:1px solid var(--line);padding:6px 0 12px;background:var(--surface)}
/* Below 900px a tab has no side padding: with a More button the bar is five columns, 64px each on
   a 320px phone, and a label that does not fit one breaks inside its word rather than widen the page. */
@media (max-width:899.98px){.tabbar>.nav{padding:6px 0}}
@media (max-width:899.98px){.tabbar>.nav.extra{display:none}}
.more-btn{border:0;background:transparent;font-family:inherit;cursor:pointer}
.tabbar .brand{display:none}
.tabbar .desk{display:none}
.nav{display:flex;flex:1 0 auto;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;min-height:52px;padding:6px 2px;border-radius:10px;font-size:16px;font-weight:600;line-height:1.2;color:var(--ink-2);text-decoration:none;text-align:center;overflow-wrap:anywhere}
.nav svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.nav.on{color:var(--accent);background:var(--accent-tint)}
.nav:hover{background:var(--surface-2)}
.tabbar form{display:flex;margin:0;flex:1 0 auto}
.tabbar form .nav{flex:1}
.tabbar .theme{display:flex;align-items:center;gap:2px;flex:1 0 auto;margin:0}
.tabbar .theme .nav{flex:1 0 auto;min-height:44px;padding:4px 8px}
.tabbar .theme .nav[aria-pressed=true]{color:var(--accent);background:var(--accent-tint)}
.brand{display:flex;align-items:center;gap:10px;font-weight:600;font-size:18px;padding:4px 10px 16px}
.logo{width:28px;height:28px;border-radius:8px;background:var(--accent);color:var(--accent-ink);display:flex;align-items:center;justify-content:center;font-size:16px;font-weight:600}

/* ---------- wide: from 900px, a page with a sidebar ----------
   Mobile first: everything above is the one fluid column, which fills the window
   at any width below 900px. From 900px the tab bar becomes a sidebar on the left,
   and the topbar and the scrolling stack share one centred reading column. The
   markup is the same. */
@media (min-width:900px){
  .screen{display:grid;grid-template-columns:232px minmax(0,1fr);grid-template-rows:auto auto minmax(0,1fr)}
  .tabbar{grid-column:1;grid-row:1/4;order:-1;display:flex;flex-direction:column;align-items:stretch;gap:4px;border-top:0;border-right:1px solid var(--line);padding:20px 14px;overflow-x:visible;overflow-y:auto}
  .tabbar .brand{display:flex}
  .tabbar .desk{display:flex;flex-direction:column;gap:4px;margin-top:auto}
  .tabbar .more-btn{display:none}
  .nav{flex:none;flex-direction:row;justify-content:flex-start;gap:10px;min-height:44px;padding:0 10px;text-align:left}
  .tabbar form{flex:none}
  .tabbar .theme{flex:none;padding:0 0 0 0}
  .tabbar .theme .nav{flex:1;justify-content:center;padding:0 6px}
  .phonehead,.topbar,.scroll{grid-column:2;--col:max(32px,calc((100% - 760px) / 2))}
  .phonehead{grid-row:1;padding:24px var(--col) 0;background:transparent;border-bottom:0}
  .phonehead .logo,.phonehead .themebtn,.phonehead .more{display:none}
  .topbar{grid-row:2;padding:24px var(--col) 16px}
  .topbar h2{font-size:30px}
  .scroll{grid-row:3;padding:0 var(--col) 48px}
}

/* ---------- a button in a stack keeps its own width from 676px ----------
   Below 676px a button in a stack fills the column, which is the phone design.
   From 676px it is its own width, with room beside the label. 676px is the
   owner's ruling (I93, option b), and it is not the 900px line the sidebar sits on. */
@media (min-width:676px){
  .stack>.pill,.stack>.btn.primary{align-self:flex-start;padding-inline:32px}
}

/* ---------- components ---------- */
.card{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:16px 18px;box-shadow:var(--shadow)}
.stack{display:flex;flex-direction:column;gap:12px}
/* A child of the stack keeps its content height: the stack is a column flex box of fixed height (.scroll.stack), and a child with overflow:hidden (a .part) would otherwise be shrunk to a sliver instead of the screen scrolling. */
.stack>*{flex:none}
.row{display:flex;align-items:center;gap:10px}
.pill{display:inline-flex;align-items:center;gap:6px;font-size:16px;font-weight:600;padding:9px 16px;border-radius:999px;background:var(--accent);color:var(--accent-ink);white-space:nowrap}
.btn.primary{display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:16px;font-weight:600;padding:9px 16px;border-radius:999px;background:var(--accent);color:var(--accent-ink);white-space:nowrap}
.h3{font-size:16px;font-weight:600;letter-spacing:-.01em;margin:0 0 10px}
.small{font-size:16px;color:var(--muted)}
.test-label{margin:0;padding:6px 12px;border:1px dashed var(--ink);border-radius:9px;font-size:16px;font-weight:600;color:var(--ink)}
.disclaimer{font-size:16px;color:var(--ink);line-height:1.5;padding:8px 2px 0;margin:0}
.list{display:flex;flex-direction:column;gap:8px;margin:0;padding:0;list-style:none}
.icon{width:36px;height:36px;border-radius:10px;background:var(--panel-2);display:grid;place-items:center;flex:none}
.icon svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.tapable{display:flex;align-items:center;gap:12px;width:100%;text-align:left}
/* The chooser is one line: "Lease N" and the file names stay on it, and a name too long
   for the line is cut with an ellipsis rather than wrapped onto a second line. */
/* The chooser is a details element: its summary is the button and its list is the menu. Every
   lease link in the list is one line: "Lease N" and the file names stay on it, and a name too long
   for the line is cut with an ellipsis rather than wrapped onto a second line. */
.top{display:flex;flex-wrap:wrap;align-items:center;gap:12px 16px;position:relative;margin-top:18px}
.top details{position:relative}
.chooser{display:flex;align-items:center;gap:10px;min-height:44px;padding:0 14px;border:1px solid var(--line-2);border-radius:12px;background:var(--surface);color:var(--ink);cursor:pointer;list-style:none;font-weight:600}
.chooser::-webkit-details-marker{display:none}
.chooser svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.badge{font-size:16px;font-weight:600;border-radius:999px;padding:0 10px;background:var(--surface-2);color:var(--ink-2)}
.menu{position:absolute;top:52px;left:0;z-index:5;min-width:min(320px,calc(100vw - 36px));max-width:calc(100vw - 36px);background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);padding:6px;display:flex;flex-direction:column}
.menu .list{gap:0}
.switcher a{display:flex;flex-wrap:nowrap;align-items:baseline;gap:2px 8px;min-height:44px;box-sizing:border-box;padding:10px 12px;border-radius:8px;color:var(--ink);text-decoration:none;font-size:16px;font-weight:600;white-space:nowrap}
.switcher a:hover{background:var(--surface-2)}
.switcher a .small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.switcher a[aria-current]{background:var(--accent-tint);color:var(--accent)}
.switcher a[aria-current] .small{color:inherit}
.switcher a.manage{border-top:1px solid var(--line);margin-top:4px;border-radius:0 0 8px 8px;color:var(--accent)}
.promise{display:flex;align-items:center;gap:8px;font-size:16px;color:var(--ink-2);background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:6px 14px;margin:0;width:fit-content;max-width:100%}
.promise svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
[data-block="time-left"] .headline{font-size:19px;font-weight:600;letter-spacing:-.02em;line-height:1.2;overflow-wrap:anywhere}
/* A value is drawn at the body's size and weight; its label carries the weight. */
[data-block="summary-line"] .name{font-size:16px;font-weight:600;color:var(--ink-2);line-height:1.3}
[data-block="summary-line"] .headline{font-size:16px;font-weight:400;line-height:1.4;overflow-wrap:anywhere}
[data-block="building-note"]{font-size:16px;color:var(--ink-2);line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}
.docs{margin:0;padding:0;list-style:none}
.docs li{font-size:16px;color:var(--ink-2);overflow-wrap:anywhere}
.check{align-items:flex-start;gap:10px;font-size:16px;line-height:1.4}
.check input{margin-top:2px;flex:none}
.form-file{width:100%;font:inherit;font-size:16px;color:var(--ink)}
.lead{margin:0;font-size:16px;line-height:1.5;color:var(--ink-2);max-width:85ch}
/* The key picker: a labelled drop area around the file input, whose own button wears the pill's tokens. A file input takes a drop on itself and nowhere else without script, so the area is the label that opens it, not a drop target. */
.stack label.drop-area{align-items:center;gap:8px;padding:20px;border:2px dashed var(--line-2);border-radius:16px;background:var(--surface);text-align:center;cursor:pointer}
.drop-area .drop-name{font-weight:600}
.drop-area:focus-within{outline:3px solid var(--accent);outline-offset:3px}
.drop-area input[type=file]{width:auto;max-width:100%;font-weight:400}
.drop-area input[type=file]::file-selector-button{margin-right:12px;padding:9px 16px;border:0;border-radius:999px;background:var(--accent);color:var(--accent-ink);font:inherit;font-size:16px;font-weight:600;cursor:pointer}
.form-text{width:100%;font:inherit;font-size:16px;padding:11px 13px;color:var(--ink);background:var(--card);border:1px solid var(--line-2);border-radius:9px}
.note{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;border-radius:12px;background:var(--panel-2)}
.note .dot{width:8px;height:8px;border-radius:50%;background:var(--muted);margin-top:7px;flex:none}
.note b{display:block;font-size:16px}
.stack label{display:flex;flex-direction:column;gap:4px;font-size:16px;font-weight:600}
.stack label .form-text{font-weight:400}
button.quiet{font-size:16px;font-weight:600;color:var(--accent);text-decoration:underline}

/* ---------- a term ----------
   Hue means CATEGORY and nothing else: a card names its category by a class
   and a term the lease states draws that hue as its left edge. A term the app
   holds back, and a row stating no term, draw no element that uses a hue, so
   they are quieter by what they are made of and not by a rule that selects
   them. The stylesheet may not name a row's treatment or its field. */
.hue-money{--hue:var(--hue-money)}
.hue-term{--hue:var(--hue-term)}
.hue-property{--hue:var(--hue-property)}
.term .name{font-size:16px;font-weight:600;color:var(--ink-2);line-height:1.3}
.term .small{margin-top:3px}
.term .unread{font-size:16px;color:var(--ink-2);margin-top:2px}
details.stated{background:var(--card);border:1px solid var(--line);border-left:3px solid var(--hue);border-radius:11px;overflow:hidden}
details.stated[open]{border-color:var(--line-2);border-left-color:var(--hue)}
summary.head{list-style:none;cursor:pointer;padding:12px 14px;display:flex;flex-wrap:wrap;align-items:flex-end;gap:2px 10px}
summary.head::-webkit-details-marker{display:none}
summary.head .name{flex:1 0 100%}
summary.head .headline{flex:1;min-width:0;font-size:16px;font-weight:400;line-height:1.4;overflow-wrap:anywhere;font-variant-numeric:tabular-nums lining-nums}
summary.head .chev{flex:none;width:8px;height:8px;margin:0 4px 8px auto;border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);transform:rotate(45deg)}
details[open] .chev{transform:rotate(-135deg)}
.clause{font-family:"Spectral",Georgia,"Times New Roman",serif;font-size:16px;line-height:1.55;color:var(--ink);margin-top:12px;padding:12px 16px;background:var(--doc);border:1px solid var(--doc-line);border-radius:10px;white-space:pre-wrap;overflow-wrap:anywhere}
.clause .ref{font-family:"IBM Plex Sans",system-ui,sans-serif;font-size:16px;font-weight:600;color:var(--muted);display:block;margin-bottom:4px}
.source{margin-top:10px;display:flex;flex-wrap:wrap;gap:4px 8px}
.answer{padding:14px 16px}
.answer .sentence p{margin:0;font-size:16px;line-height:1.5;overflow-wrap:anywhere}
.answer .sentence + .sentence{border-top:1px solid var(--line);padding-top:8px}
.answer a,.back{color:var(--accent);font-weight:600}
textarea.form-text{resize:vertical;min-height:4.5em}
.answer .quote{font-size:16px;line-height:1.5;color:var(--ink-2);margin-top:8px;padding:10px 14px;background:var(--doc);border:1px solid var(--doc-line);border-radius:10px;overflow-wrap:anywhere}

/* ---------- reading text is held to about 90 characters a line ----------
   On a wide window the column is 760px, which at 16px is about 90 characters; the
   ch cap keeps a text block to that however the column or the type is changed. */
.clause,.disclaimer,.answer .sentence p,.answer .quote,[data-block="building-note"],.term .unread{max-width:85ch}

/* ---------- the redesign canvas's components (docs/mockups/2026-11-30-redesign) ----------
   Part colours name a part of the lease and never mean good or bad. Every colour is a
   theme token; no text is under the body's 16px. */
.lbl{display:flex;align-items:center;gap:8px;font-size:16px;font-weight:600;letter-spacing:.02em}
.dot{width:10px;height:10px;border-radius:50%;flex:none}
.p-dates{color:var(--dates)} .bg-dates{background:var(--dates-t);color:var(--dates)} .d-dates{background:var(--dates)}
.p-money{color:var(--money)} .bg-money{background:var(--money-t);color:var(--money)} .d-money{background:var(--money)}
.p-property{color:var(--property)} .bg-property{background:var(--property-t);color:var(--property)} .d-property{background:var(--property)}
.p-rules{color:var(--rules)} .bg-rules{background:var(--rules-t);color:var(--rules)} .d-rules{background:var(--rules)}
.p-ending{color:var(--ending)} .bg-ending{background:var(--ending-t);color:var(--ending)} .d-ending{background:var(--ending)}
.h2{font-size:20px;line-height:1.3;font-weight:600;margin:0}
.muted{color:var(--ink-2)}
.src{font-size:16px;color:var(--ink-2)}
.src a{font-weight:600}
.grid{display:grid;gap:12px}
.g3{grid-template-columns:repeat(2,minmax(0,1fr))}
.tile{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px 14px;display:flex;flex-direction:column;gap:6px;min-width:0}
.tile .src{overflow-wrap:anywhere}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;border-radius:999px;font-weight:600;font-size:16px;text-decoration:none}
.chip:hover{text-decoration:underline}
@media (min-width:676px){.g3{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}}
.note.bg-property{flex-direction:column;align-items:stretch;gap:6px;color:var(--ink);border:1px solid var(--line)}
.note.bg-property .lbl{color:var(--property)}
.note.bg-property .lbl svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}

/* the header: logo, chooser, one theme button, the account menu (Phone board); from 900px the
   chooser alone, above the title */
.phonehead{position:relative;z-index:6;display:flex;align-items:center;gap:10px;padding:10px var(--col);background:var(--surface);border-bottom:1px solid var(--line)}
.phonehead .top{flex:1;min-width:0;margin:0;flex-wrap:nowrap;gap:0}
.phonehead .top details{flex:1;min-width:0}
.phonehead .chooser{width:100%;min-width:0}
.phonehead .chooser [data-block="lease-name"]{flex:1;min-width:0;display:flex;align-items:center;gap:8px;overflow:hidden;white-space:nowrap}
.phonehead .chooser [data-block="lease-name"] strong:last-child{overflow:hidden;text-overflow:ellipsis}
.themebtn,.more{margin:0;flex:none}
/* The theme button and the account menu sit at the header's right edge on every screen,
   with a chooser or without one, so the account menu, which opens leftwards from its
   button's right edge, stays inside the window. */
.phonehead .themebtn{margin-left:auto}
/* Below 900px the chooser's list opens under the whole header, from column edge to column
   edge, rather than from the chooser's own left edge, which sits after the logo and would
   push a list wide enough for a lease name past the right edge of a narrow phone. */
@media (max-width:899.98px){
  .phonehead .top,.phonehead .top details{position:static}
  .phonehead .switcher .menu{top:100%;left:var(--col);right:var(--col);min-width:0;max-width:none}
}
.themebtn button,.more summary{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:10px;list-style:none;color:var(--accent);cursor:pointer}
.more summary::-webkit-details-marker{display:none}
.themebtn button:hover,.more summary:hover{background:var(--surface-2)}
.themebtn svg,.more summary svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.more{position:relative}
.more .menu{left:auto;right:0;top:50px;min-width:200px;max-width:calc(100vw - 36px)}
.more .menu form{margin:0}
.more .menu a,.more .menu button{display:flex;align-items:center;width:100%;min-height:44px;padding:0 12px;border-radius:8px;color:var(--ink);font-size:16px;font-weight:600;text-decoration:none;text-align:left}
.more .menu a:hover,.more .menu button:hover{background:var(--surface-2)}

/* a part: its coloured head and its rows (MyLease board). The row is a name, a value and the
   toggle's arrow; the source and the clause open under it. */
.part{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:16px;overflow:hidden}
.parthead{display:flex;align-items:center;gap:10px;padding:14px 20px}
.rows{gap:0}
.rows>li.term,.rows>li.fold{border-top:1px solid var(--line)}
.part .rows>li:first-child{border-top:0}
.rows .row{display:grid;grid-template-columns:minmax(0,1fr);gap:4px 20px;align-items:baseline;padding:14px 20px}
@media (min-width:676px){.rows .row{grid-template-columns:minmax(140px,1fr) minmax(0,2fr) auto}}
details.stated{background:none;border:0;border-radius:0}
details.stated[open]{border:0}
.rows summary.head{display:grid}
.rows summary.head .name{flex:none}
.rows summary.head .chev{margin:0 4px 0 auto;align-self:center}
.rows .more{padding:0 20px 14px}
.rows .more .clause{margin-top:0}
.rows li.term>.source{padding:0 20px 14px}
.held{display:inline-flex;align-items:center;gap:6px;font-size:16px;font-weight:600;color:var(--ink-2);border:1px dashed var(--line-2);border-radius:999px;padding:2px 10px}
.rows .unread{margin:0}
.rows li.fold{display:block;padding:0;background:var(--surface-2);color:var(--ink-2)}
.rows li.fold summary{padding:12px 20px;cursor:pointer}
.rows li.fold .list{padding:0 20px 12px}
.rows li.fold .small{padding:0 20px 12px}
.card>.rows{margin-top:6px}
.card>.rows .row{padding-left:0;padding-right:0}
.card>.rows .more{padding-left:0;padding-right:0}
.items{padding:6px}
.item{display:flex;align-items:center;gap:12px;min-height:44px;padding:8px 12px;border-radius:10px;color:var(--ink);text-decoration:none;font-weight:600}
.item:hover{background:var(--surface-2)}
.earlier{display:flex;flex-direction:column;gap:8px}
.asked .h2{overflow-wrap:anywhere}

/* Your leases (Leases board): the upload in a dashed drop box, then one card for each lease. */
.drop{border:2px dashed var(--line-2);border-radius:16px;padding:20px;display:flex;flex-direction:column;align-items:center;gap:10px;text-align:center;background:var(--surface)}
.drop .dropicon{width:32px;height:32px;stroke:var(--accent);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.drop h3{margin:0}
.drop .upload{width:100%;max-width:420px;align-items:stretch;text-align:left}
.drop .stack>.pill{align-self:center}
.listed{display:flex;flex-direction:column;gap:12px;margin-top:24px}
.listed h3{margin:0}
.lease-card{display:flex;flex-direction:column;gap:14px}
.lease-head{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px}
.lease-head .h2{min-width:0;overflow-wrap:anywhere}
.lease-dates{overflow-wrap:anywhere}
@media (min-width:676px){.lease-dates{margin-left:auto}}
.lease-actions{display:flex;flex-wrap:wrap;gap:10px}
a.btn.open{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 20px;border:1px solid var(--line-2);border-radius:999px;background:var(--surface);color:var(--ink);font-weight:600;text-decoration:none}
a.btn.open:hover{background:var(--surface-2)}

/* ---------- the staff pages (Held terms, one held term, Properties, Members, Release) ----------
   The same frame and the same menu; the .staff-screen class marks a staff page. Every colour is a theme
   token and no text is under the body's 16px. */
.tabbar .brand .badge{margin-left:auto}
.staff-screen .badge{display:inline-flex;align-items:center}
.tbl{width:100%;border-collapse:collapse;font-size:16px}
.tbl th,.tbl td{text-align:left;vertical-align:top;padding:10px 12px;border-top:1px solid var(--line);overflow-wrap:break-word}
.tbl thead th{border-top:0;color:var(--ink-2);font-weight:600}
.tbl a{font-weight:600}
/* Below 676px a row is a block and each cell names itself, so whole words never widen the page. */
@media (max-width:675.98px){
  .tbl thead{display:none}
  .tbl,.tbl tbody,.tbl tr,.tbl td{display:block}
  .tbl tr{padding:8px 0;border-top:1px solid var(--line)}
  .tbl tr:first-child{border-top:0}
  .tbl td{border-top:0;padding:4px 12px}
  .tbl td[data-label]::before{content:attr(data-label) ": ";font-weight:600;color:var(--ink-2)}
}
.facts{display:grid;grid-template-columns:minmax(0,max-content) minmax(0,1fr);gap:8px 16px;margin:0}
.facts dt{font-weight:600;color:var(--ink-2)}
.facts dd{margin:0;overflow-wrap:anywhere}
.staff-screen .empty{color:var(--ink-2)}
.staff-screen .back{display:inline-flex;align-items:center;min-height:44px}
article[data-lease]{display:flex;flex-direction:column;gap:12px}

/* ---------- the sign-in board (SignIn board): one card in the middle of the page, no menu ----------
   Drawn for the pages of a visitor with no session, the error page and the acknowledgement page
   (templates/screens/board.html). Nothing here reaches a screen that wears the frame. */
.boardpage{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px 18px}
.board{width:100%;max-width:440px;padding:32px;gap:18px}
.boardhead{display:flex;align-items:center;gap:12px}
.boardhead form{margin:0;flex:none}
.boardhead .themebtn{margin-left:auto}
.board h1{font-size:25px;line-height:1.18;font-weight:700;letter-spacing:-.02em;margin:0;text-wrap:balance}
.board .sub{margin:0;color:var(--ink-2)}
.board p{margin:0}
.board>form{display:flex;flex-direction:column;gap:12px}
.board>form>button{display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:16px;font-weight:600;padding:9px 16px;border-radius:999px;background:var(--accent);color:var(--accent-ink);white-space:nowrap}
.stack label.check{flex-direction:row}

/* ---------- Notes, Account, the answer keys and a Lab run, on a .staff-screen page ----------
   The same frame and controls as the staff pages above; every colour is a theme token. */
.staff-screen select{width:100%;font:inherit;font-size:16px;padding:11px 13px;color:var(--ink);background:var(--card);border:1px solid var(--line-2);border-radius:9px}
.staff-screen pre{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:16px;line-height:1.5}
.key-text,.key-notes{padding:12px 16px;background:var(--doc);border:1px solid var(--doc-line);border-radius:10px}
.staff-screen .list>li{overflow-wrap:anywhere}
.staff-screen .list>li.card{padding:16px 18px}
.staff-screen .list>li.lab-run{padding:10px 0;border-top:1px solid var(--line)}
.staff-screen .list>li.lab-run:first-child{border-top:0}
.staff-screen .list>li.lab-run p{margin:0}
.staff-screen .list.keys>li{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px}
.staff-screen section[data-score]{display:flex;flex-direction:column;gap:12px;background:var(--card);border:1px solid var(--line);border-radius:16px;padding:16px 18px;box-shadow:var(--shadow)}
.staff-screen section[data-score]>*{flex:none}
.staff-screen section[data-score] p,.staff-screen section[data-score] ul{margin:0}
.staff-screen h3.h3{margin:0}
.staff-screen .stack>form{margin:0}

/* The in-app confirm dialog (parts/confirm.html) and the hint (parts/hint.html): each a popover opened by the button
   that names it. Every rule that places or paints it sits inside @supports, and
   none sets display on [popover], which would keep it open: a browser that has no
   popover draws it in place under its button, question and form as plain content. */
@supports selector(:popover-open){
  .confirm{width:min(420px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:20px;border:1px solid var(--line-2);border-radius:16px;background:var(--surface);color:var(--ink);box-shadow:var(--shadow)}
  .confirm::backdrop{background:var(--scrim);opacity:.6}
  .confirm>p{margin:0}
  .confirm .confirm-q{font-size:18px;font-weight:600;letter-spacing:-.01em;margin-bottom:6px}
  .confirm>.btn,.confirm>form{display:inline-block;margin:16px 12px 0 0;vertical-align:middle}
  .confirm>.btn.quiet{padding:9px 4px}
  .confirm button:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
  .hint{display:inline-flex;align-items:center;justify-content:center;flex:none;width:32px;height:32px;padding:0;border:1px solid var(--line-2);border-radius:50%;background:var(--surface);color:var(--accent);font-size:16px;font-weight:600;line-height:1}
  .hint:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
  .hint-text{width:min(360px,calc(100% - 32px));padding:14px 16px;border:1px solid var(--line-2);border-radius:12px;background:var(--surface);color:var(--ink);box-shadow:var(--shadow);font-size:16px;line-height:1.45}
}

/* The More sheet (the frame's menu, below 900px): a popover opened by the More button, holding the items
   the bar leaves out. The same rule as the dialog's: every rule that places or paints it sits inside
   @supports, and none sets display on [popover]; the list inside it takes the layout. The button is
   hidden from 900px, where the side menu draws every item and there is nothing to open. */
@supports selector(:popover-open){
  .more-sheet{position:fixed;inset:auto 12px 84px 12px;margin:0;padding:8px;border:1px solid var(--line-2);border-radius:14px;background:var(--surface);color:var(--ink);box-shadow:var(--shadow)}
  .more-sheet .more-list{display:flex;flex-direction:column;gap:2px}
  .more-sheet .more-list .nav{flex-direction:row;justify-content:flex-start;gap:10px;min-height:44px;padding:0 10px;text-align:left}
}
