/* Workspace shell and shared component refinements */
:root {
    --chart-primary: #b74f2c;
    --chart-secondary: #e5a48a;
    --chart-neutral: #a1a1aa;
    --chart-coral: #b74442;
    --chart-teal: #40806f;
}

.sidebar {
    border-inline-end: 1px solid var(--line);
    padding: 13px 11px 12px;
}
.sidebar .brand {
    padding: 6px 7px 14px;
    margin: 0 0 11px;
    border-bottom: 1px solid var(--line);
}
.brand .logo-mark {
    width: 33px;
    height: 33px;
    border-radius: 8px;
}
.brand .logo-mark svg {
    width: 18px;
    height: 18px;
}
.brand strong {
    font-size: 1rem;
    line-height: 1.32;
}
.brand small,
.sidebar .brand small {
    font: 400 0.74rem/1.5 var(--thaana-content);
    letter-spacing: normal;
    color: var(--muted);
    white-space: nowrap;
}
.nav-caption {
    margin: 7px 8px 5px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 600;
}
.nav-list {
    gap: 2px;
}
.sidebar-section {
    margin-block-start: 19px;
}
.sidebar .nav-item {
    min-height: 37px;
    padding: 7px 8px;
    border-radius: 7px;
    font-size: 0.875rem;
}
.nav-item.active {
    background: #e9e9ed;
    color: var(--ink);
    font-weight: 650;
}
.nav-item svg,
.nav-item.active svg {
    width: 16px;
    height: 16px;
    color: #55555f;
}
.profile {
    padding: 10px 5px 3px;
}
.profile .avatar {
    width: 32px;
    height: 32px;
    border-radius: 7px;
    background: #ededf0;
    color: var(--ink);
}
.profile > span:nth-child(2) {
    min-width: 0;
}
.profile b {
    font-size: 0.83rem;
    overflow-wrap: anywhere;
}
.profile small {
    color: var(--muted);
}
.topbar {
    height: 57px;
    padding-inline: clamp(16px, 2.7vw, 35px);
}
.breadcrumbs {
    gap: 9px;
}
.breadcrumbs .head-divider {
    margin-inline: 2px;
}
.menu-toggle {
    display: inline-flex;
    border-color: transparent;
    background: transparent;
}
.icon-btn:hover,
.language:hover,
.nav-item:hover {
    background: var(--hover);
}
.main {
    max-width: 1540px;
    padding: 26px clamp(16px, 2.7vw, 35px) 45px;
}
.page-head {
    margin-block-end: 20px;
}
.page-head h1,
.event-heading h1 {
    font-size: clamp(1.75rem, 3vw, 2.08rem);
    font-weight: 670;
    line-height: 1.3;
}
.event-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-block-end: 21px;
}
.event-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 13px;
    margin-block-start: 8px;
    color: var(--muted);
    font-size: 0.84rem;
}
.event-meta > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.event-meta svg {
    width: 15px;
    height: 15px;
}
.event-meta .tag,
.live-pill {
    font-size: 0.77rem;
    padding: 3px 8px;
}
.public-heading {
    padding: 17px 0 20px;
    border-block-end: 1px solid var(--line);
}
.public-top {
    background: var(--surface);
    border-block-end: 1px solid var(--line);
}
.btn {
    min-height: 37px;
    border-radius: 7px;
    font-size: 0.875rem;
    font-weight: 570;
    transition:
        background-color 130ms,
        border-color 130ms;
}
.btn.secondary:hover,
.btn.ghost:hover {
    background: var(--hover);
}
.btn.secondary,
.filter select {
    border-color: #dbdbe0;
}
.btn.ghost {
    background: var(--subtle);
    color: var(--ink);
}
.panel-head {
    padding: 15px 17px;
}
.panel-head .btn.secondary {
    min-height: 32px;
    padding-block: 4px;
}
.panel-title > svg {
    color: var(--muted);
    width: 17px;
    height: 17px;
}
.panel-title h2 {
    font-size: 1.08rem;
    font-weight: 650;
}
.recent-entry {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: start;
    color: var(--ink);
}
.recent-entry:hover {
    background: #fafafa;
}
.recent-entry:focus-visible {
    outline-offset: -2px;
}
.entry-avatar {
    overflow: hidden;
}
.entry-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.entry-photo-panel {
    display: flex;
    align-items: center;
    gap: 12px;
}
.entry-photo-panel .button-row {
    margin-block-start: 6px;
}
.entry-photo-preview {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    flex: none;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--subtle);
    color: var(--muted);
}
.entry-photo-preview img {
    object-fit: contain;
}
.workspace .stats {
    margin: 0 0 17px;
    gap: 12px;
}
.workspace .stat {
    min-height: 108px;
    padding: 12px 14px;
    color: var(--ink);
    text-align: start;
}
.stat:hover {
    border-color: #d0d0d7;
    background: #fdfdfd;
}
.stat-top svg {
    width: 16px;
    height: 16px;
    color: var(--muted);
}
.workspace .stat strong {
    font: 670 1.95rem/1.12 var(--ui-font);
    margin-block-start: 7px;
}
.workspace .stat small {
    margin-block-start: 5px;
}
@media (min-width: 901px) {
    .shell.sidebar-collapsed {
        --side-width: 59px;
    }
    .sidebar-collapsed .sidebar {
        padding-inline: 7px;
    }
    .sidebar-collapsed .sidebar .brand,
    .sidebar-collapsed .sidebar .nav-item,
    .sidebar-collapsed .sidebar .profile {
        justify-content: center;
        padding-inline: 0;
    }
    .sidebar-collapsed .nav-item span,
    .sidebar-collapsed .brand-copy,
    .sidebar-collapsed .profile > :not(.avatar) {
        display: none;
    }
    .sidebar-collapsed .nav-caption {
        height: 1px;
        overflow: hidden;
        border-block-start: 1px solid var(--line);
        color: transparent;
        margin: 10px 6px;
    }
}

