/*
 * HotelRevenue Hub 6.0
 * Client Partnership visual layer
 *
 * This stylesheet is intentionally namespaced with hr6-* so it can be loaded
 * after the existing v5.5 interface without changing legacy screens.
 */

:root {
    --hr6-ink: #09252c;
    --hr6-ink-soft: #102c33;
    --hr6-ink-raised: #0d1d30;
    --hr6-ivory: #f2eee6;
    --hr6-ivory-soft: #faf8f3;
    --hr6-champagne: #b9ecd9;
    --hr6-champagne-soft: #e7d8b7;
    --hr6-cyan: #b9ecd9;
    --hr6-cyan-soft: #b7efff;
    --hr6-white: #ffffff;
    --hr6-text: #142033;
    --hr6-muted: #596476;
    --hr6-line: rgba(4, 13, 26, .13);
    --hr6-line-dark: rgba(242, 238, 230, .14);
    --hr6-success: #16835b;
    --hr6-warning: #98500f;
    --hr6-danger: #b43c43;
    --hr6-info: #176f91;
    --hr6-radius-sm: 12px;
    --hr6-radius: 20px;
    --hr6-radius-lg: 30px;
    --hr6-shadow-sm: 0 10px 28px rgba(4, 13, 26, .07);
    --hr6-shadow: 0 24px 70px rgba(4, 13, 26, .13);
    --hr6-shadow-dark: 0 34px 90px rgba(0, 0, 0, .32);
    --hr6-font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --hr6-font-display: Georgia, "Times New Roman", serif;
}

/* Login --------------------------------------------------------------- */

html:has(.hr6-login-body) {
    background: var(--hr6-ink) !important;
}

body.hr6-login-body {
    min-width: 320px;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 7% 9%, rgba(22, 114, 87, .12), transparent 27rem),
        radial-gradient(circle at 91% 90%, rgba(185, 236, 217, .10), transparent 28rem),
        linear-gradient(145deg, var(--hr6-ink) 0%, var(--hr6-ink-soft) 52%, #030a14 100%) !important;
    color: var(--hr6-ivory) !important;
    font-family: var(--hr6-font-sans) !important;
}

.hr6-login-body *,
.hr6-login-body *::before,
.hr6-login-body *::after {
    box-sizing: border-box;
}

.login-page.hr6-login-page {
    position: relative;
    isolation: isolate;
    display: grid !important;
    align-content: center !important;
    justify-items: center !important;
    min-height: 100vh !important;
    min-height: 100svh !important;
    padding: clamp(20px, 4vw, 64px) !important;
    background: transparent !important;
}

.hr6-login-page::before,
.hr6-login-page::after {
    position: fixed;
    z-index: -1;
    content: "";
    pointer-events: none;
}

.hr6-login-page::before {
    inset: 0;
    opacity: .22;
    background-image:
        linear-gradient(rgba(242, 238, 230, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(242, 238, 230, .07) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 78%);
    mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

.hr6-login-page::after {
    top: -18rem;
    right: -17rem;
    width: 42rem;
    height: 42rem;
    border: 1px solid rgba(185, 236, 217, .18);
    border-radius: 50%;
    box-shadow:
        0 0 0 6rem rgba(185, 236, 217, .018),
        0 0 0 12rem rgba(22, 114, 87, .012);
}

.login-card.hr6-login-shell {
    display: grid !important;
    grid-template-columns: minmax(0, 1.16fr) minmax(370px, .84fr) !important;
    width: min(1180px, 100%) !important;
    max-width: none !important;
    min-height: min(720px, calc(100svh - 128px));
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid rgba(185, 236, 217, .28) !important;
    border-radius: clamp(22px, 3vw, 38px) !important;
    background: var(--hr6-ink-soft) !important;
    box-shadow: var(--hr6-shadow-dark) !important;
}

.hr6-login-story {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: clamp(30px, 5vw, 72px);
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 2%, rgba(22, 114, 87, .16), transparent 24rem),
        linear-gradient(150deg, rgba(255, 255, 255, .035), transparent 46%),
        var(--hr6-ink-soft);
}

.hr6-login-story::after {
    position: absolute;
    right: -8rem;
    bottom: -11rem;
    width: 29rem;
    height: 29rem;
    border: 1px solid rgba(185, 236, 217, .2);
    border-radius: 50%;
    content: "";
    box-shadow: 0 0 0 4.5rem rgba(185, 236, 217, .025);
    pointer-events: none;
}

.brand.hr6-login-brand {
    position: relative;
    z-index: 1;
    display: inline-grid !important;
    grid-template-columns: auto auto 1fr;
    align-items: center !important;
    align-self: flex-start;
    gap: 13px !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--hr6-ivory) !important;
    text-decoration: none !important;
}

.hr6-login-brand .brand-mark {
    display: grid !important;
    width: 52px !important;
    height: 52px !important;
    place-items: center !important;
    flex: none !important;
    border: 1px solid rgba(185, 236, 217, .66) !important;
    border-radius: 50% !important;
    background: rgba(242, 238, 230, .045) !important;
    box-shadow: inset 0 0 0 5px rgba(185, 236, 217, .045) !important;
    color: var(--hr6-champagne-soft) !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    letter-spacing: .08em;
}

.hr6-login-brand-name {
    display: grid;
    gap: 3px;
    line-height: 1;
}

.hr6-login-brand-name strong {
    color: var(--hr6-ivory) !important;
    font-size: 16px;
    font-weight: 760;
    letter-spacing: .01em;
}

.hr6-login-brand-name em {
    color: rgba(242, 238, 230, .58) !important;
    font-size: 9px;
    font-style: normal;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.hr6-login-brand-product {
    justify-self: start;
    margin-left: 4px;
    padding: 6px 10px;
    border: 1px solid rgba(22, 114, 87, .28);
    border-radius: 999px;
    background: rgba(22, 114, 87, .075);
    color: var(--hr6-cyan-soft) !important;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.hr6-login-intro {
    position: relative;
    z-index: 1;
    max-width: 670px;
    margin: auto 0 clamp(42px, 6vw, 78px);
    padding-top: clamp(68px, 9vw, 128px);
}

.eyebrow.hr6-login-eyebrow,
.hr6-login-panel .eyebrow {
    margin: 0 0 18px !important;
    color: var(--hr6-cyan) !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    letter-spacing: .16em !important;
    line-height: 1.5;
    text-transform: uppercase;
}

.hr6-login-intro h1 {
    max-width: 660px;
    margin: 0 !important;
    color: var(--hr6-ivory) !important;
    font-family: var(--hr6-font-display) !important;
    font-size: clamp(42px, 5.15vw, 70px) !important;
    font-weight: 400 !important;
    letter-spacing: -.045em !important;
    line-height: .99 !important;
    text-wrap: balance;
}

.subtitle.hr6-login-subtitle {
    max-width: 620px !important;
    margin: 26px 0 0 !important;
    color: rgba(242, 238, 230, .7) !important;
    font-size: clamp(15px, 1.25vw, 18px) !important;
    line-height: 1.7 !important;
}

.hr6-login-principles {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2.5vw, 30px);
    border-top: 1px solid var(--hr6-line-dark);
    padding-top: 24px;
}

.hr6-login-principle {
    min-width: 0;
}

.hr6-login-principle > span {
    display: block;
    margin-bottom: 12px;
    color: var(--hr6-champagne) !important;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .15em;
}

.hr6-login-principle p {
    margin: 0 !important;
    color: rgba(242, 238, 230, .55) !important;
    font-size: 12px !important;
    line-height: 1.55;
}

.hr6-login-principle strong {
    display: block;
    margin-bottom: 6px;
    color: var(--hr6-ivory) !important;
    font-size: 13px;
    line-height: 1.35;
}

.hr6-login-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: clamp(34px, 5vw, 72px);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .32), transparent 40%),
        var(--hr6-ivory) !important;
    color: var(--hr6-text) !important;
}

.hr6-login-panel-head {
    margin-bottom: 30px;
}

