﻿:root {
    --pw-bg-1: #060b16;
    --pw-bg-2: #0f1b32;
    --pw-bg-3: #1a2745;
    --pw-card-1: rgba(14, 23, 43, 0.8);
    --pw-card-2: rgba(11, 19, 36, 0.7);
    --pw-border: rgba(255, 255, 255, 0.14);
    --pw-border-soft: rgba(255, 255, 255, 0.09);
    --pw-text: #e8eefc;
    --pw-muted: #afbddb;
    --pw-heading: #f4f8ff;
    --pw-value: #f4f9ff;
    --pw-accent: #50d6ff;
    --pw-accent-2: #6f7dff;
    --pw-accent-rgb: 80, 214, 255;
    --pw-warning: #ffbe5c;
    --pw-shadow: 0 28px 56px rgba(2, 6, 18, 0.48);
    --pw-card-hover-shadow: 0 30px 60px rgba(2, 8, 20, 0.58);
    --pw-nav-1: rgba(15, 25, 46, 0.86);
    --pw-nav-2: rgba(10, 17, 31, 0.75);
    --pw-tab-bg: rgba(255, 255, 255, 0.03);
    --pw-tab-text: #afbddb;
    --pw-tab-hover-text: #f2f8ff;
    --pw-tab-hover-border: rgba(80, 214, 255, 0.56);
    --pw-tab-active-text: #ffffff;
    --pw-chip-bg: rgba(7, 12, 24, 0.58);
    --pw-chip-border: rgba(175, 189, 219, 0.46);
    --pw-chip-text: #aebfdf;
    --pw-chip-shortcut-text: #a8bddf;
    --pw-clock-bg-1: rgba(12, 21, 38, 0.72);
    --pw-clock-bg-2: rgba(10, 18, 32, 0.6);
    --pw-clock-border: rgba(80, 214, 255, 0.32);
    --pw-clock-text: #d9ebff;
    --pw-control-bg: rgba(255, 255, 255, 0.045);
    --pw-control-text: #dbe8ff;
    --pw-input-bg: rgba(5, 10, 21, 0.44);
    --pw-input-text: #f1f6ff;
    --pw-placeholder: rgba(198, 210, 237, 0.7);
    --pw-grid-line: rgba(255, 255, 255, 0.018);
    --pw-hero-1: rgba(13, 22, 41, 0.86);
    --pw-hero-2: rgba(9, 16, 29, 0.74);
    --pw-soft-surface: rgba(255, 255, 255, 0.035);
    --pw-head-surface: rgba(10, 17, 31, 0.74);
    --pw-rank-toggle-bg-1: rgba(16, 29, 56, 0.92);
    --pw-rank-toggle-bg-2: rgba(22, 35, 66, 0.88);
    --pw-rank-menu-bg-1: rgba(13, 24, 46, 0.96);
    --pw-rank-menu-bg-2: rgba(14, 23, 40, 0.92);
    --pw-rank-option-text: #dce8ff;
    --pw-rank-option-hover-text: #f4fbff;
    --pw-rank-option-active-text: #ffffff;
    --pw-link: #eaf4ff;
    --pw-link-hover: #9fe8ff;
    --pw-legal-link: #dcefff;
    --pw-legal-link-hover: #ffffff;
    --pw-legal-contact: #c5d8f3;
    --pw-legal-contact-opacity: 0.7;
    --pw-orb-1: rgba(80, 214, 255, 0.12);
    --pw-orb-2: rgba(111, 125, 255, 0.18);
    --pw-orb-3: rgba(255, 190, 92, 0.08);
    --pw-fx-1: rgba(80, 214, 255, 0.18);
    --pw-fx-2: rgba(111, 125, 255, 0.16);
    --pw-fx-3: rgba(255, 190, 92, 0.1);
}

body[data-theme="acik"] {
    --pw-bg-1: #f5f9ff;
    --pw-bg-2: #e8f0ff;
    --pw-bg-3: #d6e4ff;
    --pw-card-1: rgba(255, 255, 255, 0.97);
    --pw-card-2: rgba(242, 248, 255, 0.94);
    --pw-border: rgba(54, 88, 140, 0.28);
    --pw-border-soft: rgba(74, 106, 156, 0.2);
    --pw-text: #10233f;
    --pw-muted: #476181;
    --pw-heading: #0e2a52;
    --pw-value: #112e58;
    --pw-accent: #1faef8;
    --pw-accent-2: #4d6eff;
    --pw-accent-rgb: 31, 174, 248;
    --pw-shadow: 0 16px 34px rgba(58, 91, 140, 0.18);
    --pw-card-hover-shadow: 0 20px 38px rgba(58, 91, 140, 0.24);
    --pw-nav-1: rgba(237, 246, 255, 0.97);
    --pw-nav-2: rgba(226, 239, 255, 0.94);
    --pw-tab-bg: rgba(255, 255, 255, 0.86);
    --pw-tab-text: #3a5478;
    --pw-tab-hover-text: #173862;
    --pw-tab-hover-border: rgba(31, 174, 248, 0.5);
    --pw-tab-active-text: #ffffff;
    --pw-chip-bg: rgba(255, 255, 255, 0.86);
    --pw-chip-border: rgba(85, 126, 184, 0.4);
    --pw-chip-text: #36506f;
    --pw-chip-shortcut-text: #456384;
    --pw-clock-bg-1: rgba(236, 246, 255, 0.98);
    --pw-clock-bg-2: rgba(225, 239, 255, 0.95);
    --pw-clock-border: rgba(31, 174, 248, 0.46);
    --pw-clock-text: #183862;
    --pw-control-bg: rgba(255, 255, 255, 0.9);
    --pw-control-text: #2a4b76;
    --pw-input-bg: rgba(255, 255, 255, 0.98);
    --pw-input-text: #10233f;
    --pw-placeholder: rgba(81, 108, 146, 0.72);
    --pw-grid-line: rgba(50, 79, 122, 0.06);
    --pw-hero-1: rgba(240, 247, 255, 0.98);
    --pw-hero-2: rgba(226, 239, 255, 0.95);
    --pw-soft-surface: rgba(17, 39, 74, 0.055);
    --pw-head-surface: rgba(255, 255, 255, 0.96);
    --pw-rank-toggle-bg-1: rgba(236, 246, 255, 0.98);
    --pw-rank-toggle-bg-2: rgba(225, 239, 255, 0.95);
    --pw-rank-menu-bg-1: rgba(250, 253, 255, 0.98);
    --pw-rank-menu-bg-2: rgba(235, 245, 255, 0.95);
    --pw-rank-option-text: #23466e;
    --pw-rank-option-hover-text: #14365b;
    --pw-rank-option-active-text: #0e2a52;
    --pw-link: #214d7a;
    --pw-link-hover: #0f3f6e;
    --pw-legal-link: #d7e9ff;
    --pw-legal-link-hover: #ffffff;
    --pw-legal-contact: #c2d6f4;
    --pw-legal-contact-opacity: 0.72;
    --pw-orb-1: rgba(78, 146, 255, 0.14);
    --pw-orb-2: rgba(45, 179, 255, 0.12);
    --pw-orb-3: rgba(108, 132, 255, 0.1);
    --pw-fx-1: rgba(59, 167, 255, 0.2);
    --pw-fx-2: rgba(93, 117, 255, 0.14);
    --pw-fx-3: rgba(88, 147, 255, 0.14);
}