.dashboard-analytics {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    align-items: stretch;
}

.tab-list {
    display: flex;
    flex-wrap: wrap;
    gap: 3px 6px;
    min-width: 0;
    align-items: center;
    padding: 5px 13px 0;
    border-block-end: 1px solid var(--line);
}
.tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 10px 11px;
    min-height: 43px;
    min-width: 0;
    border: 0;
    border-block-end: 2px solid transparent;
    border-radius: 7px 7px 0 0;
    background: transparent;
    color: var(--muted);
    font-weight: 660;
    font-size: 0.87rem;
    line-height: 1.3;
}
.tab:hover {
    background: var(--subtle);
    color: var(--brand-dark);
}
.tab[aria-selected="true"] {
    color: var(--brand-dark);
    border-block-end-color: var(--brand);
}
.tab svg {
    width: 16px;
    height: 16px;
}
.tab-count {
    display: inline-grid;
    place-items: center;
    min-width: 19px;
    padding: 2px 5px;
    border-radius: 7px;
    background: var(--subtle);
    color: var(--muted);
    font-size: 0.72rem;
}
.tab[aria-selected="true"] .tab-count {
    background: var(--subtle);
    color: var(--brand-dark);
}
.tab-panel:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: -2px;
}

.analytics-body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    padding: 16px 17px 15px;
}
.chart-summary {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: var(--muted);
    font-size: 0.84rem;
}
.chart-summary strong {
    color: var(--ink);
    font-size: 1.5rem;
    line-height: 1;
}
.chart-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
}
.chart-legend > span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--muted);
    font-size: 0.76rem;
}
.tone-primary {
    background-color: var(--chart-primary);
}
.tone-secondary {
    background-color: var(--chart-secondary);
}
.tone-neutral {
    background-color: var(--chart-neutral);
}
.tone-coral {
    background-color: var(--chart-coral);
}
.tone-teal {
    background-color: var(--chart-teal);
}
.chart-key {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    flex: none;
}
.chart-plot {
    --plot-height: 154px;
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 23px minmax(0, 1fr);
    gap: 5px;
    margin-block-start: 5px;
}
.chart-scroll {
    min-width: 0;
    overflow-x: auto;
    padding-block-start: 4px;
    scrollbar-width: thin;
}
.chart-rows {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(82px, 1fr);
    position: relative;
    min-width: min-content;
}
.chart-rows::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: var(--plot-height);
    pointer-events: none;
    border-block-end: 1px solid var(--line);
    background-image: linear-gradient(
        to bottom,
        var(--line) 1px,
        transparent 1px
    );
    background-size: 100% 25%;
}
.chart-row {
    display: grid;
    grid-template-rows: var(--plot-height) auto;
    align-items: start;
    gap: 7px;
    position: relative;
    padding: 0 5px 4px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: var(--muted);
    font-size: 0.76rem;
    text-align: center;
}
.chart-row:hover {
    background: #18181b06;
    color: var(--ink);
}
.chart-row:focus-visible {
    outline-offset: -2px;
}
.chart-label {
    overflow-wrap: anywhere;
}
.chart-track {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    align-self: stretch;
}
.chart-bar {
    flex: 0 0 var(--bar);
    width: clamp(24px, 54%, 52px);
}
.chart-bar:last-child {
    border-radius: 4px 4px 0 0;
}
.chart-bar + .chart-bar {
    border-block-end: 1px solid #fff;
}
.chart-axis {
    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: space-between;
    height: calc(var(--plot-height) + 12px);
    color: var(--muted);
    font-size: 0.72rem;
    line-height: 1;
}

.stage-snapshot {
    display: grid;
    gap: 11px;
    padding: 15px 15px 16px;
}
.snapshot-progress {
    padding: 12px 13px 10px;
    border-radius: 11px;
    background: var(--subtle);
    color: var(--muted);
}
.snapshot-progress > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
}
.snapshot-progress strong {
    color: var(--brand-dark);
    font-size: 1.5rem;
    line-height: 1;
}
.snapshot-progress p {
    display: flex;
    gap: 7px;
    margin-block-start: 6px;
    font-size: 0.78rem;
}
.snapshot-progress .progress {
    height: 7px;
    margin-block-start: 8px;
    background: var(--hover);
}
.snapshot-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 47px;
}
.snapshot-row + .snapshot-row {
    padding-block-start: 10px;
    border-block-start: 1px solid var(--line);
}
.snapshot-row > span:nth-child(2) {
    display: grid;
    flex: 1;
    min-width: 0;
}
.snapshot-row small {
    font-size: 0.76rem;
    color: var(--muted);
}
.snapshot-row b {
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}
.snapshot-count {
    padding: 3px 7px;
    background: #f7e7ef;
    color: #8e2f53;
    border-radius: 6px;
    font-size: 0.8rem;
}

.schedule-slide {
    padding: 14px 15px 15px;
}
.schedule-card {
    padding: 12px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
    border: 1px solid var(--line);
    background: var(--subtle);
    border-radius: 11px;
}
.schedule-card h3 {
    font-size: 1.1rem;
}
.schedule-card {
    animation: slide-appear 160ms ease-out both;
}
@keyframes slide-appear {
    from {
        opacity: 0.55;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.schedule-time {
    align-self: center;
    font-size: 0.84rem;
    color: var(--brand-dark);
}
.slide-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-block-start: 5px;
}
.slide-categories .tag {
    padding: 2px 7px;
    font-size: 0.73rem;
    white-space: normal;
}
.slide-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-block-start: 10px;
    color: var(--muted);
    font-size: 0.82rem;
}
.slide-controls .btn {
    min-height: 36px;
    padding-block: 4px;
}

