/* yuliialisting — app shell & components (14/11/2026). Loaded AFTER style.css (which keeps the raw-Notion rendering styles).
   Layout: fixed left sidebar (navigation) · top bar (search + account) · page header (breadcrumb, title, actions) · content. */
:root {
  --bg: #f6f7f6; --panel: #ffffff; --side: #eef1ef; --ink: #16201d; --muted: #67736f; --faint: #98a29e; --line: #e2e7e4; --soft: #f0f3f1;
  --accent: #0f6e63; --accent-ink: #ffffff; --accent-soft: #dff0ec; --raw: #f3f5f3;
  --ok: #17733f; --ok-bg: #dcf3e4; --warn: #8a5a00; --warn-bg: #fcefd2; --bad: #a3271d; --bad-bg: #fbe4e1; --star: #d79a00;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif; --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --radius: 10px; --side-w: 232px; --top-h: 56px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #111614; --panel: #181e1c; --side: #141a18; --ink: #e6ece9; --muted: #95a19c; --faint: #6c7873; --line: #28312e; --soft: #1f2724;
  --accent: #4fbfae; --accent-ink: #0d1412; --accent-soft: #173a34; --raw: #151b19;
  --ok: #8fe0a9; --ok-bg: #173826; --warn: #f1c56b; --warn-bg: #3b2f14; --bad: #f2b1aa; --bad-bg: #3e1d1a; --star: #f0bf3c; color-scheme: dark } }

body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 var(--font); }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.num, td.r, .facts b { font-variant-numeric: tabular-nums; }
h1 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
h2 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; } h3 { font-weight: 600; }
input, select, button, textarea { font-family: inherit; }

/* ---- shell ---- */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column;
  gap: 18px; padding: 14px 10px; overflow-y: auto; }
.side .brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px; font-weight: 600; font-size: 15px; letter-spacing: -0.01em; color: var(--ink); }
.side .brand:hover { text-decoration: none; }
.side .brand i { width: 26px; height: 26px; border-radius: 7px; background: var(--accent-soft); display: grid; place-items: center;
  font-style: normal; font-size: 16px; line-height: 1; }
