:root {
    --primary: #2563eb;
    --violet: #7c3aed;
    --cyan: #06b6d4;
    --orange: #f97316;
    --pink: #ec4899;
    --gold: #f59e0b;
    --green: #10b981;
    --red: #ef4444;
    --ink: #0f172a;
    --muted: #64748b;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --line: #e2e8f0;
    --primary-gradient: linear-gradient(120deg, #2563eb 0%, #7c3aed 48%, #06b6d4 100%);
    --cta-gradient: linear-gradient(120deg, #f97316 0%, #ec4899 100%);
    --shadow: 0 18px 55px rgba(30, 41, 59, .12);
    --shadow-soft: 0 8px 28px rgba(30, 41, 59, .09);
    --radius: 22px;
    color-scheme: light;
}

[data-theme="dark"] {
    --ink: #f8fafc;
    --muted: #94a3b8;
    --surface: #111827;
    --surface-2: #0b1220;
    --line: #263247;
    --shadow: 0 18px 55px rgba(0, 0, 0, .35);
    --shadow-soft: 0 8px 28px rgba(0, 0, 0, .25);
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--surface-2);
    font-family: Inter, "Noto Sans Tamil", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.main-content { min-height: 66vh; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 9999; padding: 10px 16px; background: var(--ink); color: var(--surface); border-radius: 10px; }
.skip-link:focus { top: 12px; }

.site-header {
    position: sticky; top: 0; z-index: 80;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
    backdrop-filter: blur(18px);
}
.header-row { min-height: 72px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 22px; letter-spacing: -.6px; }
.brand-mark {
    width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px;
    background: var(--primary-gradient); color: white; box-shadow: 0 10px 28px rgba(124, 58, 237, .35);
    font-size: 21px; font-weight: 900;
}
.brand-text span { background: var(--primary-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.nav-link { color: var(--muted); font-weight: 700; font-size: 14px; transition: .2s ease; }
.nav-link:hover, .nav-link.active { color: var(--violet); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-button { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.mobile-menu-button { display: none; }

.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    min-height: 44px; padding: 0 18px; border: 0; border-radius: 14px;
    font-weight: 800; transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .62; cursor: wait; transform: none; }
.button-primary { color: #fff; background: var(--primary-gradient); box-shadow: 0 10px 24px rgba(79, 70, 229, .28); }
.button-cta { color: #fff; background: var(--cta-gradient); box-shadow: 0 10px 24px rgba(236, 72, 153, .25); }
.button-soft { color: var(--violet); background: color-mix(in srgb, var(--violet) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--violet) 20%, var(--line)); }
.button-danger { color: #fff; background: var(--red); }
.button-small { min-height: 36px; padding: 0 12px; border-radius: 11px; font-size: 13px; }
.button-block { width: 100%; }

.hero {
    position: relative; overflow: hidden; padding: 82px 0 76px;
    background:
        radial-gradient(circle at 10% 15%, rgba(6, 182, 212, .20), transparent 28%),
        radial-gradient(circle at 90% 8%, rgba(236, 72, 153, .20), transparent 27%),
        radial-gradient(circle at 56% 92%, rgba(124, 58, 237, .18), transparent 31%),
        var(--surface-2);
}
.hero::before { content: ""; position: absolute; inset: 0; opacity: .35; background-image: radial-gradient(var(--violet) .65px, transparent .65px); background-size: 24px 24px; pointer-events: none; }
.hero-inner { position: relative; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px; color: var(--violet); background: color-mix(in srgb, var(--violet) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--violet) 18%, var(--line)); font-weight: 800; font-size: 13px; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(6, 182, 212, .55); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(6, 182, 212, 0); } 100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); } }
.hero h1 { max-width: 900px; margin: 22px auto 16px; font-size: clamp(38px, 6vw, 72px); line-height: 1.03; letter-spacing: -2.8px; }
.gradient-text { background: var(--primary-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-copy { max-width: 720px; margin: 0 auto 30px; color: var(--muted); font-size: clamp(16px, 2vw, 20px); }
.search-shell { max-width: 990px; margin: 0 auto; padding: 12px; border-radius: 26px; background: color-mix(in srgb, var(--surface) 90%, transparent); border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.search-form { display: grid; grid-template-columns: 1.5fr 1fr auto; gap: 10px; }
.search-field { display: flex; align-items: center; min-height: 58px; padding: 0 17px; border: 1px solid var(--line); background: var(--surface); border-radius: 17px; }
.search-field:focus-within { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124, 58, 237, .10); }
.search-field input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; }
.search-field-icon { margin-right: 10px; color: var(--violet); font-size: 19px; }
.search-button { min-width: 150px; border-radius: 17px; }
.search-tools { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.chip:hover { color: var(--violet); border-color: color-mix(in srgb, var(--violet) 45%, var(--line)); }
.hero-actions { margin-top: 25px; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.section { padding: 72px 0; }
.section-white { background: var(--surface); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-heading h2 { margin: 0; font-size: clamp(27px, 4vw, 40px); letter-spacing: -1px; }
.section-heading p { margin: 6px 0 0; color: var(--muted); }
.category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 15px; }
.category-card { min-height: 145px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 18px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 21px; box-shadow: var(--shadow-soft); transition: .22s ease; }
.category-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--violet) 38%, var(--line)); }
.category-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 17px; font-size: 25px; color: #fff; }
.category-card:nth-child(6n+1) .category-icon { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.category-card:nth-child(6n+2) .category-icon { background: linear-gradient(135deg, #7c3aed, #ec4899); }
.category-card:nth-child(6n+3) .category-icon { background: linear-gradient(135deg, #f97316, #f59e0b); }
.category-card:nth-child(6n+4) .category-icon { background: linear-gradient(135deg, #10b981, #06b6d4); }
.category-card:nth-child(6n+5) .category-icon { background: linear-gradient(135deg, #ec4899, #f43f5e); }
.category-card:nth-child(6n+6) .category-icon { background: linear-gradient(135deg, #4f46e5, #8b5cf6); }
.category-title { font-weight: 850; font-size: 14px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { position: relative; overflow: hidden; padding: 27px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.feature-card::after { content: ""; position: absolute; right: -38px; bottom: -55px; width: 140px; height: 140px; border-radius: 50%; background: color-mix(in srgb, var(--violet) 9%, transparent); }
.feature-card h3 { margin: 16px 0 8px; font-size: 20px; }
.feature-card p { margin: 0; color: var(--muted); }
.feature-icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 16px; color: #fff; background: var(--primary-gradient); font-size: 22px; }
.metric-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 30px; }
.metric { padding: 22px; text-align: center; background: color-mix(in srgb, var(--surface) 91%, transparent); border: 1px solid var(--line); border-radius: 18px; }
.metric strong { display: block; font-size: 25px; color: var(--violet); }
.metric span { color: var(--muted); font-size: 13px; }
.cta-panel { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.5fr auto; align-items: center; gap: 30px; padding: 42px; color: #fff; border-radius: 30px; background: var(--primary-gradient); box-shadow: 0 24px 70px rgba(79, 70, 229, .3); }
.cta-panel::after { content: ""; position: absolute; width: 260px; height: 260px; right: -110px; top: -140px; border: 40px solid rgba(255,255,255,.10); border-radius: 50%; }
.cta-panel h2 { margin: 0 0 8px; font-size: clamp(26px, 4vw, 42px); }
.cta-panel p { margin: 0; color: rgba(255,255,255,.84); }
.cta-panel .button { position: relative; z-index: 1; color: var(--violet); background: #fff; }

.auth-page { min-height: calc(100vh - 72px); padding: 48px 0; display: grid; place-items: center; background: radial-gradient(circle at 20% 10%, rgba(6,182,212,.15), transparent 35%), radial-gradient(circle at 90% 80%, rgba(236,72,153,.12), transparent 35%), var(--surface-2); }
.auth-grid { width: min(980px, calc(100% - 32px)); display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 30px; box-shadow: var(--shadow); }
.auth-visual { position: relative; overflow: hidden; padding: 42px; color: #fff; background: var(--primary-gradient); }
.auth-visual h1 { margin: 55px 0 12px; font-size: 39px; line-height: 1.08; letter-spacing: -1.4px; }
.auth-visual p { color: rgba(255,255,255,.84); }
.auth-orbit { position: absolute; width: 260px; height: 260px; right: -90px; bottom: -90px; border: 2px solid rgba(255,255,255,.25); border-radius: 50%; }
.auth-orbit::before, .auth-orbit::after { content: ""; position: absolute; border: 2px solid rgba(255,255,255,.18); border-radius: 50%; }
.auth-orbit::before { inset: 30px; } .auth-orbit::after { inset: 65px; }
.auth-card { padding: 42px; }
.auth-card h2 { margin: 0 0 7px; font-size: 29px; }
.auth-card > p { margin: 0 0 24px; color: var(--muted); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 24px; padding: 5px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; }
.tab { min-height: 40px; border: 0; border-radius: 10px; color: var(--muted); background: transparent; font-weight: 800; }
.tab.active { color: var(--violet); background: var(--surface); box-shadow: var(--shadow-soft); }
.tab-panel[hidden] { display: none; }
.form-group { margin-bottom: 17px; }
.label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 800; }
.input, .select, .textarea { width: 100%; min-height: 48px; padding: 11px 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 13px; outline: 0; transition: .2s; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124,58,237,.10); }
.input-error { border-color: var(--red); }
.field-error { margin-top: 6px; color: var(--red); font-size: 12px; font-weight: 700; }
.form-hint { margin-top: 6px; color: var(--muted); font-size: 12px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.checkbox-row { display: flex; align-items: center; gap: 9px; margin: 12px 0 18px; color: var(--muted); font-size: 13px; }
.otp-boxes { display: flex; gap: 9px; }
.otp-input { text-align: center; font-size: 26px; letter-spacing: 12px; font-weight: 900; }

.alert { margin: 16px 0; padding: 13px 16px; border-radius: 13px; font-size: 14px; font-weight: 650; }
.alert-success { color: #047857; background: #d1fae5; border: 1px solid #a7f3d0; }
.alert-error { color: #b91c1c; background: #fee2e2; border: 1px solid #fecaca; }
.alert ul { margin: 5px 0; padding-left: 20px; }

.portal-shell { min-height: 100vh; display: grid; grid-template-columns: 260px 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 22px 16px; color: #e2e8f0; background: #0f172a; overflow-y: auto; }
.sidebar .brand { color: white; margin: 0 8px 28px; }
.sidebar-label { margin: 20px 11px 8px; color: #64748b; font-size: 10px; font-weight: 900; letter-spacing: 1.3px; text-transform: uppercase; }
.sidebar-link { display: flex; align-items: center; gap: 11px; min-height: 43px; margin: 3px 0; padding: 0 12px; border-radius: 12px; color: #94a3b8; font-size: 14px; font-weight: 700; }
.sidebar-link:hover, .sidebar-link.active { color: white; background: linear-gradient(90deg, rgba(37,99,235,.35), rgba(124,58,237,.35)); }
.portal-main { min-width: 0; }
.portal-topbar { position: sticky; top: 0; z-index: 40; min-height: 72px; display: flex; align-items: center; gap: 15px; padding: 0 26px; background: color-mix(in srgb, var(--surface) 90%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.portal-topbar-title { font-weight: 900; }
.portal-topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.avatar { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 13px; color: white; background: var(--primary-gradient); font-weight: 900; }
.portal-content { padding: 28px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.page-heading h1 { margin: 0; font-size: 29px; letter-spacing: -.7px; }
.page-heading p { margin: 5px 0 0; color: var(--muted); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card { position: relative; overflow: hidden; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 19px; box-shadow: var(--shadow-soft); }
.stat-card-label { color: var(--muted); font-size: 13px; font-weight: 750; }
.stat-card-value { margin-top: 8px; font-size: 30px; font-weight: 900; }
.stat-card-icon { position: absolute; top: 18px; right: 18px; width: 39px; height: 39px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: var(--primary-gradient); }
.panel { margin-top: 20px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-soft); }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.panel-header h2 { margin: 0; font-size: 18px; }
.panel-header p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.two-column { display: grid; grid-template-columns: 1.2fr .8fr; gap: 20px; }
.table-wrap { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th { padding: 11px 12px; color: var(--muted); border-bottom: 1px solid var(--line); text-align: left; font-size: 11px; letter-spacing: .55px; text-transform: uppercase; }
.table td { padding: 13px 12px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.user-cell { display: flex; align-items: center; gap: 10px; }
.user-cell .avatar { width: 35px; height: 35px; border-radius: 11px; font-size: 12px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 850; }
.badge-green { color: #047857; background: #d1fae5; }
.badge-red { color: #b91c1c; background: #fee2e2; }
.badge-amber { color: #b45309; background: #fef3c7; }
.badge-violet { color: #6d28d9; background: #ede9fe; }
.action-row { display: flex; gap: 7px; flex-wrap: wrap; }
.filter-bar { display: grid; grid-template-columns: 1fr 170px auto; gap: 10px; margin-bottom: 18px; }
.empty-state { padding: 46px 20px; text-align: center; color: var(--muted); }
.pagination { display: flex; gap: 7px; margin-top: 18px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 37px; height: 37px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }

.global-loader { position: fixed; inset: 0; z-index: 9998; display: grid; place-items: center; color: #fff; background: rgba(8, 15, 32, .94); transition: opacity .35s ease, visibility .35s ease; }
.global-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-content { text-align: center; }
.loader-orbit { position: relative; width: 92px; height: 92px; margin: 0 auto 18px; border: 2px solid rgba(255,255,255,.12); border-radius: 50%; animation: rotate 1.35s linear infinite; }
.loader-logo { position: absolute; inset: 17px; display: grid; place-items: center; border-radius: 19px; color: white; background: var(--primary-gradient); font-size: 28px; font-weight: 950; animation: counter-rotate 1.35s linear infinite; }
.loader-dot { position: absolute; width: 11px; height: 11px; border-radius: 50%; box-shadow: 0 0 18px currentColor; }
.loader-dot.one { top: -5px; left: 40px; color: var(--cyan); background: currentColor; }
.loader-dot.two { right: 2px; bottom: 13px; color: var(--pink); background: currentColor; }
.loader-dot.three { left: 2px; bottom: 13px; color: var(--gold); background: currentColor; }
@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes counter-rotate { to { transform: rotate(-360deg); } }
.loader-title { font-weight: 900; letter-spacing: .2px; }
.loader-message { margin-top: 5px; color: #94a3b8; font-size: 13px; }
.button-spinner { display: none; width: 17px; height: 17px; border: 2px solid rgba(255,255,255,.35); border-top-color: currentColor; border-radius: 50%; animation: rotate .7s linear infinite; }
.button.is-loading .button-spinner { display: inline-block; }
.skeleton { position: relative; overflow: hidden; background: color-mix(in srgb, var(--line) 72%, var(--surface)); border-radius: 9px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); animation: shimmer 1.45s infinite; }
@keyframes shimmer { 100% { transform: translateX(100%); } }
.skeleton-card { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.skeleton-line { height: 12px; margin: 10px 0; }.skeleton-line.short { width: 55%; }.skeleton-image { height: 130px; }

.site-footer { padding: 55px 0 25px; color: #cbd5e1; background: #0f172a; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 35px; }
.footer-title { color: #fff; font-weight: 900; margin-bottom: 12px; }
.footer-links { display: grid; gap: 8px; color: #94a3b8; font-size: 14px; }
.footer-copy { max-width: 340px; color: #94a3b8; }
.footer-bottom { margin-top: 35px; padding-top: 20px; border-top: 1px solid #263247; color: #64748b; font-size: 13px; }

@media (max-width: 1000px) {
    .site-nav { display: none; }
    .mobile-menu-button { display: grid; }
    .category-grid { grid-template-columns: repeat(3, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .portal-shell { grid-template-columns: 82px 1fr; }
    .sidebar .brand-text, .sidebar-link span, .sidebar-label { display: none; }
    .sidebar-link { justify-content: center; }
    .sidebar .brand { margin-inline: 4px; }
    .two-column { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
    .container { width: min(100% - 22px, 1180px); }
    .header-row { min-height: 64px; gap: 10px; }
    .header-actions .button-soft { display: none; }
    .brand-text { font-size: 19px; }
    .brand-mark { width: 38px; height: 38px; }
    .hero { padding: 55px 0; }
    .hero h1 { letter-spacing: -1.7px; }
    .search-form { grid-template-columns: 1fr; }
    .search-button { min-height: 54px; }
    .category-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .category-card { min-height: 125px; }
    .card-grid, .metric-row, .footer-grid { grid-template-columns: 1fr; }
    .cta-panel { grid-template-columns: 1fr; padding: 29px; }
    .auth-grid { grid-template-columns: 1fr; }
    .auth-visual { display: none; }
    .auth-card { padding: 28px 20px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .portal-shell { display: block; }
    .sidebar { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 90; width: auto; height: 66px; display: flex; align-items: center; justify-content: space-around; padding: 7px; overflow: hidden; }
    .sidebar .brand, .sidebar-label, .sidebar-link:nth-of-type(n+6) { display: none; }
    .sidebar-link { min-width: 48px; margin: 0; }
    .portal-content { padding: 18px 12px 85px; }
    .portal-topbar { min-height: 64px; padding: 0 13px; }
    .portal-topbar .muted { display: none; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card { padding: 17px; }
    .stat-card-value { font-size: 24px; }
    .stat-card-icon { display: none; }
    .page-heading { align-items: flex-start; flex-direction: column; }
    .filter-bar { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Phase 2 Part 1: category + location masters */
.master-layout { grid-template-columns: minmax(320px, .72fr) minmax(0, 1.28fr); align-items: start; }
.master-form-panel { position: sticky; top: 92px; }
.master-filter { grid-template-columns: minmax(180px, 1fr) 150px 150px auto; }
.master-three-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.master-three-grid > .panel { min-width: 0; }
.master-table { margin-top: 18px; }
.master-search { margin-top: 0; }
.table code { padding: 3px 6px; border-radius: 7px; color: var(--violet); background: color-mix(in srgb, var(--violet) 8%, var(--surface)); font-size: 12px; }
.text-right { text-align: right; }

@media (max-width: 1220px) {
    .master-three-grid { grid-template-columns: 1fr; }
    .master-three-grid > .panel { margin-top: 0; }
}
@media (max-width: 900px) {
    .master-layout { grid-template-columns: 1fr; }
    .master-form-panel { position: static; }
    .master-filter { grid-template-columns: 1fr; }
}
