/*
 * HRX interface styles
 * I-TYPE keeps the original Calm Command Center in design-system.css.
 * U-TYPE follows a healthcare, accessible, data-dense dashboard direction.
 * T-TYPE follows a precise editorial-workbench direction for existing products.
 * F-TYPE follows Anthropic's subject-specific Frontend Design direction.
 * W-TYPE follows Vercel's Web Interface Guidelines as a quality baseline.
 */

/* Shared style picker ----------------------------------------------------- */

.hrx-style-trigger {
    display: inline-flex;
    min-height: var(--hrx-control-height);
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid rgba(222, 241, 235, 0.35);
    border-radius: 0.7rem;
    color: #f8fffc;
    background: rgba(255, 255, 255, 0.09);
    font-size: 0.82rem;
    font-weight: 650;
    white-space: nowrap;
    box-shadow: none;
}

.hrx-style-trigger:hover,
.hrx-style-trigger[aria-expanded="true"] {
    border-color: rgba(222, 241, 235, 0.62);
    background: rgba(255, 255, 255, 0.16);
}

.hrx-style-trigger-code {
    padding: 0.15rem 0.34rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0.32rem;
    color: #bce4d8;
    background: rgba(4, 35, 32, 0.34);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.045em;
}

body.hrx-style-modal-open {
    overflow: hidden;
}

.hrx-style-modal {
    display: grid;
    place-items: center;
    padding: clamp(0.65rem, 3vw, 2rem);
}

body.hrx-body > #style-picker-modal > .hrx-style-modal-backdrop {
    position: absolute;
    inset: 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: rgba(8, 22, 25, 0.68) !important;
    box-shadow: none !important;
    backdrop-filter: blur(7px);
}

.hrx-style-dialog {
    position: relative;
    display: flex;
    width: min(100%, 51rem);
    max-height: min(90vh, 50rem);
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--hrx-border);
    border-radius: var(--hrx-radius-lg);
    color: var(--hrx-ink);
    background: var(--hrx-surface-raised);
    box-shadow: var(--hrx-shadow-lg);
    opacity: 0;
    transform: translateY(0.8rem) scale(0.985);
    transition: opacity 180ms ease, transform 180ms ease;
}

.hrx-style-modal.is-open .hrx-style-dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.hrx-style-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
    padding: clamp(1.15rem, 2.5vw, 1.65rem);
    border-bottom: 1px solid var(--hrx-border);
}

.hrx-style-dialog-kicker {
    margin: 0 0 0.25rem;
    color: var(--hrx-brand);
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hrx-style-dialog h2 {
    margin: 0;
    color: var(--hrx-ink) !important;
    font-size: clamp(1.25rem, 2.5vw, 1.65rem);
    letter-spacing: -0.035em;
    line-height: 1.25;
}

.hrx-style-dialog h2 + p {
    max-width: 42rem;
    margin: 0.35rem 0 0;
    color: var(--hrx-muted);
    font-size: 0.82rem;
}

.hrx-style-dialog-close {
    display: grid;
    width: 2.5rem;
    height: 2.5rem;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--hrx-border);
    border-radius: 0.65rem;
    color: var(--hrx-muted);
    background: var(--hrx-surface-muted);
}

.hrx-style-dialog-close:hover {
    color: var(--hrx-ink);
    background: var(--hrx-brand-faint);
}

.hrx-style-options {
    display: grid;
    gap: 0.65rem;
    padding: clamp(0.85rem, 2vw, 1.25rem);
    overflow-y: auto;
}

.hrx-style-option {
    display: grid;
    grid-template-columns: 8.75rem minmax(0, 1fr) 2rem;
    gap: 1rem;
    align-items: center;
    width: 100%;
    padding: 0.72rem;
    border: 1px solid var(--hrx-border);
    border-radius: var(--hrx-radius-md);
    color: var(--hrx-ink);
    background: var(--hrx-surface);
    text-align: left;
    box-shadow: none;
}

.hrx-style-option:hover {
    border-color: var(--hrx-border-strong);
    background: var(--hrx-surface-muted);
    transform: translateY(-1px);
}

.hrx-style-option[aria-checked="true"] {
    border-color: var(--hrx-brand);
    background: var(--hrx-brand-faint);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--hrx-brand) 18%, transparent);
}

.hrx-style-preview {
    position: relative;
    display: grid;
    width: 8.75rem;
    height: 5.25rem;
    grid-template-columns: 1.8rem 1fr;
    grid-template-rows: 1.15rem 0.9rem 1fr;
    overflow: hidden;
    border: 1px solid rgba(51, 65, 85, 0.16);
    border-radius: 0.55rem;
    background: #f4f6f8;
    box-shadow: 0 4px 13px rgba(15, 23, 42, 0.11);
}

.hrx-style-preview > span {
    display: block;
}

.hrx-style-preview .preview-header {
    grid-column: 1 / -1;
}

.hrx-style-preview .preview-nav {
    grid-column: 1 / -1;
    margin: 0.22rem 0.32rem;
}

.hrx-style-preview .preview-main {
    grid-column: 2;
    grid-row: 3;
    margin: 0.2rem 0.35rem 0.35rem 0.2rem;
}

.hrx-style-preview .preview-side {
    grid-column: 1;
    grid-row: 3;
    margin: 0.2rem 0 0.35rem 0.35rem;
}

.hrx-style-preview-i {
    background: #f3f6f2;
}

