:root {
    --page-font: var(--qc-ui);
    --heading-font: var(--qc-ui);
    --button-font: var(--qc-ui);
    --file-title-font: var(--qc-ui);
    --accent-color: var(--qc-action);
    --focus-outline-color: var(--qc-focus);
    --page-bg-color: var(--qc-bg);
    --page-secondary-color: var(--qc-panel);
    --page-text-color: var(--qc-body);
    --page-text-secondary-color: var(--qc-muted);
    --heading-color: var(--qc-ink);
    --heading-link-color: var(--qc-link);
    --link-color: var(--qc-link);
    --input-bg-color: var(--qc-paper);
    --input-text-color: var(--qc-ink);
    --input-text-color-disabled: var(--qc-disabled-ink);
    --input-border-color: var(--qc-control);
    --input-border-color-hover: var(--qc-action-edge);
    --input-border-color-focus: var(--qc-focus);
    --input-border-color-disabled: var(--qc-disabled);
    --input-border-radius: var(--qc-radius);
    --table-header-bg-color: var(--qc-action);
    --table-header-text-color: var(--qc-action-text);
    --button-bg-color: var(--qc-panel);
    --button-border-color: var(--qc-control);
    --button-border-hover-color: var(--qc-action-edge);
    --button-text-color: var(--qc-ink);
    --button-text-hover-color: var(--qc-ink);
    --button-text-disabled-color: var(--qc-disabled-ink);
    --button-border-disabled-color: var(--qc-disabled);
    --button-action-bg-color: var(--qc-action);
    --button-action-border-color: var(--qc-action-edge);
    --button-action-text-color: var(--qc-action-text);
    --button-action-hover-text-color: var(--qc-action-text);
    --navbar-bg-color1: var(--qc-frame);
    --navbar-bg-color2: var(--qc-frame);
    --navbar-navlink-text-color: var(--qc-frame-ink);
    --navbar-navlink-subitem-text-color: var(--qc-frame-ink);
    --navbar-navlink-bg-color-hover: var(--qc-action-hover);
    --navbar-navlink-bg-color-selected: var(--qc-action);
    --navbar-project-separator-color: var(--qc-line);
    --footer-bg-color1: var(--qc-frame);
    --footer-bg-color2: var(--qc-frame);
    --footer-text-color: var(--qc-frame-ink);
    --menu-bg-color: var(--qc-paper);
    --menu-bg-color-alt: var(--qc-panel);
    --menu-bg-color-focus: var(--qc-tint);
    --menu-bg-color-active: var(--qc-tint);
    --menu-text-color: var(--qc-body);
    --menu-text-color-disabled: var(--qc-disabled-ink);
    --menu-text-color-focus: var(--qc-ink);
    --menu-text-color-active: var(--qc-ink);
    --centered-content-bg-color: var(--qc-paper);
    --centered-content-border-color: var(--qc-line);
    --alert-border-color: var(--qc-control);
    --alert-text-color: var(--qc-ink);
    --alert-info-bg-color: var(--qc-info-bg);
    --alert-error-bg-color: var(--qc-bad-bg);
    --alert-button-bg-color: var(--qc-action);
    --alert-button-border-color: var(--qc-action-edge);
    --alert-button-text-color: var(--qc-action-text);
    --alert-button-text-color-hover: var(--qc-action-text);
    --tab-bg-color: var(--qc-panel);
    --tab-border-color: var(--qc-line);
    --tab-header-bg-color: var(--qc-panel);
    --tab-header-bg-color-active: var(--qc-good-bg);
    --tab-header-text-color: var(--qc-body);
    --tab-header-text-color-active: var(--qc-ink);
    --file-bg-color-alt: var(--qc-panel);
    --file-title-text-color: var(--qc-ink);
    --file-selected-bg-color: var(--qc-tint);
    --file-selected-title-text-color: var(--qc-ink);
    --dialog-border-color: var(--qc-line);
    --dialog-title-bar-bg-color: var(--qc-action);
    --dialog-title-bar-text-color: var(--qc-action-text);
    --dialog-content-bg-color: var(--qc-paper);
    --dialog-content-text-color: var(--qc-body);
}

altcha-widget.hekate-altcha {
    --altcha-border-color: var(--qc-control);
    --altcha-border-width: 1px;
    --altcha-border-radius: var(--qc-radius);
    --altcha-checkbox-border-color: var(--qc-control);
    --altcha-checkbox-outline: 2px solid var(--qc-focus);
    --altcha-checkbox-outline-color: var(--qc-focus);
    --altcha-color-base: var(--qc-paper);
    --altcha-color-base-content: var(--qc-ink);
    --altcha-color-error: var(--qc-bad-bg);
    --altcha-color-error-content: var(--qc-ink);
    --altcha-color-neutral: var(--qc-control);
    --altcha-color-neutral-content: var(--qc-ink);
    --altcha-color-primary: var(--qc-action);
    --altcha-color-primary-content: var(--qc-action-text);
    --altcha-color-success: var(--qc-good-bg);
    --altcha-color-success-content: var(--qc-ink);
    --altcha-input-background-color: var(--qc-paper);
    --altcha-input-color: var(--qc-ink);
    --altcha-max-width: 100%;
    --altcha-spinner-color: var(--qc-action-edge);
    display: block;
    margin: 1rem 0;
    width: 100%;
}

@media (prefers-reduced-motion: reduce) {
    altcha-widget.hekate-altcha {
        --altcha-transition-duration: 0s;
    }
}
body,
html {
    background-color: var(--qc-bg);
    color: var(--qc-body);
    font-family: var(--qc-ui);
    font-size: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--qc-ink);
    font-family: var(--qc-ui);
    font-weight: 500;
    letter-spacing: normal;
}

h1 {
    font-size: 2.25rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.25rem;
}

code,
kbd,
pre,
samp {
    font-family: var(--qc-mono);
    font-feature-settings: 'liga' 0, 'calt' 0;
    font-variant-ligatures: none;
}

a:not(.no-link-color) {
    color: var(--qc-link);
}

:focus-visible {
    outline: 2px solid var(--qc-focus) !important;
    outline-offset: 2px;
}

