/* App shell and screens — same tokens as the marketing site. Needs home.css, sections.css, v4.css. Auth form bits reused from auth.css names (au-*), defined here too. */
.ap-body { background: var(--bg-2); }
.ap { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.ap-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 16px 12px; border-right: 1px solid var(--line); background: var(--surface); overflow: auto; }
.ap-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 12px; text-decoration: none; font-weight: 800; font-size: 1.1rem; }
.ap-brand .qq-mark { width: 30px; height: 30px; color: var(--ink); }
.ap-new { width: 100%; margin-bottom: 8px; }
.ap-nav { display: grid; gap: 2px; }
.ap-nav a { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 10px; border-radius: 12px; text-decoration: none; font-weight: 500; color: var(--text-2); }
.ap-nav a .qq-ic { width: 19px; height: 19px; }
.ap-nav a em { margin-left: auto; padding: 1px 8px; border-radius: var(--pill); background: var(--surface-2); font-style: normal; font-size: .75rem; font-weight: 600; }
.ap-nav a:hover { background: var(--surface-2); color: var(--text); }
.ap-nav a[aria-current="page"] { background: var(--bg-2); color: var(--text); font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }
.ap-nav a[aria-current="page"] .qq-ic { color: var(--accent); }
.ap-side__sep { height: 1px; background: var(--line); margin: 8px 4px; }
.ap-quota { margin-top: auto; display: grid; gap: 8px; padding: 14px; border-radius: 16px; background: var(--bg-2); border: 1px solid var(--line); }
.ap-quota small { color: var(--text-2); font-size: .8rem; }
.ap-quota b span { color: var(--text-2); font-weight: 500; }
.ap-quota i { display: block; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.ap-quota s { display: block; height: 100%; background: var(--accent); }
.ap-quota__note { display: flex; align-items: center; gap: 6px; }
.ap-quota__note .qq-ic { width: 14px; height: 14px; color: var(--accent); }
.ap-user { display: grid; grid-template-columns: 36px 1fr 16px; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; cursor: pointer; }
.ap-user:hover { background: var(--surface-2); }
.ap-av { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-weight: 700; font-size: .82rem; }
.ap-user b { display: block; font-size: .9rem; } .ap-user small { color: var(--text-2); font-size: .78rem; }
.ap-user > .qq-ic { width: 16px; height: 16px; color: var(--text-2); }
.ap-main { min-width: 0; }
.ap-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 16px 28px; background: color-mix(in srgb, var(--bg-2) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.ap-top__title h1 { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.ap-top__title p { color: var(--text-2); font-size: .86rem; }
.ap-search { display: flex; align-items: center; gap: 8px; flex: 1; max-width: 360px; min-height: 40px; margin-left: auto; padding: 0 12px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--surface); }
.ap-search .qq-ic { width: 16px; height: 16px; color: var(--text-2); }
.ap-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; color: var(--text); }
.ap-search kbd { padding: 1px 7px; border-radius: 6px; border: 1px solid var(--line); font: .74rem var(--mono); color: var(--text-2); }
.ap-top__act { display: flex; align-items: center; gap: 8px; }
.ap-top__act .qq-iconbtn { position: relative; }
.ap-dot { position: absolute; right: 9px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--bg-2); }
.ap-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: var(--pill); border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: .84rem; white-space: nowrap; }
.ap-pill .qq-ic { width: 15px; height: 15px; }
.ap-burger { display: none; }
.ap-content { padding: 24px 28px 64px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.ap-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ap-kpi { padding: 16px 18px; }
.ap-kpi b { font-size: 1.8rem; }
.ap-kpi em.is-flat { color: var(--text-2); }
.ap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ap-span2 { grid-column: span 2; }
.ap-seg { padding: 3px; }
.ap-seg span, .ap-seg button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 0; border-radius: 8px; background: none; font: 600 .8rem var(--font); color: var(--text-2); cursor: pointer; }
.ap-seg .qq-ic { width: 15px; height: 15px; }
.ap-seg .is-on { background: var(--ink); color: var(--on-ink); }
.ap-seg button em { font-style: normal; font-size: .72rem; padding: 0 6px; border-radius: var(--pill); background: var(--surface-2); color: var(--text-2); }
.ap-seg button.is-on em { background: rgba(255,255,255,.2); color: inherit; }
.ap-chart svg { display: block; width: 100%; height: 220px; overflow: visible; }
.ap-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ap-draw 1.6s cubic-bezier(.4,0,.2,1) .2s forwards; }
@keyframes ap-draw { to { stroke-dashoffset: 0; } }
.ap-feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ap-feed li { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: var(--surface-2); }
.ap-feed li.is-new { animation: ap-in .5s cubic-bezier(.2,.7,.2,1); background: var(--accent-soft); }
@keyframes ap-in { from { opacity: 0; transform: translateY(-10px); } }
.ap-feed li > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.ap-feed li .qq-ic { width: 16px; height: 16px; }
.ap-feed b { display: block; font-size: .86rem; } .ap-feed small, .ap-feed em { color: var(--text-2); font-size: .76rem; font-style: normal; }
.ap-more { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; font-size: .82rem; text-decoration: none; }
.ap-more .qq-ic { width: 13px; height: 13px; }
.ap-top { /* row in top codes reuses this name only inside cards */ }
.qq-card .ap-top { position: static; display: grid; grid-template-columns: 30px 1fr 80px 50px; align-items: center; gap: 10px; padding: 7px 0; background: none; backdrop-filter: none; border-bottom: 0; border-top: 1px solid var(--line); }
.qq-card .ap-top:first-of-type { border-top: 0; }
.ap-top__ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--surface-2); }
.ap-top__ic .qq-ic { width: 15px; height: 15px; }
.qq-card .ap-top b { display: block; font-size: .86rem; } .qq-card .ap-top small { color: var(--text-2); font-size: .74rem; }
.qq-card .ap-top i { display: block; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.qq-card .ap-top s { display: block; height: 100%; background: var(--ink); }
.qq-card .ap-top em { font-style: normal; font-weight: 700; text-align: right; font-size: .84rem; }
.ap-donut { position: relative; display: grid; place-items: center; width: 150px; margin: 4px auto 10px; }
.ap-donut svg { width: 150px; height: 150px; transform: rotate(-90deg); }
.ap-donut circle { fill: none; stroke-width: 5; }
.ap-donut__bg { stroke: var(--surface-3); } .ap-donut__a { stroke: var(--ink); } .ap-donut__b { stroke: var(--accent); } .ap-donut__c { stroke: var(--line-2); }
.ap-donut > div { position: absolute; text-align: center; } .ap-donut b { display: block; font-size: 1.5rem; } .ap-donut small { color: var(--text-2); font-size: .76rem; }
.ap-legend li { justify-content: flex-start; } .ap-legend li b { margin-left: auto; }
.ap-legend li:nth-child(2) i { background: var(--accent); opacity: 1; } .ap-legend li:nth-child(3) i { background: var(--line-2); opacity: 1; }
.ap-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ap-quick__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ap-quick__grid a { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 12px; border-radius: 14px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: .9rem; transition: border-color .15s, transform .15s; }
.ap-quick__grid a:hover { border-color: var(--line-2); transform: translateY(-2px); }
.ap-quick__grid a > span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.ap-quick__grid .qq-ic { width: 20px; height: 20px; }
/* codes table */
.ap-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ap-view { margin-left: auto; display: flex; gap: 2px; padding: 3px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.ap-view button { display: grid; place-items: center; width: 32px; height: 30px; border: 0; border-radius: 7px; background: none; color: var(--text-2); cursor: pointer; }
.ap-view button .qq-ic { width: 16px; height: 16px; }
.ap-view .is-on { background: var(--surface-2); color: var(--text); }
.ap-bulk { position: sticky; top: 78px; z-index: 10; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 16px; background: var(--ink); color: var(--on-ink); box-shadow: var(--sh-3); animation: ap-in .3s ease; }
.ap-bulk[hidden] { display: none; }
.ap-bulk button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border: 1px solid rgba(255,255,255,.2); border-radius: var(--pill); background: none; color: inherit; font: 600 .82rem var(--font); cursor: pointer; }
.ap-bulk button .qq-ic { width: 14px; height: 14px; }
.ap-bulk button:hover { background: rgba(255,255,255,.1); }
.ap-bulk .is-danger { border-color: #f87171; color: #fecaca; }
.ap-bulk__x { margin-left: auto; border: 0 !important; }
.ap-table { padding: 0; overflow: hidden; --ap-cols: 40px minmax(200px, 2fr) .9fr .8fr .9fr 1.1fr 1fr .8fr .9fr 96px; }
.ap-tr { display: grid; grid-template-columns: var(--ap-cols); align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: .88rem; }
.ap-tr[hidden] { display: none; }
.ap-th { border-top: 0; background: var(--surface-2); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); }
.ap-tr:not(.ap-th):hover { background: var(--bg-2); }
.ap-tr.is-sel { background: var(--accent-soft); }
.ap-chk-w { position: relative; display: grid; place-items: center; width: 22px; height: 22px; cursor: pointer; }
.ap-chk-w input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.ap-chk { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-2); background: var(--surface); transition: all .15s; }
.ap-chk-w input:checked + .ap-chk, .ap-chk.is-on { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--surface); }
.ap-chk-w input:focus-visible + .ap-chk { outline: 2px solid var(--accent); outline-offset: 2px; }
.ap-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ap-thumb { flex: none; width: 40px; padding: 4px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: #0a0a0a; }
.ap-name b { display: block; } .ap-name small { color: var(--text-2); font-size: .76rem; font-family: var(--mono); }
.ap-type { display: inline-flex; align-items: center; gap: 6px; } .ap-type .qq-ic { width: 16px; height: 16px; color: var(--text-2); }
.ap-num { font-weight: 700; font-variant-numeric: tabular-nums; }
.ap-trend { display: flex; align-items: center; gap: 8px; } .ap-trend .qq-spark { position: static; width: 70px; height: 24px; } .ap-trend small { color: var(--text-2); font-weight: 600; }
.ap-mut { color: var(--text-2); }
.ap-act { display: flex; justify-content: flex-end; gap: 2px; } .ap-act .qq-iconbtn { width: 34px; height: 34px; }
.ap-tfoot { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--text-2); font-size: .86rem; }
.ap-tfoot div { display: flex; align-items: center; gap: 6px; }
.ap-tfoot b, .ap-tfoot span { display: grid; place-items: center; min-width: 30px; height: 30px; border-radius: 8px; }
.ap-tfoot b { background: var(--ink); color: var(--on-ink); }
.ap-modal__ic { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto; border-radius: 20px; background: #fee2e2; color: #b91c1c; }
.ap-modal__ic .qq-ic { width: 32px; height: 32px; }
.ap-danger { background: #b91c1c !important; }
/* form bits (same as auth.css) */
.au-field { display: grid; gap: 6px; } .au-field > span { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: .86rem; }
.au-input { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); }
.au-input:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.au-input .qq-ic { width: 17px; height: 17px; color: var(--text-2); }
.au-input input { flex: 1; min-width: 0; width: 100%; border: 0; outline: 0; background: none; font: inherit; color: var(--text); }
.au-link { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 0; font: 600 .82rem var(--font); color: var(--accent); cursor: pointer; }
.au-link .qq-ic { width: 14px; height: 14px; }
@media (max-width: 1180px) { .ap-grid { grid-template-columns: 1fr 1fr; } .ap-span2 { grid-column: 1 / -1; } .ap-search { display: none; } }
@media (max-width: 960px) {
  .ap { grid-template-columns: 1fr; }
  .ap-side { position: fixed; left: 0; top: 0; z-index: 60; width: 270px; transform: translateX(-100%); transition: transform .25s; box-shadow: var(--sh-3); }
  .ap.is-nav .ap-side { transform: none; }
  .ap-burger { display: inline-grid; }
  .ap-kpis { grid-template-columns: 1fr 1fr; }
  .ap-row2, .cv-wrap { grid-template-columns: 1fr; }
  .cv-preview { position: static; }
  .ap-table { overflow-x: auto; } .ap-tr { min-width: 900px; }
  .ap-top { padding: 12px 16px; } .ap-content { padding: 16px; }
  .ap-top__act .ap-pill, .ap-top__act .qq-btn--light { display: none; }
}
@media (max-width: 560px) { .ap-grid, .ap-kpis { grid-template-columns: 1fr; } .ap-quick__grid { grid-template-columns: 1fr 1fr; } .cv-grid { grid-template-columns: 1fr; } .ap-top__title p { display: none; } }
@media (max-width: 560px) { .ap-top { flex-wrap: wrap; } }
.ap-quota > div small { display: block; }
.ap-bulk { position: fixed; top: auto; bottom: 84px; left: calc(50% + 126px); transform: translateX(-50%); z-index: 70; width: max-content; max-width: calc(100vw - 32px); }
@media (max-width: 960px) { .ap-bulk { left: 50%; } }
/* ---------- S2: New menu + shared app menu ---------- */
.ap-newmenu { position: relative; }
.ap-new { width: 100%; margin-bottom: 8px; }
.ap-newmenu--top .ap-new { margin: 0; }
.ap-new__caret { width: 13px !important; height: 13px !important; margin-left: auto; }
.ap-menu { position: absolute; left: 0; top: calc(100% + 8px); z-index: 70; width: 300px; padding: 8px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-3); animation: ap-in .18s ease; }
.ap-menu[hidden] { display: none; }
.ap-menu[data-newmenu-pop] { position: fixed; width: min(300px, calc(100vw - 16px)); max-height: calc(100dvh - 16px); overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 600px) {
  .ap-menu[data-newmenu-pop] { left: 0 !important; right: 0; top: auto !important; bottom: 0; width: 100%; max-height: 85dvh; border-radius: 18px 18px 0 0; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
  .ap-menu[data-newmenu-pop] a, .ap-menu[data-newmenu-pop] button { min-height: 44px; }
}
.ap-menu--right { left: auto; right: 0; }
.ap-newmenu--top .ap-menu { position: absolute; }
.ap-menu__it { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: none; font: inherit; text-decoration: none; color: var(--text); cursor: pointer; text-align: left; }
.ap-menu__it:hover { background: var(--surface-2); }
.ap-menu__it .qq-ic { width: 17px; height: 17px; color: var(--text-2); flex: none; }
.ap-menu__ic { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); }
.ap-menu__ic .qq-ic { width: 17px; height: 17px; color: var(--text); }
.ap-menu__tx { display: grid; gap: 1px; }
.ap-menu__tx b { font-size: .9rem; font-weight: 600; }
.ap-menu__tx small { color: var(--text-2); font-size: .78rem; }
.ap-menu__caret { width: 13px !important; height: 13px !important; margin-left: auto; transition: transform .2s; }
.ap-menu__it[aria-expanded="true"] .ap-menu__caret { transform: rotate(180deg); }
.ap-menu__sub { padding: 4px 4px 8px; }
.ap-menu__sub[hidden] { display: none; }
.ap-menu__types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
.ap-menu__types a { display: flex; align-items: center; gap: 7px; padding: 8px; border-radius: 9px; text-decoration: none; font-size: .82rem; font-weight: 500; }
.ap-menu__types a:hover { background: var(--surface-2); }
.ap-menu__types a .qq-ic { width: 15px; height: 15px; color: var(--text-2); }
.ap-menu__all { display: flex; align-items: center; gap: 6px; margin: 4px 4px 0; font-size: .82rem; font-weight: 700; text-decoration: none; }
.ap-menu__all .qq-ic { width: 13px; height: 13px; }
.ap-menu__it.is-danger { color: #b91c1c; }
.ap-menu__it.is-danger .qq-ic { color: #b91c1c; }
.ap-menu--card, .ap-menu--ctx { position: fixed; width: 220px; }
.ap-menu--save { width: 250px; }
.ap-menu--save label { display: grid; gap: 6px; padding: 8px; font-weight: 600; font-size: .84rem; }
.ap-menu--save input { min-height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); font: inherit; color: var(--text); }
.ap-menu--save .qq-btn { width: calc(100% - 16px); margin: 4px 8px 8px; }
.ap-menu--cols { width: 190px; }
.ap-menu--bulk { position: absolute; bottom: calc(100% + 8px); top: auto; left: 0; width: 220px; background: var(--surface); color: var(--text); }
.ap-bulk .ap-fwrap { position: relative; }
/* ---------- S2: dashboard ---------- */
.ap-range button { min-height: 32px; }
.ap-kpi em small { margin-left: 5px; font-weight: 500; color: var(--text-2); }
.ap-card__tools { display: inline-flex; align-items: center; gap: 8px; }
.ap-card__menu { width: 32px; height: 32px; }
.ap-card__menu .qq-ic { width: 17px; height: 17px; }
.ap-donut__d { stroke: #a1a1aa; }
.ap-legend li:nth-child(4) i { background: #a1a1aa; opacity: 1; }
.ap-bars { display: flex; align-items: flex-end; gap: 4px; height: 170px; padding-top: 6px; }
.ap-bars i { flex: 1; min-width: 0; border-radius: 4px 4px 2px 2px; background: var(--ink); opacity: .85; transform-origin: bottom; }
.ap-bars i:nth-child(odd) { opacity: .5; }
.ap-bars i.is-peak { background: var(--accent); opacity: 1; }
.ap-bars.is-day i { border-radius: 6px 6px 3px 3px; }
.ap-heat { display: grid; grid-template-columns: 30px repeat(24, 1fr); gap: 3px; align-items: center; }
.ap-heat b { font-size: .68rem; font-weight: 600; color: var(--text-2); }
.ap-heat i { aspect-ratio: 1.4; border-radius: 3px; background: var(--surface-3); }
.ap-heat i[data-l="1"] { background: #cfe6d8; }
.ap-heat i[data-l="2"] { background: #9ed2b2; }
.ap-heat i[data-l="3"] { background: #4cae76; }
.ap-heat i[data-l="4"] { background: #166534; }
:root[data-theme="dark"] .ap-heat i[data-l="1"] { background: #24483a; }
:root[data-theme="dark"] .ap-heat i[data-l="2"] { background: #2f6b4c; }
:root[data-theme="dark"] .ap-heat i[data-l="3"] { background: #3f9264; }
:root[data-theme="dark"] .ap-heat i[data-l="4"] { background: #6fcf97; }
.ap-heat__legend { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin-top: 8px; color: var(--text-2); font-size: .74rem; }
.ap-heat__legend i { width: 12px; height: 12px; border-radius: 3px; background: var(--surface-3); }
.ap-heat__legend i:nth-of-type(2) { background: #cfe6d8; }
.ap-heat__legend i:nth-of-type(3) { background: #9ed2b2; }
.ap-heat__legend i:nth-of-type(4) { background: #4cae76; }
.ap-heat__legend i:nth-of-type(5) { background: #166534; }
.ap-empty { display: grid; justify-items: center; gap: 6px; padding: 34px 16px; text-align: center; color: var(--text-2); }
.ap-empty b { color: var(--text); font-size: 1rem; }
.ap-empty p { margin: 0; font-size: .86rem; }
.ap-empty__ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--surface-2); color: var(--text-2); }
.ap-empty__ic .qq-ic { width: 26px; height: 26px; }
.ap-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.qq-card[data-card][hidden] { display: none; }
/* ---------- S2: saved views + table toolbar + mega filter ---------- */
.ap-views { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.ap-view { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: var(--pill); border: 1px solid transparent; background: none; font: 600 .86rem var(--font); color: var(--text-2); cursor: pointer; white-space: nowrap; }
.ap-view em { font-style: normal; font-size: .72rem; padding: 1px 7px; border-radius: var(--pill); background: var(--surface-2); color: var(--text-2); }
.ap-view:hover { background: var(--surface-2); color: var(--text); }
.ap-view.is-on { background: var(--surface); border-color: var(--line-2); color: var(--text); box-shadow: var(--sh-1); }
.ap-view.is-on em { background: var(--ink); color: var(--on-ink); }
.ap-view .qq-ic { width: 14px; height: 14px; }
.ap-view--add { border-style: dashed; border-color: var(--line-2); }
.ap-view__x { display: inline-grid; place-items: center; width: 20px; height: 20px; border: 0; border-radius: 50%; background: none; color: var(--text-2); cursor: pointer; }
.ap-view__x:hover { background: var(--surface-3); color: var(--text); }
.ap-view__x .qq-ic { width: 12px; height: 12px; }
.ap-views__custom { display: contents; }
.ap-saveview { position: relative; flex: none; }
.ap-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ap-tsearch { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 180px; max-width: 320px; min-height: 40px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.ap-tsearch .qq-ic { width: 16px; height: 16px; color: var(--text-2); }
.ap-tsearch input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; color: var(--text); }
.ap-fwrap { position: relative; }
.ap-fbtn { cursor: pointer; font: inherit; color: inherit; }
.ap-fbtn__n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: var(--pill); background: var(--accent); color: #fff; font-style: normal; font-size: .72rem; }
.ap-fbtn__n[hidden] { display: none; }
.ap-fclear { flex: none; }
.ap-spacer { flex: 1; }
.ap-fpop { position: absolute; left: 0; top: calc(100% + 8px); z-index: 70; display: grid; grid-template-columns: 200px 230px 230px; gap: 18px; width: max-content; max-width: min(720px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 200px)); overflow: auto; padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-3); animation: ap-in .18s ease; }
.ap-fpop[hidden] { display: none; }
.ap-fpop__col { display: grid; gap: 4px; align-content: start; }
.ap-fpop__col > b { margin: 8px 0 4px; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.ap-fpop__col > b:first-child { margin-top: 0; }
.ap-check { display: flex; align-items: center; gap: 9px; min-height: 34px; padding: 0 8px; border-radius: 9px; font-size: .86rem; font-weight: 500; cursor: pointer; }
.ap-check:hover { background: var(--surface-2); }
.ap-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ap-check .qq-ic { width: 15px; height: 15px; color: var(--text-2); }
.ap-check input:focus-visible + .ap-chk { outline: 2px solid var(--accent); outline-offset: 2px; }
.ap-check input:checked + .ap-chk { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--surface); }
.ap-fpop__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ap-tag { display: inline-flex; cursor: pointer; }
.ap-tag input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ap-tag span { display: inline-flex; min-height: 30px; align-items: center; padding: 0 11px; border-radius: var(--pill); border: 1px solid var(--line-2); background: var(--surface); font-size: .8rem; font-weight: 600; }
.ap-tag input:checked + span, button.ap-tag.is-on span { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.ap-tag input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
button.ap-tag { border: 0; background: none; padding: 0; font: inherit; color: inherit; }
.ap-fpop__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ap-fpop__row label { display: grid; gap: 4px; font-size: .78rem; font-weight: 600; color: var(--text-2); }
.ap-fpop__row input { min-height: 38px; width: 100%; padding: 0 8px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); font: inherit; color: var(--text); color-scheme: light; }
:root[data-theme="dark"] .ap-fpop__row input { color-scheme: dark; }
.ap-fpop__foot { display: flex; gap: 8px; margin-top: 14px; }
.ap-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ap-chips[hidden] { display: none; }
.ap-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 0 6px 0 11px; border-radius: var(--pill); background: var(--ink); color: var(--on-ink); font-size: .78rem; font-weight: 600; }
.ap-chip button { display: grid; place-items: center; width: 20px; height: 20px; border: 0; border-radius: 50%; background: rgba(255,255,255,.18); color: inherit; cursor: pointer; }
.ap-chip button .qq-ic { width: 11px; height: 11px; }
.ap-chip--clear { background: var(--surface-2); color: var(--text); border: 1px solid var(--line-2); cursor: pointer; font: inherit; }
/* ---------- S2: table extras, modal, toast ---------- */
.ap-tablewrap { min-width: 0; }
.ap-th button { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; text-transform: uppercase; letter-spacing: .05em; font-size: .72rem; font-weight: 700; }
.ap-th button .qq-ic { width: 12px; height: 12px; }
.ap-th [aria-sort="ascending"] .qq-ic, .ap-th [aria-sort="descending"] .qq-ic { color: var(--accent); }
.ap-table.hide-trend .ap-col-trend, .ap-table.hide-tags .ap-col-tags, .ap-table.hide-folder .ap-col-folder, .ap-table.hide-created .ap-col-created { display: none; }
.ap-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.ap-tags i { font-style: normal; padding: 1px 7px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); font-size: .72rem; font-weight: 600; color: var(--text-2); }
.ap-table.is-compact .ap-tr { padding-top: 5px; padding-bottom: 5px; font-size: .82rem; }
.ap-table.is-compact .ap-thumb { width: 30px; }
.ap-tr:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ap-act { opacity: 0; transition: opacity .15s; }
.ap-tr:hover .ap-act, .ap-tr:focus-within .ap-act { opacity: 1; }
@media (hover: none) { .ap-act { opacity: 1; } }
.ap-psize { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; }
.ap-psize select { min-height: 32px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); font: inherit; color: var(--text); }
.ap-tfoot [data-pages] { display: inline-flex; gap: 4px; }
.ap-tfoot [data-pages] button { min-width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; font: inherit; cursor: pointer; color: var(--text-2); }
.ap-tfoot [data-pages] button.is-on { background: var(--ink); color: var(--on-ink); font-weight: 700; }
/* modal (app pages do not load tools.css, so the overlay lives here) */
.tl-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(10,10,10,.5); opacity: 0; transition: opacity .2s; }
.tl-modal.is-open { opacity: 1; }
.tl-modal[hidden] { display: none !important; }
.tl-modal__box { position: relative; width: min(480px, 100%); max-height: calc(100vh - 32px); overflow: auto; display: grid; gap: 14px; padding: 28px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 80px -20px rgba(0,0,0,.45); text-align: center; transform: translateY(14px) scale(.98); transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.tl-modal.is-open .tl-modal__box { transform: none; }
.tl-modal__x { position: absolute; right: 12px; top: 12px; }
.tl-modal h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.tl-modal p { color: var(--text-2); }
.tl-modal__cta { display: grid; gap: 8px; }
.tl-modal__cta .qq-btn { width: 100%; }
.ap-modal__ic--ok { background: var(--accent-soft); color: var(--accent); }
.ap-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(10px); z-index: 120; display: flex; align-items: center; gap: 8px; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: var(--pill); background: var(--ink); color: var(--on-ink); font-weight: 600; font-size: .88rem; box-shadow: var(--sh-3); opacity: 0; transition: opacity .2s, transform .2s; }
.ap-toast[hidden] { display: none; }
.ap-toast.is-show { opacity: 1; transform: translateX(-50%); }
.ap-toast .qq-ic { width: 16px; height: 16px; }
/* ---------- S2: responsive ---------- */
@media (max-width: 1180px) { .ap-fpop { grid-template-columns: 190px 210px; } }
@media (max-width: 960px) {
  .ap-top__act .ap-range, .ap-top__act .ap-pill, .ap-top__act .qq-btn--light { display: none; }
  .ap-tablewrap { overflow-x: auto; }
  .ap-table { min-width: 980px; overflow: hidden; }
  .ap-tr { min-width: 0; }
  .ap-fpop { position: fixed; left: 16px; right: 16px; top: 120px; width: auto; max-width: none; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .ap-grid, .ap-kpis { grid-template-columns: 1fr; }
  .ap-span2 { grid-column: auto; }
  .ap-heat { grid-template-columns: 24px repeat(12, 1fr); }
  .ap-heat [data-h="odd"] { display: none; }
  .ap-table { min-width: 0; }
  .ap-th { display: none; }
  .ap-tablewrap { overflow-x: visible; }
  .ap-tr { grid-template-columns: 28px 1fr auto auto auto !important; row-gap: 4px; }
  .ap-tr .ap-type, .ap-tr .ap-col-trend, .ap-tr .ap-col-tags, .ap-tr .ap-col-folder, .ap-tr .ap-col-created, .ap-tr [data-sort] { display: none; }
  .ap-fpop { grid-template-columns: 1fr; top: 100px; }
  .ap-menu { width: min(300px, calc(100vw - 32px)); }
  .ap-quick__grid { grid-template-columns: 1fr 1fr; }
  .ap-top__title p { display: none; }
  .ap-tfoot { flex-wrap: wrap; gap: 10px; }
}
[data-reset-cards][hidden] { display: none !important; }

/* collapsible sidebar (rail): every app page, remembered per browser */
.ap-brandrow { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.ap-brandrow .ap-brand { padding-bottom: 4px; }
.ap-railbtn { width: 34px; height: 34px; color: var(--text-2); }
.ap-side { transition: padding .3s cubic-bezier(.22,1,.36,1); }
.ap { transition: grid-template-columns .3s cubic-bezier(.22,1,.36,1); }
.ap-brandrow { margin-bottom: 10px; }
@media (min-width: 961px) {
  html[data-rail="1"] .ap { grid-template-columns: 72px minmax(0, 1fr); }
  html[data-rail="1"] .ap-side { padding: 14px 10px; align-items: center; overflow: visible; }
  html[data-rail="1"] .ap-brandrow { flex-direction: column; }
  html[data-rail="1"] .ap-brand b, html[data-rail="1"] .ap-quota, html[data-rail="1"] .ap-user > div, html[data-rail="1"] .ap-user > .qq-ic, html[data-rail="1"] .ap-new__caret { display: none; }
  html[data-rail="1"] .ap-brand { padding: 4px; }
  html[data-rail="1"] .ap-railbtn .qq-ic { transform: scaleX(-1); }
  html[data-rail="1"] .ap-new { width: 44px; height: 44px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
  html[data-rail="1"] .ap-new .qq-ic { width: 18px; height: 18px; }
  html[data-rail="1"] .ap-newmenu .ap-menu { left: 0; width: 280px; }
  html[data-rail="1"] .ap-nav { width: 100%; }
  html[data-rail="1"] .ap-nav a { justify-content: center; padding: 0; font-size: 0; position: relative; }
  html[data-rail="1"] .ap-nav a em { position: absolute; top: 2px; right: 4px; padding: 0 5px; font-size: .62rem; }
  html[data-rail="1"] .ap-side__sep { width: 100%; }
  html[data-rail="1"] .ap-user { grid-template-columns: 36px; padding: 6px; margin-top: auto; }
}
@media (max-width: 960px) { .ap-railbtn { display: none; } }
/* ---------- S8: kit-style view tabs, bulk bar, reusable table ---------- */
.ap-tpage { display: grid; gap: 16px; min-width: 0; }
.ap-views { justify-content: flex-start; gap: 2px; border-bottom: 1px solid var(--line); padding-bottom: 0; }
.ap-views::-webkit-scrollbar { display: none; }
.ap-view { flex: none; min-height: 36px; padding: 6px 10px 10px; border: 0; border-radius: 8px 8px 0 0; background: none; position: relative; }
.ap-view:hover { background: var(--surface-2); color: var(--text); }
.ap-view.is-on { background: none; border: 0; box-shadow: none; color: var(--text); }
.ap-view.is-on::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--ink); }
.ap-view.is-on em { background: var(--ink); color: var(--on-ink); }
.ap-view--add { border: 0; font-size: .82rem; color: var(--text-2); margin-left: 4px; }
.ap-view--add:hover { background: none; color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.ap-view--add::after { content: none !important; }
.ap-menu--save { position: fixed; }
.ap-toolbar { align-items: center; }
.ap-bulk .is-danger { background: #dc2626; border-color: #dc2626; color: #fff; }
.ap-bulk .is-danger:hover { background: #b91c1c; border-color: #b91c1c; color: #fff; }
.ap-danger { background: #dc2626 !important; color: #fff !important; }
.ap-danger:hover { background: #b91c1c !important; color: #fff !important; }
:root[data-theme="dark"] .ap-menu__it.is-danger, :root[data-theme="dark"] .ap-menu__it.is-danger .qq-ic { color: #f87171; }
.ap-empty[hidden] { display: none; }
.ap-empty--full { padding: 48px 16px; gap: 10px; }
.ap-empty--full .qq-img { width: min(320px, 100%); }
.ap-empty--full .qq-img em { display: grid; }
.ap-empty__img { margin-bottom: 4px; }
.ap-table .ap-tr[data-href] { cursor: pointer; }
.qq-st--shared::before { background: var(--accent); }
.qq-st--private::before { background: #a1a1aa; }
.ap-table.hide-language .ap-col-language, .ap-table.hide-views .ap-col-views, .ap-table.hide-downloads .ap-col-downloads, .ap-table.hide-share .ap-col-share, .ap-table.hide-link .ap-col-link, .ap-table.hide-theme .ap-col-theme, .ap-table.hide-clicks .ap-col-clicks, .ap-table.hide-scans .ap-col-scans, .ap-table.hide-template .ap-col-template { display: none; }
.ap-share { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .8rem; }
.ap-share::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.ap-share--on::before { background: var(--ok, #4ade80); }
.ap-cardav { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--ink); color: var(--on-ink); font-weight: 800; font-size: .8rem; }
.ap-mini { flex: none; width: 30px; height: 40px; padding: 5px 4px; border-radius: 4px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 3px; align-content: start; }
.ap-mini u { display: block; height: 3px; border-radius: 2px; background: var(--surface-3); }
.ap-mini u:first-child { width: 60%; background: var(--ink); }
.ap-mono { font-family: var(--mono); font-size: .78rem; color: var(--text-2); }
@media (max-width: 640px) {
  .ap-table[data-table-id="cvs"] .ap-tr { grid-template-columns: 28px 1fr auto auto !important; }
  .ap-table[data-table-id="cvs"] .ap-col-template, .ap-table[data-table-id="cvs"] .ap-col-language, .ap-table[data-table-id="cvs"] .ap-col-edited, .ap-table[data-table-id="cvs"] .ap-col-views, .ap-table[data-table-id="cvs"] .ap-col-downloads, .ap-table[data-table-id="cvs"] .ap-col-share { display: none; }
  .ap-table[data-table-id="cards"] .ap-tr { grid-template-columns: 28px 1fr auto auto !important; }
  .ap-table[data-table-id="cards"] .ap-col-link, .ap-table[data-table-id="cards"] .ap-col-theme, .ap-table[data-table-id="cards"] .ap-col-views, .ap-table[data-table-id="cards"] .ap-col-clicks, .ap-table[data-table-id="cards"] .ap-col-scans { display: none; }
}

/* fix: tab bars were spread over the full width because the view-mode switch shares the .ap-view class (margin-left:auto). Tabs sit left, compact, like the kit. */
.ap-views { justify-content: flex-start !important; }
.ap-views .ap-view, .ap-views__custom .ap-view { margin-left: 0 !important; display: inline-flex; padding: 0 2px; border: 0; background: none; }
.ap-views .ap-view { padding: 8px 10px 12px; }
.ap-views .ap-view--add, .ap-saveview { margin-left: 6px !important; }
.ap-views__custom { display: inline-flex; gap: 2px; }
/* toasts never block clicks on what is under them */
.ap-toast { pointer-events: none; }
.ap-toast a, .ap-toast button { pointer-events: auto; }

/* U-POLISH: a search input never draws its own square focus outline; the rounded wrapper shows the kit focus ring */
input[type="search"]:focus, input[type="search"]:focus-visible { outline: none !important; box-shadow: none; }
:is(.ap-search, .at-search, .p16-search):focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
/* F-FORM: same rule everywhere — one rounded kit focus ring on the wrapper only.
   Nested inputs (save modal Name/Tags/Opens, folder/tag create, tool fields) must not draw
   a second square outline inside it; the app-tools :focus-visible rule outranks the
   per-component resets, so this wins the same way the search rule above does. */
.at-input input:focus, .at-input input:focus-visible,
.ap2-input input:focus, .ap2-input input:focus-visible,
.ap2-chips__box input:focus, .ap2-chips__box input:focus-visible,
.at-search input:focus, .at-search input:focus-visible,
.qk-orginp input:focus, .qk-orginp input:focus-visible,
.p16-input input:focus, .p16-input input:focus-visible { outline: none !important; box-shadow: none; }
/* kit ring on wrappers that lacked it (.at-input only tinted its border; the
   folder/tag modal input had no focus ring at all). Scoped to outrank the
   later app-tools.css rule for .at-input. */
.at-page .at-input:focus-within, .p16-input:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- K1 shell fixes (sidebar, New-menu flyout, notifications drawer) ---------- */
/* K1-1: a long name/email truncates with an ellipsis; the sidebar never scrolls sideways */
.ap-side { overflow-x: hidden; overflow-y: auto; }
.ap-user > div { min-width: 0; }
.ap-user b, .ap-user small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-user small { display: block; }
/* K1-2: the QR submenu is a flyout OUTSIDE the sidebar (fixed by app.js, right of
   the menu). Kit popover panel on its own surface, distinct from the sidebar. */
.ap-menu__sub--fly { position: fixed; z-index: 90; width: 264px; max-width: calc(100vw - 16px); max-height: min(70vh, 560px); overflow-y: auto; overscroll-behavior: contain; padding: 8px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--sh-3); animation: ap-in .15s ease; }
.ap-menu__sub--fly .ap-menu__types a:hover { background: var(--surface-3); }
/* K1-4: notifications drawer (every app page; the bell opens it via app.js) */
.s5-ntf { position: fixed; top: 0; right: 0; bottom: 0; z-index: 90; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 24px)); padding: 18px 16px 16px; background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--sh-3); animation: s5-slidein .25s cubic-bezier(.2,.7,.2,1); }
@keyframes s5-slidein { from { transform: translateX(40px); opacity: 0; } }
.s5-ntf[hidden] { display: none; }
.s5-ntf__head { display: flex; align-items: center; gap: 8px; }
.s5-ntf__head > div { flex: 1; display: grid; }
.s5-ntf__head b { font-size: 1.1rem; }
.s5-ntf__head small { color: var(--text-2); font-size: .78rem; }
.s5-ntf__tabs { width: 100%; }
.s5-ntf__tabs button { flex: 1; justify-content: center; }
.s5-ntf__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; overflow-y: auto; }
.s5-ntf__list li { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; border: 1px solid var(--line); }
.s5-ntf__list li[hidden] { display: none; }
.s5-ntf__list div { flex: 1; min-width: 0; display: grid; }
.s5-ntf__list b { font-size: .86rem; }
.s5-ntf__list small { color: var(--text-2); font-size: .76rem; }
.s5-ntf__list i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--accent); }
.s5-ntf__list li.is-read i { display: none; }
.s5-ntf__ic { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.s5-ntf__ic .qq-ic { width: 16px; height: 16px; }
.s5-ntf__foot { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: 12px; border: 1px solid var(--line); font-weight: 600; font-size: .86rem; text-decoration: none; }
.s5-ntf__foot .qq-ic { width: 15px; height: 15px; }

/* user rule 2026-11-28: no inner focus border on inputs anywhere.
   R-UI: box-shadow needs !important too — later-loading sheets (p1-1..p1-4,
   app3, auth2) paint their own :focus rings which beat a normal declaration.
   Wrapper kit rings (:focus-within on .cx-f__in/.at-input/.qk-orginp/...) are
   unaffected: this only silences the nested control itself. */
input:focus, input:focus-visible, textarea:focus, textarea:focus-visible, select:focus, select:focus-visible, [contenteditable]:focus, [contenteditable]:focus-visible { outline: 0 !important; outline-offset: 0 !important; box-shadow: none !important; }

/* ---------- S-UI2: shell menus paint above main content ---------- */
/* Root cause: the sidebar had no stacking context of its own (sticky + z-auto
   on desktop) while .ap-main establishes positioned layers (.ap-top z-20 +
   backdrop-filter, .ap-bulk z-70, card/row/filter/save/org popovers z-70..80,
   transformed chart internals). Both user-menu implementations live inside the
   sidebar subtree (.s5-acc absolute in .ap-user; .ap-usermenu inserted via
   chip.after()), and the menu opens at bottom-left where its right strip
   overlaps the main column (up to 300px wide from x~12px; main starts at
   252px) — exactly where the bottom analytics cards sit. One stacking context
   on the sidebar lifts every current and future sidebar menu above all main
   content at once (no per-menu z-index chase, no JS churn). 80 stays below the
   global overlays (command palette 90, modal 100, toast 120, tour 9000), and
   unifies the mobile drawer (was 60) with desktop. Portaled menus (New menus,
   flyout, notification drawer, tooltips) already live on body with correct
   z-indexes and are unaffected. */
.ap-side { z-index: 80; }