.rubric-layout {
    display: grid;
    align-items: start;
    grid-template-columns: minmax(0, 1.55fr) minmax(235px, 1fr);
    gap: 18px;
}
.rubric-summary {
    padding: 13px;
    background: var(--subtle);
    border: 1px solid var(--line);
    border-radius: 11px;
}
.rubric-summary-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 8px;
    margin-block-end: 12px;
}
.rubric-summary .btn {
    min-height: 34px;
    padding-block: 4px;
}
.rubric-summary .criterion {
    font-size: 0.88rem;
}

.performance-banner,
.waiting-stage {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-block-end: 16px;
    padding: 18px 20px;
    border-radius: 15px;
}
.performance-banner {
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--ink);
    box-shadow: var(--shadow);
}
.stage-symbol {
    display: grid;
    place-items: center;
    width: 45px;
    height: 45px;
    flex: none;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--subtle);
    color: var(--muted);
}
.stage-symbol svg {
    width: 23px;
    height: 23px;
}
.performance-identity {
    flex: 1;
    min-width: 0;
}
.performance-identity .inline {
    color: var(--muted);
}
.performance-identity h2 {
    font-size: clamp(1.28rem, 2.7vw, 1.9rem);
    overflow-wrap: anywhere;
    margin-block: 2px;
}
.performance-identity p {
    color: var(--muted);
    font-size: 0.9rem;
}
.stage-banner-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}
.judge-progress {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 5px 12px;
    min-width: 135px;
    font-size: 0.84rem;
}
.judge-progress-bars {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
}
.judge-progress-bars i {
    height: 4px;
    border-radius: 10px;
    background: var(--hover);
}
.judge-progress-bars .received {
    background: var(--chart-teal);
}
.waiting-stage {
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    min-height: 157px;
    text-align: center;
    background: var(--subtle);
    border: 1px solid var(--line);
    color: var(--ink);
}
.waiting-stage p {
    color: var(--muted);
    font-size: 0.9rem;
}
.waiting-stage .stage-symbol {
    background: var(--subtle);
    color: var(--brand-dark);
}
.stage-ready {
    flex-direction: row;
    justify-content: flex-start;
    text-align: start;
    gap: 13px;
    min-height: 95px;
}
.stage-ready .btn {
    margin-inline-start: auto;
}

.score-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(245px, 1fr);
    align-items: start;
    gap: 16px;
    margin-block-end: 16px;
}
.score-cards {
    display: grid;
    gap: 12px;
}
.score-card {
    background: white;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: var(--radius);
    padding: 15px 17px 13px;
}
.score-card > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px 14px;
}
.score-card h3 {
    font-size: 1.22rem;
    overflow-wrap: anywhere;
}
.score-card header p {
    color: var(--muted);
    font-size: 0.84rem;
}
.mark-stepper {
    display: grid;
    grid-template-columns: 38px 66px 38px;
    flex: none;
    align-items: stretch;
    border: 1px solid #dcdce0;
    border-radius: 10px;
    background: var(--subtle);
}
.mark-stepper button,
.mark-stepper input {
    border: 0;
    min-width: 0;
    height: 42px;
    color: var(--ink);
    background: transparent;
}
.mark-stepper button {
    display: grid;
    place-items: center;
    border-radius: 7px;
}
.mark-stepper button:hover {
    background: var(--hover);
}
.mark-stepper input {
    text-align: center;
    border-inline: 1px solid var(--line);
    border-radius: 0;
    background: white;
    font:
        700 1rem "Segoe UI",
        sans-serif;
    appearance: textfield;
}
.mark-stepper input::-webkit-inner-spin-button,
.mark-stepper input::-webkit-outer-spin-button {
    appearance: none;
    margin: 0;
}
.mark-stepper input[aria-invalid="true"] {
    color: #9a254e;
    background: #fff2f6;
}
.mark-stepper :is(button, input):focus-visible {
    outline-offset: -2px;
}
.score-range {
    --thumb: 20px;
    --range-track: linear-gradient(
        to right,
        var(--brand) 0 var(--fill),
        #e4e4e7 var(--fill) 100%
    );
    appearance: none;
    background: transparent;
    border: 0;
    width: 100%;
    min-height: 42px;
    margin: 7px 0 0;
    padding: 0;
    display: block;
    cursor: pointer;
}
.score-range::-webkit-slider-runnable-track {
    height: 8px;
    border-radius: 999px;
    background: var(--range-track);
}
.score-range::-moz-range-track {
    height: 8px;
    border-radius: 999px;
    background: var(--range-track);
}
.score-range::-webkit-slider-thumb {
    appearance: none;
    width: var(--thumb);
    height: var(--thumb);
    margin-top: -6px;
    border: 2px solid var(--brand);
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 6px #18181b24;
}
.score-range::-moz-range-thumb {
    box-sizing: border-box;
    width: var(--thumb);
    height: var(--thumb);
    border: 2px solid var(--brand);
    border-radius: 50%;
    background: white;
    box-shadow: 0 2px 6px #18181b24;
}
.score-ticks {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 0.78rem;
    padding-inline: 4px;
}
.score-summary {
    padding: 14px 15px 15px;
    position: sticky;
    inset-block-start: 73px;
    margin: 0;
}
.score-summary-head {
    display: flex;
    align-items: center;
    gap: 8px;
}
.score-total {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 7px;
    margin-block: 13px 10px;
    color: var(--muted);
}
.score-total b {
    font-size: clamp(2rem, 5vw, 2.75rem);
    line-height: 1;
    color: var(--brand-dark);
}
.score-summary .progress {
    height: 8px;
    margin-block-end: 10px;
}
.score-summary .progress span {
    width: 0;
    transition: width 110ms ease;
    background: var(--brand);
}
.score-detail {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-block-end: 1px solid var(--line);
    padding-block-end: 8px;
    margin-block-end: 9px;
    font-size: 0.87rem;
}
.score-summary .btn {
    width: 100%;
    margin-block-start: 10px;
}
.score-summary .btn:disabled {
    background: var(--subtle);
    color: var(--muted);
    opacity: 1;
}
.score-review-list {
    padding: 11px 13px;
    border-radius: 10px;
    background: var(--subtle);
}
.locked-state {
    display: flex;
    align-items: center;
    gap: 12px;
}
.locked-state p {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    color: var(--muted);
    font-size: 0.87rem;
}