.navgrp { display: grid; gap: 2px; }
.navgrp h6 { margin: 0 0 4px; padding: 0 10px; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.navgrp a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--muted); font-weight: 500; }
.navgrp a:hover { background: var(--soft); color: var(--ink); text-decoration: none; }
.navgrp a.on { background: var(--panel); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.navgrp a svg { width: 17px; height: 17px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.navgrp a .ct { margin-left: auto; font-size: 12px; color: var(--faint); font-weight: 400; }
.navgrp a .ct.hot { background: var(--accent); color: var(--accent-ink); border-radius: 9px; padding: 0 7px; font-weight: 500; }
.navgrp .soon { display: flex; align-items: center; gap: 10px; padding: 7px 10px; color: var(--faint); font-weight: 500; }
.navgrp .soon svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.navgrp .soon .ct { margin-left: auto; font-size: 11px; }
.side .foot { margin-top: auto; padding: 0 10px; font-size: 12px; color: var(--faint); }

.mainwrap { min-width: 0; }
.top { position: sticky; top: 0; z-index: 20; height: var(--top-h); background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 0 24px; }
.menu-btn { display: none; border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 8px; width: 36px; height: 36px; cursor: pointer; padding: 0; }
.gsearch { position: relative; flex: 1; max-width: 560px; margin: 0; }
.gsearch input { width: 100%; height: 36px; border: 1px solid var(--line); background: var(--panel); border-radius: 9px; padding: 0 40px 0 36px; color: var(--ink); font-size: 14px; }
.gsearch input::placeholder { color: var(--faint); }
.gsearch > svg { position: absolute; left: 11px; top: 10px; width: 16px; height: 16px; stroke: var(--faint); fill: none; stroke-width: 2; pointer-events: none; }
.gsearch kbd { position: absolute; right: 9px; top: 8px; font: 11px var(--mono); color: var(--faint); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; background: var(--soft); }
#sugg { position: absolute; top: 42px; left: 0; right: auto; width: 100%; min-width: 360px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,.12); padding: 6px; overflow: hidden; z-index: 50; }
#sugg a { display: flex; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 7px; color: var(--ink); }
#sugg a.on, #sugg a:hover { background: var(--soft); text-decoration: none; }
#sugg img, #sugg .ni { width: 40px; height: 30px; object-fit: cover; border-radius: 5px; background: var(--soft); flex: none; }
#sugg .k { font-size: 11px; color: var(--faint); margin-left: auto; text-transform: none; letter-spacing: 0; }
#sugg small { display: block; color: var(--muted); font-size: 12px; } #sugg mark { background: none; color: var(--accent); font-weight: 600; }
#sugg .all { justify-content: center; color: var(--accent); border-top: 1px solid var(--line); border-radius: 0; margin-top: 4px; font-size: 13px; }
.account { margin-left: auto; position: relative; }
.account > button { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); border-radius: 20px;
  padding: 3px 10px 3px 3px; cursor: pointer; font-size: 14px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 600; font-size: 13px; text-transform: uppercase; }
.account .menu { position: absolute; right: 0; top: 44px; width: 230px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,.12); padding: 6px; z-index: 60; }
.account .menu .who { padding: 8px 10px; color: var(--muted); font-size: 13px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.account .menu .it { display: block; padding: 8px 10px; border-radius: 7px; color: var(--ink); font-size: 14px; }
.account .menu .it.off { color: var(--faint); cursor: default; }
.account .menu .it small { display: block; font-size: 12px; color: var(--faint); }

main { padding: 20px 28px 64px; min-width: 0; }

/* ---- page header ---- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--ink); } .crumbs .sep { color: var(--faint); }
.phead { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; margin-bottom: 16px; }
.phead p { margin: 3px 0 0; color: var(--muted); max-width: 80ch; }
.phead .actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---- buttons ---- */
.btn, button.btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--line); background: var(--panel);
  color: var(--ink); border-radius: 8px; cursor: pointer; font-weight: 500; font-size: 14px; white-space: nowrap; }
.btn:hover { background: var(--soft); text-decoration: none; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.danger { color: var(--bad); }
.btn .star { color: var(--star); }
.btnform { display: inline; margin: 0; }
details.more { position: relative; } details.more > summary { list-style: none; } details.more > summary::-webkit-details-marker { display: none; }
details.more .menu { position: absolute; right: 0; top: 40px; min-width: 210px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,.12); padding: 6px; z-index: 30; display: grid; }
details.more .menu a, details.more .menu button { display: block; text-align: left; width: 100%; border: 0; background: none; padding: 8px 10px; border-radius: 7px;
  color: var(--ink); font-size: 14px; cursor: pointer; height: auto; }
details.more .menu a:hover, details.more .menu button:hover { background: var(--soft); text-decoration: none; }
details.more .menu .danger { color: var(--bad); }

/* ---- list toolbar ---- */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.seg { display: inline-flex; background: var(--soft); border: 1px solid var(--line); border-radius: 9px; padding: 2px; }
.seg button { border: 0; background: none; padding: 5px 11px; border-radius: 7px; cursor: pointer; color: var(--muted); font-weight: 500; font-size: 14px; height: auto; }
.seg button.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.seg button .c { color: var(--faint); margin-left: 4px; font-size: 12px; font-weight: 400; }
.toolbar select, .toolbar input { height: 32px; border: 1px solid var(--line); background: var(--panel); border-radius: 8px; padding: 0 10px; color: var(--ink); font-size: 14px; }
.toolbar input.flt { width: 180px; }
.toolbar .count { color: var(--muted); font-size: 13px; margin-left: auto; }
.qchip { display: inline-flex; gap: 6px; align-items: center; background: var(--accent-soft); color: var(--ink); border-radius: 16px; padding: 3px 10px; font-size: 13px; }
.qchip a { color: var(--muted); }

