:root {
    --navy: #09384b;
    --navy-2: #0b4a60;
    --cyan: #67acd1;
    --cyan-soft: #eaf5fb;
    --teal: #1d7b8c;
    --ink: #17252c;
    --muted: #6f7d86;
    --line: #dfe7eb;
    --surface: #ffffff;
    --canvas: #f4f7f8;
    --success: #228765;
    --success-soft: #e7f5ef;
    --warning: #c78b2c;
    --warning-soft: #fff4df;
    --danger: #bd5261;
    --danger-soft: #fae9ec;
    --shadow: 0 10px 30px rgba(9, 56, 75, .07);
    --sidebar: 248px;
    --topbar: 72px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); }
body { margin: 0; min-height: 100%; font-family: Inter, "Segoe UI", Arial, sans-serif; color: var(--ink); background: radial-gradient(circle at 93% 8%, rgba(103,172,209,.10), transparent 26%), var(--canvas); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--navy-2); }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(1.75rem, 3vw, 2.35rem); line-height: 1.12; letter-spacing: -.035em; margin-bottom: .45rem; color: var(--navy); }
h2 { color: var(--navy); letter-spacing: -.025em; }
.eyebrow { margin-bottom: .42rem; color: var(--teal); font-size: .69rem; line-height: 1.2; font-weight: 800; letter-spacing: .13em; }
.subtitle { margin: 0; max-width: 780px; color: var(--muted); line-height: 1.55; }
.surface { background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }

.app-shell { min-height: 100vh; }
.topbar { position: fixed; z-index: 80; top: 0; left: 0; right: 0; height: var(--topbar); display: grid; grid-template-columns: var(--sidebar) minmax(300px, 1fr) auto; align-items: center; gap: 22px; padding: 0 26px 0 0; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); box-shadow: 0 3px 18px rgba(9,56,75,.05); backdrop-filter: blur(16px); }
.brand-lockup { height: var(--topbar); display: flex; align-items: center; gap: 8px; padding: 8px 18px; overflow: hidden; background: #fff; text-decoration: none; border-right: 1px solid var(--line); }
.brand-gam { width: 108px; height: 52px; object-fit: cover; object-position: 50% 50%; border-radius: 5px; }
.brand-aicm { width: 92px; height: 43px; object-fit: contain; }
.brand-divider { width: 1px; height: 35px; flex: 0 0 auto; background: var(--line); }
.topbar-product { min-width: 0; display: flex; align-items: baseline; gap: 10px; }
.topbar-product strong { color: var(--navy); font-size: 1.16rem; letter-spacing: -.03em; }
.topbar-product em { font-style: normal; color: var(--cyan); }
.topbar-product small { color: var(--muted); font-size: .74rem; }
.topbar-actions { display: flex; align-items: center; gap: 14px; }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
.icon-button svg { width: 19px; }
.notification-button { position: relative; }
.notification-button span { position: absolute; top: -4px; right: -3px; width: 18px; height: 18px; display: grid; place-items: center; color: #fff; background: var(--danger); border: 2px solid #fff; border-radius: 50%; font-size: .6rem; font-weight: 800; }
.profile-chip { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; }
.profile-chip > span { width: 39px; height: 39px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, var(--navy-2), var(--teal)); border-radius: 11px; font-size: .74rem; font-weight: 800; }
.profile-chip div { display: grid; gap: 2px; }
.profile-chip strong { font-size: .76rem; }
.profile-chip small { color: var(--muted); font-size: .67rem; }
.menu-toggle { display: none; }
.menu-state { position: fixed; opacity: 0; pointer-events: none; }

.sidebar { position: fixed; z-index: 70; top: var(--topbar); left: 0; bottom: 0; width: var(--sidebar); display: flex; flex-direction: column; padding: 24px 14px 18px; color: #dce9ed; background: linear-gradient(180deg, #08384b 0%, #062e3f 100%); }
.sidebar-heading { display: flex; align-items: center; gap: 10px; padding: 0 9px 22px; border-bottom: 1px solid rgba(255,255,255,.10); }
.sidebar-product-logo { width: 46px; height: 46px; flex: 0 0 auto; object-fit: cover; border-radius: 13px; box-shadow: 0 7px 18px rgba(0,0,0,.20); }
.sidebar-heading div { display: grid; gap: 3px; }
.sidebar-heading strong { color: #fff; font-size: .92rem; }
.sidebar-heading small { color: #9fb8c1; font-size: .64rem; }
.side-nav { display: grid; gap: 6px; margin-top: 21px; }
.side-nav a { min-height: 44px; display: flex; align-items: center; gap: 12px; padding: 0 12px; color: #b9ccd3; border-radius: 11px; text-decoration: none; font-size: .8rem; font-weight: 600; transition: .18s ease; }
.side-nav a svg { width: 19px; height: 19px; flex: 0 0 auto; }
.side-nav a span { flex: 1; }
.side-nav a b { min-width: 24px; padding: 3px 7px; color: #cdeaf8; background: rgba(103,172,209,.16); border-radius: 20px; text-align: center; font-size: .62rem; }
.side-nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.side-nav a.active { color: #fff; background: linear-gradient(95deg, rgba(103,172,209,.30), rgba(103,172,209,.10)); box-shadow: inset 3px 0 var(--cyan); }
.side-nav .logout-nav { width: 100%; min-height: 44px; display: flex; align-items: center; gap: 12px; margin-top: 6px; padding: 0 12px; color: #d8c8cc; background: transparent; border: 0; border-radius: 11px; cursor: pointer; font: inherit; font-size: .8rem; font-weight: 600; text-align: left; transition: .18s ease; }
.side-nav .logout-nav svg { width: 19px; height: 19px; flex: 0 0 auto; }
.side-nav .logout-nav span { flex: 1; }
.side-nav .logout-nav:hover { color: #fff; background: rgba(189,82,97,.18); }
.sidebar-status { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 13px 12px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.08); border-radius: 12px; }
.sidebar-status > span { width: 9px; height: 9px; background: #59d19d; border-radius: 50%; box-shadow: 0 0 0 4px rgba(89,209,157,.12); }
.sidebar-status div { display: grid; gap: 3px; }
.sidebar-status strong { color: #fff; font-size: .7rem; }
.sidebar-status small { color: #9fb8c1; font-size: .6rem; }
.status-pulse { animation: pulse 1.7s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(89,209,157,0); } }

.content { min-height: 100vh; margin-left: var(--sidebar); padding: calc(var(--topbar) + 34px) clamp(20px, 3.4vw, 52px) 50px; }
.bottom-nav { display: none; }
.menu-scrim { display: none; }
.page-title-row { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 23px; }
.page-title-row.compact { align-items: flex-end; }
.today-card { min-width: 296px; display: flex; align-items: center; gap: 12px; padding: 13px 16px; background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: 14px; }
.today-card svg { width: 24px; color: var(--teal); }
.today-card div { display: grid; gap: 3px; }
.today-card small { color: var(--muted); font-size: .68rem; }
.today-card strong { font-size: .74rem; text-transform: capitalize; }
.back-link { display: inline-block; margin-bottom: 16px; color: var(--teal); font-size: .74rem; font-weight: 700; text-decoration: none; }
.period-switch { width: max-content; display: flex; gap: 4px; margin: 0 0 24px; padding: 4px; background: #e8eef1; border-radius: 12px; }
.period-switch button { padding: 8px 17px; color: var(--muted); background: transparent; border: 0; border-radius: 9px; font-size: .73rem; font-weight: 700; cursor: pointer; }
.period-switch button.active { color: var(--navy); background: #fff; box-shadow: 0 3px 10px rgba(9,56,75,.10); }
.period-switch.small { margin: 0; }
.button { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 15px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; font-size: .74rem; font-weight: 700; cursor: pointer; }
.button svg { width: 18px; }
.button.primary { color: #fff; background: linear-gradient(110deg, var(--navy-2), var(--teal)); border-color: var(--navy-2); box-shadow: 0 6px 16px rgba(11,74,96,.18); }
.button.ghost { color: var(--navy); background: #fff; }
.button.large { min-height: 44px; padding: 0 19px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 17px; }
.kpi-card { min-height: 124px; display: flex; align-items: center; gap: 13px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.kpi-card > div:nth-child(2) { min-width: 0; display: grid; gap: 4px; }
.kpi-card span { color: var(--muted); font-size: .71rem; }
.kpi-card strong { color: var(--navy); font-size: 1.78rem; letter-spacing: -.05em; }
.kpi-card strong em { color: #a2adb3; font-size: .8rem; font-style: normal; letter-spacing: 0; }
.kpi-card small { color: var(--muted); font-size: .61rem; white-space: nowrap; }
.kpi-card small b { color: var(--success); }
.kpi-icon { width: 43px; height: 43px; flex: 0 0 auto; display: grid; place-items: center; color: var(--teal); background: var(--cyan-soft); border-radius: 12px; }
.kpi-icon svg { width: 22px; }
.kpi-icon.success { color: var(--success); background: var(--success-soft); }
.kpi-icon.warning { color: var(--warning); background: var(--warning-soft); }
.kpi-icon.team { color: #64758b; background: #edf1f5; }
.kpi-progress { position: relative; background: linear-gradient(145deg, #fff, #f1fafd); }
.mini-ring { --value: 0; width: 51px; height: 51px; margin-left: auto; display: grid; place-items: center; flex: 0 0 auto; background: conic-gradient(var(--teal) calc(var(--value) * 1%), #dfecef 0); border-radius: 50%; }
.mini-ring::before { content: ""; grid-area: 1/1; width: 39px; height: 39px; background: #fff; border-radius: 50%; }
.mini-ring span { z-index: 1; grid-area: 1/1; color: var(--navy); font-size: .7rem; font-weight: 800; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.17fr) minmax(350px, .83fr); gap: 17px; margin-bottom: 17px; }
.chart-card, .team-card, .activity-panel, .comparison-card, .report-team { padding: 21px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.section-heading h2 { margin: 0; font-size: 1.02rem; }
.section-heading a { font-size: .69rem; font-weight: 700; text-decoration: none; }
.live-pill { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .6rem; }
.live-pill i { width: 7px; height: 7px; background: var(--success); border-radius: 50%; }
.trend-chart { height: 210px; display: flex; align-items: stretch; gap: clamp(11px, 2.3vw, 27px); padding: 26px 9px 0; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to bottom, transparent 0, transparent 50px, #eaf0f2 51px); }
.trend-column { flex: 1; min-width: 29px; display: grid; grid-template-rows: 18px 1fr 26px; gap: 5px; text-align: center; }
.trend-value { color: var(--navy); font-size: .62rem; font-weight: 800; }
.trend-track { position: relative; display: flex; align-items: flex-end; justify-content: center; }
.trend-track i { width: min(34px, 76%); min-height: 4px; display: block; background: linear-gradient(180deg, var(--cyan), var(--navy-2)); border-radius: 6px 6px 2px 2px; box-shadow: 0 5px 12px rgba(29,123,140,.16); transition: height .35s ease; }
.trend-column small { color: var(--muted); font-size: .59rem; }
.chart-foot { display: flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--muted); font-size: .6rem; }
.chart-foot span { width: 14px; height: 4px; background: var(--teal); border-radius: 4px; }
.team-ranking { display: grid; margin-top: 12px; }
.ranking-row { display: grid; grid-template-columns: 36px 1fr 32px 35px; align-items: center; gap: 9px; padding: 11px 0; border-bottom: 1px solid #edf1f3; }
.ranking-row:last-child { border-bottom: 0; }
.avatar-initial { width: 34px; height: 34px; display: inline-grid; place-items: center; flex: 0 0 auto; color: #fff; background: var(--avatar, var(--teal)); border-radius: 50%; font-size: .61rem; font-style: normal; font-weight: 800; box-shadow: 0 0 0 3px color-mix(in srgb, var(--avatar, var(--teal)) 14%, transparent); }
.ranking-main { min-width: 0; display: grid; gap: 7px; }
.ranking-main > div:first-child { display: grid; gap: 2px; }
.ranking-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .7rem; }
.ranking-main small { color: var(--muted); font-size: .57rem; }
.performance-bar, .score-cell i, .report-team article div > i, .report-kpis article > i { height: 5px; display: block; overflow: hidden; background: #e8eef0; border-radius: 6px; }
.performance-bar i, .score-cell i b, .report-team article div > i b, .report-kpis article > i b { height: 100%; display: block; background: linear-gradient(90deg, var(--cyan), var(--teal)); border-radius: inherit; }
.score { color: var(--navy); font-size: .8rem; }
.trend-up { color: var(--success); font-size: .61rem; font-weight: 800; }
.trend-down { color: var(--danger); font-size: .61rem; font-weight: 800; }

.activity-panel .section-heading { margin-bottom: 14px; }
.heading-actions { display: flex; gap: 8px; }
.ticket-table { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.ticket-row { min-height: 67px; display: grid; grid-template-columns: minmax(260px, 2fr) minmax(140px, 1fr) 75px 100px minmax(105px,.8fr) 18px; align-items: center; gap: 12px; padding: 10px 14px; color: var(--ink); border-bottom: 1px solid #eaf0f2; text-decoration: none; }
.ticket-row:last-child { border-bottom: 0; }
.ticket-row:not(.ticket-header):hover { background: #f8fbfc; }
.ticket-row.ticket-header { min-height: 38px; color: var(--muted); background: #f6f9fa; font-size: .58rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.ticket-row > span:first-child { min-width: 0; display: grid; gap: 2px; }
.ticket-row > span:first-child small { color: var(--teal); font-size: .55rem; font-weight: 800; }
.ticket-row > span:first-child strong { overflow: hidden; text-overflow: ellipsis; color: var(--ink); font-size: .68rem; white-space: nowrap; }
.ticket-row > span:first-child em { overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-size: .55rem; font-style: normal; white-space: nowrap; }
.assignee-cell { display: flex; align-items: center; gap: 7px; font-size: .6rem; }
.assignee-cell i { width: 27px; height: 27px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: var(--avatar); border-radius: 50%; font-size: .5rem; font-style: normal; font-weight: 800; }
.priority, .status { width: max-content; display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 6px; font-size: .55rem; font-weight: 800; }
.priority.crítica { color: #a53f4e; background: #f9e5e8; }
.priority.alta { color: #b7781f; background: #fff1d8; }
.priority.media { color: #266a82; background: #e5f2f7; }
.priority.baja { color: #66777e; background: #edf1f2; }
.status::before { content: ""; width: 5px; height: 5px; background: currentColor; border-radius: 50%; }
.status.done { color: var(--success); background: var(--success-soft); }
.status.blocked { color: var(--danger); background: var(--danger-soft); }
.status.working { color: #287796; background: #e6f3f9; }
.status.pending { color: #987127; background: var(--warning-soft); }
.table-progress { display: flex; align-items: center; gap: 7px; }
.table-progress i, .mobile-progress i, .ticket-card-progress > i, .preview-progress i { height: 6px; flex: 1; display: block; overflow: hidden; background: #e7edef; border-radius: 5px; }
.table-progress i b, .mobile-progress i b, .ticket-card-progress > i b, .preview-progress i b { height: 100%; display: block; background: linear-gradient(90deg, var(--cyan), var(--teal)); border-radius: inherit; }
.table-progress strong { color: var(--navy); font-size: .6rem; }
.row-arrow { color: var(--cyan); font-size: 1.25rem; }
.mobile-ticket-list { display: none; }

.filter-panel { display: grid; grid-template-columns: minmax(280px, 2fr) repeat(3, minmax(135px, .65fr)); gap: 12px; padding: 15px; }
.filter-panel label { margin: 0; }
.filter-panel label > span { display: block; margin: 0 0 5px 2px; color: var(--muted); font-size: .58rem; font-weight: 700; }
.search-field { position: relative; align-self: end; }
.search-field svg { position: absolute; left: 12px; top: 50%; width: 17px; transform: translateY(-50%); color: #8a989e; }
.search-field input { padding-left: 39px; }
input, textarea, select { width: 100%; min-height: 42px; padding: 10px 12px; color: var(--ink); background: #fbfcfd; border: 1px solid #d6e0e4; border-radius: 9px; outline: none; font-size: .72rem; transition: .18s; }
textarea { min-height: 105px; resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { background: #fff; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(103,172,209,.13); }
.list-summary { margin: 16px 3px 11px; color: var(--muted); font-size: .66rem; }
.list-summary strong { color: var(--navy); }
.list-summary b { color: var(--teal); }
.list-summary span { margin: 0 6px; }
.ticket-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ticket-card { position: relative; padding: 18px; overflow: hidden; transition: .18s ease; }
.ticket-card:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(9,56,75,.10); }
.ticket-card.is-blocked { border-left: 4px solid var(--danger); }
.ticket-card-link { position: absolute; inset: 0; z-index: 0; }
.ticket-card > *:not(.ticket-card-link) { position: relative; z-index: 1; pointer-events: none; }
.ticket-card a:not(.ticket-card-link) { pointer-events: auto; }
.ticket-card-top, .ticket-card-top > div, .ticket-card-footer, .ticket-card-progress > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ticket-card-top > div { justify-content: flex-start; }
.folio { color: var(--teal); font-size: .61rem; font-weight: 800; letter-spacing: .04em; }
.ticket-card h2 { margin: 14px 0 7px; font-size: .95rem; line-height: 1.35; }
.ticket-card > p { height: 36px; overflow: hidden; color: var(--muted); font-size: .66rem; line-height: 1.45; }
.ticket-meta { display: flex; flex-wrap: wrap; gap: 9px 14px; margin: 13px 0; }
.ticket-meta span { display: inline-flex; align-items: center; gap: 5px; color: #67777e; font-size: .58rem; }
.ticket-meta svg { width: 14px; color: var(--teal); }
.ticket-card-progress > div { margin-bottom: 6px; color: var(--muted); font-size: .59rem; }
.ticket-card-progress > div strong { color: var(--navy); }
.ticket-card-footer { margin-top: 13px; padding-top: 11px; border-top: 1px solid #edf1f3; }
.ticket-card-footer span { color: var(--muted); font-size: .56rem; }
.ticket-card-footer a { font-size: .62rem; font-weight: 700; text-decoration: none; }

.form-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) 300px; align-items: start; gap: 15px; }
.form-section { padding: 22px; }
.form-section-title { display: flex; align-items: center; gap: 11px; margin-bottom: 19px; }
.form-section-title > span { width: 33px; height: 33px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: var(--navy-2); border-radius: 10px; font-size: .72rem; font-weight: 800; }
.form-section-title h2 { margin: 0 0 3px; font-size: .94rem; }
.form-section-title p { margin: 0; color: var(--muted); font-size: .62rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.form-grid label { margin: 0; }
.form-grid label > span, .update-grid label > span { display: flex; justify-content: space-between; margin: 0 0 6px 2px; color: #46565d; font-size: .64rem; font-weight: 700; }
.form-grid label > span b { color: var(--danger); }
.form-grid .span-2, .update-grid .span-2 { grid-column: 1 / -1; }
.check-field { min-height: 57px; display: flex; align-items: center; gap: 10px; padding: 11px; background: #f7fafb; border: 1px solid var(--line); border-radius: 10px; }
.check-field input { width: 18px; min-height: 18px; }
.check-field > span { display: grid !important; gap: 2px; margin: 0 !important; }
.check-field small { color: var(--muted); font-size: .57rem; font-weight: 400; }
.range-field input { text-align: center; }
.form-aside { position: sticky; top: calc(var(--topbar) + 20px); padding: 19px; }
.form-aside > img { width: 100%; height: 85px; object-fit: cover; border-radius: 10px; }
.form-aside > h2 { margin: 16px 0 11px; font-size: .78rem; }
.form-aside h3 { margin: 10px 0 6px; color: var(--navy); font-size: .91rem; line-height: 1.35; }
.form-aside > p { color: var(--muted); font-size: .62rem; line-height: 1.5; }
.form-aside dl, .owner-card dl { display: grid; grid-template-columns: 85px 1fr; gap: 8px; margin: 15px 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: .59rem; }
.form-aside dt, .owner-card dt { color: var(--muted); }
.form-aside dd, .owner-card dd { margin: 0; color: var(--ink); font-weight: 600; }
.preview-progress { display: grid; grid-template-columns: 1fr auto; gap: 6px; color: var(--muted); font-size: .6rem; }
.preview-progress strong { color: var(--navy); }
.preview-progress i { grid-column: 1 / -1; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 17px; }
.validation-summary { margin: 0 0 14px; padding: 12px 16px; color: #8f3542; background: var(--danger-soft); border: 1px solid #f0cbd1; border-radius: 10px; font-size: .68rem; }
.success-panel { display: grid; gap: 3px; margin: 15px 0; padding: 14px 16px; color: #155e4b; background: #effaf6; border: 1px solid #a8dfca; border-radius: 11px; font-size: .68rem; }
.success-panel strong { font-size: .61rem; letter-spacing: .07em; }
.success-panel small { color: #4f756a; }
.managed-user-layout .governance-aside { border-top: 4px solid var(--teal); }
.governance-lock { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; background: var(--teal); border-radius: 50%; font-size: 1rem; font-weight: 900; }

.detail-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .6fr); align-items: start; gap: 16px; }
.detail-main { padding: 23px; }
.progress-hero { display: flex; align-items: center; gap: 21px; padding-bottom: 21px; border-bottom: 1px solid var(--line); }
.progress-hero h2 { margin: 0 0 5px; font-size: 1.25rem; }
.progress-hero p:last-child { margin: 0; color: var(--muted); font-size: .64rem; }
.progress-ring { --value: 0; display: grid; place-items: center; flex: 0 0 auto; background: conic-gradient(var(--teal) calc(var(--value) * 1%), #dfe9ec 0); border-radius: 50%; }
.progress-ring::before { content: ""; grid-area: 1/1; background: #fff; border-radius: 50%; }
.progress-ring > span { z-index: 1; grid-area: 1/1; display: grid; text-align: center; }
.large-ring { width: 112px; height: 112px; }
.large-ring::before { width: 90px; height: 90px; }
.large-ring strong { color: var(--navy); font-size: 1.55rem; letter-spacing: -.05em; }
.large-ring small { color: var(--muted); font-size: .57rem; }
.blocker-alert { display: flex; gap: 11px; margin: 18px 0 0; padding: 13px; color: #843846; background: var(--danger-soft); border: 1px solid #f0cbd1; border-radius: 11px; }
.blocker-alert svg { width: 22px; flex: 0 0 auto; }
.blocker-alert strong { font-size: .7rem; }
.blocker-alert p { margin: 3px 0 0; font-size: .62rem; line-height: 1.5; }
.detail-description { padding: 20px 0; }
.detail-description h2 { margin-bottom: 8px; font-size: .88rem; }
.detail-description p { margin: 0; color: #4f5e65; font-size: .73rem; line-height: 1.65; }
.update-box { padding: 18px; background: #f5f9fa; border: 1px solid var(--line); border-radius: 13px; }
.value-badge { padding: 6px 10px; color: var(--navy); background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: .7rem; font-weight: 800; }
.progress-slider { display: block; margin: 16px 0; }
.progress-slider input { min-height: 20px; padding: 0; accent-color: var(--teal); }
.progress-slider div { display: flex; justify-content: space-between; color: var(--muted); font-size: .52rem; }
.update-grid { display: grid; grid-template-columns: 180px 1fr; gap: 12px; }
.update-grid label { margin: 0; }
.success-message { margin: 12px 0 0; color: var(--success); font-size: .64rem; font-weight: 700; }
.update-box > button { margin-top: 13px; }
.detail-side { display: grid; gap: 16px; }
.owner-card, .timeline-card { padding: 20px; }
.owner-card > div { display: flex; align-items: center; gap: 12px; }
.owner-card h2 { margin: 0 0 3px; font-size: .86rem; }
.owner-card p { margin: 0; color: var(--muted); font-size: .6rem; }
.large-avatar { width: 48px; height: 48px; }
.owner-card dl { grid-template-columns: 78px 1fr; margin-bottom: 0; }
.overdue { color: var(--danger) !important; }
.timeline { display: grid; margin-top: 13px; }
.timeline article { position: relative; display: grid; grid-template-columns: 13px 1fr; gap: 9px; padding-bottom: 18px; }
.timeline article::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: -2px; width: 1px; background: var(--line); }
.timeline article:last-child::before { display: none; }
.timeline article > i { z-index: 1; width: 11px; height: 11px; margin-top: 3px; background: var(--cyan); border: 3px solid #e9f5fa; border-radius: 50%; }
.timeline article > div > div { display: flex; justify-content: space-between; gap: 8px; }
.timeline strong { font-size: .62rem; }
.timeline span { color: var(--teal); font-size: .6rem; font-weight: 800; }
.timeline p { margin: 4px 0; color: #56666d; font-size: .6rem; line-height: 1.45; }
.timeline small { color: var(--muted); font-size: .52rem; }

.team-hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); gap: 16px; margin-bottom: 16px; }
.podium-card, .formula-card { padding: 22px; }
.score-legend { color: var(--muted); font-size: .58rem; }
.podium { min-height: 190px; display: flex; align-items: flex-end; justify-content: center; gap: clamp(20px, 5vw, 60px); padding: 28px 10px 0; }
.podium-person { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; }
.podium-person.place-1 { order: 2; transform: translateY(-16px); }
.podium-person.place-2 { order: 1; }
.podium-person.place-3 { order: 3; }
.podium-avatar { width: 62px; height: 62px; font-size: .82rem; }
.place-1 .podium-avatar { width: 76px; height: 76px; border: 3px solid #e5b94e; }
.medal { position: absolute; z-index: 2; top: -8px; right: 2px; width: 22px; height: 22px; display: grid; place-items: center; color: #fff; background: var(--teal); border: 2px solid #fff; border-radius: 50%; font-size: .55rem; font-weight: 800; }
.place-1 .medal { background: #d4a437; }
.podium-person > strong { max-width: 120px; font-size: .66rem; }
.podium-person > b { color: var(--navy); font-size: 1.05rem; }
.podium-person > small { color: var(--muted); font-size: .53rem; }
.formula-card > p:nth-of-type(2) { color: var(--muted); font-size: .65rem; line-height: 1.55; }
.formula-row { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-top: 1px solid var(--line); }
.formula-row > span { width: 42px; color: var(--teal); font-size: .84rem; font-weight: 800; }
.formula-row div { display: grid; gap: 2px; }
.formula-row strong { font-size: .64rem; }
.formula-row small { color: var(--muted); font-size: .55rem; }
.performance-table { margin-top: 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.performance-row { min-height: 63px; display: grid; grid-template-columns: minmax(230px, 1.65fr) repeat(4, .55fr) minmax(130px, .85fr) .55fr; align-items: center; gap: 10px; padding: 9px 13px; border-bottom: 1px solid #edf1f3; font-size: .66rem; }
.performance-row.with-management { grid-template-columns: minmax(220px, 1.5fr) repeat(4, .5fr) minmax(120px, .78fr) minmax(145px, .9fr) .5fr; }
.performance-row:last-child { border-bottom: 0; }
.management-cell button { width: 100%; min-height: 43px; display: grid; place-items: center; gap: 2px; padding: 6px 8px; color: var(--navy); background: #eef8fa; border: 1px solid #bee0e7; border-radius: 9px; cursor: pointer; }
.management-cell button:hover, .management-cell button:focus-visible { background: #e3f3f6; border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px rgba(29,123,140,.12); }
.management-cell button strong { font-size: .7rem; }
.management-cell button small { color: var(--muted); font-size: .49rem; }

.modal-backdrop { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(5,24,35,.58); backdrop-filter: blur(4px); }
.management-dialog { width: min(560px, 100%); display: grid; gap: 15px; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 70px rgba(3,31,45,.28); }
.management-dialog-heading { display: flex; justify-content: space-between; gap: 20px; }
.management-dialog-heading h2 { margin: 2px 0 3px; color: var(--navy); font-size: 1.05rem; }
.management-dialog-heading p:last-child { margin: 0; color: var(--muted); font-size: .64rem; }
.dialog-close { width: 34px; height: 34px; flex: 0 0 auto; color: var(--muted); background: #f4f7f8; border: 1px solid var(--line); border-radius: 50%; cursor: pointer; font-size: 1.15rem; }
.app-dialog-backdrop { position: fixed; z-index: 3000; inset: 0; display: grid; place-items: center; padding: 18px; background: rgba(5,24,35,.66); backdrop-filter: blur(5px); }
.app-error-dialog { position: relative; width: min(520px, 100%); display: grid; grid-template-columns: 48px minmax(0, 1fr) 34px; gap: 14px; padding: 24px; color: var(--ink); background: #fff; border: 1px solid #e4c8cd; border-radius: 18px; box-shadow: 0 26px 80px rgba(3,31,45,.34); }
.app-error-icon { width: 48px; height: 48px; display: grid; place-items: center; color: #fff; background: var(--danger); border-radius: 14px; font-size: 1.35rem; font-weight: 900; box-shadow: 0 8px 20px rgba(180,73,88,.24); }
.app-error-content { min-width: 0; }
.app-error-content .eyebrow { margin: 1px 0 4px; color: #9d3c49; }
.app-error-content h2 { margin: 0; color: var(--navy); font-size: 1.12rem; }
.app-error-message { margin: 11px 0 0; color: #465b64; font-size: .72rem; line-height: 1.65; overflow-wrap: anywhere; }
.app-error-close { align-self: start; }
.app-error-technical { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 10px; margin: 14px 0 0; padding: 10px 12px; color: #62757d; background: #f5f8f9; border-radius: 9px; font-size: .55rem; }
.app-error-technical dt { font-weight: 800; }
.app-error-technical dd { margin: 0; overflow-wrap: anywhere; font-family: Consolas, "Courier New", monospace; }
.app-error-actions { grid-column: 2 / -1; display: flex; justify-content: flex-end; margin-top: 3px; }
.app-error-actions .button { min-width: 122px; }
.calculated-reference { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 14px; color: #45606b; background: #f4f8f9; border-radius: 10px; font-size: .65rem; }
.calculated-reference strong { color: var(--teal); font-size: 1rem; }
.management-dialog label { display: grid; gap: 6px; color: #46565d; font-size: .64rem; font-weight: 700; }
.management-dialog label b { color: var(--danger); }
.management-dialog textarea { min-height: 125px; resize: vertical; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; }
.performance-header { min-height: 37px; color: var(--muted); background: #f6f9fa; font-size: .55rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.employee-cell { display: flex; align-items: center; gap: 9px; }
.employee-cell > span { min-width: 0; display: grid; gap: 2px; }
.employee-cell strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.employee-cell small { color: var(--muted); font-size: .54rem; }
.score-cell { display: grid; grid-template-columns: 1fr 25px; align-items: center; gap: 7px; }
.score-cell strong { color: var(--navy); }
.risk-value { color: var(--danger) !important; }

.report-cover { display: flex; align-items: center; gap: 22px; margin-bottom: 15px; padding: 17px 21px; overflow: hidden; background: linear-gradient(110deg, #fff, #f2f9fb); }
.report-brand { width: 240px; display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.report-brand img:first-child { width: 120px; height: 62px; object-fit: cover; }
.report-brand img:last-child { width: 100px; }
.report-brand span { width: 1px; height: 42px; background: var(--line); }
.report-cover > div:nth-child(2) { flex: 1; }
.report-cover h2 { margin: 0 0 4px; font-size: 1.06rem; text-transform: capitalize; }
.report-cover > div:nth-child(2) > p:last-child { margin: 0; color: var(--muted); font-size: .61rem; }
.report-folio { color: var(--muted); font-size: .57rem; }
.report-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 15px; }
.report-kpis article { display: grid; gap: 5px; padding: 17px; }
.report-kpis span { color: var(--muted); font-size: .61rem; }
.report-kpis strong { color: var(--navy); font-size: 1.55rem; }
.report-kpis small { color: var(--muted); font-size: .55rem; }
.report-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: 15px; margin-bottom: 15px; }
.report-trend, .status-distribution { padding: 20px; }
.report-total { color: var(--teal); font-size: 1.2rem; }
.line-chart { height: 205px; display: flex; align-items: flex-end; gap: 10px; margin-top: 20px; padding: 10px 8px 0; background: repeating-linear-gradient(to bottom, #edf2f3 0, #edf2f3 1px, transparent 1px, transparent 48px); border-bottom: 1px solid var(--line); }
.line-chart > div { position: relative; height: 100%; flex: 1; display: flex; align-items: flex-end; justify-content: center; }
.line-chart > div > i { width: min(38px, 56%); display: block; background: linear-gradient(180deg, rgba(103,172,209,.95), rgba(29,123,140,.9)); border-radius: 6px 6px 0 0; }
.line-chart > div > span { position: absolute; left: 50%; transform: translate(-50%, -4px); color: var(--navy); font-size: .55rem; }
.line-chart > div > small { position: absolute; top: 100%; margin-top: 7px; color: var(--muted); font-size: .53rem; }
.distribution-body { min-height: 200px; display: flex; align-items: center; justify-content: space-evenly; gap: 22px; }
.report-ring { width: 128px; height: 128px; }
.report-ring::before { width: 100px; height: 100px; }
.report-ring strong { color: var(--navy); font-size: 1.35rem; }
.report-ring small { color: var(--muted); font-size: .55rem; }
.distribution-legend { min-width: 150px; display: grid; gap: 12px; }
.distribution-legend > div { display: grid; grid-template-columns: 9px 1fr auto; align-items: center; gap: 7px; color: var(--muted); font-size: .61rem; }
.distribution-legend strong { color: var(--navy); }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.done { background: var(--success); }.dot.working { background: #348bb0; }.dot.pending { background: var(--warning); }.dot.blocked { background: var(--danger); }
.report-team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.report-team article { display: grid; grid-template-columns: 35px 1fr 30px; align-items: center; gap: 9px; padding: 12px; background: #f7fafb; border: 1px solid #e7edef; border-radius: 10px; }
.report-team article div { min-width: 0; display: grid; gap: 4px; }
.report-team article strong { overflow: hidden; text-overflow: ellipsis; font-size: .61rem; white-space: nowrap; }
.report-team article small { color: var(--muted); font-size: .52rem; }
.report-team article em { color: var(--navy); font-size: .75rem; font-style: normal; font-weight: 800; }

.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: radial-gradient(circle at 15% 15%, rgba(103,172,209,.22), transparent 32%), linear-gradient(135deg, #f5f9fa, #e9f1f3); }
.login-shell { width: min(980px, 100%); min-height: 590px; display: grid; grid-template-columns: 1.05fr .95fr; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 25px; box-shadow: 0 30px 80px rgba(9,56,75,.16); }
.login-visual { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 40px; color: #fff; background: linear-gradient(155deg, rgba(7,48,66,.92), rgba(12,83,102,.92)), url('../brand/gam-aicm-lockup.jpg') center/cover; }
.login-logo-card { width: 260px; height: 120px; display: grid; place-items: center; background: #fff; border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.16); }
.login-logo-card img { width: 104px; height: 104px; object-fit: cover; border-radius: 22px; }
.login-visual .eyebrow { color: #96d5ee; }
.login-visual h1 { max-width: 480px; color: #fff; font-size: clamp(2rem, 4.2vw, 3.2rem); }
.login-visual p:not(.eyebrow) { max-width: 460px; color: #d4e5eb; line-height: 1.6; }
.login-visual > small { color: #9bbbc6; }
.login-panel { display: flex; flex-direction: column; justify-content: center; padding: clamp(30px, 5vw, 60px); }
.login-product { display: flex; align-items: center; gap: 11px; margin-bottom: 52px; }
.login-product > img { width: 58px; height: 58px; flex: 0 0 auto; object-fit: cover; border-radius: 15px; box-shadow: 0 5px 14px rgba(9,56,75,.18); }
.login-product div { display: grid; gap: 2px; }
.login-product strong { color: var(--navy); font-size: 1.2rem; letter-spacing: -.03em; }
.login-product em { color: var(--cyan); font-style: normal; }
.login-product small { color: var(--muted); font-size: .6rem; }
.login-panel h2 { margin-bottom: 6px; font-size: 1.35rem; }
.login-panel > p:not(.eyebrow):not(.login-note) { color: var(--muted); font-size: .69rem; }
.demo-role { width: 100%; display: grid; grid-template-columns: 40px 1fr 20px; align-items: center; gap: 10px; margin-top: 10px; padding: 12px; text-align: left; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; }
.demo-role.selected { border-color: var(--cyan); background: #f2f9fc; box-shadow: 0 0 0 3px rgba(103,172,209,.10); }
.demo-role > span { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; background: var(--teal); border-radius: 9px; font-size: .62rem; font-weight: 800; }
.demo-role div { display: grid; gap: 3px; }
.demo-role strong { font-size: .68rem; }
.demo-role small { color: var(--muted); font-size: .56rem; }
.demo-role > b { color: var(--teal); }
.login-button { width: 100%; margin-top: 20px; }
.login-field { display: grid; gap: 5px; margin-top: 12px; color: var(--muted); font-size: .59rem; font-weight: 700; }
.login-field input { width: 100%; min-height: 42px; padding: 0 12px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 9px; outline: none; }
.login-field input:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(103,172,209,.12); }
.login-error { margin-top: 10px; color: #a83e4b !important; font-size: .62rem !important; font-weight: 700; }
.login-note { margin: 12px 0 0; color: var(--muted); font-size: .55rem; text-align: center; }

.empty-state { padding: 60px 24px; text-align: center; }
.empty-code { display: block; color: var(--cyan); font-size: 3.5rem; font-weight: 800; opacity: .6; }
.empty-state p { color: var(--muted); }
.boot-message { min-height: 100vh; display: grid; place-items: center; color: var(--navy); font-weight: 700; }
#blazor-error-ui { display: none; position: fixed; z-index: 9999; left: 0; right: 0; bottom: 0; padding: 13px; color: #773642; background: #fdebee; text-align: center; }

@media (max-width: 1180px) {
    :root { --sidebar: 220px; }
    .topbar { grid-template-columns: var(--sidebar) 1fr auto; }
    .brand-gam { width: 93px; }.brand-aicm { width: 78px; }
    .form-layout { grid-template-columns: 1.2fr 1fr; }.form-aside { position: static; grid-column: 1 / -1; }.form-aside > img { width: 220px; }
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    :root { --topbar: 64px; }
    .topbar { grid-template-columns: 44px 1fr auto; padding: 0 13px 0 8px; gap: 8px; }
    .brand-lockup { height: 58px; padding: 5px 2px; border: 0; justify-self: start; }
    .brand-gam { width: 96px; height: 48px; }.brand-aicm { width: 83px; height: 40px; }
    .topbar-product { display: none; }.profile-chip div { display: none; }.topbar-actions { gap: 7px; }
    .menu-toggle { width: 38px; height: 38px; display: grid; place-content: center; gap: 4px; border-radius: 10px; cursor: pointer; }
    .menu-toggle span { width: 19px; height: 2px; display: block; background: var(--navy); border-radius: 3px; }
    .sidebar { z-index: 100; top: 0; width: min(300px, 82vw); transform: translateX(-103%); transition: transform .2s ease; }
    .menu-state:checked ~ .sidebar { transform: translateX(0); }
    .menu-scrim { position: fixed; z-index: 90; inset: 0; background: rgba(4,30,42,.46); backdrop-filter: blur(2px); }
    .menu-state:checked ~ .menu-scrim { display: block; }
    .content { margin-left: 0; padding: calc(var(--topbar) + 25px) 20px 94px; }
    .dashboard-grid, .report-grid, .team-hero-grid { grid-template-columns: 1fr; }
    .filter-panel { grid-template-columns: 1fr 1fr; }.search-field { grid-column: 1 / -1; }
    .desktop-table { display: none; }.mobile-ticket-list { display: grid; gap: 9px; }
    .mobile-ticket { display: grid; gap: 8px; padding: 13px; color: var(--ink); background: #f9fbfc; border: 1px solid var(--line); border-radius: 11px; text-decoration: none; }
    .mobile-ticket > div:first-child, .mobile-progress { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
    .mobile-ticket > div:first-child small { color: var(--teal); font-size: .55rem; font-weight: 800; }.mobile-ticket > strong { font-size: .7rem; }.mobile-ticket p { margin: 0; color: var(--muted); font-size: .58rem; }
    .mobile-progress i { flex: 1; }.mobile-progress span { color: var(--navy); font-size: .6rem; font-weight: 800; }
    .bottom-nav { position: fixed; z-index: 75; left: 12px; right: 12px; bottom: max(10px, env(safe-area-inset-bottom)); height: 66px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; padding: 6px; background: rgba(255,255,255,.96); border: 1px solid var(--line); border-radius: 19px; box-shadow: 0 10px 32px rgba(9,56,75,.18); backdrop-filter: blur(16px); }
    .bottom-nav a { display: grid; justify-items: center; gap: 3px; color: #738188; text-decoration: none; font-size: .52rem; font-weight: 700; }.bottom-nav svg { width: 20px; height: 20px; }.bottom-nav a.active { color: var(--teal); }
    .bottom-nav .bottom-create { transform: translateY(-15px); }.bottom-nav .bottom-create svg { width: 43px; height: 43px; padding: 12px; color: #fff; background: var(--teal); border-radius: 50%; box-shadow: 0 6px 17px rgba(29,123,140,.3); }.bottom-nav .bottom-create span { color: var(--teal); }
    .report-team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
    .content { padding-left: 12px; padding-right: 12px; }
    .brand-gam { width: 79px; }.brand-aicm { width: 66px; }.brand-divider { height: 28px; }.notification-button { display: none; }
    .page-title-row, .page-title-row.compact { align-items: flex-start; flex-direction: column; gap: 13px; }.today-card { width: 100%; min-width: 0; }.page-title-row > .button { width: 100%; }
    .period-switch { width: 100%; }.period-switch button { flex: 1; padding-left: 8px; padding-right: 8px; }
    .kpi-grid { grid-template-columns: 1fr 1fr; gap: 9px; }.kpi-card { min-height: 112px; align-items: flex-start; padding: 14px; }.kpi-icon { width: 36px; height: 36px; }.kpi-icon svg { width: 18px; }.kpi-card strong { font-size: 1.42rem; }.kpi-card small { white-space: normal; }.mini-ring { display: none; }
    .chart-card, .team-card, .activity-panel, .comparison-card, .report-team { padding: 15px; }.heading-actions .ghost { display: none; }.trend-chart { height: 190px; gap: 6px; padding-left: 1px; padding-right: 1px; }
    .ticket-cards { grid-template-columns: 1fr; }.filter-panel { grid-template-columns: 1fr; }.search-field { grid-column: auto; }
    .form-layout { grid-template-columns: 1fr; }.form-aside { grid-column: auto; }.form-grid { grid-template-columns: 1fr; }.form-grid .span-2 { grid-column: auto; }.form-actions { position: sticky; z-index: 20; bottom: 82px; padding: 8px; background: rgba(244,247,248,.94); border-radius: 12px; backdrop-filter: blur(10px); }.form-actions > * { flex: 1; }
    .detail-grid { grid-template-columns: 1fr; }.progress-hero { align-items: flex-start; }.large-ring { width: 90px; height: 90px; }.large-ring::before { width: 72px; height: 72px; }.large-ring strong { font-size: 1.2rem; }.update-grid { grid-template-columns: 1fr; }.update-grid .span-2 { grid-column: auto; }
    .podium { gap: 16px; padding-left: 0; padding-right: 0; }.podium-person > strong { max-width: 90px; font-size: .58rem; }.podium-avatar { width: 52px; height: 52px; }.place-1 .podium-avatar { width: 64px; height: 64px; }
    .performance-header { display: none; }.performance-row, .performance-row.with-management { grid-template-columns: 1fr 1fr 1fr; gap: 11px; padding: 14px; }.employee-cell { grid-column: 1 / -1; }.performance-row > span:not(.employee-cell)::before { content: attr(data-label); display: block; margin-bottom: 3px; color: var(--muted); font-size: .49rem; }.score-cell { display: grid !important; grid-template-columns: 1fr 24px; }.score-cell::before { grid-column: 1 / -1; }
    .report-cover { align-items: flex-start; flex-direction: column; }.report-brand { width: 100%; }.report-folio { align-self: flex-end; }.report-kpis { grid-template-columns: 1fr 1fr; gap: 9px; }.report-team-grid { grid-template-columns: 1fr; }.distribution-body { flex-direction: column; }
    .login-shell { grid-template-columns: 1fr; }.login-visual { display: none; }.login-panel { min-height: 570px; padding: 30px 24px; }.login-product { margin-bottom: 60px; }
    .app-error-dialog { grid-template-columns: 42px minmax(0, 1fr) 34px; gap: 11px; padding: 18px; }.app-error-icon { width: 42px; height: 42px; }.app-error-actions { grid-column: 1 / -1; }.app-error-actions .button { width: 100%; }
}

@media (max-width: 380px) {
    .brand-gam { width: 67px; }.brand-aicm { width: 57px; }.profile-chip > span { width: 34px; height: 34px; }
    .kpi-card { gap: 9px; padding: 12px; }.kpi-icon { display: none; }.kpi-card span { font-size: .63rem; }
    .section-heading { align-items: flex-start; }.live-pill { display: none; }.heading-actions .button { padding: 0 10px; }
    .progress-hero { gap: 12px; }.large-ring { width: 78px; height: 78px; }.large-ring::before { width: 62px; height: 62px; }.large-ring strong { font-size: 1rem; }
}

@media print {
    .topbar, .sidebar, .bottom-nav, .page-title-row .button, .period-switch, .heading-actions { display: none !important; }
    .content { margin: 0; padding: 15px; }.surface { box-shadow: none; break-inside: avoid; }.report-cover { border: 2px solid var(--navy); }
}

/* GAMPulse5.0 Dashboard · seguimiento proveniente de la app Tickets */
.executive-feed-filters { display: grid; grid-template-columns: minmax(260px, 1fr) 230px 190px; gap: 12px; margin-bottom: 16px; padding: 15px; }
.executive-feed-filters > label:not(.search-field) { display: grid; gap: 5px; }
.executive-feed-filters > label > span { color: var(--muted); font-size: .56rem; font-weight: 800; text-transform: uppercase; }
.executive-feed-filters select { min-height: 42px; padding: 0 11px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.executive-feed-layout { display: grid; grid-template-columns: minmax(0, 1fr) 290px; align-items: start; gap: 16px; }
.executive-feed-list { display: grid; gap: 12px; }
.executive-post { padding: 18px; }
.executive-post-head { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; }
.executive-post-head > div { display: grid; gap: 2px; }
.executive-post-head strong { font-size: .7rem; }
.executive-post-head small { color: var(--muted); font-size: .54rem; }
.executive-post > p { margin: 14px 0 0; color: #45575f; font-size: .7rem; line-height: 1.65; }
.executive-ticket-link { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; margin-top: 12px; padding: 10px 12px; color: var(--ink); background: #f6f9fa; border: 1px solid #e7edef; border-radius: 10px; text-decoration: none; }
.executive-ticket-link span { color: var(--teal); font-size: .57rem; font-weight: 800; }
.executive-ticket-link strong { overflow: hidden; text-overflow: ellipsis; font-size: .64rem; white-space: nowrap; }
.executive-ticket-link b { color: var(--teal); font-size: 1rem; }
.executive-attachments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.executive-attachments > span { display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 8px; padding: 9px; background: #f3f8fa; border: 1px solid #dce9ed; border-radius: 9px; }
.executive-attachments i { width: 30px; height: 30px; display: grid; place-items: center; color: var(--teal); background: #fff; border-radius: 8px; font-style: normal; }
.executive-attachments span span { min-width: 0; display: grid; gap: 2px; }
.executive-attachments strong { overflow: hidden; text-overflow: ellipsis; font-size: .56rem; white-space: nowrap; }
.executive-attachments small { color: var(--muted); font-size: .49rem; }
.executive-attachments > span > b { color: var(--teal); font-size: .48rem; }
.executive-feed-summary { position: sticky; top: calc(var(--topbar) + 25px); padding: 20px; }
.executive-feed-summary h2 { font-size: 1rem; }
.executive-feed-summary > div { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.executive-feed-summary > div span { display: grid; gap: 3px; padding: 12px; background: var(--cyan-soft); border-radius: 10px; }
.executive-feed-summary > div strong { color: var(--navy); font-size: 1.35rem; }
.executive-feed-summary > div small { color: var(--muted); font-size: .52rem; }
.executive-feed-summary dl { display: grid; grid-template-columns: 1fr auto; gap: 9px; margin: 17px 0; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .62rem; }
.executive-feed-summary dt { color: var(--muted); }.executive-feed-summary dd { margin: 0; color: var(--navy); font-weight: 800; }
.executive-feed-summary > p:last-child { margin: 0; color: var(--muted); font-size: .59rem; line-height: 1.55; }

@media (max-width: 900px) { .executive-feed-layout { grid-template-columns: 1fr; }.executive-feed-summary { position: static; }.executive-feed-filters { grid-template-columns: 1fr 1fr; }.executive-feed-filters .search-field { grid-column: 1 / -1; } }
@media (max-width: 600px) { .executive-feed-filters { grid-template-columns: 1fr; }.executive-feed-filters .search-field { grid-column: auto; }.executive-post-head { grid-template-columns: 36px 1fr; }.executive-post-head > .status { grid-column: 2; justify-self: start; }.executive-attachments { grid-template-columns: 1fr; } }
.executive-attachments .evidence-download { padding: 4px 7px; color: var(--teal); background: transparent; border: 1px solid #b8d4dc; border-radius: 6px; font-size: .48rem; font-weight: 800; cursor: pointer; }


/* Estado global de espera: Web, Windows MAUI, Android e iOS */
.app-busy-overlay { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(244,247,248,.56); backdrop-filter: blur(2px); cursor: wait; pointer-events: all; }
.app-busy-card { min-width: min(360px, calc(100vw - 40px)); display: flex; align-items: center; gap: 14px; padding: 16px 18px; color: var(--ink); background: rgba(255,255,255,.98); border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 18px 50px rgba(9,56,75,.18); }
.app-busy-card > div { display: grid; gap: 3px; }
.app-busy-card strong { color: var(--navy); font-size: .78rem; }
.app-busy-card small { color: var(--muted); font-size: .58rem; }
.app-busy-spinner { width: 31px; height: 31px; flex: 0 0 auto; border: 3px solid #d9e9ef; border-top-color: var(--teal); border-radius: 50%; animation: app-busy-spin .75s linear infinite; }
@keyframes app-busy-spin { to { transform: rotate(360deg); } }
body:has(.app-busy-overlay), body:has(.app-busy-overlay) * { cursor: wait !important; }

/* Administración de usuarios: tickets creados por el usuario autenticado */
.managed-lower-layout { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 16px; margin-top: 18px; }
.managed-created-tickets { min-width: 0; padding: 20px; }
.managed-user-actions { margin-top: 0; white-space: nowrap; }
.managed-ticket-heading { margin-bottom: 14px; }
.managed-ticket-heading h2 { margin-bottom: 4px; font-size: 1rem; }
.managed-ticket-heading p:last-child { margin: 0; color: var(--muted); font-size: .62rem; }
.created-ticket-count { padding: 7px 11px; color: var(--teal); background: var(--cyan-soft); border-radius: 999px; font-size: .6rem; font-weight: 800; white-space: nowrap; }
.created-ticket-table { max-height: 350px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.created-ticket-row { min-height: 62px; display: grid; grid-template-columns: minmax(260px, 2fr) minmax(145px, 1fr) 80px 105px minmax(115px,.8fr) 112px; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #eaf0f2; }
.created-ticket-row:last-child { border-bottom: 0; }
.created-ticket-row:not(.created-ticket-header):hover { background: #f8fbfc; }
.created-ticket-header { position: sticky; z-index: 2; top: 0; min-height: 38px; color: var(--muted); background: #f6f9fa; font-size: .56rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.created-ticket-row > span { min-width: 0; font-size: .6rem; }
.created-ticket-row > span:first-child { display: grid; gap: 2px; }
.created-ticket-row > span:first-child small { color: var(--teal); font-size: .54rem; font-weight: 800; }
.created-ticket-row > span:first-child strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .67rem; }
.created-ticket-row > span:first-child em { overflow: hidden; text-overflow: ellipsis; color: var(--muted); font-size: .53rem; font-style: normal; white-space: nowrap; }
.created-ticket-date { color: var(--muted); font-size: .55rem !important; }
.managed-ticket-empty { min-height: 116px; display: flex; align-items: center; justify-content: center; gap: 13px; padding: 18px; color: var(--muted); background: #f8fbfc; border: 1px dashed #cadbe1; border-radius: 12px; }
.managed-ticket-empty > span { width: 42px; height: 42px; display: grid; place-items: center; color: var(--teal); background: var(--cyan-soft); border-radius: 50%; font-size: 1rem; font-weight: 900; }
.managed-ticket-empty > div { display: grid; gap: 3px; }
.managed-ticket-empty strong { color: var(--navy); font-size: .7rem; }
.managed-ticket-empty small { font-size: .58rem; }
.created-ticket-mobile { display: none; }


@media (max-width: 900px) {
    .managed-lower-layout { grid-template-columns: 1fr; }
    .managed-user-actions { justify-self: stretch; }
    .managed-user-actions > * { flex: 1; }
    .managed-ticket-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
    .created-ticket-table { display: none; }
    .created-ticket-mobile { max-height: 420px; display: grid; gap: 9px; overflow: auto; }
    .created-ticket-mobile article { display: grid; gap: 7px; padding: 13px; background: #f9fbfc; border: 1px solid var(--line); border-radius: 11px; }
    .created-ticket-mobile article > div:first-child, .created-ticket-mobile .mobile-progress { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
    .created-ticket-mobile article > div:first-child small { color: var(--teal); font-size: .54rem; font-weight: 800; }
    .created-ticket-mobile article > strong { color: var(--ink); font-size: .68rem; }
    .created-ticket-mobile article > p { margin: 0; color: var(--muted); font-size: .57rem; }
    .created-ticket-mobile article > small { color: var(--muted); font-size: .52rem; }
}
