@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Variable.ttf") format("truetype-variations");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-VariableItalic.ttf") format("truetype-variations");
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Sniglet";
  src: url("fonts/Sniglet-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Sniglet";
  src: url("fonts/Sniglet-ExtraBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Josefin Sans";
  src: url("uploads/JosefinSans-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-soft: #eff6ff;
  --wordmark: #A93541;
  --ink: #101828;
  --muted: #667085;
  --line: #e4e7ec;
  --surface: #ffffff;
  --canvas: #FAFAFC;
  --success: #16794c;
  --warning: #a15c00;
  --danger: #b42318;
  --radius: 16px;
  --shadow-sm: 0 2px 8px rgba(16, 24, 40, .06);
  --shadow: 0 18px 50px rgba(16, 24, 40, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }
.site-header { --brand: #2563eb; --brand-dark: #1d4ed8; --brand-soft: #eff6ff; position: sticky; top: 0; z-index: 50; background-color: rgba(250,250,252,.68); background-image: none; border-bottom: 1px solid rgba(16,24,40,.08); box-shadow: 0 8px 24px rgba(16,24,40,.055); backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px); }
.site-header.home-header { background-color: rgba(250,250,252,.68); background-image: none; border-bottom: 1px solid rgba(16,24,40,.08); box-shadow: 0 8px 24px rgba(16,24,40,.055); }
.header-main { height: 43px; display: flex; justify-content: center; gap: 26px; align-items: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: #333333; white-space: nowrap; }
.header-main > .brand { margin-right: -15px; }
.brand-name { font-family: "Josefin Sans", "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 19px; font-weight: 400; letter-spacing: .01em; color: var(--wordmark); }
.header-main .brand-name { min-height: 32px; display: inline-flex; align-items: center; line-height: 1; }
.brand-wordmark { width: 180px; height: auto; display: block; overflow: visible; color: var(--wordmark); }
.header-main .brand-wordmark { height: 22px; width: auto; color: #333333; transform: translateY(-1px); }
.brand-wordmark .wordmark-text { fill: currentColor; font-family: "Josefin Sans", "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 34px; font-weight: 400; letter-spacing: .01em; }
.brand-wordmark .wordmark-sun { pointer-events: none; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(145deg, #2563eb, #1d4ed8); font-size: 18px; box-shadow: 0 5px 12px rgba(37,99,235,.25); }
.header-category-menu { min-width: 0; height: 100%; display: flex; align-items: center; justify-content: center; gap: 26px; overflow: visible; scrollbar-width: none; }
.header-category-menu::-webkit-scrollbar { display: none; }
.header-nav-group { position: relative; height: 100%; display: inline-flex; align-items: center; }
.header-category-menu .nav-item { min-width: max-content; min-height: 28px; display: inline-flex; align-items: center; padding: 0; border: 0; border-radius: 0; color: #333333; background: transparent; font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 12px; font-weight: 400; line-height: 1; }
.header-category-menu .nav-item:hover, .header-category-menu .nav-item.active { color: #333333; background: transparent; }
.header-submenu { position: absolute; left: 50%; top: calc(100% - 2px); width: max-content; min-width: 190px; max-width: 260px; padding: 13px; border: 1px solid rgba(16,24,40,.08); border-radius: 14px; background: rgba(255,255,255,.97); box-shadow: 0 18px 40px rgba(16,24,40,.14); transform: translate(-50%, 8px); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .16s ease, transform .16s ease, visibility .16s ease; }
.header-nav-group:hover .header-submenu, .header-nav-group:focus-within .header-submenu { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0); }
.header-submenu-title { display: block; margin: 0 0 8px; color: #667085; font-size: 11px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.header-submenu-list { display: grid; gap: 2px; }
.header-submenu-link { display: block; padding: 7px 9px; border-radius: 8px; color: #333333; font-size: 12px; line-height: 1.2; white-space: nowrap; }
.header-submenu-link:hover, .header-submenu-link:focus-visible { color: #2563eb; background: #eff6ff; outline: 0; }
.search-form { position: relative; }
.header-search-form { width: 14px; height: 28px; overflow: visible; }
.search-form input { width: 100%; height: 32px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 0 36px 0 38px; outline: 0; transition: .2s; }
.search-form input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(37,99,235,.1); }
.site-header .search-form input:focus { box-shadow: 0 0 0 4px rgba(37,99,235,.12); }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-form button { position: absolute; right: 4px; top: 4px; width: 24px; height: 24px; border: 0; border-radius: 6px; color: #fff; background: var(--brand); cursor: pointer; }
.header-search-form .header-search-button { position: static; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 0; color: #333333; background: transparent; box-shadow: none; font-size: 12px; line-height: 1; transform: translateX(-7px); }
.header-search-form .header-search-button:hover { color: #333333; background: transparent; }
.header-search-form .header-search-button:focus-visible { outline: 1px solid rgba(29,29,31,.45); outline-offset: 2px; box-shadow: none; }
.header-search-glyph { position: relative; width: 14px; height: 14px; display: block; }
.header-search-glyph::before { content: ""; position: absolute; left: 1px; top: 1px; width: 8px; height: 8px; border: 1.4px solid currentColor; border-radius: 50%; }
.header-search-glyph::after { content: ""; position: absolute; left: 9px; top: 9px; width: 5px; height: 1.4px; border-radius: 999px; background: currentColor; transform: rotate(45deg); transform-origin: left center; }
.location-chip { max-width: 150px; min-height: 28px; display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; border-radius: 0; color: #333333; background: transparent; cursor: pointer; white-space: nowrap; overflow: hidden; font-size: 12px; }
.header-main > .location-chip { justify-self: end; }
.location-chip span:last-child { overflow: hidden; text-overflow: ellipsis; }
.location-chip:hover { color: #333333; border-color: transparent; background: transparent; }
.site-header .location-chip:hover { border-color: transparent; background: transparent; }
.location-chip.locating span:first-child { animation: location-pulse 1s infinite alternate; }
@keyframes location-pulse { to { opacity: .25; transform: scale(.8); } }
.header-actions { display: flex; align-items: center; gap: 26px; }
.header-actions .btn, .header-actions .icon-btn { min-height: 28px; height: 28px; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: #333333; font-size: 12px; }
.header-actions .header-auth-control { font-weight: 400; }
.header-actions .auth-text, .header-actions [data-action="logout"] { min-height: 28px; height: 28px; padding: 0; display: inline-flex; align-items: center; line-height: 1; font-weight: 400; font-size: 12px; }
.btn { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 10px; padding: 9px 16px; font-weight: 700; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .38; cursor: not-allowed; transform: none; }
.btn-primary { color: #fff; background: var(--brand); box-shadow: 0 5px 12px rgba(37,99,235,.18); }
.site-header .btn-primary { color: #333333; background: transparent; border: 0; box-shadow: none; }
.site-header .btn-primary:hover, .site-header .btn-secondary:hover, .site-header .icon-btn:hover { color: #333333; background: transparent; box-shadow: none; transform: none; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-secondary { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-ghost { color: var(--brand); background: transparent; }
.btn-danger { color: var(--danger); background: #fff; border-color: #fecdca; }
.btn-sm { min-height: 34px; padding: 6px 11px; font-size: 13px; }
.icon-btn { width: 28px; height: 28px; padding: 0; border: 0; border-radius: 0; background: transparent; cursor: pointer; display: grid; place-items: center; font-size: 12px; }
.content-studio-btn { color: var(--brand); }
.mobile-menu-btn { display: none; }

.category-nav { border-top: 1px solid rgba(255,255,255,.22); background: #A93541; }
.category-nav-inner { min-height: 42px; display: flex; align-items: stretch; justify-content: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.category-nav-inner::-webkit-scrollbar { display: none; }
.nav-item { min-width: max-content; display: flex; gap: 6px; align-items: center; padding: 0 12px; color: rgba(255,255,255,.9); border-bottom: 2px solid transparent; font-size: 12px; }
.nav-item:hover, .nav-item.active { color: #FFEBAF; border-color: transparent; }
.mini-icon { width: 18px; height: 18px; display: inline-grid; place-items: center; position: relative; font-size: 13px; line-height: 1; }
.mini-icon-glyph { display: inline-block; line-height: 1; }
.mini-icon-food .mini-icon-glyph { transform: rotate(180deg); }
.nav-item .mini-icon-food { top: 0; }
.nav-item .mini-icon-home { top: 0; }
.nav-item .mini-icon-food .mini-icon-glyph { position: relative; top: 3px; }
.nav-item .mini-icon-home .mini-icon-glyph { position: relative; top: 0; left: 3px; font-size: 16px; }

main { min-height: 68vh; }
main:has(.auth-wrap) { min-height: 0; }
.hero { position: relative; min-height: 530px; background: #1b2c51; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity .65s ease; }
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,14,35,.35), rgba(4,14,35,.12) 53%, rgba(4,14,35,0)); }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-content { position: relative; z-index: 2; min-height: 530px; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 72px; color: #fff; pointer-events: none; }
.hero-copy { max-width: 690px; pointer-events: none; }
.eyebrow { margin: 0 0 13px; text-transform: uppercase; letter-spacing: .13em; font-weight: 800; font-size: 12px; color: #bcd0ff; }
.hero h1 { margin: 0; font-family: "Josefin Sans", "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: clamp(31.5px, 4.5vw, 54px); font-weight: 400; line-height: .98; letter-spacing: -.055em; max-width: 760px; }
.hero p { margin: 22px 0 28px; max-width: 620px; color: rgba(255,255,255,.87); font-size: clamp(17px, 2vw, 21px); line-height: 1.55; }
.hero .btn-primary { background: #fff; color: #2563eb; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.hero-controls { position: absolute; z-index: 3; right: max(20px, calc((100% - 1200px)/2)); bottom: 76px; display: flex; gap: 10px; }
.hero-dot { width: 11px; height: 11px; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; background: transparent; cursor: pointer; }
.hero-dot.active { width: 30px; border-radius: 10px; background: #fff; }

.quick-categories { position: relative; z-index: 4; margin-top: -38px; padding-bottom: 42px; }
.quick-grid { width: 80%; margin: 0 auto; display: grid; grid-template-columns: repeat(7, 1fr); gap: 9px; }
.quick-card { min-height: 86px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); font-size: 13px; font-weight: 700; transition: .2s; }
.quick-card:hover { transform: translateY(-4px); color: var(--brand); box-shadow: 0 14px 30px rgba(16,24,40,.1); }
.quick-card .mini-icon { width: 26px; height: 26px; top: 0; font-size: 17px; color: #D99A16; background: #fff7e6; border-radius: 8px; }
.quick-card .mini-icon-food { top: 0; }
.quick-card .mini-icon-food .mini-icon-glyph { position: relative; top: 1px; }

.section { padding: 22px 0 52px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading h2 { margin: 0; font-size: 27px; letter-spacing: -.025em; }
.section-heading p { margin: 8px 0 0; color: var(--muted); }
.text-link { color: var(--brand); font-weight: 700; }
.text-link:hover { text-decoration: underline; }
.auth-small-link { justify-self: start; font-size: 13px; font-weight: 500; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.listing-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); transition: .2s; }
.listing-card:hover { transform: translateY(-3px); box-shadow: 0 15px 34px rgba(16,24,40,.1); }
.card-image { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #e9eef6; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.listing-card:hover .card-image img { transform: scale(1.035); }
.badge { display: inline-flex; align-items: center; width: max-content; min-height: 25px; padding: 4px 8px; border-radius: 999px; color: var(--brand); background: var(--brand-soft); font-size: 12px; font-weight: 800; }
.listing-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.badge-featured { color: #8a3a00; background: #fff0df; }
.card-image .badge { position: absolute; left: 12px; bottom: 12px; color: #fff; background: rgba(16,24,40,.72); backdrop-filter: blur(8px); }
.favorite-btn { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 3px 10px rgba(16,24,40,.14); cursor: pointer; color: #667085; font-size: 19px; }
.favorite-btn.active { color: #d9344b; }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 17px; }
.card-body h3 { margin: 0 0 7px; font-size: 18px; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-body p { margin: 0; color: var(--muted); line-height: 1.5; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; margin-top: 15px; padding-top: 14px; border-top: 1px solid #f2f4f7; color: #667085; font-size: 13px; }
.price { margin-left: auto; color: var(--ink); font-weight: 800; }

.home-band { margin: 24px auto 70px; padding: 48px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; border-radius: 28px; color: #fff; background: linear-gradient(90deg, #f2a050 0%, #f7c27e 100%); overflow: hidden; position: relative; }
.home-band::after { content: ""; width: 300px; height: 300px; position: absolute; right: -100px; top: -120px; border-radius: 50%; background: rgba(255,255,255,.1); }
.home-band h2 { margin: 0 0 12px; font-size: 34px; letter-spacing: -.035em; }
.home-band p { margin: 0; color: #dce7ff; line-height: 1.6; }
.home-band-actions { display: flex; gap: 10px; justify-content: flex-end; position: relative; z-index: 2; }
.home-band .btn-secondary { color: #fff; border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.1); }
.home-band .btn-primary { color: #2563eb; background: #fff; }

.page-head { padding: 40px 0 26px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 13px; color: var(--muted); font-size: 13px; }
.breadcrumb a { color: var(--brand); }
.page-head h1 { margin: 0; font-size: clamp(32px, 5vw, 48px); line-height: 1.05; letter-spacing: -.045em; }
.page-head p { max-width: 690px; margin: 13px 0 0; color: var(--muted); font-size: 17px; line-height: 1.55; }
.search-page-form { width: min(680px, 100%); display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 22px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.search-page-form .input { min-height: 42px; }
.search-page-form .btn { min-height: 42px; }
.directory-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; }
.filter-panel { min-width: 360px; display: flex; gap: 10px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); }
.filter-panel[data-form="directory-filter"] .btn-primary, .filter-panel[data-form="event-filter"] .btn-primary { background: #2563eb; box-shadow: 0 5px 12px rgba(37,99,235,.18); }
.filter-panel[data-form="directory-filter"] .btn-primary:hover, .filter-panel[data-form="event-filter"] .btn-primary:hover { background: #1d4ed8; }
.select, .input, .textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); padding: 11px 13px; outline: 0; }
.select:focus, .input:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(37,99,235,.1); }
.address-fieldset { display: grid; gap: 12px; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fffaf4; }
.address-fieldset legend { padding: 0 8px; color: var(--ink); font-size: 14px; font-weight: 700; }
.subcategory-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.subcategory { min-height: 55px; display: grid; place-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: center; font-size: 14px; font-weight: 650; box-shadow: var(--shadow-sm); }
.subcategory:hover, .subcategory.active { border-color: #b9cdfb; color: var(--brand); background: var(--brand-soft); }
.directory-results { padding: 26px 0 70px; }
.results-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.results-bar h2 { margin: 0; font-size: 24px; }
.results-bar span { color: var(--muted); font-size: 14px; }
.directory-main { min-width: 0; display: grid; gap: 18px; }
.directory-toolbar { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start; }
.directory-toolbar .results-bar { margin-bottom: 0; }
.directory-toolbar .filter-panel { min-width: 320px; }
.empty { grid-column: 1/-1; padding: 58px 24px; border: 1px dashed #cbd5e1; border-radius: 16px; background: #fff; text-align: center; color: var(--muted); }
.empty h3 { color: var(--ink); margin: 0 0 8px; }

.events-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; padding-bottom: 70px; }
.sidebar { height: max-content; position: sticky; top: 132px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.sidebar h3 { margin: 0 0 12px; font-size: 14px; }
.sidebar-links { display: grid; gap: 4px; }
.sidebar-link { padding: 9px 10px; border-radius: 8px; color: var(--muted); font-size: 14px; }
.sidebar-link:hover, .sidebar-link.active { color: var(--brand); background: var(--brand-soft); }
.event-list { display: grid; gap: 16px; }
.past-events-section { margin-top: 34px; }
.past-events-section h2 { margin: 0 0 14px; font-size: clamp(22px, 2vw, 30px); line-height: 1.15; color: var(--ink); }
.event-card { display: grid; grid-template-columns: 200px 1fr; min-height: 190px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.event-card img { width: 100%; height: 100%; object-fit: cover; }
.directory-card { position: relative; }
.directory-row-image { min-height: 190px; background: #e9eef6; }
.directory-row-image img { height: 100%; }
.directory-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.community-row { grid-template-columns: 96px 1fr; align-items: stretch; }
.topic-row { grid-template-columns: 200px 1fr; align-items: stretch; }
.topic-row-image { min-height: 190px; background: #e9eef6; }
.topic-row-image img { width: 100%; height: 100%; object-fit: cover; }
.community-row-icon { display: grid; place-items: center; min-height: 190px; color: var(--brand); background: var(--brand-soft); font-size: 34px; }
.event-body { padding: 20px; }
.event-body h2 { margin: 10px 0 8px; font-size: 23px; letter-spacing: -.025em; }
.event-body h2 a { color: var(--ink); }
.event-body h2 a:hover { color: var(--brand); }
.event-body p { color: var(--muted); line-height: 1.5; }
.event-meta { display: flex; flex-wrap: wrap; gap: 12px; color: #475467; font-size: 13px; font-weight: 650; }

.community-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding-bottom: 70px; }
.communities-layout .community-grid { padding-bottom: 0; }
.community-card { display: grid; grid-template-columns: 54px 1fr auto; gap: 16px; align-items: center; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.community-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 15px; color: var(--brand); background: var(--brand-soft); font-size: 23px; }
.community-card h2 { margin: 0 0 5px; font-size: 19px; }
.community-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.community-card .arrow { color: var(--brand); font-size: 20px; }
.thread-list { display: grid; gap: 12px; padding-bottom: 70px; }
.thread-row { padding: 20px; display: grid; grid-template-columns: 1fr auto; gap: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.thread-row h3 { margin: 0 0 7px; }
.thread-row p { margin: 0; color: var(--muted); }
.reply-count { min-width: 70px; align-self: center; color: var(--muted); text-align: center; font-size: 13px; }

.detail-shell { padding: 34px 0 80px; }
.detail-hero { overflow: hidden; display: grid; grid-template-columns: 1.1fr .9fr; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.detail-image { min-height: 480px; background: #e9eef6; }
.detail-image img { width: 100%; height: 100%; object-fit: cover; }
.detail-content { padding: clamp(28px, 5vw, 54px); display: flex; flex-direction: column; justify-content: center; }
.detail-content h1 { margin: 12px 0 12px; font-size: clamp(34px, 5vw, 52px); line-height: 1.06; letter-spacing: -.045em; }
.detail-summary { margin: 0 0 25px; color: var(--muted); font-size: 19px; line-height: 1.5; }
.detail-facts { display: grid; gap: 11px; padding: 20px 0; border-block: 1px solid var(--line); }
.detail-fact { display: grid; grid-template-columns: 95px 1fr; gap: 10px; color: #475467; }
.detail-fact strong { color: var(--ink); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.detail-about { max-width: 820px; margin: 45px auto 0; }
.detail-about h2 { font-size: 28px; }
.detail-about p { color: #475467; font-size: 17px; line-height: 1.8; }
.thread-post { max-width: 850px; margin: 0 auto; }
.post-card { padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.post-author { margin-bottom: 16px; color: var(--muted); font-size: 13px; }
.post-body { color: #344054; line-height: 1.75; }
.replies { display: grid; gap: 12px; margin-top: 25px; }
.reply { padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.reply strong { display: block; margin-bottom: 7px; }
.reply small { color: var(--muted); }

.auth-wrap { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; background: #fff; }
.auth-story { display: flex; flex-direction: column; justify-content: end; padding: clamp(35px, 7vw, 90px); color: #fff; background: linear-gradient(rgba(10,29,70,.35), rgba(10,29,70,.8)), url("https://images.unsplash.com/photo-1529156069898-49953e39b3ac?auto=format&fit=crop&w=1400&q=85") center/cover; }
.auth-story h1 { margin: 0 0 16px; font-size: clamp(40px, 5vw, 64px); letter-spacing: -.05em; }
.auth-story p { max-width: 520px; color: #e9efff; font-size: 18px; line-height: 1.6; }
.auth-panel { display: grid; place-items: center; padding: 40px; background: #FAFAFC; }
.auth-card { width: min(100%, 460px); }
.auth-card h2 { margin: 0 0 8px; font-size: 32px; letter-spacing: -.035em; }
.auth-card > p { margin: 0 0 28px; color: var(--muted); }
.social-signin { display: grid; gap: 10px; }
.social-signin-btn { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 11px; padding: 10px 16px; border: 1px solid #d0d5dd; border-radius: 10px; color: #1d2939; background: #fff; font-size: 14px; font-weight: 500; transition: border-color .15s, background .15s, transform .15s; }
.social-signin-btn:hover { border-color: #98a2b3; background: #fafafa; transform: translateY(-1px); }
.social-signin-btn svg { width: 20px; height: 20px; flex: 0 0 20px; }
.apple-signin-btn { color: #111; border-color: #d0d5dd; background: #fff; }
.apple-signin-btn:hover { color: #111; border-color: #98a2b3; background: #fafafa; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.auth-divider span { white-space: nowrap; }
.oauth-error { margin: 0 0 17px; padding: 11px 13px; border: 1px solid #fecdca; border-radius: 9px; color: #912018; background: #fef3f2; font-size: 13px; line-height: 1.45; }
.captcha-card { display: grid; gap: 12px; padding: 14px; border: 1px solid rgba(37,99,235,.18); border-radius: 16px; background: linear-gradient(135deg, rgba(255,255,255,.95), rgba(250,250,252,.9)); box-shadow: 0 10px 28px rgba(16,24,40,.06); }
.captcha-copy { display: flex; align-items: center; gap: 11px; }
.captcha-copy strong { display: block; color: var(--text); font-size: 13px; }
.captcha-copy small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.captcha-icon { width: 30px; height: 30px; display: inline-grid; place-items: center; border-radius: 50%; color: #fff; background: var(--brand); font-size: 15px; font-weight: 800; box-shadow: 0 8px 18px rgba(37,99,235,.22); }
.captcha-challenge { width: max-content; padding: 7px 13px; border: 1px solid rgba(163,62,75,.18); border-radius: 999px; color: #A93541; background: #fff7ef; font-family: "Josefin Sans", "Inter", sans-serif; font-size: 15px; letter-spacing: .16em; font-weight: 700; }
.captcha-input { display: grid; gap: 7px; }
.captcha-input span { color: var(--muted); font-size: 12px; font-weight: 700; }
.verification-demo { display: grid; gap: 12px; margin-bottom: 16px; padding: 18px; border: 1px solid #f0bd79; border-radius: 13px; background: #fff8eb; }
.verification-demo span { color: var(--muted); font-size: 13px; line-height: 1.55; }
.form-grid { display: grid; gap: 17px; }
.form-group { display: grid; gap: 7px; }
.form-group label { font-size: 13px; font-weight: 750; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-three { grid-template-columns: 1fr 1fr 120px; }
.form-note { color: var(--muted); font-size: 12px; }
.terms-agreement { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.72); color: var(--muted); font-size: inherit; line-height: 1.45; }
.terms-agreement input { margin-top: 3px; accent-color: var(--brand); }
.auth-switch { margin-top: 22px; color: var(--muted); text-align: center; }

.account-layout { display: grid; grid-template-columns: 230px 1fr; gap: 28px; padding-bottom: 70px; }
.account-nav { align-self: start; position: sticky; top: 135px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.account-nav button { width: 100%; border: 0; border-radius: 9px; padding: 11px; text-align: left; background: transparent; cursor: pointer; }
.account-nav button:hover, .account-nav button.active { color: var(--brand); background: var(--brand-soft); }
.dashboard-card { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.dashboard-card h2 { margin-top: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.stat { padding: 20px; border-radius: 14px; background: #f7f9fc; }
.stat strong { display: block; font-size: 28px; }
.stat span { color: var(--muted); font-size: 13px; }
.manage-list { display: grid; gap: 10px; }
.manage-row { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; }
.manage-row-rank { grid-template-columns: 54px minmax(160px, 1fr) 110px auto; }
.studio-listing-columns { display: grid; grid-template-columns: minmax(160px, 1fr) 110px auto; gap: 12px; padding: 0 10px 7px 76px; color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; }
.featured-rank-cell .input { height: 36px; padding: 6px 8px; text-align: center; }
.featured-rank-cell .input:disabled { color: #98a2b3; background: #f2f4f7; cursor: not-allowed; }
.manage-row img { width: 54px; height: 54px; object-fit: cover; border-radius: 8px; }
.manage-row strong, .manage-row span { display: block; }
.manage-row span { color: var(--muted); font-size: 13px; }

.site-footer { border-top: 1px solid var(--line); background: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(5, max-content); justify-content: space-between; gap: 24px; padding: 52px 0 38px; }
.footer-brand p { max-width: 280px; color: var(--muted); line-height: 1.6; font-size: 14px; }
.footer-about-link { gap: 6px; width: max-content; }
.footer-about-link .brand-wordmark { height: 22px; width: auto; }
.footer-about-prefix { color: var(--muted); font-size: 14px; font-weight: 400; }
.footer-about-link .footer-about-prefix, .footer-about-link .brand-name, .footer-about-link .brand-wordmark { transition: color .18s; }
.footer-about-link:hover .footer-about-prefix, .footer-about-link:hover .brand-name, .footer-about-link:hover .brand-wordmark { color: var(--brand); }
.footer-contact-link, .footer-legal-link { display: block; width: max-content; margin: 10px 0; color: var(--muted); font-size: 14px; font-weight: 400; }
.footer-contact-link:hover, .footer-legal-link:hover { color: var(--brand); }
.footer-brand .btn { margin-top: 9px; }
.footer-col h3 { margin: 0 0 15px; font-size: 14px; }
.footer-col a { display: block; margin: 10px 0; color: var(--muted); font-size: 14px; }
.footer-col a:hover { color: var(--brand); }
.social-links { display: flex; flex-wrap: wrap; gap: 9px; }
.social-break { flex-basis: 100%; height: 0; }
.social-links a { width: 38px; height: 38px; display: grid; place-items: center; margin: 0; border: 1px solid var(--line); border-radius: 10px; color: #475467; background: #fff; transition: .18s; }
.social-links a:hover { color: #fff; border-color: var(--brand); background: var(--brand); transform: translateY(-2px); }
.social-links svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.social-links .social-fill { fill: currentColor; stroke: none; }
.footer-bottom { padding: 22px 0; display: flex; justify-content: flex-end; text-align: right; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(15,23,42,.63); backdrop-filter: blur(5px); }
.modal { width: min(700px, 100%); max-height: min(88vh, 850px); overflow: auto; border-radius: 18px; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.modal-lg { width: min(1050px, 100%); }
.modal-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 19px 22px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }
.modal-head h2 { margin: 0; font-size: 21px; }
.modal-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f2f4f7; cursor: pointer; }
.modal-body { padding: 22px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.permission-steps { margin: 14px 0 0; padding-left: 22px; color: var(--muted); line-height: 1.65; }
.permission-steps strong { color: var(--text); }
.studio-layout { display: grid; grid-template-columns: 180px 1fr; gap: 20px; }
.studio-nav { display: grid; align-content: start; gap: 5px; }
.studio-nav button { border: 0; border-radius: 9px; padding: 10px; background: transparent; text-align: left; cursor: pointer; }
.studio-nav button.active, .studio-nav button:hover { color: var(--brand); background: var(--brand-soft); }
.studio-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.studio-toolbar h3 { margin: 0; }
.studio-list { display: grid; gap: 9px; }
.studio-listings-tree { display: grid; gap: 18px; }
.studio-category-group { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.studio-category-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 15px; background: #f7f9fc; border-bottom: 1px solid var(--line); }
.studio-category-head h4 { margin: 0; font-size: 16px; }
.studio-category-head > span { color: var(--muted); font-size: 12px; }
.studio-subcategory-group { padding: 0 12px 12px; }
.studio-subcategory-group + .studio-subcategory-group { border-top: 1px solid #f2f4f7; }
.studio-subcategory-group h5 { margin: 13px 0 9px; color: #475467; font-size: 12px; letter-spacing: .045em; text-transform: uppercase; }
.studio-subcategory-group h5 span { display: inline-grid; min-width: 20px; height: 20px; margin-left: 5px; place-items: center; border-radius: 999px; color: var(--brand); background: var(--brand-soft); font-size: 11px; }
.studio-category-empty { padding: 18px 15px; color: var(--muted); font-size: 13px; }
.community-admin-group .studio-category-head > div:first-child span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.community-admin-threads { display: grid; gap: 12px; padding: 12px; }
.community-admin-thread { padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.community-admin-thread-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.community-admin-thread-head strong, .community-admin-thread-head small { display: block; }
.community-admin-thread-head small { margin-top: 4px; color: var(--muted); }
.community-admin-thread > p { margin: 11px 0; color: #475467; font-size: 13px; line-height: 1.55; }
.community-thread-actions { flex-wrap: wrap; }
.community-admin-replies { display: grid; gap: 7px; margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); }
.community-admin-reply { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 9px; background: #f7f9fc; }
.community-admin-reply strong, .community-admin-reply small, .community-admin-reply span { display: block; }
.community-admin-reply small { margin: 2px 0 4px; color: var(--muted); font-size: 11px; }
.community-admin-reply span { color: #475467; font-size: 12px; line-height: 1.45; }
.community-no-replies { color: var(--muted); }
.users-list { display: grid; gap: 10px; }
.user-row { display: grid; grid-template-columns: 48px minmax(160px, 1fr) auto auto; gap: 13px; align-items: center; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.user-avatar { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; color: var(--brand); background: var(--brand-soft); font-size: 13px; font-weight: 800; }
.user-identity strong, .user-identity small, .user-identity span { display: block; }
.user-identity small { margin-top: 3px; color: #475467; }
.user-identity span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.user-badges { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.badge-admin { color: #7a2e9b; background: #f6ebff; }
.badge-success { color: var(--success); background: #eaf8f0; }
.badge-muted { color: #667085; background: #f2f4f7; }
.badge-warning { color: var(--warning); background: #fff3df; }
.studio-row { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.studio-row img, .studio-thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; background: #eef2f7; }
.studio-row strong { display: block; }
.studio-row small { color: var(--muted); }
.studio-actions { display: flex; gap: 6px; }
.image-preview { width: 100%; height: 190px; object-fit: cover; border-radius: 12px; background: #edf1f7; margin-top: 8px; }
.studio-danger-zone { margin-top: 24px; padding: 17px; border: 1px solid #fecdca; border-radius: 12px; background: #fffbfa; }
.studio-danger-zone h4 { margin: 0 0 6px; color: var(--danger); }
.studio-danger-zone p { color: var(--muted); font-size: 13px; }
.activity-day { margin-bottom: 18px; border: 1px solid var(--line); border-radius: 13px; background: #fff; overflow: hidden; }
.activity-day h4 { margin: 0; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #f9fafb; font-size: 14px; }
.activity-list { display: grid; }
.activity-row { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 13px 14px; border-top: 1px solid #f2f4f7; }
.activity-row:first-child { border-top: 0; }
.activity-time { color: var(--muted); font-size: 12px; padding-top: 3px; white-space: nowrap; }
.activity-row strong { display: block; margin-top: 6px; }
.activity-row small { display: block; margin-top: 4px; color: var(--muted); }
.ip-block-form { margin-bottom: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.ip-block-list { display: grid; gap: 10px; }
.ip-block-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.ip-block-row strong, .ip-block-row small, .ip-block-row span { display: block; }
.ip-block-row small { margin-top: 4px; color: var(--muted); }
.ip-block-row span { margin-top: 3px; color: var(--muted); font-size: 12px; }

.toast { position: fixed; z-index: 200; left: 50%; bottom: 25px; transform: translate(-50%, 20px); padding: 12px 17px; border-radius: 10px; color: #fff; background: #101828; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .2s; }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-bottom: 38px; }
.about-card { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.about-card h2 { margin: 18px 0 10px; font-size: 22px; }
.about-card p { margin: 0; color: var(--muted); line-height: 1.7; }
.contact-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 22px; align-items: start; padding-bottom: 40px; }
.contact-card, .contact-form { padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.contact-card h2 { margin: 18px 0 10px; font-size: 24px; }
.contact-card p { margin: 0; color: var(--muted); line-height: 1.7; }
.legal-content { max-width: 820px; display: grid; gap: 14px; padding-bottom: 42px; }
.legal-content section { padding: 24px; border: 1px solid var(--line); border-radius: 15px; background: #fff; }
.legal-content h2 { margin: 0 0 9px; font-size: 21px; }
.legal-content p { margin: 0; color: var(--muted); line-height: 1.75; }
.legal-content p + p { margin-top: 10px; }
.legal-content ul { margin: 10px 0 0; padding-left: 22px; color: var(--muted); line-height: 1.75; }
.terms-document { display: block; max-width: 860px; padding: 42px 48px 50px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: var(--shadow-sm); }
.legal-content.terms-document section { padding: 0; border: 0; border-radius: 0; background: transparent; }
.legal-content.terms-document section + section { margin-top: 26px; padding-top: 0; }
.legal-content.terms-document h2 { margin: 0 0 10px; font-size: 19px; letter-spacing: -.01em; }
.legal-content.terms-document p { color: #334155; line-height: 1.72; }
.legal-content.terms-document ul { color: #334155; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.loading { min-height: 50vh; display: grid; place-items: center; color: var(--muted); }

@media (max-width: 980px) {
  .header-actions .auth-text { display: none; }
  .quick-grid { grid-template-columns: repeat(4, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .subcategory-grid { grid-template-columns: repeat(3, 1fr); }
  .directory-head { grid-template-columns: 1fr; }
  .directory-toolbar { grid-template-columns: 1fr; }
  .filter-panel { min-width: 0; max-width: 520px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-hero { grid-template-columns: 1fr; }
  .detail-image { min-height: 370px; max-height: 480px; }
  .home-band { grid-template-columns: 1fr; }
  .home-band-actions { justify-content: flex-start; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 28px, 1200px); }
  .header-main { height: auto; min-height: 56px; justify-content: center; flex-wrap: wrap; padding: 8px 0; gap: 26px; }
  .header-category-menu { display: none; width: 100%; height: auto; justify-content: center; flex-wrap: wrap; gap: 26px; padding: 6px 0 2px; overflow: visible; }
  .header-category-menu.open { display: flex; }
  .header-category-menu .nav-item { min-height: 32px; padding: 0; background: transparent; }
  .location-chip { max-width: 100%; min-height: 28px; }
  .brand { font-size: 15px; }
  .header-actions { gap: 26px; }
  .header-actions .btn-secondary { display: none; }
  .mobile-menu-btn { display: grid; }
  .category-nav { display: none; }
  .category-nav.open { display: block; }
  .category-nav-inner { flex-direction: column; justify-content: flex-start; padding: 8px 0; }
  .nav-item { min-height: 42px; border: 0; border-radius: 8px; }
  .nav-item.active { background: rgba(255,255,255,.12); }
  .hero, .hero-content { min-height: 480px; }
  .hero-slide::after { background: linear-gradient(0deg, rgba(4,14,35,.45), rgba(4,14,35,.03)); }
  .hero-content { justify-content: flex-end; padding-bottom: 74px; }
  .hero-controls { bottom: 24px; }
  .hero h1 { font-size: 33px; }
  .quick-categories { margin-top: 0; padding: 18px 0 35px; }
  .quick-grid { width: 100%; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-card { min-height: 92px; }
  .card-grid, .community-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .home-band { padding: 30px 24px; border-radius: 20px; }
  .page-head { padding-top: 27px; }
  .filter-panel { display: grid; grid-template-columns: 1fr auto; }
  .directory-toolbar .filter-panel { max-width: none; }
  .subcategory-grid { grid-template-columns: repeat(2, 1fr); }
  .events-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .sidebar-links { grid-template-columns: repeat(2, 1fr); }
  .event-card { grid-template-columns: 1fr; }
  .event-card img { height: 210px; }
  .directory-row-image { min-height: 0; }
  .community-row { grid-template-columns: 1fr; }
  .topic-row { grid-template-columns: 1fr; }
  .community-row-icon { min-height: 110px; }
  .detail-shell { padding-top: 20px; }
  .detail-image { min-height: 280px; }
  .detail-content { padding: 26px 20px; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-story { min-height: 350px; }
  .auth-panel { padding: 35px 20px; }
  .account-layout { grid-template-columns: 1fr; }
  .account-nav { position: static; display: flex; overflow-x: auto; }
  .account-nav button { min-width: max-content; }
  .stat-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1/-1; }
  .footer-bottom { display: grid; gap: 8px; }
  .studio-layout { grid-template-columns: 1fr; }
  .studio-nav { grid-template-columns: repeat(4, 1fr); overflow-x: auto; }
  .community-admin-group .studio-category-head, .community-admin-thread-head { align-items: stretch; flex-direction: column; }
  .community-admin-reply { grid-template-columns: 1fr; }
  .studio-row { grid-template-columns: 40px 1fr; }
  .studio-actions { grid-column: 1/-1; justify-content: flex-end; }
  .studio-listing-columns { display: none; }
  .manage-row-rank { grid-template-columns: 40px 1fr; }
  .manage-row-rank .featured-rank-cell { grid-column: 1/-1; display: grid; grid-template-columns: auto 90px; justify-content: space-between; align-items: center; gap: 12px; }
  .manage-row-rank .featured-rank-cell::before { content: "Featured rank"; color: var(--muted); font-size: 12px; font-weight: 700; }
  .user-row { grid-template-columns: 42px 1fr auto; }
  .user-avatar { width: 42px; height: 42px; }
  .user-badges { grid-column: 1/-1; justify-content: flex-start; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 440px) {
  .brand .brand-name { display: none; }
  .header-main .brand-wordmark { height: 22px; }
  .header-actions .btn-primary { padding: 0; }
  .quick-grid { gap: 8px; }
  .quick-card { font-size: 12px; }
  .subcategory-grid { grid-template-columns: 1fr; }
  .filter-panel { grid-template-columns: 1fr; }
  .home-band-actions, .detail-actions { flex-direction: column; }
  .home-band-actions .btn, .detail-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .community-card { grid-template-columns: 48px 1fr; }
  .community-card .arrow { display: none; }
}