.hr6-login-panel .eyebrow {
    margin-bottom: 12px !important;
    color: #176f91 !important;
}

.hr6-login-panel h2 {
    margin: 0 0 12px !important;
    color: var(--hr6-ink) !important;
    font-family: var(--hr6-font-display) !important;
    font-size: clamp(31px, 3vw, 45px) !important;
    font-weight: 400 !important;
    letter-spacing: -.035em;
    line-height: 1.05;
}

.hr6-login-panel-head > p:last-child {
    margin: 0 !important;
    color: var(--hr6-muted) !important;
    font-size: 14px;
    line-height: 1.6;
}

.flash.hr6-login-error {
    margin: 0 0 22px !important;
    padding: 13px 15px !important;
    border: 1px solid rgba(180, 60, 67, .23) !important;
    border-radius: var(--hr6-radius-sm) !important;
    background: rgba(180, 60, 67, .08) !important;
    color: #8e2931 !important;
    box-shadow: none !important;
    font-size: 13px;
    line-height: 1.5;
}

.hr6-login-form {
    display: grid;
    gap: 20px;
    margin: 0;
}

.hr6-login-field {
    display: grid;
    gap: 8px;
}

.hr6-login-field label {
    color: var(--hr6-text) !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .035em;
}

.hr6-login-field input {
    width: 100% !important;
    min-height: 54px !important;
    margin: 0 !important;
    padding: 14px 16px !important;
    border: 1px solid rgba(4, 13, 26, .19) !important;
    border-radius: 14px !important;
    outline: 0;
    background: rgba(255, 255, 255, .68) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .68) !important;
    color: var(--hr6-ink) !important;
    font: inherit !important;
    font-size: 16px !important;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.hr6-login-field input:hover {
    border-color: rgba(4, 13, 26, .34) !important;
    background: rgba(255, 255, 255, .82) !important;
}

.hr6-login-field input:focus {
    border-color: var(--hr6-cyan) !important;
    background: var(--hr6-white) !important;
    box-shadow: 0 0 0 4px rgba(22, 114, 87, .14) !important;
}

.btn.hr6-login-submit {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-height: 56px !important;
    margin: 4px 0 0 !important;
    padding: 14px 18px !important;
    border: 1px solid var(--hr6-ink) !important;
    border-radius: 14px !important;
    background: var(--hr6-ink) !important;
    box-shadow: 0 14px 30px rgba(4, 13, 26, .16) !important;
    color: var(--hr6-ivory) !important;
    font: inherit !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    letter-spacing: .015em;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.btn.hr6-login-submit::after {
    display: grid;
    width: 29px;
    height: 29px;
    place-items: center;
    border-radius: 50%;
    background: var(--hr6-cyan);
    color: var(--hr6-ink);
    content: "\2192";
    font-size: 16px;
    line-height: 1;
}

.btn.hr6-login-submit:hover {
    transform: translateY(-2px) !important;
    border-color: var(--hr6-ink-soft) !important;
    background: var(--hr6-ink-soft) !important;
    box-shadow: 0 18px 38px rgba(4, 13, 26, .22) !important;
    filter: none !important;
}

.btn.hr6-login-submit:focus-visible,
.hr6-login-brand:focus-visible,
.hr6-login-help a:focus-visible,
.hr6-login-footer a:focus-visible {
    outline: 3px solid var(--hr6-cyan) !important;
    outline-offset: 4px !important;
}

.hr6-login-help {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 7px 14px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--hr6-line);
    color: var(--hr6-muted) !important;
    font-size: 12px;
    line-height: 1.5;
}

.hr6-login-help a {
    color: var(--hr6-text) !important;
    font-weight: 800;
    text-decoration-color: rgba(22, 114, 87, .55);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.hr6-login-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin-top: 20px;
    color: rgba(242, 238, 230, .47) !important;
    font-size: 11px;
    letter-spacing: .025em;
}

.hr6-login-footer a {
    color: rgba(242, 238, 230, .72) !important;
    text-decoration: none;
}

.hr6-login-footer a:hover {
    color: var(--hr6-cyan-soft) !important;
}

/* Shared v6 layout ---------------------------------------------------- */

.hr6-page,
.hr6-dashboard,
.hr6-admin {
    --hr6-page-gap: clamp(16px, 2vw, 24px);
    display: grid;
    gap: var(--hr6-page-gap);
    min-width: 0;
    color: var(--hr6-text) !important;
    font-family: var(--hr6-font-sans);
}

.hr6-page *,
.hr6-dashboard *,
.hr6-admin * {
    box-sizing: border-box;
}

.hr6-hero {
    position: relative !important;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: clamp(22px, 4vw, 54px);
    align-items: end;
    min-width: 0;
    padding: clamp(25px, 4vw, 48px) !important;
    overflow: hidden !important;
    border: 1px solid rgba(185, 236, 217, .28) !important;
    border-radius: var(--hr6-radius-lg) !important;
    background:
        radial-gradient(circle at 92% 12%, rgba(22, 114, 87, .17), transparent 22rem),
        linear-gradient(135deg, rgba(255, 255, 255, .035), transparent 45%),
        var(--hr6-ink-soft) !important;
    box-shadow: var(--hr6-shadow) !important;
    color: var(--hr6-ivory) !important;
}

.hr6-hero::after {
    position: absolute;
    z-index: -1;
    right: -6rem;
    bottom: -11rem;
    width: 28rem;
    height: 28rem;
    border: 1px solid rgba(185, 236, 217, .19);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.hr6-hero > * {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.hr6-hero-copy {
    max-width: 800px;
}

.hr6-hero .eyebrow,
.hr6-hero-kicker {
    margin: 0 0 12px !important;
    color: var(--hr6-cyan) !important;
    font-size: 11px !important;
    font-weight: 850 !important;
    letter-spacing: .15em !important;
    text-transform: uppercase;
}

.hr6-hero h1,
.hr6-hero h2 {
    max-width: 840px;
    margin: 0 !important;
    color: var(--hr6-ivory) !important;
    font-family: var(--hr6-font-display) !important;
    font-size: clamp(35px, 4vw, 58px) !important;
    font-weight: 400 !important;
    letter-spacing: -.04em !important;
    line-height: 1.02 !important;
    text-wrap: balance;
}

.hr6-hero p,
.hr6-hero .subtitle,
.hr6-hero-summary {
    max-width: 760px;
    margin: 17px 0 0 !important;
    color: rgba(242, 238, 230, .7) !important;
    font-size: 15px;
    line-height: 1.7;
}

.hr6-hero-meta,
.hr6-hero-actions,
.hr6-update-actions,
.hr6-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
}

.hr6-hero-meta {
    justify-content: flex-end;
}

.hr6-button,
.hr6-action {
    display: inline-flex !important;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px !important;
    border: 1px solid var(--hr6-ink) !important;
    border-radius: 999px !important;
    background: var(--hr6-ink) !important;
    box-shadow: none !important;
    color: var(--hr6-ivory) !important;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.hr6-button:hover,
.hr6-action:hover {
    transform: translateY(-1px);
    border-color: var(--hr6-ink-soft) !important;
    background: var(--hr6-ink-soft) !important;
}

.hr6-button.is-cyan,
.hr6-action.is-cyan,
.hr6-hero .hr6-button {
    border-color: var(--hr6-cyan) !important;
    background: var(--hr6-cyan) !important;
    color: var(--hr6-ink) !important;
}

.hr6-button.is-secondary,
.hr6-action.is-secondary {
    border-color: var(--hr6-line) !important;
    background: var(--hr6-white) !important;
    color: var(--hr6-text) !important;
}

.hr6-hero .hr6-button.is-secondary {
    border-color: rgba(242, 238, 230, .2) !important;
    background: rgba(242, 238, 230, .07) !important;
    color: var(--hr6-ivory) !important;
}

.hr6-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--hr6-page-gap);
    min-width: 0;
}