body[data-theme="loket"] {
    --pw-bg-1: #fff7ee;
    --pw-bg-2: #ffe9d4;
    --pw-bg-3: #ffd7bf;
    --pw-card-1: rgba(255, 252, 246, 0.95);
    --pw-card-2: rgba(255, 243, 228, 0.9);
    --pw-border: rgba(196, 119, 64, 0.32);
    --pw-border-soft: rgba(196, 119, 64, 0.22);
    --pw-text: #4f2d19;
    --pw-muted: #80583b;
    --pw-heading: #4d2c18;
    --pw-value: #4a2916;
    --pw-accent: #ff9b3d;
    --pw-accent-2: #ff6d5c;
    --pw-accent-rgb: 255, 155, 61;
    --pw-shadow: 0 18px 38px rgba(178, 108, 59, 0.22);
    --pw-card-hover-shadow: 0 22px 42px rgba(178, 108, 59, 0.28);
    --pw-nav-1: rgba(255, 244, 229, 0.97);
    --pw-nav-2: rgba(255, 235, 213, 0.94);
    --pw-tab-bg: rgba(255, 255, 255, 0.82);
    --pw-tab-text: #8b5e43;
    --pw-tab-hover-text: #643a22;
    --pw-tab-hover-border: rgba(255, 148, 67, 0.52);
    --pw-tab-active-text: #ffffff;
    --pw-chip-bg: rgba(255, 252, 246, 0.84);
    --pw-chip-border: rgba(191, 120, 67, 0.44);
    --pw-chip-text: #87593b;
    --pw-chip-shortcut-text: #8f684a;
    --pw-clock-bg-1: rgba(255, 246, 232, 0.96);
    --pw-clock-bg-2: rgba(255, 235, 210, 0.94);
    --pw-clock-border: rgba(255, 148, 67, 0.44);
    --pw-clock-text: #6c3f24;
    --pw-control-bg: rgba(255, 255, 255, 0.84);
    --pw-control-text: #775036;
    --pw-input-bg: rgba(255, 255, 255, 0.95);
    --pw-input-text: #4f2d19;
    --pw-placeholder: rgba(126, 90, 63, 0.68);
    --pw-grid-line: rgba(196, 119, 64, 0.08);
    --pw-hero-1: rgba(255, 245, 231, 0.98);
    --pw-hero-2: rgba(255, 232, 202, 0.94);
    --pw-soft-surface: rgba(120, 69, 36, 0.075);
    --pw-head-surface: rgba(255, 250, 242, 0.96);
    --pw-rank-toggle-bg-1: rgba(255, 246, 231, 0.96);
    --pw-rank-toggle-bg-2: rgba(255, 234, 206, 0.93);
    --pw-rank-menu-bg-1: rgba(255, 251, 244, 0.98);
    --pw-rank-menu-bg-2: rgba(255, 241, 223, 0.94);
    --pw-rank-option-text: #6b4228;
    --pw-rank-option-hover-text: #51311d;
    --pw-rank-option-active-text: #3f2516;
    --pw-link: #7a492b;
    --pw-link-hover: #5a351e;
    --pw-legal-link: #ffe5cc;
    --pw-legal-link-hover: #fff4e6;
    --pw-legal-contact: #f2d5bd;
    --pw-legal-contact-opacity: 0.72;
    --pw-orb-1: rgba(255, 160, 76, 0.2);
    --pw-orb-2: rgba(255, 109, 92, 0.16);
    --pw-orb-3: rgba(255, 198, 117, 0.14);
    --pw-fx-1: rgba(255, 141, 64, 0.2);
    --pw-fx-2: rgba(255, 108, 88, 0.16);
    --pw-fx-3: rgba(255, 192, 112, 0.14);
}