dialog.drawer {
    inset: 0;
    margin: 0;
    margin-inline-start: auto;
    width: min(650px, 100%);
    height: 100dvh;
    max-height: none;
    max-width: none;
    border-radius: 0;
    border-inline-end: 0;
    --drawer-offset: 40px;
}
html[dir="rtl"] dialog.drawer {
    --drawer-offset: -40px;
}
dialog.drawer[open] {
    animation: drawer-in 170ms ease-out both;
}
@keyframes drawer-in {
    from {
        transform: translateX(var(--drawer-offset));
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
dialog.drawer .dialog-head {
    min-height: 64px;
    padding-inline: 21px;
}
dialog.drawer .dialog-body {
    padding: 19px 21px 25px;
}

.settings-switches {
    display: grid;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0 12px;
}
.switch-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    min-height: 49px;
    cursor: pointer;
    padding-block: 7px;
}
.switch-row + .switch-row {
    border-block-start: 1px solid var(--line);
}
.switch-track {
    width: 38px;
    height: 23px;
    border-radius: 999px;
    flex: none;
    background: #b6b6bf;
    padding: 3px;
    display: flex;
}
.switch-track::before {
    content: "";
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #fff;
}
.switch-row input:checked + .switch-track {
    justify-content: end;
    background: var(--brand);
}
.switch-row input:focus-visible + .switch-track {
    outline: 3px solid var(--ring);
    outline-offset: 3px;
}

@media (max-width: 1100px) {
    .dashboard-analytics {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    }
}
@media (max-width: 720px) {
    .score-workspace,
    .rubric-layout,
    .dashboard-analytics {
        grid-template-columns: minmax(0, 1fr);
    }
    .score-summary {
        position: static;
    }
    .score-card h3 {
        font-size: 1.08rem;
    }
    .performance-banner,
    .stage-ready {
        flex-wrap: wrap;
        padding: 14px;
    }
    .stage-banner-controls {
        justify-content: space-between;
        width: 100%;
    }
}
@media (max-width: 450px) {
    .chart-rows {
        grid-auto-columns: minmax(54px, 1fr);
    }
    .chart-label {
        font-size: 0.7rem;
    }
    .chart-bar {
        width: clamp(16px, 58%, 35px);
    }
    .public-top {
        flex-wrap: wrap;
        gap: 9px;
    }
    .schedule-card {
        grid-template-columns: auto minmax(0, 1fr);
    }
    .schedule-time {
        grid-column: 2;
    }
    .mark-stepper {
        grid-template-columns: 34px 56px 34px;
    }
    .tab {
        padding-inline: 6px;
    }
}
@media (prefers-reduced-motion: reduce) {
    dialog.drawer[open],
    .schedule-card {
        animation: none;
    }
    .btn,
    .score-summary .progress span {
        transition: none;
    }
}
@media print {
    .tab-list {
        display: none;
    }
}

/* Workspace and public navigation */
.topbar {
    position: sticky;
    inset-block-start: 0;
    z-index: 3;
    background: var(--surface);
}
.topbar .breadcrumbs,
.breadcrumb-trail {
    min-width: 0;
    flex-wrap: nowrap;
}
.breadcrumb-trail {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.breadcrumb-trail a:hover {
    color: var(--ink);
    text-decoration: underline;
}
.breadcrumb-trail b {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}
.main h1[tabindex="-1"]:focus {
    outline: none;
}
.topbar .header-actions {
    flex-shrink: 0;
    justify-content: flex-end;
}
.jump-trigger,
.header-account {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 8px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: var(--surface);
    color: var(--ink);
    white-space: nowrap;
}
.jump-trigger {
    padding-inline: 8px 5px;
    color: var(--muted);
}
.jump-trigger:hover,
.header-account:hover {
    background: var(--subtle);
    color: var(--ink);
}
.jump-trigger svg,
.header-account > svg {
    width: 15px;
    height: 15px;
}
.jump-trigger > span {
    font-size: 0.81rem;
}
.jump-trigger kbd {
    margin-inline-start: 5px;
    padding: 1px 4px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--subtle);
    font: 500 0.68rem/1.3 var(--ui-font);
}
.header-utilities {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.header-utilities > button {
    min-height: 35px;
    border-radius: 8px;
    gap: 6px;
}
.header-utilities .toolbar-language {
    padding-inline: 8px;
    color: var(--ink);
    font: 650 0.75rem var(--ui-font);
}
.header-utilities .toolbar-language svg {
    width: 15px;
    height: 15px;
}
.header-utilities .icon-btn {
    border-color: transparent;
    background: transparent;
}
.header-utilities .icon-btn:hover {
    background: var(--subtle);
}
.header-utilities .icon-btn svg {
    width: 16px;
    height: 16px;
}
.header-utilities [aria-busy="true"] svg {
    animation: header-refresh 650ms linear infinite;
}
@keyframes header-refresh {
    to {
        transform: rotate(360deg);
    }
}
.header-account {
    padding-inline: 5px;
    gap: 5px;
    border-color: transparent;
    background: transparent;
}
.header-account[aria-expanded="true"] {
    background: var(--subtle);
}
.header-account .avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: white;
    background: var(--brand);
    font: 650 0.68rem var(--ui-font);
}
.header-account > svg {
    color: var(--muted);
    width: 12px;
}
.header-account[aria-expanded="true"] > svg {
    transform: rotate(180deg);
}
.account-popover {
    display: none;
    position: fixed;
    inset: auto;
    margin: 0;
    padding: 11px;
    max-height: min(70dvh, 440px);
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface);
    color: var(--ink);
    box-shadow:
        0 10px 30px #18181b20,
        0 2px 5px #18181b12;
}
.account-popover:popover-open {
    display: grid;
    gap: 12px;
}
.account-identity {
    display: grid;
    gap: 2px;
    border-block-end: 1px solid var(--line);
    padding-block-end: 9px;
    overflow-wrap: anywhere;
}
.account-identity span {
    font-size: 0.82rem;
    color: var(--muted);
}
.account-footer {
    margin-block-start: 8px;
}
.account-popover .account-footer,
.account-popover .account-menu {
    margin: 0;
    min-width: 0;
}
.jump-field {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 2px 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--muted);
}
.operations-options {
    max-height: 50dvh;
    overflow: auto;
}
.assignment-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(120px, 1fr);
    gap: 10px;
    align-items: center;
    padding: 7px;
    border-bottom: 1px solid var(--line);
}
.draft-status:not(:empty) {
    margin-block-start: 8px;
    font-weight: 600;
    color: var(--muted);
}
.jump-field:focus-within {
    outline: 2px solid var(--ring);
    outline-offset: 1px;
}
.jump-field input {
    width: 100%;
    min-height: 39px;
    padding: 5px 0;
    border: 0;
    background: transparent;
    color: var(--ink);
    outline: none;
}
.jump-field svg,
.jump-option svg {
    width: 16px;
    height: 16px;
}
.jump-results {
    display: grid;
    gap: 1px;
    margin-block-start: 9px;
    max-height: min(43vh, 390px);
    overflow: auto;
}
.jump-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 8px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--ink);
    text-align: start;
    font-size: 0.88rem;
}
.jump-option:hover,
.jump-option:focus-visible {
    background: var(--subtle);
}
.jump-option svg {
    color: var(--muted);
}
.jump-option .small {
    margin-inline-start: auto;
}
.jump-empty {
    padding: 10px 8px;
    font-size: 0.87rem;
}
.public-nav {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-wrap: wrap;
}
.public-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 6px;
    color: var(--muted);
    font-size: 0.85rem;
}
.public-nav svg {
    width: 15px;
    height: 15px;
}
.public-nav a:hover,
.public-nav a[aria-current="page"] {
    background: var(--subtle);
    color: var(--ink);
}
@media (max-width: 760px) {
    .jump-trigger > span,
    .jump-trigger kbd {
        display: none;
    }
    .jump-trigger {
        width: 33px;
        justify-content: center;
        padding-inline: 0;
    }
    .public-nav {
        order: 3;
        width: 100%;
    }
    .public-top {
        flex-wrap: wrap;
        padding-block: 10px;
        gap: 7px;
    }
}
@media (max-width: 440px) {
    .topbar {
        padding-inline: 10px;
        gap: 7px;
    }
    .breadcrumbs {
        gap: 5px;
    }
    .topbar .header-actions {
        gap: 5px;
    }
    .header-account > svg {
        display: none;
    }
    .header-utilities > button {
        min-width: 32px;
        width: auto;
        padding-inline: 5px;
    }
    .topbar .live-pill {
        padding-inline: 6px;
        gap: 4px;
        font-size: 0.7rem;
    }
    .public-nav a {
        font-size: 0.79rem;
        padding-inline: 6px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .header-utilities [aria-busy="true"] svg {
        animation: none;
    }
}
.participant-birth {
    display: block;
    color: var(--muted);
    text-align: start;
    margin-block-start: 2px;
}

.participant-heading,
.participant-performance {
    display: flex;
    align-items: center;
    gap: 12px;
}

.participant-heading {
    margin-block-end: 18px;
}

.participant-heading h3,
.participant-history h3,
.participant-event h4 {
    margin: 0;
}

.participant-heading .tile-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.participant-meta,
.participant-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 12px;
}

