/* LitArbi Server — the browser pages. Light and dark follow the system. */
:root {
  --bg: #f5f5f7; --surface: #ffffff; --text: #1d1d1f; --muted: #6e6e73; --border: #e3e3e8;
  --primary: #0a66ff; --primary-text: #ffffff; --tint: rgba(10, 102, 255, .10);
  --ok: #137333; --ok-bg: #e6f4ea; --err: #b3261e; --err-bg: #fce8e6; --warn: #8a5300; --warn-bg: #fff4e0;
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e10; --surface: #1a1a1d; --text: #f2f2f5; --muted: #a1a1a8; --border: #2c2c31;
    --primary: #3d8bff; --tint: rgba(61, 139, 255, .16);
    --ok: #81c995; --ok-bg: #16301f; --err: #f28b82; --err-bg: #3a1b1a; --warn: #fdd663; --warn-bg: #3a2e10;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.6rem; margin: .2rem 0 1rem; letter-spacing: -.01em; }
h2 { font-size: 1.05rem; margin: 1.2rem 0 .6rem; }
code.pw { display: inline-block; padding: .2rem .5rem; border-radius: 6px; background: var(--tint); font: 600 .95rem ui-monospace, SFMono-Regular, Menlo, monospace; user-select: all; word-break: break-all; }

.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .7rem 1.25rem;
  background: var(--surface); border-bottom: 1px solid var(--border); }
.brand { display: flex; align-items: center; gap: .55rem; color: var(--text); font-weight: 700; }
.brand:hover { text-decoration: none; }
.mark { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg, #5c45c7, #785cdb 55%, #4d61db); color: #fff; font-size: .85rem; }
.firm { font-weight: 500; color: var(--muted); padding-left: .55rem; margin-left: .1rem; border-left: 1px solid var(--border); }
.top-nav { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; font-size: .92rem; }
.top-nav a { color: var(--muted); font-weight: 500; }
.top-nav a:hover { color: var(--text); text-decoration: none; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 1.75rem 1.25rem 3rem; }
.foot { text-align: center; color: var(--muted); font-size: .8rem; padding: 1.5rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin: 1rem 0; }
.card h2:first-child, .card h1:first-child { margin-top: 0; }
.narrow { max-width: 440px; margin: 2.5rem auto; }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 820px) { .grid2 { grid-template-columns: 1fr 1fr; } .grid2 .card { margin: 0; } }
.head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.eyebrow { margin: 0; color: var(--muted); font-size: .85rem; font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.flash, .ok, .error, .warn { border-radius: 8px; padding: .65rem .9rem; margin: 0 0 1rem; }
.ok { background: var(--ok-bg); color: var(--ok); }
.error { background: var(--err-bg); color: var(--err); }
.warn { background: var(--warn-bg); color: var(--warn); }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.checks { list-style: none; padding: 0; margin: 0; }
ul.checks li { padding: .15rem 0; }
ul.checks li.ok { background: none; padding: .15rem 0; margin: 0; }
ul.checks li.bad { color: var(--err); }

label { display: block; margin: .55rem 0; font-size: .88rem; font-weight: 600; color: var(--muted); }
label.check { display: flex; align-items: center; gap: .45rem; font-weight: 500; color: var(--text); }
input, select { font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: .5rem .65rem; }
label input, label select { display: block; width: 100%; margin-top: .25rem; font-weight: 400; }
label.check input { width: auto; margin: 0; }
input:focus, select:focus { outline: 2px solid var(--tint); border-color: var(--primary); }
button, .button { font: inherit; font-weight: 600; cursor: pointer; border-radius: 8px; padding: .5rem .95rem; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); display: inline-block; }
button:hover, .button:hover { border-color: var(--primary); text-decoration: none; }
button.primary, .button.primary { background: var(--primary); color: var(--primary-text); border-color: var(--primary); margin-top: .6rem; }
button.danger { color: var(--err); }
button.link { background: none; border: 0; padding: 0; color: var(--muted); font-weight: 500; }
button.link:hover { color: var(--text); }
form.inline { display: inline; }
form.row, div.row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: flex-end; }
div.row label { flex: 1 1 12rem; }
div.row label.short { flex: 0 0 7rem; }
form.row input { flex: 1 1 12rem; }
form.row button { margin-top: 0; }
form.spaced { margin-top: .8rem; }
.search { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin: 1rem 0 .3rem; }
.search input[type=search] { flex: 1 1 18rem; }
.small-in { width: 12rem; padding: .3rem .5rem; font-size: .85rem; }