.hrx-style-preview-i .preview-header { background: #123c38; }
.hrx-style-preview-i .preview-nav { border-radius: 0.2rem; background: #dcefe9; }
.hrx-style-preview-i .preview-main,
.hrx-style-preview-i .preview-side { border: 1px solid #d5dfda; border-radius: 0.22rem; background: #fffefa; }

.hrx-style-preview-u {
    grid-template-columns: 2.1rem 1fr;
    grid-template-rows: 1.1rem 0.85rem 1fr;
    background: #edf3f8;
}

.hrx-style-preview-u .preview-header { background: #0b1f3a; }
.hrx-style-preview-u .preview-nav { grid-column: 1 / -1; grid-row: 2; margin: 0.14rem 0.3rem; border-radius: 0.2rem; background: #ffffff; box-shadow: inset 0 -2px #2563eb; }
.hrx-style-preview-u .preview-main { grid-column: 1 / -1; grid-row: 3; margin: 0.2rem 0.3rem 0.3rem; border-radius: 0.28rem; background: #ffffff; box-shadow: inset 0 0 0 1px #cbd9e6; }
.hrx-style-preview-u .preview-side { display: none; }

.hrx-style-preview-t {
    grid-template-columns: 1fr 2.5rem;
    grid-template-rows: 1rem 0.85rem 1fr;
    border-radius: 0.18rem;
    background: #f4f6f8;
}

.hrx-style-preview-t .preview-header { background: #191816; }
.hrx-style-preview-t .preview-nav { margin: 0; border-bottom: 1px solid #94a3b1; background: #e9eef2; }
.hrx-style-preview-t .preview-main { grid-column: 1; border: 1px solid #ccd6de; border-radius: 0; background: #fdfefe; }
.hrx-style-preview-t .preview-side { grid-column: 2; margin-left: 0; border-radius: 0; background: #2f5d8c; }

.hrx-style-preview-f {
    grid-template-columns: 1fr 2.2rem;
    grid-template-rows: 1.1rem 0.82rem 1fr;
    border-radius: 0 0.55rem 0.55rem 0.55rem;
    background: #e7f0ec;
}

.hrx-style-preview-f .preview-header { border-bottom: 1px solid #aabdb5; background: #fbfdfc; }
.hrx-style-preview-f .preview-nav { margin: 0.12rem 2.4rem 0.12rem 0.3rem; background: #6d315c; clip-path: polygon(0 0, calc(100% - 0.35rem) 0, 100% 0.35rem, 100% 100%, 0 100%); }
.hrx-style-preview-f .preview-main { grid-column: 1; border: 1px solid #aabdb5; border-radius: 0.2rem; background: #fbfdfc; }
.hrx-style-preview-f .preview-side { grid-column: 2; border-radius: 0.2rem; background: #d8e5df; }

.hrx-style-preview-w {
    grid-template-columns: 1fr 2.4rem;
    grid-template-rows: 1.05rem 0.9rem 1fr;
    border-radius: 0.45rem;
    background: #fafafa;
    box-shadow: 0 1px 2px rgba(24, 24, 27, 0.08), 0 7px 18px rgba(24, 24, 27, 0.06);
}

.hrx-style-preview-w .preview-header { border-bottom: 1px solid #e4e4e7; background: #ffffff; }
.hrx-style-preview-w .preview-nav { margin: 0.14rem 0.28rem; border-radius: 0.18rem; background: #18181b; }
.hrx-style-preview-w .preview-main { grid-column: 1; border: 1px solid #e4e4e7; border-radius: 0.22rem; background: #ffffff; }
.hrx-style-preview-w .preview-side { grid-column: 2; border-radius: 0.22rem; background: #e8f5f2; }

.hrx-style-option-copy {
    display: grid;
    min-width: 0;
    gap: 0.2rem;
}

.hrx-style-option-heading {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.hrx-style-option-heading strong {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

.hrx-style-option-heading > span {
    padding: 0.12rem 0.36rem;
    border-radius: 999px;
    color: var(--hrx-muted);
    background: var(--hrx-surface-muted);
    font-size: 0.64rem;
    font-weight: 650;
}

.hrx-style-option-title {
    color: var(--hrx-ink);
    font-size: 0.95rem;
    font-weight: 700;
}

.hrx-style-option-description {
    color: var(--hrx-muted);
    font-size: 0.76rem;
    line-height: 1.55;
}

.hrx-style-option-check {
    display: grid;
    width: 1.65rem;
    height: 1.65rem;
    place-items: center;
    border: 1px solid var(--hrx-border-strong);
    border-radius: 50%;
    color: transparent;
    background: var(--hrx-surface-raised);
}

.hrx-style-option[aria-checked="true"] .hrx-style-option-check {
    border-color: var(--hrx-brand);
    color: #ffffff;
    background: var(--hrx-brand);
}

.hrx-style-dialog-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem clamp(1.15rem, 2.5vw, 1.65rem);
    border-top: 1px solid var(--hrx-border);
    background: var(--hrx-surface-muted);
}

.hrx-style-dialog-footer > p {
    margin: 0;
    color: var(--hrx-muted);
    font-size: 0.7rem;
}

.hrx-style-dialog-footer kbd {
    padding: 0.08rem 0.3rem;
    border: 1px solid var(--hrx-border-strong);
    border-radius: 0.28rem;
    color: var(--hrx-ink-soft);
    background: var(--hrx-surface-raised);
    font-family: "IBM Plex Mono", monospace;
    box-shadow: 0 1px 0 var(--hrx-border-strong);
}

.hrx-style-dialog-footer > div {
    display: flex;
    gap: 0.5rem;
}

/* U-TYPE: accessible healthcare operations dashboard -------------------- */

html[data-hrx-style="u-type"] {
    --hrx-canvas: #f8fafc;
    --hrx-canvas-deep: #e8eef7;
    --hrx-surface: #ffffff;
    --hrx-surface-raised: #ffffff;
    --hrx-surface-muted: #f2f6fa;
    --hrx-ink: #0f172a;
    --hrx-ink-soft: #334155;
    --hrx-muted: #64748b;
    --hrx-border: #e1e9f6;
    --hrx-border-strong: #bfcee4;
    --hrx-brand: #2563eb;
    --hrx-brand-strong: #1d4ed8;
    --hrx-brand-soft: #dbeafe;
    --hrx-brand-faint: #eff6ff;
    --hrx-info: #2563eb;
    --hrx-info-soft: #e3efff;
    --hrx-warning: #a86212;
    --hrx-warning-soft: #fdf0d8;
    --hrx-danger: #b83b48;
    --hrx-danger-soft: #fae7e9;
    --hrx-success: #047857;
    --hrx-success-soft: #dff4eb;
    --hrx-focus: #2563eb;
    --hrx-focus-on-dark: #60a5fa;
    --hrx-shadow-sm: 0 1px 2px rgba(11, 31, 58, 0.05), 0 5px 16px rgba(11, 31, 58, 0.045);
    --hrx-shadow-md: 0 16px 36px rgba(11, 31, 58, 0.12);
    --hrx-shadow-lg: 0 30px 75px rgba(11, 31, 58, 0.25);
    --hrx-radius-sm: 7px;
    --hrx-radius-md: 12px;
    --hrx-radius-lg: 18px;
    --hrx-control-height: 2.55rem;
}

html[data-hrx-style="u-type"] body.hrx-body {
    font-family: "Manrope", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    background: var(--hrx-canvas);
}

html[data-hrx-style="u-type"] .hrx-app-shell {
    width: min(100%, 1920px);
    padding: 0.75rem !important;
}

html[data-hrx-style="u-type"] .hrx-app-shell > :not([hidden]) ~ :not([hidden]) {
    margin-top: 0.65rem !important;
}

html[data-hrx-style="u-type"] .hrx-topbar {
    min-height: 4rem;
    padding: 0.55rem 1rem;
    border: 0;
    border-radius: var(--hrx-radius-md);
    background: #0f172a;
    box-shadow: 0 8px 24px rgba(11, 31, 58, 0.18);
}

html[data-hrx-style="u-type"] .hrx-topbar::after {
    inset: -4rem auto auto 44%;
    width: 15rem;
    height: 15rem;
    border-width: 2.6rem;
    border-color: rgba(54, 183, 166, 0.08);
}

html[data-hrx-style="u-type"] .hrx-brand-mark {
    width: 2.8rem;
    height: 2.8rem;
    border-color: rgba(147, 197, 253, 0.38);
    border-radius: 0.65rem;
    color: #eff6ff;
    background: #2563eb;
}

html[data-hrx-style="u-type"] .hrx-topbar .hrx-eyebrow {
    color: #93c5fd;
    font-size: 0.66rem;
}

html[data-hrx-style="u-type"] .hrx-topbar h1 {
    font-size: clamp(1.25rem, 1.7vw, 1.5rem) !important;
    letter-spacing: -0.025em;
}

html[data-hrx-style="u-type"] .hrx-topbar h1 + p {
    display: none;
}

html[data-hrx-style="u-type"] :is(.hrx-style-trigger, #month-picker, #auth-user-badge) {
    border-color: rgba(193, 217, 235, 0.28) !important;
    background: rgba(255, 255, 255, 0.07) !important;
}

html[data-hrx-style="u-type"] .hrx-style-trigger-code {
    color: #bfdbfe;
    background: rgba(37, 99, 235, 0.24);
}

html[data-hrx-style="u-type"] .hrx-navigation-shell {
    position: sticky;
    top: 0.4rem;
    z-index: 44;
    height: auto;
    min-height: 0;
    padding: 0.45rem 0.55rem;
    overflow: visible;
    border: 1px solid var(--hrx-border) !important;
    border-radius: var(--hrx-radius-md);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--hrx-shadow-sm);
    backdrop-filter: blur(16px);
}

html[data-hrx-style="u-type"] .hrx-navigation-row {
    display: flex;
    height: auto;
    flex-direction: row;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0.65rem !important;
}

html[data-hrx-style="u-type"] .hrx-navigation-row > .flex.flex-col {
    min-width: 0;
    flex: 1 1 auto;
    flex-direction: row !important;
    align-items: center;
}

html[data-hrx-style="u-type"] :is(.hrx-primary-nav, .hrx-secondary-nav) {
    width: auto;
    min-width: 0;
    flex-direction: row;
    gap: 0.18rem;
    overflow-x: auto;
    overflow-y: hidden;
}

html[data-hrx-style="u-type"] .hrx-secondary-nav {
    flex: 0 0 auto;
    margin-top: 0 !important;
    margin-left: 0.3rem;
    padding-top: 0;
    padding-left: 0.3rem;
    border-top: 0;
    border-left: 1px solid var(--hrx-border);
}

html[data-hrx-style="u-type"] :is(.hrx-primary-nav, .hrx-secondary-nav) > button {
    width: auto;
    flex: 0 0 auto;
    min-height: 2.55rem;
    padding: 0.58rem 0.7rem !important;
    border-radius: 0.5rem !important;
    text-align: center;
}

html[data-hrx-style="u-type"] :is(.hrx-primary-nav, .hrx-secondary-nav) > button:hover {
    border-color: transparent !important;
    background: #edf4f8;
}

html[data-hrx-style="u-type"] :is(.hrx-primary-nav, .hrx-secondary-nav) > button.border-indigo-500,
html[data-hrx-style="u-type"] :is(.hrx-primary-nav, .hrx-secondary-nav) > button[aria-current="page"] {
    position: relative;
    border-color: #b8cdf8 !important;
    color: #1d4ed8 !important;
    background: #e7efff;
}

html[data-hrx-style="u-type"] :is(.hrx-primary-nav, .hrx-secondary-nav) > button[aria-current="page"]::before {
    content: "";
    position: absolute;
    top: auto;
    right: 0.58rem;
    bottom: -0.46rem;
    left: 0.58rem;
    width: auto;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--hrx-brand);
}

html[data-hrx-style="u-type"] .hrx-global-tools {
    display: flex !important;
    width: auto;
    min-width: 0;
    flex: 0 1 auto;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 0.3rem !important;
    margin-top: 0;
    padding-top: 0;
    overflow-x: auto;
    overflow-y: hidden;
    border-top: 0;
}

html[data-hrx-style="u-type"] .hrx-filter-bar {
    display: flex;
    width: auto;
    flex: 0 0 auto;
    padding: 0.32rem !important;
    background: #f2f6fa !important;
}

html[data-hrx-style="u-type"] .hrx-filter-bar > button {
    justify-content: center;
}

html[data-hrx-style="u-type"] :is(#unified-filter-chips, #unified-filter-clear-btn) {
    grid-column: auto;
}

html[data-hrx-style="u-type"] :is(#calendar-toolbar, #announcement-toolbar, .hrx-global-tools > .flex) {
    width: auto;
    flex: 0 0 auto;
    padding-block: 0.12rem !important;
}

html[data-hrx-style="u-type"] :is(#calendar-open-modal-btn, #announcement-header-btn, #full-refresh-btn) {
    width: auto;
    justify-content: center;
}

html[data-hrx-style="u-type"] .hrx-workspace {
    min-width: 0;
    min-height: calc(100vh - 10rem);
}

html[data-hrx-style="u-type"] .hrx-action-bar {
    padding: 0.55rem;
    border-color: #c9d8e5;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--hrx-shadow-sm);
}

html[data-hrx-style="u-type"] .hrx-data-surface {
    border-color: #bdcddd !important;
    border-radius: 0.75rem !important;
    box-shadow: var(--hrx-shadow-sm) !important;
}

html[data-hrx-style="u-type"] #schedule-table thead th {
    border-color: #cbd9e5 !important;
    color: #203c57 !important;
    background: #e4edf5 !important;
}

html[data-hrx-style="u-type"] #schedule-table thead tr:nth-child(2) th {
    background: #eef4f8 !important;
}

html[data-hrx-style="u-type"] #schedule-table tbody tr:hover td,
html[data-hrx-style="u-type"] #schedule-table tbody tr:hover td.sticky-col {
    background: #edf4ff !important;
}

html[data-hrx-style="u-type"] .hrx-panel,
html[data-hrx-style="u-type"] .hrx-metric,
html[data-hrx-style="u-type"] .hrx-tool-page {
    border-color: #d1dde7 !important;
    background: #ffffff !important;
    box-shadow: var(--hrx-shadow-sm) !important;
}

html[data-hrx-style="u-type"] .hrx-metric {
    border-top: 3px solid var(--hrx-brand) !important;
}

html[data-hrx-style="u-type"] .hrx-admin-panel {
    border-color: #1d3d5c !important;
    background: rgba(11, 31, 58, 0.98) !important;
}

html[data-hrx-style="u-type"] .hrx-admin-trigger {
    border-color: #8eb0f8;
    background: #2563eb !important;
}

html[data-hrx-style="u-type"] .hrx-auth-overlay {
    background: #081a31 !important;
}

html[data-hrx-style="u-type"] .hrx-auth-shell {
    border-color: rgba(144, 185, 217, 0.24);
    background: #0b1f3a;
}

/* T-TYPE: precise editorial operations workbench ------------------------ */

html[data-hrx-style="t-type"] {
    --hrx-canvas: #f4f6f8;
    --hrx-canvas-deep: #e9eef2;
    --hrx-surface: #fdfefe;
    --hrx-surface-raised: #ffffff;
    --hrx-surface-muted: #e9eef2;
    --hrx-ink: #14212b;
    --hrx-ink-soft: #41515e;
    --hrx-muted: #667581;
    --hrx-border: #ccd6de;
    --hrx-border-strong: #aebdc8;
    --hrx-brand: #2f5d8c;
    --hrx-brand-strong: #21466b;
    --hrx-brand-soft: #e3edf6;
    --hrx-brand-faint: #f0f5f9;
    --hrx-info: #2f5d8c;
    --hrx-info-soft: #e3edf6;
    --hrx-warning: #a65f0a;
    --hrx-warning-soft: #f9ecd7;
    --hrx-danger: #ae3d46;
    --hrx-danger-soft: #f7e6e8;
    --hrx-success: #2e7357;
    --hrx-success-soft: #e2f0e8;
    --hrx-focus: #a85600;
    --hrx-focus-on-dark: #eeb96a;
    --hrx-shadow-sm: 0 1px 2px rgba(32, 46, 57, 0.035);
    --hrx-shadow-md: 0 12px 30px rgba(32, 46, 57, 0.11);
    --hrx-shadow-lg: 0 26px 68px rgba(20, 33, 43, 0.24);
    --hrx-radius-sm: 5px;
    --hrx-radius-md: 8px;
    --hrx-radius-lg: 12px;
    --hrx-control-height: 2.5rem;
    --hrx-transition: 190ms cubic-bezier(0.2, 0, 0, 1);
}

html[data-hrx-style="t-type"] body.hrx-body {
    color: var(--hrx-ink);
    background: #f4f6f8;
    font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    font-variant-numeric: tabular-nums;
}

html[data-hrx-style="t-type"] .hrx-app-shell {
    width: min(100%, 1920px);
    padding: clamp(0.6rem, 1.2vw, 1rem) !important;
}

html[data-hrx-style="t-type"] .hrx-topbar {
    min-height: 4.8rem;
    padding: 0.6rem 0.9rem;
    overflow: visible;
    border: 1px solid #191816;
    border-radius: 0.3rem;
    color: #f8fafc;
    background: #191816;
    box-shadow: none;
}

html[data-hrx-style="t-type"] .hrx-topbar::after {
    display: none;
}

html[data-hrx-style="t-type"] .hrx-brand-group {
    gap: 0.7rem;
}

html[data-hrx-style="t-type"] .hrx-brand-mark {
    width: 2.85rem;
    height: 2.85rem;
    border: 0;
    border-radius: 0.16rem;
    color: #ffffff;
    background: #2f5d8c;
    letter-spacing: 0.04em;
}

html[data-hrx-style="t-type"] .hrx-topbar .hrx-eyebrow {
    margin-bottom: 0;
    color: #aebdca;
    font-size: 0.62rem;
    letter-spacing: 0.16em;
}

html[data-hrx-style="t-type"] .hrx-topbar h1 {
    font-family: "Noto Serif TC", "Noto Sans TC", serif;
    font-size: clamp(1.2rem, 1.8vw, 1.55rem) !important;
    letter-spacing: -0.025em;
}

html[data-hrx-style="t-type"] .hrx-topbar h1 + p {
    margin-top: 0.08rem !important;
    color: #aebdca !important;
    font-size: 0.72rem;
}

html[data-hrx-style="t-type"] .hrx-topbar-actions {
    flex-wrap: nowrap;
}

html[data-hrx-style="t-type"] :is(.hrx-style-trigger, #month-picker, #auth-user-badge) {
    border-color: #46515a !important;
    border-radius: 0.2rem !important;
    background: #252626 !important;
}

html[data-hrx-style="t-type"] .hrx-style-trigger:hover,
html[data-hrx-style="t-type"] .hrx-style-trigger[aria-expanded="true"] {
    border-color: #7598bb !important;
    background: #2d3439 !important;
}

html[data-hrx-style="t-type"] .hrx-style-trigger-code {
    border-radius: 0.1rem;
    color: #d9e9f7;
    background: #2f5d8c;
}

html[data-hrx-style="t-type"] .hrx-navigation-shell {
    top: 0;
    padding: 0;
    border: 0 !important;
    border-top: 1px solid var(--hrx-border-strong) !important;
    border-bottom: 1px solid var(--hrx-border-strong) !important;
    border-radius: 0;
    background: rgba(244, 246, 248, 0.97);
    box-shadow: none;
    backdrop-filter: blur(12px);
}

html[data-hrx-style="t-type"] .hrx-navigation-row {
    min-height: 3rem;
}

html[data-hrx-style="t-type"] :is(.hrx-primary-nav, .hrx-secondary-nav) {
    gap: 0;
    overflow-y: hidden;
}

html[data-hrx-style="t-type"] :is(.hrx-primary-nav, .hrx-secondary-nav) > button {
    min-height: 3rem;
    padding: 0.65rem 0.8rem !important;
    border: 0 !important;
    border-right: 1px solid transparent !important;
    border-radius: 0 !important;
    color: #566875 !important;
    background: transparent;
    font-size: 0.76rem;
    letter-spacing: 0.01em;
}

html[data-hrx-style="t-type"] :is(.hrx-primary-nav, .hrx-secondary-nav) > button:hover {
    border-right-color: var(--hrx-border) !important;
    color: #14212b !important;
    background: #e9eef2;
}

html[data-hrx-style="t-type"] :is(.hrx-primary-nav, .hrx-secondary-nav) > button.border-indigo-500,
html[data-hrx-style="t-type"] :is(.hrx-primary-nav, .hrx-secondary-nav) > button[aria-current="page"] {
    position: relative;
    border-right-color: var(--hrx-border) !important;
    color: #173b60 !important;
    background: #fdfefe;
}

html[data-hrx-style="t-type"] :is(.hrx-primary-nav, .hrx-secondary-nav) > button[aria-current="page"]::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    background: #2f5d8c;
}

html[data-hrx-style="t-type"] .hrx-global-tools {
    gap: 0.3rem !important;
    padding-right: 0.3rem;
}

html[data-hrx-style="t-type"] .hrx-filter-bar {
    min-height: 2.35rem;
    padding: 0.2rem !important;
    border-color: var(--hrx-border) !important;
    border-radius: 0.2rem !important;
    background: transparent !important;
}

html[data-hrx-style="t-type"] .hrx-filter-bar button {
    border-radius: 0.18rem !important;
}

html[data-hrx-style="t-type"] :is(#calendar-open-modal-btn, #announcement-header-btn, #full-refresh-btn) {
    min-height: 2.35rem;
    border-radius: 0.2rem !important;
}

html[data-hrx-style="t-type"] .hrx-workspace {
    padding: 0 0 0 0.75rem;
    border-left: 3px solid #2f5d8c;
}

html[data-hrx-style="t-type"] .hrx-action-bar {
    gap: 0.25rem !important;
    padding: 0.35rem 0 !important;
    border: 0;
    border-top: 1px solid var(--hrx-border);
    border-bottom: 1px solid var(--hrx-border);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

html[data-hrx-style="t-type"] .hrx-action-bar > button,
html[data-hrx-style="t-type"] .hrx-action-bar > .relative > button,
html[data-hrx-style="t-type"] .hrx-action-bar > .ai-schedule-dropdown > button {
    border-radius: 0.18rem !important;
}

html[data-hrx-style="t-type"] .hrx-disclosure {
    border-left: 4px solid #2f5d8c !important;
    border-radius: 0 !important;
    background: #edf3f8 !important;
}

html[data-hrx-style="t-type"] .hrx-data-surface {
    border-color: #aebdc8 !important;
    border-radius: 0.15rem !important;
    box-shadow: none !important;
}

html[data-hrx-style="t-type"] #schedule-table {
    font-size: 0.76rem;
    font-variant-numeric: tabular-nums;
}

html[data-hrx-style="t-type"] #schedule-table thead th {
    border-color: #aebdc8 !important;
    color: #f8fafc !important;
    background: #2f3f4c !important;
    letter-spacing: 0.035em;
}

html[data-hrx-style="t-type"] #schedule-table thead tr:nth-child(2) th {
    color: #253744 !important;
    background: #dce4ea !important;
}

html[data-hrx-style="t-type"] #schedule-table tbody td {
    border-color: #d7dfe5 !important;
    background: #ffffff;
}

html[data-hrx-style="t-type"] #schedule-table tbody tr:nth-child(even) td {
    background: #f8fafb;
}

html[data-hrx-style="t-type"] #schedule-table tbody tr:hover td,
html[data-hrx-style="t-type"] #schedule-table tbody tr:hover td.sticky-col {
    background: #e7eff6 !important;
}

html[data-hrx-style="t-type"] #schedule-table tbody td.sticky-col {
    background: #eef2f5;
}

html[data-hrx-style="t-type"] #schedule-table tfoot td {
    border-color: #aebdc8 !important;
    background: #dce4ea !important;
}

html[data-hrx-style="t-type"] .hrx-panel,
html[data-hrx-style="t-type"] .hrx-tool-page,
html[data-hrx-style="t-type"] .gap-card {
    border: 1px solid var(--hrx-border) !important;
    border-top: 3px solid #2f5d8c !important;
    border-radius: 0.2rem !important;
    background: #fdfefe !important;
    box-shadow: none !important;
}

html[data-hrx-style="t-type"] .hrx-panel h2,
html[data-hrx-style="t-type"] .hrx-workspace h1,
html[data-hrx-style="t-type"] .hrx-workspace h2 {
    font-family: "Noto Serif TC", "Noto Sans TC", serif;
}

html[data-hrx-style="t-type"] .hrx-metric {
    min-height: 7.5rem;
    padding: 1rem !important;
    border: 0;
    border-left: 1px solid var(--hrx-border);
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html[data-hrx-style="t-type"] .hrx-metric:first-child {
    border-left: 3px solid #2f5d8c;
}

html[data-hrx-style="t-type"] .hrx-metric::after {
    display: none;
}

html[data-hrx-style="t-type"] .hrx-admin-panel {
    border-color: #3f474d !important;
    border-radius: 0 0.25rem 0.25rem 0 !important;
    background: rgba(25, 24, 22, 0.98) !important;
}

html[data-hrx-style="t-type"] .hrx-admin-menu button,
html[data-hrx-style="t-type"] .hrx-admin-trigger {
    border-radius: 0 !important;
}

html[data-hrx-style="t-type"] .hrx-admin-trigger {
    border-color: #7899b9;
    background: #2f5d8c !important;
}

html[data-hrx-style="t-type"] .hrx-body > [id$="-modal"].fixed.inset-0 > div,
html[data-hrx-style="t-type"] .hrx-body > [id$="-overlay"].fixed.inset-0:not(#auth-overlay) > div {
    border-radius: 0.3rem !important;
}

html[data-hrx-style="t-type"] .hrx-style-dialog {
    border-radius: 0.3rem;
}

html[data-hrx-style="t-type"] .hrx-style-option,
html[data-hrx-style="t-type"] .hrx-style-dialog-close,
html[data-hrx-style="t-type"] .hrx-btn {
    border-radius: 0.18rem;
}

html[data-hrx-style="t-type"] .hrx-auth-overlay {
    background: #191816 !important;
}

html[data-hrx-style="t-type"] .hrx-auth-shell {
    border-radius: 0.3rem;
    background: #252626;
}

html[data-hrx-style="t-type"] .hrx-auth-story h1,
html[data-hrx-style="t-type"] .hrx-auth-heading h2 {
    font-family: "Noto Serif TC", "Noto Sans TC", serif;
}

/* F-TYPE: nursing-station handover signal board ------------------------ */

html[data-hrx-style="f-type"] {
    --hrx-canvas: #e7f0ec;
    --hrx-canvas-deep: #d8e5df;
    --hrx-surface: #fbfdfc;
    --hrx-surface-raised: #ffffff;
    --hrx-surface-muted: #dde8e3;
    --hrx-ink: #172129;
    --hrx-ink-soft: #354741;
    --hrx-muted: #53655f;
    --hrx-border: #cfddd7;
    --hrx-border-strong: #aabdb5;
    --hrx-brand: #6d315c;
    --hrx-brand-strong: #542346;
    --hrx-brand-soft: #f1e3ec;
    --hrx-brand-faint: #f8f0f5;
    --hrx-info: #315c9b;
    --hrx-info-soft: #e5edf8;
    --hrx-warning: #8a5a0a;
    --hrx-warning-soft: #f8edd6;
    --hrx-danger: #b33a4a;
    --hrx-danger-soft: #f8e3e7;
    --hrx-success: #26735e;
    --hrx-success-soft: #e0efe9;
    --hrx-focus: #6d315c;
    --hrx-focus-on-dark: #f3cb53;
    --hrx-shadow-sm: 0 1px 2px rgba(23, 33, 41, 0.06), 0 5px 14px rgba(23, 33, 41, 0.045);
    --hrx-shadow-md: 0 14px 32px rgba(23, 33, 41, 0.12);
    --hrx-shadow-lg: 0 28px 66px rgba(23, 33, 41, 0.23);
    --hrx-radius-sm: 4px;
    --hrx-radius-md: 8px;
    --hrx-radius-lg: 14px;
    --hrx-control-height: 2.5rem;
}

html[data-hrx-style="f-type"] body.hrx-body {
    background-color: var(--hrx-canvas);
    background-image: none;
    font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

html[data-hrx-style="f-type"] .hrx-app-shell {
    padding: clamp(0.65rem, 1.25vw, 1.25rem) !important;
}

html[data-hrx-style="f-type"] .hrx-topbar {
    min-height: 4.75rem;
    padding: 0.7rem clamp(1rem, 2vw, 1.5rem);
    border: 1px solid #aabdb5;
    border-radius: var(--hrx-radius-lg);
    color: var(--hrx-ink);
    background: #fbfdfc;
    box-shadow: var(--hrx-shadow-sm);
    animation: f-type-arrive 160ms ease-out both;
}

html[data-hrx-style="f-type"] .hrx-topbar::after {
    display: none;
}

html[data-hrx-style="f-type"] .hrx-brand-mark {
    border-color: #542346;
    border-radius: 0.5rem;
    color: #ffffff;
    background: #6d315c;
    box-shadow: inset 0 -3px 0 rgba(45, 12, 36, 0.22);
}

html[data-hrx-style="f-type"] .hrx-topbar .hrx-eyebrow {
    color: #6d315c;
}

html[data-hrx-style="f-type"] .hrx-topbar h1 {
    color: #172129 !important;
    font-family: "LXGW WenKai TC", "Noto Serif TC", "Noto Sans TC", serif;
    font-weight: 700;
    letter-spacing: 0;
}

html[data-hrx-style="f-type"] .hrx-topbar h1 + p {
    color: #53655f !important;
}

html[data-hrx-style="f-type"] .hrx-topbar :focus-visible {
    outline-color: #6d315c;
}

html[data-hrx-style="f-type"] :is(.hrx-style-trigger, #month-picker, #auth-user-badge) {
    border-color: #aabdb5 !important;
    color: #172129 !important;
    background: #ffffff !important;
}

html[data-hrx-style="f-type"] #month-picker {
    color-scheme: light;
}

html[data-hrx-style="f-type"] #auth-user-badge :is(#auth-user-display, #auth-user-role),
html[data-hrx-style="f-type"] #auth-user-badge button:not(#auth-logout-btn) {
    color: #354741 !important;
}

html[data-hrx-style="f-type"] .hrx-style-trigger-code {
    border-color: #d8c0d1;
    color: #542346;
    background: #f1e3ec;
}

html[data-hrx-style="f-type"] .hrx-navigation-shell {
    top: 0.35rem;
    padding: 0.42rem 0.55rem;
    border-color: #aabdb5 !important;
    border-radius: var(--hrx-radius-md);
    background: rgba(251, 253, 252, 0.97);
    box-shadow: var(--hrx-shadow-sm);
    animation: f-type-arrive 200ms 40ms ease-out both;
}

html[data-hrx-style="f-type"] :is(.hrx-primary-nav, .hrx-secondary-nav) > button {
    border-radius: 0.35rem !important;
    color: #354741 !important;
    font-weight: 650;
}

html[data-hrx-style="f-type"] :is(.hrx-primary-nav, .hrx-secondary-nav) > button:hover {
    border-color: #cfddd7 !important;
    color: #542346 !important;
    background: #f1e3ec;
}

html[data-hrx-style="f-type"] :is(.hrx-primary-nav, .hrx-secondary-nav) > button.border-indigo-500,
html[data-hrx-style="f-type"] :is(.hrx-primary-nav, .hrx-secondary-nav) > button[aria-current="page"] {
    position: relative;
    padding-right: 1.55rem !important;
    border-color: #542346 !important;
    border-radius: 0.25rem !important;
    color: #ffffff !important;
    background: #6d315c;
    clip-path: polygon(0 0, calc(100% - 0.55rem) 0, 100% 0.55rem, 100% 100%, 0 100%);
}

html[data-hrx-style="f-type"] :is(.hrx-primary-nav, .hrx-secondary-nav) > button[aria-current="page"]::before {
    content: "";
    position: absolute;
    top: 0.52rem;
    right: 0.48rem;
    width: 0.42rem;
    height: 0.42rem;
    border: 1px solid rgba(23, 33, 41, 0.2);
    border-radius: 50%;
    background: #f3cb53;
}

html[data-hrx-style="f-type"] :is(.hrx-primary-nav, .hrx-secondary-nav) > button[aria-current="page"]:focus-visible {
    outline-color: #f3cb53;
    box-shadow: inset 0 0 0 3px #f3cb53;
}

html[data-hrx-style="f-type"] .hrx-filter-bar {
    border-radius: var(--hrx-radius-sm) !important;
}

html[data-hrx-style="f-type"] :is(#calendar-open-modal-btn, #announcement-header-btn, #full-refresh-btn) {
    border-radius: var(--hrx-radius-sm) !important;
}

html[data-hrx-style="f-type"] .hrx-workspace {
    min-width: 0;
    padding-left: clamp(0.35rem, 0.7vw, 0.65rem);
    border-left: 3px solid #aabdb5;
    animation: f-type-arrive 220ms 80ms ease-out both;
}

html[data-hrx-style="f-type"] .hrx-action-bar {
    border-color: #b8c9c2;
    border-radius: var(--hrx-radius-md);
    background: rgba(251, 253, 252, 0.97);
}

html[data-hrx-style="f-type"] .hrx-data-surface {
    border-color: #aabdb5 !important;
    border-radius: var(--hrx-radius-md) !important;
    box-shadow: none !important;
}

html[data-hrx-style="f-type"] #schedule-table thead th {
    border-color: #405159 !important;
    color: #f5faf7 !important;
    background: #172129 !important;
}

html[data-hrx-style="f-type"] #schedule-table thead tr:nth-child(2) th {
    border-color: #aabdb5 !important;
    color: #354741 !important;
    background: #dce8e3 !important;
}

html[data-hrx-style="f-type"] #schedule-table tbody tr:hover td,
html[data-hrx-style="f-type"] #schedule-table tbody tr:hover td.sticky-col {
    background: #f1e3ec !important;
}

html[data-hrx-style="f-type"] :is(.hrx-panel, .hrx-tool-page, .gap-card) {
    border-color: #b8c9c2 !important;
    border-radius: var(--hrx-radius-md) !important;
    background: rgba(251, 253, 252, 0.98) !important;
    box-shadow: none !important;
}

html[data-hrx-style="f-type"] :is(.hrx-panel, .hrx-tool-page, .hrx-workspace) :is(h1, h2, h3) {
    font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
    letter-spacing: -0.015em;
}

html[data-hrx-style="f-type"] :is(.hrx-metric p, #schedule-table, input[type="number"], input[type="month"]) {
    font-variant-numeric: tabular-nums;
}

html[data-hrx-style="f-type"] .hrx-metric {
    border-color: #c1d0ca !important;
    border-radius: var(--hrx-radius-sm) !important;
    background: #fbfdfc !important;
    box-shadow: none !important;
}

html[data-hrx-style="f-type"] .hrx-metric::after {
    background: #6d315c;
}

html[data-hrx-style="f-type"] .hrx-style-dialog,
html[data-hrx-style="f-type"] .hrx-auth-shell {
    border-radius: var(--hrx-radius-lg);
}

html[data-hrx-style="f-type"] .hrx-style-dialog-header {
    border-left: 4px solid #6d315c;
}

html[data-hrx-style="f-type"] .hrx-auth-overlay {
    background: #172129 !important;
}

html[data-hrx-style="f-type"] .hrx-auth-shell {
    border-color: #6d315c;
    background: #202b31;
}

html[data-hrx-style="f-type"] .hrx-auth-story h1,
html[data-hrx-style="f-type"] .hrx-auth-heading h2 {
    font-family: "LXGW WenKai TC", "Noto Serif TC", "Noto Sans TC", serif;
}

@keyframes f-type-arrive {
    from {
        opacity: 0;
        transform: translateY(0.35rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* W-TYPE: web-interface precision workbench ---------------------------- */

html[data-hrx-style="w-type"] {
    --hrx-canvas: #f7f7f7;
    --hrx-canvas-deep: #eeeeee;
    --hrx-surface: #ffffff;
    --hrx-surface-raised: #ffffff;
    --hrx-surface-muted: #fafafa;
    --hrx-ink: #111111;
    --hrx-ink-soft: #404040;
    --hrx-muted: #666666;
    --hrx-border: #e5e5e5;
    --hrx-border-strong: #a3a3a3;
    --hrx-brand: #005fcc;
    --hrx-brand-strong: #000000;
    --hrx-brand-soft: #eaf3ff;
    --hrx-brand-faint: #f3f7fc;
    --hrx-info: #005fcc;
    --hrx-info-soft: #eaf3ff;
    --hrx-warning: #8a4b00;
    --hrx-warning-soft: #fff4e5;
    --hrx-danger: #c1262d;
    --hrx-danger-soft: #fff0f1;
    --hrx-success: #18794e;
    --hrx-success-soft: #eaf8f0;
    --hrx-focus: #005fcc;
    --hrx-focus-on-dark: #75b5ff;
    --hrx-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
    --hrx-shadow-md: 0 12px 30px rgba(0, 0, 0, 0.11), 0 4px 10px rgba(0, 0, 0, 0.07);
    --hrx-shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.18), 0 8px 20px rgba(0, 0, 0, 0.10);
    --hrx-radius-sm: 6px;
    --hrx-radius-md: 8px;
    --hrx-radius-lg: 12px;
    --hrx-control-height: 2.5rem;
    color-scheme: light;
}

html[data-hrx-style="w-type"] body.hrx-body {
    background: var(--hrx-canvas);
    font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

html[data-hrx-style="w-type"] body.hrx-body ::selection {
    color: #ffffff;
    background: #005fcc;
}

html[data-hrx-style="w-type"] .hrx-app-shell {
    padding-top: max(0.65rem, env(safe-area-inset-top)) !important;
    padding-right: max(0.65rem, env(safe-area-inset-right)) !important;
    padding-bottom: max(0.65rem, env(safe-area-inset-bottom)) !important;
    padding-left: max(0.65rem, env(safe-area-inset-left)) !important;
}

html[data-hrx-style="w-type"] :is(.hrx-app-shell > *, .hrx-navigation-row > *, .hrx-global-tools, .tab-content) {
    min-width: 0;
}

html[data-hrx-style="w-type"] .hrx-topbar {
    min-height: 3.5rem;
    padding: 0.45rem 0.75rem;
    border: 1px solid #000000;
    border-radius: var(--hrx-radius-md);
    background: #111111;
    box-shadow: none;
}

html[data-hrx-style="w-type"] .hrx-topbar::after {
    display: none;
}

html[data-hrx-style="w-type"] .hrx-brand-group {
    gap: 0.65rem;
}

html[data-hrx-style="w-type"] .hrx-brand-mark {
    width: 2.45rem;
    height: 2.45rem;
    border-color: rgba(255, 255, 255, 0.42);
    border-radius: 0.35rem;
    background: #000000;
    font-size: 0.68rem;
}

html[data-hrx-style="w-type"] .hrx-topbar .hrx-eyebrow,
html[data-hrx-style="w-type"] .hrx-topbar h1 + p {
    display: none;
}

html[data-hrx-style="w-type"] .hrx-topbar h1 {
    font-size: 1.22rem !important;
    letter-spacing: -0.025em;
    line-height: 1.35;
    text-wrap: balance;
}

html[data-hrx-style="w-type"] :is(.hrx-style-trigger, #month-picker, #auth-user-badge) {
    min-height: 2.35rem;
    border-color: rgba(255, 255, 255, 0.38) !important;
    border-radius: 0.375rem !important;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.075) !important;
}

html[data-hrx-style="w-type"] #month-picker {
    color-scheme: dark;
}

html[data-hrx-style="w-type"] .hrx-style-trigger-code {
    border-color: rgba(255, 255, 255, 0.26);
    border-radius: 0.2rem;
    color: #111111;
    background: #ffffff;
}

html[data-hrx-style="w-type"] .hrx-navigation-shell {
    top: 0.35rem;
    padding: 0.35rem;
    border-color: #d4d4d4 !important;
    border-radius: var(--hrx-radius-md);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--hrx-shadow-sm);
    backdrop-filter: blur(12px);
}

html[data-hrx-style="w-type"] :is(.hrx-primary-nav, .hrx-secondary-nav) > button {
    position: relative;
    border-radius: 0.375rem !important;
    color: #525252 !important;
    background: transparent;
    font-size: 0.8rem;
    font-weight: 600;
}

html[data-hrx-style="w-type"] :is(.hrx-primary-nav, .hrx-secondary-nav) > button:hover {
    border-color: #a3a3a3 !important;
    color: #111111 !important;
    background: #f5f5f5;
}

html[data-hrx-style="w-type"] :is(.hrx-primary-nav, .hrx-secondary-nav) > button.border-indigo-500,
html[data-hrx-style="w-type"] :is(.hrx-primary-nav, .hrx-secondary-nav) > button[aria-current="page"] {
    border-color: #737373 !important;
    color: #111111 !important;
    background: #f5f5f5;
}

html[data-hrx-style="w-type"] :is(.hrx-primary-nav, .hrx-secondary-nav) > button[aria-current="page"]::after {
    content: "";
    position: absolute;
    right: 0.55rem;
    bottom: -0.36rem;
    left: 0.55rem;
    height: 2px;
    background: #111111;
}

html[data-hrx-style="w-type"] .hrx-filter-bar {
    border-color: #d4d4d4 !important;
    border-radius: 0.375rem !important;
    background: #fafafa !important;
}

html[data-hrx-style="w-type"] .hrx-filter-bar button {
    border-color: #a3a3a3 !important;
    border-radius: 0.3rem !important;
    color: #303030 !important;
}

html[data-hrx-style="w-type"] :is(#calendar-open-modal-btn, #announcement-header-btn, #full-refresh-btn) {
    border-color: #a3a3a3 !important;
    border-radius: 0.375rem !important;
    color: #222222 !important;
    background: #ffffff !important;
}

html[data-hrx-style="w-type"] :is(#calendar-open-modal-btn, #announcement-header-btn, #full-refresh-btn):hover {
    border-color: #525252 !important;
    color: #000000 !important;
    background: #f5f5f5 !important;
}

html[data-hrx-style="w-type"] .hrx-action-bar {
    padding: 0.35rem;
    border-color: #d4d4d4;
    border-radius: var(--hrx-radius-md);
    background: #ffffff;
    box-shadow: none;
}

html[data-hrx-style="w-type"] .hrx-action-bar > button,
html[data-hrx-style="w-type"] .hrx-action-bar > .relative > button,
html[data-hrx-style="w-type"] .hrx-action-bar > .ai-schedule-dropdown > button {
    border-radius: 0.375rem !important;
}

html[data-hrx-style="w-type"] .hrx-action-primary,
html[data-hrx-style="w-type"] .hrx-action-bar .bg-blue-600,
html[data-hrx-style="w-type"] #schedule-helper-btn {
    border-color: #111111 !important;
    color: #ffffff !important;
    background: #111111 !important;
}

html[data-hrx-style="w-type"] .hrx-data-surface {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    border-color: #d4d4d4 !important;
    border-radius: var(--hrx-radius-md) !important;
    box-shadow: none !important;
}

html[data-hrx-style="w-type"] #schedule-table {
    font-variant-numeric: tabular-nums;
}

html[data-hrx-style="w-type"] #schedule-table thead th {
    border-color: #d4d4d4 !important;
    color: #272727 !important;
    background: #f5f5f5 !important;
}