body[data-theme="koyu"] {
    --pw-bg-1: #060b16;
    --pw-bg-2: #0f1b32;
    --pw-bg-3: #1a2745;
    --pw-card-1: rgba(14, 23, 43, 0.8);
    --pw-card-2: rgba(11, 19, 36, 0.7);
    --pw-border: rgba(255, 255, 255, 0.14);
    --pw-border-soft: rgba(255, 255, 255, 0.09);
    --pw-text: #e8eefc;
    --pw-muted: #afbddb;
    --pw-heading: #f4f8ff;
    --pw-value: #f4f9ff;
    --pw-accent: #50d6ff;
    --pw-accent-2: #6f7dff;
    --pw-accent-rgb: 80, 214, 255;
    --pw-shadow: 0 28px 56px rgba(2, 6, 18, 0.48);
    --pw-card-hover-shadow: 0 30px 60px rgba(2, 8, 20, 0.58);
    --pw-nav-1: rgba(15, 25, 46, 0.86);
    --pw-nav-2: rgba(10, 17, 31, 0.75);
    --pw-tab-bg: rgba(255, 255, 255, 0.03);
    --pw-tab-text: #afbddb;
    --pw-tab-hover-text: #f2f8ff;
    --pw-tab-hover-border: rgba(80, 214, 255, 0.56);
    --pw-tab-active-text: #ffffff;
    --pw-chip-bg: rgba(7, 12, 24, 0.58);
    --pw-chip-border: rgba(175, 189, 219, 0.46);
    --pw-chip-text: #aebfdf;
    --pw-chip-shortcut-text: #a8bddf;
    --pw-clock-bg-1: rgba(12, 21, 38, 0.74);
    --pw-clock-bg-2: rgba(10, 18, 32, 0.62);
    --pw-clock-border: rgba(80, 214, 255, 0.32);
    --pw-clock-text: #d9ebff;
    --pw-control-bg: rgba(255, 255, 255, 0.05);
    --pw-control-text: #dbe8ff;
    --pw-input-bg: rgba(5, 10, 21, 0.46);
    --pw-input-text: #f1f6ff;
    --pw-placeholder: rgba(198, 210, 237, 0.7);
    --pw-grid-line: rgba(255, 255, 255, 0.018);
    --pw-hero-1: rgba(13, 22, 41, 0.88);
    --pw-hero-2: rgba(9, 16, 29, 0.76);
    --pw-soft-surface: rgba(255, 255, 255, 0.04);
    --pw-head-surface: rgba(10, 17, 31, 0.76);
    --pw-rank-toggle-bg-1: rgba(16, 29, 56, 0.92);
    --pw-rank-toggle-bg-2: rgba(22, 35, 66, 0.88);
    --pw-rank-menu-bg-1: rgba(13, 24, 46, 0.96);
    --pw-rank-menu-bg-2: rgba(14, 23, 40, 0.92);
    --pw-rank-option-text: #dce8ff;
    --pw-rank-option-hover-text: #f4fbff;
    --pw-rank-option-active-text: #ffffff;
    --pw-link: #dcefff;
    --pw-link-hover: #9fe8ff;
    --pw-orb-1: rgba(80, 214, 255, 0.12);
    --pw-orb-2: rgba(111, 125, 255, 0.18);
    --pw-orb-3: rgba(255, 190, 92, 0.08);
    --pw-fx-1: rgba(80, 214, 255, 0.18);
    --pw-fx-2: rgba(111, 125, 255, 0.16);
    --pw-fx-3: rgba(255, 190, 92, 0.1);
}

body[data-theme="gece"] {
    --pw-bg-1: #090714;
    --pw-bg-2: #19132d;
    --pw-bg-3: #2a1f43;
    --pw-card-1: rgba(19, 14, 34, 0.86);
    --pw-card-2: rgba(13, 10, 25, 0.8);
    --pw-border: rgba(197, 142, 255, 0.24);
    --pw-border-soft: rgba(197, 142, 255, 0.15);
    --pw-text: #f6efff;
    --pw-muted: #c9b8e6;
    --pw-heading: #fff7ff;
    --pw-value: #fff5ff;
    --pw-accent: #c46eff;
    --pw-accent-2: #ffb64d;
    --pw-accent-rgb: 196, 110, 255;
    --pw-shadow: 0 30px 60px rgba(8, 4, 20, 0.62);
    --pw-card-hover-shadow: 0 34px 66px rgba(8, 4, 20, 0.68);
    --pw-nav-1: rgba(18, 13, 33, 0.92);
    --pw-nav-2: rgba(12, 9, 24, 0.84);
    --pw-tab-bg: rgba(255, 255, 255, 0.04);
    --pw-tab-text: #cfbee8;
    --pw-tab-hover-text: #fff5ff;
    --pw-tab-hover-border: rgba(196, 110, 255, 0.58);
    --pw-tab-active-text: #190f2b;
    --pw-chip-bg: rgba(16, 10, 29, 0.7);
    --pw-chip-border: rgba(198, 149, 255, 0.36);
    --pw-chip-text: #d9c8ef;
    --pw-chip-shortcut-text: #d2c0e8;
    --pw-clock-bg-1: rgba(24, 16, 43, 0.82);
    --pw-clock-bg-2: rgba(14, 10, 27, 0.75);
    --pw-clock-border: rgba(255, 182, 72, 0.42);
    --pw-clock-text: #ffedca;
    --pw-control-bg: rgba(255, 255, 255, 0.06);
    --pw-control-text: #e5d5f7;
    --pw-input-bg: rgba(16, 11, 30, 0.6);
    --pw-input-text: #f8f2ff;
    --pw-placeholder: rgba(212, 193, 240, 0.72);
    --pw-grid-line: rgba(255, 255, 255, 0.02);
    --pw-hero-1: rgba(22, 15, 39, 0.9);
    --pw-hero-2: rgba(13, 10, 25, 0.84);
    --pw-soft-surface: rgba(255, 255, 255, 0.045);
    --pw-head-surface: rgba(19, 14, 34, 0.84);
    --pw-rank-toggle-bg-1: rgba(24, 17, 43, 0.92);
    --pw-rank-toggle-bg-2: rgba(17, 12, 31, 0.88);
    --pw-rank-menu-bg-1: rgba(22, 16, 40, 0.96);
    --pw-rank-menu-bg-2: rgba(13, 10, 25, 0.94);
    --pw-rank-option-text: #e5d5f7;
    --pw-rank-option-hover-text: #fff5ff;
    --pw-rank-option-active-text: #fff8ff;
    --pw-link: #efd5ff;
    --pw-link-hover: #ffc98f;
    --pw-orb-1: rgba(196, 110, 255, 0.18);
    --pw-orb-2: rgba(255, 182, 72, 0.14);
    --pw-orb-3: rgba(137, 106, 255, 0.14);
    --pw-fx-1: rgba(196, 110, 255, 0.2);
    --pw-fx-2: rgba(255, 182, 72, 0.16);
    --pw-fx-3: rgba(130, 101, 255, 0.16);
}