.participant-meta {
    font-size: 0.875rem;
    color: var(--muted);
}

.participant-actions {
    gap: 4px 8px;
}

.participant-history {
    display: grid;
    gap: 12px;
    margin-block-start: 20px;
}

.participant-event {
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}

.participant-event h4,
.participant-entry {
    padding: 12px 14px;
}

.participant-event h4 {
    background: var(--surface-soft, #f7f7f8);
}

.participant-entry,
.participant-performance {
    border-block-start: 1px solid var(--line);
}

.participant-performance {
    justify-content: space-between;
    align-items: start;
    flex-wrap: wrap;
    margin-block-start: 10px;
    padding-block-start: 10px;
}

.participant-performance-result {
    display: grid;
    gap: 4px;
}

.participant-performance-result .participant-meta {
    justify-content: flex-end;
}

.participant-entry p {
    margin-block: 8px 0;
}

.review-members > li {
    flex-wrap: wrap;
}

.participant-picker {
    gap: 12px;
}
.google-sign-in {
    margin-block-start: 16px;
    border-block-start: 1px solid var(--line);
    padding-block-start: 16px;
}

.google-sign-in p {
    margin-block: 8px;
}

.organizer-setup {
    margin: 0 16px 16px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.organizer-setup summary {
    font-weight: 600;
    cursor: pointer;
}
.roster-preview {
    max-height: 44vh;
    overflow: auto;
}

.roster-preview:empty {
    display: none;
}
.current-competition {
    max-width: min(24vw, 19rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.manager-overview {
    margin-block: 0 20px;
}

.manager-task-list .list-row {
    gap: 10px;
    min-height: 44px;
}

.manager-task-list .list-row:hover,
.readiness-list a:hover {
    background: var(--subtle);
}

.manager-task-list .list-row span,
.readiness-list a > span:first-of-type {
    flex: 1;
}

.readiness-details summary,
.readiness-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 8px 16px;
}

.readiness-details summary {
    cursor: pointer;
    justify-content: space-between;
}

.readiness-details summary::after {
    content: "+";
    color: var(--muted);
}

.readiness-details[open] summary::after {
    content: "−";
}

.readiness-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.readiness-list li {
    border-block-start: 1px solid var(--line);
}

.readiness-list svg,
.manager-task-list svg {
    flex: none;
    width: 16px;
    height: 16px;
    color: var(--muted);
}

.sync-paused,
.sync-notice {
    background: #fff3d6;
    color: #714800;
}

.sync-paused .dot {
    background: #a66600;
}

.sync-notice {
    margin-block: 0 16px;
}

@media (max-width: 760px) {
    .operations-table {
        overflow: visible;
    }

    .operations-table table,
    .operations-table tbody {
        display: block;
        min-width: 0;
        width: 100%;
    }

    .operations-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .operations-table tbody tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 16px;
        padding: 14px;
        border-block-start: 1px solid var(--line);
    }

    .operations-table tbody td {
        display: grid;
        gap: 3px;
        padding: 0;
        border: 0;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .operations-table tbody td::before {
        content: attr(data-label);
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--muted);
    }

    .operations-table tbody td:first-child,
    .operations-table tbody td:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 440px) {
    .breadcrumbs .breadcrumb-trail {
        display: none;
    }
}
.performance-banner-live {
    border-inline-start: 3px solid #d4524d;
}

.stage-waveform {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    gap: 3px;
    min-width: 40px;
    height: 31px;
    padding-inline: 6px;
    color: #b63839;
    background: #fbebeb;
    border: 1px solid #f3d9d9;
    border-radius: 7px;
}

.stage-waveform i {
    display: block;
    width: 2px;
    height: var(--wave-height);
    border-radius: 4px;
    background: currentColor;
    transform-origin: center;
    animation: live-wave 1.25s ease-in-out infinite alternate;
    animation-delay: var(--wave-delay);
}

.stage-waveform i:nth-child(1) {
    --wave-height: 8px;
    --wave-delay: -0.56s;
}
.stage-waveform i:nth-child(2) {
    --wave-height: 14px;
    --wave-delay: -0.82s;
}
.stage-waveform i:nth-child(3) {
    --wave-height: 19px;
    --wave-delay: -0.22s;
}
.stage-waveform i:nth-child(4) {
    --wave-height: 12px;
    --wave-delay: -0.94s;
}
.stage-waveform i:nth-child(5) {
    --wave-height: 6px;
    --wave-delay: -0.4s;
}

@keyframes live-wave {
    0%,
    100% {
        transform: scaleY(0.43);
    }
    42% {
        transform: scaleY(1);
    }
    75% {
        transform: scaleY(0.68);
    }
}

.public-stage-live .stage-waveform {
    margin-inline-start: auto;
}

.sound-toggle {
    justify-content: flex-start;
    width: 100%;
    margin-block-start: 8px;
}

.sound-toggle small {
    margin-inline-start: auto;
    color: var(--muted);
}

.sound-toggle[aria-pressed="true"] {
    border-color: #b3d8c3;
    background-color: #eef8f1;
}

@media (prefers-reduced-motion: reduce) {
    .stage-waveform i {
        animation: none;
    }
}
.studio-main {
    max-width: 1180px;
}
.studio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 16px;
    margin-block: 16px;
}
.studio-inline {
    display: flex;
    align-items: end;
    flex-wrap: wrap;
    gap: 10px;
    margin-block: 10px;
}
.studio-inline .field {
    flex: 1 1 180px;
    min-width: 0;
}
.studio-inline .check {
    min-height: 40px;
    align-items: center;
}
.studio-streams,
.studio-broadcasts {
    display: grid;
    gap: 12px;
}
.studio-stream,
.studio-broadcast header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    flex-wrap: wrap;
    gap: 8px 12px;
    overflow-wrap: anywhere;
}
.studio-stream small {
    display: block;
    color: var(--muted);
}
.studio-broadcast {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 15px;
    min-width: 0;
}
.studio-broadcast h3,
.studio-broadcast header p {
    margin: 0;
}
.studio-broadcast header p {
    color: var(--muted);
    font-size: 0.85rem;
}
.studio-details {
    padding: 8px 0;
}
.studio-details > summary {
    cursor: pointer;
    font-weight: 600;
}
.studio-details form {
    margin-block-start: 8px;
}
.technical-preview {
    display: grid;
    gap: 3px;
    padding: 18px;
    border: 1px solid #ffffff24;
    border-inline-start: 3px solid #eb726a;
    border-radius: 10px;
    background: #20212d;
    color: #fff;
    overflow-wrap: anywhere;
}
.technical-preview small {
    color: #f9a7a2;
}
.technical-preview strong {
    font-size: 1.35rem;
}
.technical-preview span {
    color: #d8d9e3;
}
.technical-cues {
    margin-block: 12px;
}
.technical-link {
    display: grid;
    gap: 5px;
    margin-block: 12px;
}
.technical-link input {
    font-family: var(--mono, monospace);
    font-size: 0.8rem;
}
.technical-next .form-error:empty {
    display: none;
}
.technical-next .form-error {
    flex-basis: 100%;
}
@media (max-width: 760px) {
    .studio-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
.sheet-performer,
.judge-sheet-detail {
    display: grid;
    justify-items: start;
    align-content: start;
    gap: 6px;
    min-width: 0;
}

.sheet-performer {
    white-space: normal;
}

.sheet-performer > strong {
    color: var(--ink);
    line-height: 1.55;
}

.sheet-progress {
    color: var(--muted);
}

.marks-worklist tbody td {
    vertical-align: top;
}

.judge-sheets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
}