html[data-hrx-style="w-type"] #schedule-table thead tr:nth-child(2) th {
    background: #fafafa !important;
}

html[data-hrx-style="w-type"] #schedule-table tbody tr:hover td,
html[data-hrx-style="w-type"] #schedule-table tbody tr:hover td.sticky-col {
    background: #eaf3ff !important;
}

html[data-hrx-style="w-type"] :is(.hrx-panel, .hrx-tool-page, .gap-card, .hrx-metric) {
    border-color: #d4d4d4 !important;
    border-radius: var(--hrx-radius-md) !important;
    background: #ffffff !important;
    box-shadow: none !important;
}

html[data-hrx-style="w-type"] :is(.hrx-panel, .hrx-tool-page, .hrx-workspace) :is(h1, h2, h3) {
    color: #111111;
    text-wrap: balance;
}

html[data-hrx-style="w-type"] :is(.hrx-metric p, input[type="number"], input[type="month"], #calendar-badge, #announcement-badge) {
    font-variant-numeric: tabular-nums;
}

html[data-hrx-style="w-type"] .hrx-style-dialog {
    overscroll-behavior: contain;
    border-color: #d4d4d4;
    border-radius: var(--hrx-radius-lg);
    box-shadow: var(--hrx-shadow-lg);
}

html[data-hrx-style="w-type"] .hrx-style-option {
    border-radius: var(--hrx-radius-md);
}