html,
body,
button,
input,
select,
textarea {
    font-family: "Manrope", "Segoe UI", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.tab span,
.hero-kicker {
    font-family: "Space Grotesk", "Segoe UI", sans-serif;
}

html,
body {
    scroll-behavior: smooth;
}

html {
    min-height: 100%;
    background:
        radial-gradient(circle at 12% 12%, var(--pw-orb-1), transparent 32%),
        radial-gradient(circle at 84% 16%, var(--pw-orb-2), transparent 38%),
        radial-gradient(circle at 50% 120%, var(--pw-orb-3), transparent 40%),
        linear-gradient(135deg, var(--pw-bg-1), var(--pw-bg-2) 42%, var(--pw-bg-3));
    background-color: var(--pw-bg-2);
}

body {
    color: var(--pw-text);
    background: transparent;
    padding: 108px 20px 0;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: none;
}

.web-bgfx {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 20% 0%, var(--pw-fx-1), transparent 58%),
        radial-gradient(ellipse at 92% 24%, var(--pw-fx-2), transparent 56%),
        radial-gradient(ellipse at 50% 120%, var(--pw-fx-3), transparent 54%);
    filter: blur(0.5px);
}

.app {
    width: min(1720px, 100%);
    min-height: auto;
    position: relative;
    z-index: 1;
}

.tabs {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 40;
    width: min(1680px, calc(100% - 34px));
    border-radius: 18px;
    padding: 8px;
    background: linear-gradient(140deg, var(--pw-nav-1), var(--pw-nav-2));
    border: 1px solid var(--pw-border);
    box-shadow: var(--pw-shadow);
    backdrop-filter: blur(16px);
    display: grid;
    grid-template-columns: auto repeat(4, minmax(0, 1fr)) auto;
    align-items: stretch;
    gap: 8px;
}

.tabs .tab-swipe-indicator {
    display: none !important;
}

.tab {
    border: 1px solid var(--pw-border-soft);
    border-radius: 12px;
    min-height: 52px;
    background: var(--pw-tab-bg);
    color: var(--pw-tab-text);
    transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease, color 0.24s ease;
}

.tab svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.2;
}

.tab:hover {
    transform: translateY(-1px);
    border-color: var(--pw-tab-hover-border);
    color: var(--pw-tab-hover-text);
}

.tab.active {
    border-color: transparent;
    color: var(--pw-tab-active-text);
    background: linear-gradient(135deg, var(--pw-accent), var(--pw-accent-2));
    box-shadow: 0 10px 20px rgba(var(--pw-accent-rgb), 0.34);
}

.tab-side {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px dashed var(--pw-chip-border);
    background: var(--pw-chip-bg);
    color: var(--pw-chip-text);
    font-weight: 700;
    min-height: 48px;
    padding: 0 12px;
    white-space: nowrap;
    box-shadow: inset 0 0 0 1px var(--pw-border-soft);
    pointer-events: none;
    user-select: none;
}

.tab-shortcut-chip {
    font-size: 0.74rem;
    letter-spacing: 0.03em;
    color: var(--pw-chip-shortcut-text);
}

.tab-clock-chip {
    font-size: 0.94rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    min-width: 108px;
    border-style: solid;
    border-color: var(--pw-clock-border);
    background: linear-gradient(145deg, var(--pw-clock-bg-1), var(--pw-clock-bg-2));
    color: var(--pw-clock-text);
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.hero {
    border: 0;
    border-radius: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    box-shadow: none;
    height: 0;
    min-height: 0;
    overflow: hidden;
}

.examtype-top-card {
    margin-top: 12px;
}

.examtype-top-card.top-card-hidden {
    display: none;
}

.top-control-grid {
    display: grid;
    grid-template-columns: minmax(220px, 0.9fr) minmax(220px, 1fr);
    gap: 10px;
    align-items: end;
}

.top-rank-wrap {
    width: 100%;
    margin: 0;
    position: relative;
    z-index: 1500;
    max-height: none !important;
    overflow: visible !important;
}

.top-rank-wrap .selectbox {
    margin-top: 6px;
    position: relative;
    z-index: 420;
}

#examTypeCard {
    position: relative;
    z-index: 360;
    overflow: visible !important;
}

#examTypeCard.rank-open {
    z-index: 1200;
}

#rankYearSelect {
    display: block !important;
    width: 100%;
    position: relative;
    z-index: 1600;
    overflow: visible !important;
}

#rankYear.hide {
    display: none !important;
}

#rankYearToggle {
    position: relative;
    overflow: hidden;
    font-weight: 800;
    text-align: center;
    border: 1px solid rgba(var(--pw-accent-rgb), 0.32) !important;
    background: linear-gradient(140deg, var(--pw-rank-toggle-bg-1), var(--pw-rank-toggle-bg-2)) !important;
    box-shadow: 0 10px 22px rgba(var(--pw-accent-rgb), 0.2);
}

#rankYearToggle::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(var(--pw-accent-rgb), 0.22), rgba(var(--pw-accent-rgb), 0.1));
    opacity: 0;
    transition: opacity 0.24s ease;
    pointer-events: none;
}

#rankYearSelect.open #rankYearToggle::before,
#rankYearToggle:hover::before {
    opacity: 1;
}

#rankYearSelect .select-menu {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: 0 !important;
    margin-top: 0;
    padding: 8px;
    border-radius: 14px;
    border: 1px solid rgba(var(--pw-accent-rgb), 0.3);
    background: linear-gradient(155deg, var(--pw-rank-menu-bg-1), var(--pw-rank-menu-bg-2));
    box-shadow: 0 16px 34px rgba(var(--pw-accent-rgb), 0.2);
    max-height: 264px;
    opacity: 0;
    pointer-events: none;
    overflow: auto;
    transform: translateY(-8px) scale(.985);
    transition: opacity .22s ease, transform .22s ease;
    z-index: 2600;
}

