/* FeNest — minimal: light page, one typeface (Onest), brand blue only for the main action and the current place. */
:root {
  --bg: #EEF2F4; --surface: #fff; --ink: #2F383D; --muted: #6B777D; --faint: #9AA5AB; --line: #DCE3E7; --line2: #EDF1F3; --well: #F3F6F7;
  --side: #2F383D; --side2: #3B464C; --side-ink: #D3DBE0; --side-mute: #8A979E; --fe: #C9D1D6; --nest: #0A96DC;
  --blue: #0088CC; --blue-ink: #0077B3; --blue-wash: #E6F3FA; --prio: #E5531A; --prio-wash: #FDEEE7;
  --ok: #23824F; --ok-wash: #E6F4EC; --bad: #C62828; --bad-wash: #FCEBEB; --warn-ink: #8A5A00; --warn-bg: #FFF5E3;
  /* names templates still use inline */
  --accent: var(--blue); --accent-dark: var(--blue-ink); --soft: var(--well); --ok-ink: var(--ok);
  --r: 10px; --r-s: 8px;
}
* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.5 "Onest", "Segoe UI", Arial, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--blue-ink); text-decoration: none; }
a:hover { color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.mono, .code { font-weight: 600; letter-spacing: .005em; }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 28px; height: 60px; padding: 0 28px; background: var(--side); color: var(--side-ink); }
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); }
.brand img { width: 26px; height: 30px; display: block; }
.app-name { font-size: 20px; font-weight: 600; letter-spacing: -.01em; color: var(--fe); }
.app-name span { color: var(--nest); }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 6px; color: var(--side-ink); font-weight: 500; }
.nav a:hover { color: #fff; background: rgba(255,255,255,.05); }
.nav a.on { color: #fff; font-weight: 600; background: var(--side2); box-shadow: inset 0 -2px 0 var(--blue); }
.nav em { font-style: normal; font-size: 12px; color: var(--side-mute); font-weight: 500; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.new { background: var(--blue); color: #fff; border-radius: var(--r-s); padding: 8px 14px; font-weight: 600; font-size: 13.5px; }
.new::before { content: '+'; margin-right: 6px; font-weight: 500; }
.new:hover { background: var(--blue-ink); color: #fff; }

/* user menu and small dropdowns */
details.me, details.pop { position: relative; }
details.me > summary, details.pop > summary { list-style: none; cursor: pointer; user-select: none; }
details.me > summary::-webkit-details-marker, details.pop > summary::-webkit-details-marker { display: none; }
details.me > summary { display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border-radius: 20px; }
details.me > summary:hover, details.me[open] > summary { background: var(--side2); }
.ava { width: 30px; height: 30px; border-radius: 50%; background: var(--side2); box-shadow: inset 0 0 0 1px #4A565D; color: #fff; font-size: 10.5px; font-weight: 600; display: grid; place-items: center; letter-spacing: .02em; }
.who { font-size: 13px; color: var(--side-mute); }
.me-menu, .pop-menu { color: var(--ink); position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 12px 32px rgba(20,30,40,.12); padding: 6px; z-index: 30; }
.me-menu > a, .pop-menu > a, .pop-menu label.item, .pop-menu button.item, .me-menu .linkish { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 6px; color: var(--ink); font: inherit; font-size: 13.5px; background: none; border: 0; cursor: pointer; }
.me-menu > a:hover, .pop-menu > a:hover, .pop-menu label.item:hover, .pop-menu button.item:hover, .me-menu .linkish:hover { background: var(--well); color: var(--ink); }
.me-menu form, .pop-menu form { margin: 0; }
.me-sub { padding: 6px 10px 8px; font-size: 12px; color: var(--muted); }
.pop-menu hr { border: 0; border-top: 1px solid var(--line2); margin: 6px 4px; }
.pop-menu .item.danger { color: var(--bad); }
.pop-menu small { display: block; color: var(--faint); font-size: 11.5px; }
.role { display: flex; background: var(--well); border-radius: var(--r-s); padding: 3px; margin: 0 4px 6px; }
.role button { flex: 1; border: 0; background: none; color: var(--muted); padding: 6px 0; cursor: pointer; font: inherit; font-size: 12.5px; border-radius: 6px; }
.role button.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(20,30,40,.12); }

/* page */
.main { max-width: 1440px; margin: 0 auto; padding: 28px 28px 48px; }
.head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.head h1 { font-size: 24px; font-weight: 650; letter-spacing: -.02em; margin: 0; }
.head .sub, .hint { color: var(--muted); font-size: 13px; }
.back { display: inline-block; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.back:hover { color: var(--ink); }

/* filters */
.bar { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; align-items: center; }
.search { flex: 1; min-width: 260px; max-width: 520px; display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); padding: 0 12px; }
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-wash); }
.search input { flex: 1; border: 0; outline: 0; padding: 8px 2px; font: inherit; background: none; color: var(--ink); }
.search svg { flex: none; order: -1; margin-right: 6px; }
.dd { position: relative; }
.dd > .btn, .btn { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); padding: 8px 12px; font-size: 13px; white-space: nowrap; cursor: pointer; font-family: inherit; color: var(--muted); display: inline-block; }
.dd > .btn b { color: var(--ink); font-weight: 600; }
.dd .menu { display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 5; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 12px 32px rgba(20,30,40,.12); padding: 6px; width: 190px; }
.dd.open .menu { display: block; }
.dd .menu label { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; font-size: 13px; cursor: pointer; }
.dd .menu label:hover { background: var(--well); }
.dd .menu .all { color: var(--muted); font-size: 12px; padding: 4px 8px; }
.dd .menu hr { border: 0; border-top: 1px solid var(--line2); margin: 4px 0; }
.seg { display: flex; background: #E9ECEF; border-radius: var(--r-s); padding: 3px; margin-left: auto; }
.seg a { padding: 4px 10px; font-size: 13px; color: var(--muted); border-radius: 6px; }
.seg a.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(20,30,40,.12); }
.chkl { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; white-space: nowrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); padding: 7px 12px; cursor: pointer; }
input[type=checkbox], input[type=radio] { accent-color: var(--blue); }

/* buttons: one filled primary per place, the rest quiet */
.b, button.b { display: inline-block; text-align: center; padding: 7px 12px; border-radius: var(--r-s); font-size: 13px; font-weight: 500; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font-family: inherit; white-space: nowrap; }
.b:hover { border-color: #C9CFD5; color: var(--ink); }
.b.dl { background: var(--surface); }
.b.blue, .go { background: var(--blue); color: #fff; border-color: var(--blue); font-weight: 600; }
.b.blue:hover, .go:hover { background: var(--blue-ink); border-color: var(--blue-ink); color: #fff; }
.b.green { background: var(--ok); color: #fff; border-color: var(--ok); font-weight: 600; }
.b.green:hover { background: #1C6B41; color: #fff; }
.b.danger, .danger { color: var(--bad); }
.b.red, button.b.red { background: var(--bad); border-color: var(--bad); color: #fff; }
.b.red:hover, button.b.red:hover { background: #a91f1f; border-color: #a91f1f; }
.go { border-radius: var(--r-s); padding: 10px 20px; font-size: 14px; border: 0; cursor: pointer; font-family: inherit; }
.go:disabled { background: #B9DDF2; cursor: default; }
details.pop > summary.b::after { content: ''; display: inline-block; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translate(-2px, -2px); margin-left: 9px; opacity: .55; }
details.pop > summary.b.more { padding: 7px 11px; letter-spacing: 1px; }
details.pop > summary.b.more::after { display: none; }

/* surfaces */
.box2, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; margin-bottom: 16px; }
.panel h3 { font-size: 15px !important; font-weight: 600; }
.alert { background: var(--warn-bg); border-radius: var(--r); padding: 11px 14px; color: #6A4A00; font-size: 13px; margin-bottom: 16px; }
.error { background: var(--bad-wash); border-radius: var(--r); padding: 11px 14px; color: var(--bad); margin-bottom: 16px; }
.muted, .meta { color: var(--muted); font-size: 12.5px; }
.bad { color: var(--bad); font-size: 12.5px; font-weight: 500; }
.cutm { color: var(--ok); font-size: 12.5px; font-weight: 500; }
.pk { background: var(--blue-wash); color: var(--blue-ink); border-radius: 5px; padding: 1px 7px; font-size: 12px; }
.pill { display: inline-block; background: var(--warn-bg); color: var(--warn-ink); border-radius: 5px; padding: 1px 7px; font-size: 11.5px; margin-left: 4px; }
.pbadge { background: var(--prio); color: #fff; font-size: 11px; font-weight: 600; border-radius: 5px; padding: 2px 7px; margin-right: 8px; vertical-align: 3px; }

/* nest cards: the sheet picture is the card; one line of facts under it */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: #CDD3D9; box-shadow: 0 6px 20px rgba(20,30,40,.07); }
.card .pic { height: 180px; background: var(--well); display: flex; align-items: center; justify-content: center; position: relative; }
.card .pic img { max-height: 156px; max-width: 86%; border-radius: 2px; box-shadow: 0 1px 3px rgba(20,30,40,.1); }
.card .pic .n { position: absolute; left: 10px; top: 10px; background: rgba(255,255,255,.9); color: var(--ink); font-size: 11.5px; border-radius: 5px; padding: 1px 7px; }
.card .pic .t { position: absolute; right: 10px; top: 10px; background: rgba(255,255,255,.9); font-size: 11.5px; border-radius: 5px; padding: 1px 7px; }
.card .pic .pr { position: absolute; left: 10px; top: 10px; background: var(--prio); color: #fff; font-size: 11px; font-weight: 600; border-radius: 5px; padding: 2px 7px; }
.card .body { padding: 12px 14px 14px; }
.card .code { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .facts { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; color: var(--muted); font-size: 12.5px; }
.card .facts b { color: var(--ink); font-weight: 500; }
.card .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line2); font-size: 12.5px; color: var(--faint); }
.card .row { display: flex; gap: 6px; margin-top: 10px; }
.card .row .b { flex: 1; }
.card .cover { position: absolute; inset: 0; z-index: 1; }
.card .quick { position: absolute; right: 10px; top: 10px; z-index: 2; width: 32px; height: 32px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); opacity: 0; transition: opacity .15s; }
.card:hover .quick, .card .quick:focus-visible { opacity: 1; }
.card .quick:hover { border-color: var(--blue); color: var(--blue); }
.card.run .pic { flex-direction: column; gap: 10px; background: var(--blue-wash); }
.card.run .st { color: var(--blue-ink); font-weight: 600; font-size: 13px; }
.card.failed .pic { background: var(--bad-wash); color: var(--bad); padding: 14px; font-size: 13px; text-align: center; }
.pb { width: 140px; height: 4px; border-radius: 2px; background: #CFE5F4; overflow: hidden; }
.pb div { height: 4px; background: var(--blue); }
@media (hover: none) { .card .quick { opacity: 1; } }

/* tables */
table.t { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
table.t th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface); }
table.t td { padding: 9px 12px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr:hover td { background: #FAFBFC; }
table.t td.c { font-weight: 600; }
table.t tr.miss td { background: var(--bad-wash); }
table.t td img { height: 40px; display: block; }
.ok { color: var(--ok); font-weight: 600; }
.no { color: var(--bad); font-weight: 600; }
.lk { color: var(--blue-ink); font-size: 12.5px; margin-right: 12px; white-space: nowrap; }

/* forms */
.fields { display: grid; grid-template-columns: 2.2fr 1.3fr 1.2fr .8fr; gap: 14px; }
.f label, .fl label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.f .v { font-weight: 600; }
.f .hint2, .hint2 { color: var(--faint); font-size: 11.5px; margin-top: 3px; }
input.in, select.in, textarea.in { border: 1px solid var(--line); border-radius: var(--r-s); padding: 7px 10px; background: var(--surface); font: inherit; font-size: 13px; color: var(--ink); }
input.in:focus, select.in:focus, textarea.in:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-wash); }
input.num { width: 76px; }
.row2 { display: flex; gap: 10px; } .row2 > * { flex: 1; }
.fl { margin-bottom: 12px; }
dialog { border: 0; border-radius: 14px; padding: 22px 24px; width: 400px; box-shadow: 0 24px 60px rgba(20,30,40,.25); }
dialog::backdrop { background: rgba(20,28,34,.4); }
.drop { border: 1.5px dashed #C9D2DA; background: var(--surface); border-radius: 14px; padding: 56px 34px; text-align: center; color: var(--ink); }
.drop.over { background: var(--blue-wash); border-color: var(--blue); }
.drop .big { font-size: 18px; font-weight: 600; margin: 12px 0 4px; letter-spacing: -.01em; }

/* library cards */
.card.part .pic { background: var(--well); }
.card.part .pic img { box-shadow: none; }
.card.part .add { position: absolute; right: 8px; top: 8px; width: 28px; height: 28px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--blue-ink); font-size: 17px; line-height: 24px; cursor: pointer; z-index: 1; padding: 0; }
.card.part .add:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* operator page: a nest's sheets fold away until opened */
details.sheets > summary { cursor: pointer; padding: 11px 18px; font-size: 13px; font-weight: 500; color: var(--blue-ink); list-style: none; user-select: none; border-top: 1px solid var(--line2); }
details.sheets > summary::-webkit-details-marker { display: none; }
details.sheets > summary::before { content: '▸'; display: inline-block; width: 14px; transition: transform .15s; }
details.sheets[open] > summary::before { transform: rotate(90deg); }
details.sheets > summary:hover { background: #FAFBFC; }

/* nest page, remnants tab: new remnants green, pieces taken from stock orange */
tr.rem-new td:first-child { box-shadow: inset 3px 0 0 var(--ok); }
tr.rem-taken td:first-child { box-shadow: inset 3px 0 0 #e08a1e; }
.rem-chip { display: inline-block; font: 500 11px/1 inherit; font-family: inherit; padding: 3px 7px; border-radius: 5px; margin-right: 8px; vertical-align: 1px; }
tr.rem-new .rem-chip { color: #1e6b40; background: var(--ok-wash); }
tr.rem-taken .rem-chip { color: #8a4f00; background: #fff0db; }

/* library: «− count +» in a card's corner; a part already in the urgent list is outlined */
.card.part .pick { position: absolute; right: 8px; top: 8px; z-index: 1; display: flex; align-items: center; gap: 4px; }
.card.part .pick .add { position: static; }
.card.part .pick .sub { width: 28px; height: 28px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--blue-ink); font-size: 17px; line-height: 24px; cursor: pointer; padding: 0; display: none; }
.card.part .pick .sub:hover { background: var(--bad-wash); color: var(--bad); border-color: #f0b7b7; }
.card.part .pick .cnt { display: none; min-width: 28px; height: 24px; padding: 0 8px; border-radius: 12px; background: var(--blue); color: #fff; font-size: 12.5px; font-weight: 600; line-height: 24px; text-align: center; white-space: nowrap; }
.card.part.picked .pick .sub, .card.part.picked .pick .cnt { display: inline-block; }
.card.part.picked { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
@keyframes fenest-pop { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }
.card.part .pop { animation: fenest-pop .3s ease-out; }
@media (prefers-reduced-motion: reduce) { .card, .card .quick { transition: none; } .card.part .pop { animation: none; } }

/* sheet picture window */
/* as big as the screen allows, the whole sheet, no scrolling: width from the sheet's proportions (--ar, set on open) */
dialog#zoom { width: fit-content; padding: 12px 14px 14px; border: 0; border-radius: 14px; max-width: 96vw; max-height: 96vh; overflow: hidden; box-shadow: 0 24px 60px rgba(0,0,0,.3); cursor: zoom-out; }
dialog#zoom::backdrop { background: rgba(20,26,30,.6); }
dialog#zoom img { display: block; width: min(calc(96vw - 28px), calc((96vh - 64px) * var(--ar, 1.26))); height: auto; max-height: calc(96vh - 64px); object-fit: contain; margin: 0 auto; background: #fff; }
dialog#zoom .zoom-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 13px; color: var(--ink); font-weight: 500; }
dialog#zoom .zoom-x { margin-left: auto; border: 0; background: none; font-size: 18px; cursor: pointer; color: var(--muted); }

/* nest page */
.nest-top { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 24px; }
.nest-top .title { flex: 1; min-width: min(420px, 100%); }
.nest-top h1 { font-size: 24px; font-weight: 650; letter-spacing: -.02em; margin: 0 0 3px; overflow-wrap: anywhere; }
.nest-top .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.switch { white-space: nowrap; }
.stats { display: flex; flex-wrap: wrap; margin-top: 16px; }
.stats div { padding: 0 22px; border-left: 1px solid var(--line); }
.stats div:first-child { padding-left: 0; border-left: 0; }
.stats small { display: block; color: var(--muted); font-size: 12px; }
.stats b { font-size: 17px; font-weight: 600; }
.stats .done b { color: var(--ok); }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; color: var(--ink); padding: 7px 4px; }
.switch i { width: 30px; height: 18px; border-radius: 9px; background: #D5DADF; position: relative; transition: background .15s; }
.switch i::after { content: ''; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch.on i { background: var(--prio); }
.switch.on i::after { left: 14px; }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tabs a { padding: 9px 0; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); border-bottom-color: var(--ink); }
.tabs a .muted { margin-left: 3px; color: var(--faint); }
.sheets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.sheet .pic { height: 230px; }
.sheet .pic img { max-height: 206px; cursor: zoom-in; }
.sheet .body { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; font-size: 13px; }
.sheet .body .st { font-size: 12.5px; color: var(--faint); }
.sheet .body .st.cut { color: var(--ok); font-weight: 500; }
.sheet .pill { position: absolute; left: 8px; top: 8px; margin: 0; }

/* operator page */
.cutnest { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 18px; overflow: hidden; }
.cutnest.prio { border-color: var(--prio); box-shadow: 0 0 0 1px var(--prio); }
.cutnest .top2 { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line2); flex-wrap: wrap; }
.cutnest .name { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.cutnest .progress { display: flex; align-items: center; gap: 10px; margin-left: auto; font-size: 13px; color: var(--muted); white-space: nowrap; }
.cutnest .progress b { color: var(--ink); font-weight: 600; }
.cutnest .bar2 { width: 120px; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.cutnest .bar2 span { display: block; height: 4px; background: var(--ok); }
.cutsheets { display: flex; gap: 12px; padding: 16px 18px; flex-wrap: wrap; }
.cutsheet { width: 150px; }
.cutsheet .pic { height: 160px; }
.cutsheet .pic img { max-height: 144px; cursor: zoom-in; }
.cutsheet label { display: flex; align-items: center; gap: 8px; padding: 9px 10px; font-size: 13px; cursor: pointer; border-top: 1px solid var(--line2); }
.cutsheet label input { width: 17px; height: 17px; flex: none; }
.cutsheet.cut { border-color: #BFE0CC; }
.cutsheet.cut label { color: var(--ok); font-weight: 500; background: var(--ok-wash); }
.cutsheet.cut img { opacity: .45; }
.feed { font-size: 12.5px; }
.feed > div { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line2); }
.feed > div:last-child { border-bottom: 0; }
.feed .ic { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.feed .ic.cut { color: var(--ok); background: var(--ok-wash); }
.feed .ic.uncut { color: var(--warn-ink); background: var(--warn-bg); }

@media (max-width: 900px) {
  .top { flex-wrap: wrap; height: auto; gap: 8px 14px; padding: 10px 16px 0; }
  .top .nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: 8px; }
  .new { padding: 7px 12px; }
  .who { display: none; }
  .main { padding: 20px 16px 40px; }
  .stats div { padding: 0 12px; }
  .nest-top h1, .head h1 { font-size: 20px; }
}

/* quiet rows: row actions show on hover (mouse only), card meta stays on one line */
.card.part .meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (hover: hover) {
  table.t.quiet td:last-child .lk { opacity: 0; transition: opacity .12s; }
  table.t.quiet tr:hover td:last-child .lk, table.t.quiet td:last-child .lk:focus-visible { opacity: 1; }
}