html[data-hrx-style="w-type"] .hrx-style-dialog-close,
html[data-hrx-style="w-type"] .hrx-btn {
    border-radius: var(--hrx-radius-sm);
}

html[data-hrx-style="w-type"] .hrx-btn-primary {
    color: #ffffff;
    background: #111111;
    box-shadow: none;
}

html[data-hrx-style="w-type"] .hrx-btn-primary:hover {
    background: #000000;
}

html[data-hrx-style="w-type"] .hrx-auth-overlay {
    background: #111111 !important;
}

html[data-hrx-style="w-type"] .hrx-auth-shell {
    border-color: #404040;
    border-radius: var(--hrx-radius-lg);
    background: #181818;
}

html[data-hrx-style="w-type"] body.hrx-body :is(button, [role="button"], a, input, select, textarea) {
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(0, 95, 204, 0.18);
}

html[data-hrx-style="w-type"] body.hrx-body :is(button, [role="button"], a) {
    transition-property: opacity, transform;
}

html[data-hrx-style="w-type"] body.hrx-body :focus-visible {
    outline: 2px solid #005fcc !important;
    outline-offset: 2px !important;
}

html[data-hrx-style="w-type"] :is(.hrx-topbar, .hrx-admin-panel) :focus-visible {
    outline-color: #75b5ff !important;
}