#rankYearSelect.open .select-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

#rankYearMenu {
    z-index: 2600 !important;
}

#obpPills {
    position: relative;
    z-index: 1;
}

#rankYearSelect .select-option {
    width: 100%;
    margin: 0;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 10px 12px;
    font-weight: 700;
    color: var(--pw-rank-option-text);
    transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

#rankYearSelect .select-option + .select-option {
    margin-top: 6px;
}

#rankYearSelect .select-option:hover {
    transform: translateX(2px);
    border-color: rgba(var(--pw-accent-rgb), 0.44);
    background: linear-gradient(125deg, rgba(var(--pw-accent-rgb), 0.16), rgba(var(--pw-accent-rgb), 0.08));
    color: var(--pw-rank-option-hover-text);
}

#rankYearSelect .select-option.active {
    border-color: rgba(var(--pw-accent-rgb), 0.56);
    background: linear-gradient(125deg, rgba(var(--pw-accent-rgb), 0.24), rgba(var(--pw-accent-rgb), 0.1));
    color: var(--pw-rank-option-active-text);
}

.top-calc-row {
    margin-top: 10px;
}

.top-calc-row .btnp {
    max-width: 260px;
}

.top-calc-status {
    margin-top: 8px;
}

.subject-calc-row {
    margin-top: 12px;
}

.subject-calc-status {
    margin-top: 8px;
}

main {
    margin-top: 12px;
}

.panel-viewport {
    overflow: hidden;
}

.panel {
    gap: 16px;
}

.panel.active {
    display: grid;
    gap: 16px;
}

#panel-net.active {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
}

#panel-net.active #quickStartCard,
#panel-net.active #netOlcerCard,
#panel-net.active #subjectCard,
#panel-net.active #resultCard,
#panel-net.active #saveTrialCard {
    grid-column: 1;
}

#panel-net.active #resultCard {
    position: static;
    max-height: none;
    overflow: visible;
}

#panel-net.active #adBannerCard {
    grid-column: 1 / -1;
}

#adBannerCard {
    padding: 10px 12px !important;
}

#nativeBannerAnchor {
    min-height: 50px;
}

#webBannerAnchor {
    min-height: 90px;
    margin-top: 8px;
    border: 1px dashed var(--pw-border-soft);
    border-radius: 12px;
    background: var(--pw-soft-surface);
    overflow: hidden;
}

#webBannerAnchor.hidden {
    margin-top: 0;
}

#webBannerAnchor .adsbygoogle {
    display: block !important;
    width: 100%;
    min-height: 90px;
}

#subjectCard {
    min-height: 420px;
}

#subjectPanels {
    display: grid;
    gap: 10px;
}

#subjectPanels .subject-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

#subjectPanels .subject-left-stack {
    display: grid;
    gap: 12px;
}

#subjectPanels .subject-right-stack {
    display: grid;
    gap: 12px;
}

#subjectPanels details,
#subjectPanels .net-input-group {
    border: 1px solid var(--pw-border-soft);
    border-radius: 14px;
    background: var(--pw-soft-surface);
    padding: 0 12px;
}

#subjectPanels details summary {
    font-size: 0.92rem;
    letter-spacing: 0.01em;
}

#subjectPanels .details-inner {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr;
}

#subjectPanels .sub {
    margin-top: 0;
    border-bottom: 1px solid var(--pw-border-soft);
    padding: 8px 0;
    grid-template-columns: minmax(0, 1fr) 84px 84px;
}

#subjectPanels .sub:last-child {
    border-bottom: 0;
}

#subjectPanels .sub span {
    font-size: 0.84rem;
    line-height: 1.3;
}

#subjectPanels .sub input {
    text-align: center;
    font-weight: 700;
}

#subjectPanels .global-sub-head {
    position: sticky;
    top: 0;
    z-index: 5;
    border: 1px solid var(--pw-border-soft);
    border-radius: 12px;
    background: var(--pw-head-surface);
    padding: 8px 10px;
    margin-bottom: 10px;
}

#subjectPanels .net-input-general {
    padding-top: 8px;
    padding-bottom: 8px;
}

#subjectPanels .net-input-other {
    padding-top: 8px;
    padding-bottom: 8px;
}

#panel-count.active {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: min-content;
    align-items: start;
}

#countHubCard {
    grid-column: 1;
    grid-row: 1;
}

#countDownCard {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: start;
}

#eventFormCard {
    grid-column: 1;
    grid-row: 2;
}

#eventListCard {
    grid-column: 1 / -1;
    grid-row: 3;
}

#eventList.event-list-row {
    margin-top: 10px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px;
    overflow: visible;
    padding-bottom: 2px;
}

#eventList.event-list-row .event {
    margin-top: 0;
    min-width: 0;
    width: 100%;
}

#panel-trial.active {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: min-content;
    align-items: start;
}

#panel-trial.active > article:first-child {
    grid-column: 1;
    grid-row: 1;
}

#trialEntryCard {
    grid-column: 2;
    grid-row: 1;
}

#trialSavedCard {
    grid-column: 1 / -1;
    grid-row: 2;
}

#panel-settings.active {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    row-gap: 10px;
    column-gap: 16px;
}

#settingsMainCard {
    min-height: 240px;
    align-content: start;
}

#settingsScoreCard {
    min-height: 240px;
    align-content: start;
}

#settingsMainCard .theme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

#settingsMainCard .theme-btn {
    position: relative;
    min-height: 58px;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    padding: 12px;
    text-align: center;
    border: 1px solid var(--pw-border-soft) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

#settingsMainCard .theme-btn::before {
    content: none !important;
}

#settingsMainCard .theme-btn:hover {
    transform: translateY(-1px);
    filter: saturate(1.05);
}

#settingsMainCard .theme-btn.btnp {
    border-color: rgba(var(--pw-accent-rgb), 0.72) !important;
    box-shadow: 0 0 0 2px rgba(var(--pw-accent-rgb), 0.2), 0 10px 22px rgba(var(--pw-accent-rgb), 0.26) !important;
}