.judge-sheet {
    display: grid;
    align-content: start;
    justify-items: start;
    gap: 6px;
    min-width: 0;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface);
    color: var(--ink);
    text-align: start;
    white-space: normal;
}

button.judge-sheet:hover {
    border-color: #a1b7d7;
    background: #f5f8fd;
}

.judge-sheet-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
    width: 100%;
    min-width: 0;
    line-height: 1.5;
}

.judge-sheet-heading svg {
    width: 14px;
    height: 14px;
    flex: none;
    color: var(--active-ink);
}

.judge-sheet-submitted .tag {
    background: #e8f5ee;
    color: #176749;
}

.judge-sheet-correctionOpen .tag,
.judge-sheet-correctionRequested .tag,
.judge-sheet-missingSheet .tag {
    background: #fff1d6;
    color: #765019;
}

.sheet-timestamp {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0 4px;
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.4;
}

.sheet-timestamp span {
    white-space: nowrap;
}

.judge-sheet-detail {
    gap: 14px;
}

.judge-sheet-detail .summary {
    width: 100%;
}

.sheet-detail-caption > * {
    display: block;
}

@media (max-width: 760px) {
    .marks-worklist tbody td:nth-child(2) {
        grid-column: 1 / -1;
    }
}

@media (max-width: 480px) {
    .judge-sheets {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
    }

    .judge-sheet {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 3px 10px;
    }

    .judge-sheet .sheet-timestamp {
        grid-column: 1 / -1;
    }
}
.application-lookup {
    max-width: 48rem;
}

