:root {
    color-scheme: light;
    --yr-canvas: #f0f3f7;
    --yr-surface: #fff;
    --yr-field: #fdfefe;
    --yr-text: #142238;
    --yr-muted: #4f5c6e;
    --yr-border: #aab6c5;
    --yr-divider: #dce3eb;
    --yr-link: #335d17;
    --yr-focus: #507f23;
    --yr-error: #85282f;
    --yr-error-bg: #fcecee;
    --yr-success: #2b591b;
    --yr-success-bg: #e9f7dc;
    --yr-neutral-bg: #eef2f6;
    --yr-warning: #704217;
    --yr-warning-bg: #fff1d8;
    --yr-shadow: 0 12px 36px #101d3221;
    --yr-card-shadow: 0 2px 3px #14223807;
    --yr-navy: #111f32;
    --yr-lime: #bded58;
    --yr-lime-hover: #d1f881;
}

:root[data-yr-theme="dark"] {
    color-scheme: dark;
    --yr-canvas: #101822;
    --yr-surface: #182433;
    --yr-field: #111c29;
    --yr-text: #eff3f8;
    --yr-muted: #aebdce;
    --yr-border: #708298;
    --yr-divider: #344557;
    --yr-link: #c8ef82;
    --yr-focus: #c8ef82;
    --yr-error: #ffc2c6;
    --yr-error-bg: #412831;
    --yr-success: #d2f5a2;
    --yr-success-bg: #26361f;
    --yr-neutral-bg: #273647;
    --yr-warning: #ffda97;
    --yr-warning-bg: #453625;
    --yr-shadow: 0 12px 36px #03081062;
}

@media (prefers-color-scheme: dark) {
    :root[data-yr-theme="system"] {
        color-scheme: dark;
        --yr-canvas: #101822;
        --yr-surface: #182433;
        --yr-field: #111c29;
        --yr-text: #eff3f8;
        --yr-muted: #aebdce;
        --yr-border: #708298;
        --yr-divider: #344557;
        --yr-link: #c8ef82;
        --yr-focus: #c8ef82;
        --yr-error: #ffc2c6;
        --yr-error-bg: #412831;
        --yr-success: #d2f5a2;
        --yr-success-bg: #26361f;
        --yr-neutral-bg: #273647;
        --yr-warning: #ffda97;
        --yr-warning-bg: #453625;
        --yr-shadow: 0 12px 36px #03081062;
    }
}

.yr-app {
    margin: 0;
    background: var(--yr-canvas);
    color: var(--yr-text);
    font-family: Inter, 'Segoe UI', system-ui, sans-serif;
}

.yr-app h1, .yr-app h2, .yr-app p { color: inherit; }
.yr-app [hidden] { display: none !important; }
.yr-app a { color: var(--yr-link); }
.yr-app a:not(.yr-brand) { text-decoration: underline !important; text-underline-offset: .2em; }
.yr-app :focus-visible { outline: 2px solid var(--yr-focus); outline-offset: 3px; }
.yr-app .form-label { font-size: .875rem; font-weight: 650; }

.yr-app .form-control,
.yr-app .form-select {
    min-height: 46px;
    border: 1px solid var(--yr-border);
    border-radius: 8px;
    background-color: var(--yr-field);
    color: var(--yr-text);
    font: inherit;
}