#themeLight {
    background: linear-gradient(135deg, #f8fbff, #d9e8ff) !important;
    color: #244267 !important;
    border-color: rgba(86, 128, 191, 0.4) !important;
}

#themeLoket {
    background: linear-gradient(135deg, #fff5ea, #ffd6b0) !important;
    color: #6a4128 !important;
    border-color: rgba(206, 127, 71, 0.45) !important;
}

#themeDark {
    background: linear-gradient(135deg, #0f1f3e, #23396a) !important;
    color: #e3eeff !important;
    border-color: rgba(111, 160, 232, 0.35) !important;
}

#themeNight {
    background: linear-gradient(135deg, #1a1230, #3a285a) !important;
    color: #f6ebff !important;
    border-color: rgba(198, 145, 255, 0.38) !important;
}

#panel-settings.active #settingsFeedbackCard {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
}

#panel-settings.active #settingsNotifyCol {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
}

#settingsNotifyCol {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

#settingsNotifyCard,
#settingsFeedbackCard {
    height: auto;
}

#settingsFeedbackCard .feedback-box {
    margin-top: 6px;
}

#settingsFeedbackCard .feedback-box.open .feedback-body {
    max-height: none;
    padding: 10px 12px 12px;
    overflow: visible;
}

#settingsFeedbackCard .feedback-form {
    gap: 5px;
}

#settingsFeedbackCard .feedback-form textarea {
    min-height: 78px;
    max-height: 110px;
}

.settings-privacy-row {
    margin-top: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    line-height: 1.25;
}

.settings-privacy-row a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: inherit;
}

.settings-contact-text {
    color: var(--pw-legal-contact);
    font-size: inherit;
    opacity: var(--pw-legal-contact-opacity);
}

.card {
    border-radius: 24px;
    border: 1px solid var(--pw-border);
    background: linear-gradient(150deg, var(--pw-card-1), var(--pw-card-2));
    box-shadow: 0 12px 24px rgba(2, 6, 18, 0.22);
    backdrop-filter: blur(12px);
    color: var(--pw-text);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, opacity 0.4s ease;
}

#panel-settings .card {
    border-color: var(--pw-border) !important;
    background: linear-gradient(150deg, var(--pw-card-1), var(--pw-card-2)) !important;
    box-shadow: 0 12px 24px rgba(2, 6, 18, 0.22) !important;
    color: var(--pw-text) !important;
}

.card:hover {
    transform: translateY(-1px);
    border-color: rgba(var(--pw-accent-rgb), 0.42);
    box-shadow: 0 14px 28px rgba(2, 8, 20, 0.28);
}

.card.card-enter {
    opacity: 0;
    transform: translateY(14px);
}

.card.card-enter.card-in {
    opacity: 1;
    transform: translateY(0);
}

h2,
h3 {
    color: var(--pw-heading);
    letter-spacing: -0.01em;
}

.muted,
label,
.status,
.k,
th {
    color: var(--pw-muted) !important;
}

.v {
    color: var(--pw-value);
}

.btnp,
.btng,
.pill,
.etype-btn,
.select-toggle,
.pinbtn,
.hintbtn,
.feedback-toggle,
#quickStartClose,
#feedbackHistoryToggle {
    border-radius: 12px !important;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btnp {
    background: linear-gradient(135deg, var(--pw-accent), var(--pw-accent-2)) !important;
    color: var(--pw-tab-active-text) !important;
    border: none !important;
    box-shadow: 0 10px 20px rgba(var(--pw-accent-rgb), 0.38);
}

.btnp:hover {
    transform: translateY(-1px);
}

.btng,
.pill,
.etype-btn,
.select-toggle,
.pinbtn,
.hintbtn,
.feedback-toggle,
#quickStartClose,
#feedbackHistoryToggle {
    background: var(--pw-control-bg) !important;
    border: 1px solid var(--pw-border-soft) !important;
    color: var(--pw-control-text) !important;
}

.pill.active,
.etype-btn.active {
    background: linear-gradient(135deg, var(--pw-accent), var(--pw-accent-2)) !important;
    color: var(--pw-tab-active-text) !important;
    border-color: transparent !important;
    box-shadow: 0 8px 18px rgba(var(--pw-accent-rgb), 0.34);
}

input,
textarea,
select {
    border-radius: 12px !important;
    border: 1px solid var(--pw-border-soft) !important;
    background: var(--pw-input-bg) !important;
    color: var(--pw-input-text) !important;
}

#eventDate {
    color-scheme: dark;
}

#eventDate::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 1;
    filter: brightness(0) invert(1);
}

#eventDate::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

body[data-theme="acik"] #eventDate,
body[data-theme="loket"] #eventDate {
    color-scheme: light;
}

body[data-theme="acik"] #eventDate::-webkit-calendar-picker-indicator,
body[data-theme="loket"] #eventDate::-webkit-calendar-picker-indicator {
    filter: brightness(0) saturate(100%) invert(16%) sepia(19%) saturate(971%) hue-rotate(171deg) brightness(92%) contrast(88%);
}

input::placeholder,
textarea::placeholder {
    color: var(--pw-placeholder);
}

input:focus,
textarea:focus,
select:focus,
button:focus-visible {
    border-color: rgba(var(--pw-accent-rgb), 0.72) !important;
    box-shadow: 0 0 0 3px rgba(var(--pw-accent-rgb), 0.2);
}

:where(a, button, .tab, .select-toggle, .pill, input, textarea, select):focus-visible {
    outline: 2px solid rgba(var(--pw-accent-rgb), 0.88);
    outline-offset: 2px;
}

#resultGrid {
    gap: 4px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

#resultGrid .metric {
    position: relative;
    border-radius: 12px;
    border: 1px solid var(--pw-border-soft);
    background: var(--pw-soft-surface);
    min-height: 64px;
    padding: 6px 7px;
    overflow: hidden;
    display: grid;
    justify-items: center;
    align-content: center;
    text-align: center;
}