/* ---- tables ---- */
.tablecard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
table.list { width: 100%; border-collapse: separate; border-spacing: 0; background: none; border: 0; border-radius: 0; }
table.list th { position: sticky; top: var(--top-h); z-index: 4; background: var(--panel); text-align: left; font-size: 12px; font-weight: 500; color: var(--muted);
  padding: 9px 10px; border-bottom: 1px solid var(--line); box-shadow: none; white-space: nowrap; }
table.list th:first-child { border-top-left-radius: var(--radius); } table.list th:last-child { border-top-right-radius: var(--radius); }
table.list th[data-sort] { cursor: pointer; user-select: none; } table.list th[data-sort]:hover { color: var(--ink); }
table.list th.asc::after { content: ' ↑'; color: var(--accent); } table.list th.desc::after { content: ' ↓'; color: var(--accent); }
table.list td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.list tbody tr:last-child td { border-bottom: 0; }
table.list tbody tr:hover td { background: var(--soft); }
table.list tr[data-href] { cursor: pointer; }
td.th img { width: 56px; height: 40px; border-radius: 6px; }
td.th .ph { width: 56px; height: 40px; border-radius: 6px; }
td.th.logo img, td.th.logo .ph { width: 40px; height: 40px; }
.nm a { font-weight: 600; color: var(--ink); } .nm span { display: block; color: var(--muted); font-size: 12.5px; }
.chip { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 10px; background: var(--soft); border: 1px solid var(--line); margin: 1px 3px 1px 0;
  white-space: nowrap; color: var(--ink); }
.pill { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 10px; white-space: nowrap; font-weight: 500; }
.pill.ok { background: var(--ok-bg); color: var(--ok); } .pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); } .pill.neutral { background: var(--soft); color: var(--muted); }
.empty-state { padding: 40px; text-align: center; color: var(--muted); }
form.star button { color: var(--faint); } form.star button.on { color: var(--star); }