input,
select,
textarea {
    border-radius: var(--qc-radius);
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled,
[aria-disabled="true"] {
    background-color: var(--qc-input-disabled-bg) !important;
    border-color: var(--qc-disabled) !important;
    color: var(--qc-disabled-ink) !important;
    cursor: not-allowed !important;
    opacity: .62 !important;
    filter: saturate(.35);
}

.hover-help {
    background-color: color-mix(in srgb, var(--qc-action) 18%, var(--qc-panel));
    border-color: var(--qc-action-edge);
    color: var(--qc-ink);
}

.centered-content,
.form-dialog,
.ui-dialog {
    border-radius: var(--qc-radius);
    box-shadow: var(--qc-shadow);
}

.hekate-auth,
.hekate-auth #wrapper,
.hekate-auth #pagewrapper,
.hekate-auth #page {
    min-height: 100vh;
}
.hekate-auth #header { display: none; }
.hekate-auth #wrapper,
.hekate-auth #pagewrapper,
.hekate-auth #page,
.hekate-auth #content { margin: 0; padding: 0; width: 100%; }
.hekate-auth #pagewrapper { max-width: none; }
.hekate-auth #content { flex: 1 1 auto; max-width: none; }
.hekate-auth #page {
    align-items: stretch;
    display: flex;
}
.login-wrapper {
    align-items: center;
    background: radial-gradient(circle at 20% 10%, color-mix(in srgb, var(--qc-action) 20%, var(--qc-frame)) 0, var(--qc-frame) 42%, color-mix(in srgb, #000 26%, var(--qc-frame)) 100%);
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: clamp(24px, 5vw, 64px);
    width: 100%;
}
.login-form.centered-content {
    background: color-mix(in srgb, var(--qc-paper) 95%, transparent);
    border: 1px solid var(--qc-line);
    border-radius: 16px;
    border-top: 5px solid var(--qc-action);
    box-shadow: 0 24px 70px rgba(0, 0, 0, .42);
    box-sizing: border-box;
    margin: 0;
    max-width: 640px;
    overflow: visible;
    padding: clamp(32px, 5vw, 56px);
    position: relative;
    width: 100%;
}
.hekate-login-wordmark { display: block; height: auto; margin: 0 0 36px; max-width: min(260px, 72vw); width: 260px; }
.hekate-login-intro { margin-bottom: var(--qc-space-6); }
.hekate-login-intro h1 { color: var(--qc-ink); font-size: clamp(2rem, 6vw, 3.1rem); font-weight: 650; letter-spacing: -.03em; line-height: 1.05; margin: 0 0 var(--qc-space-2); }
.hekate-login-intro p { color: var(--qc-muted); margin: 0; }
.login-form .status-text { color: var(--qc-body); font-size: 1rem; margin: 0 0 var(--qc-space-3); }
.login-form .email-text { background: var(--qc-panel); border: 1px solid var(--qc-line); border-radius: var(--qc-radius); color: var(--qc-muted); margin: 0 0 var(--qc-space-4); padding: var(--qc-space-3); }
.login-form .hekate-auth-form input:not([type='checkbox']):not([type='radio']) { box-sizing: border-box; height: 50px; margin: 0; width: 100%; }
.login-form .hekate-auth-form input[type='submit'] { background: var(--qc-action) !important; border-color: var(--qc-action-edge) !important; color: var(--qc-action-text) !important; font-weight: 650; }
.login-form .hekate-auth-form input[type='submit']:hover { background: var(--qc-action-hover) !important; }
.login-form .hekate-login-divider { margin: var(--qc-space-2) 0; }
.login-form .qc-identity-button { border-width: 2px; min-height: 50px; width: 100%; }
.login-form .error-alert,
.login-form .info-alert { margin: 0 0 var(--qc-space-4); }

@media (max-width: 560px) {
    .login-wrapper { align-items: flex-start; padding: 16px; }
    .login-form.centered-content { margin-top: 4vh; padding: 28px 24px; }
    .hekate-login-wordmark { margin-bottom: 28px; width: 220px; }
}

.qc-identity-button {
    align-items: center;
    background: var(--qc-paper);
    border: 1px solid var(--qc-control);
    border-radius: 5px;
    box-sizing: border-box;
    color: var(--qc-ink) !important;
    display: inline-flex;
    font-family: var(--qc-ui);
    font-size: 15px;
    font-weight: 500;
    gap: 12px;
    justify-content: center;
    line-height: 21px;
    max-width: 100%;
    min-height: 48px;
    padding: 9px 16px;
    text-decoration: none;
}

.qc-identity-button:hover {
    background: var(--qc-panel);
}

.qc-identity-button:focus-visible {
    outline: 2px solid var(--qc-focus) !important;
    outline-offset: 3px;
}

.qc-identity-button img {
    flex: none;
    height: 30px;
    object-fit: contain;
    width: 24px;
}

.hekate-login-divider {
    align-items: center;
    color: var(--qc-muted);
    display: flex;
    font-size: 14px;
    gap: var(--qc-space-3);
    margin: var(--qc-space-4) 0;
}

.hekate-login-divider::before,
.hekate-login-divider::after {
    background: var(--qc-line);
    content: '';
    flex: 1;
    height: 1px;
}

@media (max-width: 560px) {
    .qc-identity-button {
        font-size: 14px;
        padding: 9px 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
/* Reviews and approvals */
.hekate-reviewer-context,
.hekate-detail-card,
.hekate-form-card,
.hekate-approval-scope,
.hekate-assignment-card {
    border: 1px solid var(--hekate-border, #665963);
    border-radius: 12px;
    background: var(--hekate-surface-raised, #393139);
}

.hekate-reviewer-context,
.hekate-detail-card,
.hekate-form-card,
.hekate-approval-scope {
    padding: 24px;
    margin: 0 0 24px;
}

.hekate-reviewer-context {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.hekate-reviewer-context p,
.hekate-detail-card p,
.hekate-field-help {
    color: var(--hekate-text-muted, #cfc5cc);
    margin: 0;
}

.hekate-data-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--hekate-border, #665963);
    border-radius: 12px;
}

.hekate-data-table {
    width: 100%;
    border-collapse: collapse;
}

.hekate-data-table th,
.hekate-data-table td {
    padding: 14px 16px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid var(--hekate-border, #665963);
}

.hekate-data-table tr:last-child td { border-bottom: 0; }
.hekate-data-table td small { display: block; margin-top: 4px; color: var(--hekate-text-muted, #cfc5cc); }

.hekate-form-card > label,
.hekate-form-grid > label,
.hekate-assignment-card form > label {
    display: grid;
    gap: 8px;
    font-weight: 600;
}

.hekate-form-card input:not([type="checkbox"]):not([type="radio"]),
.hekate-form-card select,
.hekate-form-card textarea,
.hekate-assignment-card textarea {
    box-sizing: border-box;
    width: 100%;
}

.hekate-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 22px;
}

.hekate-form-card fieldset {
    margin: 24px 0;
    padding: 20px;
    border: 1px solid var(--hekate-border, #665963);
    border-radius: 10px;
}

.hekate-form-card fieldset > label { display: block; margin: 10px 0; }
.hekate-form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 18px; }

.hekate-selection-list { display: grid; gap: 8px; margin-top: 14px; max-height: 380px; overflow-y: auto; }
.hekate-selection-list > label {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--hekate-border, #665963);
    border-radius: 8px;
}
.hekate-selection-list small { display: block; color: var(--hekate-text-muted, #cfc5cc); margin-top: 3px; }
.hekate-order-control { align-items: center; color: var(--qc-muted); display: none; font-size: .78rem; gap: var(--qc-space-2); }
.hekate-review-request-form.is-sequential .hekate-order-control { display: inline-flex; }
.hekate-order-input { max-width: 64px; min-height: 36px !important; padding: 5px 8px !important; text-align: center; }

.hekate-review-summary-grid { display: grid; gap: 12px; }
.hekate-review-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 24px;
    border: 1px solid var(--hekate-border, #665963);
    border-radius: 12px;
    background: var(--hekate-surface-raised, #393139);
}
.hekate-review-card h2 { margin: 8px 0 4px; }
.hekate-review-card p { margin: 0; color: var(--hekate-text-muted, #cfc5cc); }
.hekate-review-card > strong { font-size: 1.5rem; text-align: right; }
.hekate-review-card > strong small { display: block; font-size: .75rem; color: var(--hekate-text-muted, #cfc5cc); }

.hekate-status-pill {
    display: inline-flex;
    padding: 3px 9px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--hekate-accent, #b95d79) 18%, transparent);
    color: var(--hekate-accent-soft, #e3adc0);
    font-size: .78rem;
    font-weight: 700;
    text-transform: capitalize;
}
.hekate-status-pill--complete { background: rgba(91, 160, 113, .18); color: #9bd5ad; }
.hekate-status-pill--waiting,
.hekate-status-pill--skipped { opacity: .72; }

.hekate-request-overview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid var(--hekate-border, #665963);
    border-radius: 12px;
    background: var(--hekate-border, #665963);
}
.hekate-request-overview > div { padding: 18px; background: var(--hekate-surface-raised, #393139); }
.hekate-request-overview span { display: block; margin-bottom: 6px; color: var(--hekate-text-muted, #cfc5cc); font-size: .8rem; }
.hekate-section-heading { display: flex; justify-content: space-between; gap: 20px; }

.hekate-guest-access,
.hekate-guest-review { width: min(1100px, calc(100% - 40px)); margin: 48px auto; }
.hekate-guest-access { width: min(620px, calc(100% - 40px)); }
.hekate-guest-access__brand img,
.hekate-guest-review__header img { width: 190px; max-height: 70px; object-fit: contain; object-position: left center; }
.hekate-guest-access__brand { margin-bottom: 24px; }
.hekate-guest-review__header { display: flex; align-items: center; gap: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--hekate-border, #665963); margin-bottom: 24px; }
.hekate-guest-review__header h1 { margin: 4px 0; }
.hekate-guest-review__header p { margin: 0; color: var(--hekate-text-muted, #cfc5cc); }
.hekate-approval-scope { border-left: 4px solid var(--hekate-accent, #b95d79); }
.hekate-approval-scope strong,
.hekate-approval-scope span { display: block; }
.hekate-approval-scope span { font-size: 1.25rem; margin: 5px 0; }
.hekate-guest-assignments { display: grid; gap: 14px; }
.hekate-assignment-card { padding: 20px; }
.hekate-assignment-card > header { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.hekate-assignment-card h3 { margin: 0 0 8px; }

@media (max-width: 800px) {
    .hekate-form-grid,
    .hekate-request-overview { grid-template-columns: 1fr; }
    .hekate-reviewer-context,
    .hekate-review-card,
    .hekate-assignment-card > header,
    .hekate-guest-review__header { align-items: flex-start; flex-direction: column; }
}

/* Cohesive review and team surfaces */
.header-icon-reviews {
    -webkit-mask: url('/img/review-shield.svg') no-repeat center / contain;
    mask: url('/img/review-shield.svg') no-repeat center / contain;
    background-color: currentColor;
}

.hekate-button {
    align-items: center;
    border: 2px solid var(--qc-control);
    border-radius: 999px;
    box-sizing: border-box;
    color: var(--qc-ink) !important;
    display: inline-flex;
    font-family: var(--qc-ui);
    font-size: .9rem;
    font-weight: 650;
    gap: var(--qc-space-2);
    justify-content: center;
    line-height: 1.15;
    min-height: 42px;
    padding: 9px 20px;
    text-decoration: none !important;
}

button.hekate-button { margin: 0; }
.hekate-button:hover { background: var(--qc-tint); border-color: var(--qc-action-edge); color: var(--qc-link) !important; }
.hekate-button:focus-visible { outline: 3px solid var(--qc-focus); outline-offset: 2px; }
.hekate-button--primary,
button.hekate-button--primary {
    background: var(--qc-action) !important;
    border-color: var(--qc-action-edge) !important;
    color: var(--qc-action-text) !important;
}
.hekate-button--primary:hover,
button.hekate-button--primary:hover { background: var(--qc-action-hover) !important; color: var(--qc-action-text) !important; }
.hekate-button--secondary { background: transparent !important; }
.hekate-button--small { font-size: .82rem; min-height: 36px; padding: 7px 14px; }
.hekate-button--danger,
button.hekate-button--danger { background: var(--qc-bad-bg) !important; border-color: var(--qc-bad) !important; color: var(--qc-bad) !important; margin-left: auto; }

.hekate-tabs {
    border-bottom: 1px solid var(--qc-line);
    display: flex;
    gap: var(--qc-space-1);
    margin: 0 0 var(--qc-space-6);
    padding: 0 var(--qc-space-2);
}
.hekate-tabs a {
    border-bottom: 3px solid transparent;
    color: var(--qc-muted) !important;
    font-weight: 650;
    margin-bottom: -1px;
    padding: var(--qc-space-3) var(--qc-space-4);
}
.hekate-tabs a:hover { background: var(--qc-tint); color: var(--qc-link) !important; }
.hekate-tabs a.is-active { border-bottom-color: var(--qc-action-edge); color: var(--qc-ink) !important; }

.hekate-section-intro {
    align-items: flex-end;
    display: flex;
    justify-content: space-between;
    margin: 0 0 var(--qc-space-4);
}
.hekate-section-intro h2 { color: var(--qc-ink); font-size: 1.4rem; font-weight: 650; margin: 0; }
.hekate-section-intro p { color: var(--qc-muted); margin: var(--qc-space-1) 0 0; }

.hekate-empty-state {
    align-items: flex-start;
    background: var(--qc-paper);
    border: 1px solid var(--qc-line);
    border-radius: var(--qc-radius);
    display: flex;
    gap: var(--qc-space-4);
    padding: var(--qc-space-8);
}
.hekate-empty-state__icon { background-color: var(--qc-muted); flex: 0 0 40px; height: 40px; width: 40px; }
.hekate-empty-state h2 { color: var(--qc-ink); font-size: 1.2rem; font-weight: 650; margin: 0; }
.hekate-empty-state p { color: var(--qc-muted); margin: var(--qc-space-2) 0 var(--qc-space-4); max-width: 48rem; }

.hekate-form-card {
    background: var(--qc-paper);
    border-color: var(--qc-line);
    color: var(--qc-body);
    padding: var(--qc-space-6);
}
.hekate-form-card label { color: var(--qc-ink); }
.hekate-form-card input:not([type='checkbox']):not([type='radio']),
.hekate-form-card select,
.hekate-form-card textarea {
    background: var(--qc-paper);
    border: 2px solid var(--qc-control);
    border-radius: var(--qc-radius);
    color: var(--qc-ink);
    font: inherit;
    min-height: 44px;
    padding: 9px 12px;
}
.hekate-form-card input:not([type='checkbox']):not([type='radio']),
.hekate-form-card select { height: 44px !important; min-height: 44px !important; }
.hekate-form-card textarea { min-height: 104px; resize: vertical; }
.hekate-form-card input:focus,
.hekate-form-card select:focus,
.hekate-form-card textarea:focus { border-color: var(--qc-focus); outline: 2px solid var(--qc-focus-wash); }
.hekate-form-card fieldset { border-color: var(--qc-line); }
.hekate-form-card legend { color: var(--qc-ink); font-size: 1.05rem; font-weight: 650; padding: 0 var(--qc-space-2); }
.hekate-field-help { color: var(--qc-muted) !important; font-size: .86rem; font-weight: 400; }
.hekate-primary-field { display: grid; gap: var(--qc-space-2); margin-bottom: var(--qc-space-6); }
.hekate-primary-field > input { font-size: 1.05rem !important; font-weight: 600; }
.hekate-form-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hekate-label-hint { color: var(--qc-muted); float: right; font-size: .75rem; font-weight: 400; }
.hekate-fieldset-heading { align-items: flex-start; display: flex; gap: var(--qc-space-4); justify-content: space-between; }
.hekate-fieldset-heading legend { float: left; margin-bottom: var(--qc-space-1); }
.hekate-fieldset-heading p { clear: both; }

.hekate-reviewer-groups { display: grid; gap: var(--qc-space-6); grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--qc-space-4); }
.hekate-reviewer-groups h3 { color: var(--qc-ink); font-size: .9rem; font-weight: 650; margin: 0 0 var(--qc-space-2); }
.hekate-selection-list--reviewers { max-height: none; overflow: visible; }
.hekate-selection-list > label { background: var(--qc-paper); border-color: var(--qc-line); }
.hekate-selection-list > label:hover { background: var(--qc-tint); border-color: var(--qc-action-edge); }
.hekate-selection-list--people { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: none; overflow: visible; }
.hekate-selection-list--people > label { grid-template-columns: auto minmax(0, 1fr); }

.hekate-choice-cards { display: grid; gap: var(--qc-space-3); grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: var(--qc-space-4); }
.hekate-choice-cards > label {
    align-items: flex-start;
    background: var(--qc-paper);
    border: 1px solid var(--qc-line);
    border-radius: var(--qc-radius);
    display: flex !important;
    gap: var(--qc-space-3);
    margin: 0 !important;
    padding: var(--qc-space-4);
}
.hekate-choice-cards > label:hover { background: var(--qc-tint); border-color: var(--qc-action-edge); }
.hekate-choice-cards strong,
.hekate-choice-cards small { display: block; }
.hekate-choice-cards small { color: var(--qc-muted); margin-top: var(--qc-space-1); }

.hekate-file-picker { margin-top: var(--qc-space-4); }
.hekate-file-picker__filter { display: grid !important; gap: var(--qc-space-2); margin-bottom: var(--qc-space-3) !important; }
.hekate-file-picker__filter span { font-size: .82rem; font-weight: 600; }
.hekate-file-tree {
    border: 1px solid var(--qc-line);
    border-radius: var(--qc-radius);
    max-height: 300px;
    overflow: auto;
}
.hekate-file-tree__node { border-top: 1px solid var(--qc-line); }
.hekate-file-tree > .hekate-file-tree__node:first-child { border-top: 0; }
.hekate-file-tree__row {
    align-items: center;
    background: var(--qc-paper);
    display: grid !important;
    gap: var(--qc-space-3);
    grid-template-columns: auto 24px minmax(0, 1fr);
    margin: 0 !important;
    min-height: 38px;
    padding: var(--qc-space-1) var(--qc-space-3) var(--qc-space-1) calc(var(--qc-space-3) + (var(--tree-depth) * 20px));
}
.hekate-file-tree__row:hover { background: var(--qc-tint); }
.hekate-file-tree__icon {
    background: var(--qc-link);
    flex: 0 0 1rem;
    height: 1rem;
    mask: center / contain no-repeat;
    -webkit-mask: center / contain no-repeat;
    width: 1rem;
}
.hekate-file-tree__icon--folder {
    mask-image: url('../img/third_party/fontawesome/folder-solid.svg');
    -webkit-mask-image: url('../img/third_party/fontawesome/folder-solid.svg');
}
.hekate-file-tree__icon--file {
    mask-image: url('../img/third_party/fontawesome/file-light.svg');
    -webkit-mask-image: url('../img/third_party/fontawesome/file-light.svg');
}
.hekate-file-tree__copy { min-width: 0; }
.hekate-file-tree__copy strong { color: var(--qc-ink); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hekate-file-tree__copy small { color: var(--qc-muted); display: block; font-weight: 400; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hekate-file-picker__empty { color: var(--qc-muted); padding: var(--qc-space-4); text-align: center; }

.hekate-reviewer-form { display: grid; gap: var(--qc-space-5); max-width: 1120px; }
.hekate-reviewer-form .hekate-form-grid { margin-bottom: 0; }
.hekate-reviewer-form .hekate-form-section { border-bottom: 1px solid var(--qc-line); padding-bottom: var(--qc-space-6); }
.hekate-reviewer-form .hekate-form-section:last-of-type { padding-bottom: var(--qc-space-6); }
.hekate-form-section__heading { align-items: flex-start; display: flex; gap: var(--qc-space-3); margin-bottom: var(--qc-space-4); }
.hekate-form-section__heading > span { align-items: center; background: var(--qc-tint); border-radius: 50%; color: var(--qc-link); display: flex; flex: 0 0 30px; font-weight: 700; height: 30px; justify-content: center; }
.hekate-form-section__heading h2 { color: var(--qc-ink); font-size: 1.15rem; font-weight: 650; margin: 0; }
.hekate-form-section__heading p { color: var(--qc-muted); margin: var(--qc-space-1) 0 0; }
.hekate-reviewer-form .hekate-form-section__heading > span { display: none; }
.hekate-reviewer-form input:not([type='checkbox']):not([type='radio']),
.hekate-reviewer-form select { box-sizing: border-box; display: block; height: 46px !important; line-height: 1.25; min-height: 46px !important; width: 100%; }
.hekate-scope-heading { align-items: baseline; display: flex; gap: var(--qc-space-3); justify-content: space-between; margin-top: var(--qc-space-5, 20px); }
.hekate-scope-heading span { color: var(--qc-muted); font-size: .8rem; }
.hekate-capability-list { display: grid; gap: 1px; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--qc-line); border: 1px solid var(--qc-line); border-radius: var(--qc-radius); overflow: hidden; }
.hekate-capability-list > label { align-items: flex-start; background: var(--qc-paper); display: flex; gap: var(--qc-space-3); padding: var(--qc-space-4); }
.hekate-capability-list > label:hover { background: var(--qc-tint); }
.hekate-capability-list strong,
.hekate-capability-list small { display: block; }
.hekate-capability-list small { color: var(--qc-muted); margin-top: var(--qc-space-1); }

.hekate-header-search input { min-width: 240px; }
.hekate-menu-anchor { display: inline-flex; position: relative; }

.hekate-account-cluster { align-items: center; display: flex; gap: var(--qc-space-1); position: relative; width: 100%; }
#avatar-container:hover { background: transparent; }
#user_dropdown_link:hover { background: var(--qc-tint); }

.hekate-capability-list input[type='checkbox'] { flex: 0 0 auto; margin: 3px 0 0; }
.hekate-capability-primary { margin-bottom: var(--qc-space-4); max-width: none; }
.hekate-capability-primary label { display: grid; gap: var(--qc-space-2); }
.hekate-capability-list--secondary { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.hekate-completion-grid { display: grid; gap: var(--qc-space-6); grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); margin-top: var(--qc-space-4); }
.hekate-completion-grid > section,
.hekate-completion-grid > div { background: var(--qc-panel); border: 1px solid var(--qc-line); border-radius: var(--qc-radius); padding: var(--qc-space-4); }
.hekate-completion-grid h3 { color: var(--qc-ink); font-size: .95rem; margin: 0; }
.hekate-completion-grid > section > p,
.hekate-completion-grid > div > p { color: var(--qc-muted); font-size: .84rem; margin: var(--qc-space-1) 0 var(--qc-space-3); }
.hekate-choice-cards--stacked { grid-template-columns: 1fr; margin-top: 0; }
.hekate-completion .hekate-selection-list { margin-top: 0; }

.hekate-review-check { align-items: center; background: var(--qc-panel); border: 1px solid var(--qc-line); border-radius: var(--qc-radius); display: grid; gap: var(--qc-space-5); grid-template-columns: minmax(180px, .34fr) minmax(0, 1fr); margin: var(--qc-space-6) 0; padding: var(--qc-space-4); }
.hekate-review-check h2 { color: var(--qc-ink); font-size: 1rem; margin: 0; }
.hekate-review-check p { color: var(--qc-muted); font-size: .84rem; margin: var(--qc-space-1) 0 0; }
.hekate-process-map { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.hekate-process-map li { align-items: center; color: var(--qc-muted); display: grid; gap: 2px; grid-template-columns: 32px minmax(0, 1fr); min-width: 0; position: relative; }
.hekate-process-map li:not(:last-child)::after { background: var(--qc-line); content: ''; height: 2px; left: calc(100% - 12px); position: absolute; top: 15px; width: 24px; }
.hekate-process-map li > span { align-items: center; background: var(--qc-paper); border: 2px solid var(--qc-control); border-radius: 50%; display: inline-flex; font-size: .78rem; font-weight: 700; grid-row: span 2; height: 30px; justify-content: center; width: 30px; }
.hekate-process-map strong { color: var(--qc-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hekate-process-map small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hekate-process-map li.is-ready > span,
.hekate-process-map li.is-complete > span { background: var(--qc-good-bg); border-color: var(--qc-good); color: var(--qc-good); }
.hekate-process-map li.is-current > span { background: var(--qc-tint); border-color: var(--qc-action-edge); color: var(--qc-link); }

.hekate-review-check--summary { align-items: stretch; display: block; padding: 0; }
.hekate-review-check--summary > div { border-bottom: 1px solid var(--qc-line); padding: var(--qc-space-3) var(--qc-space-4); }
.hekate-review-check--summary .hekate-process-map { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hekate-review-check--summary .hekate-process-map li {
    align-content: center;
    display: grid;
    gap: 2px;
    grid-template-columns: 1fr;
    min-height: 62px;
    padding: var(--qc-space-3) var(--qc-space-4);
}
.hekate-review-check--summary .hekate-process-map li + li { border-left: 1px solid var(--qc-line); }
.hekate-review-check--summary .hekate-process-map li::after { display: none; }
.hekate-review-check--summary .hekate-process-map strong { font-size: .78rem; text-transform: uppercase; letter-spacing: .035em; }
.hekate-review-check--summary .hekate-process-map small { color: var(--qc-body); font-size: .9rem; }
.hekate-review-check--summary .hekate-process-map li.is-ready { background: color-mix(in srgb, var(--qc-good-bg) 45%, transparent); }

.hekate-inline-empty { align-items: center; border: 1px dashed var(--qc-line); border-radius: var(--qc-radius); color: var(--qc-muted); display: flex; flex-wrap: wrap; gap: var(--qc-space-2) var(--qc-space-4); padding: var(--qc-space-4); }
.hekate-inline-empty strong { color: var(--qc-ink); }
.hekate-inline-empty button { margin-left: auto; }
.hekate-list-empty { color: var(--qc-muted); margin: 0; padding: var(--qc-space-4); }

.hekate-modal { background: transparent; border: 0; color: var(--qc-body); left: 50%; margin: 0 !important; max-height: calc(100vh - 32px); max-width: 680px; padding: 0; position: fixed; top: 50%; transform: translate(-50%, -50%); width: calc(100% - 32px); }
.hekate-modal::backdrop { background: color-mix(in srgb, #000 68%, transparent); }
.hekate-modal__card { background: var(--qc-paper); border: 1px solid var(--qc-line); border-radius: 12px; box-shadow: 0 24px 80px rgba(0, 0, 0, .4); padding: var(--qc-space-6); }
.hekate-modal__card > header { align-items: flex-start; border-bottom: 1px solid var(--qc-line); display: flex; justify-content: space-between; margin-bottom: var(--qc-space-5); padding-bottom: var(--qc-space-4); }
.hekate-modal__card h2 { color: var(--qc-ink); font-size: 1.25rem; margin: 0; }
.hekate-modal__card header p { color: var(--qc-muted); margin: var(--qc-space-1) 0 0; }
.hekate-modal__card label { color: var(--qc-ink); display: grid; font-weight: 650; gap: var(--qc-space-2); }
.hekate-modal__card input { background: var(--qc-paper); border: 2px solid var(--qc-control); border-radius: var(--qc-radius); box-sizing: border-box; color: var(--qc-ink); min-height: 44px; padding: 9px 12px; width: 100%; }
.hekate-modal__close { align-items: center; border: 1px solid var(--qc-control); border-radius: 50%; color: var(--qc-muted); display: inline-flex; flex: 0 0 36px; font-size: 1.35rem; height: 36px; justify-content: center; line-height: 1; padding: 0; width: 36px; }
.hekate-modal__close:hover { color: var(--qc-link); }
.hekate-modal__error { background: var(--qc-bad-bg); border-left: 4px solid var(--qc-bad); border-radius: var(--qc-radius); color: var(--qc-bad); margin-top: var(--qc-space-3); padding: var(--qc-space-3); }

.hekate-defaults-form { display: grid; gap: 0; }
.hekate-settings-section { border-bottom: 1px solid var(--qc-line); padding: 0 0 var(--qc-space-6); }
.hekate-settings-section + .hekate-settings-section { padding-top: var(--qc-space-6); }
.hekate-settings-section > header { align-items: flex-start; display: flex; gap: var(--qc-space-3); margin-bottom: var(--qc-space-4); }
.hekate-settings-section > header > span { align-items: center; background: var(--qc-tint); border-radius: 50%; color: var(--qc-link); display: flex; flex: 0 0 30px; font-weight: 700; height: 30px; justify-content: center; }
.hekate-settings-section h2 { color: var(--qc-ink); font-size: 1.12rem; margin: 0; }
.hekate-settings-section header p { color: var(--qc-muted); margin: var(--qc-space-1) 0 0; }
.hekate-toggle-card { align-items: flex-start; background: var(--qc-panel); border: 1px solid var(--qc-line); border-radius: var(--qc-radius); display: flex !important; gap: var(--qc-space-3); margin-top: var(--qc-space-4); padding: var(--qc-space-4); }
.hekate-toggle-card small { color: var(--qc-muted); display: block; margin-top: var(--qc-space-1); }

#user-dept-container { display: grid; gap: var(--qc-space-5); margin: 0 !important; }
.user-dept { background: var(--qc-paper); border: 1px solid var(--qc-line); border-radius: var(--qc-radius); margin: 0 !important; overflow: hidden; }
.user-dept > h2 { align-items: center; background: var(--qc-panel); border-bottom: 1px solid var(--qc-line); color: var(--qc-ink); display: flex; font-size: 1rem; gap: var(--qc-space-2); margin: 0; padding: var(--qc-space-3) var(--qc-space-4); }
.user-dept .usertable { border: 0; margin: 0; }
.hekate-team-table { overflow-x: auto; }
.hekate-team-table .usertable { min-width: 720px; }
.hekate-team-add.hekate-edit-form { border-top: 1px solid var(--qc-line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, .5fr); gap: var(--qc-space-4); margin: 0; max-width: none; padding: var(--qc-space-4); }
.hekate-team-add > div { min-width: 0; }
.hekate-team-add label { display: block; margin: 0 0 var(--qc-space-2); }
.hekate-team-add .hekate-team-add__activation { align-self: center; display: flex; gap: var(--qc-space-3); margin: 0; }
.hekate-team-add .hekate-button { justify-self: end; white-space: nowrap; }
@media (max-width: 600px) {
    .hekate-team-add.hekate-edit-form { grid-template-columns: minmax(0, 1fr); }
    .hekate-team-add .hekate-button { justify-self: stretch; }
}
.user-dept .usertable th { background: color-mix(in srgb, var(--qc-panel) 65%, var(--qc-paper)); color: var(--qc-muted); font-size: .78rem; padding: var(--qc-space-2) var(--qc-space-3); text-align: left; }
.user-dept .usertable td { border-top: 1px solid var(--qc-line); padding: var(--qc-space-3); vertical-align: middle; }
.user-dept .usertable tr:hover td { background: var(--qc-tint); }
.user-dept .usertable .add-user-row td { background: var(--qc-panel); }
.user-dept .usertable .avatar { vertical-align: middle; }

@media (max-width: 900px) {
    .hekate-form-grid--three,
    .hekate-reviewer-groups,
    .hekate-selection-list--people,
    .hekate-capability-list,
    .hekate-completion-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .hekate-choice-cards { grid-template-columns: 1fr; }
    .hekate-review-check { grid-template-columns: 1fr; }
    .hekate-process-map { gap: var(--qc-space-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hekate-process-map li::after { display: none; }
    .hekate-review-check--summary .hekate-process-map { gap: 0; grid-template-columns: 1fr; }
    .hekate-review-check--summary .hekate-process-map li + li { border-left: 0; border-top: 1px solid var(--qc-line); }
    .hekate-fieldset-heading,
    .hekate-scope-heading { align-items: flex-start; flex-direction: column; }
    .hekate-button--danger { margin-left: 0; }
}

/* Reviewer lists retain the same table frame when empty or filtered. */
.hekate-data-table td.hekate-data-table__empty { padding: var(--qc-space-8) var(--qc-space-6); text-align: center; }
.hekate-data-table__empty h3 { color: var(--qc-ink); font-size: 1.1rem; margin: 0 0 var(--qc-space-2); }
.hekate-data-table__empty p { color: var(--qc-muted); margin: 0 0 var(--qc-space-4); }
.hekate-reviewer-back { display: inline-block; margin-bottom: var(--qc-space-4); padding: var(--qc-space-2) 0; }
.hekate-reviewer-form { max-width: 52rem; }
.hekate-reviewer-form .hekate-form-section__heading h3 { color: var(--qc-ink); font-size: 1.05rem; font-weight: 650; margin: 0; }
.hekate-reviewer-form .hekate-form-section + .hekate-form-section { margin-top: var(--qc-space-6); }

/* Shared spacing for sign-in and reset forms. */
.login-form .hekate-auth-form { display: flex; flex-direction: column; gap: var(--qc-space-4); }
.login-form .hekate-auth-field { display: flex; flex-direction: column; gap: var(--qc-space-2); margin: 0; }
.login-form .hekate-auth-option { margin: 0; }
.login-form .hekate-auth-links { margin: 0; text-align: center; }
.login-form .hekate-auth-form .email-text { margin: 0; overflow-wrap: anywhere; }
.login-form .hekate-auth-form .qc-identity-button { box-sizing: border-box; margin: 0; }

.review-back-link { display: inline-flex; align-items: center; min-height: 44px; margin: 8px 20px; font-weight: 600; }

/* Keep the ermine pattern still over the page surface and a faint accent glow. */
.hekate-auth .login-wrapper {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--qc-bg);
}
.hekate-auth .login-wrapper::before,
.hekate-auth .login-wrapper::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}
.hekate-auth .login-wrapper::before {
  inset: -30%;
  background: radial-gradient(ellipse at 25% 25%, color-mix(in srgb, var(--qc-action) 22%, transparent) 0, transparent 55%);
}
.hekate-auth .login-wrapper::after {
  inset: 0;
  background: url('/img/patterns/ermine.svg') repeat;
}
#page { padding-bottom: 24px; }

.hekate-data-table th small { display: block; margin-top: 4px; color: var(--qc-muted); font-weight: normal; }
.hekate-data-table th[scope="row"] { font-weight: 600; }

.hekate-mail-queue__toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--qc-space-4); margin-bottom: var(--qc-space-6); }
.hekate-mail-queue__toolbar p { margin: var(--qc-space-2) 0 0; color: var(--qc-muted); }
.hekate-mail-queue form { margin: 0; }
.hekate-mail-queue caption { text-align: left; color: var(--qc-muted); padding: var(--qc-space-3) var(--qc-space-4); font-size: .875rem; }
.hekate-mail-queue .hekate-data-table thead th { background: var(--qc-panel); color: var(--qc-ink); }
.hekate-mail-queue .hekate-data-table :is(th,td) { padding: var(--qc-space-3) var(--qc-space-4); vertical-align: middle; }
.hekate-mail-queue .hekate-data-table tbody th { background: transparent; text-align: left; overflow-wrap: anywhere; }
.hekate-mail-queue .hekate-data-table .hekate-mail-queue__number { text-align: right; font-variant-numeric: tabular-nums; }
.hekate-mail-queue__actions { display: flex; gap: var(--qc-space-2); flex-wrap: nowrap; }
.hekate-mail-queue .hekate-button { min-height: var(--qc-control-medium, 36px); padding: 0 var(--qc-space-3); margin: 0; white-space: nowrap; font-size: .875rem; }
.hekate-mail-queue .hekate-mail-queue__remove { color: var(--qc-bad); border-color: transparent; background: transparent; }
.hekate-mail-queue td small { display: block; margin-top: var(--qc-space-1); color: var(--qc-muted); max-width: 24ch; }
@media (max-width: 639.98px) { .hekate-mail-queue__toolbar { align-items: flex-start; flex-direction: column; } }
@media (pointer: coarse) { .hekate-mail-queue .hekate-button { min-height: var(--qc-control-large, 44px); } }

.hekate-mail-queue button.hekate-mail-queue__remove { color: var(--qc-bad) !important; border-color: transparent !important; background: transparent !important; }

/* One account target, regardless of whether the pointer is over its text or padding. */
#navbar #user_dropdown_link { display: block; border-radius: var(--qc-radius); }
#navbar #user_dropdown_link:hover,
#navbar #user_dropdown_link:focus-visible,
#navbar #user_dropdown_link[aria-expanded="true"] { background: var(--qc-frame-hover, var(--qc-tint)); }
#navbar #user_dropdown_link #user_dropdown_box,
#navbar #user_dropdown_link #user_dropdown_box:hover { background: transparent; }
#navbar #user_dropdown_link:focus-visible { outline: 2px solid var(--qc-focus); outline-offset: 2px; }
#hekate-navigation-backdrop { position: fixed; inset: 0; background: #0008; z-index: var(--qc-layer-overlay, 9998); }
#hekate-navigation-backdrop[hidden] { display: none; }
.hekate-navigation-trigger { min-height: 44px; padding: 0 var(--qc-space-4); }
@media (max-width: 1023.98px) {
    body.hekate-navigation-open { overflow: hidden; }
    #navbar.vertical { position: fixed; inset: 0 auto 0 0; width: min(320px, calc(100vw - 48px)); height: 100dvh; box-sizing: border-box; z-index: calc(var(--qc-layer-overlay, 9998) + 1); overflow-y: auto; padding-top: 48px; }
    #navbar.vertical.collapsed { display: none; }
    #pagewrapper, #pagewrapper.vertical { margin-left: 0; width: 100%; min-width: 0; }
    #navbar.vertical #navbar-collapse { display: block; opacity: 1; position: absolute; top: 4px; right: 8px; min-width: 64px; min-height: 44px; font: inherit; }
    #navbar-uncollapse { opacity: 1; position: fixed; top: 8px; left: 16px; z-index: 100; }
    body:has(#navbar.vertical) #page { padding-top: 72px; }
    #navbar.vertical #avatar-container { position: static; margin-top: auto; padding-bottom: max(16px, env(safe-area-inset-bottom)); }
    #navbar.vertical #user_dropdown { max-width: calc(100vw - 64px); }
}
@media (max-width: 639.98px) {
    #page { padding-left: var(--qc-space-4); padding-right: var(--qc-space-4); }
}

.hekate-edit-form { width: 100%; max-width: 52rem; display: grid; gap: var(--qc-space-6); }
.hekate-edit-form__section { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--qc-space-2); margin: 0; }
.hekate-edit-form__section h2 { margin: 0 0 var(--qc-space-3); font-size: 1.125rem; }
.hekate-edit-form__section > label:not(:first-of-type) { margin-top: var(--qc-space-4); }
.hekate-edit-form__section > :is(input, textarea, select, token-input) { width: 100%; min-width: 0; box-sizing: border-box; margin: 0; }
.hekate-edit-form__section .hekate-field-help { margin: 0; }
.hekate-edit-form__section .hekate-edit-form__check { display: flex; align-items: flex-start; gap: var(--qc-space-3); margin: var(--qc-space-2) 0; }
.hekate-edit-form__check input { flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--qc-action); }
.hekate-edit-form .hekate-form-actions { margin: 0; }

#navbar.vertical #avatar-container #user_dropdown_link #user_dropdown_box,
#navbar.vertical #avatar-container #user_dropdown_link #user_dropdown_box:hover { background: transparent !important; transform: none; }
.hekate-edit-form__section > label:not(.hekate-edit-form__check) { display: block; }
.hekate-edit-form__section > label .hekate-field-help { display: inline; }
@media (max-width: 1023.98px) {
    #navbar.vertical #navbar-collapse { left: auto; width: auto; color: var(--qc-ink); border-radius: var(--qc-radius); padding: 0 12px; }
    #navbar-uncollapse { width: auto; height: 44px; padding: 0 16px !important; color: var(--qc-ink); }
}

@media (max-width: 1023.98px) {
    #navbar.vertical #nav-links a.nomobile { display: flex !important; }
    #navbar.vertical #nav-links .nav-link { padding: 0; }
    #navbar.vertical #nav-links a { min-height: 44px; box-sizing: border-box; display: flex; align-items: center; gap: 12px; padding: 0 16px; }
    #navbar.vertical #nav-links a .navlink-icon { flex: 0 0 20px; width: 20px; height: 20px; margin: 0; }
    #navbar.vertical #nav-links .nav-link-subitem a { padding-left: 32px; }
}

/* Keep one icon column and a comfortable navigation measure at every size. */
#navbar.vertical #nav-links .nav-link { padding: 0; }
#navbar.vertical #nav-links a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 16px; box-sizing: border-box; }
#navbar.vertical #nav-links a .navlink-icon { flex: 0 0 20px; width: 20px; height: 20px; margin: 0; }
#navbar.vertical #nav-links .nav-link-subitem a { padding-left: 32px; }
#navbar.vertical #logo-container { width: calc(100% - 48px); max-width: 208px; height: 64px; margin: 24px; background-position: left center; }
#navbar.vertical #project_dropdown_container { margin: 0 16px 8px; }
#navbar.vertical #avatar-container { padding: 16px; margin-bottom: 0; }
#navbar.vertical #avatar-container:hover { background: transparent; }
#navbar.vertical #user_dropdown_link { width: 100%; padding: 8px; box-sizing: border-box; }
#navbar.vertical #user_dropdown_box { width: 100%; min-height: 28px; padding: 0; gap: 8px; color: var(--qc-frame-ink); box-sizing: border-box; }
#navbar.vertical #user_dropdown_box .user-name { margin: 0; }
@media (min-width: 1024px) {
    #navbar.vertical { width: var(--qc-shell-sidebar, 264px); box-sizing: border-box; }
    #pagewrapper.vertical { margin-left: var(--qc-shell-sidebar, 264px); }
}

/* Review creation follows the shared form, fieldset, and selection rules. */
.hekate-request-form { max-width: 720px; }
.hekate-request-form [hidden], .hekate-request-dialog [hidden] { display: none !important; }
.hekate-request-section {
    background: var(--qc-paper);
    border: 1px solid var(--qc-line);
    border-radius: var(--qc-radius);
    min-width: 0;
    margin: 0 0 var(--qc-space-6);
    padding: var(--qc-space-6);
}
.hekate-request-section > legend { color: var(--qc-ink); font-size: 1.05rem; font-weight: 600; padding: 0 var(--qc-space-2); }
.hekate-request-field { display: grid; gap: var(--qc-space-2); min-width: 0; margin-bottom: var(--qc-space-6); }
.hekate-request-field > label { color: var(--qc-ink); font-weight: 600; }
.hekate-request-field:last-child { margin-bottom: 0; }
.hekate-request-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--qc-space-4); align-items: end; }
.hekate-request-columns > .hekate-request-field { margin-bottom: var(--qc-space-6); }
.hekate-request-form input:not([type='checkbox']):not([type='radio']),
.hekate-request-form select, .hekate-request-form textarea,
.hekate-request-dialog input:not([type='hidden']) {
    background: var(--qc-paper); border: 2px solid var(--qc-control); border-radius: var(--qc-radius);
    box-sizing: border-box; color: var(--qc-ink); font: inherit; height: 36px; min-height: 36px;
    padding: 4px var(--qc-space-3); width: 100%; max-width: none; margin: 0;
}
.hekate-request-form textarea { height: auto; min-height: 88px; resize: vertical; padding-block: var(--qc-space-2); }
.hekate-request-form input:focus-visible, .hekate-request-form select:focus-visible,
.hekate-request-form textarea:focus-visible, .hekate-request-dialog input:focus-visible {
    border-color: var(--qc-focus); outline: 2px solid var(--qc-focus); outline-offset: 2px;
}
.hekate-request-form input:disabled { opacity: .5; }
.hekate-request-people { display: grid; }
.hekate-request-person { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--qc-space-3); align-items: center; border-bottom: 1px solid var(--qc-line); }
.hekate-request-person:last-child { border-bottom: 0; }
.hekate-request-choice { align-items: center; display: flex; gap: var(--qc-space-3); min-height: 44px; padding: var(--qc-space-2) 0; margin: 0; cursor: pointer; }
.hekate-request-choice input { accent-color: var(--qc-action); flex: 0 0 auto; width: 20px; height: 20px; margin: 0; }
.hekate-request-choice span { min-width: 0; overflow-wrap: anywhere; }
.hekate-request-choice strong { color: var(--qc-ink); display: block; font-weight: 600; }
.hekate-request-choice small { color: var(--qc-muted); display: block; font-size: .8125rem; }
.hekate-request-order { display: flex; align-items: center; gap: var(--qc-space-2); color: var(--qc-muted); font-size: .8125rem; }
.hekate-request-order input { width: 4rem !important; }
.hekate-request-section h3 { color: var(--qc-ink); font-size: .9rem; font-weight: 600; margin: var(--qc-space-4) 0 var(--qc-space-2); }
.hekate-request-section-heading { display: flex; flex-wrap: wrap; align-items: center; gap: var(--qc-space-3); justify-content: space-between; margin: var(--qc-space-4) 0 var(--qc-space-2); }
.hekate-request-section-heading h3 { margin: 0; }
.hekate-request-notify { border: 0; padding: 0; min-width: 0; margin: var(--qc-space-6) 0 0; }
.hekate-request-notify legend { color: var(--qc-ink); font-weight: 600; font-size: .9rem; padding: 0; margin-bottom: var(--qc-space-2); }
.hekate-request-form .hekate-file-tree__copy { overflow-wrap: anywhere; min-width: 0; }
.hekate-request-form .hekate-file-tree__copy strong { white-space: normal; }
.hekate-request-form .hekate-file-tree__row { min-height: 44px; }
.hekate-request-dialog { max-width: 480px; }
.hekate-request-dialog .hekate-modal__card { padding: var(--qc-space-6); }
.hekate-request-error h2 { font-size: 1rem; margin: 0 0 var(--qc-space-2); }
.hekate-request-error p { margin: 0; }
@media (max-width: 639px), (pointer: coarse) {
    .hekate-request-form input:not([type='checkbox']):not([type='radio']),
    .hekate-request-form select, .hekate-request-dialog input:not([type='hidden']) { height: 44px; min-height: 44px; }
    .hekate-request-form .hekate-button, .hekate-request-dialog .hekate-button { min-height: 44px; }
}
@media (max-width: 639px) {
    .hekate-request-section { padding: var(--qc-space-4); }
    .hekate-request-columns { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .hekate-request-person { gap: var(--qc-space-2); }
    .hekate-request-order { align-items: flex-start; flex-direction: column; gap: var(--qc-space-1); }
}

.hekate-request-form input[type="checkbox"], .hekate-request-form input[type="radio"] { accent-color: var(--qc-action); width: 20px; height: 20px; margin: 0; }
.hekate-request-error { display: block; opacity: 1; }

#navbar-uncollapse.hekate-navigation-trigger {
    background: var(--qc-paper) !important;
    color: var(--qc-ink) !important;
    border: 2px solid var(--qc-control);
    border-radius: var(--qc-radius) !important;
}

.hekate-request-error { background: var(--qc-bad-bg); border: 1px solid var(--qc-bad); border-left-width: 4px; border-radius: var(--qc-radius); padding: var(--qc-space-4); margin-bottom: var(--qc-space-6); }
.hekate-request-error h2 { color: var(--qc-ink); }
.hekate-request-dialog .hekate-modal__card > header { margin-bottom: var(--qc-space-4); }
.hekate-request-section .hekate-request-field:has(+ [data-approval-options][hidden]) { margin-bottom: 0; }

.hekate-share-send { max-width: 720px; }
.hekate-share-send form > .hekate-form-card { margin-bottom: var(--qc-space-6); }
.hekate-copy-row { display: flex; align-items: stretch; gap: var(--qc-space-2); min-width: 0; }
.hekate-copy-row input { flex: 1 1 0; min-width: 0; margin: 0; }
.hekate-copy-row .hekate-button { flex: 0 0 auto; margin: 0; white-space: nowrap; }
.hekate-share-send [data-copy-status]:empty { display: none; }
@media (max-width: 479px) { .hekate-copy-row { flex-wrap: wrap; } .hekate-copy-row input { flex-basis: 100%; } }

.hekate-link-date { display: grid; gap: var(--qc-space-2); margin-top: var(--qc-space-3); }
.hekate-link-date[hidden] { display: none; }
.hekate-link-date label { font-weight: 600; }
.hekate-link-date input { margin: 0; }

/* Shared-link entry uses the same form width and actions as link settings. */
.hekate-share-picker { max-width: 45rem; }
.hekate-share-picker file-browser { display: block; height: 18rem; max-height: 55vh; min-width: 0; margin-top: var(--qc-space-4); }
.hekate-share-picker [hidden] { display: none !important; }

.hekate-upload { max-width: 60rem; display: grid; gap: var(--qc-space-6); }
.hekate-upload h2 { font-size: 1.125rem; margin: 0 0 var(--qc-space-3); }
.hekate-upload .hekate-upload-drop:not(#filetablecontainer) { font-size: 1rem; color: var(--qc-body); text-align: center; border: 1px dashed var(--qc-line); padding: var(--qc-space-6); }
.hekate-upload-drop p { margin: var(--qc-space-3) 0; }
.hekate-upload-drop.dragover { background: var(--qc-panel); outline: 2px solid var(--qc-action); }
.hekate-upload [hidden] { display: none !important; }
.hekate-upload-list { list-style: none; padding: 0; margin: 0; }
.hekate-upload-list > li { display: flex; gap: var(--qc-space-6); align-items: center; padding: var(--qc-space-4) 0; border-top: 1px solid var(--qc-line); }
.hekate-upload-info { min-width: 0; flex: 1; display: grid; gap: var(--qc-space-2); }
.hekate-upload-title, .upload-status-text { overflow-wrap: anywhere; }
.hekate-upload-info progress { width: 100%; height: 8px; accent-color: var(--qc-action); }
.hekate-upload-info progress::-webkit-progress-bar { background: var(--qc-panel); border-radius: 4px; }
.hekate-upload-info progress::-webkit-progress-value { background: var(--qc-action); border-radius: 4px; }
.hekate-upload-info .upload-status-text { font-size: .875rem; margin: 0; }
.hekate-upload-list [data-state="Error"] .upload-status-text { color: var(--qc-ink); font-weight: 600; }
.hekate-upload-actions { display: flex; flex-wrap: wrap; gap: var(--qc-space-3); max-width: 16rem; }
@media (max-width: 600px) { .hekate-upload-list > li { flex-direction: column; align-items: stretch; gap: var(--qc-space-3); } .hekate-upload-actions { max-width: none; } }

/* Tasks use the shared compact table, control, and toolbar conventions. */
.hekate-tasks { min-width: 0; }
.hekate-tasks .hekate-button { border-radius: 5px; min-height: 38px; padding: 7px 12px; font-size: 14px; font-weight: 500; }
.hekate-task-toolbar, .hekate-task-actions { display: flex; flex-wrap: wrap; align-items: end; gap: var(--qc-space-3); }
.hekate-task-toolbar { margin-bottom: var(--qc-space-5); }
.hekate-task-actions { align-items: center; margin-right: auto; }
.hekate-task-search, .hekate-task-filter { display: grid; gap: var(--qc-space-1); margin: 0; font-size: 14px; }
.hekate-task-search > div { display: flex; gap: var(--qc-space-2); }
.hekate-task-search input { width: 200px; min-width: 0; }
.hekate-task-toolbar input, .hekate-task-toolbar select { box-sizing: border-box; min-height: 38px; margin: 0; }
.hekate-task-import { position: relative; }
.hekate-task-import summary { cursor: pointer; list-style: none; }
.hekate-task-import summary::after { content: '▾'; margin-left: 8px; }
.hekate-task-import > div { position: absolute; z-index: 10; top: calc(100% + 4px); left: 0; width: 210px; background: var(--qc-paper); border: 1px solid var(--qc-line); border-radius: var(--qc-radius); box-shadow: 0 4px 16px #0003; padding: var(--qc-space-2); }
.hekate-task-import a { display: block; padding: var(--qc-space-2); }
.hekate-task-selection, .hekate-task-filter-note { font-size: 14px; color: var(--qc-muted); margin: var(--qc-space-3) 0; }
.hekate-task-table { max-width: 100%; overflow-x: auto; border: 1px solid var(--qc-line); border-radius: var(--qc-radius); }
.hekate-task-table table { min-width: 1080px; width: 100%; margin: 0; border: 0; border-radius: 0; }
.hekate-task-table :is(th, td) { padding: 10px 12px; vertical-align: middle; font-size: 14px; }
.hekate-task-table tbody th { background: transparent; color: var(--qc-ink); font-weight: 500; text-align: left; min-width: 190px; max-width: 270px; overflow-wrap: anywhere; }
.hekate-task-table td:nth-child(3) { max-width: 190px; min-width: 130px; overflow-wrap: anywhere; }
.hekate-task-table td:nth-child(6) { white-space: nowrap; }
.hekate-task-table input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--qc-action); }
.hekate-task-table select { font: inherit; margin: 0; min-height: 36px; padding: 5px 8px; width: auto; max-width: none; }
.hekate-task-table .hekate-task-sort { display: inline-flex; align-items: center; gap: 8px; padding: 0; margin: 0; min-height: 28px; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; font-weight: 600; white-space: nowrap; }
.hekate-task-table tbody tr:has(.taskSelector:checked) > * { background: color-mix(in srgb, var(--qc-action) 7%, var(--qc-paper)); }
.hekate-task-file-filter { display: block; font-size: 12px; margin-top: 4px; }
.hekate-task-muted, .hekate-task-pinned { color: var(--qc-muted); }
.hekate-task-pinned { display: block; font-size: 12px; }
.hekate-task-pagination { display: flex; align-items: center; justify-content: flex-end; gap: var(--qc-space-3); margin-top: var(--qc-space-4); }
.hekate-task-pagination p { color: var(--qc-muted); font-size: 14px; }
.hekate-task-pagination [hidden] { display: none; }
@media (max-width: 700px) {
    .hekate-task-actions, .hekate-task-search, .hekate-task-filter { width: 100%; }
    .hekate-task-search input { flex: 1; width: 0; }
    .hekate-task-pagination { align-items: flex-start; flex-direction: column; }
}
/* Override the legacy page/button selectors only within this screen. */
#page .hekate-tasks .hekate-button { border-radius: 5px; }
#page .hekate-tasks .hekate-task-sort { border: 0; border-radius: 0; background: transparent; color: inherit; padding: 0; }
#page .hekate-task-toolbar input[type=search] { border-radius: 5px; }
.hekate-task-toolbar { padding: var(--qc-space-3); border: 1px solid var(--qc-line); border-radius: var(--qc-radius); background: var(--qc-paper); }
.hekate-task-table select { padding-right: 30px; }
.hekate-task-table .task_status_dropdown { min-width: 150px; }
.hekate-task-table .task_priority_dropdown { min-width: 90px; }
.hekate-task-table .tag-view .tag { display: inline-block; background: var(--qc-tint); color: var(--qc-link); border: 1px solid var(--qc-line); border-radius: 4px; font-weight: 400; font-size: 12px; padding: 2px 6px; margin-top: 4px; }
#page .hekate-task-search input[type=search] { max-width: none; }
.hekate-task-export { box-sizing: border-box; }
.hekate-task-export form { display: grid; gap: 8px; }
.hekate-task-export fieldset { border: 1px solid var(--qc-line); border-radius: var(--qc-radius); margin: 8px 0; padding: 12px; }
.hekate-task-export fieldset label { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.hekate-task-export select { width: 100%; }
.hekate-task-export input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--qc-action); }
#page .hekate-tasks select, .hekate-task-export select { color: var(--qc-ink); background-color: var(--qc-paper); border-color: var(--qc-control); color-scheme: light dark; }
html[data-theme=light] .hekate-tasks select { color-scheme: light; }
html[data-theme=dark] .hekate-tasks select { color-scheme: dark; }
#page .hekate-tasks select, .hekate-task-export select { appearance: auto; background-image: none; }
#page .hekate-tasks button.hekate-button { padding: 7px 12px; }
.hekate-task-table table { min-width: 1000px; }
.hekate-task-table :is(th, td) { padding-left: 10px; padding-right: 10px; }
.hekate-task-table select { box-sizing: border-box; padding-right: 8px; }
.hekate-task-table .task_status_dropdown { width: 150px; }
.hekate-task-table .task_priority_dropdown { width: 90px; }

.hekate-task-form .hekate-form-grid { margin: var(--qc-space-3) 0 0; }
.hekate-task-form .hekate-form-grid > div { display: grid; align-content: start; gap: var(--qc-space-2); }
.hekate-task-form .hekate-form-grid label { font-weight: 600; }
.hekate-task-form .hekate-form-grid :is(input, select) { margin: 0; }
.hekate-task-form details > summary { cursor: pointer; padding: var(--qc-space-2) 0; font-weight: 600; }
.hekate-task-form details > label { display: block; margin: var(--qc-space-3) 0 var(--qc-space-2); }
#page .hekate-task-form .hekate-button { border-radius: 5px; padding: 7px 12px; }
.hekate-task-form select { appearance: auto; background-image: none; }