table.t { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin: .6rem 0 1rem; }
table.t th, table.t td { text-align: left; vertical-align: top; padding: .55rem .75rem; border-bottom: 1px solid var(--border); }
table.t thead th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--bg); }
table.t tr:last-child td, table.t tr:last-child th { border-bottom: 0; }
table.t.small td { font-size: .85rem; }
table.kv th { width: 16rem; color: var(--muted); font-weight: 600; }
tr.off td { color: var(--muted); }
.exhibits td.no { font-weight: 700; white-space: nowrap; }
.att { font-size: .85rem; color: var(--muted); margin-top: .2rem; }
.att.note { font-style: italic; }
nav.tabs { display: flex; gap: .3rem; flex-wrap: wrap; margin: 0 0 1rem; border-bottom: 1px solid var(--border); }
nav.tabs a { padding: .45rem .8rem; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; }
nav.tabs a.on { color: var(--text); border-bottom-color: var(--primary); }
nav.tabs a:hover { text-decoration: none; color: var(--text); }

@media (max-width: 700px) {
  .wrap { padding: 1.1rem .9rem 2rem; }
  table.t { display: block; overflow-x: auto; }
  .firm { display: none; }
}

/* two-step sign-in */
.qr { background: #fff; display: inline-block; padding: .4rem; border-radius: 8px; margin: .2rem 0 .6rem; }
.qr svg { display: block; width: 220px; height: 220px; }
pre.codes { font: 600 1rem/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg-alt, rgba(127,127,127,.08)); padding: .8rem 1rem; border-radius: 8px; columns: 2; }