.yr-app .form-select { appearance: auto; background-image: none; padding: .45rem .65rem; }
.yr-app .form-control:focus, .yr-app .form-select:focus { border-color: var(--yr-focus); box-shadow: none; }
.yr-app .form-control:autofill { -webkit-text-fill-color: var(--yr-text); box-shadow: inset 0 0 0 100px var(--yr-field); }
.yr-app .form-check-input { background-color: var(--yr-field); border-color: var(--yr-border); }
.yr-app .form-check-input:checked { background-color: #3e6c20; border-color: #3e6c20; }
.yr-app .btn { min-height: 44px; border-radius: 8px; font-family: inherit; font-weight: 700; }
.yr-app .yr-primary { background: var(--yr-lime); color: #182508; border: 1px solid #87a839; }
.yr-app .yr-primary:hover { background: var(--yr-lime-hover); color: #182508; }
.yr-app .yr-secondary, .yr-app .yr-menu-toggle { background: var(--yr-surface); border: 1px solid var(--yr-border); color: var(--yr-text); }
.yr-app .yr-secondary:hover, .yr-app .yr-menu-toggle:hover { background: var(--yr-canvas); }
.yr-app .btn-link { color: var(--yr-link); }

.yr-auth-header {
    max-width: 1480px;
    margin: 0 auto;
    padding: 22px clamp(18px, 6vw, 86px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.yr-app .yr-brand {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 9px;
    color: inherit;
    text-decoration: none !important;
    font-size: 1.35rem;
    font-weight: 760;
    letter-spacing: -.055em;
}

.yr-theme-control {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    color: var(--yr-muted);
}

.yr-theme-control .form-select { min-height: 44px; min-width: 92px; }
.yr-auth-main { display: grid; place-items: center; min-height: calc(100svh - 100px); padding: 14px 18px 46px; }

.yr-auth-card {
    width: min(100%, 920px);
    display: grid;
    grid-template-columns: 42% minmax(0, 1fr);
    background: var(--yr-surface);
    color: var(--yr-text);
    border: 1px solid var(--yr-divider);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 72px #080f1e24;
}

.yr-auth-brand {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: end;
    min-height: 450px;
    overflow: hidden;
    padding: clamp(26px, 4.5vw, 58px);
    background: radial-gradient(ellipse at 94% 0%, #30465e 0, #172b43 52%, var(--yr-navy) 100%);
    color: #f4f8fc;
}

.yr-brand-copy { z-index: 1; }
.yr-brand-copy img { border: 1px solid #50708c; border-radius: 16px; margin-bottom: 22px; }
.yr-brand-copy p { margin: 0; font-size: clamp(2.1rem, 3vw, 3.3rem); font-weight: 740; letter-spacing: -.065em; line-height: 1.03; }
.yr-brand-copy span { color: var(--yr-lime); }
.yr-graphic { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.yr-graphic i { position: absolute; width: 340px; height: 230px; inset: -49px auto auto 72px; border: 2px solid #9cb5d14d; border-radius: 28px; transform: rotate(-36deg) skewX(18deg); }
.yr-graphic i:nth-child(2) { translate: 12px 42px; }
.yr-graphic i:nth-child(3) { translate: 24px 84px; }
.yr-graphic i:nth-child(4) { translate: 36px 126px; border-color: #bded587d; }

.yr-auth-panel { align-self: center; min-width: 0; padding: clamp(24px, 4.3vw, 62px); }
.yr-auth-panel h1, .yr-main h1 { margin: 0 0 .35em; font-size: clamp(2rem, 3.5vw, 2.65rem); font-weight: 740; letter-spacing: -.052em; line-height: 1.08; }
.yr-app .yr-intro { color: var(--yr-muted); margin: 0 0 1.5rem; }
.yr-password { position: relative; }
.yr-password:has(button:not([hidden])) .form-control { padding-inline-end: 72px; }
.yr-app .yr-show-password { position: absolute; inset: 1px 1px 1px auto; color: var(--yr-link); padding: 0 12px; font-size: .875rem; }
.yr-auth-options, .yr-remember { display: flex; align-items: center; gap: 8px; }
.yr-auth-options { justify-content: space-between; flex-wrap: wrap; }
.yr-auth-options > *, .yr-back a { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; font-weight: 650; }
.yr-remember { cursor: pointer; }
.yr-remember input { margin: 0; }
.yr-app .yr-hint { margin: 0 0 1.15rem; color: var(--yr-muted); font-size: .8rem; }
.yr-back { margin: .6rem 0 0; }
.yr-alert { margin-bottom: 1.15rem; padding: 11px 14px; border-radius: 8px; background: var(--yr-error-bg); color: var(--yr-error); }
.yr-app p.yr-alert { color: var(--yr-error); }
.yr-alert-success { background: var(--yr-success-bg); color: var(--yr-success); }

.yr-skip { position: absolute; z-index: 50; background: var(--yr-surface); padding: 10px 18px; }

.yr-shell {
    --yr-sidebar-width: 218px;
    --yr-content-gutter: clamp(24px, 3.4vw, 52px);
    display: grid;
    grid-template-columns: var(--yr-sidebar-width) minmax(0, 1fr);
    min-height: 100svh;
}

.yr-shell .yr-sidebar {
    position: sticky;
    inset: 0 auto auto 0;
    width: auto;
    height: 100svh;
    overflow-y: auto;
    z-index: 5;
    background: #101b28;
    color: #f4f8fc;
    padding: 23px 14px;
    border-right: 1px solid #273443;
}

.yr-sidebar .yr-brand { margin: 0 11px 27px; font-size: 1.45rem; }
.yr-nav-list { display: grid; gap: 4px; list-style: none; margin: 0; padding: 0; }
.yr-sidebar .yr-nav-secondary { margin-top: 15px; padding-top: 15px; border-top: 1px solid #2b3848; }
.yr-nav-list li { min-width: 0; }
.yr-nav-list svg, .yr-nav-list i { width: 18px; height: 18px; flex: 0 0 18px; }
.yr-app .yr-nav-list a, .yr-nav-list button {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 46px;
    padding: 8px 11px;
    border: 0;
    border-radius: 9px;
    color: #b8c6d6;
    background: transparent;
    text-decoration: none !important;
    font: inherit;
    font-weight: 620;
    font-size: .875rem;
}
.yr-app .yr-nav-list a:hover, .yr-nav-list button:hover { color: #f2f6fb; background: #1d2b3b; }
.yr-app .yr-nav-list a[aria-current], .yr-nav-list button[aria-expanded="true"] {
    color: #d5fa89;
    background: #29392f;
}
.yr-nav-list a[href*="view=new"] svg { color: #bce96b; }
.yr-sidebar :focus-visible { outline-color: #d5fa89; }
.yr-more-toggle { display: none; }

.yr-shell .yr-workspace { min-width: 0; width: auto; padding: 0; }
.yr-shell .yr-workspace .yr-top-bar {
    position: sticky !important;
    top: 0;
    z-index: 4;
    inset-inline: auto;
    height: auto;
    min-height: 72px;
    padding: 9px max(var(--yr-content-gutter), calc((100% - 1440px) / 2 + var(--yr-content-gutter)));
    background: var(--yr-surface);
    border-bottom: 1px solid var(--yr-divider);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.yr-context { display: flex; align-items: center; gap: 12px; min-width: 0; }
.yr-context-text { display: grid; min-width: 0; overflow-wrap: anywhere; line-height: 1.25; }
.yr-context-text span { font-size: .775rem; color: var(--yr-muted); font-weight: 550; }
.yr-context-text strong { font-size: 1rem; margin-top: 3px; }
.yr-company-logo {
    width: 82px;
    height: 44px;
    flex-shrink: 0;
    border: 1px solid #dce2e8;
    border-radius: 9px;
    background: #fff;
    object-fit: contain;
}
.yr-yard-icon, .yr-account-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 9px;
    color: var(--yr-success);
    background: var(--yr-success-bg);
}
.yr-yard-icon svg, .yr-account svg { width: 17px; height: 17px; }
.yr-account-photo { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.yr-account { position: relative; margin-inline-start: auto; }
.yr-account summary {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 4px 8px;
    color: var(--yr-text);
    border-radius: 10px;
    font-size: .875rem;
    font-weight: 650;
    list-style: none;
    cursor: pointer;
}
.yr-account summary::-webkit-details-marker { display: none; }
.yr-account summary:hover, .yr-account[open] summary { background: var(--yr-canvas); }
.yr-account-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(220px, 78vw);
    display: grid;
    gap: 12px;
    padding: 14px;
    color: var(--yr-text);
    background: var(--yr-surface);
    border: 1px solid var(--yr-divider);
    border-radius: 13px;
    box-shadow: var(--yr-shadow);
}
.yr-account-links { display: grid; gap: 3px; }
.yr-app .yr-account-links a { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 7px 9px; border-radius: 8px; color: var(--yr-text); text-decoration: none !important; }
.yr-app .yr-account-links a:hover, .yr-app .yr-account-links a[aria-current] { background: var(--yr-canvas); }
.yr-dashboard-card .yr-theme-control { justify-content: space-between; max-width: 19rem; }
.yr-dashboard-card .yr-theme-control .form-select { width: auto; }

.yr-shell .yr-main {
    width: min(100%, 1440px);
    margin: 0 auto;
    padding: clamp(25px, 4vw, 46px) var(--yr-content-gutter) 56px;
}
.yr-main-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 14px 24px; margin-bottom: 23px; }
.yr-main-heading h1 { margin: 0; font-size: clamp(1.9rem, 3vw, 2.65rem); }
.yr-yard-form { min-width: 0; max-width: 100%; }
.yr-yard-controls { display: flex; gap: 8px; }
.yr-yard-controls select { min-width: 0; }
.yr-dashboard-card {
    padding: clamp(16px, 2.2vw, 27px);
    border: 1px solid var(--yr-divider);
    border-radius: 15px;
    background: var(--yr-surface);
    color: var(--yr-text);
    box-shadow: var(--yr-card-shadow);
    overflow-wrap: anywhere;
}
.yr-dashboard-card h2 { margin: 0 0 12px; font-size: clamp(1.15rem, 2vw, 1.42rem); font-weight: 720; letter-spacing: -.03em; }
.yr-app .yr-dashboard-card h3 { color: var(--yr-text); overflow-wrap: anywhere; font-size: 1.03rem; }
.yr-app .yr-dashboard-card p { color: var(--yr-muted); margin: 0; }
.yr-app .yr-dashboard-card p + p { margin-top: .8rem; }
.yr-company-back { margin: 0 0 14px; }
.yr-app .yr-company-back a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: var(--yr-muted);
    font-weight: 620;
    text-decoration: none !important;
}
.yr-app .yr-company-back a:hover { color: var(--yr-link); }
.yr-company-back svg, .yr-overview svg, .yr-company-sections svg { width: 18px; height: 18px; flex: none; }
.yr-overview {
    padding: clamp(20px, 4vw, 36px);
    background: linear-gradient(115deg, var(--yr-surface) 48%, var(--yr-success-bg));
}
.yr-overview-main, .yr-company-panel-header, .yr-profile-card-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 20px;
}
.yr-overview-identity { display: flex; align-items: center; gap: clamp(12px, 2.5vw, 22px); min-width: 0; }
.yr-company-mark {
    width: clamp(65px, 10vw, 106px);
    height: clamp(52px, 7vw, 76px);
    flex: none;
    background: #fff;
    border: 1px solid var(--yr-divider);
    border-radius: 12px;
    padding: 4px;
    object-fit: contain;
}
.yr-company-mark-empty {
    display: grid;
    place-items: center;
    background: var(--yr-success-bg);
    color: var(--yr-success);
}
.yr-company-mark-empty svg { width: 24px; height: 24px; }
.yr-overview h1 {
    margin: 0 0 6px;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 740;
    letter-spacing: -.045em;
    line-height: 1.1;
}
.yr-company-hero-edit, .yr-company-panel-header > a { display: inline-flex; align-items: center; gap: 8px; }
.yr-section-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 21px;
    padding-top: 13px;
    border-top: 1px solid var(--yr-divider);
}
.yr-app .yr-section-links a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border-radius: 8px;
    color: var(--yr-text);
    font-size: .875rem;
    font-weight: 650;
    text-decoration: none !important;
}
.yr-app .yr-section-links a:hover { background: var(--yr-canvas); }
.yr-section-links span {
    min-width: 23px;
    padding: 2px 5px;
    border-radius: 20px;
    background: var(--yr-neutral-bg);
    color: var(--yr-muted);
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.yr-company-sections { display: grid; gap: 16px; align-items: start; }
.yr-company-sections > section { min-width: 0; scroll-margin-top: 92px; }
.yr-company-sections > section:target { border-color: var(--yr-focus); }
.yr-company-panel-header { margin-bottom: 16px; }
.yr-company-panel-header h2, .yr-company-panel-header .yr-actions { margin: 0; }
.yr-company-list { margin: 0; }
.yr-company-row {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 12px;
    padding: 14px 0;
    border-top: 1px solid var(--yr-divider);
}
.yr-company-row:last-child { padding-bottom: 0; }
.yr-company-row-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--yr-neutral-bg);
    color: var(--yr-muted);
}
.yr-company-row-body, .yr-company-row-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 9px; }
#customers .yr-company-row-body { display: grid; }
.yr-company-row-meta, .yr-company-email { color: var(--yr-muted); font-size: .85rem; }
.yr-company-row .btn { padding-inline: 10px; }
.yr-company-status[data-status="inactive"] { background: var(--yr-neutral-bg); color: var(--yr-muted); }
.yr-company-status[data-status="locked"] { background: var(--yr-error-bg); color: var(--yr-error); }
.yr-company-status[data-status="pending"] { background: var(--yr-warning-bg); color: var(--yr-warning); }
.yr-company-empty {
    padding: clamp(16px, 3vw, 25px);
    background: var(--yr-field);
    border: 1px dashed var(--yr-divider);
    border-radius: 12px;
}
.yr-company-empty .yr-company-row-icon { margin-bottom: 9px; }
.yr-app .yr-company-empty strong { color: var(--yr-text); }
.yr-app .yr-company-empty p + p { margin-top: 4px; }
.yr-company-empty .yr-actions { margin-bottom: 0; }

.yr-profile-photo {
    width: clamp(64px, 11vw, 96px);
    aspect-ratio: 1;
    height: auto;
    flex: none;
    border-radius: 14px;
    object-fit: cover;
    background: var(--yr-success-bg);
    color: var(--yr-success);
}
.yr-profile-avatar { display: grid; place-items: center; }
.yr-profile-avatar svg { width: 27px; height: 27px; }
.yr-profile-overview p { overflow-wrap: anywhere; }
.yr-profile-panels, .yr-profile-account { display: grid; gap: 16px; align-items: start; }
.yr-profile-panels section { min-width: 0; }
.yr-profile-panels [id] { scroll-margin-top: 92px; }
.yr-profile-list { margin-top: 14px; }
.yr-profile-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 12px 0;
    border-top: 1px solid var(--yr-divider);
}
.yr-profile-row strong { min-width: 0; }
.yr-profile-row:last-child { padding-bottom: 0; }
.yr-profile-device {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: none;
    border-radius: 10px;
    background: var(--yr-neutral-bg);
    color: var(--yr-muted);
}
.yr-profile-device svg { width: 18px; height: 18px; }
.yr-profile-card-heading h2 { margin: 0; }
.yr-profile-session-details { flex: 1 1 165px; }
.yr-profile-session-details > div { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; }
.yr-app .yr-profile-hint { font-size: .85rem; line-height: 1.45; }
.yr-profile-row .yr-profile-hint, .yr-profile-panels .form-group .yr-profile-hint { margin-top: 5px; }
.yr-pill.yr-profile-session-ended { background: var(--yr-neutral-bg); color: var(--yr-muted); }

@media (min-width: 1000px) {
    .yr-profile-panels { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .yr-profile-sessions { grid-column: 1 / -1; }
}
@media (min-width: 1180px) {
    .yr-company-sections { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); }
}
@media (max-width: 440px) {
    .yr-company-row-icon { display: none; }
    .yr-company-empty .yr-company-row-icon { display: grid; }
    .yr-company-row { grid-template-columns: minmax(0, 1fr) auto; }
    .yr-section-links { gap: 4px; }
    .yr-section-links a { padding-inline: 5px; }
}

.yr-dashboard-card .form-group { margin-bottom: 1rem; max-width: 36rem; }
.yr-dashboard-card .form-group label { display: block; margin-bottom: .35rem; font-weight: 620; }
.yr-yard-role { display: inline-flex; padding: 5px 10px; border-radius: 20px; background: var(--yr-success-bg); color: var(--yr-success); font-size: .78rem; font-weight: 680; }
.yr-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; margin: .9rem 0; }
.yr-actions .btn { display: inline-flex; gap: 8px; align-items: center; }
.yr-actions svg { width: 17px; height: 17px; }
.yr-app a.btn { text-decoration: none !important; }
.yr-main > .yr-dashboard-card, .yr-main form > .yr-dashboard-card { margin-bottom: 1rem; }
.yr-metrics { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(178px,100%),1fr)); gap: 14px; margin: 1rem 0; }
.yr-metrics .yr-dashboard-card { flex-direction: column-reverse; gap: 6px; }
.yr-metrics span { color: var(--yr-muted); font-size: .875rem; }
.yr-metrics strong { font-size: 1.95rem; font-variant-numeric: tabular-nums; letter-spacing: -.045em; line-height: 1; }
.yr-table { --bs-table-color: var(--yr-text); --bs-table-border-color: var(--yr-divider); color: var(--yr-text); margin-top: .8rem; }
.yr-table td, .yr-table th { padding: 11px 13px; background: var(--yr-surface); color: var(--yr-text); vertical-align: middle; }
.yr-table thead th { background: var(--yr-canvas); color: var(--yr-muted); font-size: .8rem; white-space: nowrap; }

.yr-filters { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: end; margin: .65rem 0 .9rem; }
.yr-filters label { min-width: min(134px,100%); max-width: 100%; flex: 1 1 134px; font-size: .84rem; font-weight: 650; }
.yr-filters label .form-control, .yr-filters label .form-select { margin-top: .32rem; }
.yr-app .yr-filters .form-control, .yr-app .yr-filters .form-select { font-weight: 500; }
.yr-filters .yr-search { flex: 3 1 235px; }
.yr-search-field { display: block; position: relative; }
.yr-search-field svg { position: absolute; top: 50%; left: 12px; width: 17px; height: 17px; transform: translateY(-50%); color: var(--yr-muted); pointer-events: none; }
.yr-search-field input { padding-inline-start: 39px; }
.yr-filters .yr-search-field input { margin-top: .32rem; }
.yr-app input.form-control, .yr-app select.form-select { color: var(--yr-text) !important; }
.yr-app .form-control::placeholder { color: var(--yr-muted); opacity: 1; }
.yr-app .yr-location-filters { gap: 6px; margin: 0 0 12px; }
.yr-app .yr-location-filters .btn { min-height: 38px; border-radius: 22px; font-size: .82rem; }
.yr-app .yr-location-filters [aria-pressed="true"] { background: var(--yr-success-bg); border-color: var(--yr-focus); color: var(--yr-success); }
.yr-stock-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-block: 4px 10px; }
.yr-app .yr-result-count { font-size: .825rem; font-weight: 610; }
.yr-stock-view { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--yr-divider); border-radius: 11px; background: var(--yr-canvas); }
.yr-app .yr-stock-view .btn { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 5px 10px; color: var(--yr-muted); font-size: .83rem; }
.yr-stock-view svg { width: 15px; height: 15px; }
.yr-app .yr-stock-view .btn:hover { color: var(--yr-text); }
.yr-app .yr-stock-view .btn[aria-pressed="true"] { color: var(--yr-success); background: var(--yr-success-bg); border-color: var(--yr-focus); }
.yr-stock-results { display: grid; grid-template-columns: minmax(0, 1fr); }
.yr-stock-item { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; align-items: center; gap: 8px 16px; padding: 12px 10px; border-block-start: 1px solid var(--yr-divider); }
.yr-stock-identity { display: grid; gap: 4px; min-width: 0; }
.yr-stock-tags { margin: 0; color: var(--yr-muted); font-size: .78rem; overflow-wrap: anywhere; }
.yr-stock-tags span { font-weight: 650; }
.yr-item-editor { max-width: 920px; }
.yr-item-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 20px; }
.yr-item-form .form-group { margin: 0; max-width: none; min-width: 0; }
.yr-app .yr-item-form textarea.form-control { color: var(--yr-text) !important; }
.yr-item-form-wide { grid-column: 1 / -1; }
.yr-app .yr-item-help { margin: 6px 0 0; color: var(--yr-muted); font-size: .8rem; line-height: 1.5; }
.yr-item-context { padding: 10px 12px; background: var(--yr-canvas); border-radius: 8px; overflow-wrap: anywhere; }
.yr-stock-code { color: var(--yr-muted); font: 650 .8rem/1.2 'IBM Plex Mono', Consolas, monospace; overflow-wrap: anywhere; }
.yr-app .yr-stock-item h3 { margin: 0; line-height: 1.35; font-weight: 690; font-size: .97rem; }
.yr-stock-place { display: flex; align-items: baseline; gap: 5px; font-size: .81rem; }
.yr-stock-place svg { align-self: start; flex: 0 0 13px; width: 13px; height: 13px; margin-top: 4px; }
.yr-stock-item > .yr-pill { justify-self: end; }
.yr-stock-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; font-size: .83rem; }
.yr-stock-actions summary { min-height: 38px; padding: 8px 0; }
.yr-stock-actions details[open] { flex-basis: 100%; padding-bottom: 6px; }
.yr-quantity { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; padding: 6px 0 0; }
.yr-quantity input { max-width: 6rem; }
.yr-item-history { display: inline-flex; align-items: center; min-height: 32px; }
#yr-record-movement { scroll-margin-top: 92px; }

