/* Account center at bstack.cc/account (chosen prototype: public/lab/panel). Parts are bqrc's chosen frame
   (chrome bar, paper cards) and bpad's controls. */
html, body { margin: 0; }
body { background: var(--sidebar-bg); color: var(--ink); font-family: var(--font-ui); font-size: 14px; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button { font: inherit; color: inherit; }
a { color: inherit; }
svg { flex: none; display: block; }
h1, h2, p { margin: 0; }

/* Graph paper behind the top of the page, from the logo grid (bqrc) */
/* v3: no background pattern. Source Serif 4 for headings and reading text, Hanken Grotesk (body default) for the interface,
   DM Mono only for data: counts, sizes, domains, file names (.num, .mono). */
h1, h2, h3 { font-family: var(--font-text); font-weight: var(--fw-heading); letter-spacing: var(--tracking-heading); }

/* Controls, as in bqrc */
.btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--editor-bg); border: 0; border-radius: var(--radius-btn); padding: 8px 16px; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: opacity var(--dur-fast) var(--ease), transform var(--dur-press) var(--ease-overshoot); }
.btn-primary:hover { opacity: .85; }
.btn-primary:active { transform: scale(.97); }
.btn-primary:disabled { opacity: .25; cursor: default; transform: none; }
.btn-primary.sm { padding: 6px 12px; font-size: 12px; }
.btn-text { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; border-radius: var(--radius-btn); color: var(--ink-soft); padding: 6px 10px; font-size: 13px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.btn-text:hover { background: var(--hover); color: var(--ink); }
.btn-line { display: inline-flex; align-items: center; gap: 6px; background: var(--editor-bg); border: 1px solid var(--border); border-radius: var(--radius-btn); color: var(--ink); padding: 6px 12px; font-size: 13px; cursor: pointer; white-space: nowrap; transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease); }
.btn-line:hover { border-color: var(--decor); background: var(--hover); }
.btn-del { color: var(--danger); }
.btn-del:hover { color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, transparent); }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: var(--radius-btn); color: var(--ink-soft); background: none; border: 0; cursor: pointer; text-decoration: none; flex: none; transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.icon-btn:hover { background: var(--hover); color: var(--ink); }
.icon-btn.sm { width: 28px; height: 28px; }
.cap { font-size: var(--fs-ui-sm); font-weight: 500; color: var(--muted); }
.muted { color: var(--muted); }
.soft { color: var(--ink-soft); }
.meta { font-size: 12px; color: var(--muted); }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums slashed-zero; }
.mono { font-family: var(--font-mono); }
.grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.spacer { flex: 1; }
.inline { display: inline-flex; align-items: center; gap: 6px; }
.input { width: 100%; background: var(--editor-bg); color: var(--ink); border: 1px solid var(--border); border-radius: var(--radius-input); padding: 9px 12px; font: inherit; font-size: 16px; outline: none; caret-color: var(--accent); transition: border-color var(--dur-fast) var(--ease); }
.input:focus { border-color: var(--accent); }
.seg { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.seg button { flex: none; font-size: 12px; padding: 6px 10px; border-radius: var(--radius-btn); cursor: pointer; background: var(--editor-bg); color: var(--ink-soft); border: 1px solid var(--border); transition: all var(--dur-fast) var(--ease); }
.seg button .num { color: var(--muted); margin-left: 4px; }
.seg button:hover { color: var(--ink); border-color: var(--decor); }
.seg button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.seg button[aria-pressed="true"] .num { color: var(--accent-ink); }
.logo { display: block; flex: none; border-radius: 22%; box-shadow: inset 0 0 0 1px var(--frame), 0 1px 2px rgba(0,0,0,.06); }
@media (max-width: 767px) { .hide-phone { display: none !important; } }

/* Chrome bar */
.chrome { position: sticky; top: 0; z-index: var(--z-bar); height: 48px; display: flex; align-items: center; gap: 4px; padding: 0 16px; border-bottom: 1px solid var(--border); background: var(--editor-bg); }
.crumb { display: flex; align-items: center; gap: 10px; font-size: 13px; text-decoration: none; }
.crumb .mark { width: 18px; height: 18px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--frame); }
.crumb b { font-weight: 500; margin-left: -2px; }
.crumb .sep { color: var(--decor); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--ink-soft); padding: 0 8px; }
.wm-dark { display: none !important; }
.dark .wm-dark { display: block !important; }
.dark .wm-light { display: none !important; }