#resultGrid .metric::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 46%);
    opacity: 0.55;
}

#resultGrid .metric.genel-ortak {
    grid-column: 1 / -1;
    min-height: 74px;
    background: linear-gradient(130deg, rgba(var(--pw-accent-rgb), 0.2), rgba(var(--pw-accent-rgb), 0.1));
    border-color: rgba(var(--pw-accent-rgb), 0.42);
}

#resultGrid .metric .k {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.18;
    width: 100%;
    text-align: center;
}

#resultGrid .metric .v {
    font-size: clamp(0.88rem, 1.05vw, 1.02rem);
    font-weight: 800;
    line-height: 1.16;
    width: 100%;
    text-align: center;
}

/* Net ve ham puan kartlarini kompaktlastir */
#resultGrid .alan-net,
#resultGrid .ham-card {
    min-height: 54px !important;
    padding: 5px 6px !important;
}

#resultGrid .alan-net .k,
#resultGrid .ham-card .k {
    font-size: 0.56rem !important;
    line-height: 1.12 !important;
}

#resultGrid .alan-net .v,
#resultGrid .ham-card .v {
    font-size: clamp(0.84rem, 0.96vw, 0.95rem) !important;
}

#resultGrid .yillik-sira-kutu .v,
#resultGrid.ayt-mode .alan-rank .v,
#resultGrid.ydt-mode .yillik-sira-kutu .v {
    font-size: clamp(0.84rem, 0.98vw, 0.96rem);
}

#resultGrid .v.v-wide {
    font-size: 0.8rem;
    line-height: 1.18;
}

#resultGrid .yillik-sira-kutu,
#resultGrid.ayt-mode .alan-rank,
#resultGrid.ydt-mode .yillik-sira-kutu {
    padding: 10px 12px !important;
    gap: 6px !important;
}

/* Separate Net / Rank / Score cards visually */
#resultGrid .alan-net {
    background: linear-gradient(145deg, rgba(var(--pw-accent-rgb), 0.13), var(--pw-soft-surface)) !important;
    border-color: rgba(var(--pw-accent-rgb), 0.34) !important;
}

#resultGrid .puan-kutu,
#resultGrid .alan-puan,
#resultGrid .ydt-puan {
    background: linear-gradient(145deg, rgba(255, 190, 92, 0.16), var(--pw-soft-surface)) !important;
    border-color: rgba(255, 190, 92, 0.32) !important;
}

/* Light theme: distinct color language for each result category */
body[data-theme="acik"] #resultGrid .alan-net,
body[data-theme="acik"] #resultGrid .genel-ortak,
body[data-theme="acik"] #resultGrid #aytGenelNetCard,
body[data-theme="acik"] #resultGrid #tytGenelNetCard {
    background: linear-gradient(145deg, rgba(108, 198, 255, 0.34), rgba(167, 224, 255, 0.2) 58%, rgba(244, 251, 255, 0.92)) !important;
    border-color: rgba(73, 166, 233, 0.46) !important;
}

body[data-theme="acik"] #resultGrid .alan-rank,
body[data-theme="acik"] #resultGrid .yillik-sira-kutu {
    background: linear-gradient(145deg, rgba(134, 132, 255, 0.3), rgba(193, 202, 255, 0.2) 60%, rgba(247, 249, 255, 0.94)) !important;
    border-color: rgba(108, 115, 226, 0.48) !important;
}

body[data-theme="acik"] #resultGrid .puan-kutu,
body[data-theme="acik"] #resultGrid .alan-puan,
body[data-theme="acik"] #resultGrid .ydt-puan {
    background: linear-gradient(145deg, rgba(255, 192, 133, 0.34), rgba(255, 224, 184, 0.2) 60%, rgba(255, 251, 245, 0.94)) !important;
    border-color: rgba(225, 150, 88, 0.44) !important;
}

#resultGrid .alan-rank,
#resultGrid .yillik-sira-kutu {
    grid-column: auto !important;
    background: linear-gradient(
        140deg,
        rgba(var(--pw-accent-rgb), 0.28),
        rgba(111, 125, 255, 0.14) 58%,
        var(--pw-soft-surface)
    ) !important;
    border-color: rgba(var(--pw-accent-rgb), 0.52) !important;
    box-shadow: inset 0 0 0 1px rgba(var(--pw-accent-rgb), 0.18);
    display: grid !important;
    justify-items: center !important;
    align-content: center !important;
    text-align: center !important;
    min-height: 92px !important;
}

#resultGrid .metric.hidden {
    display: none !important;
}

#resultGrid.tyt-summary-inside .genel-ortak {
    display: none !important;
}

#resultDetailGrid .result-detail-grid.tyt-detail-grid,
#resultDetailGrid .result-detail-grid.tyt-section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

#resultDetailGrid .metric {
    display: grid;
    justify-items: center;
    align-content: center;
    text-align: center;
}

#resultDetailGrid .metric .k,
#resultDetailGrid .metric .v {
    width: 100%;
    text-align: center;
}

#resultDetailGrid .metric.tyt-summary-inline,
#resultDetailGrid .metric.tyt-net-inline {
    grid-column: 1 / -1;
    min-height: 74px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(var(--pw-accent-rgb), 0.42);
    background: linear-gradient(
        140deg,
        rgba(var(--pw-accent-rgb), 0.26),
        rgba(111, 125, 255, 0.12) 58%,
        var(--pw-soft-surface)
    );
    box-shadow: inset 0 0 0 1px rgba(var(--pw-accent-rgb), 0.16);
    display: grid;
    justify-items: center;
    align-content: center;
    text-align: center;
    gap: 4px;
}

#resultDetailGrid .metric.tyt-summary-inline .k,
#resultDetailGrid .metric.tyt-net-inline .k {
    width: 100%;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-align: center;
}