/* exhibits in the browser: bundles, the exhibit page, downloads, uploads; phones */
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .2rem 0 .8rem; }
.chip { display: inline-block; padding: .2rem .7rem; border-radius: 999px; border: 1px solid var(--line, rgba(127,127,127,.3)); text-decoration: none; font-size: .9rem; }
.chip.on { background: var(--accent, #2f5bd3); color: #fff; border-color: transparent; }
.chip.on .muted { color: rgba(255,255,255,.8); }
.chip.ext { padding: .05rem .5rem; font-size: .75rem; background: rgba(214,137,16,.14); border-color: rgba(214,137,16,.45); color: inherit; vertical-align: middle; }
.actions { display: flex; gap: .5rem; flex-wrap: wrap; align-items: flex-start; }
.listhead { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.crumbs { margin: 0 0 .3rem; font-size: .9rem; }
.exhibit { max-width: 60rem; }
ul.att li { padding: .25rem 0; }
.preview { margin: 1rem 0; border: 1px solid var(--line, rgba(127,127,127,.3)); border-radius: 8px; overflow: hidden; background: #fff; }
.preview iframe { display: block; width: 100%; height: 80vh; border: 0; }
audio, video { width: 100%; max-width: 48rem; margin: 1rem 0; }
#progress li { padding: .3rem 0; }
@media (max-width: 700px) {
  .head { flex-direction: column; align-items: stretch; gap: .6rem; }
  table.exhibits thead { display: none; }
  table.exhibits, table.exhibits tbody, table.exhibits tr, table.exhibits td { display: block; width: 100%; }
  table.exhibits tr { border: 1px solid var(--line, rgba(127,127,127,.3)); border-radius: 10px; padding: .5rem .75rem; margin: 0 0 .6rem; }
  table.exhibits td { border: 0; padding: .15rem 0; }
  table.exhibits td[data-l]:not(:empty)::before { content: attr(data-l) ": "; color: var(--muted, #888); font-size: .85em; }
  table.exhibits td.no:empty { display: none; }
  .preview iframe { height: 70vh; }
  .search { flex-wrap: wrap; }
}

/* ================================================================ a matter, laid out like LitArbi itself */
:root {
  --la-top: #f6f6f8; --la-ribbon: #f1f1f4; --la-side: #ececef; --la-list: #ffffff; --la-stripe: #f6f6f8; --la-hover: #efeff3;
  --la-sel: #dcdce2; --la-line: #e1e1e6; --la-field: #ffffff; --la-canvas: #e7e7eb; --la-2: #6e6e73; --la-3: #aeaeb4;
  --c-blue: #007aff; --c-green: #28a745; --c-teal: #1aa3b8; --c-orange: #f08c00; --c-red: #ff3b30; --c-indigo: #5856d6; --c-purple: #a64fd6;
  --c-pink: #e8336d; --c-brown: #9a7652; --c-yellow: #f5b800; --c-gray: #8e8e93; --c-mint: #00b3a7; --c-magenta: #cc33cc;
}
@media (prefers-color-scheme: dark) {
  :root { --la-top: #232326; --la-ribbon: #28282b; --la-side: #1f1f22; --la-list: #19191b; --la-stripe: #202023; --la-hover: #2a2a2e;
    --la-sel: #3a3a40; --la-line: #333338; --la-field: #232326; --la-canvas: #2b2b2f; --la-2: #a1a1a8; --la-3: #5c5c63;
    --c-blue: #3d8bff; --c-green: #3ecf67; --c-teal: #45c3d6; --c-indigo: #7d7aff; --c-purple: #c77dff; --c-brown: #c9a47e; --c-gray: #9a9aa0; }
}
.c-blue { color: var(--c-blue); } .c-green { color: var(--c-green); } .c-teal { color: var(--c-teal); } .c-orange { color: var(--c-orange); }
.c-red { color: var(--c-red); } .c-indigo { color: var(--c-indigo); } .c-purple { color: var(--c-purple); } .c-pink { color: var(--c-pink); }
.c-brown { color: var(--c-brown); } .c-yellow { color: var(--c-yellow); } .c-gray { color: var(--c-gray); } .c-mint { color: var(--c-mint); }
.c-magenta { color: var(--c-magenta); } .c-faint { color: var(--la-3); }
svg.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
svg.ic.big { width: 44px; height: 44px; }
.center { text-align: center; }

body.app { height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; font-size: 14px; }
body.app .bar { padding: .35rem 1rem; }
body.app .bar .mark { width: 22px; height: 22px; }
.app-main { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.app-flash { padding: .5rem 1rem 0; }
.la { flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* the tab bar */
.la-top { display: flex; align-items: center; gap: 14px; padding: 8px 16px; background: var(--la-top); }
.la-home { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--la-2); }
.la-home:hover { background: var(--la-hover); color: var(--text); }
.la-tabs { display: flex; padding: 3px; border: 1px solid var(--la-line); border-radius: 999px; background: var(--la-list); }
.la-tabs button { border: 0; background: none; border-radius: 999px; padding: .32rem 1.25rem; font-weight: 500; color: var(--la-2); }
.la-tabs button.on { background: var(--la-sel); color: var(--text); }
.la-tabs button:hover { border: 0; color: var(--text); }
.la-title { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.la-title .client { font-size: 11.5px; color: var(--la-2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.la-title .name { font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.la-top .search { margin: 0 0 0 auto; display: flex; align-items: center; gap: 8px; width: min(380px, 40vw); padding: 0 14px; border: 1px solid var(--la-line);
  border-radius: 999px; background: var(--la-list); flex-wrap: nowrap; }
.la-top .search input[type=search] { border: 0; background: none; padding: .5rem 0; flex: 1; min-width: 0; outline: none; }
.la-top .search .ic { color: var(--la-2); width: 18px; height: 18px; }

/* the ribbon */
.la-ribbon { background: var(--la-ribbon); border-top: 1px solid var(--la-line); border-bottom: 1px solid var(--la-line); padding: 6px 10px 3px; overflow-x: auto; }
.la-ribbon .tabpane { display: flex; align-items: stretch; }
.la-ribbon .tabpane[hidden] { display: none; }
.grp { display: flex; flex-direction: column; align-items: center; padding: 0 12px; border-right: 1px solid var(--la-line); }
.grp:last-child { border-right: 0; }
.grp .btns { display: flex; gap: 2px; }
.grp .gl { margin: 2px 0 1px; font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.rb { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 64px; padding: 6px 8px 4px; border-radius: 10px; border: 0;
  background: none; font: 500 12.5px/1.2 inherit; font-family: inherit; cursor: pointer; }
.rb .ic { width: 25px; height: 25px; }
a.rb:hover, button.rb:hover { background: rgba(127,127,135,.13); text-decoration: none; border: 0; }
.rb.off { color: var(--la-3); cursor: default; }
.rb.done { background: rgba(40,167,69,.15); }

/* three panes */
.la-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 250px minmax(0, 1fr) 390px; }
.la.nosidebar .la-body { grid-template-columns: 0 minmax(0, 1fr) 390px; }
.la.noinspector .la-body { grid-template-columns: 250px minmax(0, 1fr) 0; }
.la.nosidebar.noinspector .la-body { grid-template-columns: 0 minmax(0, 1fr) 0; }
.la.nosidebar .la-side, .la.noinspector .la-insp { visibility: hidden; overflow: hidden; border: 0; }

/* the sidebar */
.la-side { background: var(--la-side); border-right: 1px solid var(--la-line); display: flex; flex-direction: column; min-height: 0; }
.la-side .sources { overflow-y: auto; padding: 4px 10px 10px; flex: 1 1 auto; min-height: 0; }
.phone-src { display: none; }
.la-side .sec { margin: 14px 8px 3px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--la-2); }
.la-side .case .sec { margin-top: 10px; }
.casepick { position: relative; display: flex; align-items: center; gap: 8px; margin: 2px 0 4px; padding: 0 10px; border: 1px solid var(--la-line); border-radius: 8px;
  background: var(--la-list); color: var(--text); font-weight: 500; }
.casepick select { appearance: none; -webkit-appearance: none; border: 0; background: none; padding: .45rem 1.2rem .45rem 0; width: 100%; font-weight: 500; outline: none; margin: 0; }
.casepick .ud { position: absolute; right: 8px; pointer-events: none; color: var(--la-2); }
.casepick.one { padding: .45rem 10px; } .casepick.one span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.src { display: flex; align-items: center; gap: 9px; padding: 5px 9px; margin: 1px 0; border-radius: 7px; color: var(--text); font-size: 14.5px; }
a.src:hover { background: rgba(127,127,135,.10); text-decoration: none; }
a.src.on { background: rgba(127,127,135,.20); font-weight: 500; }
a.src .ic { width: 19px; height: 19px; }
a.src .lbl { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.src .n { color: var(--la-2); font-size: 12.5px; font-variant-numeric: tabular-nums; }
a.src.d1 { padding-left: 26px; } a.src.d2 { padding-left: 42px; } a.src.d3 { padding-left: 58px; } a.src.d4, a.src.d5 { padding-left: 74px; }
.la-side .tags { border-top: 1px solid var(--la-line); display: flex; flex-direction: column; flex: 0 1 38%; min-height: 110px; }
.taghead { display: flex; align-items: center; justify-content: space-between; padding-right: 10px; }
.taghead .clear { font-size: 12px; padding: 1px 8px; border: 1px solid var(--la-line); border-radius: 6px; background: var(--la-list); color: var(--text); }
.taglist { overflow-y: auto; padding: 2px 10px 6px; flex: 1; min-height: 0; }
a.tg { display: flex; align-items: center; gap: 9px; padding: 3px 10px; color: var(--text); border-radius: 6px; font-size: 14px; }
a.tg:hover { background: rgba(127,127,135,.10); text-decoration: none; }
a.tg .box { width: 16px; height: 16px; border-radius: 4px; background: rgba(127,127,135,.22); flex: none; position: relative; }
a.tg.on .box { background: var(--c-blue); }
a.tg.on .box::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
a.tg[hidden] { display: none; }
.tagfilter { display: flex; align-items: center; gap: 6px; margin: 6px 10px 10px; padding: 0 10px; border: 1px solid var(--la-line); border-radius: 999px; background: var(--la-list); }
.tagfilter input { border: 0; background: none; padding: .35rem 0; width: 100%; outline: none; font-size: 13px; margin: 0; }
.tagfilter .ic { color: var(--la-2); }

/* the list */
.la-list { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--la-list); }
.la-list .scroller { flex: 1; overflow: auto; min-height: 0; }
table.grid { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 14.5px; }
table.grid thead th { position: sticky; top: 0; z-index: 1; background: var(--la-list); text-align: left; font-weight: 500; font-size: 13.5px;
  padding: 9px 10px; border-bottom: 1px solid var(--la-line); white-space: nowrap; overflow: hidden; }
table.grid thead th + th { border-left: 1px solid var(--la-line); }
table.grid thead th a { color: var(--text); display: flex; align-items: center; gap: 4px; }
table.grid thead th a:hover { text-decoration: none; }
table.grid thead th.sorted { font-weight: 650; }
table.grid .arr { width: 13px; height: 13px; color: var(--la-2); }
table.grid .arr.up { transform: rotate(180deg); }
table.grid tbody td { height: 34px; padding: 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
table.grid tbody tr:nth-child(even) td { background: var(--la-stripe); }
table.grid tbody tr { cursor: default; }
table.grid tbody tr:hover td { background: var(--la-hover); }
table.grid tbody tr.sel td { background: var(--la-sel); }
table.grid th.k-star, table.grid td.k-star { width: 40px; text-align: center; padding: 0 4px 0 10px; }
table.grid td.k-star .ic { width: 17px; height: 17px; }
table.grid .k-id { width: 50px; font-variant-numeric: tabular-nums; }
table.grid .k-title { width: auto; }
table.grid .k-exhibit { width: 86px; font-weight: 500; }
table.grid .k-exhibit.inh { color: var(--muted); font-weight: 400; }      /* on record from the submission this numbering continues */
.case.numbering { margin-top: 6px; }
.case.numbering .numhint { margin: 0 0 4px 12px; font-size: 11px; color: var(--muted); }
table.grid .k-creator { width: 150px; }
table.grid .k-type { width: 88px; }
table.grid .k-date { width: 150px; }
table.grid .k-language { width: 96px; }
table.grid .k-tags { width: 160px; }
/* the columns LitArbi shows by default; more when the list is wide, fewer when it is narrow */
.la-list { container-type: inline-size; }
table.grid .k-creator, table.grid .k-language { display: none; }
@container (min-width: 1250px) { table.grid .k-creator { display: table-cell; } }
@container (min-width: 1400px) { table.grid .k-language { display: table-cell; } }
@container (max-width: 860px) { table.grid .k-tags { display: none; } }
@container (max-width: 700px) { table.grid .k-type { display: none; } }
@container (max-width: 600px) { table.grid .k-id { display: none; } table.grid .k-date { width: 120px; } }
td.k-title a { display: flex; align-items: center; gap: 8px; color: var(--text); min-width: 0; font-weight: 500; }
td.k-title a:hover { text-decoration: none; }
td.k-title .tt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
td.k-title .ic.ti { width: 17px; height: 17px; }
td.k-title .fl { width: 16px; height: 16px; }
td.k-title .att { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; color: var(--la-2); font-weight: 400; }
td.k-title .m { display: none; }
td.k-type .ic.sm { width: 15px; height: 15px; margin-right: 6px; }
.la-list .status { margin: 0; padding: 7px 16px; border-top: 1px solid var(--la-line); font-size: 13px; color: var(--la-2); background: var(--la-list); }
.la-list .none, .insp-empty, .nopreview { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; padding: 3rem 1.5rem; color: var(--la-2); }
@media (max-width: 1280px) { .la-body { grid-template-columns: 230px minmax(0, 1fr) 350px; } }

/* the inspector */
.la-insp { border-left: 1px solid var(--la-line); background: var(--la-list); display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.phone-back { display: none; }
.seg { display: flex; margin: 10px 12px 8px; border: 1px solid var(--la-line); border-radius: 8px; overflow: hidden; background: var(--la-top); }
.seg a { flex: 1; display: grid; place-items: center; padding: 5px 0; color: var(--text); }
.seg a + a { border-left: 1px solid var(--la-line); }
.seg a.on { background: var(--la-sel); }
.seg a:hover { background: var(--la-hover); }
.seg .ic { width: 18px; height: 18px; }
.docbar { display: flex; align-items: center; gap: 10px; padding: 2px 16px 8px; }
.docbar .docno { font-weight: 700; font-size: 15px; }
.docbar .kind { color: var(--la-2); font-size: 13px; font-weight: 600; }
.docbar .sp { flex: 1; }
.docbar .ic { width: 21px; height: 21px; }
.insp-body { overflow-y: auto; padding: 2px 14px 12px; flex: 0 1 auto; max-height: 52%; }
.la-insp:not(:has(.preview)) .insp-body { max-height: none; flex: 1; }
.fr { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 10px; align-items: start; margin: 5px 0; }
.fr .fl { text-align: right; color: var(--la-2); font-size: 13px; padding-top: 6px; line-height: 1.3; }
.fr .fv { border: 1px solid var(--la-line); border-radius: 6px; padding: 5px 9px; min-height: 32px; background: var(--la-field); overflow-wrap: anywhere; font-size: 14px; }
.fr .fv.empty::before { content: "—"; color: var(--la-3); }
ul.ilist { list-style: none; margin: 0; padding: 4px 4px; }
ul.ilist li { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-bottom: 1px solid var(--la-line); }
ul.ilist li .muted { margin-left: auto; font-size: 12.5px; white-space: nowrap; }
.notecard { background: rgba(245,184,0,.12); border: 1px solid rgba(245,184,0,.35); border-radius: 8px; padding: .6rem .8rem; margin: .5rem 2px; }
.pad { padding: .5rem .3rem; }
.prose { line-height: 1.55; }
a.pill { display: inline-block; padding: .15rem .65rem; margin: 0 .2rem .35rem 0; border-radius: 999px; background: rgba(127,127,135,.16); color: var(--text); font-size: 13px; }
.preview { flex: 1 1 48%; min-height: 220px; border-top: 1px solid var(--la-line); background: var(--la-canvas); display: flex; align-items: stretch; justify-content: center; overflow: hidden; }
.preview iframe { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.preview img { max-width: 100%; max-height: 100%; object-fit: contain; margin: auto; display: block; }
.preview audio { margin: auto 1rem; width: 100%; }
.preview video { width: 100%; max-height: 100%; }

/* the matters overview (a normal page, with the same list) */
.la-page h1 { margin-bottom: .8rem; }
.la-list.solo { border: 1px solid var(--la-line); border-radius: 12px; overflow: hidden; }
.la-list.solo table.grid .k-title { width: auto; }
.la-list.solo table.grid .k-creator { display: table-cell; width: 220px; }
.la-list.solo table.grid .k-type { width: 110px; }
.la-list.solo table.grid .k-id { width: 90px; }
.la-list.solo table.grid .k-date { width: 170px; }

/* phones and small tablets: one pane at a time */
@media (max-width: 900px) {
  body.app { height: auto; overflow: auto; }
  body.app .bar .top-nav { gap: .7rem; font-size: .85rem; }
  .la-top { flex-wrap: wrap; gap: 8px 10px; padding: 8px 12px; }
  .la-tabs { display: none; }
  .la-top .search { width: 100%; order: 3; margin: 0; }
  .la-ribbon { padding: 4px 4px 2px; }
  .la-ribbon .gl { display: none; }
  .grp { padding: 0 4px; }
  .rb { min-width: 54px; font-size: 11.5px; padding: 5px 4px 3px; }
  .rb .ic { width: 22px; height: 22px; }
  .rb[data-toggle] { display: none; }
  .la-body { display: block; }
  .la-side { border-right: 0; border-bottom: 1px solid var(--la-line); }
  .phone-src { display: block; }
  .phone-src summary { display: flex; align-items: center; gap: 8px; padding: .6rem 1rem; font-weight: 600; cursor: pointer; list-style: none; }
  .phone-src summary::-webkit-details-marker { display: none; }
  .phone-src summary .dn { margin-left: auto; color: var(--la-2); }
  .la-side .sources, .la-side .tags { display: none; }
  .phone-src[open] ~ .sources, .phone-src[open] ~ .tags { display: block; }
  .la-side .tags .taglist { max-height: 40vh; }
  .la-list .scroller { overflow: visible; }
  table.grid thead { display: none; }
  table.grid .k-id, table.grid .k-exhibit, table.grid .k-creator, table.grid .k-type, table.grid .k-date, table.grid .k-language, table.grid .k-tags { display: none; }
  table.grid tbody td { height: auto; padding: 9px 10px; white-space: normal; }
  td.k-title .m { display: block; font-size: 12.5px; color: var(--la-2); margin-top: 2px; }
  td.k-title .tt { white-space: normal; }
  .la.has-sel .la-side, .la.has-sel .la-list { display: none; }
  .la.no-sel .la-insp { display: none; }
  .la-insp { border-left: 0; }
  .phone-back { display: flex; align-items: center; gap: 4px; padding: .7rem 1rem .2rem; font-weight: 600; }
  .insp-body { max-height: none; }
  .fr { grid-template-columns: 1fr; gap: 2px; }
  .fr .fl { text-align: left; padding-top: 4px; }
  .preview { min-height: 70vh; }
  .la-list.solo table.grid .k-creator, .la-list.solo table.grid .k-type, .la-list.solo table.grid .k-id, .la-list.solo table.grid .k-date { display: none; }
}

/* ================================================================ the administrators' console */
body.console { min-height: 100vh; }
.con-page { min-height: calc(100vh - 50px); }
.con { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: calc(100vh - 50px); }
.con-side { background: var(--surface); border-right: 1px solid var(--border); padding: 16px 12px; position: sticky; top: 0; align-self: start; height: calc(100vh - 50px); overflow-y: auto; }
.con-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; }
.con-brand .ic { width: 26px; height: 26px; }
.con-brand b { display: block; font-size: .95rem; line-height: 1.2; }
.con-brand span { display: block; font-size: .78rem; color: var(--muted); }
.con-back { display: flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 8px; color: var(--muted); font-size: .9rem; font-weight: 500; }
.con-back:hover { background: var(--bg); color: var(--text); text-decoration: none; }
.con-sec { margin: 14px 10px 4px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.con-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 1px 0; border-radius: 8px; color: var(--text); font-weight: 500; font-size: .93rem; }
.con-item:hover { background: var(--bg); text-decoration: none; }
.con-item.on { background: var(--tint); color: var(--primary); }
.con-item .ic { width: 18px; height: 18px; }
.con-item span:first-of-type { flex: 1; }
.con-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-orange, #f08c00); }
.con-dot.bad { background: var(--c-red, #ff3b30); }
.con-main { padding: 26px 34px 60px; min-width: 0; max-width: 1180px; }
.con-head { margin-bottom: 18px; }
.con-head h1 { margin: 0; }
.con-head p { margin: 2px 0 0; }
.con-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin-bottom: 14px; }
.con-kpi { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; color: var(--text); }
.con-kpi:hover { border-color: var(--primary); text-decoration: none; }
.con-kpi .l { font-size: .8rem; color: var(--muted); font-weight: 600; }
.con-kpi .v { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; }
.con-kpi .v small { font-size: .95rem; color: var(--muted); font-weight: 500; }
.con-kpi .s { font-size: .8rem; color: var(--muted); }
.con-kpi.good .v { color: var(--c-green, #28a745); } .con-kpi.warn .v { color: var(--c-orange, #f08c00); } .con-kpi.bad .v { color: var(--c-red, #ff3b30); }
.con-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.con-grid .card { margin: 0 0 14px; }
.con-todo { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--border); color: var(--text); }
.con-todo:last-child { border-bottom: 0; }
.con-todo:hover { text-decoration: none; background: var(--bg); }
.con-todo .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.con-todo.warn .dot { background: var(--c-orange, #f08c00); } .con-todo.bad .dot { background: var(--c-red, #ff3b30); }
.con-todo .t { flex: 1; }
.con-todo .go { color: var(--primary); font-size: .85rem; font-weight: 600; white-space: nowrap; }
.con-ok { display: flex; align-items: center; gap: 8px; margin: .3rem 0; }
.con-matter { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px solid var(--border); color: var(--text); }
.con-matter:hover { text-decoration: none; background: var(--bg); }
.con-matter .ic { width: 20px; height: 20px; }
.con-matter b { display: block; font-weight: 600; } .con-matter small { color: var(--muted); }
.con-set { max-width: 820px; }
.con-set h2 { margin-top: 0; }
.con-set textarea { width: 100%; font: .9rem ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: .5rem .65rem; margin-top: .25rem; }
.con-set input.short { max-width: 9rem; }
.con-save { display: flex; align-items: flex-end; gap: .6rem; flex-wrap: wrap; justify-content: flex-end; margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--border); }
.con-save .con-pw { margin: 0; flex: 0 1 16rem; }
.con-save button { margin-top: 0; }
.con-radios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: .3rem 0 .6rem; }
.con-radio { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; font-weight: 400; color: var(--text); }
.con-radio:has(input:checked) { border-color: var(--primary); background: var(--tint); }
.con-radio input { display: inline-block; width: auto; flex: none; margin: 3px 0 0; }
.con-radio span { flex: 1; }
.con-radio b { display: block; font-size: .92rem; } .con-radio small { color: var(--muted); font-size: .8rem; line-height: 1.3; display: block; }
.cf-turnstile { margin: .6rem 0 .2rem; min-height: 65px; }
@media (max-width: 900px) {
  .con { grid-template-columns: 1fr; }
  .con-side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--border); padding: 10px; }
  .con-side nav { display: flex; flex-wrap: wrap; gap: 2px; }
  .con-sec, .con-brand { display: none; }
  .con-item { padding: 6px 10px; font-size: .85rem; }
  .con-main { padding: 18px 14px 40px; }
  .con-grid, .con-radios { grid-template-columns: 1fr; }
}

/* ================================================================ LitArbi Web: full screen, install, loading */
button.link.hbtn { display: inline-flex; align-items: center; gap: 5px; font-size: inherit; }
button.link.hbtn .ic { width: 15px; height: 15px; }
button.link.hbtn[hidden] { display: none; }
body.full .bar { display: none; }
body.full.app, body.full.console { height: 100vh; height: 100dvh; }
body.full .con, body.full .con-page { min-height: 100vh; }
body.full .con-side { height: 100vh; }
body.loading::before { content: ""; position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 100;
  background: linear-gradient(90deg, transparent, var(--c-purple, #a64fd6), transparent); background-size: 50% 100%; background-repeat: no-repeat;
  animation: la-load 1s linear infinite; }
@keyframes la-load { from { background-position: -50% 0; } to { background-position: 150% 0; } }
body.loading .la-list, body.loading .la-insp { opacity: .85; transition: opacity .15s .15s; }
.signin-brand { display: flex; align-items: center; gap: 10px; margin-bottom: .8rem; }
.signin-brand .mark { width: 34px; height: 34px; border-radius: 9px; font-size: 1rem; }
.signin-brand b { display: block; font-size: 1.05rem; } .signin-brand span { display: block; color: var(--muted); font-size: .85rem; }
@media (max-width: 900px) { button.link.hbtn span { display: none; } }
/* 1.1.2: erasing an account (Art. 17 GDPR) */
.danger-zone { border-color: color-mix(in srgb, var(--err) 35%, var(--border)); margin-top: 1rem; }
.danger-zone h2 { color: var(--err); }
/* 1.2: Administration ▸ Backups */
.grid3 { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bk-running { display: flex; align-items: center; gap: 8px; background: color-mix(in srgb, var(--primary) 10%, var(--surface)); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; }
.bk-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 14px; }
.bk-actions form { margin: 0; }
.bk-actions .con-save { margin: 0; padding: 0; border: 0; }
.bk-kit { border: 2px dashed var(--primary); border-radius: 12px; padding: 14px 16px; background: color-mix(in srgb, var(--primary) 6%, var(--surface)); }
.bk-key code { display: block; font-size: 1.05rem; font-weight: 600; letter-spacing: .02em; padding: 10px 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); word-break: break-all; user-select: all; }
.bk-more { margin-top: 12px; }
.bk-more summary { cursor: pointer; color: var(--muted); font-size: .9rem; }
.bk-kind { border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px 4px; margin: 10px 0; }
.bk-kind legend { font-size: .8rem; font-weight: 600; color: var(--muted); padding: 0 4px; }
.bk-steps { margin: 0; padding-left: 1.2rem; line-height: 1.6; }
.bk-steps li { margin: .3rem 0; }
@media print { .con-side, .site-head, .bk-actions, form, .bk-more { display: none !important; } .bk-kit { border-color: #000; } }
form:has(input[name="kind"][value="s3"]:checked) .bk-kind:not(.bk-kind--s3),
form:has(input[name="kind"][value="webdav"]:checked) .bk-kind:not(.bk-kind--webdav),
form:has(input[name="kind"][value="folder"]:checked) .bk-kind:not(.bk-kind--folder) { display: none; }
.con-kpi .s { overflow-wrap: anywhere; }
form:has(input[name="kind"][value="folder"]:checked) .bk-secret { visibility: hidden; }
/* 1.2: Recently deleted, History */
p.lead { font-size: 1.1rem; font-weight: 600; margin: -.4rem 0 .3rem; }
.warnbox { border-color: color-mix(in srgb, var(--err) 45%, var(--border)); background: color-mix(in srgb, var(--err) 6%, var(--surface)); }
.warnbox h2 { display: flex; align-items: center; gap: 6px; }
.del-group .del-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.del-group .del-head p { margin: .2rem 0 0; }
.del-list { margin: .6rem 0 0; columns: 2 18rem; font-size: .92rem; }
.del-list li { break-inside: avoid; padding: 1px 0; }