/* Page and tile grid */
.page { width: 100%; max-width: 1120px; margin: 0 auto; padding: 44px 32px 120px; }
.page-head h1 { font-size: var(--fs-heading-1); line-height: var(--lh-heading); margin-bottom: 8px; }
.page-head p { font-family: var(--font-text); font-size: var(--fs-text); color: var(--ink-soft); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 20px; background: var(--editor-bg); border: 1px solid var(--border); border-radius: var(--radius-modal); box-shadow: 0 1px 2px rgba(0,0,0,.04); animation: tile-in 420ms var(--ease-overshoot) both; }
.tile:nth-child(2) { animation-delay: 30ms } .tile:nth-child(3) { animation-delay: 60ms } .tile:nth-child(4) { animation-delay: 90ms } .tile:nth-child(5) { animation-delay: 120ms } .tile:nth-child(6) { animation-delay: 150ms } .tile:nth-child(7) { animation-delay: 180ms } .tile:nth-child(8) { animation-delay: 210ms }
@keyframes tile-in { from { opacity: 0; transform: translateY(6px) scale(.99) } }
.booted .tile, .booted .bar > span { animation: none; }
.t-account { grid-column: span 5; } .t-storage { grid-column: span 7; }
.t-tool { grid-column: span 6; }
.t-signins { grid-column: span 5; grid-row: span 2; } .t-apps, .t-export { grid-column: span 7; }
.export-row { display: flex; align-items: center; gap: 16px; }
.peek { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mini { display: flex; flex-direction: column; padding: 0; background: var(--editor-bg); border: 1px solid var(--border); border-radius: var(--radius-btn); overflow: hidden; cursor: pointer; text-align: left; transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease); }
.mini:hover { transform: translateY(-2px); border-color: var(--decor); box-shadow: var(--shadow-lift); }
.mini .pv, .mini > .paper { height: 72px; }
.mini > .paper { padding: 8px 8px 0; }
.mini .paper::before { inset: 8px 8px -6px; border-radius: 4px 4px 0 0; }
.mini .paper b { font-size: 11px; padding: 8px 8px 0; margin-bottom: 3px; }
.mini .paper p { font-size: 8px; padding: 0 8px; -webkit-line-clamp: 3; }
.mini .pv-code .qr { width: 44px; height: 44px; padding: 4px; }
.mini .pv-preset span { width: 18px; height: 18px; }
.mini-t { font-size: 11px; padding: 6px 8px 7px; border-top: 1px solid var(--border); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-more { align-items: center; justify-content: center; gap: 4px; background: var(--sidebar-bg); border-style: dashed; }
.mini-more .big { font-size: 20px; }
.contents { display: flex; flex-wrap: wrap; gap: 6px; }
.content-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; background: var(--sidebar-bg); border-radius: var(--radius-btn); font-size: 12px; }
.content-chip .logo { border-radius: 4px; }
.content-chip .muted { margin-left: 2px; }
.paper.stack::after { content: ''; position: absolute; inset: 8px 22px auto; height: 6px; background: var(--editor-bg); opacity: .6; border-radius: 6px 6px 0 0; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
@media (max-width: 767px) { .export-row { flex-direction: column; align-items: flex-start; } }
.t-delete { grid-column: span 12; }
.tile-head { display: flex; align-items: center; gap: 10px; }
.tile-ic { width: 18px; height: 28px; color: var(--ink-soft); display: inline-flex; align-items: center; justify-content: center; flex: none; } /* no box behind the icon (v2 Don't) */
.tile-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.tile-lead { font-family: var(--font-text); font-size: var(--fs-text-sm); line-height: 1.5; color: var(--ink-soft); }
.fine { font-family: var(--font-text); font-size: 14px; line-height: 1.5; margin-top: auto; }
.big { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.big .muted { font-size: 13px; letter-spacing: 0; font-weight: 400; }

/* Account */
.who { display: flex; align-items: center; gap: 14px; }
.avatar { width: 52px; height: 52px; border-radius: var(--radius-card); background: var(--ink); color: var(--editor-bg); display: inline-flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 500; position: relative; overflow: hidden; flex: none; }
.avatar { border: 0; padding: 0; cursor: pointer; font-family: inherit; transition: opacity var(--dur-fast) var(--ease); }
.avatar:hover { opacity: .85; }
.avatar:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.who-name { font-size: 15px; font-weight: 500; }
.who .grow > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who > .btn-text { flex: none; }
.methods { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.method { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 4px 10px 4px 8px; border: 1px solid var(--border); border-radius: var(--radius-pill); color: var(--ink-soft); }
.method .g { font-weight: 500; font-size: 12px; width: 13px; text-align: center; color: var(--ink); }
.methods .meta { margin-left: 4px; }

/* Storage */
.t-storage .bar { height: 12px; border-radius: 6px; }
.bar { display: flex; height: 6px; border-radius: 3px; background: var(--hover); overflow: hidden; gap: 2px; }
.bar > span { display: block; height: 100%; animation: bar-in 700ms var(--ease-overshoot) 200ms both; transform-origin: left; }
@keyframes bar-in { from { transform: scaleX(0) } }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 12px; }
.legend > span { display: inline-flex; align-items: center; gap: 8px; }
.legend .logo { border-radius: 4px; }

/* Tool tiles */
.t-tool { box-shadow: inset 0 3px 0 var(--t), 0 1px 2px rgba(0,0,0,.04); }
.tool-top { display: flex; align-items: center; gap: 14px; }
.tool-name { font-size: 15px; font-weight: 500; }
.tool-stat { display: flex; align-items: baseline; gap: 10px; }
.tool-stat .muted { font-size: 13px; }
.breakdown { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; }
.kind { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--sidebar-bg); border: 1px solid transparent; border-radius: var(--radius-btn); font-size: 12px; text-align: left; cursor: pointer; transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease); }
.kind:hover { border-color: var(--decor); background: var(--editor-bg); }
.kind > span:nth-child(2) { flex: 1; }
.kind .num { color: var(--muted); }
.kind-ic { color: var(--t); display: inline-flex; }

