:root {
  --ink: #12212c;
  --navy: #0a1722;
  --navy-2: #112735;
  --teal: #13b98a;
  --teal-bright: #22d3a6;
  --teal-soft: #dff8f0;
  --blue: #4678ee;
  --amber: #f4aa3f;
  --red: #df5c66;
  --paper: #f3f6f7;
  --white: #fff;
  --line: #dfe6e8;
  --muted: #6d7b84;
  --shadow: 0 18px 50px rgba(13, 35, 48, .1);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, "Segoe UI", sans-serif; line-height: 1.45; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(460px, 1.1fr) minmax(430px, .9fr); background: var(--white); }
.login-brand { position: relative; min-height: 100vh; overflow: hidden; padding: clamp(42px, 7vw, 96px); color: white; display: flex; flex-direction: column; justify-content: center; background: radial-gradient(circle at 16% 12%, rgba(34,211,166,.22), transparent 34%), linear-gradient(145deg, #07131d 4%, #0a2430 58%, #0b3a3a 120%); }
.login-brand::after { content: ""; position: absolute; width: 420px; height: 420px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; right: -140px; bottom: -130px; box-shadow: 0 0 0 60px rgba(255,255,255,.025), 0 0 0 120px rgba(255,255,255,.018); }
.signal-grid { position: absolute; inset: 0; opacity: .09; background-image: linear-gradient(rgba(255,255,255,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.25) 1px, transparent 1px); background-size: 58px 58px; mask-image: linear-gradient(to top right, transparent 20%, black 70%); }
.brand-mark { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: var(--navy); background: var(--teal-bright); box-shadow: 0 10px 25px rgba(34,211,166,.22); font-family: Arial, "Segoe UI", sans-serif; font-weight: 800; font-size: 1.35rem; }
.brand-mark--large { width: 64px; height: 64px; border-radius: 19px; margin-bottom: 42px; font-size: 2rem; }
.brand-copy, .login-proof { position: relative; z-index: 1; }
.brand-copy h1 { font: 800 clamp(3.7rem, 7vw, 6.8rem)/.88 Manrope, sans-serif; letter-spacing: -.075em; margin: 14px 0 28px; }
.brand-copy h1 span { color: var(--teal-bright); font-size: .58em; letter-spacing: -.045em; }
.brand-copy > p:last-child { font-size: clamp(1rem, 1.5vw, 1.25rem); color: #c3d3d8; max-width: 520px; }
.eyebrow { margin: 0; color: var(--teal-bright); text-transform: uppercase; letter-spacing: .13em; font-weight: 700; font-size: .76rem; }
.eyebrow--dark { color: #168368; }
.login-proof { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 620px; margin-top: 64px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.14); gap: 26px; }
.login-proof div { display: grid; gap: 3px; }
.login-proof strong { font: 700 1.55rem Manrope, sans-serif; color: white; }
.login-proof span { color: #9fb3ba; font-size: .78rem; }
.login-panel { display: grid; place-items: center; padding: 42px; }
.login-card { width: min(440px, 100%); }
.login-card h2 { font: 800 2.3rem Manrope, sans-serif; letter-spacing: -.04em; margin: 8px 0 8px; }
.muted { color: var(--muted); margin: 0; }
.mobile-brand { display: none; align-items: center; gap: 12px; margin-bottom: 44px; }
.login-form { display: grid; gap: 12px; margin-top: 32px; }
.corporate-access { margin-top: 30px; }
.corporate-access__icon { font-size: 1.25rem; }
.corporate-access p { margin: 10px 8px 0; text-align: center; color: #718188; font-size: .75rem; }
.corporate-access + .divider { margin-top: 22px; margin-bottom: 18px; }
.corporate-access + .divider + .login-form { margin-top: 0; }
.login-form label, .ticket-form label { font-size: .86rem; font-weight: 600; }
.label-row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.text-button, .panel-link { border: 0; background: transparent; color: #168368; font-weight: 700; padding: 0; }
.input-wrap { height: 52px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; transition: .2s ease; }
.input-wrap:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(19,185,138,.12); }
.input-wrap svg, .global-search svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; color: #85939b; }
.input-wrap input { border: 0; outline: 0; flex: 1; min-width: 0; color: var(--ink); }
.icon-button { border: 0; background: transparent; display: grid; place-items: center; color: inherit; border-radius: 10px; }
.icon-button:hover { background: rgba(18,33,44,.06); }
.password-toggle svg { width: 20px; }
.check-line { display: flex; gap: 8px; align-items: center; margin: 5px 0 10px; color: var(--muted); }
input[type="checkbox"] { accent-color: var(--teal); width: 17px; height: 17px; }
.primary-button, .secondary-button { border-radius: 11px; min-height: 44px; padding: 0 17px; border: 1px solid transparent; font-weight: 700; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.primary-button { color: white; background: var(--ink); box-shadow: 0 8px 18px rgba(18,33,44,.14); }
.primary-button:hover { background: #203947; transform: translateY(-1px); }
.primary-button--wide { min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 12px; font-size: .95rem; }
.secondary-button { color: var(--ink); border-color: var(--line); background: var(--white); }
.secondary-button:hover { border-color: #b7c5ca; background: #f8fafb; }
.divider { display: flex; align-items: center; gap: 12px; color: #94a0a7; font-size: .76rem; margin: 26px 0 18px; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.demo-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.secure-note { display: flex; justify-content: center; align-items: center; gap: 7px; color: #7d8c94; font-size: .75rem; margin-top: 28px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--teal); box-shadow: 0 0 0 4px rgba(19,185,138,.12); }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 248px 1fr; }
.sidebar { position: fixed; width: 248px; height: 100vh; z-index: 30; background: var(--navy); color: #d7e1e4; padding: 24px 18px; display: flex; flex-direction: column; }
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 27px; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-brand > div:last-child { display: grid; line-height: 1.08; }
.sidebar-brand b { color: white; font: 800 1.15rem Manrope, sans-serif; letter-spacing: .06em; }
.sidebar-brand small { color: #7f969f; font-size: .74rem; }
.nav-list { padding: 22px 0; display: grid; gap: 5px; }
.nav-item { border: 0; width: 100%; min-height: 43px; background: transparent; color: #91a5ad; border-radius: 11px; text-align: left; display: flex; align-items: center; gap: 12px; padding: 0 12px; font-size: .87rem; font-weight: 600; }
.nav-item:hover { color: white; background: rgba(255,255,255,.05); }
.nav-item.active { color: white; background: linear-gradient(90deg, rgba(34,211,166,.19), rgba(34,211,166,.07)); box-shadow: inset 3px 0 var(--teal-bright); }
.nav-icon { width: 20px; font-size: 1rem; text-align: center; }
.nav-count { margin-left: auto; border-radius: 999px; padding: 2px 8px; color: var(--teal-bright); background: rgba(34,211,166,.11); font-size: .69rem; }
.nav-count--muted { color: #9fb1b8; background: rgba(255,255,255,.08); }
.nav-count--danger { color: #ff9b9f; background: rgba(223,92,102,.15); }
.nav-label { color: #56707a; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; font-size: .64rem; padding: 19px 12px 6px; }
.sidebar-foot { margin-top: auto; }
.contract-pill { display: flex; gap: 11px; align-items: center; margin: 0 4px 14px; padding: 13px; border-radius: 12px; background: rgba(255,255,255,.045); }
.contract-pill div { display: grid; }
.contract-pill b { font-size: .75rem; color: white; }
.contract-pill small { color: #708791; font-size: .65rem; }
.nav-item--logout { border-top: 1px solid rgba(255,255,255,.07); border-radius: 0; padding-top: 12px; }
.app-main { grid-column: 2; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 20; height: 76px; padding: 0 34px; background: rgba(255,255,255,.93); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.menu-button { display: none; font-size: 1.2rem; }
.global-search { height: 42px; flex: 0 1 480px; border: 1px solid transparent; border-radius: 11px; background: #f2f5f6; display: flex; align-items: center; padding: 0 13px; gap: 10px; }
.global-search:focus-within { border-color: #b8ccc6; background: white; }
.global-search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: .84rem; }
kbd { color: #829096; background: white; border: 1px solid #dce3e5; box-shadow: 0 1px 1px #ccd6d9; border-radius: 5px; font: 500 .65rem "DM Sans"; padding: 3px 6px; }
.top-actions, .user-chip { display: flex; align-items: center; gap: 13px; }
.notification-button { position: relative; width: 38px; height: 38px; font-size: 1.25rem; }
.notification-button span { position: absolute; min-width: 15px; height: 15px; display: grid; place-items: center; padding: 0 2px; border: 2px solid white; border-radius: 9px; background: var(--red); color: white; right: 2px; top: 1px; font-size: .52rem; font-weight: 800; }
.user-chip { padding-left: 14px; border-left: 1px solid var(--line); }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: white; background: linear-gradient(135deg, #1b665b, var(--teal)); font-weight: 800; font-size: .78rem; }
.user-chip > div:nth-child(2) { display: grid; }
.user-chip b { font-size: .78rem; }
.user-chip small { font-size: .68rem; color: var(--muted); }
.content { max-width: 1600px; margin: 0 auto; padding: 34px clamp(22px, 3.5vw, 52px) 60px; }
.view { display: none; animation: viewIn .25s ease; }
.view.active-view { display: block; }
@keyframes viewIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-head h2 { margin: 6px 0 5px; font: 800 clamp(1.75rem, 3vw, 2.25rem) Manrope, sans-serif; letter-spacing: -.045em; }
.head-actions { display: flex; gap: 10px; }
.scope-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.scope-tabs { display: flex; padding: 4px; background: #e5ebed; border-radius: 10px; }
.scope-tab { min-height: 34px; padding: 0 14px; border: 0; border-radius: 8px; color: #65757d; background: transparent; font-size: .78rem; font-weight: 700; }
.scope-tab.active { color: var(--ink); background: white; box-shadow: 0 2px 6px rgba(18,33,44,.09); }
.date-filter { color: var(--muted); font-size: .8rem; font-weight: 600; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 15px; }
.metric-card, .panel { position: relative; background: white; border: 1px solid #e2e8ea; border-radius: var(--radius); box-shadow: 0 5px 18px rgba(18,33,44,.035); }
.metric-card { min-height: 160px; padding: 20px; overflow: hidden; }
.metric-card--dark { color: white; background: linear-gradient(150deg, #0b1b26, #143645); border-color: transparent; }
.metric-card--dark p { color: #a7bac2; }
.metric-top { display: flex; align-items: center; justify-content: space-between; color: #718088; font-size: .77rem; font-weight: 600; }
.metric-card--dark .metric-top { color: #b4c3c8; }
.metric-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; color: white; background: rgba(255,255,255,.1); }
.metric-icon--amber { color: #a76613; background: #fff0d7; }
.metric-icon--blue { color: #426dd5; background: #e6edff; }
.metric-icon--green { color: #138765; background: var(--teal-soft); }
.metric-card strong { display: block; margin: 13px 0 3px; font: 800 2.25rem Manrope, sans-serif; letter-spacing: -.05em; }
.metric-card p { margin: 0; color: #809097; font-size: .72rem; }
.metric-card em { color: var(--teal); font-style: normal; font-weight: 700; }
.metric-card em.warn { color: #c17c1c; }
.sparkline { position: absolute; right: 19px; bottom: 17px; height: 36px; width: 92px; display: flex; gap: 5px; align-items: flex-end; }
.sparkline i { flex: 1; border-radius: 2px 2px 0 0; background: rgba(34,211,166,.24); }
.sparkline i:nth-child(1) { height: 35%; }.sparkline i:nth-child(2) { height: 52%; }.sparkline i:nth-child(3) { height: 44%; }.sparkline i:nth-child(4) { height: 70%; }.sparkline i:nth-child(5) { height: 60%; }.sparkline i:nth-child(6) { height: 87%; }.sparkline i:nth-child(7) { height: 100%; background: var(--teal-bright); }
.progress { margin-top: 19px; height: 5px; border-radius: 99px; background: #eef1f2; overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: inherit; background: var(--amber); }
.wait-bars { position: absolute; right: 18px; bottom: 21px; width: 78px; display: grid; gap: 5px; justify-items: end; }
.wait-bars i { display: block; height: 4px; border-radius: 5px; background: #7fa3f8; }
.ring { position: absolute; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; right: 17px; bottom: 15px; background: conic-gradient(var(--teal) calc(var(--value) * 1%), #e8eeee 0); }
.ring::before { content: ""; width: 38px; height: 38px; border-radius: 50%; background: white; }
.ring span { position: absolute; font-size: .63rem; font-weight: 800; }
.dashboard-grid { display: grid; grid-template-columns: 1.35fr .85fr; gap: 15px; margin-top: 15px; }
.panel { padding: 21px; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.panel h3 { margin: 0; font: 700 1rem Manrope, sans-serif; letter-spacing: -.02em; }
.panel-head p, .panel > p { color: var(--muted); font-size: .74rem; margin: 4px 0 0; }
.chart-legend { display: flex; justify-content: flex-end; gap: 18px; margin-top: 15px; color: var(--muted); font-size: .69rem; }
.chart-legend span { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 7px; height: 7px; border-radius: 2px; background: var(--teal); }.legend-dot--navy { background: #28495a; }
.bar-chart { height: 220px; display: grid; grid-template-columns: 32px 1fr; margin-top: 8px; }
.axis-labels { display: flex; flex-direction: column; justify-content: space-between; color: #9aa6ab; font-size: .62rem; padding-bottom: 25px; }
.bars { min-width: 0; display: grid; grid-template-columns: repeat(4,1fr); align-items: end; gap: clamp(14px,4vw,44px); padding: 0 18px 0; background: repeating-linear-gradient(to bottom, #edf1f2 0, #edf1f2 1px, transparent 1px, transparent 25%); }
.bars > div { height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 8px; position: relative; padding-bottom: 25px; }
.bars i, .bars b { width: 16px; min-height: 8px; border-radius: 5px 5px 1px 1px; background: var(--teal); }
.bars b { background: #28495a; }
.bars span { position: absolute; bottom: 3px; color: var(--muted); font-size: .65rem; }
.critical-badge, .badge { display: inline-flex; align-items: center; white-space: nowrap; border-radius: 999px; padding: 5px 9px; font-size: .66rem; font-weight: 700; }
.critical-badge { color: #b13c48; background: #fde7e9; }
.attention-list { display: grid; margin: 12px 0 13px; }
.attention-item { display: grid; grid-template-columns: 9px 1fr auto; gap: 10px; align-items: start; padding: 12px 0; border-bottom: 1px solid #edf1f2; }
.attention-item > i { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; background: var(--red); }
.attention-item:nth-child(2) > i { background: var(--amber); }
.attention-item b { display: block; font-size: .76rem; }
.attention-item small { display: block; color: var(--muted); font-size: .67rem; margin-top: 2px; }
.attention-item time { color: var(--red); font-size: .66rem; font-weight: 700; }
.attention-panel .panel-link { width: 100%; text-align: left; padding-top: 4px; display: flex; justify-content: space-between; }
.recent-panel { margin-top: 15px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin-top: 16px; }
th { color: #849198; font-size: .66rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
td { font-size: .75rem; padding: 13px 12px; border-bottom: 1px solid #edf1f2; vertical-align: middle; }
tbody tr { transition: background .15s ease; cursor: pointer; }
tbody tr:hover { background: #f7faf9; }
.id-cell { font-weight: 800; color: #14795f; }
.user-cell { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.mini-avatar { width: 27px; height: 27px; border-radius: 8px; display: grid; place-items: center; color: #1b5449; background: #d9f4ec; font-size: .61rem; font-weight: 800; }
.badge--high { color: #a43540; background: #fde7e9; }.badge--medium { color: #9b661b; background: #fff0d7; }.badge--low { color: #406484; background: #e9f2fa; }
.badge--open { color: #3361bd; background: #e5edff; }.badge--progress { color: #13765e; background: var(--teal-soft); }.badge--wait { color: #916117; background: #fff0d7; }.badge--closed { color: #66757b; background: #edf1f2; }
.filter-strip { display: flex; gap: 10px; margin-bottom: 15px; }
.mini-search { min-width: 230px; flex: 1; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: white; border-radius: 11px; padding: 0 13px; }
.mini-search input { min-height: 43px; flex: 1; border: 0; outline: 0; }
select, .ticket-form input, .ticket-form textarea, .setting-row input { border: 1px solid var(--line); border-radius: 10px; min-height: 44px; color: var(--ink); background: white; padding: 0 12px; outline: 0; }
.ticket-form textarea { padding-top: 11px; resize: vertical; }
select:focus, .ticket-form input:focus, .ticket-form textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(19,185,138,.1); }
.table-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 15px; color: var(--muted); font-size: .7rem; }
.table-footer div { display: flex; gap: 5px; }.table-footer button { width: 29px; height: 29px; border: 1px solid var(--line); border-radius: 7px; background: white; }.table-footer button.active { color: white; background: var(--ink); }
.kanban { display: grid; grid-template-columns: repeat(4,minmax(220px,1fr)); gap: 15px; align-items: start; overflow-x: auto; }
.kanban-column { background: #e9edef; border-radius: var(--radius); padding: 13px; min-height: 500px; }
.kanban-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 13px; }.kanban-head b { font-size: .79rem; }.kanban-head span { font-size: .68rem; color: var(--muted); }
.task-card { background: white; border-radius: 13px; border: 1px solid #dfe6e8; padding: 14px; margin-bottom: 10px; box-shadow: 0 4px 12px rgba(18,33,44,.035); cursor: pointer; }
.task-card:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(18,33,44,.07); }.task-card .task-id { color: #148164; font-size: .65rem; font-weight: 800; }.task-card h4 { margin: 8px 0 12px; font-size: .8rem; }.task-meta { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: .66rem; }
.alert-summary { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 15px; }.alert-summary > div { border-radius: 14px; padding: 17px; background: white; border: 1px solid var(--line); display: grid; }.alert-summary strong { font: 800 1.8rem Manrope; }.alert-summary span { color: var(--muted); font-size: .72rem; }
.alert-feed { display: grid; gap: 10px; }.alert-card { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: white; }.alert-card .alert-symbol { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: #a33843; background: #fde8ea; font-weight: 800; }.alert-card h3 { margin: 0; font-size: .84rem; }.alert-card p { margin: 2px 0 0; color: var(--muted); font-size: .7rem; }.alert-card time { color: #a63d47; font-size: .7rem; font-weight: 700; }
.report-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 15px; }.report-feature { grid-row: span 2; color: white; background: linear-gradient(145deg, #0a1823, #123747); }.report-kicker { color: #99b1ba; font-size: .78rem; }.report-feature > strong { display: block; font: 800 4rem Manrope; letter-spacing: -.07em; margin: 28px 0 0; }.report-feature > p { color: #a5b8bf; }.report-progress { height: 8px; border-radius: 8px; background: rgba(255,255,255,.12); margin-top: 38px; overflow: hidden; }.report-progress span { display: block; height: 100%; background: var(--teal-bright); }.report-split { display: flex; justify-content: space-between; color: #93a9b1; font-size: .72rem; margin-top: 10px; }.report-split b { color: white; }.positive { color: #11906b !important; }.report-value { display: block; font: 800 2rem Manrope; margin-top: 20px; }.category-panel, .contract-panel { min-height: 260px; }.category-list { margin-top: 20px; display: grid; gap: 12px; }.category-row { display: grid; grid-template-columns: 90px 1fr 36px; align-items: center; gap: 10px; font-size: .72rem; }.category-row i, .contract-bars i { height: 7px; border-radius: 10px; background: #edf1f2; overflow: hidden; }.category-row i em, .contract-bars i em { display: block; height: 100%; background: var(--teal); }.category-row b { text-align: right; }.contract-bars { display: grid; gap: 28px; margin-top: 36px; }.contract-bars div { display: grid; gap: 9px; }.contract-bars span { display: flex; justify-content: space-between; font-size: .78rem; }.contract-bars i { height: 10px; }.contract-bars i em { background: linear-gradient(90deg,var(--teal),var(--teal-bright)); }
.role-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 15px; }.role-card { border-radius: 15px; padding: 17px; background: white; border: 1px solid var(--line); }.role-card span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #14765f; background: var(--teal-soft); }.role-card strong { display: block; margin-top: 12px; font: 700 .88rem Manrope; }.role-card small { color: var(--muted); }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }.setting-row, .toggle-row { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: .79rem; font-weight: 700; }.setting-row span, .toggle-row span { display: grid; }.setting-row small, .toggle-row small { color: var(--muted); font-weight: 400; margin-top: 2px; }.setting-row input { width: 82px; }.toggle-row input { width: 38px; height: 21px; accent-color: var(--teal); }
.modal-backdrop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(5,17,25,.62); backdrop-filter: blur(4px); padding: 20px; }
#transitionModal { z-index: 110; }
.modal { width: min(680px,100%); max-height: 92vh; overflow-y: auto; background: white; border-radius: 20px; box-shadow: var(--shadow); padding: 25px; }.modal.modal--small { width: min(520px,100%); }
.modal-head, .drawer-head { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 18px; border-bottom: 1px solid var(--line); }.modal-head h2, .drawer-head h2 { font: 800 1.45rem Manrope; margin: 5px 0 0; }.modal-head .icon-button, .drawer-head .icon-button { width: 38px; height: 38px; font-size: 1.5rem; }
.ticket-form { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 20px; }.ticket-form label { display: grid; gap: 7px; }.ticket-form .full { grid-column: 1/-1; }.ticket-form input[type="file"] { height: auto; padding: 11px 12px; border-style: dashed; }.file-button { min-height: 44px; border: 1px dashed #b6c4c8; border-radius: 10px; background: #f8fafb; color: var(--muted); }.modal-actions { display: flex !important; flex-direction: row; justify-content: flex-end; margin-top: 10px; }.ticket-form .check-line { display: flex; align-items: center; gap: 10px; }.ticket-form .check-line input { min-height: auto; width: 18px; height: 18px; }
.detail-drawer { position: fixed; z-index: 90; top: 0; right: 0; width: min(470px,100%); height: 100vh; background: white; box-shadow: -20px 0 60px rgba(5,17,25,.18); padding: 25px; transform: translateX(105%); transition: transform .25s ease; overflow-y: auto; }.detail-drawer.open { transform: none; }.drawer-shade { position: fixed; inset: 0; z-index: 85; background: rgba(7,20,29,.35); }.drawer-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0; }.drawer-summary div { border: 1px solid var(--line); border-radius: 11px; padding: 12px; display: grid; }.drawer-summary small { color: var(--muted); }.drawer-summary b { font-size: .8rem; margin-top: 3px; }.drawer-description { padding: 15px; border-radius: 12px; background: #f5f8f8; font-size: .8rem; }.timeline { margin-top: 23px; }.timeline h3 { font: 700 .92rem Manrope; }.timeline-item { display: grid; grid-template-columns: 14px 1fr; gap: 10px; padding-bottom: 18px; }.timeline-item i { width: 9px; height: 9px; margin-top: 5px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }.timeline-item div { display: grid; font-size: .76rem; }.timeline-item small { color: var(--muted); margin-top: 2px; }.drawer-actions { display: flex; gap: 10px; margin-top: 14px; }.drawer-actions button { flex: 1; }
.toast { position: fixed; z-index: 120; right: 24px; bottom: 24px; max-width: 360px; color: white; background: var(--navy); border-radius: 12px; padding: 13px 17px; box-shadow: var(--shadow); font-size: .8rem; font-weight: 600; transform: translateY(30px); opacity: 0; pointer-events: none; transition: .25s ease; }.toast.show { opacity: 1; transform: none; }.toast.toast--error { background: #9e2f35; }
.document-card { margin-top: 13px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; font-size: .8rem; }.document-card ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }.document-card li { display: grid; gap: 2px; }.document-card a { color: #14765f; font-weight: 700; }.document-card small { color: var(--muted); }
.document-link-fields { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.document-link-fields legend { padding: 0 8px; font-weight: 800; color: var(--ink); }
.user-contract-fields { border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.user-contract-fields legend { padding: 0 8px; font-weight: 800; color: var(--ink); }
.user-contract-fields > small { display: block; color: var(--muted); margin-top: 10px; }
.contract-checks { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.contract-check { display: flex !important; align-items: center; gap: 10px !important; border: 1px solid var(--line); border-radius: 10px; padding: 11px; background: #f8fafb; }
.contract-check input { min-height: auto !important; width: 18px; height: 18px; flex: 0 0 auto; }
.contract-check span { display: grid; gap: 2px; }
.contract-check small { color: var(--muted); font-weight: 500; }
.registration-result { padding-top: 22px; }
.registration-result h3 { margin: 14px 0 8px; font: 800 1.15rem Manrope, sans-serif; }
.registration-result p { color: var(--muted); line-height: 1.6; }
.temporary-password { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #f5f8f8; }
.temporary-password code { flex: 1; overflow-wrap: anywhere; font-size: .86rem; font-weight: 700; color: var(--ink); }

/* Trazabilidad, tiempos y contingencia requeridos por el flujo contractual */
.secondary-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; margin-top: 15px; }
.secondary-metrics article { display: grid; min-height: 128px; align-content: center; }
.secondary-metrics span { color: var(--muted); font-size: .76rem; font-weight: 600; }
.secondary-metrics strong { margin: 8px 0 2px; font: 800 1.55rem Manrope, sans-serif; }
.secondary-metrics small { color: var(--muted); }
.lifecycle-panel { margin-bottom: 15px; padding: 24px; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; color: #13765e; background: var(--teal-soft); border-radius: 999px; padding: 7px 11px; font-size: .7rem; font-weight: 700; }
.live-pill i, .mail-health i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(19,185,138,.12); }
.lifecycle-flow { display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto 1fr auto; align-items: center; gap: 12px; margin-top: 27px; }
.lifecycle-flow > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lifecycle-flow > div > b { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #cfdadd; border-radius: 50%; color: #7c8b92; background: white; }
.lifecycle-flow > div.done > b { color: white; border-color: var(--teal); background: var(--teal); }
.lifecycle-flow > div.active > b { color: #0e765e; border-color: var(--teal); background: var(--teal-soft); box-shadow: 0 0 0 5px rgba(19,185,138,.09); }
.lifecycle-flow > div span { display: grid; font-size: .77rem; font-weight: 700; white-space: nowrap; }
.lifecycle-flow > div small { color: var(--muted); font-size: .63rem; font-weight: 400; }
.lifecycle-flow > i { height: 2px; background: #dbe3e5; }
.lifecycle-flow > div.done + i { background: var(--teal); }
.audit-summary { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 15px; }
.audit-summary article { display: grid; padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.audit-summary span { color: var(--muted); font-size: .7rem; }
.audit-summary strong { margin: 4px 0; font: 800 1.65rem Manrope; }
.audit-summary small { color: #168368; font-size: .65rem; }
.audit-panel td:nth-child(5) { min-width: 260px; }
.record-count { color: var(--muted); font-size: .7rem; }
.mailbox-banner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 21px; margin-bottom: 15px; color: white; border-radius: var(--radius); background: linear-gradient(145deg,#0a1722,#143747); box-shadow: var(--shadow); }
.mail-icon { width: 46px; height: 46px; display: grid; place-items: center; color: var(--teal-bright); border-radius: 13px; background: rgba(34,211,166,.12); font-size: 1.25rem; }
.mailbox-banner > div:nth-child(2) { display: grid; }
.mailbox-banner span { color: #8fa7b0; font-size: .7rem; }
.mailbox-banner strong { margin: 2px 0; font-size: .92rem; }
.mailbox-banner small { color: #8fa7b0; }
.mail-health { display: flex; align-items: center; gap: 9px; padding: 8px 12px; color: #bbf6e5; border: 1px solid rgba(34,211,166,.2); border-radius: 999px; font-size: .7rem; font-weight: 700; }
.contingency-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 15px; }
.contingency-steps article { display: grid; grid-template-columns: auto 1fr; gap: 11px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.contingency-steps article > b { color: var(--teal); font: 800 .72rem Manrope; }
.contingency-steps div { display: grid; }
.contingency-steps strong { font-size: .78rem; }
.contingency-steps span { margin-top: 3px; color: var(--muted); font-size: .67rem; }
.pending-id { color: #a46c1e; font-weight: 800; }
.drawer-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-top: 20px; }
.drawer-title h3 { margin: 0; max-width: 290px; font: 800 1.05rem Manrope; }
.drawer-title > div { display: flex; gap: 5px; }
.time-control { margin: 22px 0 14px; }
.time-control h3, .timeline-title h3 { margin: 0 0 11px; font: 700 .92rem Manrope; }
.time-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 9px; }
.time-grid > div { display: grid; padding: 12px; border-radius: 11px; color: white; background: var(--navy-2); }
.time-grid span { color: #9eb1b9; font-size: .65rem; }
.time-grid b { margin: 4px 0 2px; font: 800 1.05rem Manrope; }
.time-grid small { color: #79919a; font-size: .6rem; }
.control-note { display: flex; gap: 11px; align-items: center; padding: 12px; margin-bottom: 14px; border: 1px solid #cceee3; border-radius: 11px; background: #f0fbf7; }
.control-note--warn { border-color: #f1dbb8; background: #fff8ed; }
.control-note > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: #15775f; background: var(--teal-soft); }
.control-note--warn > span { color: #a66c16; background: #ffebc9; }
.control-note div { display: grid; }
.control-note b { font-size: .75rem; }
.control-note small { color: var(--muted); font-size: .65rem; }
.drawer-description b { font-size: .75rem; }
.drawer-description p { margin: 5px 0 0; }
.quality-card { display: grid; grid-template-columns: repeat(2,1fr); gap: 9px; margin-top: 14px; }
.quality-card > div { display: grid; padding: 12px; border: 1px solid var(--line); border-radius: 11px; }
.quality-card span { color: var(--muted); font-size: .65rem; }
.quality-card strong { margin: 4px 0 2px; font-size: .82rem; }
.quality-card small { color: var(--muted); font-size: .61rem; }
.timeline-title { display: flex; justify-content: space-between; align-items: center; }
.timeline-title .text-button { font-size: .68rem; }
.detail-drawer { width: min(580px,100%); }
.drawer-actions { flex-wrap: wrap; }
.drawer-actions button { min-width: 110px; }
.settings-wide { grid-column: 1/-1; }
.toggle-grid { display: grid; grid-template-columns: repeat(2,1fr); column-gap: 30px; }

@media (max-width: 1120px) {
  .audit-summary, .contingency-steps { grid-template-columns: repeat(2,1fr); }
  .lifecycle-flow { grid-template-columns: 1fr; }
  .lifecycle-flow > i { width: 2px; height: 18px; margin-left: 16px; }
}
@media (max-width: 820px) {
  .secondary-metrics { grid-template-columns: 1fr; }
  .mailbox-banner { grid-template-columns: auto 1fr; }
  .mail-health { grid-column: 1/-1; justify-self: start; }
  .toggle-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .audit-summary, .contingency-steps { grid-template-columns: 1fr; }
  .time-grid, .quality-card { grid-template-columns: 1fr; }
}

@media (max-width: 1120px) {
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .dashboard-grid, .report-grid { grid-template-columns: 1fr; }
  .report-feature { grid-row: auto; }
  .role-grid { grid-template-columns: repeat(2,1fr); }
  .login-shell { grid-template-columns: .9fr 1.1fr; }
  .login-brand { padding: 52px; }
}
@media (max-width: 820px) {
  .login-shell { display: block; background: linear-gradient(150deg,#eef4f3,#fff); padding: 24px; }
  .login-brand { display: none; }
  .login-panel { min-height: 100vh; padding: 20px; }
  .mobile-brand { display: flex; }
  .app-shell { display: block; }
  .sidebar { transform: translateX(-105%); transition: transform .25s ease; box-shadow: 20px 0 45px rgba(5,17,25,.18); }
  .sidebar.open { transform: none; }
  .app-main { width: 100%; }
  .menu-button { display: grid; }
  .topbar { padding: 0 18px; }
  .global-search { flex: 1; }
  .user-chip > div:nth-child(2), .user-chip > span, kbd { display: none; }
  .user-chip { padding-left: 8px; }
  .content { padding: 26px 17px 50px; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .page-head .head-actions, .page-head > .primary-button { width: 100%; }
  .page-head .head-actions button, .page-head > .primary-button { flex: 1; }
  .kanban { grid-template-columns: 1fr; }
  .alert-summary { grid-template-columns: repeat(2,1fr); }
  .settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .metric-grid, .role-grid { grid-template-columns: 1fr; }
  .scope-bar { align-items: flex-start; gap: 12px; flex-direction: column; }
  .scope-tabs { width: 100%; overflow-x: auto; }.scope-tab { flex: 1; white-space: nowrap; }
  .filter-strip { flex-wrap: wrap; }.filter-strip > * { flex: 1 1 100%; }
  .ticket-form { grid-template-columns: 1fr; }.ticket-form .full { grid-column: auto; }
  .modal { padding: 19px; }
  .demo-actions { grid-template-columns: 1fr; }
  .top-actions .notification-button { display: none; }
  .global-search { max-width: calc(100vw - 124px); }
}

/* Identidad visual Félix Ojeda Gestores - Horizonte sostenible */
:root {
  --ink: #0a3442;
  --navy: #062e3d;
  --navy-2: #0c4352;
  --teal: #278a4b;
  --teal-bright: #59bd72;
  --teal-soft: #e4f3e7;
  --amber: #f2a000;
  --paper: #f4f5f0;
  --line: #dce3dd;
  --muted: #66787d;
  --brand-gold: #f2a000;
  --brand-green: #278a4b;
  --brand-cream: #f7f3e8;
  --shadow: 0 22px 58px rgba(6, 46, 61, .12);
  color-scheme: light;
}

html, body { min-height: 100%; }
body { font-family: Inter, "Segoe UI", Arial, sans-serif; transition: color .25s ease, background .25s ease; }
h1, h2, h3, h4, strong, b { text-wrap: balance; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(242, 160, 0, .38);
  outline-offset: 2px;
}

.login-shell {
  grid-template-columns: minmax(580px, 1.35fr) minmax(430px, .82fr);
  background: var(--brand-cream) url("assets/brand/horizonte-normal.png") center / cover fixed no-repeat;
}
.login-brand {
  isolation: isolate;
  justify-content: flex-start;
  padding: clamp(34px, 4vw, 62px) clamp(42px, 6vw, 92px);
  color: var(--navy);
  background: linear-gradient(92deg, rgba(247,243,232,.91) 0%, rgba(247,243,232,.72) 58%, rgba(247,243,232,.34) 100%);
}
.login-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,.18), transparent 44%, rgba(5,42,57,.1));
}
.login-brand::after { display: none; }
.login-brand__top { position: relative; z-index: 4; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.client-logo-card {
  width: clamp(260px, 26vw, 390px);
  min-height: 84px;
  display: flex;
  align-items: center;
  padding: 18px 22px;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 21px;
  background: rgba(250,248,240,.96);
  box-shadow: 0 18px 45px rgba(0,21,29,.22);
}
.client-logo-card img { display: block; width: 100%; height: auto; }
.brand-copy { margin-top: clamp(68px, 11vh, 136px); max-width: 780px; }
.brand-copy h1 {
  margin: 14px 0 24px;
  color: #063648;
  font: 750 clamp(2.9rem, 5.6vw, 5.8rem)/.99 Inter, "Segoe UI", sans-serif;
  letter-spacing: -.064em;
}
.brand-copy h1 span {
  display: block;
  margin-bottom: 23px;
  color: #a86600;
  font-size: clamp(.7rem, 1vw, .88rem);
  letter-spacing: .23em;
  text-transform: uppercase;
}
.brand-copy h1 em { color: #278a4b; font-style: normal; }
.brand-copy > p:last-child { max-width: 610px; color: #36565c; font-size: clamp(1rem, 1.35vw, 1.2rem); }
.eyebrow { color: #95600a; }
.eyebrow--dark { color: var(--brand-green); }
.login-proof { max-width: 720px; margin-top: clamp(34px, 6vh, 58px); border-color: rgba(6,54,72,.18); }
.login-proof strong { color: #063648; }
.login-proof span { color: #3f6065; }
.brand-values {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  color: rgba(6,54,72,.76);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.brand-values i { width: 3px; height: 3px; border-radius: 50%; background: var(--brand-gold); }
.developer-signature { display: flex; align-items: center; gap: 11px; }
.developer-signature img { object-fit: contain; }
.developer-signature div { display: grid; }
.developer-signature span { text-transform: uppercase; letter-spacing: .1em; }
.developer-signature small { font-weight: 800; letter-spacing: .13em; }
.developer-signature--login {
  position: absolute;
  z-index: 5;
  right: clamp(26px, 4vw, 58px);
  bottom: clamp(26px, 4vh, 42px);
  padding: 10px 14px 10px 10px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 15px;
  background: rgba(2,29,39,.5);
  backdrop-filter: blur(10px);
}
.developer-signature--login img { width: 42px; height: 42px; }
.developer-signature--login span { color: #94aaa9; font-size: .52rem; }
.developer-signature--login b { color: white; font-size: .76rem; }
.developer-signature--login small { color: #ffc34b; font-size: .52rem; }
.horizon { display: none; }
.horizon--gold {
  width: 650px;
  height: 650px;
  right: -235px;
  bottom: -500px;
  border: 2px solid rgba(242,160,0,.67);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(242,160,0,.04), 0 0 0 74px rgba(242,160,0,.025);
}
.horizon--green {
  width: 720px;
  height: 250px;
  left: -210px;
  bottom: -185px;
  border-radius: 50% 65% 0 0;
  background: linear-gradient(120deg, rgba(45,143,73,.62), rgba(103,185,111,.1));
  transform: rotate(7deg);
}
.horizon--navy {
  width: 780px;
  height: 170px;
  right: -250px;
  bottom: -125px;
  border-radius: 65% 50% 0 0;
  background: rgba(1,24,34,.64);
  transform: rotate(-6deg);
}
.signal-grid { opacity: .045; background-size: 72px 72px; mask-image: linear-gradient(to bottom left, transparent 8%, black 72%); }

.login-panel {
  position: relative;
  padding: clamp(28px, 4vw, 64px);
  background: rgba(247,243,232,.86);
  backdrop-filter: blur(5px);
}
.login-card {
  width: min(480px, 100%);
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(6,46,61,.1);
  border-radius: 28px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 28px 80px rgba(6,46,61,.11);
  backdrop-filter: blur(16px);
}
.login-card h2 { max-width: 410px; margin: 10px 0; color: var(--navy); font: 800 clamp(2rem, 3vw, 2.7rem)/1.06 Inter, "Segoe UI", sans-serif; letter-spacing: -.05em; }
.access-chip {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 28px;
  padding: 6px 10px;
  color: #536d70;
  border: 1px solid #dce5df;
  border-radius: 999px;
  background: #f7faf7;
  font-size: .68rem;
  font-weight: 700;
}
.access-chip span { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-green); box-shadow: 0 0 0 4px rgba(39,138,75,.11); }
.input-wrap { background: rgba(255,255,255,.72); }
.input-wrap:focus-within { border-color: var(--brand-green); box-shadow: 0 0 0 4px rgba(39,138,75,.11); }
.primary-button { background: linear-gradient(135deg, #063648, #0c4b56); box-shadow: 0 10px 23px rgba(6,54,72,.18); }
.primary-button:hover { background: linear-gradient(135deg, #0d4958, #1d724f); }
.secure-note { margin-bottom: 0; }
.mobile-developer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .58rem;
}
.mobile-developer img { width: 35px; height: 35px; object-fit: contain; }
.mobile-developer span { display: grid; text-align: left; }
.mobile-developer b { color: var(--ink); font-size: .66rem; }
.mobile-developer small { color: #a5751e; font-size: .48rem; font-weight: 800; letter-spacing: .12em; }

.vision-toggle {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  color: #31545b;
  border: 1px solid #d9e1dd;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  font-size: .71rem;
  font-weight: 700;
  transition: .2s ease;
}
.vision-toggle:hover { border-color: #b9c9c0; transform: translateY(-1px); }
.vision-toggle__icon { font-size: 1rem; line-height: 1; }
.vision-toggle--on-dark { color: #e1ece9; border-color: rgba(255,255,255,.2); background: rgba(3,33,43,.42); }
.vision-toggle--on-dark:hover { border-color: rgba(255,195,75,.55); background: rgba(3,33,43,.68); }
.vision-toggle--compact { min-height: 36px; }

.app-shell {
  grid-template-columns: 264px 1fr;
  background: var(--paper) url("assets/brand/horizonte-normal.png") center / cover fixed no-repeat;
}
.sidebar { width: 264px; padding: 20px 17px; background: linear-gradient(180deg, #052d3b, #062733 72%, #041f2a); }
.sidebar-brand { display: grid; gap: 12px; padding: 0 5px 18px; }
.sidebar-client-logo { display: grid; place-items: center; min-height: 61px; padding: 9px 11px; border-radius: 13px; background: #f7f3e8; box-shadow: 0 10px 22px rgba(0,15,21,.18); }
.sidebar-client-logo img { display: block; width: 100%; height: auto; }
.sidebar-product { display: grid; grid-template-columns: auto 1fr; align-items: end; column-gap: 8px; line-height: 1; }
.sidebar-product span { grid-column: 1/-1; margin-bottom: 5px; color: #72949a; font-size: .52rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.sidebar-product b { color: #ffc34b; font-size: 1rem; letter-spacing: .11em; }
.sidebar-product small { color: #d4e0df; font-size: .72rem; }
.nav-list { min-height: 0; overflow-y: auto; padding: 15px 0; scrollbar-width: thin; }
.nav-item.active { background: linear-gradient(90deg, rgba(87,188,110,.2), rgba(242,160,0,.06)); box-shadow: inset 3px 0 #69c67d; }
.nav-count { color: #91e2a4; background: rgba(89,189,114,.12); }
.sidebar-foot { padding-top: 9px; border-top: 1px solid rgba(255,255,255,.06); }
.developer-signature--sidebar { margin: 0 4px 11px; padding: 8px; border-radius: 11px; background: rgba(255,255,255,.045); }
.developer-signature--sidebar img { width: 32px; height: 32px; }
.developer-signature--sidebar span { color: #69868e; font-size: .44rem; }
.developer-signature--sidebar b { color: #dfe9e7; font-size: .63rem; }
.developer-signature--sidebar small { color: #e5aa35; font-size: .43rem; }
.contract-pill { margin-bottom: 7px; }
.app-main { position: relative; grid-column: 2; min-height: 100vh; padding-bottom: 68px; background: rgba(244,245,240,.94); backdrop-filter: blur(4px); }
.app-developer {
  position: absolute;
  right: 24px;
  bottom: 14px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 11px 7px 8px;
  border: 1px solid rgba(6,54,72,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.7);
  box-shadow: 0 8px 20px rgba(6,46,61,.06);
  backdrop-filter: blur(8px);
}
.app-developer img { width: 31px; height: 31px; object-fit: contain; }
.app-developer div { display: grid; line-height: 1.12; }
.app-developer span { color: var(--muted); font-size: .43rem; letter-spacing: .09em; text-transform: uppercase; }
.app-developer b { color: var(--ink); font-size: .62rem; }
.app-developer small { color: #a5751e; font-size: .43rem; font-weight: 800; letter-spacing: .12em; }
.topbar { height: 72px; background: rgba(250,251,247,.92); border-color: var(--line); }
.global-search { background: #edf1ed; }
.avatar { background: linear-gradient(135deg, #1a7345, #369a58); }
.metric-card, .panel { border-color: #e0e5df; box-shadow: 0 8px 24px rgba(6,46,61,.045); }
.metric-card--dark, .report-feature, .mailbox-banner { background: linear-gradient(145deg, #06303f, #0b4c52); }
.metric-card--dark { box-shadow: 0 16px 35px rgba(6,48,63,.16); }
.scope-tab.active { color: var(--navy); }
.id-cell, .task-card .task-id, .document-card a, .text-button, .panel-link { color: #1f7e45; }

/* Descanso visual: menos luminancia, sin alterar información ni funciones */
html[data-vision="rest"] {
  --ink: #d9e5e2;
  --navy: #081d25;
  --navy-2: #102e37;
  --teal: #72af80;
  --teal-bright: #8cc99a;
  --teal-soft: #19372f;
  --amber: #d5a247;
  --red: #db7a80;
  --paper: #10181c;
  --white: #182226;
  --line: #304047;
  --muted: #9dafb1;
  --brand-gold: #d7a343;
  --brand-green: #79ad80;
  --brand-cream: #131d20;
  --shadow: 0 22px 58px rgba(0,0,0,.3);
  color-scheme: dark;
}
html[data-vision="rest"] body { background: var(--paper); }
html[data-vision="rest"] .login-shell,
html[data-vision="rest"] .app-shell { background-image: url("assets/brand/horizonte-descanso.png"); }
html[data-vision="rest"] .login-brand { color: #dce7e4; background: linear-gradient(92deg, rgba(5,24,32,.89) 0%, rgba(5,24,32,.7) 58%, rgba(5,24,32,.34) 100%); }
html[data-vision="rest"] .login-brand::before { background: linear-gradient(180deg, rgba(2,15,21,.08), transparent 42%, rgba(2,15,21,.3)); }
html[data-vision="rest"] .brand-copy h1 { color: #f1f6f4; }
html[data-vision="rest"] .brand-copy h1 span { color: #efb644; }
html[data-vision="rest"] .brand-copy h1 em { color: #90cb99; }
html[data-vision="rest"] .brand-copy > p:last-child { color: #c5d4d1; }
html[data-vision="rest"] .login-proof { border-color: rgba(255,255,255,.17); }
html[data-vision="rest"] .login-proof strong { color: #fff3d5; }
html[data-vision="rest"] .login-proof span { color: #bdcdca; }
html[data-vision="rest"] .brand-values { color: rgba(225,237,233,.78); }
html[data-vision="rest"] .login-panel { background: rgba(10,24,30,.86); backdrop-filter: blur(5px); }
html[data-vision="rest"] .app-main { background: rgba(16,24,28,.94); }
html[data-vision="rest"] .app-developer { border-color: #304047; background: rgba(24,34,38,.8); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
html[data-vision="rest"] .login-card { background: rgba(24,34,38,.94); border-color: #354248; box-shadow: 0 28px 80px rgba(0,0,0,.28); }
html[data-vision="rest"] .login-card h2 { color: #dce7e4; }
html[data-vision="rest"] .access-chip { color: #a9b9b7; border-color: #36464a; background: #1c282b; }
html[data-vision="rest"] .input-wrap,
html[data-vision="rest"] select,
html[data-vision="rest"] .ticket-form input,
html[data-vision="rest"] .ticket-form textarea,
html[data-vision="rest"] .setting-row input,
html[data-vision="rest"] .mini-search,
html[data-vision="rest"] .global-search { color: #d9e5e2; border-color: var(--line); background: #1d292d; }
html[data-vision="rest"] input { color: #d9e5e2; background: transparent; }
html[data-vision="rest"] input::placeholder, html[data-vision="rest"] textarea::placeholder { color: #718387; }
html[data-vision="rest"] .topbar { background: rgba(20,29,33,.94); }
html[data-vision="rest"] .vision-toggle { color: #c8d6d3; border-color: #415156; background: #202d31; }
html[data-vision="rest"] .panel,
html[data-vision="rest"] .metric-card:not(.metric-card--dark),
html[data-vision="rest"] .role-card,
html[data-vision="rest"] .alert-card,
html[data-vision="rest"] .audit-summary article,
html[data-vision="rest"] .contingency-steps article,
html[data-vision="rest"] .task-card,
html[data-vision="rest"] .modal,
html[data-vision="rest"] .detail-drawer { color: #d9e5e2; border-color: var(--line); background: var(--white); }
html[data-vision="rest"] .kanban-column, html[data-vision="rest"] .scope-tabs { background: #141e22; }
html[data-vision="rest"] .scope-tab.active,
html[data-vision="rest"] .secondary-button,
html[data-vision="rest"] .table-footer button { color: #d9e5e2; border-color: var(--line); background: #202c30; }
html[data-vision="rest"] .secondary-button:hover { background: #27353a; }
html[data-vision="rest"] .drawer-description { background: #202c30; }
html[data-vision="rest"] .document-card { border-color: var(--line); }
html[data-vision="rest"] .contract-check,
html[data-vision="rest"] .temporary-password { color: #d9e5e2; border-color: var(--line); background: #1d292d; }
html[data-vision="rest"] .temporary-password code { color: #d9e5e2; }
html[data-vision="rest"] .text-button,
html[data-vision="rest"] .panel-link,
html[data-vision="rest"] .document-card a { color: #8dcc98; }
html[data-vision="rest"] .ring::before { background: var(--white); }
html[data-vision="rest"] tbody tr:hover { background: #202b2f; }
html[data-vision="rest"] th, html[data-vision="rest"] td { border-color: #2b3a3f; }
html[data-vision="rest"] .control-note { border-color: #315248; background: #1a302a; }
html[data-vision="rest"] .control-note--warn { border-color: #594a2d; background: #31291c; }
html[data-vision="rest"] .status-dot { box-shadow: 0 0 0 4px rgba(114,175,128,.11); }

@media (max-width: 1180px) {
  .login-shell { grid-template-columns: minmax(500px, .98fr) minmax(410px, 1.02fr); }
  .login-brand { padding: 36px 46px; }
  .developer-signature--login { right: 46px; }
  .vision-toggle--compact .vision-toggle__label { display: none; }
}
@media (max-width: 820px) {
  .login-shell { padding: 18px; background: var(--brand-cream) url("assets/brand/horizonte-normal.png") center / cover fixed no-repeat; }
  html[data-vision="rest"] .login-shell { background-image: url("assets/brand/horizonte-descanso.png"); }
  .login-panel { min-height: 100vh; padding: 12px; background: transparent; }
  .login-card { width: min(520px,100%); }
  .mobile-brand { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 34px; }
  .mobile-brand > img {
    width: min(275px, calc(100% - 112px));
    height: auto;
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(247,243,232,.94);
    box-shadow: 0 8px 20px rgba(6,46,61,.1);
  }
  .mobile-developer { display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .61rem; }
  .mobile-developer img { width: 31px; height: 31px; object-fit: contain; }
  .mobile-developer span { display: grid; }
  .mobile-developer b { color: var(--ink); }
  .mobile-developer small { color: #a5751e; font-size: .48rem; font-weight: 800; letter-spacing: .12em; }
  .app-main { padding-bottom: 0; }
  .app-developer { position: static; width: fit-content; margin: 18px 18px 24px auto; }
  .app-shell { display: block; }
  .sidebar { width: 264px; }
}
@media (max-width: 560px) {
  .login-shell { padding: 0; }
  .login-panel { padding: 0; }
  .login-card { min-height: 100vh; padding: 26px 21px; border: 0; border-radius: 0; box-shadow: none; }
  .mobile-brand > img { width: min(230px, calc(100% - 98px)); }
  .vision-toggle { padding: 0 10px; }
  .vision-toggle--compact { width: 36px; padding: 0; }
  .topbar { gap: 10px; }
  .top-actions { gap: 7px; }
  .contract-checks { grid-template-columns: 1fr; }
  .temporary-password { align-items: stretch; flex-direction: column; }
}
@media (max-height: 780px) and (min-width: 821px) {
  .brand-copy { margin-top: 46px; }
  .login-proof { margin-top: 28px; }
  .brand-values { margin-top: 16px; }
  .developer-signature--login { bottom: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