/* ---- record page: header ---- */
.hero2 { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 24px; }
.hero2 .cover { display: block; } .hero2 .cover img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius); display: block; background: var(--soft); }
.hero2 .nocover { aspect-ratio: 16/10; border-radius: var(--radius); background: var(--soft); display: grid; place-items: center; color: var(--faint); font-size: 13px; }
.hero2 .titlerow { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-start; }
.hero2 .titlerow .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.hero2 .devl { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 500; margin: 6px 0 10px; }
.hero2 .devl img { width: 22px; height: 22px; border-radius: 5px; object-fit: contain; background: #fff; }
.hero2 .tagline { color: var(--muted); font-style: italic; margin: 8px 0 14px; max-width: 70ch; }
.hero2.dev { grid-template-columns: 96px minmax(0, 1fr); }
.hero2 .logo96 { width: 96px; height: 96px; object-fit: contain; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: block; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 12px; }
.facts div { background: var(--panel); padding: 10px 12px; display: grid; gap: 2px; min-width: 0; }
.facts span { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.facts b { font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.facts b.none { color: var(--faint); font-weight: 400; }
.banners { margin-top: 14px; display: grid; gap: 8px; }

/* ---- record page: tabs ---- */
.tabs2 { position: sticky; top: var(--top-h); z-index: 10; background: var(--bg); display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 22px 0 18px; overflow-x: auto; }
.tabs2 a { padding: 10px 12px; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs2 a:hover { color: var(--ink); text-decoration: none; } .tabs2 a.on { color: var(--ink); border-bottom-color: var(--accent); }
.tabs2 a .c { color: var(--faint); font-size: 12px; margin-left: 4px; font-weight: 400; }
.tabpanel { scroll-margin-top: calc(var(--top-h) + 60px); }
.tabpanel > h2:first-child { margin-top: 0; }
.panel-note { color: var(--muted); font-size: 13px; margin: -6px 0 12px; }

/* formatted fields (existing markup: .groups > .grp > dl > .kv) */
.groups { gap: 14px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.grp { border-radius: var(--radius); padding: 14px 16px; }
.grp h3 { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .06em; }
.grp dl { gap: 10px 14px; }
.kv dt { font-size: 12px; } .kv dd { font-weight: 500; } .kv.empty dd { color: var(--faint); font-weight: 400; }

/* cards (other programs, developer's programs, search) */
.card { border-radius: var(--radius); padding: 8px; }
.card img, .card .noimg { border-radius: 7px; }
.card b { font-weight: 600; }

/* galleries, raw */
.gallery img { border-radius: 7px; }
h3.mg { font-size: 15px; margin: 18px 0 6px; } h3.mg:first-child { margin-top: 0; }
.raw { margin-top: 0; background: var(--raw); border-style: solid; }
.rawhead { top: calc(var(--top-h) + 45px); background: var(--raw); }
.checkbanner, .statebanner { border-radius: var(--radius); }

/* ---- small screens ---- */
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; z-index: 40; left: 0; top: 0; width: 260px; transform: translateX(-100%); transition: transform .2s; box-shadow: 0 0 40px rgba(0,0,0,.2); }
  .side.open { transform: none; }
  .menu-btn { display: grid; place-items: center; }
  .top { padding: 0 16px; }
  .account > button .whoname { display: none; }
  main { padding: 16px 16px 60px; }
  .hero2, .hero2.dev { grid-template-columns: minmax(0, 1fr); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolbar input.flt { width: 100%; }
  .tablecard { overflow-x: auto; } table.list th { top: 0; position: static; }
  #sugg { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { .side { transition: none; } }
.devbanner img { max-width: 420px; width: 100%; max-height: 160px; object-fit: contain; border-radius: var(--radius); display: block; background: var(--panel); border: 1px solid var(--line); }
.hero2 .logo96.nocover { display: grid; place-items: center; color: var(--faint); font-size: 12px; aspect-ratio: auto; }
/* selects: own chevron with breathing room on the right */
.toolbar select, select.flt { -webkit-appearance: none; appearance: none; padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2367736f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 14px; cursor: pointer; }
.toolbar select.on, .toolbar input.flt.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.btn.reset { height: 32px; color: var(--muted); }
.notecard { background: var(--warn-bg); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 18px; }
.notecard h3 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--warn); }
.notetext { white-space: normal; }
.com { border-radius: var(--radius); padding: 10px 14px; }
/* missing data */
.mtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.mtile { display: grid; gap: 2px; text-align: left; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; cursor: pointer; color: var(--ink); }
.mtile span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.mtile b { font-size: 22px; font-weight: 600; }
.mtile:hover { border-color: var(--accent); } .mtile.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; background: var(--accent-soft); }
.mlayout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 18px; align-items: start; }
.mrules { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; position: sticky; top: calc(var(--top-h) + 12px);
  max-height: calc(100vh - var(--top-h) - 24px); overflow-y: auto; }
.mrules .seg { width: 100%; } .mrules .seg button { flex: 1; }
.rgrp h6 { margin: 12px 0 4px; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.rrow { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: baseline; padding: 4px 4px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.rrow:hover { background: var(--soft); } .rrow input { margin: 0; }
.mchip { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 10px; margin: 1px 3px 1px 0; background: var(--soft); color: var(--muted); border: 1px solid var(--line); }
.mchip.essential { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.mchip.hit { outline: 2px solid var(--accent); outline-offset: 0; }
@media (max-width: 900px) { .mlayout { grid-template-columns: minmax(0, 1fr); } .mrules { position: static; max-height: none; } }
details.misspill { display: inline-block; vertical-align: middle; margin-left: 4px; }
details.misspill > summary { cursor: pointer; }
details.misspill .menu { left: 0; right: auto; top: 28px; min-width: 300px; }
details.misspill .mi { display: block; padding: 6px 10px; font-size: 13px; color: var(--ink); }
details.misspill .mi.useful { color: var(--muted); }
.side .brand { align-items: center; }
.side .brand .bname { display: grid; line-height: 1.15; text-transform: uppercase; letter-spacing: .06em; font-size: 13.5px; font-weight: 700; }
.side .brand .bname small { font-size: 9.5px; font-weight: 500; letter-spacing: .08em; color: var(--muted); }
/* checkboxes inside toolbars: not sized like text inputs, label vertically centred */
.toolbar label { display: inline-flex; align-items: center; gap: 6px; height: 32px; font-size: 13px; color: var(--ink); cursor: pointer; white-space: nowrap; }
.toolbar input[type=checkbox], .rrow input[type=checkbox] { height: auto; width: auto; padding: 0; margin: 0; border: 0; accent-color: var(--accent); }
img.avatar { object-fit: cover; padding: 0; }
.account .menu a.it:hover { background: var(--soft); text-decoration: none; }
.devcard { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.notesfield { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 18px 14px; }
.notesfield h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); margin: 14px 0 6px; }
.notesfield p { margin: 2px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
/* editing */
.grphead { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.grphead h3 { margin: 0 !important; }
.btn.small { height: 26px; padding: 0 10px; font-size: 12.5px; }
.editform { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.editform .ef { display: grid; gap: 3px; min-width: 0; } .editform .ef.wide { grid-column: 1 / -1; }
.editform label { font-size: 12px; color: var(--muted); }
.editform input, .editform textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; background: var(--panel); color: var(--ink); font: inherit; }
.editform input:focus, .editform textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.editform textarea { resize: vertical; min-height: 70px; }
.efactions { grid-column: 1 / -1; display: flex; gap: 8px; }
.grp.editing { box-shadow: 0 0 0 2px var(--accent); }
.flash { border-radius: var(--radius); }
.flash.err { background: var(--bad-bg); color: var(--bad); border-left-color: var(--bad); }
.pencil { border: 0; background: none; color: var(--faint); cursor: pointer; font-size: 16px; padding: 0 4px; vertical-align: middle; }
.pencil:hover { color: var(--accent); }
.renameform { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.renameform input[name=v_name] { font-size: 20px; font-weight: 600; border: 1px solid var(--accent); border-radius: 8px; padding: 4px 10px; min-width: 260px; background: var(--panel); color: var(--ink); }
.logobox { display: grid; gap: 6px; justify-items: start; } .logoform { margin: 0; }
.editform select { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 7px 30px 7px 9px; background: var(--panel); color: var(--ink); font: inherit; }
.editform .checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px 12px; }
.editform .checks label { display: flex; gap: 6px; align-items: center; font-size: 13.5px; color: var(--ink); cursor: pointer; }
.editform .checks input { width: auto; accent-color: var(--accent); }
details.mainlinks { margin-bottom: 12px; } details.mainlinks > summary { list-style: none; cursor: pointer; display: inline-flex; }
details.mainlinks > summary::-webkit-details-marker { display: none; } details.mainlinks .groups { margin-top: 10px; }
/* media editing */
.upload { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 12px; align-items: stretch; background: var(--panel);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; margin-bottom: 18px; }
.upload .drop { display: grid; align-content: center; gap: 4px; border: 2px dashed var(--line); border-radius: 10px; padding: 14px; cursor: pointer; text-align: center; color: var(--muted); font-size: 13px; }
.upload .drop b { color: var(--ink); font-size: 14px; } .upload .drop.over, .upload .drop:hover { border-color: var(--accent); background: var(--accent-soft); }
.upload fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13.5px; }
.upload legend { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.upload fieldset label { display: flex; gap: 6px; align-items: baseline; cursor: pointer; } .upload input[type=radio] { accent-color: var(--accent); }
.upload input[name=hint] { border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; margin-top: 4px; background: var(--panel); color: var(--ink); font: inherit; font-size: 13px; }
.upload > .btn { align-self: end; }
.tw-wrap { position: relative; display: inline-block; }
.tw-wrap details.tact { position: absolute; top: 4px; left: 4px; }
.tw-wrap details.tact > summary { list-style: none; cursor: pointer; width: 26px; height: 22px; border-radius: 6px; background: rgba(0,0,0,.55); color: #fff;
  display: grid; place-items: center; font-size: 14px; opacity: 0; transition: opacity .15s; }
.tw-wrap details.tact > summary::-webkit-details-marker { display: none; }
.tw-wrap:hover details.tact > summary, .tw-wrap details.tact[open] > summary, .tw-wrap details.tact > summary:focus-visible { opacity: 1; }
.tw-wrap details.tact .menu { position: absolute; top: 26px; left: 0; z-index: 20; min-width: 220px; background: var(--panel); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,.15); padding: 6px; display: grid; }
.tw-wrap details.tact .menu form { margin: 0; }
.tw-wrap details.tact .menu button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 7px 10px; border-radius: 7px; color: var(--ink); font-size: 13.5px; cursor: pointer; }
.tw-wrap details.tact .menu button:hover { background: var(--soft); } .tw-wrap details.tact .menu button.danger { color: var(--bad); }
.gallery a.tm .mcover { position: absolute; left: 4px; bottom: 4px; font-size: 10px; padding: 0 6px; border-radius: 3px; background: var(--accent); color: var(--accent-ink); }
@media (max-width: 900px) { .upload { grid-template-columns: minmax(0, 1fr); } .tw-wrap details.tact > summary { opacity: 1; } }
/* resources editing */
.restop { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: flex-start; justify-content: space-between; margin-bottom: 10px; }
.restop .panel-note { margin: 0; flex: 1 1 420px; }
details.addlink > summary { list-style: none; cursor: pointer; } details.addlink > summary::-webkit-details-marker { display: none; }
details.addlink[open] { flex-basis: 100%; }
.addlinkform { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; margin-top: 8px; }
.addlinkform input, .addlinkform select { border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; background: var(--panel); color: var(--ink); font: inherit; }
table.res td.ract { width: 50px; text-align: right; } table.res td:last-child { width: auto; }
table.res td:nth-child(4) { width: 220px; }
.rolef label { display: flex; gap: 6px; align-items: center; padding: 6px 10px; font-size: 13.5px; }
.rolef select { border: 1px solid var(--line); border-radius: 6px; padding: 3px 6px; background: var(--panel); color: var(--ink); font: inherit; }
details.hiddenres { margin-top: 10px; } details.hiddenres table.res { opacity: .7; }
@media (max-width: 900px) { .addlinkform { grid-template-columns: minmax(0, 1fr); } }
.editlinkf { display: grid; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; min-width: 340px; }
.editlinkf label { display: grid; gap: 2px; font-size: 12px; color: var(--muted); }
.editlinkf input { border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; background: var(--panel); color: var(--ink); font: inherit; font-size: 13px; }
.editlinkf .btn { justify-self: start; }
#resources details.more .menu { min-width: 360px; }
/* error pages */
.errpage { max-width: 560px; margin: 8vh auto 0; text-align: center; display: grid; gap: 12px; justify-items: center; }
.errpage .errcode { font: 600 64px/1 var(--font); letter-spacing: -0.03em; color: var(--accent); }
.errpage p { color: var(--muted); margin: 0; }
.erractions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
/* history tables: fixed columns, long values wrap (no horizontal page scroll) */
table.hist { table-layout: fixed; width: 100%; }
table.hist td { overflow-wrap: anywhere; word-break: break-word; }
table.hist td.nw { white-space: normal; }
table.hist td:first-child { width: 128px; }
table.hist .old, table.hist .new { overflow-wrap: anywhere; }
table.hist img.rvimg { max-width: 100%; }
.histpage table.hist td:nth-child(2) { width: 210px; } .histpage table.hist td:nth-child(3) { width: 230px; }
.histpage table.hist td:nth-child(4) { width: 150px; }
#history table.hist td:nth-child(2) { width: 230px; } #history table.hist td:nth-child(3) { width: 150px; } #history table.hist td:last-child { width: 96px; }
@media (max-width: 760px) {
  table.hist, table.hist tbody, table.hist tr, table.hist td { display: block; width: auto !important; }
  table.hist tr { border-top: 1px solid var(--line); padding: 8px 0; } table.hist td { border: 0; padding: 2px 4px; }
}
table.hist .fld { white-space: normal; }
/* ---- view mode (editors / admins): reading or showing the screen — editing controls and technical info hidden ---- */
.vmswitch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: var(--muted); user-select: none; margin-left: auto; }
.vmswitch + .account { margin-left: 12px; }
.vmswitch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vmswitch .track { width: 34px; height: 20px; border-radius: 10px; background: var(--line); position: relative; transition: background .15s; flex: none; }
.vmswitch .knob { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--panel); box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: left .15s; }
.vmswitch input:checked + .track { background: var(--accent); } .vmswitch input:checked + .track .knob { left: 16px; }
.vmswitch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }
.view-mode .vmswitch .vmlabel { color: var(--accent); font-weight: 600; }
.account .menu .vmitem { display: none; align-items: center; gap: 8px; cursor: pointer; }
@media (max-width: 900px) { .vmswitch { display: none; } .account .menu .vmitem { display: flex; } }
html.view-mode body { --vm: 1; }
.view-mode .top { box-shadow: inset 0 -2px 0 var(--accent); }
/* hidden in view mode */
.view-mode [data-edit-open], .view-mode .pencil, .view-mode [data-edit-form], .view-mode .titlerow .actions, .view-mode .logoform,
.view-mode [data-upload], .view-mode details.tact, .view-mode details.addlink, .view-mode #resources td.ract, .view-mode #resources tr.dead,
.view-mode #resources tr.inaccessible, .view-mode details.hiddenres, .view-mode a[href="/programs/new"], .view-mode a[href="/developers/new"],
.view-mode .misspill, .view-mode .pill.ok:only-child, .view-mode .panel-note, .view-mode .mflag, .view-mode .checkbanner, .view-mode .statebanner,
.view-mode .tabs2 a[href="#raw"], .view-mode .tabs2 a[href="#history"], .view-mode .tabs2 a[href="#notes"], .view-mode .tabpanel#raw,
.view-mode .tabpanel#history, .view-mode .tabpanel#notes, .view-mode nav[aria-label="Data quality"], .view-mode .tech, .view-mode form.star,
.view-mode td:has(> form.star), .view-mode th[data-sort="fav"], .view-mode .side .foot { display: none !important; }
.view-mode .kv.empty { display: none; }  /* empty fields hidden: only what is known */
/* Resources tab of a program: explicit column widths (role · link · status · where · actions); status detail wraps */
#resources table.res td:nth-child(1) { width: 170px; }
#resources table.res td:nth-child(2) { width: auto; }
#resources table.res td:nth-child(3) { width: 170px; white-space: normal; }
#resources table.res td:nth-child(4) { width: 200px; }
#resources table.res td:nth-child(5) { width: 56px; }
@media (max-width: 900px) {
  #resources table.res, #resources table.res tbody, #resources table.res tr, #resources table.res td { display: block; width: auto !important; }
  #resources table.res tr { border-top: 1px solid var(--line); padding: 8px 0; position: relative; } #resources table.res td { border: 0; padding: 2px 6px; }
  #resources table.res td:nth-child(5) { position: absolute; top: 6px; right: 0; }
}