/* Empty state: a faint ghost of what would be here */
.empty { display: flex; flex-direction: column; gap: 12px; }
.ghost { display: grid; gap: 8px; opacity: .6; }
.ghost i { display: block; height: 30px; border-radius: var(--radius-btn); background: var(--sidebar-bg); }
/* Loading placeholders (.gb): shaped like the content they stand in for, with a slow shimmer. */
.gb { display: block; flex: none; max-width: 100%; border-radius: var(--radius-btn); background: linear-gradient(90deg, var(--sidebar-bg) 30%, color-mix(in srgb, var(--sidebar-bg) 40%, var(--editor-bg)) 50%, var(--sidebar-bg) 70%) var(--sidebar-bg); background-size: 300% 100%; animation: shimmer 1.6s var(--ease) infinite; }
.grow > .gb + .gb { margin-top: 6px; }
@keyframes shimmer { from { background-position: 100% 0 } to { background-position: 0 0 } }
@media (prefers-reduced-motion: reduce) { .gb { animation: none !important; } }
@media (max-width: 767px) { .gb-wrap { height: 28px !important; } .gb-fine { height: 42px !important; } }
.ghost i:nth-child(2) { width: 82%; } .ghost i:nth-child(3) { width: 64%; }

/* Sign-ins and apps */
.devices { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 13px; }
.devices li { display: flex; align-items: center; gap: 12px; }
.dev-ic, .wipe-ic { width: 20px; height: 32px; color: var(--ink-soft); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.app-mark { width: 32px; height: 32px; border-radius: var(--radius-btn); background: var(--sidebar-bg); color: var(--ink-soft); display: inline-flex; align-items: center; justify-content: center; flex: none; } /* a letter standing in for an app's logo keeps its square */
.here { font-size: 11px; padding: 2px 6px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent-ink); margin-left: 4px; }
.app { display: flex; align-items: center; gap: 12px; font-size: 13px; max-height: 120px; }
.app-mark { font-weight: 500; color: var(--ink); }

/* Delete tile: calm, same weight as the rest */
.t-delete { flex-direction: row; align-items: center; gap: 16px; background: transparent; box-shadow: none; border-style: dashed; border-color: color-mix(in srgb, var(--danger) 40%, var(--border)); }
.big-ic { width: 24px; height: 40px; }
.del-title { font-size: 14px; font-weight: 500; }

/* In-place confirm (bqrc My codes) */
.confirm { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; white-space: nowrap; animation: fade var(--dur-menu) var(--ease); }
.confirm .q { padding-right: 6px; color: var(--ink); }
@keyframes fade { from { opacity: 0 } }