.hr6-kpi {
    position: relative;
    min-width: 0;
    min-height: 148px;
    padding: 20px !important;
    overflow: hidden;
    border: 1px solid var(--hr6-line) !important;
    border-radius: var(--hr6-radius) !important;
    background: var(--hr6-white) !important;
    box-shadow: var(--hr6-shadow-sm) !important;
    color: var(--hr6-text) !important;
}

.hr6-kpi::before {
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: var(--hr6-cyan);
    content: "";
}

.hr6-kpi.is-champagne::before { background: var(--hr6-champagne); }
.hr6-kpi.is-success::before { background: var(--hr6-success); }
.hr6-kpi.is-warning::before { background: var(--hr6-warning); }
.hr6-kpi.is-danger::before { background: var(--hr6-danger); }

.hr6-kpi-label,
.hr6-kpi > span:first-child {
    display: block;
    color: var(--hr6-muted) !important;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    line-height: 1.4;
    text-transform: uppercase;
}

.hr6-kpi-value,
.hr6-kpi > strong {
    display: block;
    margin-top: 12px;
    color: var(--hr6-ink) !important;
    font-family: var(--hr6-font-display);
    font-size: clamp(29px, 3vw, 42px);
    font-weight: 400 !important;
    letter-spacing: -.04em;
    line-height: 1;
}

.hr6-kpi-note,
.hr6-kpi > small {
    display: block;
    margin-top: 12px;
    color: var(--hr6-muted) !important;
    font-size: 11px;
    line-height: 1.5;
}

.hr6-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(290px, .36fr);
    gap: var(--hr6-page-gap);
    align-items: start;
    min-width: 0;
}

.hr6-main,
.hr6-side,
.hr6-stack {
    display: grid;
    gap: var(--hr6-page-gap);
    min-width: 0;
}

.hr6-section,
.hr6-admin-panel {
    min-width: 0;
    padding: clamp(19px, 2.5vw, 28px) !important;
    border: 1px solid var(--hr6-line) !important;
    border-radius: var(--hr6-radius) !important;
    background: var(--hr6-white) !important;
    box-shadow: var(--hr6-shadow-sm) !important;
    color: var(--hr6-text) !important;
}

.hr6-section.is-dark,
.hr6-admin-panel.is-dark {
    border-color: var(--hr6-line-dark) !important;
    background: var(--hr6-ink-soft) !important;
    color: var(--hr6-ivory) !important;
}

.hr6-section-head,
.hr6-admin-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.hr6-section-head > div,
.hr6-admin-toolbar > div {
    min-width: 0;
}

.hr6-section-head h2,
.hr6-section-head h3,
.hr6-admin-toolbar h2,
.hr6-admin-toolbar h3 {
    margin: 0 !important;
    color: var(--hr6-ink) !important;
    font-family: var(--hr6-font-display) !important;
    font-size: clamp(22px, 2vw, 30px) !important;
    font-weight: 400 !important;
    letter-spacing: -.025em;
    line-height: 1.15;
}

.hr6-section.is-dark .hr6-section-head h2,
.hr6-section.is-dark .hr6-section-head h3 {
    color: var(--hr6-ivory) !important;
}

.hr6-section-head p,
.hr6-admin-toolbar p {
    margin: 7px 0 0 !important;
    color: var(--hr6-muted) !important;
    font-size: 12px;
    line-height: 1.55;
}

.hr6-section.is-dark .hr6-section-head p {
    color: rgba(242, 238, 230, .62) !important;
}

.hr6-grid,
.hr6-service-grid,
.hr6-admin-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--hr6-page-gap);
    min-width: 0;
}

.hr6-span-12 { grid-column: span 12; }
.hr6-span-8 { grid-column: span 8; }
.hr6-span-7 { grid-column: span 7; }
.hr6-span-6 { grid-column: span 6; }
.hr6-span-5 { grid-column: span 5; }
.hr6-span-4 { grid-column: span 4; }
.hr6-span-3 { grid-column: span 3; }

/* Actions and priorities --------------------------------------------- */

.hr6-action-list,
.hr6-priority-list {
    display: grid;
    gap: 11px;
    min-width: 0;
}

.hr6-action-card,
.hr6-priority-card,
.hr6-feedback-item,
.hr6-service-card,
.hr6-decision-card,
.hr6-approval-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    min-width: 0;
    padding: 16px 17px !important;
    border: 1px solid var(--hr6-line) !important;
    border-radius: 16px !important;
    background: var(--hr6-ivory-soft) !important;
    box-shadow: none !important;
    color: var(--hr6-text) !important;
    text-decoration: none;
    transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.hr6-action-card:hover,
.hr6-priority-card:hover,
.hr6-service-card:hover,
.hr6-decision-card:hover,
.hr6-approval-card:hover {
    transform: translateY(-1px);
    border-color: rgba(22, 114, 87, .48) !important;
    box-shadow: 0 12px 26px rgba(4, 13, 26, .07) !important;
}

.hr6-action-card::before,
.hr6-priority-card::before,
.hr6-decision-card::before,
.hr6-approval-card::before {
    position: absolute;
    top: 15px;
    bottom: 15px;
    left: 0;
    width: 3px;
    border-radius: 0 999px 999px 0;
    background: var(--hr6-cyan);
    content: "";
}

.hr6-action-card.is-urgent::before,
.hr6-priority-card.is-urgent::before { background: var(--hr6-danger); }
.hr6-action-card.is-waiting::before,
.hr6-priority-card.is-waiting::before { background: var(--hr6-warning); }
.hr6-action-card.is-complete::before,
.hr6-priority-card.is-complete::before { background: var(--hr6-success); }
.hr6-decision-card::before { background: var(--hr6-champagne); }

.hr6-action-card h3,
.hr6-priority-card h3,
.hr6-service-card h3,
.hr6-decision-card h3,
.hr6-approval-card h3,
.hr6-action-card strong,
.hr6-priority-card strong {
    margin: 0 !important;
    color: var(--hr6-ink) !important;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
}

.hr6-action-card p,
.hr6-priority-card p,
.hr6-service-card p,
.hr6-decision-card p,
.hr6-approval-card p {
    margin: 5px 0 0 !important;
    color: var(--hr6-muted) !important;
    font-size: 12px;
    line-height: 1.55;
}

.hr6-update-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 12px;
    align-items: center;
    margin-top: 9px;
    color: var(--hr6-muted) !important;
    font-size: 10px;
    line-height: 1.45;
}

.hr6-update-actions {
    justify-content: flex-end;
}

.hr6-status {
    display: inline-flex !important;
    width: fit-content;
    min-height: 27px;
    align-items: center;
    gap: 6px;
    padding: 5px 9px !important;
    border: 1px solid rgba(23, 111, 145, .18) !important;
    border-radius: 999px !important;
    background: rgba(23, 111, 145, .08) !important;
    color: var(--hr6-info) !important;
    font-size: 9px !important;
    font-weight: 850 !important;
    letter-spacing: .04em;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
}