.application-receipt {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--subtle);
}

.application-receipt p {
    margin-block: 0 8px;
}

.tracking-code-row {
    display: flex;
    align-items: end;
    gap: 8px;
    flex-wrap: wrap;
}

.tracking-code-row .field {
    flex: 1 1 18rem;
    min-width: 0;
}

.tracking-code {
    font-family: ui-monospace, monospace;
    font-size: 0.86rem;
    letter-spacing: 0.025em;
}

.receipt-actions,
.application-status-card {
    margin-block-start: 14px;
}

.application-status-card {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px;
    background: var(--subtle);
}

.application-status-card ul {
    padding-inline-start: 0;
    list-style: none;
}

.application-status-card li {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 16px;
    padding-block: 7px;
    border-block-start: 1px solid var(--line);
}

.application-message {
    overflow-wrap: anywhere;
}

:root {
    --bg: #f5f7fa;
    --side: #f8f9fc;
    --ink: #182334;
    --muted: #536175;
    --brand: #202f46;
    --brand-dark: #314664;
    --line: #dce3ed;
    --subtle: #f1f4f9;
    --hover: #e9eef6;
    --ring: #285da9;
    --active-surface: #e8effb;
    --active-ink: #1e4d8f;
    --shadow: 0 1px 3px #1929410d;
}

.sidebar .nav-item,
.public-nav a {
    gap: 9px;
}

.sidebar .nav-item {
    min-height: 41px;
    position: relative;
}

.sidebar .nav-item.active,
.public-nav a[aria-current="page"] {
    background: var(--active-surface);
    color: var(--active-ink);
}

.sidebar .nav-item.active::before {
    content: "";
    position: absolute;
    inset-block: 9px;
    inset-inline-start: 0;
    inline-size: 3px;
    border-radius: 3px;
    background: var(--active-ink);
}

.nav-item.active svg,
.tab[aria-selected="true"] {
    color: var(--active-ink);
}

.tab[aria-selected="true"] {
    background: var(--active-surface);
    border-block-end-color: var(--active-ink);
}

.panel-head,
.dialog-head {
    gap: 10px 16px;
}

.panel-head > div:first-child,
.score-card header > div:first-child {
    min-width: 0;
}

.panel-title > svg {
    flex: none;
}

.panel-title h2,
.dialog-head h2 {
    overflow-wrap: anywhere;
}

.btn.secondary:hover,
.manager-task-list a:hover,
.readiness-list a:hover {
    border-color: #bdc9db;
    background: var(--hover);
}

.table-wrap[tabindex]:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: -2px;
}

th {
    color: #38485e;
    background: #f3f6fb;
}

tbody tr:hover {
    background: #f6f8fc;
}

html[lang="dv"] {
    --dv-label: 1.04rem;
    --dv-support: 0.98rem;
    --dv-subheading: 1.24rem;
}

html[lang="dv"] body {
    font-size: 1.0625rem;
    line-height: 1.78;
}

html[lang="dv"] :is(h1, h2, h3, h4, .brand strong) {
    font-family: var(--thaana-heading);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.72;
}

html[lang="dv"] :is(.page-head, .event-heading) h1 {
    font-size: clamp(1.8rem, 3.3vw, 2.45rem);
}

html[lang="dv"]
    :is(.panel-head, .dialog-head, .waiting-stage, .score-summary-head)
    h2 {
    font-size: clamp(1.4rem, 1.6vw, 1.58rem);
}

html[lang="dv"] :is(.page-head, .panel-head) p {
    font-size: 1.03rem;
}

.readiness-details summary > span {
    flex: 1;
}

html[lang="dv"]
    :is(.panel-body, .panel, .dialog-body, .score-card, .participant-history)
    h3,