/* Version 1: the side panel */
.sheet-scrim { position: fixed; inset: 0; background: var(--scrim-light); z-index: var(--z-modal); }
.sheet-scrim.anim { animation: fade var(--dur-base) var(--ease); }
.panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(540px, 100vw); z-index: calc(var(--z-modal) + 1); display: flex; flex-direction: column; background: var(--editor-bg); border-left: 1px solid var(--border); box-shadow: -12px 0 40px rgba(0,0,0,.12); }
.panel.anim { animation: panel-in var(--dur-sheet) var(--ease-overshoot); }
@keyframes panel-in { from { transform: translateX(32px); opacity: 0 } }
.panel-head { display: flex; align-items: center; gap: 14px; padding: 20px 20px 16px; }
.panel .seg { padding: 0 20px 14px; border-bottom: 1px solid var(--border); }
.panel-list { flex: 1; overflow-y: auto; padding: 8px 10px; }
.panel-foot { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 12px 20px; border-top: 1px solid var(--border); background: var(--sidebar-bg); }
.irow { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--radius-btn); max-height: 90px; transition: background var(--dur-instant) var(--ease); }
.irow:hover { background: var(--hover); }
.ithumb { width: 20px; height: 36px; color: var(--t); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ititle { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.irow .meta { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acts { display: inline-flex; opacity: 0; transition: opacity var(--dur-fast) var(--ease); }
.irow:hover .acts, .irow:focus-within .acts, .card:hover .acts, .card:focus-within .acts { opacity: 1; }
@media (hover: none) { .acts { opacity: 1; } }
.row-out { animation: row-out 320ms var(--ease) forwards; overflow: hidden; }
@keyframes row-out { 0% { opacity: 1 } 40% { opacity: .3 } 100% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0 } }

/* Version 2: a tool opens into a page of item tiles */
.back { margin: 0 0 14px -10px; }
.t-hero { flex-direction: row; align-items: center; gap: 16px; box-shadow: inset 0 3px 0 var(--t), 0 1px 2px rgba(0,0,0,.04); margin-bottom: 20px; flex-wrap: wrap; }
.hero-name { font-size: 18px; font-weight: 500; }
.hero-stat { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; margin-right: 8px; }
.page > .seg { margin-bottom: 16px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(208px, 1fr)); gap: 14px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--editor-bg); border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease); animation: tile-in 360ms var(--ease-overshoot) both; }
.booted .card { animation: none; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); border-color: var(--decor); }
.card.row-out { animation: card-out 300ms var(--ease) forwards; }
@keyframes card-out { to { opacity: 0; transform: scale(.94) } }
.pv, .paper-wrap { height: 128px; }
.pv { display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--t) 7%, var(--sidebar-bg)); color: var(--t); }
.card > .paper { height: 128px; margin: 0; padding: 14px 16px 0; background: var(--sidebar-bg); overflow: hidden; position: relative; }
.paper::before { content: ''; position: absolute; inset: 14px 14px -6px; background: var(--editor-bg); border-radius: 6px 6px 0 0; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 6px 16px -8px rgba(0,0,0,.12); }
.paper b, .paper p { position: relative; display: block; padding: 0 12px; }
.paper b { font-size: 11px; font-weight: 500; padding-top: 12px; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.paper p { font-size: 11px; line-height: 1.55; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pv-code .qr { width: 72px; height: 72px; padding: 6px; background: #fff; border-radius: 6px; fill: #1A1A1A; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.pv-preset { gap: 8px; }
.pv-preset span { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--frame); }
.card-body { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 14px; border-top: 1px solid var(--border); }
.card-body .meta { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-acts { position: absolute; top: 8px; right: 8px; }
.card-acts .acts { background: var(--editor-bg); border-radius: var(--radius-btn); box-shadow: var(--shadow-menu); padding: 2px; }
.card-confirm { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: color-mix(in srgb, var(--editor-bg) 92%, transparent); backdrop-filter: blur(2px); font-size: 13px; animation: fade var(--dur-menu) var(--ease); }
.card-confirm div { display: flex; gap: 6px; }
.empty-tile { grid-column: 1 / -1; }

/* Sheet: export and delete (bpad Appearance sheet) */
.sheet { position: fixed; right: 0; bottom: 0; width: min(460px, 100vw); max-height: 90dvh; overflow-y: auto; z-index: calc(var(--z-modal) + 1); background: var(--editor-bg); border: 1px solid var(--border); border-radius: var(--radius-modal) 0 0 0; box-shadow: var(--shadow-sheet); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.sheet.anim { animation: sheet-up var(--dur-sheet) var(--ease-overshoot); }
@media (max-width: 640px) { .sheet { border-radius: var(--radius-modal) var(--radius-modal) 0 0; } }
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0 } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; }
.sheet-title { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.sheet-foot { display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap; }
.zip { border: 1px solid var(--border); border-radius: var(--radius-card); overflow: hidden; font-size: 13px; }
.zip-file { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--sidebar-bg); }
.zip-file b { font-weight: 500; font-size: 12px; }
.zip-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--border); }
.zip-row .logo { border-radius: 4px; }
.zip-st { color: var(--ink-soft); }
.wipe { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-card); font-size: 13px; }
.wipe li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.wipe li + li { border-top: 1px solid var(--border); }
.wipe .logo { border-radius: 5px; }
.wipe-ic { height: 20px; }
.type-label { font-size: 12px; color: var(--ink-soft); margin-bottom: -6px; }
.type-label b { font-weight: 500; color: var(--ink); }
.spin { animation: spin 900ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg) } }