:root[data-yr-stock-layout="grid"] .yr-stock-results { grid-template-columns: repeat(auto-fill,minmax(min(258px,100%),1fr)); gap: 14px; }
:root[data-yr-stock-layout="grid"] .yr-stock-item { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 10px; padding: 15px; border: 1px solid var(--yr-divider); background: var(--yr-field); border-radius: 12px; }
:root[data-yr-stock-layout="grid"] .yr-stock-item:hover { border-color: var(--yr-border); }
:root[data-yr-stock-layout="grid"] .yr-stock-item > .yr-pill { justify-self: start; }
:root[data-yr-stock-layout="grid"] .yr-stock-actions { display: block; border-top: 1px solid var(--yr-divider); padding-top: 4px; }
:root[data-yr-stock-layout="grid"] .yr-stock-actions details + details { border-top: 1px solid var(--yr-divider); }
.yr-pill { display: inline-flex; background: var(--yr-success-bg); color: var(--yr-success); border-radius: 20px; padding: .23rem .52rem; font-weight: 690; font-size: .74rem; line-height: 1.2; }
.yr-pill[data-stock-status="Not counted"] { background: var(--yr-neutral-bg); color: var(--yr-muted); }
.yr-pill[data-stock-status="Out of stock"] { background: var(--yr-error-bg); color: var(--yr-error); }
.yr-pill[data-stock-status="Low stock"] { background: var(--yr-warning-bg); color: var(--yr-warning); }
.yr-location-heading { margin: 1rem 0 .6rem; font-size: 1.35rem; }
.yr-main:has(.yr-cart) { padding-bottom: 125px; }
.yr-cart {
    position: fixed;
    right: var(--yr-content-gutter);
    bottom: 16px;
    width: min(390px, calc(100% - 2 * var(--yr-content-gutter)));
    padding: 12px 15px;
    border: 1px solid var(--yr-border);
    border-radius: 12px;
    background: var(--yr-surface);
    box-shadow: var(--yr-shadow);
    z-index: 3;
}
.yr-cart summary, .yr-stock-item summary { cursor: pointer; font-weight: 680; }
.yr-cart summary { min-height: 30px; line-height: 30px; }
.yr-cart summary span { color: var(--yr-success); }
.yr-cart ul { padding-left: 1.2rem; max-height: 22vh; overflow-y: auto; }
.yr-cart ul:empty { display: none; }
.yr-cart li { padding: .25rem 0; }
.yr-cart .btn { margin-top: .4rem; }
.yr-detail { margin-bottom: 0; }