#resultDetailGrid .metric.tyt-summary-inline .v,
#resultDetailGrid .metric.tyt-net-inline .v {
    width: 100%;
    margin-top: 1px;
    font-size: clamp(1.08rem, 1.45vw, 1.35rem);
    font-weight: 800;
    text-align: center;
}

#resultGrid.genel-only .alan-rank {
    display: none !important;
}

#resultGrid:not(.ayt-mode) #tytGenelRankCard {
    display: none !important;
}

#resultGrid.ayt-mode #yearRankCard {
    display: none !important;
}

#resultGrid.ayt-ydt-mode #yearRankCard:not(.hidden) {
    display: grid !important;
}

#resultGrid.ayt-ydt-mode .ydt-puan:not(.hidden) {
    display: grid !important;
}

/* Rank cards custom layout in AYT mode */
#resultGrid.ayt-mode .alan-rank {
    order: 22 !important;
}

#resultGrid.ayt-mode .yillik-sira-kutu {
    display: none !important;
}

#resultGrid.ayt-mode .alan-net {
    order: 12 !important;
}

#resultGrid.ayt-mode #aytGenelNetCard {
    order: 10 !important;
}

#resultGrid.ayt-mode #tytGenelNetCard {
    order: 32 !important;
}

#resultGrid.ayt-mode .alan-puan,
#resultGrid.ayt-mode .puan-kutu,
#resultGrid.ayt-mode .ydt-puan {
    order: 32 !important;
}

#yearRankCard {
    order: 22;
}

#resultGrid.rank-single .alan-rank.rank-visible,
#resultGrid.rank-single .yillik-sira-kutu.rank-visible {
    grid-column: 1 / -1 !important;
}

#resultGrid .alan-rank .k,
#resultGrid .yillik-sira-kutu .k {
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.03em !important;
}

#resultGrid .alan-rank .v,
#resultGrid .yillik-sira-kutu .v {
    font-size: clamp(1.06rem, 1.26vw, 1.24rem) !important;
    margin-top: 2px !important;
}

#resultCard {
    padding: 8px 9px;
}

#resultCard h3 {
    margin-bottom: 6px;
}

#scoreSummary {
    margin-top: 4px !important;
    font-size: 0.72rem;
}

#resultWarn {
    margin-top: 5px;
    font-size: 0.72rem;
}

@media (min-width: 1500px) {
    #resultGrid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (max-width: 1280px) {
    #resultGrid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 981px) {
    #resultGrid.ayt-mode {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    #resultGrid.ayt-mode #tytGenelRankCard {
        order: 24 !important;
        grid-column: span 2 !important;
    }

    #resultGrid.ayt-mode #sozRankCard {
        order: 25 !important;
        grid-column: span 2 !important;
    }

    #resultGrid.ayt-mode #sayRankCard {
        order: 26 !important;
        grid-column: span 2 !important;
    }

    #resultGrid.ayt-mode #eaRankCard {
        order: 27 !important;
        grid-column: span 2 !important;
    }

    #resultGrid.ayt-mode #yearRankCard {
        order: 28 !important;
        grid-column: 1 / -1 !important;
    }
}

@media (max-width: 980px) {
    #resultGrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.dlist .ditem,
.saved-item,
.event,
.trial-item {
    border: 1px solid var(--pw-border-soft) !important;
    border-radius: 14px !important;
    background: var(--pw-soft-surface) !important;
}

.feedback-card,
.feedback-box,
.feedback-body,
.feedback-history-panel {
    border-radius: 16px;
}

#privacyPolicyLink {
    color: var(--pw-legal-link);
    text-decoration: none;
    border-bottom: 1px dashed currentColor;
    padding-bottom: 1px;
}

#privacyPolicyLink svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#privacyPolicyLink:hover {
    color: var(--pw-legal-link-hover);
}

@media (max-width: 1150px) {
    body {
        padding-top: 100px;
    }

    #panel-net.active {
        grid-template-columns: 1fr;
    }

    #panel-net.active #resultCard,
    #panel-net.active #saveTrialCard,
    #panel-net.active #quickStartCard,
    #panel-net.active #netOlcerCard,
    #panel-net.active #subjectCard {
        grid-column: 1;
    }

    #panel-net.active #resultCard {
        position: static;
        max-height: none;
    }
}

@media (max-width: 940px) {
    body {
        padding: 92px 12px 102px;
    }

    .tabs {
        top: auto;
        bottom: 10px;
        width: calc(100% - 20px);
        border-radius: 14px;
        padding: 7px;
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .tab-side {
        display: none;
    }

    .tab {
        min-height: 48px;
        font-size: 0.78rem;
    }

    #panel-count.active,
    #panel-trial.active,
    #panel-settings.active {
        grid-template-columns: 1fr;
    }

    #countHubCard,
    #countDownCard,
    #eventFormCard,
    #eventListCard,
    #settingsScoreCard,
    #panel-settings.active #settingsNotifyCol,
    #trialEntryCard,
    #trialSavedCard,
    #panel-trial.active > article:first-child,
    #panel-settings.active #settingsFeedbackCard {
        grid-column: 1;
        grid-row: auto;
    }

    #trialEntryCard {
        min-height: auto;
    }

    #settingsScoreCard {
        min-height: auto;
    }

    #eventList.event-list-row {
        display: grid;
        gap: 8px;
        overflow: visible;
    }

    #eventList.event-list-row .event {
        min-width: 0;
        width: 100%;
    }

    .hero {
        border: 0;
        border-radius: 0;
        padding: 0;
        margin: 0;
        background: transparent;
        box-shadow: none;
        height: 0;
        min-height: 0;
        overflow: hidden;
    }

    #subjectPanels .sub {
        grid-template-columns: minmax(0, 1fr) 66px 66px;
    }

    #subjectPanels .subject-layout-grid {
        grid-template-columns: 1fr;
    }

    .top-control-grid {
        grid-template-columns: 1fr;
    }

    .top-calc-row .btnp {
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .card,
    .tab,
    .btnp,
    .btng,
    .hero-cta {
        transition: none !important;
        animation: none !important;
    }
}