html[data-hrx-style="w-type"] body.hrx-body :is(input, select, textarea):focus {
    border-color: #005fcc !important;
    box-shadow: 0 0 0 3px rgba(0, 95, 204, 0.16) !important;
}

html[data-hrx-style="w-type"] #manpower-app-root :is(.editable-input, .date-input-mini):focus-visible {
    outline: 2px solid #005fcc !important;
    outline-offset: 2px !important;
}

html[data-hrx-style="w-type"] #manpower-app-root :is(.editable-input, .nav-item) {
    transition-property: opacity, transform;
}

/* Responsive style switching -------------------------------------------- */

@media (max-width: 1100px) {
    html[data-hrx-style="u-type"] .hrx-navigation-shell {
        top: 0.35rem;
    }

    html[data-hrx-style="u-type"] .hrx-navigation-row {
        flex-direction: column;
        align-items: stretch !important;
    }

    html[data-hrx-style="u-type"] .hrx-navigation-row > .flex.flex-col {
        width: 100%;
    }

    html[data-hrx-style="u-type"] :is(.hrx-primary-nav, .hrx-secondary-nav) {
        flex-direction: row;
        overflow-x: auto;
    }

    html[data-hrx-style="u-type"] :is(.hrx-primary-nav, .hrx-secondary-nav) > button {
        width: auto;
        flex: 0 0 auto;
        text-align: center;
    }

    html[data-hrx-style="u-type"] .hrx-global-tools {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    html[data-hrx-style="u-type"] :is(.hrx-style-trigger, #month-picker, #auth-user-badge),
    html[data-hrx-style="u-type"] :is(.hrx-primary-nav, .hrx-secondary-nav) > button,
    html[data-hrx-style="u-type"] .hrx-global-tools button,
    html[data-hrx-style="f-type"] :is(.hrx-style-trigger, #month-picker, #auth-user-badge),
    html[data-hrx-style="f-type"] :is(.hrx-primary-nav, .hrx-secondary-nav) > button,
    html[data-hrx-style="f-type"] .hrx-global-tools button,
    html[data-hrx-style="w-type"] :is(.hrx-style-trigger, #month-picker, #auth-user-badge),
    html[data-hrx-style="w-type"] :is(.hrx-primary-nav, .hrx-secondary-nav) > button,
    html[data-hrx-style="w-type"] .hrx-global-tools button {
        min-height: 2.75rem !important;
    }

    html[data-hrx-style="w-type"] body.hrx-body :is(input, select, textarea) {
        min-height: 2.75rem;
        font-size: 1rem;
    }
}

@media (max-width: 767px) {
    .hrx-style-trigger {
        width: 100%;
    }

    .hrx-style-dialog {
        max-height: calc(100vh - 1.3rem);
        border-radius: 0.85rem;
    }

    .hrx-style-dialog-header {
        padding: 1rem;
    }

    .hrx-style-options {
        padding: 0.7rem;
    }

    .hrx-style-option {
        grid-template-columns: 5.8rem minmax(0, 1fr) 1.65rem;
        gap: 0.65rem;
        padding: 0.6rem;
    }

    .hrx-style-preview {
        width: 5.8rem;
        height: 4rem;
        grid-template-columns: 1.3rem 1fr;
        grid-template-rows: 0.85rem 0.7rem 1fr;
    }

    .hrx-style-preview-u {
        grid-template-columns: 1.4rem 1fr;
        grid-template-rows: 0.85rem 0.65rem 1fr;
    }

    .hrx-style-option-description {
        display: none;
    }

    .hrx-style-dialog-footer {
        align-items: stretch;
        padding: 0.75rem 1rem;
    }

    .hrx-style-dialog-footer > p {
        display: none;
    }

    .hrx-style-dialog-footer > div {
        width: 100%;
    }

    .hrx-style-dialog-footer .hrx-btn {
        flex: 1 1 50%;
    }

    html[data-hrx-style="t-type"] .hrx-topbar {
        padding: 0.75rem;
        border-radius: 0.2rem;
    }

    html[data-hrx-style="t-type"] .hrx-topbar-actions {
        flex-wrap: wrap;
    }

    html[data-hrx-style="t-type"] .hrx-navigation-shell {
        top: 0;
    }

    html[data-hrx-style="t-type"] .hrx-workspace {
        padding-left: 0.4rem;
        border-left-width: 2px;
    }

    html[data-hrx-style="f-type"] .hrx-topbar {
        padding: 0.75rem;
    }

    html[data-hrx-style="f-type"] .hrx-workspace {
        padding-left: 0.35rem;
        border-left-width: 2px;
    }

    html[data-hrx-style="w-type"] .hrx-app-shell {
        padding-top: max(0.5rem, env(safe-area-inset-top)) !important;
        padding-right: max(0.5rem, env(safe-area-inset-right)) !important;
        padding-bottom: max(0.5rem, env(safe-area-inset-bottom)) !important;
        padding-left: max(0.5rem, env(safe-area-inset-left)) !important;
    }

}

@media (max-width: 480px) {
    .hrx-style-option {
        grid-template-columns: minmax(0, 1fr) 1.65rem;
    }

    .hrx-style-preview {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hrx-style-dialog,
    .hrx-style-option,
    html[data-hrx-style="f-type"] :is(.hrx-topbar, .hrx-navigation-shell, .hrx-workspace) {
        animation: none !important;
        transition-duration: 0.001ms !important;
    }
}
