/* Non-table surfaces only. Keep artwork dominant and secondary tools together. */
#app main { padding-bottom:60px; }
#app .topbar { min-height:54px; height:auto; margin-bottom:10px; gap:12px; }
#app .topbar>div { display:flex; align-items:center; gap:6px; }
#app .topbar .button { min-height:34px; padding:7px 11px; }
#app .topbar>span { color:#9aafa1; }
#app .topbar strong { color:#e1d5b4; }
#app .topbar .collection-more>summary { min-height:34px; padding:6px 12px; }
#notifications-open { display:inline-flex; align-items:center; gap:7px; }
.notification-icon { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
#app .stats { margin:0 0 14px; background:linear-gradient(125deg,#20352a99,#15261f66); border-color:#6b805c45; }
#app .stats>article { padding:10px 14px; min-height:70px; }
#app .stats small { line-height:1.4; }
#app .stats strong { font-size:22px; font-variant-numeric:tabular-nums; }
#app .stats>.collection-value { padding:0 14px; }
#app .value-summary { min-height:30px; padding:4px 0; font-size:10px; gap:4px 14px; }
#app .collection-navigation { gap:8px; margin:0 0 14px; }
#app .collection-navigation>.collection-tabs { margin:0; flex:1 1 280px; padding:3px; border-radius:9px; background:#13241b; }
#app .collection-navigation button { min-height:34px; padding:7px 10px; }
#app .catalog-tabs { background:transparent!important; border-color:#70826330; }
#app .catalog-tabs button:not(.active) { color:#a4b7a5; }
#app .catalog-tabs button.active { background:#3c3e2a; color:#f0deb0; }
#app .library>.section-title { margin-bottom:10px; gap:10px; align-items:center; }
#app .library>.section-title h2 { font-size:23px; color:#eee5d1; }
#app .sort-label { gap:7px; }
#app .sort-label select { padding:8px 30px 8px 10px; min-height:34px; }
#app .collection-filter-bar { margin:0!important; padding:0!important; gap:8px!important; }
#app .collection-filter-bar>.search { flex:1 1 240px; margin:0; min-width:0; }
#app .collection-filter-bar>.search input { min-height:40px; padding-block:10px; }
#app .collection-filter-options:not([open]) { flex:0 0 100px; align-self:start; }
#app .collection-filter-options:not([open])>summary { min-height:40px; }
#app .collection-filter-options[open] { flex-basis:100%; }
#app .collection-filter-options>summary { min-height:40px; padding:10px 13px; background:#1c3025; border-color:#5e75594a; }
#app .collection-filter-options[open]>.collection-filter-body { margin-top:8px; padding:12px; border:1px solid #68815a3d; border-radius:10px; background:#17291f; }
#app .collection-filter-options .filter-bottom { margin:10px 0 0!important; padding:10px 0 0; border-bottom:0; }
#app .collection-extra-filters { gap:8px; padding-top:10px; }
#app .collection-extra-filters input { min-height:36px; }
#app #inventory-toolbar { margin:0 0 12px; min-height:40px; padding:4px 0; display:flex; gap:5px 14px; align-items:center; }
#inventory-toolbar>#collection-import { order:2; margin-left:auto; min-height:30px; font-size:11px; padding:5px 11px; background:#1a2d23; border:1px solid #55704c66; }
#inventory-toolbar>.text-button { min-height:30px; text-decoration:none; color:#c2ccb9; padding:5px 0; }
#inventory-toolbar>.text-button::before { content:'□'; color:#b6b285; font-size:14px; margin-right:6px; }
#inventory-toolbar>.inventory-bulk-controls { order:3; flex:1 0 100%; padding:10px; border:1px solid #697e504d; border-radius:9px; background:#233827; }
#app .inventory-check { border-radius:6px; font-size:11px; }
#app .cards,.shared-page .cards,#community-content.card-market { gap:18px 16px; }
#app .card,.shared-page .card,#community-content .market-card { background:linear-gradient(145deg,#243c2d,#15271f); border-color:#78956449; box-shadow:0 8px 20px #0003,inset 0 1px #d3dda60a; }
#app .card:hover,.shared-page .card:hover,#community-content .market-card:hover { border-color:#bea76e99; }
#app .card-open h3,.shared-page .card h3 { margin:9px 3px 5px; }
#app .card-status-line,.shared-page .card-status-line { margin:5px 3px; }
#app .card-price-line,.shared-page .card-price-line { padding-top:6px; border-top:1px solid #7d956231; margin:6px 3px 2px; }
#app .card-price-line small,.shared-page .card-price-line small { color:#9caf9c; line-height:1.5; }
/* Quiet, consistent page introductions. Deck editor has its own scoped sheet. */
#app :is(#community-section,#editions-section,#admin-section)>.deck-intro { padding:8px 0 16px; gap:14px; }
#app :is(#community-section,#editions-section,#admin-section)>.deck-intro h1 { font-size:30px; margin:6px 0; line-height:1.25; }
#app :is(#community-section,#editions-section,#admin-section)>.deck-intro p { margin:5px 0 0; line-height:1.6; }
#app #editions-section .deck-intro .text-button[data-view=owned] { margin-bottom:10px; }
#editions-section .section-title { margin:0 0 8px; }
#editions-section .edition-refresh-note { max-width:750px; margin:0 0 15px; font-size:11px; line-height:1.6; color:#9fb19c; }
#editions-section .edition-grid { grid-template-columns:repeat(auto-fill,minmax(265px,1fr)); gap:14px; }
#editions-section .edition-card { padding:18px; border-color:#71855c44; }
#editions-section .edition-card h3 { font-size:21px; line-height:1.3; }
#editions-section .edition-card p { font-size:11px; line-height:1.6; }
#community-section .exchange-explainer { margin:0 0 14px; padding:8px 12px; background:#1d302333; border-color:#65805330; border-radius:8px; gap:12px; }
#community-section .exchange-explainer span { font-size:10px; color:#b7c3a8; }
#community-section .exchange-toolbar { gap:10px; align-items:center; }
#community-section .collection-tabs { padding:3px; margin:0; }
#community-section .collection-tabs button { padding:8px 12px; min-height:34px; font-size:11px; }
#community-section #community-tabs button.selected { background:#3e4b32; color:#edda9f; border:0; box-shadow:inset 0 0 0 1px #b9a36955; }
#community-section #community-search { min-height:40px; }
#community-section .market-filters { margin:10px 0 6px; gap:14px; }
#community-section .market-filters select { min-height:34px; padding-block:7px; font-size:11px; }
#community-section .exchange-hint { font-size:10px; line-height:1.6; margin:5px 0 12px; }
#community-content .market-summary { margin:0 0 10px; }
#community-content .market-card-info { padding:9px 5px 5px; }
#community-content .market-tags { margin:7px 0; }
#community-content .offer-tile { padding:16px; }
#community-content .empty { border:1px dashed #8b96613d; border-radius:12px; padding:32px 18px; background:#1b30231a; }
#admin-section .admin-summary { grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-bottom:14px; }
#admin-section .admin-summary>article { padding:13px 16px; background:linear-gradient(130deg,#263c2b,#182a20); }
#admin-section .admin-summary strong { margin:0 0 4px; font-size:25px; }
#admin-section .admin-user { padding:16px; }
#admin-section .admin-user-stats { margin:12px 0; padding:10px 0; }
#admin-section .admin-user-stats span { font-size:10px; }
#admin-section .admin-user-actions { margin-top:10px; }
#admin-section .admin-user-actions .table-permission-note { flex-basis:100%; max-width:100%; }
#admin-section .admin-user-details { margin-top:10px; padding-top:10px; }
#admin-section .admin-activity { margin-top:18px; padding:16px; }
#admin-section .admin-activity-heading h2 { font-size:23px; }
#admin-section .admin-event time { font-size:10px; }
#admin-section .admin-user-dates { color:#a3b49b; font-size:10px; }
#help-section { padding:8px 0 24px; }
#help-section h1 { font-size:30px; line-height:1.3; margin:8px 0; }
#help-section>p { font-size:12px; line-height:1.7; margin:0; }
#help-section .help-grid { margin-top:18px; gap:12px; }
#help-section .help-grid article { padding:18px; border-color:#74875b44; background:linear-gradient(135deg,#22372a,#15271e); }
#help-section .help-grid h2 { font-size:19px; margin:7px 0 10px; }
#help-section .help-grid p { font-size:12px; line-height:1.75; margin:9px 0; }
#help-section .help-step { font-size:10px; color:#d6ba7e; }
/* Public profiles expose the collection, not application navigation. */
.shared-page .shared-main { max-width:1450px; padding-top:20px; }
.shared-page .shared-brand { padding-bottom:14px; }
.shared-page .shared-intro { padding:20px 0 12px; }
.shared-page .shared-intro h1 { font-size:32px; line-height:1.25; margin:7px 0; }
.shared-page .shared-intro p { margin:6px 0 12px; color:#adbea9; }
.shared-page .shared-counts { gap:7px; }
.shared-page .shared-counts span { border-color:#697f5540; padding:6px 10px; }
.shared-page #shared-value { margin-top:8px; }
.shared-page .value-summary { padding:5px 0; min-height:30px; }
.shared-page .profile-tabs { margin:0 0 12px; padding:3px; }
.shared-page .profile-tabs .button { padding:8px 13px; }
.shared-page .shared-toolbar { padding:10px; margin:0 0 10px; background:#1b302355; }
.shared-page .shared-result { margin:9px 0 12px; }
.shared-page #shared-wanted h2 { font-size:22px; margin:14px 0 8px; }
.shared-page #shared-wanted>p { font-size:12px; line-height:1.6; }
.shared-page #shared-wish-search { margin-bottom:14px; }
#chat-launcher { border-color:#b0ac6b88; font-size:12px; box-shadow:0 6px 25px #0006; }
#chat-dock { border-radius:14px 14px 0 0; }
#chat-dock .chat-person { padding:12px; }
#chat-dock .chat-bubble { font-size:12px; line-height:1.6; }
#chat-dock #chat-input { min-width:0; }
/* Login keeps the same palette, with a shorter first screen on phones. */
#login-screen .login-form { max-width:590px; width:100%; justify-self:center; }
#login-screen .login-form h2 { line-height:1.3; }
#login-screen .login-form input { min-height:44px; }
#login-screen .login-note { font-size:10px; line-height:1.8; }
@media(min-width:761px) and (max-width:1150px) {
 #app .collection-navigation>.collection-tabs { flex:1 1 225px; }
 #app .collection-navigation button { padding:7px; font-size:11px; }
 #community-section .exchange-toolbar { flex-wrap:wrap; }
 #community-section .exchange-toolbar>input { flex-basis:100%; }
}
@media(max-width:760px) {
 #app .sidebar { gap:7px; padding:10px 12px 5px; }
 #app .sidebar nav { padding:0 0 3px; }
 #app .sidebar nav .nav { min-height:36px; padding:7px 9px; }
 #app .sidebar .brand { font-size:19px; }
 #app .discord-link { font-size:10px; padding:9px; }
 #app .sidebar .side-bottom { gap:5px; }
 #app .topbar { flex-wrap:nowrap; min-height:47px; padding:5px 0; margin:0 0 9px; gap:5px; }
 #app .topbar>span { flex:1; min-width:0; font-size:10px; }
 #app .topbar>span>i { margin:0 4px; }
 #app .topbar>div { flex-wrap:nowrap; gap:5px; }
 #app #notifications-open { padding:7px 9px; min-width:34px; }
 #app #notifications-open .notification-label { display:none; }
 #app .topbar .button { font-size:10px; padding:7px 8px; }
 #app .topbar .collection-more>summary { padding:5px 9px; }
 #app .stats { grid-template-columns:repeat(4,minmax(0,1fr)); margin:0 0 10px; }
 #app .stats>article { padding:9px 8px; min-height:66px; border-bottom:0; border-right:1px solid var(--sg-line); }
 #app .stats>article:last-of-type { border-right:0; }
 #app .stats small { font-size:9px; line-height:1.3; min-height:24px; }
 #app .stats strong { font-size:20px; }
 #app .stats>.collection-value { padding:0 8px; }
 #app .value-summary { gap:2px 10px; min-height:30px; }
 #app .value-heading { display:none; }
 #app .value-source { font-size:9px; }
 #app .value-toggle { font-size:0; gap:0; }
 #app .value-toggle::after { font-size:14px; }
 #app .value-missing { flex-basis:auto; font-size:9px; }
 #app .collection-navigation { margin-bottom:12px; gap:6px; }
 #app .collection-navigation>.collection-tabs { flex-basis:100%; padding:3px; }
 #app .collection-navigation .collection-tabs button { padding:7px 6px; min-height:33px; font-size:11px; }
 #app .catalog-tabs { border:0!important; padding:0!important; }
 #app .catalog-tabs button { min-height:30px!important; font-size:10px!important; }
 #app .library>.section-title { margin-bottom:8px; }
 #app .library>.section-title h2 { font-size:20px; }
 #app .section-title .count-badge { padding:3px 6px; }
 #app .sort-label select { font-size:10px; max-width:125px; min-height:32px; }
 #app .collection-filter-bar { position:static; }
 #app .collection-filter-bar>.search { flex:1 1 calc(100% - 90px); }
 #app .collection-filter-bar>.search input { padding-right:10px; }
 #app .collection-filter-options:not([open]) { flex:0 0 76px; width:76px!important; }
 #app .collection-filter-options>summary { padding:10px; position:static!important; width:auto!important; }
 #app .collection-filter-options[open] { width:100%!important; }
 #app .collection-filter-options[open]>.collection-filter-body { padding:10px; }
 #app #inventory-toolbar { margin-bottom:9px; min-height:35px; gap:5px 10px; }
 #inventory-toolbar>.text-button,#inventory-toolbar>#collection-import { font-size:10px; min-height:30px; }
 #app .cards,.shared-page .cards,#community-content.card-market { gap:14px 10px; }
 #app .card-price-line small,.shared-page .card-price-line small { font-size:9px; }
 #app :is(#community-section,#editions-section,#admin-section)>.deck-intro { padding:6px 0 12px; flex-wrap:wrap; gap:10px; }
 #app :is(#community-section,#editions-section,#admin-section)>.deck-intro h1 { font-size:26px; }
 #app :is(#community-section,#editions-section,#admin-section)>.deck-intro p { font-size:11px; }
 #editions-section .edition-refresh-note { font-size:10px; margin-bottom:12px; }
 #editions-section .edition-grid { grid-template-columns:1fr; }
 #community-section .exchange-explainer { gap:4px 10px; flex-wrap:wrap; padding:7px 10px; margin-bottom:10px; }
 #community-section .exchange-explainer span { font-size:9px; }
 #community-section .exchange-toolbar { gap:9px; }
 #community-section .collection-tabs { width:100%; }
 #community-section .collection-tabs button { min-height:33px; padding:7px; font-size:10px; }
 #community-section .market-filters { gap:8px; margin:9px 0 5px; }
 #community-section .exchange-hint { margin-bottom:9px; }
 #community-section .trade-check { font-size:10px; }
 #admin-section .admin-summary { grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
 #admin-section .admin-summary article { padding:10px; }
 #admin-section .admin-summary strong { font-size:22px; }
 #admin-section .admin-summary span { font-size:9px; }
 #admin-section .admin-user { padding:13px; }
 #admin-section .admin-user-stats span { font-size:9px; }
 #admin-section .admin-activity { padding:13px; }
 #admin-section .admin-event { gap:10px; }
 #admin-section .admin-event time { min-width:83px; font-size:9px; }
 #help-section h1 { font-size:25px; }
 #help-section .help-grid { gap:10px; margin-top:14px; }
 #help-section .help-grid article { padding:16px; }
 #help-section .help-grid h2 { font-size:18px; }
 .shared-page .shared-main { padding:14px 12px; }
 .shared-page .shared-brand { padding-bottom:12px; }
 .shared-page .shared-intro { padding:16px 0 10px; }
 .shared-page .shared-intro h1 { font-size:28px; }
 .shared-page .shared-intro p { font-size:11px; margin-bottom:10px; }
 .shared-page .shared-counts span { font-size:10px; padding:6px 8px; }
 .shared-page .value-heading { display:none; }
 .shared-page .value-summary { gap:3px 12px; }
 .shared-page .profile-tabs { gap:2px; width:100%; margin-bottom:10px; }
 .shared-page .profile-tabs .button { min-width:0; padding:8px 6px; font-size:10px; }
 .shared-page .shared-toolbar { padding:9px; }
 #chat-launcher { padding:10px 13px; font-size:11px; right:14px; bottom:14px; }
 #login-screen .login-art { min-height:0; padding:22px 24px 19px; }
 #login-screen .login-story { margin:20px 0 0; }
 #login-screen .login-story h1 { font-size:28px; line-height:1.2; margin:10px 0 0; }
 #login-screen .mana-orbit { margin-top:17px; }
 #login-screen .login-form { padding:23px 24px; }
 #login-screen .login-form h2 { font-size:25px; margin:9px 0; }
 #login-screen .login-form>p { margin:8px 0 18px; }
 #login-screen .login-note { margin-top:22px; }
}
@media(min-width:1300px) {
 #help-section .help-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media(max-width:760px) {
 #app #editions-section>.deck-intro { display:flex; flex-direction:column; align-items:stretch; }
 #app #editions-section>.deck-intro>div { width:100%; }
 #editions-section #edit-editions { align-self:flex-start; }
}
#app #editions-section .deck-intro .text-button[data-view=owned] { float:none; width:fit-content; margin-left:0; }
@media(max-width:760px) {
 #app .sidebar nav .nav { font-size:10.5px; padding:7px 8px; gap:5px; }
 #app .sidebar nav .nav[data-view=help] { font-size:0; width:34px; min-width:34px; padding:7px; justify-content:center; }
 #app .sidebar nav .nav[data-view=help] .nav-icon { width:18px; flex-basis:18px; }
}
#admin-section .admin-user-actions .table-permission-note { order:2; }
@media(min-width:1600px) { #admin-section .admin-users { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:760px) {
 #login-screen { grid-template-rows:auto 1fr; }
 #login-screen .login-art { justify-content:flex-start; }
 #login-screen .login-form { justify-content:flex-start; }
 #login-screen .login-form form { margin-top:6px; }
 #login-screen .login-note { display:none; }
}