.pill.soldout { background: var(--bad); color: #fff; text-transform: uppercase; letter-spacing: .04em; font-size: 10.5px; vertical-align: middle; }
.pill.soldout.big { font-size: 12px; padding: 2px 10px; }
.nm .pill.soldout { display: inline-block; margin-left: 4px; }

table.list td.channels { min-width: 120px; max-width: 260px; } table.list td.channels .chip { white-space: normal; overflow-wrap: anywhere; }

.ckform { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.ckform input { flex: 1 1 280px; border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px; background: var(--panel); color: var(--ink); font: inherit; font-size: 13px; }

/* language switch EN | RU (top bar) */
.langsw { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; flex: none; }
.langsw a { padding: 4px 9px; font-size: 12px; font-weight: 600; color: var(--muted); text-decoration: none; letter-spacing: .03em; }
.langsw a + a { border-left: 1px solid var(--line); }
.langsw a.on { background: var(--ink); color: var(--panel); }
.langsw a:hover:not(.on) { background: var(--soft); text-decoration: none; }
/* language switch sits between View mode and the account menu (a personal setting, not a search one) */
.vmswitch + .langsw { margin-left: 16px; }
.gsearch + .langsw { margin-left: auto; }  /* viewers: no View mode switch */
.langsw + .account { margin-left: 12px; }
/* ---- saving without reload (app.js): pending changes, errors, toast ---- */
.grp.dirty, [data-editable].dirty { box-shadow: 0 0 0 2px var(--warn); }
.grp.saving, [data-editable].saving { opacity: .6; }
.unsaved { align-self: center; font-size: 12.5px; font-weight: 500; color: var(--warn); background: var(--warn-bg); border-radius: 6px; padding: 1px 8px; }
.renameform .unsaved { margin-left: 4px; }
.tabs2 a.pending::after { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); margin-left: 6px; vertical-align: middle; }
.eferr { grid-column: 1 / -1; flex-basis: 100%; margin: 0; padding: 8px 10px; border-radius: 8px; background: var(--bad-bg); color: var(--bad); font-size: 13px; }
.editform .ef.bad input, .editform .ef.bad textarea, .editform .ef.bad select { border-color: var(--bad); }
.editform .ef.bad label { color: var(--bad); }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 1000; max-width: min(640px, calc(100vw - 32px));
  background: var(--ink); color: var(--panel); border-radius: 10px; padding: 10px 16px; font-size: 13.5px; box-shadow: 0 12px 32px rgba(0,0,0,.25);
  opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; display: flex; gap: 12px; align-items: flex-start; }
#toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
#toast.err { background: var(--bad-bg); color: var(--bad); box-shadow: 0 0 0 1px var(--bad), 0 12px 32px rgba(0,0,0,.2); }
#toast button { border: 0; background: none; color: inherit; font-size: 18px; line-height: 1; cursor: pointer; padding: 0; }

/* assistant (15/11/2026) */
h2.sect { font-size: 15px; font-weight: 600; margin: 26px 0 8px; }
.mtile small { font-size: 11px; } a.mtile { text-decoration: none; }
.chat { display: grid; gap: 10px; max-width: 860px; margin: 12px 0 8px; }
.chat .bub { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: var(--panel); }
.chat .bub.me { background: var(--accent-soft); border-color: transparent; margin-left: 48px; }
.chat .bub .who { font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.chat .bub .txt { white-space: pre-wrap; overflow-wrap: anywhere; }
.chat details.toolrun { margin-left: 16px; font-size: 13px; } .chat details.toolrun summary { cursor: pointer; overflow-wrap: anywhere; }
.chat details.toolrun.err .chip { background: var(--bad); color: #fff; }
.chat details.toolrun pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 420px; overflow: auto; background: var(--soft); padding: 8px 10px; border-radius: 8px; font-size: 12px; }

/* offers (15/11/2026): values inherited from the program, program fields moving to the offers */
.kv .inh { color: var(--muted); } .kv .inhtag { font-size: 11px; color: var(--muted); border: 1px dashed var(--line); border-radius: 6px; padding: 0 5px; white-space: nowrap; }
.kv.legacy dd, .kv.legacy dt, .facts .legacy b, .facts .legacy span { color: var(--muted); opacity: .7; }
.legacynote { font-size: 12px; color: var(--muted); margin: -4px 0 8px; }
tr.current td { background: var(--accent-soft); }
.legacyunits .gallery img { filter: grayscale(.6); opacity: .75; } .legacyunits h3 { color: var(--muted); }
.ef .otherval { margin-top: 6px; max-width: 320px; }

/* Favorites on program cards (developer page, program « Developer » tab) — same yellow as the lists */
.favstar { color: var(--star); }
/* Offers: Draft / Verified (15/11/2026) */
.draftbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; justify-content: space-between; margin: 10px 0; padding: 10px 14px;
  border-radius: 8px; background: var(--warn-bg); color: var(--warn); font-size: .9rem; }
.draftbar a { color: inherit; text-decoration: underline; }
.draftinfo { margin: 8px 0; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font: inherit; text-decoration: underline; }
.view-mode .draftpill, .view-mode .draftbar, .view-mode .draftinfo { display: none !important; }