/* Deleted */
.t-gone { max-width: 520px; margin: 40px auto 0; align-items: center; text-align: center; padding: 40px 32px; }
.t-gone h1 { font-size: var(--fs-heading-2); }
.done-ic { color: var(--ink-soft); display: inline-flex; } /* plain icon, no circle behind it (v2 Don't) */


@media (max-width: 1023px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid > .tile { grid-column: span 1; }
  .t-storage, .t-delete { grid-column: span 2 !important; }
}
@media (max-width: 767px) {
  .page { padding: 28px 16px 96px; }
  .grid { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 20px; }
  .grid > .tile, .t-storage, .t-delete { grid-column: span 1 !important; grid-row: auto; }
  .tile { padding: 16px; }
  .t-delete { flex-wrap: wrap; }
  .t-delete .grow { flex: 1 1 calc(100% - 40px); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pv, .card > .paper { height: 104px; }
  .t-hero .grow { flex: 1 1 0; }
  .hero-stat { flex-basis: 100%; flex-direction: row; align-items: baseline; gap: 8px; order: 3; }
  .t-hero .confirm, .t-hero > .btn-line { order: 4; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; } }

/* Live page extras */
.err { color: var(--danger); }
.pw-row { display: flex; gap: 6px; align-items: center; }
.tile-foot.center { justify-content: center; }
.t-gone .tile-foot { margin-top: 4px; }

/* Suite footer (design/footer.html) */
.suite-footer { margin-top: auto; padding: 20px 16px 24px; border-top: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; gap: 14px; font-family: var(--font-ui); font-size: 12px; color: var(--muted); text-align: center; }
.suite-footer a { color: inherit; text-decoration: none; transition: color var(--dur-fast) var(--ease); }
.suite-footer a:hover { color: var(--ink); }
.suite-footer .sf-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.suite-footer .sf-tools a { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px 5px 5px; border: 1px solid var(--border); border-radius: var(--radius-btn); background: var(--editor-bg); color: var(--ink-soft); font-size: 12px; transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.suite-footer .sf-tools a:hover { border-color: var(--decor); color: var(--ink); }
.suite-footer .sf-tools a[aria-current="page"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.suite-footer .sf-tools img { width: 18px; height: 18px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--frame); display: block; }
.suite-footer .sf-dark { display: none !important; }
.dark .suite-footer .sf-dark { display: block !important; }
.dark .suite-footer .sf-light { display: none !important; }
.suite-footer .sf-trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
.suite-footer .sf-by { font-size: 11px; margin: 0; }
.suite-footer .sf-home { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; }
.suite-footer .sf-home img { width: 14px; height: 14px; border-radius: 3px; display: block; }
/* The footer sits at the bottom of the window even when the page is short: the page's outer
   wrapper is a full-height column and the footer pushes itself down with margin-top: auto. */
.suite-page { min-height: 100dvh; display: flex; flex-direction: column; }

/* Claude's per-tool switches under its row (same switch as bqrc and btext) */
.claude-tools { list-style: none; margin: 0 0 0 44px; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.claude-tools li { display: flex; align-items: center; gap: 10px; }
.claude-tools .logo { border-radius: 5px; }
.claude-tools label { cursor: pointer; }
.switch { appearance: none; width: 30px; height: 18px; border-radius: 9px; background: var(--border); position: relative; cursor: pointer; flex: none; margin: 0; transition: background var(--dur-fast) var(--ease); }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--editor-bg); transition: transform var(--dur-fast) var(--ease-overshoot); }
.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(12px); }