html[lang="dv"] .participant-event h4 {
    font-size: var(--dv-subheading);
}

html[lang="dv"] .brand strong {
    font-size: 1.16rem;
}

html[lang="dv"]
    :is(
        .sidebar .brand small,
        .nav-caption,
        .profile small,
        .brand-copy small,
        .event-meta,
        .panel-head p,
        .page-head p,
        .row-main small,
        .stat small,
        .score-card header p,
        .score-detail,
        .small,
        .field small,
        .participant-meta,
        .studio-broadcast header p,
        .participant-birth
    ) {
    font-size: var(--dv-support);
    line-height: 1.72;
}

html[lang="dv"]
    :is(
        .sidebar .nav-item,
        .profile b,
        .btn,
        .text-btn,
        .tab,
        .field,
        .filter select,
        .public-nav a,
        .stat-top,
        th,
        td
    ) {
    font-size: var(--dv-label);
    line-height: 1.65;
}

html[lang="dv"] .sidebar .nav-item {
    min-height: 44px;
    padding-block: 6px;
}

html[lang="dv"] .nav-caption {
    margin-block: 7px 3px;
}

html[lang="dv"] .tag {
    font-size: 0.94rem;
    line-height: 1.55;
}

html[lang="dv"] :is(.chart-label, .account-identity span) {
    font-size: 0.94rem;
}

html[lang="dv"] :is(input, select, textarea):not(.numeric) {
    line-height: 1.65;
}

html[lang="dv"] .mark-stepper input,
html[lang="dv"] .tab-count,
html[lang="dv"] .sheet-timestamp,
html[lang="dv"] .tracking-code {
    font-family: var(--ui-font);
}

@media (max-width: 760px) {
    .btn,
    .panel-head .btn.secondary,
    .tab,
    .filter :is(input, select),
    .field :is(input, select) {
        min-height: 43px;
    }

    .panel-head,
    .panel-body {
        padding-inline: 14px;
    }

    .panel-head .actions,
    .page-head .actions,
    .event-heading .actions {
        flex-wrap: wrap;
        justify-content: start;
    }

    .page-head .actions {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
        width: 100%;
    }

    .page-head .actions > .btn {
        justify-content: center;
        min-width: 0;
        white-space: normal;
        text-align: center;
    }

    .public-nav {
        gap: 3px 6px;
        flex-wrap: wrap;
    }

    .public-nav a {
        min-height: 36px;
    }

    html[lang="dv"] .operations-table tbody td::before {
        font-size: 0.94rem;
    }

    html[lang="dv"] .criterion-edit {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 440px) {
    html[lang="dv"] {
        --dv-label: 1.02rem;
        --dv-support: 0.96rem;
    }

    .topbar .header-account,
    .topbar .icon-btn,
    .topbar .jump-trigger,
    .topbar .toolbar-language {
        min-height: 38px;
    }

    .topbar .live-pill {
        min-width: 0;
    }

    html[lang="dv"] .topbar .live-pill {
        font-size: 0.8rem;
    }
}

@media print {
    :root {
        --bg: #fff;
        --shadow: none;
    }
}

.stage-action-bar,
.stage-status {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.stage-action-bar .btn {
    min-height: 36px;
    padding-inline: 9px;
}

.stage-action-bar .stage-start:not(:disabled) {
    background: var(--active-surface);
    color: var(--active-ink);
    border-color: #bfcfeb;
}

.stage-action-bar .stage-start:not(:disabled):hover {
    border-color: #8ca8cf;
    background: #dee9fa;
}

.stage-action-bar .stage-check-in {
    color: #205843;
}

.stage-action-bar .stage-more {
    width: 38px;
    padding: 0;
    justify-content: center;
    flex: none;
}

.stage-more[aria-expanded="true"] {
    background: var(--active-surface);
    border-color: #8ca8cf;
}

.stage-action-popover {
    position: fixed;
    inset: auto;
    margin: 0;
    padding: 0;
    max-height: calc(100dvh - 20px);
    overflow: auto;
    color: var(--ink);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 12px 28px #19294129;
}

.stage-menu-context {
    display: grid;
    padding: 11px 13px;
    border-block-end: 1px solid var(--line);
    white-space: normal;
    overflow-wrap: anywhere;
}

.stage-menu-context span {
    color: var(--muted);
}
.stage-menu-list {
    display: grid;
    padding: 5px;
}

.stage-menu-action {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 6px 9px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--ink);
    text-align: start;
}

.stage-menu-action:hover,
.stage-menu-action:focus-visible {
    background: var(--hover);
}
.stage-menu-action svg {
    flex: none;
    width: 16px;
    height: 16px;
}
.stage-menu-warning {
    color: #9a3535;
}

.event-headline,
.event-logos {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
}

.event-headline > div:last-child {
    min-width: 0;
}
.event-logos {
    gap: 8px;
}
.certificate .event-logos {
    justify-content: center;
    margin-block-end: 10px;
}

.event-logo,
.branding-preview {
    display: grid;
    place-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 6px;
    flex: none;
}

.event-logo {
    width: 57px;
    height: 57px;
}
.branding-preview {
    width: 76px;
    height: 76px;
    color: var(--muted);
}
.brand .uploaded-logo {
    padding: 3px;
    background: #fff;
    border: 1px solid var(--line);
}
.branding-preview img,
.event-logo img,
.uploaded-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.branding-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.branding-card {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 9px;
}

.branding-card h3 {
    margin-block: 0 7px;
}

@media (max-width: 760px) {
    .stage-action-bar .btn,
    .stage-menu-action {
        min-height: 43px;
    }
    .stage-action-bar .stage-more {
        width: 43px;
    }
    .branding-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