.hr6-status::before {
    width: 6px;
    height: 6px;
    flex: none;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.hr6-status.is-action,
.hr6-status.is-pending,
.hr6-status[data-status="pending"] {
    border-color: rgba(182, 101, 23, .2) !important;
    background: rgba(182, 101, 23, .09) !important;
    color: var(--hr6-warning) !important;
}

.hr6-status.is-approved,
.hr6-status.is-complete,
.hr6-status[data-status="approved"],
.hr6-status[data-status="completed"] {
    border-color: rgba(22, 131, 91, .2) !important;
    background: rgba(22, 131, 91, .09) !important;
    color: var(--hr6-success) !important;
}

.hr6-status.is-blocked,
.hr6-status.is-overdue,
.hr6-status[data-status="blocked"],
.hr6-status[data-status="overdue"] {
    border-color: rgba(180, 60, 67, .2) !important;
    background: rgba(180, 60, 67, .08) !important;
    color: var(--hr6-danger) !important;
}

.hr6-status.is-neutral,
.hr6-status[data-status="draft"] {
    border-color: var(--hr6-line) !important;
    background: rgba(100, 112, 132, .07) !important;
    color: var(--hr6-muted) !important;
}

/* Timeline ------------------------------------------------------------ */

.hr6-timeline {
    position: relative;
    display: grid;
    gap: 0;
    min-width: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hr6-timeline::before {
    position: absolute;
    top: 13px;
    bottom: 13px;
    left: 14px;
    width: 1px;
    background: linear-gradient(to bottom, var(--hr6-cyan), rgba(4, 13, 26, .12));
    content: "";
}

.hr6-timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 29px minmax(0, 1fr);
    gap: 15px;
    min-width: 0;
    padding: 0 0 22px;
}

.hr6-timeline-item:last-child {
    padding-bottom: 0;
}

.hr6-timeline-marker {
    position: relative;
    z-index: 1;
    display: grid;
    width: 29px;
    height: 29px;
    place-items: center;
    border: 5px solid var(--hr6-white);
    border-radius: 50%;
    background: var(--hr6-cyan);
    box-shadow: 0 0 0 1px rgba(22, 114, 87, .32);
}

.hr6-timeline-marker.is-decision { background: var(--hr6-champagne); }
.hr6-timeline-marker.is-complete { background: var(--hr6-success); }
.hr6-timeline-marker.is-comment { background: var(--hr6-info); }
.hr6-timeline-marker.is-blocked { background: var(--hr6-danger); }

.hr6-timeline-content {
    min-width: 0;
    padding: 2px 0 0;
}

.hr6-timeline-content h3,
.hr6-timeline-content strong {
    margin: 0 !important;
    color: var(--hr6-ink) !important;
    font-size: 14px;
    line-height: 1.45;
}

.hr6-timeline-content p {
    margin: 6px 0 0 !important;
    color: var(--hr6-muted) !important;
    font-size: 12px;
    line-height: 1.6;
}

.hr6-timeline-content .hr6-update-meta {
    margin-top: 8px;
}

/* Services and feedback ---------------------------------------------- */

.hr6-service-card {
    grid-column: span 4;
    grid-template-columns: 1fr;
    align-content: start;
    min-height: 165px;
}

.hr6-service-card-number {
    color: var(--hr6-champagne) !important;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .14em;
}

.hr6-service-card.is-active {
    border-color: rgba(22, 114, 87, .32) !important;
    background:
        linear-gradient(145deg, rgba(22, 114, 87, .07), transparent 52%),
        var(--hr6-ivory-soft) !important;
}

.hr6-feedback-form {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.hr6-feedback-form label {
    color: var(--hr6-text) !important;
    font-size: 11px;
    font-weight: 800;
}

.hr6-feedback-form input,
.hr6-feedback-form select,
.hr6-feedback-form textarea,
.hr6-admin input,
.hr6-admin select,
.hr6-admin textarea {
    width: 100%;
    min-height: 44px;
    padding: 11px 13px !important;
    border: 1px solid var(--hr6-line) !important;
    border-radius: var(--hr6-radius-sm) !important;
    background: var(--hr6-white) !important;
    box-shadow: none !important;
    color: var(--hr6-text) !important;
    font: inherit;
}

.hr6-feedback-form textarea,
.hr6-admin textarea {
    min-height: 112px;
    resize: vertical;
}

.hr6-feedback-form input:focus,
.hr6-feedback-form select:focus,
.hr6-feedback-form textarea:focus,
.hr6-admin input:focus,
.hr6-admin select:focus,
.hr6-admin textarea:focus {
    border-color: var(--hr6-cyan) !important;
    outline: 0 !important;
    box-shadow: 0 0 0 4px rgba(22, 114, 87, .12) !important;
}

.hr6-feedback-item {
    grid-template-columns: 36px minmax(0, 1fr);
    align-items: start;
}

.hr6-feedback-avatar {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    background: var(--hr6-ink-soft);
    color: var(--hr6-ivory) !important;
    font-size: 11px;
    font-weight: 850;
}

.hr6-sticky-feedback {
    position: sticky;
    z-index: 10;
    bottom: 18px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 15px 17px !important;
    border: 1px solid rgba(22, 114, 87, .28) !important;
    border-radius: 17px !important;
    background: rgba(8, 21, 37, .96) !important;
    box-shadow: 0 20px 50px rgba(4, 13, 26, .26) !important;
    color: var(--hr6-ivory) !important;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.hr6-sticky-feedback p {
    margin: 0 !important;
    color: rgba(242, 238, 230, .68) !important;
    font-size: 12px;
    line-height: 1.5;
}

.hr6-sticky-feedback strong {
    display: block;
    margin-bottom: 3px;
    color: var(--hr6-ivory) !important;
}

.hr6-empty {
    display: grid;
    min-height: 180px;
    place-items: center;
    padding: 28px !important;
    border: 1px dashed rgba(4, 13, 26, .2) !important;
    border-radius: var(--hr6-radius) !important;
    background: rgba(242, 238, 230, .42) !important;
    color: var(--hr6-muted) !important;
    text-align: center;
}

.hr6-empty > div {
    max-width: 410px;
}

.hr6-empty h3 {
    margin: 0 0 7px !important;
    color: var(--hr6-ink) !important;
    font-family: var(--hr6-font-display) !important;
    font-size: 22px !important;
    font-weight: 400 !important;
}

.hr6-empty p {
    margin: 0 !important;
    color: var(--hr6-muted) !important;
    font-size: 12px;
    line-height: 1.6;
}

/* Admin --------------------------------------------------------------- */

.hr6-admin-toolbar {
    align-items: center;
    margin: 0;
    padding: 18px 20px !important;
    border: 1px solid var(--hr6-line) !important;
    border-radius: var(--hr6-radius) !important;
    background: var(--hr6-white) !important;
    box-shadow: var(--hr6-shadow-sm) !important;
}

.hr6-admin-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 12px;
    min-width: 0;
}

.hr6-admin-field {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.hr6-admin-field.is-wide {
    grid-column: span 2;
}

.hr6-admin-field label {
    color: var(--hr6-muted) !important;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.hr6-admin-stat {
    grid-column: span 3;
    min-height: 120px;
    padding: 18px !important;
    border: 1px solid var(--hr6-line) !important;
    border-radius: 17px !important;
    background: var(--hr6-white) !important;
    box-shadow: var(--hr6-shadow-sm) !important;
}

.hr6-admin-stat span {
    color: var(--hr6-muted) !important;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.hr6-admin-stat strong {
    display: block;
    margin-top: 11px;
    color: var(--hr6-ink) !important;
    font-family: var(--hr6-font-display);
    font-size: 32px;
    font-weight: 400 !important;
}

.hr6-admin-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    color: var(--hr6-text) !important;
}

.hr6-admin-table th,
.hr6-admin-table td {
    padding: 13px 12px !important;
    border-bottom: 1px solid var(--hr6-line) !important;
    color: var(--hr6-text) !important;
    font-size: 12px;
    line-height: 1.45;
    text-align: left;
    vertical-align: middle;
}

.hr6-admin-table th {
    color: var(--hr6-muted) !important;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hr6-admin-table tbody tr {
    background: transparent !important;
}

.hr6-admin-table tbody tr:hover {
    background: rgba(22, 114, 87, .045) !important;
}

.hr6-admin-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--hr6-line);
}

.hr6-admin-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.hr6-admin-note,
.hr6-opinion-strip {
    padding: 14px 16px !important;
    border: 1px solid rgba(23, 111, 145, .18) !important;
    border-radius: 14px !important;
    background: rgba(22, 114, 87, .055) !important;
    color: var(--hr6-text) !important;
    font-size: 12px;
    line-height: 1.6;
}

.hr6-admin-note.is-warning,
.hr6-opinion-strip.is-waiting {
    border-color: rgba(182, 101, 23, .2) !important;
    background: rgba(185, 236, 217, .13) !important;
}

/* Utilities ----------------------------------------------------------- */

.hr6-muted {
    color: var(--hr6-muted) !important;
}

.hr6-divider {
    height: 1px;
    margin: 4px 0;
    border: 0;
    background: var(--hr6-line);
}

.hr6-scroll {
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(4, 13, 26, .23) transparent;
}

.hr6-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.hr6-page :where(a, button, input, select, textarea):focus-visible,
.hr6-dashboard :where(a, button, input, select, textarea):focus-visible,
.hr6-admin :where(a, button, input, select, textarea):focus-visible {
    outline: 3px solid rgba(22, 114, 87, .58) !important;
    outline-offset: 3px !important;
}

/* Responsive ---------------------------------------------------------- */

@media (max-width: 1100px) {
    .login-card.hr6-login-shell {
        grid-template-columns: minmax(0, 1fr) minmax(340px, .86fr) !important;
    }

    .hr6-login-principles {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .hr6-login-principle {
        display: grid;
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 10px;
    }

    .hr6-login-principle > span {
        margin: 2px 0 0;
    }

    .hr6-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hr6-layout {
        grid-template-columns: minmax(0, 1fr) minmax(260px, .42fr);
    }

    .hr6-service-card,
    .hr6-admin-stat {
        grid-column: span 6;
    }
}

@media (max-width: 860px) {
    .login-page.hr6-login-page {
        align-content: start !important;
        padding: 16px !important;
    }

    .login-card.hr6-login-shell {
        grid-template-columns: 1fr !important;
        min-height: auto;
    }

    .hr6-login-story {
        padding: 30px;
    }

    .hr6-login-intro {
        margin-bottom: 36px;
        padding-top: 72px;
    }

    .hr6-login-intro h1 {
        max-width: 690px;
        font-size: clamp(40px, 9vw, 62px) !important;
    }

    .hr6-login-principles {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hr6-login-principle {
        display: block;
    }

    .hr6-login-panel {
        padding: 38px 30px 34px;
    }

    .hr6-hero,
    .hr6-layout {
        grid-template-columns: 1fr;
    }

    .hr6-hero-meta {
        justify-content: flex-start;
    }

    .hr6-side {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hr6-admin-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hr6-span-8,
    .hr6-span-7,
    .hr6-span-6,
    .hr6-span-5,
    .hr6-span-4,
    .hr6-span-3 {
        grid-column: span 12;
    }
}

@media (max-width: 620px) {
    .login-page.hr6-login-page {
        padding: 0 !important;
    }

    .login-card.hr6-login-shell {
        border: 0 !important;
        border-radius: 0 !important;
    }

    .hr6-login-story,
    .hr6-login-panel {
        padding-right: 22px;
        padding-left: 22px;
    }

    .hr6-login-story {
        padding-top: 24px;
        padding-bottom: 29px;
    }

    .hr6-login-brand {
        grid-template-columns: auto auto !important;
    }

    .hr6-login-brand-product {
        display: none;
    }

    .hr6-login-intro {
        margin-bottom: 30px;
        padding-top: 54px;
    }

    .hr6-login-intro h1 {
        font-size: clamp(37px, 12vw, 50px) !important;
    }

    .subtitle.hr6-login-subtitle {
        margin-top: 20px !important;
        font-size: 14px !important;
    }

    .hr6-login-principles {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hr6-login-principle {
        display: grid;
        grid-template-columns: 28px minmax(0, 1fr);
        gap: 10px;
    }

    .hr6-login-principle > span {
        margin-top: 2px;
    }

    .hr6-login-panel {
        padding-top: 34px;
        padding-bottom: 34px;
    }

    .hr6-login-footer {
        display: flex;
    }

    .hr6-hero,
    .hr6-section,
    .hr6-admin-panel {
        border-radius: 18px !important;
    }

    .hr6-kpis,
    .hr6-side,
    .hr6-admin-filters {
        grid-template-columns: 1fr;
    }

    .hr6-kpi {
        min-height: 126px;
    }

    .hr6-section-head,
    .hr6-admin-toolbar,
    .hr6-sticky-feedback,
    .hr6-admin-row {
        align-items: stretch;
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .hr6-action-card,
    .hr6-priority-card,
    .hr6-decision-card,
    .hr6-approval-card {
        grid-template-columns: 1fr;
    }

    .hr6-update-actions,
    .hr6-admin-actions {
        justify-content: flex-start;
    }

    .hr6-service-card,
    .hr6-admin-stat {
        grid-column: span 12;
    }

    .hr6-admin-field.is-wide {
        grid-column: span 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hr6-login-body *,
    .hr6-page *,
    .hr6-dashboard *,
    .hr6-admin * {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media print {
    .hr6-hero,
    .hr6-section,
    .hr6-kpi,
    .hr6-admin-panel {
        break-inside: avoid;
        box-shadow: none !important;
    }

    .hr6-sticky-feedback,
    .hr6-update-actions,
    .hr6-admin-actions {
        display: none !important;
    }
}

/* v6 authenticated shell and component compatibility ---------------- */

body:not(.hr6-login-body) {
    background:
        radial-gradient(circle at 82% 0, rgba(22, 114, 87, .07), transparent 27rem),
        linear-gradient(180deg, #f7f4ee, #f2eee6) !important;
    color: var(--hr6-text) !important;
    font-family: var(--hr6-font-sans) !important;
}

body:not(.hr6-login-body) .sidebar {
    border-right: 1px solid rgba(185, 236, 217, .22) !important;
    background:
        radial-gradient(circle at 15% 0, rgba(22, 114, 87, .12), transparent 18rem),
        linear-gradient(180deg, var(--hr6-ink-soft), var(--hr6-ink)) !important;
    box-shadow: 12px 0 40px rgba(4, 13, 26, .12) !important;
}

body:not(.hr6-login-body) .sidebar .brand {
    border: 1px solid rgba(185, 236, 217, .22) !important;
    background: rgba(242, 238, 230, .045) !important;
    box-shadow: none !important;
}

body:not(.hr6-login-body) .sidebar .brand strong,
body:not(.hr6-login-body) .sidebar .brand em,
body:not(.hr6-login-body) .sidebar .brand span { color: var(--hr6-ivory) !important; }
body:not(.hr6-login-body) .sidebar .brand-mark {
    border: 1px solid rgba(185, 236, 217, .56) !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--hr6-champagne-soft) !important;
}
body:not(.hr6-login-body) .sidebar .brand-version {
    border-color: rgba(22, 114, 87, .28) !important;
    background: rgba(22, 114, 87, .08) !important;
    color: var(--hr6-cyan-soft) !important;
}
body:not(.hr6-login-body) .sidebar .user-card {
    border: 1px solid rgba(242, 238, 230, .12) !important;
    background: rgba(242, 238, 230, .045) !important;
    box-shadow: none !important;
}
body:not(.hr6-login-body) .sidebar .user-card strong,
body:not(.hr6-login-body) .sidebar .user-card span { color: var(--hr6-ivory) !important; }
body:not(.hr6-login-body) .sidebar .user-card small { color: rgba(242, 238, 230, .56) !important; }
body:not(.hr6-login-body) .sidebar .menu-section { color: rgba(185, 236, 217, .72) !important; }
body:not(.hr6-login-body) .sidebar .menu a,
body:not(.hr6-login-body) .sidebar .menu a.menu-main {
    border-color: transparent !important;
    background: transparent !important;
    color: rgba(242, 238, 230, .72) !important;
    box-shadow: none !important;
}
body:not(.hr6-login-body) .sidebar .menu a:hover {
    border-color: rgba(22, 114, 87, .18) !important;
    background: rgba(22, 114, 87, .07) !important;
    color: var(--hr6-ivory) !important;
}
body:not(.hr6-login-body) .sidebar .menu a.active,
body:not(.hr6-login-body) .sidebar .menu a.menu-main.active {
    border-color: rgba(22, 114, 87, .3) !important;
    background: linear-gradient(90deg, rgba(22, 114, 87, .15), rgba(22, 114, 87, .035)) !important;
    color: var(--hr6-white) !important;
}
body:not(.hr6-login-body) .sidebar .hr-menu-search {
    border: 1px solid rgba(242, 238, 230, .12) !important;
    background: rgba(242, 238, 230, .04) !important;
    box-shadow: none !important;
}
body:not(.hr6-login-body) .sidebar .hr-menu-search input {
    border-color: rgba(242, 238, 230, .13) !important;
    background: rgba(242, 238, 230, .055) !important;
    color: var(--hr6-ivory) !important;
}
body:not(.hr6-login-body) .sidebar .hr-menu-search small { color: rgba(242, 238, 230, .42) !important; }
body:not(.hr6-login-body) .sidebar .logout { border-color: rgba(242, 238, 230, .14) !important; color: var(--hr6-ivory) !important; }
body:not(.hr6-login-body) .topbar {
    border: 1px solid rgba(4, 13, 26, .1) !important;
    border-radius: 22px !important;
    background: rgba(255, 255, 255, .76) !important;
    box-shadow: 0 16px 45px rgba(4, 13, 26, .07) !important;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}
body:not(.hr6-login-body) .topbar h1 {
    color: var(--hr6-ink) !important;
    font-family: var(--hr6-font-display) !important;
    font-weight: 400 !important;
    letter-spacing: -.035em !important;
}
body:not(.hr6-login-body) .topbar .eyebrow { color: var(--hr6-info) !important; }
body:not(.hr6-login-body) .topbar .subtitle { color: var(--hr6-muted) !important; }
body:not(.hr6-login-body) .card {
    border-color: var(--hr6-line) !important;
    border-radius: var(--hr6-radius) !important;
    background: var(--hr6-white) !important;
    box-shadow: var(--hr6-shadow-sm) !important;
}

.hr6-layout {
    grid-template-columns: repeat(12, minmax(0, 1fr)) !important;
    gap: 20px !important;
    margin-bottom: var(--hr6-page-gap, 22px);
}
.hr6-layout > .hr6-panel { margin-top: 0 !important; }

.hr6-panel {
    min-width: 0;
    padding: clamp(19px, 2.5vw, 28px) !important;
    border: 1px solid var(--hr6-line) !important;
    border-radius: var(--hr6-radius) !important;
    background: var(--hr6-white) !important;
    box-shadow: var(--hr6-shadow-sm) !important;
    color: var(--hr6-text) !important;
}

.hr6-panel + .hr6-panel,
.hr6-hero + .hr6-panel,
.hr6-metrics + .hr6-panel { margin-top: 20px; }

.hr6-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 20px;
}
.hr6-panel-head h3 { margin: 0 !important; color: var(--hr6-ink) !important; font-family: var(--hr6-font-display) !important; font-size: clamp(22px, 2vw, 30px) !important; font-weight: 400 !important; }
.hr6-panel-head > a { color: var(--hr6-info) !important; font-size: 12px; font-weight: 800; text-decoration: none; }
.hr6-kicker { margin: 0 0 8px !important; color: var(--hr6-info) !important; font-size: 10px !important; font-weight: 850 !important; letter-spacing: .13em; text-transform: uppercase; }

.hr6-hero-main { max-width: 790px; }
.hr6-hero .hr6-kicker { color: var(--hr6-cyan) !important; }
.hr6-relationship { display: grid; min-width: min(330px, 100%); gap: 1px; overflow: hidden; border: 1px solid rgba(242, 238, 230, .14); border-radius: 18px; background: rgba(242, 238, 230, .08); }
.hr6-relationship > div { display: grid; gap: 5px; padding: 14px 16px; background: rgba(4, 13, 26, .32); }
.hr6-relationship span { color: rgba(242, 238, 230, .52) !important; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hr6-relationship strong { color: var(--hr6-ivory) !important; font-size: 12px; line-height: 1.45; }
.hr6-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.hr6-tags span { padding: 6px 9px; border: 1px solid rgba(185, 236, 217, .24); border-radius: 999px; background: rgba(185, 236, 217, .07); color: var(--hr6-champagne-soft) !important; font-size: 9px; font-weight: 800; }

.hr6-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 14px; margin: 20px 0; }
.hr6-metric { position: relative; min-height: 128px; padding: 18px; overflow: hidden; border: 1px solid var(--hr6-line); border-radius: 18px; background: var(--hr6-white); box-shadow: var(--hr6-shadow-sm); color: var(--hr6-text) !important; text-decoration: none; }
.hr6-metric::before { position: absolute; inset: 0 0 auto; height: 3px; background: var(--hr6-cyan); content: ""; }
.hr6-metric.is-urgent::before { background: var(--hr6-champagne); }
.hr6-metric span { display: block; color: var(--hr6-muted) !important; font-size: 10px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.hr6-metric strong { display: block; margin: 10px 0 6px; color: var(--hr6-ink) !important; font-family: var(--hr6-font-display); font-size: 38px; font-weight: 400; line-height: 1; }
.hr6-metric small { color: var(--hr6-muted) !important; font-size: 11px; }

.hr6-action-list { gap: 13px; }
.hr6-action-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px; border: 1px solid var(--hr6-line); border-left: 3px solid var(--hr6-cyan); border-radius: 15px; background: var(--hr6-ivory-soft); }
.hr6-action-item.is-urgent { border-left-color: var(--hr6-champagne); }
.hr6-action-item h4 { margin: 4px 0 !important; color: var(--hr6-ink) !important; font-size: 14px; }
.hr6-action-item p { margin: 4px 0 !important; color: var(--hr6-muted) !important; font-size: 12px; line-height: 1.55; }
.hr6-action-item small { color: var(--hr6-warning) !important; font-size: 10px; font-weight: 800; }
.hr6-type { color: var(--hr6-info) !important; font-size: 9px; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.hr6-action-grid, .hr6-task-grid, .hr6-result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hr6-action-grid .hr6-action-card { display: flex; min-height: 210px; flex-direction: column; align-items: flex-start; }
.hr6-action-grid .hr6-action-card .btn { margin-top: auto; }

.hr6-priority { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 12px; align-items: start; padding: 13px 0; border-bottom: 1px solid var(--hr6-line); color: var(--hr6-text) !important; text-decoration: none; }
.hr6-priority:last-child { border-bottom: 0; }
.hr6-priority strong { display: block; color: var(--hr6-ink) !important; font-size: 13px; line-height: 1.4; }
.hr6-priority small { display: block; margin-top: 4px; color: var(--hr6-muted) !important; font-size: 10px; line-height: 1.45; }
.hr6-dot { width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--hr6-muted); box-shadow: 0 0 0 4px rgba(100, 112, 132, .1); }
.hr6-dot.info, .hr6-dot.cyan { background: var(--hr6-cyan); box-shadow: 0 0 0 4px rgba(22, 114, 87, .1); }
.hr6-dot.warning, .hr6-dot.champagne { background: var(--hr6-champagne); box-shadow: 0 0 0 4px rgba(185, 236, 217, .14); }
.hr6-dot.danger { background: var(--hr6-danger); }
.hr6-dot.success { background: var(--hr6-success); }

.hr6-timeline::before { left: 9px; }
.hr6-event { position: relative; display: grid; grid-template-columns: 19px minmax(0, 1fr); gap: 15px; padding-bottom: 22px; }
.hr6-event:last-child { padding-bottom: 0; }
.hr6-event-marker { position: relative; z-index: 1; width: 19px; height: 19px; margin-top: 2px; border: 5px solid var(--hr6-white); border-radius: 50%; background: var(--hr6-muted); box-shadow: 0 0 0 1px var(--hr6-line); }
.hr6-event-marker.cyan { background: var(--hr6-cyan); }.hr6-event-marker.champagne { background: var(--hr6-champagne); }.hr6-event-marker.success { background: var(--hr6-success); }.hr6-event-marker.warning { background: var(--hr6-warning); }.hr6-event-marker.danger { background: var(--hr6-danger); }.hr6-event-marker.violet { background: #7a6397; }
.hr6-event-body { min-width: 0; padding: 0 0 4px; }
.hr6-event-body h3, .hr6-event-body h4 { margin: 3px 0 7px !important; color: var(--hr6-ink) !important; font-size: 15px; line-height: 1.4; }
.hr6-event-body > p { margin: 0 0 9px !important; color: var(--hr6-muted) !important; font-size: 12px; line-height: 1.65; }
.hr6-event-body > a { color: var(--hr6-info) !important; font-size: 11px; font-weight: 800; text-decoration: none; }
.hr6-event-meta, .hr6-event-titleline, .hr6-event-footer, .hr6-card-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 14px; align-items: center; }
.hr6-event-meta { color: var(--hr6-muted) !important; font-size: 9px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.hr6-event-meta time { color: var(--hr6-muted) !important; }
.hr6-event-titleline { align-items: flex-start; }
.hr6-event-footer, .hr6-card-footer { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hr6-line); color: var(--hr6-muted) !important; font-size: 10px; }
.hr6-context, .hr6-next, .hr6-reply, .hr6-context-chip { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--hr6-line); border-radius: 13px; background: var(--hr6-ivory-soft); }
.hr6-context strong, .hr6-next strong, .hr6-reply strong, .hr6-context-chip span { display: block; margin-bottom: 4px; color: var(--hr6-info) !important; font-size: 9px; font-weight: 850; letter-spacing: .07em; text-transform: uppercase; }
.hr6-context p, .hr6-reply p { margin: 0 !important; color: var(--hr6-text) !important; font-size: 12px; line-height: 1.6; }
.hr6-next { border-color: rgba(185, 236, 217, .38); background: rgba(185, 236, 217, .12); }
.hr6-next span { color: var(--hr6-text) !important; font-size: 12px; line-height: 1.6; }

.hr6-filterbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.hr6-filterbar a { padding: 8px 12px; border: 1px solid var(--hr6-line); border-radius: 999px; background: var(--hr6-white); color: var(--hr6-muted) !important; font-size: 10px; font-weight: 800; text-decoration: none; }
.hr6-filterbar a.active { border-color: var(--hr6-ink); background: var(--hr6-ink); color: var(--hr6-ivory) !important; }

.hr6-task-card, .hr6-result-card { display: flex; min-width: 0; min-height: 240px; flex-direction: column; padding: 20px; border: 1px solid var(--hr6-line); border-radius: 18px; background: var(--hr6-white); box-shadow: var(--hr6-shadow-sm); }
.hr6-task-card.is-waiting { border-color: rgba(185, 236, 217, .52); background: linear-gradient(145deg, rgba(185, 236, 217, .1), var(--hr6-white)); }
.hr6-task-card h3, .hr6-result-card h3 { margin: 14px 0 7px !important; color: var(--hr6-ink) !important; font-size: 17px; }
.hr6-task-card > p, .hr6-result-card > p { color: var(--hr6-muted) !important; font-size: 12px; line-height: 1.6; }
.hr6-task-card .hr6-card-footer { margin-top: auto; }
.hr6-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.hr6-facts > div { padding: 12px; border: 1px solid var(--hr6-line); border-radius: 12px; background: var(--hr6-ivory-soft); }
.hr6-facts span { display: block; color: var(--hr6-muted) !important; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.hr6-facts strong { display: block; margin-top: 5px; color: var(--hr6-ink) !important; font-size: 11px; }

.hr6-service-grid { align-items: stretch; }
.hr6-service-grid { gap: 16px !important; }
.hr6-service-card > span:first-child { color: var(--hr6-champagne) !important; font-size: 10px; font-weight: 850; letter-spacing: .13em; }
.hr6-service-card > a { align-self: end; margin-top: auto; color: var(--hr6-info) !important; font-size: 11px; font-weight: 800; text-decoration: none; }
.hr6-service-card small { color: var(--hr6-muted) !important; font-size: 10px; line-height: 1.55; }
.hr6-link-grid { display: grid; gap: 10px; }
.hr6-link-grid a { display: grid; gap: 4px; padding: 13px 14px; border: 1px solid var(--hr6-line); border-radius: 13px; background: var(--hr6-ivory-soft); color: var(--hr6-text) !important; text-decoration: none; }
.hr6-link-grid strong { color: var(--hr6-ink) !important; font-size: 12px; }.hr6-link-grid span { color: var(--hr6-muted) !important; font-size: 10px; }

.hr6-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.hr6-choice-grid label { position: relative; }
.hr6-choice-grid input { position: absolute; opacity: 0; pointer-events: none; }
.hr6-choice-grid span { display: block; min-height: 44px; padding: 11px 12px; border: 1px solid var(--hr6-line); border-radius: 11px; background: var(--hr6-white); color: var(--hr6-text) !important; cursor: pointer; }
.hr6-choice-grid input:checked + span { border-color: var(--hr6-cyan); background: rgba(22, 114, 87, .08); box-shadow: 0 0 0 2px rgba(22, 114, 87, .12); }
.hr6-feedback-list { display: grid; gap: 13px; }
.hr6-feedback-list > article { padding: 16px; border: 1px solid var(--hr6-line); border-radius: 15px; background: var(--hr6-ivory-soft); }
.hr6-feedback-list h4 { margin: 9px 0 !important; color: var(--hr6-ink) !important; font-size: 14px; }
.hr6-feedback-list > article > p { color: var(--hr6-text) !important; font-size: 12px; line-height: 1.6; }
.hr6-opinion-card { align-self: stretch; border-color: rgba(185, 236, 217, .34) !important; background: linear-gradient(145deg, var(--hr6-ink-soft), var(--hr6-ink)) !important; color: var(--hr6-ivory) !important; }
.hr6-opinion-card h3, .hr6-opinion-card p { color: var(--hr6-ivory) !important; }.hr6-opinion-card p { opacity: .68; line-height: 1.65; }
.hr6-opinion-strip { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-top: 20px; }
.hr6-opinion-strip p { margin: 4px 0 0 !important; }
.hr6-empty { align-content: center; gap: 8px; }.hr6-empty strong { color: var(--hr6-ink) !important; font-family: var(--hr6-font-display); font-size: 21px; font-weight: 400; }.hr6-empty p { margin: 0 !important; }.hr6-empty-success { border-color: rgba(22, 131, 91, .22) !important; background: rgba(22, 131, 91, .055) !important; }
.hr6-global-feedback { border-color: var(--hr6-ink) !important; background: var(--hr6-ink) !important; color: var(--hr6-ivory) !important; }

@media (max-width: 960px) {
    .hr6-layout { grid-template-columns: 1fr !important; }
    .hr6-span-12, .hr6-span-8, .hr6-span-7, .hr6-span-6, .hr6-span-5, .hr6-span-4, .hr6-span-3 { grid-column: 1 !important; }
    .hr6-action-grid, .hr6-task-grid, .hr6-result-grid { grid-template-columns: 1fr; }
    .hr6-hero { grid-template-columns: 1fr; }
    .hr6-relationship { min-width: 0; }
}

@media (max-width: 620px) {
    .hr6-panel-head, .hr6-action-item, .hr6-opinion-strip, .hr6-event-footer, .hr6-card-footer { align-items: stretch; flex-direction: column; grid-template-columns: 1fr; }
    .hr6-choice-grid, .hr6-facts { grid-template-columns: 1fr; }
    .hr6-metrics { grid-template-columns: 1fr 1fr; }
    .hr6-metric { min-height: 112px; }
}

/* v6 final compatibility and accessibility layer -------------------- */

body:not(.hr6-login-body) .btn {
    border: 1px solid var(--hr6-ink) !important;
    background: var(--hr6-ink) !important;
    box-shadow: 0 8px 20px rgba(4, 13, 26, .12) !important;
    color: var(--hr6-ivory) !important;
}

body:not(.hr6-login-body) .btn:hover {
    border-color: var(--hr6-ink-soft) !important;
    background: var(--hr6-ink-soft) !important;
    color: var(--hr6-white) !important;
    filter: none !important;
}

body:not(.hr6-login-body) .btn.secondary {
    border-color: rgba(4, 13, 26, .24) !important;
    background: var(--hr6-white) !important;
    box-shadow: none !important;
    color: var(--hr6-ink) !important;
}

body:not(.hr6-login-body) .btn.secondary:hover {
    border-color: var(--hr6-ink) !important;
    background: var(--hr6-ivory-soft) !important;
    color: var(--hr6-ink) !important;
}

body:not(.hr6-login-body) .btn.danger {
    border-color: #8f2730 !important;
    background: var(--hr6-danger) !important;
    box-shadow: 0 8px 20px rgba(180, 60, 67, .18) !important;
    color: var(--hr6-white) !important;
}

body:not(.hr6-login-body) .btn.danger:hover {
    border-color: #731d25 !important;
    background: #942c34 !important;
    color: var(--hr6-white) !important;
}

body:not(.hr6-login-body) .btn.warning {
    border-color: #7f4009 !important;
    background: var(--hr6-warning) !important;
    color: var(--hr6-white) !important;
}

body:not(.hr6-login-body) .btn.warning:hover {
    border-color: #633005 !important;
    background: #7f4009 !important;
    color: var(--hr6-white) !important;
}

body:not(.hr6-login-body) .hr6-opinion-card .btn {
    border-color: var(--hr6-ivory) !important;
    background: var(--hr6-ivory) !important;
    color: var(--hr6-ink) !important;
}

body:not(.hr6-login-body) .hr6-opinion-card .btn:hover {
    border-color: var(--hr6-champagne-soft) !important;
    background: var(--hr6-champagne-soft) !important;
    color: var(--hr6-ink) !important;
}

body:not(.hr6-login-body) input[type="checkbox"],
body:not(.hr6-login-body) input[type="radio"] {
    width: 18px !important;
    min-width: 18px !important;
    height: 18px !important;
    min-height: 0 !important;
    flex: 0 0 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 4px !important;
    box-shadow: none !important;
    accent-color: var(--hr6-cyan);
}

body:not(.hr6-login-body) input[type="radio"] {
    border-radius: 50% !important;
}

body:not(.hr6-login-body) :where(a, button, input, select, textarea, summary):focus-visible {
    outline: 3px solid rgba(0, 151, 194, .72) !important;
    outline-offset: 3px !important;
}

body:not(.hr6-login-body) select option {
    background: var(--hr6-white);
    color: var(--hr6-text);
}

.hr6-choice-fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.hr6-choice-fieldset legend {
    margin: 0;
    padding: 0;
    color: var(--hr6-text) !important;
    font-size: 11px;
    font-weight: 800;
}

.hr6-choice-grid input:focus-visible + span {
    border-color: var(--hr6-cyan) !important;
    outline: 3px solid rgba(0, 151, 194, .55) !important;
    outline-offset: 2px !important;
}

.hr6-service-card-number,
.hr6-service-card > span:first-child {
    color: #765f32 !important;
}

.hr6-timeline-compact .hr6-event {
    padding-bottom: 15px;
}

.hr6-timeline-compact .hr6-event-body > p {
    margin-bottom: 6px !important;
}

.hr6-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
}

.hr6-inline-actions form {
    margin: 0;
}

.hr6-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--hr6-line);
    color: var(--hr6-muted);
    font-size: 13px;
    font-weight: 750;
}

.hr6-pagination > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hr6-hero-scope {
    border-color: rgba(185, 236, 217, .34) !important;
    background:
        radial-gradient(circle at 88% 20%, rgba(185, 236, 217, .17), transparent 22rem),
        linear-gradient(140deg, var(--hr6-ink-soft), var(--hr6-ink)) !important;
}

.hr6-mobile-menu-toggle {
    display: none !important;
}

body:not(.hr6-login-body) #hubSidebar #hubMenuSearchWrap.hr-menu-search {
    border: 1px solid rgba(242, 238, 230, .14) !important;
    background: rgba(242, 238, 230, .045) !important;
    box-shadow: none !important;
}

body:not(.hr6-login-body) #hubSidebar #hubMenuSearchWrap input {
    border-color: rgba(242, 238, 230, .19) !important;
    background: rgba(242, 238, 230, .07) !important;
    color: var(--hr6-ivory) !important;
}

body:not(.hr6-login-body) #hubSidebar #hubMenuSearchWrap input::placeholder {
    color: rgba(242, 238, 230, .6) !important;
    opacity: 1;
}

body:not(.hr6-login-body) #hubSidebar #hubMenuSearchWrap input:focus-visible {
    border-color: var(--hr6-cyan) !important;
    outline: 3px solid rgba(22, 114, 87, .2) !important;
    outline-offset: 1px !important;
    box-shadow: none !important;
}

body:not(.hr6-login-body) #hubSidebar #hubMenuSearchWrap small {
    color: rgba(242, 238, 230, .58) !important;
}

@media (max-width: 1080px) {
    body:not(.hr6-login-body) #hubSidebar {
        position: relative !important;
        top: auto !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    body:not(.hr6-login-body) #hubSidebar .brand {
        min-height: 68px;
        padding-right: 122px !important;
    }

    body:not(.hr6-login-body) #hubSidebar.hr6-menu-ready .hr6-mobile-menu-toggle {
        position: absolute;
        z-index: 12;
        top: 27px;
        right: 28px;
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 9px;
        min-height: 42px;
        padding: 9px 13px;
        border: 1px solid rgba(22, 114, 87, .34);
        border-radius: 999px;
        background: rgba(22, 114, 87, .09);
        color: var(--hr6-ivory);
        font: inherit;
        font-size: 12px;
        font-weight: 850;
        letter-spacing: .03em;
        cursor: pointer;
    }

    .hr6-mobile-menu-icon,
    .hr6-mobile-menu-icon::before,
    .hr6-mobile-menu-icon::after {
        display: block;
        width: 17px;
        height: 2px;
        border-radius: 999px;
        background: var(--hr6-cyan);
        transition: transform .18s ease, opacity .18s ease;
    }

    .hr6-mobile-menu-icon {
        position: relative;
    }

    .hr6-mobile-menu-icon::before,
    .hr6-mobile-menu-icon::after {
        position: absolute;
        left: 0;
        content: "";
    }

    .hr6-mobile-menu-icon::before { top: -5px; }
    .hr6-mobile-menu-icon::after { top: 5px; }
    #hubSidebar.hr6-menu-open .hr6-mobile-menu-icon { background: transparent; }
    #hubSidebar.hr6-menu-open .hr6-mobile-menu-icon::before { top: 0; transform: rotate(45deg); }
    #hubSidebar.hr6-menu-open .hr6-mobile-menu-icon::after { top: 0; transform: rotate(-45deg); }

    body:not(.hr6-login-body) #hubSidebar.hr6-menu-ready:not(.hr6-menu-open) > .user-card,
    body:not(.hr6-login-body) #hubSidebar.hr6-menu-ready:not(.hr6-menu-open) > #hubMenuSearchWrap,
    body:not(.hr6-login-body) #hubSidebar.hr6-menu-ready:not(.hr6-menu-open) > #hubMenu,
    body:not(.hr6-login-body) #hubSidebar.hr6-menu-ready:not(.hr6-menu-open) > .logout {
        display: none !important;
    }

    body:not(.hr6-login-body) #hubSidebar.hr6-menu-open > #hubMenu {
        display: block !important;
        flex: none !important;
        max-height: min(66vh, 680px) !important;
        overflow-y: auto !important;
    }
}

@media (max-width: 620px) {
    .hr6-pagination {
        align-items: stretch;
        flex-direction: column;
    }

    .hr6-login-footer {
        display: flex !important;
        margin-top: 18px;
        padding: 0 18px max(20px, env(safe-area-inset-bottom));
    }

    body:not(.hr6-login-body) #hubSidebar .brand {
        margin-right: 10px !important;
        margin-left: 10px !important;
        padding-right: 105px !important;
    }

    body:not(.hr6-login-body) #hubSidebar.hr6-menu-ready .hr6-mobile-menu-toggle {
        top: 27px;
        right: 20px;
        padding-right: 11px;
        padding-left: 11px;
    }
}
