/* Giga Precision: shared visual language; status colours remain semantic. */
:root {
    --bg: #f0f2f5;
    --card: #fff;
    --text: #20242c;
    --muted: #606978;
    --border: #e0e4ea;
    --primary: #df2034;
    --primary-dark: #ac1930;
    --shadow-sm: 0 2px 3px #17223803, 0 8px 24px #17223806;
    --shadow-md: 0 18px 50px #17223812;
    --ring: 0 0 0 4px #df203417;
}
body {
    background: radial-gradient(ellipse at 85% 0, #e2e7ef 0, transparent 45rem), #f0f2f5;
    font-family: Inter, "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
    font-size: 14px;
    line-height: 1.5;
}
body::before, body::after { display: none; }
.topbar {
    min-height: 76px;
    background: #141820f5;
    box-shadow: 0 4px 24px #10172218;
    border-bottom: 1px solid #ffffff12;
    padding-inline: max(24px, calc((100vw - 1494px) / 2));
    gap: 20px;
}
.topbar::after { height: 1px; opacity: .65; }
.brand { background: #f8f9fb; border-radius: 10px; padding: 2px 10px; }
.brand-logo { width: 112px; height: 44px; filter: none; }
.nav-right { flex-wrap: wrap; justify-content: flex-end; padding-block: 10px; }
.nav-link, .logout-button { font-size: 12px; font-weight: 600; border-radius: 8px; }
.nav-link.active { background: #ffffff10; color: #fff; border-color: #ffffff16; }
.nav-link.active::after { height: 2px; bottom: 0; }
.notification-link { background: #ffffff06; border-color: #ffffff17; box-shadow: none; }
.container { padding-top: 28px; }
h1, h2, h3 { text-wrap: balance; }
h1 { letter-spacing: -.045em; line-height: 1.14; }
h2 { letter-spacing: -.025em; }
.page-header h1, .header h1 { font-size: clamp(27px, 3vw, 38px); }
.page-header p, .header p { line-height: 1.6; max-width: 76ch; }
.component-hero {
    border-radius: 20px;
    background: radial-gradient(ellipse at 98% 10%, #9b21394d, transparent 55%),
        linear-gradient(120deg, #141a24, #252c38);
    box-shadow: 0 12px 30px #17223815;
}
.component-hero::after { opacity: .45; }
.flow-strip { scrollbar-width: thin; }
.flow-step { font-weight: 600; border-radius: 8px; background: #ffffff05; }
.card, .form-card, .summary-card, .login-box, .table-wrap,
.queue-card, .purchase-card, .insight-card {
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm) !important;
    backdrop-filter: none;
}
.card, .form-card, .login-box { border-top-color: var(--border) !important; }
.card:hover, .summary-card:hover {
    transform: none;
    border-color: var(--border) !important;
    box-shadow: var(--shadow-sm) !important;
}
.kpi, .metric {
    position: relative;
    border-radius: 15px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    padding: 18px 20px;
}
.kpi-label, .metric span { font-size: 11px; font-weight: 650; letter-spacing: .025em; }
.kpi-value, .metric strong { font-variant-numeric: tabular-nums; letter-spacing: -.045em; }
.kpi-value { font-size: clamp(28px, 3vw, 38px); line-height: 1.2; }
.kpi-caption { font-size: 11px; }
.kpi-link { transition: border-color .18s, box-shadow .18s, transform .18s; }
.kpi-link:hover { box-shadow: 0 8px 22px #17223810; }
.button {
    min-height: 42px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 650;
    background: linear-gradient(135deg, #c92038, #e62b39);
    box-shadow: 0 3px 8px #ca20381a, inset 0 1px #ffffff20;
}
.button::after { display: none; }
.button:hover { box-shadow: 0 5px 14px #ca203825; }
.button.secondary { background: #fff; box-shadow: 0 1px 2px #17223805; }
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=range]):not([type=color]),
select, textarea {
    border: 1px solid #d8dee7;
    border-radius: 10px;
    background: #fafbfd;
    color: var(--text);
    font-family: inherit;
    accent-color: var(--primary);
}
input::placeholder, textarea::placeholder { color: #788291; opacity: 1; }
input:focus, select:focus, textarea:focus { background: #fff; }
input[type=checkbox], input[type=radio] { accent-color: var(--primary); }
input:disabled, select:disabled, textarea:disabled { opacity: .65; cursor: not-allowed; }
.filters, .search-shell { border-radius: 14px; box-shadow: var(--shadow-sm); }
thead th {
    background: #f7f8fa !important;
    color: #5d6776 !important;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .065em;
    border-bottom: 1px solid var(--border) !important;
}
tbody td { border-bottom-color: #edf0f4; font-variant-numeric: tabular-nums; }
tbody tr:hover { background: #f8f9fc !important; }
.badge { font-weight: 650; letter-spacing: .005em; }
.folio { letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
summary { transition: background .18s; }
summary:focus-visible { border-radius: 8px; }
details[open] > summary { margin-bottom: 12px; }
.component-center-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 20px;
    padding: 7px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: #eef1f5;
    box-shadow: var(--shadow-sm);
}
.component-center-nav a {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 11px 13px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: #4a5565;
    text-decoration: none;
    transition: background .18s, border-color .18s, color .18s;
}
.component-center-nav span { font-size: 13px; font-weight: 750; }
.component-center-nav small { overflow: hidden; color: #7a8493; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.component-center-nav a:hover { border-color: #d3d9e2; background: #f8f9fb; }
.component-center-nav a[aria-current="page"] {
    border-color: #d9dee7;
    color: #a21831;
    background: #fff;
    box-shadow: 0 3px 10px #1722380d;
}
.component-center-nav a[aria-current="page"]::before {
    content: '';
    height: 2px;
    margin: -11px -6px 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, #c91f39, #ef3947);
}
.section-head h2 { font-size: 20px; }
.count { background: #f5f7fa; border: 1px solid #edf0f4; }
.queue-card.requested { border-left: 3px solid #e12c3e; }
.scroll-progress { height: 2px; box-shadow: none; }
@media (hover:hover) and (pointer:fine) {
    .queue-card:hover, .purchase-card:hover, .insight-card:hover {
        border-color: #c5ceda;
        box-shadow: 0 8px 24px #1722380c !important;
    }
}
@media (max-width: 1100px) and (min-width: 761px) {
    .topbar { align-items: flex-start; padding: 12px 20px; }
    .nav-right { gap: 3px; padding: 0; }
}
@media (max-width: 760px) {
    body { font-size: 14px; }
    body.authenticated .topbar { background: #141820; min-height: 64px; backdrop-filter: none; -webkit-backdrop-filter: none; }
    body.authenticated .brand { flex: 0 0 auto; }
    body.authenticated .brand-logo { width: 104px; height: 40px; }
    .container { padding: 20px 14px calc(110px + env(safe-area-inset-bottom)); }
    body.authenticated .nav-right {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scrollbar-width: thin;
        scrollbar-color: #ffffff40 transparent;
        gap: 5px;
        padding: 8px;
        border-radius: 17px;
        background: #161c27f5;
    }
    body.authenticated .nav-link,
    body.authenticated .notification-link,
    body.authenticated .nav-right form {
        flex: 0 0 auto;
        white-space: nowrap;
    }
    body.authenticated .nav-link { min-height: 44px; font-size: 12px; padding-inline: 12px; }
    .notification-badge { position: static; margin-left: 3px; border: 0; }
    .component-hero { margin: 0 0 18px; border-radius: 17px; padding: 24px 20px; }
    .component-hero h1 { font-size: 29px; }
    .card, .form-card, .summary-card, .queue-card, .purchase-card { border-radius: 14px; }
    .kpi, .metric { padding: 15px; border-radius: 13px; }
    input:not([type=checkbox]):not([type=radio]), select, textarea { font-size: 16px; }
    .button { min-height: 44px; }
    .search-shell { top: 8px; }
    .component-center-nav {
        display: flex;
        gap: 6px;
        margin-inline: -2px;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }
    .component-center-nav::-webkit-scrollbar { display: none; }
    .component-center-nav a { flex: 0 0 145px; scroll-snap-align: start; }
}

/* Controles de contraseña accesibles en web y Android WebView. */
.password-visibility-field {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 14rem;
    width: 100%;
    min-width: 0;
}

.password-visibility-field > input[type="password"],
.password-visibility-field > input[data-password-visible="true"] {
    width: 100%;
    padding-right: 3.15rem !important;
}

.password-visibility-field > button.password-visibility-toggle {
    position: absolute;
    z-index: 2;
    right: .55rem;
    top: 50%;
    display: inline-grid;
    place-items: center;
    width: 2.25rem;
    min-width: 0;
    max-width: 2.25rem;
    height: 2.25rem;
    min-height: 0;
    max-height: 2.25rem;
    margin: 0;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    border-radius: .7rem;
    background: transparent;
    color: #5f6878;
    box-shadow: none;
    cursor: pointer;
    transition: color .16s ease, background-color .16s ease, transform .16s ease;
}

.password-visibility-field > button.password-visibility-toggle:hover {
    color: var(--giga-red, #df2038);
    background: rgba(223, 32, 56, .08);
    transform: translateY(-50%);
}

.password-visibility-field > button.password-visibility-toggle:focus-visible {
    outline: 3px solid rgba(223, 32, 56, .24);
    outline-offset: 1px;
}

.password-visibility-toggle svg {
    width: 1.25rem;
    height: 1.25rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.password-visibility-toggle .password-eye-off,
.password-visibility-toggle[aria-pressed="true"] .password-eye-on {
    display: none;
}

.password-visibility-toggle[aria-pressed="true"] .password-eye-off {
    display: block;
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
/* Community: lightweight depth and a consistent identity without animation loops. */
.activity-hero, .profile-hero {
    background: radial-gradient(ellipse at 92% 15%, #e32c4b40, transparent 52%),
        repeating-linear-gradient(120deg, transparent 0 58px, #ffffff04 59px 60px),
        linear-gradient(115deg, #111a29, #2c2330);
    box-shadow: 0 16px 36px #17223818;
}
.activity-hero { padding: 38px; border-radius: 24px; }
.activity-hero h1 { max-width: 18ch; font-size: clamp(30px, 4vw, 46px); }
.activity-counter { backdrop-filter: none; background: #ffffff08; border-color: #ffffff1f; }
.activity-hero::after { opacity: .5; }
.social-panel, .feed-card {
    border: 1px solid #dfe5ed;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 3px 14px #17223806;
}
.feed-card { margin-bottom: 22px; overflow: hidden; }
.feed-head { padding-bottom: 18px; border-bottom: 1px solid #f0f2f6; }
.feed-author strong { font-size: 14px; letter-spacing: -.015em; }
.feed-meta { margin-top: 3px; line-height: 1.5; }
.feed-copy { font-size: 15px; line-height: 1.7; color: #333e4e; }
.feed-title-row h3 { font-size: 18px; letter-spacing: -.02em; }
.feed-time { font-variant-numeric: tabular-nums; color: #6c7788; }
.feed-footer { background: #fafbfd; border-top: 1px solid #edf1f5; }
.feed-open { border-radius: 9px; transition: background .18s; }
.feed-open:hover { background: #fcecf0; }
.feed-filter-bar { gap: 7px; padding: 7px; border-radius: 14px; background: #e7ebf1; }
.feed-filter { border-radius: 10px; font-weight: 650; }
.feed-filter.active { color: #fff; background: #202b3c; box-shadow: 0 3px 8px #17223820; }
.social-nav a.active { border-left: 3px solid #e42c43; background: #fceef1; }
.feed-avatar, .social-profile-avatar, .mobile-feed-avatar { overflow: hidden; background: #eef1f5; }
.feed-avatar img, .social-profile-avatar img, .mobile-feed-avatar img {
    display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit;
}
.avatar-editor { display: flex; gap: 22px; padding: 30px 32px; border-bottom: 1px solid var(--border); align-items: flex-start; }
.profile-portrait { flex: 0 0 96px; width: 96px; height: 96px; object-fit: cover; border-radius: 24px; box-shadow: 0 0 0 5px #f0f3f8; }
.avatar-editor-fields { min-width: 0; flex: 1; }
.avatar-editor label { display: block; font-weight: 750; font-size: 17px; }
.avatar-editor p, .avatar-editor small { color: var(--muted); font-size: 12px; line-height: 1.6; }
.avatar-editor small { display: block; margin: 8px 0 16px; }
.avatar-editor input[type=file] { max-width: 100%; font: inherit; font-size: 12px; }
.avatar-editor input::file-selector-button { padding: 10px 12px; border: 1px solid #d7dee8; border-radius: 9px; background: #f4f6fa; color: #263246; cursor: pointer; margin-right: 8px; }
.avatar-editor .profile-error { color: #b42318; }
.page-header { border-bottom: 1px solid #dce2eb; padding-bottom: 22px; }
.kpi { overflow: hidden; }
.kpi::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: #a6b1c2; }
.kpi-danger::before { background: var(--danger); }
.kpi-warning::before { background: var(--warning); }
.kpi-quality::before { background: #397ade; }
.kpi-link:hover::before { background: var(--primary); }
.order-header { border-bottom: 1px solid #dce2eb; padding-bottom: 20px; }
.card > h2, .form-card > h2 { font-size: 19px; }
@media (hover:hover) and (pointer:fine) {
    .feed-card { transition: border-color .18s, box-shadow .18s; }
    .feed-card:hover { border-color: #bdc9d9; box-shadow: 0 8px 26px #1722380a; }
}
@media (max-width: 760px) {
    .activity-hero { padding: 24px; border-radius: 18px; gap: 15px; }
    .feed-card { border-radius: 16px; margin-bottom: 14px; }
    .feed-copy { font-size: 14px; }
    .avatar-editor { flex-direction: column; padding: 24px 20px; }
    .avatar-editor-fields { width: 100%; }
    .avatar-editor .profile-actions { flex-wrap: wrap; }
    .avatar-editor .profile-actions .button { width: auto; }
    .page-header { padding-bottom: 16px; }
}
/* Precision II: shared surfaces and compact navigation, with no external assets. */
:root {
    --surface: #fff;
    --border: #dee3eb;
    --shadow-sm: 0 1px 2px #18233804, 0 6px 20px #18233806;
    --shadow-md: 0 16px 40px #18233812;
}
body {
    background: radial-gradient(ellipse at 100% 0, #e1e6f0, transparent 48rem),
        radial-gradient(ellipse at 0 25rem, #f5e8ed70, transparent 32rem), #f4f6f9;
}
body .topbar { gap: 18px; min-height: 80px; backdrop-filter: none; }
.brand { flex-shrink: 0; }
body .nav-right { gap: 5px; flex-wrap: nowrap; }
.nav-icon { width: 19px; height: 19px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
body .nav-link { gap: 8px; min-height: 42px; }
.nav-mobile-label, .workspace-menu-panel .menu-mobile-only { display: none; }
.workspace-account { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; min-width: 0; color: #f7f8fa; }
.workspace-avatar { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border: 1px solid #ffffff24; border-radius: 12px; background: linear-gradient(135deg, #c52643, #832640); font-size: 15px; font-weight: 750; }
.workspace-account > span:last-child { min-width: 0; }
.workspace-account small { display: block; font-size: 10px; color: #adb6c5; }
.workspace-account strong { display: block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 650; }
.workspace-menu { position: relative; }
.workspace-menu > summary { list-style: none; cursor: pointer; }
.workspace-menu > summary::-webkit-details-marker { display: none; }
.workspace-menu[open] > summary { margin: 0; background: #ffffff14; }
.workspace-menu-panel { position: absolute; right: 0; top: calc(100% + 14px); z-index: 350; width: 286px; max-height: min(620px, 75vh); overflow-y: auto; padding: 10px; border: 1px solid #dce2ec; border-radius: 18px; background: #fff; box-shadow: 0 18px 60px #10182830; color: #222d3c; }
.workspace-menu-heading { padding: 12px 12px 16px; border-bottom: 1px solid #e9edf3; margin-bottom: 6px; }
.workspace-menu-heading small { display: block; color: #b71b37; font-size: 10px; font-weight: 800; letter-spacing: .18em; }
.workspace-menu-heading strong { display: block; margin-top: 4px; font-size: 15px; }
.workspace-menu-panel a, .workspace-menu-panel .logout-button { display: flex; align-items: center; min-height: 44px; width: 100%; padding: 10px 12px; border-radius: 10px; color: #384455; font-size: 13px; font-weight: 600; text-decoration: none; }
.workspace-menu-panel a:hover, .workspace-menu-panel a[aria-current=page] { color: #ac1930; background: #fff0f3; }
.workspace-menu-panel .menu-mobile-only { display: none; }
.workspace-menu-panel form { margin: 6px 0 0; padding-top: 6px; border-top: 1px solid #e9edf3; }
.workspace-menu-panel .logout-button { color: #b21e37; }
.workspace-menu-panel .logout-button:hover { background: #fff0f3; }
.giga-skip-link { position: fixed; top: -70px; left: 16px; z-index: 5000; padding: 12px 18px; border-radius: 10px; color: #fff; background: #a91932; }
.giga-skip-link:focus { top: 12px; }
#contenido-principal:focus { outline: none; }
body .container { max-width: 1536px; margin-inline: auto; padding-top: 30px; animation: none; }
body .page-header, body .order-header {
    position: relative;
    padding: 26px 28px;
    border: 1px solid #dde3ec;
    border-radius: 20px;
    background: linear-gradient(115deg, #fff 30%, #f9f3f5 75%, #edf1f8);
    box-shadow: var(--shadow-sm);
}
body .page-header::before, body .order-header::before { content: ''; position: absolute; top: 24px; bottom: 24px; left: 0; right: auto; width: 3px; height: auto; border: 0; border-radius: 0 4px 4px 0; background: linear-gradient(#a91838, #f0464e); box-shadow: none; animation: none; }
body .page-header h1, body .order-header h1 { margin-top: 0; font-weight: 780; color: #1e293b; }
body .page-header::after, body .order-header::after { display: none; }
body .page-header .page-eyebrow { color: #a71c36; }
body .order-header .subtitle { color: #5e6c80; }
body .grid-main > aside, body .grid-main > main { min-width: 0; }
body .order-eyebrow { color: #a71c36; }
body .order-eyebrow::before { box-shadow: none; background: #c32944; }
body .live-dot { animation: none; box-shadow: 0 0 0 4px #e32c4614; }
body .executive-panel { background: linear-gradient(125deg, #1b2433, #292432); box-shadow: var(--shadow-md); border-radius: 20px; }
body .executive-card { box-shadow: 0 2px 8px #10182810; border-radius: 15px; }
body .intelligence-panel { border-color: #e0e5ee; box-shadow: var(--shadow-sm); background: linear-gradient(125deg, #fff, #f9f6f8); }
body tbody tr:hover { transform: none; }
body .page-header p { color: #667286; }
body .finance-hero, body .store-hero, body .admin-hero, body .load-hero,
body .component-hero, body .activity-hero, body .profile-hero {
    border: 1px solid #ffffff12;
    background: radial-gradient(ellipse at 100% 0, #be25444d, transparent 55%),
        repeating-linear-gradient(125deg, transparent 0 70px, #ffffff04 71px 72px),
        linear-gradient(115deg, #141c2a, #252735);
    box-shadow: 0 10px 30px #18233812;
}
body .finance-hero p, body .component-hero p { font-size: 14px; line-height: 1.7; color: #c8d1df; }
body .eyebrow { display: inline-block; margin-bottom: 10px; font-size: 10px; letter-spacing: .16em; font-weight: 750; }
body .card, body .form-card, body .summary-card,
body .finance-kpi, body .fiscal-queue, body .quick-create,
body .load-card, body .project-card { box-shadow: var(--shadow-sm) !important; }
body .finance-kpi, body .kpi, body .metric { background: linear-gradient(135deg, #fff 50%, #f7f9fc); }
body .finance-kpi { min-width: 0; border-radius: 15px; }
body .finance-kpi strong { font-size: clamp(18px, 1.6vw, 25px); letter-spacing: -.04em; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
body .finance-kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
body .finance-kpi span { font-size: 10px; color: #5d687b; }
body .kpi::before { width: 3px; top: 18px; bottom: 18px; border-radius: 0 3px 3px 0; }
body .kpi-label { color: #556174; }
body .filters, body .finance-tools { background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
body .button { transition: background .16s, box-shadow .16s, transform .16s; }
body .button:active { transform: translateY(1px); box-shadow: none; }
body .button.secondary { color: #354155; border-color: #d8e0eb; background: linear-gradient(#fff, #f8fafc); }
body .button.secondary:hover { color: #a71935; border-color: #d3aab5; background: #fff6f7; }
body .button:disabled, body .button[aria-disabled=true] { transform: none; box-shadow: none; opacity: .55; cursor: not-allowed; }
body .form-field label, body .field label { color: #475267; letter-spacing: .005em; }
body input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):not([type=range]):not([type=color]),
body select, body textarea { border-color: #d9e0e9; background: #f8fafc; }
body input:focus, body select:focus, body textarea:focus { background: #fff; }
body input[type=file]::file-selector-button { border: 1px solid #d6dfea; border-radius: 9px; background: #fff; padding: 10px 14px; margin-right: 10px; color: #354155; font: inherit; cursor: pointer; }
body .table-wrap { border-radius: 16px; }
body thead th { padding-top: 16px; padding-bottom: 16px; }
body tbody tr { transition: background-color .13s; }
body tbody tr:hover { background: #f2f5fa !important; }
body .badge, body .status-pill { font-size: 11px; line-height: 1.5; }
body .quick-create > summary { display: list-item; padding: 18px 20px; color: #364156; }
body .quick-create[open] > summary { border-bottom: 1px solid #e8edf4; background: #f8fafc; border-radius: 18px 18px 0 0; }
body .empty-state { border-color: #d5dde9; background: linear-gradient(135deg, #fff, #f5f7fb); }
body .feed-card { box-shadow: 0 2px 8px #17223806; }
body .feed-footer { background: #fafbfd; }
body .feed-filter.active { background: #a91935; }
body .login-box { position: relative; margin: 54px auto; padding: 38px; border-radius: 24px; box-shadow: 0 22px 65px #18233812 !important; }
body .login-box::before { content: ''; display: block; width: 40px; height: 4px; margin-bottom: 24px; border-radius: 4px; background: linear-gradient(90deg, #b51a38, #f04b46); }
body .login-box h1::after { display: none; }
body .app-download { padding: 20px 0 0; }
body .notification-link { position: relative; }
body .notification-badge { background: #e32c46; }
@media (prefers-reduced-motion: no-preference) {
    body .page-header, body .order-header, body .finance-hero,
    body .component-hero, body .activity-hero, body .login-box {
        animation: precision-arrive .32s ease-out both;
    }
    .workspace-menu[open] .workspace-menu-panel { animation: precision-arrive .16s ease-out both; }
    @keyframes precision-arrive { from { opacity: .4; transform: translateY(5px); } to { opacity: 1; transform: none; } }
}
@media (hover:hover) and (pointer:fine) {
    body .kpi-link:hover, body .project-card:hover, body .queue-card:hover,
    body .purchase-card:hover, body .insight-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px #18233810 !important;
    }
    body .button:hover { transform: translateY(-1px); }
    body .button:active { transform: translateY(1px); }
}
@media (max-width: 1250px) and (min-width: 761px) {
    .workspace-account > span:last-child { display: none; }
    body .topbar { padding-inline: 20px; gap: 12px; align-items: center; }
    body .nav-link { font-size: 11px; padding-inline: 8px; }
}
@media (max-width: 980px) {
    body .nav-right .nav-desktop { display: none; }
    .workspace-menu-panel .menu-mobile-only { display: flex; }
}
@media (max-width: 760px) {
    body.authenticated .topbar { min-height: 68px; padding: 10px 16px; background: #141820 !important; }
    body .workspace-account { margin-left: auto; margin-right: 0; }
    .workspace-account strong { max-width: 138px; }
    .workspace-account small { font-size: 9px; }
    .workspace-avatar { flex-basis: 32px; height: 32px; border-radius: 10px; }
    body.authenticated .nav-right {
        display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
        overflow: visible; min-height: 66px; gap: 4px; padding: 6px;
        background: #161d2a !important; border: 1px solid #ffffff1a;
        box-shadow: 0 6px 28px #10182830; border-radius: 20px;
        bottom: max(10px, env(safe-area-inset-bottom));
    }
    body.authenticated .nav-right > .nav-link,
    body.authenticated .nav-right > .notification-link,
    body.authenticated .workspace-menu > summary {
        display: flex; flex-direction: column; justify-content: center;
        align-items: center; gap: 4px; min-width: 0; min-height: 52px;
        margin: 0; padding: 6px 2px; font-size: 10px; line-height: 1.3;
        border-radius: 13px; color: #c7d0df;
    }
    body.authenticated .nav-right > .nav-desktop { display: none; }
    body.authenticated .nav-right .workspace-menu > summary { display: flex !important; }
    body.authenticated .nav-right .workspace-menu-panel form { display: block !important; }
    body.authenticated .nav-right > .nav-link, body.authenticated .nav-right > .notification-link { color: #c7d0df; }
    body.authenticated .nav-link.active, body.authenticated .nav-link[aria-current=page],
    body.authenticated .notification-link[aria-current=page], body.authenticated .workspace-menu[open] > summary { background: #ffffff12; color: #fff; }
    body.authenticated .nav-link.active::after { left: 35%; right: 35%; bottom: 1px; }
    body.authenticated .notification-badge { position: absolute; top: 2px; right: 12px; margin: 0; font-size: 9px; min-width: 15px; height: 15px; padding: 0 3px; }
    .nav-mobile-label { display: block; }
    body.authenticated .nav-right .nav-mobile-label { font-size: 10px; }
    .workspace-menu { position: static; }
    .workspace-menu-panel { top: auto; bottom: calc(100% + 12px); right: 0; width: min(350px, calc(100vw - 20px)); max-height: calc(100dvh - 170px); }
    body .container { padding: 18px 12px calc(106px + env(safe-area-inset-bottom)); }
    body .page-header, body .order-header { padding: 20px; border-radius: 17px; }
    body .page-header h1, body .order-header h1 { font-size: 27px; }
    body .page-header::before, body .order-header::before { top: 20px; bottom: 20px; }
    body .finance-hero, body .store-hero, body .admin-hero, body .load-hero { border-radius: 18px; padding: 24px 20px; }
    body .finance-hero h1 { font-size: 30px; }
    body .finance-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; overflow: visible; }
    body .finance-kpi { min-width: 0; padding: 14px; }
    body .finance-kpi strong { font-size: 21px; }
    body .project-card { gap: 14px; }
    body .project-title strong { font-size: 16px; }
    body .login-box { padding: 28px 24px; margin: 22px auto; border-radius: 20px; }
    body .card, body .form-card { box-shadow: 0 2px 8px #18233804 !important; }
    body .feed-copy { line-height: 1.65; }
    body .grid-main { grid-template-columns: minmax(0, 1fr); }
    body .ai-card-head { flex-wrap: wrap; }
    body input:not([type=checkbox]):not([type=radio]), body select, body textarea { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
    body { background: #fff; }
    .topbar, .scroll-progress, .live-notification, .giga-skip-link { display: none !important; }
    .container { padding: 0; max-width: none; }
    .card, .form-card, .summary-card { box-shadow: none !important; }
}