@media (max-width: 860px) {
    .yr-shell { --yr-content-gutter: clamp(14px, 4vw, 26px); display: block; }
    .yr-shell .yr-sidebar:not(:has([data-yr-collapsible])) {
        position: static;
        height: auto;
    }
    .yr-sidebar .yr-brand { display: none; }
    .yr-shell .yr-sidebar:has([data-yr-collapsible]) {
        position: fixed;
        inset: auto 0 0;
        height: auto;
        width: 100%;
        overflow: visible;
        padding: 4px 10px max(5px, env(safe-area-inset-bottom));
        border: 0;
        border-top: 1px solid #374451;
        box-shadow: 0 -5px 22px #0b142b25;
    }
    .yr-nav-primary { grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 3px; }
    .yr-app .yr-nav-primary a, .yr-nav-primary button {
        flex-direction: column;
        justify-content: center;
        gap: 3px;
        min-height: 51px;
        width: 100%;
        padding: 4px 2px;
        font-size: clamp(.65rem, 2.8vw, .75rem);
        line-height: 1.13;
        text-align: center;
    }
    .yr-nav-primary svg { width: 19px; height: 19px; }
    .yr-more-toggle { display: block; }
    .yr-sidebar .yr-nav-secondary[data-yr-collapsible] {
        position: absolute;
        right: 10px;
        bottom: calc(100% + 6px);
        max-height: min(58vh, 420px);
        overflow-y: auto;
        width: min(275px, calc(100vw - 20px));
        margin: 0;
        padding: 6px;
        background: #101b28;
        border: 1px solid #374451;
        border-radius: 14px;
        box-shadow: var(--yr-shadow);
    }
    .yr-sidebar .yr-nav-secondary[data-yr-collapsible]:not(.yr-nav-open) { display: none; }
    .yr-shell .yr-workspace .yr-top-bar { min-height: 60px; }
    .yr-shell .yr-main { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
    .yr-shell .yr-main:has(.yr-cart) { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
    .yr-cart { bottom: calc(66px + env(safe-area-inset-bottom)); }
    .yr-account-label { display: none; }
    .yr-account summary { gap: 5px; }
}

@media (max-width: 600px) {
    .yr-item-form-grid { grid-template-columns: minmax(0, 1fr); }
    .yr-auth-header { padding: 14px 18px; }
    .yr-auth-main { min-height: calc(100svh - 72px); padding: 8px 14px 24px; }
    .yr-auth-card { max-width: 490px; grid-template-columns: minmax(0, 1fr); }
    .yr-auth-brand { min-height: 0; padding: 22px 24px; }
    .yr-brand-copy img { display: none; }
    .yr-brand-copy p { font-size: clamp(1.34rem, 5vw, 2rem); line-height: 1.2; }
    .yr-brand-copy br { display: none; }
    .yr-graphic i { width: 235px; height: 125px; inset: -56px -60px auto auto; }
    .yr-auth-panel { padding: 24px; }
    .yr-stock-item { grid-template-columns: minmax(0, 1fr) auto; padding-inline: 0; }
    .yr-stock-identity { grid-column: 1 / -1; }
    .yr-app .yr-stock-view .btn { min-height: 44px; }
    .yr-dashboard-card .form-control, .yr-dashboard-card .form-select { font-size: 1rem; }
    .yr-main .yr-actions .yr-primary { flex-basis: 100%; justify-content: center; }
    .yr-sidebar .yr-nav-secondary a { min-height: 44px; }
    .yr-company-logo { width: 66px; height: 39px; }
    .yr-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .yr-cart { width: auto; left: var(--yr-content-gutter); }
}

@media print {
    .yr-sidebar, .yr-top-bar, .yr-main-heading, .yr-actions, .yr-cart, .yr-filters, [data-yr-allocations] { display: none !important; }
    .yr-shell { display: block; }
    .yr-app, .yr-dashboard-card { background: white !important; color: black !important; box-shadow: none; }
    .yr-app .yr-dashboard-card p { color: black; }
    .yr-dashboard-card { break-inside: avoid; }
}
