:root {
  --navy: #111c34;
  --navy-2: #1b2b4f;
  --blue: #2d62dc;
  --blue-soft: #edf3ff;
  --bg: #f4f6fa;
  --card: #ffffff;
  --ink: #172033;
  --muted: #687287;
  --line: #e3e8f0;
  --green: #18855f;
  --green-soft: #eaf7f1;
  --orange: #c47116;
  --orange-soft: #fff5e8;
  --red: #c54049;
  --red-soft: #fff0f1;
  --shadow: 0 4px 16px rgba(25, 42, 74, .06);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; color: var(--ink); background: var(--bg); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(45, 98, 220, .2); outline-offset: 1px; }

.app-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); width: 100%; min-width: 0; min-height: 100vh; }
.sidebar { position: sticky; top: 0; min-width: 0; height: 100vh; display: flex; flex-direction: column; padding: 28px 18px 20px; color: #fff; background: linear-gradient(180deg, var(--navy) 0%, #0d172b 100%); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 10px; }
.brand-mark { display: grid; flex: 0 0 auto; place-items: center; width: 38px; height: 38px; border-radius: 11px; color: #fff; background: linear-gradient(145deg, #4f7ff0, #2454cf); box-shadow: 0 8px 20px rgba(45, 98, 220, .3); }
.brand-mark svg { width: 28px; height: 28px; overflow: visible; }
.brand-mark .metta-m { fill: none; stroke: #fff; stroke-width: 3.25; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark .metta-arrow { fill: none; stroke: #ffd35a; stroke-width: 2.45; stroke-linecap: round; stroke-linejoin: round; }
.brand strong, .brand small { display: block; }
.brand strong { font-family: "Arial Rounded MT Bold", "Arial Rounded Bold", Inter, sans-serif; font-size: 20px; line-height: 1; letter-spacing: -.35px; }
.brand small { max-width: 166px; margin-top: 4px; color: #95a4c1; font-size: 8.5px; line-height: 1.25; letter-spacing: .15px; }

.nav-list { display: grid; gap: 6px; margin-top: 38px; }
.nav-item { display: flex; align-items: center; gap: 11px; width: 100%; padding: 12px 13px; border: 0; border-radius: 10px; color: #aebbd3; background: transparent; text-align: left; }
.nav-item span { display: inline-grid; width: 20px; place-items: center; font-size: 16px; }
.nav-item:hover, .nav-item.active { color: #fff; background: var(--navy-2); }
.nav-item.active { box-shadow: inset 3px 0 #5c83eb; }
.sidebar-footer { display: flex; gap: 10px; align-items: flex-start; margin-top: auto; padding: 14px 10px 0; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-footer strong, .sidebar-footer small { display: block; }
.sidebar-footer strong { font-size: 11px; color: #c3cee1; }
.sidebar-footer small { margin-top: 3px; font-size: 10px; color: #7787a6; }
.status-dot { width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: #42c88a; box-shadow: 0 0 0 4px rgba(66, 200, 138, .12); }

.main-content { width: 100%; min-width: 0; max-width: 1600px; margin: 0 auto; padding: 28px 34px 50px; overflow: hidden; }
.topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 24px; }
.eyebrow, .panel-kicker { margin: 0 0 5px; color: var(--blue); font-size: 10px; font-weight: 850; letter-spacing: 1.4px; }
.topbar h1 { margin: 0; font-size: 29px; letter-spacing: -.7px; }
.page-subtitle { margin: 6px 0 0; color: var(--muted); }
.topbar-actions { display: flex; gap: 9px; align-items: flex-end; flex-wrap: wrap; justify-content: flex-end; }
.month-filter { display: grid; gap: 4px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; }
.month-filter input { min-width: 148px; }

input, select, textarea { width: 100%; border: 1px solid #d9dfE9; border-radius: 9px; color: var(--ink); background: #fff; }
input, select { height: 42px; padding: 0 11px; }
textarea { padding: 10px 11px; resize: vertical; line-height: 1.45; }
input:hover, select:hover, textarea:hover { border-color: #b9c4d5; }
.deadline-ok { color: var(--green) !important; border-color: #b9dfd0 !important; background: var(--green-soft) !important; font-weight: 800; }
.deadline-late { color: var(--red) !important; border-color: #efc3c6 !important; background: var(--red-soft) !important; font-weight: 800; }

.button { min-height: 42px; padding: 0 15px; border: 1px solid var(--line); border-radius: 9px; font-weight: 750; background: #fff; color: var(--ink); }
.button-primary { border-color: var(--blue); color: #fff; background: var(--blue); }
.button-primary:hover { background: #214fbf; }
.button-ghost:hover { background: #f7f9fc; border-color: #ccd4e1; }
.button-block { width: 100%; margin-top: 9px; }
.button-link { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.user-chip { display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 4px 9px 4px 5px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; text-align: left; }
.user-chip > span:first-child { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 8px; color: #fff; background: var(--navy-2); font-size: 10px; font-weight: 850; }
.user-chip strong, .user-chip small { display: block; max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip strong { font-size: 10px; }.user-chip small { margin-top: 1px; color: var(--muted); font-size: 8px; }
.text-button { padding: 0; border: 0; color: var(--blue); background: none; font-weight: 700; font-size: 12px; }
.icon-button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f2f4f8; color: var(--muted); font-size: 21px; }

.page { display: none; }
.page.active { display: block; animation: pageIn .18s ease-out; }
@keyframes pageIn { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

.panel { border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: var(--shadow); padding: 19px; }
.panel + .panel { margin-top: 17px; }
.panel-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 15px; }
.panel-header h2, .form-step h2, .dialog h2 { margin: 0; font-size: 16px; letter-spacing: -.2px; }
.panel-header small { color: var(--muted); }

.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 17px; }
.kpi-card { position: relative; min-height: 130px; overflow: hidden; }
.kpi-card::after { content: ""; position: absolute; right: -30px; top: -30px; width: 90px; height: 90px; border-radius: 50%; background: var(--blue-soft); }
.kpi-card.warning::after { background: var(--orange-soft); }
.kpi-card.danger::after { background: var(--red-soft); }
.kpi-icon { position: absolute; z-index: 1; top: 17px; right: 17px; display: grid; place-items: center; width: 33px; height: 33px; border-radius: 9px; background: #fff; color: var(--blue); font-weight: 900; }
.kpi-label { color: var(--muted); font-size: 12px; }
.kpi-value { margin-top: 11px; font-size: 28px; font-weight: 850; letter-spacing: -.6px; }
.kpi-value small { color: var(--muted); font-size: 12px; font-weight: 600; }
.kpi-detail { margin-top: 6px; color: var(--muted); font-size: 11px; }
.demo-banner { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 17px; padding: 14px 16px; border: 1px solid #c8d7f8; border-radius: 12px; background: #edf3ff; }
.demo-banner strong, .demo-banner span { display: block; }
.demo-banner strong { color: #244680; }
.demo-banner span { margin-top: 3px; color: #526887; font-size: 10px; line-height: 1.45; }
.demo-badge { min-height: 18px; margin-left: 5px; padding: 2px 6px; font-size: 8px; vertical-align: middle; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(300px, .84fr); gap: 17px; margin-bottom: 17px; }
.ranking-list { display: grid; }
.rank-row { display: grid; grid-template-columns: 38px minmax(0,1fr) 72px 78px; gap: 11px; align-items: center; padding: 12px 7px; border-bottom: 1px solid var(--line); }
.rank-row:last-child { border-bottom: 0; }
.rank-position { color: var(--muted); font-size: 16px; font-weight: 850; text-align: center; }
.rank-position.top { color: #b78012; }
.rank-name { font-weight: 800; }
.rank-meta { margin-top: 3px; color: var(--muted); font-size: 10px; }
.progress { height: 6px; margin-top: 7px; overflow: hidden; border-radius: 10px; background: #ebeff5; }
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6088ec, var(--blue)); }
.rank-score { text-align: right; font-size: 17px; font-weight: 850; }
.rank-score small { color: var(--muted); font-size: 10px; }
.rank-status { text-align: right; color: var(--muted); font-size: 10px; }
.rank-status.eligible { color: var(--green); }
.ranking-list.full .rank-row { grid-template-columns: 45px minmax(0,1fr) 110px 100px; padding: 15px 10px; }

.attention-item { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.attention-item:last-child { border-bottom: 0; }
.attention-item strong { display: block; font-size: 13px; }
.attention-item small { display: block; margin-top: 4px; color: var(--muted); }
.attention-count { color: var(--red); font-weight: 850; }
.empty-inline { color: var(--muted); padding: 24px 4px; text-align: center; }

.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 9px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .6px; }
td { font-size: 12px; }
tbody tr:hover { background: #fbfcfe; }
tbody tr:last-child td { border-bottom: 0; }
.cell-title { font-weight: 750; }
.cell-sub { margin-top: 3px; color: var(--muted); font-size: 10px; }
.score-cell { font-weight: 850; font-size: 14px; }
.badge { display: inline-flex; align-items: center; min-height: 24px; padding: 4px 8px; border-radius: 99px; color: var(--green); background: var(--green-soft); font-size: 10px; font-weight: 750; white-space: nowrap; }
.badge.red { color: var(--red); background: var(--red-soft); }
.badge.orange { color: var(--orange); background: var(--orange-soft); }
.badge.blue { color: var(--blue); background: var(--blue-soft); }
.row-button { border: 0; background: transparent; color: var(--blue); font-weight: 750; font-size: 11px; }
.services-header { align-items: flex-end; }
.table-filters { display: flex; gap: 8px; min-width: min(100%, 480px); }
.table-filters input { flex: 1; }
.empty-state { padding: 38px; text-align: center; color: var(--muted); }
.hidden { display: none !important; }

.evaluation-layout { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 17px; align-items: start; }
.form-main { min-width: 0; }
.form-card + .form-card { margin-top: 17px; }
.form-step { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 16px; margin-bottom: 17px; border-bottom: 1px solid var(--line); }
.form-step > span { display: grid; place-items: center; min-width: 30px; height: 30px; border-radius: 9px; color: #fff; background: var(--blue); font-weight: 850; }
.form-step p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.form-grid { display: grid; gap: 14px; }
.form-grid.cols-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.form-grid.cols-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.form-grid label, .dialog label { display: grid; gap: 6px; color: #485367; font-size: 11px; font-weight: 750; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.team-selector-box { padding: 15px; border: 1px solid var(--line); border-radius: 11px; background: #f8fafc; }
.team-selector-box > div:first-child strong { font-size: 13px; }
.team-selector-box > div:first-child p { margin: 4px 0 12px; color: var(--muted); font-size: 10px; }
.team-members-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.team-member-label { display: grid; gap: 6px; }
.team-member-label span { color: #485367; font-size: 10px; font-weight: 750; }
.complexity-box { margin-top: 3px; padding: 16px; border: 1px solid #cfdbf4; border-radius: 12px; background: linear-gradient(145deg,#f8faff,#f1f5ff); }
.complexity-heading { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 15px; }
.complexity-heading > div:first-child strong { font-size: 13px; }
.complexity-heading p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.complexity-preview { min-width: 130px; padding: 9px 11px; border: 1px solid #ccdaf9; border-radius: 9px; background: #fff; text-align: right; }
.complexity-preview span, .complexity-preview strong, .complexity-preview small { display: block; }
.complexity-preview span { color: var(--blue); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.complexity-preview strong { margin-top: 2px; font-size: 15px; }
.complexity-preview small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.complexity-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; }
.complexity-grid label small { min-height: 30px; color: var(--muted); font-size: 9px; font-weight: 500; line-height: 1.35; }
.complexity-grid select { font-size: 10px; }
.complexity-rule { margin: 13px 0 0; padding-top: 12px; border-top: 1px solid #d9e3f7; color: #4b5d7f; font-size: 10px; line-height: 1.5; }

.criteria-group + .criteria-group { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.criteria-title { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.criteria-title strong { font-size: 13px; }
.criteria-title span { color: var(--blue); font-size: 10px; font-weight: 800; }
.criteria-title .criteria-access { margin-left: auto; padding: 3px 7px; border-radius: 99px; color: var(--green); background: var(--green-soft); font-size: 9px; font-style: normal; font-weight: 800; }
.criteria-locked { opacity: .67; }
.criteria-locked .criteria-title .criteria-access { color: #657086; background: #edf0f5; }
.criteria-locked .score-option span { cursor: not-allowed; background: #f4f6f9; }
.criterion-row { display: grid; grid-template-columns: minmax(180px,1fr) repeat(12, 34px); gap: 5px; align-items: center; padding: 8px 0; }
.criterion-name { font-size: 12px; }
.score-option input { position: absolute; opacity: 0; pointer-events: none; }
.score-option span { display: grid; place-items: center; width: 32px; height: 34px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: #fff; font-size: 10px; font-weight: 750; cursor: pointer; }
.score-option input:checked + span { color: #fff; border-color: var(--blue); background: var(--blue); box-shadow: 0 4px 10px rgba(45,98,220,.2); }
.score-option.na span { font-size: 9px; }
.toggle-row { display: flex; gap: 12px; align-items: center; }
.toggle-row strong { display: block; }
.toggle-row p { margin: 3px 0 0; color: var(--muted); font-size: 11px; }
.switch input { position: absolute; opacity: 0; }
.switch span { position: relative; display: block; width: 45px; height: 25px; border-radius: 99px; background: #cbd2df; transition: .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 2px 5px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--blue); }
.switch input:checked + span::after { transform: translateX(20px); }
.rework-fields { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.external-issue-block { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.rule-notice { margin-top: 14px; padding: 12px 14px; border: 1px solid #f0d7ad; border-radius: 9px; color: #74501c; background: #fff9ee; font-size: 11px; line-height: 1.5; }
.sticky-score { position: sticky; top: 18px; text-align: center; }
.score-ring { display: grid; place-items: center; align-content: center; width: 145px; height: 145px; margin: 20px auto; border-radius: 50%; background: conic-gradient(var(--blue) var(--score-angle,0deg), #e9edf5 0); position: relative; }
.score-ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #fff; }
.score-ring strong, .score-ring small { position: relative; z-index: 1; }
.score-ring strong { font-size: 34px; line-height: 1; }
.score-ring small { margin-top: 4px; color: var(--muted); }
.group-preview { margin: 0 0 18px; text-align: left; }
.group-preview-row { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.group-preview-row span { color: var(--muted); }
.access-notice { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 17px; padding: 13px 16px; border: 1px solid #bcd0f8; border-radius: 11px; color: #244680; background: var(--blue-soft); }
.access-notice strong, .access-notice span { display: block; }.access-notice span { font-size: 10px; line-height: 1.45; }

.ranking-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; margin-bottom: 17px; }
.ranking-method { margin-bottom: 17px; }
.formula-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 11px; }
.formula-grid > div { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #f8faff; }
.formula-grid strong { display: block; color: var(--blue); font-size: 24px; }
.formula-grid span { display: block; margin-top: 2px; font-weight: 800; }
.formula-grid p, .formula-note { color: var(--muted); font-size: 10px; line-height: 1.5; }
.formula-grid p { margin: 7px 0 0; }
.formula-note { margin: 13px 0 0; }
.podium-card { position: relative; min-height: 165px; padding: 20px; overflow: hidden; }
.podium-card.first { color: #fff; border-color: #204fbd; background: linear-gradient(145deg,#2e63dd,#1945aa); }
.podium-medal { font-size: 23px; }
.podium-avatar { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 48px; height: 48px; overflow: hidden; border: 3px solid rgba(255,255,255,.8); border-radius: 50%; color: #fff; background: linear-gradient(145deg,#6088ec,#2858ca); font-size: 12px; font-weight: 900; }
.podium-avatar img, .avatar img, .photo-preview img, .totem-avatar img, .totem-row-avatar img, .employee-month-avatar img, .totem-honoree-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.podium-card h3 { margin: 13px 0 4px; font-size: 18px; }
.podium-card p { margin: 0; color: var(--muted); font-size: 11px; }
.podium-card.first p { color: #cfddff; }
.podium-score { position: absolute; right: 20px; bottom: 16px; font-size: 27px; font-weight: 900; }

.people-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.employee-month-intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 17px; }
.employee-month-intro h2 { margin: 3px 0 5px; }.employee-month-intro p:last-child { max-width: 650px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.employee-month-empty { display: grid; justify-items: center; padding: 60px 24px; text-align: center; }
.employee-month-empty > span { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 18px; color: #805b08; background: linear-gradient(145deg,#fff2bd,#ffe083); font-size: 30px; }
.employee-month-empty h3 { margin: 17px 0 6px; font-size: 17px; }.employee-month-empty p { max-width: 520px; margin: 0 0 20px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.employee-month-showcase { overflow: hidden; background: radial-gradient(circle at 90% 0,#fff4c6 0,transparent 34%),#fff; }
.employee-month-showcase.inactive { filter: grayscale(.35); opacity: .78; }
.employee-month-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.employee-month-heading h2 { margin: 3px 0 4px; font-size: 22px; }.employee-month-heading p:last-child { margin: 0; color: var(--muted); font-size: 10px; }
.employee-month-people { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 16px; }
.employee-month-person { display: grid; justify-items: center; padding: 22px 16px; border: 1px solid #eadca5; border-radius: 16px; text-align: center; background: linear-gradient(160deg,#fffdf5,#fff8db); }
.employee-month-avatar { position: relative; display: grid; place-items: center; width: 126px; height: 126px; overflow: hidden; border: 5px solid #fff; border-radius: 50%; color: #fff; background: linear-gradient(145deg,#6088ec,#2858ca); box-shadow: 0 12px 28px rgba(30,62,127,.2); font-size: 30px; font-weight: 900; }
.employee-month-person h3 { margin: 14px 0 4px; font-size: 15px; }.employee-month-person > span { color: #9a7211; font-size: 9px; font-weight: 850; letter-spacing: .7px; text-transform: uppercase; }
.employee-month-showcase blockquote { max-width: 760px; margin: 22px auto 3px; padding: 17px 22px; border-left: 4px solid #e5bd3d; border-radius: 10px; color: #5d4b17; background: #fff9e5; font-size: 13px; font-style: italic; line-height: 1.55; text-align: center; }
.employee-month-selectors { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #f8faff; }
.employee-month-selectors strong { font-size: 11px; }.employee-month-selectors p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.employee-month-period-preview { display: grid; gap: 4px; margin: 12px 0 14px; padding: 13px 15px; border: 1px solid #bfd1f7; border-radius: 11px; color: #244680; background: var(--blue-soft); }
.employee-month-period-preview strong { font-size: 11px; }.employee-month-period-preview span { font-size: 9px; line-height: 1.45; }
.person-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px; background: #fff; }
.person-card.inactive { border-style: dashed; background: #fafbfc; }
.person-card.inactive .avatar { filter: grayscale(.75); opacity: .75; }
.person-head { display: flex; gap: 11px; align-items: center; }
.avatar { position: relative; display: grid; flex: 0 0 auto; place-items: center; width: 48px; height: 48px; overflow: hidden; border-radius: 50%; color: #fff; background: linear-gradient(145deg,#6088ec,#2858ca); font-weight: 900; }
.person-head h3 { margin: 0; font-size: 14px; }
.person-head p { margin: 3px 0 0; color: var(--muted); font-size: 10px; }
.person-score { margin-left: auto; font-size: 18px; font-weight: 850; }
.person-metrics { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 15px 0; }
.person-metrics div { padding: 9px 7px; border-radius: 8px; background: #f7f9fc; text-align: center; }
.person-metrics strong, .person-metrics span { display: block; }
.person-metrics strong { font-size: 14px; }
.person-metrics span { margin-top: 2px; color: var(--muted); font-size: 8px; text-transform: uppercase; }
.feedback-box { padding: 10px; border-radius: 8px; background: var(--blue-soft); color: #244680; font-size: 10px; line-height: 1.45; }
.feedback-box.inactive-note { color: #596273; background: #eef0f4; }
.person-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.person-edit { margin-left: auto; }
.ranking-status-button { min-height: 30px; padding: 6px 10px; border: 1px solid transparent; border-radius: 99px; font: inherit; font-size: 9px; font-weight: 800; cursor: pointer; }
.ranking-status-button.active { color: var(--green); border-color: #bde7d5; background: var(--green-soft); }
.ranking-status-button.inactive { color: var(--red); border-color: #efc3c6; background: var(--red-soft); }
.photo-picker { display: grid; grid-template-columns: 92px 1fr; gap: 15px; align-items: center; padding: 13px; border: 1px solid var(--line); border-radius: 12px; background: #f8faff; }
.photo-preview { position: relative; display: grid; place-items: center; width: 88px; height: 88px; overflow: hidden; border: 3px solid #fff; border-radius: 50%; color: #fff; background: linear-gradient(145deg,#6088ec,#2858ca); box-shadow: 0 4px 16px rgba(30,62,127,.16); font-size: 24px; font-weight: 900; }
.photo-file-button { display: inline-flex !important; width: max-content; align-items: center; justify-content: center; }
.photo-file-button input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.photo-picker small { display: block; margin-top: 7px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.ranking-status-control { display: flex !important; align-items: center; justify-content: space-between; gap: 20px; margin-top: 14px; padding: 14px 15px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.ranking-status-control > span:first-child { display: grid; gap: 4px; }
.ranking-status-control strong { color: var(--ink); font-size: 12px; }
.ranking-status-control small { max-width: 430px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.switch-control { position: relative; flex: 0 0 auto; width: 44px; height: 24px; }
.switch-control input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.switch-control > span { position: absolute; inset: 0; border-radius: 99px; background: #c9ced8; transition: .2s ease; }
.switch-control > span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(20,33,61,.25); transition: .2s ease; }
.switch-control input:checked + span { background: var(--green); }
.switch-control input:checked + span::after { transform: translateX(20px); }
.switch-control input:focus-visible + span { outline: 3px solid rgba(45,98,220,.24); outline-offset: 2px; }
.no-data { padding: 18px; color: var(--muted); text-align: center; }

.planning-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.planning-toolbar h2 { margin: 3px 0 4px; }
.planning-toolbar p:last-child { margin: 0; color: var(--muted); font-size: 10px; }
.planning-toolbar-actions { display: flex; align-items: flex-end; gap: 9px; }
.planning-toolbar-actions label { display: grid; gap: 5px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.planning-summary { display: grid; grid-template-columns: repeat(4,1fr); gap: 13px; margin-bottom: 16px; }
.planning-summary-card { position: relative; display: grid; gap: 3px; padding-left: 56px; }
.planning-summary-card > span { position: absolute; left: 16px; top: 17px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: var(--blue); background: var(--blue-soft); font-weight: 900; }
.planning-summary-card strong { font-size: 24px; }
.planning-summary-card small { color: var(--muted); font-size: 9px; }
.planning-board { display: grid; gap: 18px; }
.planning-day { display: grid; grid-template-columns: 115px 1fr; gap: 15px; padding-top: 17px; border-top: 1px solid var(--line); }
.planning-day:first-child { padding-top: 0; border-top: 0; }
.planning-day-heading span, .planning-day-heading strong { display: block; }
.planning-day-heading span { color: var(--blue); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.planning-day-heading strong { margin-top: 4px; font-size: 13px; }
.planning-day-items { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.plan-card { padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe; }
.plan-card-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.plan-os { color: var(--blue); font-size: 9px; font-weight: 850; }
.plan-card h3 { margin: 4px 0 2px; font-size: 14px; }
.plan-card p { margin: 0; color: var(--muted); font-size: 10px; }
.plan-service { display: grid; gap: 3px; margin: 12px 0; padding: 10px; border-radius: 8px; background: #f1f5ff; }
.plan-service strong { color: #244680; font-size: 11px; }
.plan-service span { color: #52617a; font-size: 9px; line-height: 1.45; }
.plan-meta { display: grid; grid-template-columns: 1.4fr .7fr .9fr; gap: 8px; }
.plan-meta span, .plan-meta strong { display: block; }
.plan-meta span { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.plan-meta strong { margin-top: 3px; color: var(--ink); font-size: 9px; line-height: 1.35; text-transform: none; }
.plan-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.danger-text { color: var(--red) !important; }
.planning-notices-panel { margin-top: 16px; }
.notice-list { display: grid; gap: 10px; }
.notice-admin-card { display: grid; grid-template-columns: 90px 1fr auto; gap: 14px; align-items: center; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #fafbfc; }
.notice-admin-card.active { border-color: #bfd1f7; background: #f7f9ff; }
.notice-priority { justify-self: start; padding: 5px 8px; border-radius: 99px; color: var(--blue); background: var(--blue-soft); font-size: 9px; font-weight: 850; }
.notice-priority.importante { color: #946016; background: #fff2d7; }
.notice-priority.urgente { color: var(--red); background: var(--red-soft); }
.notice-admin-card h3 { margin: 0 0 3px; font-size: 12px; }
.notice-admin-card p { margin: 0 0 4px; color: #52617a; font-size: 10px; line-height: 1.45; }
.notice-admin-card small { color: var(--muted); font-size: 8px; }
.notice-admin-actions { display: flex; gap: 10px; }
.notice-active-field { display: flex !important; align-items: center; justify-content: space-between; min-height: 42px; padding: 0 3px; }
.planning-empty-week { display: grid; justify-items: center; padding: 52px 20px; text-align: center; }
.planning-empty-week > span { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 15px; color: var(--blue); background: var(--blue-soft); font-size: 24px; }
.planning-empty-week h3 { margin: 14px 0 5px; }.planning-empty-week p { max-width: 470px; margin: 0 0 18px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.weekly-board-actions { display: flex; justify-content: flex-end; gap: 14px; margin-bottom: 13px; }
.weekly-board-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; }
.weekly-board { min-width: 1180px; background: #fff; }
.weekly-board-header { display: grid; grid-template-columns: 90px 65px 1fr .9fr 1.2fr 1.2fr 60px 60px 86px 72px 1.2fr; color: #fff; background: linear-gradient(90deg,#17366f,#244d99); }
.weekly-board-header span { padding: 11px 8px; border-right: 1px solid rgba(255,255,255,.13); font-size: 9px; font-weight: 850; text-align: center; text-transform: uppercase; }
.weekly-board-day { display: grid; grid-template-columns: 90px 1fr; border-top: 1px solid var(--line); }
.weekly-day-band { display: grid; place-items: center; align-content: center; padding: 12px 8px; color: #fff; background: #2d62ba; text-align: center; }
.weekly-day-band strong { font-size: 11px; text-transform: capitalize; }.weekly-day-band span { margin-top: 4px; color: #d9e5ff; font-size: 8px; }
.weekly-day-rows { display: grid; }
.weekly-board-row { display: grid; grid-template-columns: 65px 1fr .9fr 1.2fr 1.2fr 60px 60px 86px 72px 1.2fr; min-height: 60px; border-top: 1px solid var(--line); }
.weekly-board-row:first-child { border-top: 0; }
.weekly-board-row > span, .weekly-board-row > strong { display: flex; align-items: center; padding: 8px; border-right: 1px solid var(--line); font-size: 9px; line-height: 1.35; }
.weekly-board-row > span b, .weekly-board-row > span small { display: block; }.weekly-board-row > span small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.weekly-board-row.empty { display: block; min-height: 60px; padding: 20px; color: var(--muted); font-size: 9px; text-align: center; }
.completion-mark { display: inline-flex; padding: 4px 7px; border-radius: 99px; font-size: 8px; font-style: normal; font-weight: 850; }
.completion-mark.yes { color: var(--green); background: var(--green-soft); }.completion-mark.no { color: #687386; background: #eef0f4; }
.dialog-planning { width: min(1180px,calc(100% - 28px)); max-height: calc(100vh - 32px); overflow: auto; }
.weekly-plan-identification { display: grid; grid-template-columns: 180px 200px 1fr; gap: 14px; align-items: end; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #f8faff; }
.weekly-plan-identification > div { padding: 4px 8px; }.weekly-plan-identification strong { display: block; font-size: 11px; }.weekly-plan-identification p { margin: 4px 0 0; color: var(--muted); font-size: 9px; line-height: 1.4; }
.weekly-plan-editor { display: grid; gap: 14px; }
.weekly-editor-day { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.weekly-editor-day-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: linear-gradient(90deg,#eff4ff,#f9fbff); }
.weekly-editor-day-heading span, .weekly-editor-day-heading strong { display: block; }.weekly-editor-day-heading span { color: var(--blue); font-size: 11px; font-weight: 850; text-transform: capitalize; }.weekly-editor-day-heading strong { margin-top: 2px; font-size: 9px; }
.weekly-editor-items { display: grid; gap: 11px; padding: 12px; }
.weekly-editor-empty { padding: 16px; color: var(--muted); font-size: 10px; text-align: center; }
.weekly-plan-item { padding: 14px; border: 1px solid #dce3f0; border-radius: 11px; background: #fff; box-shadow: 0 5px 16px rgba(25,54,111,.05); }
.weekly-item-heading { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 11px; }
.weekly-item-heading span, .weekly-item-heading strong { display: block; }.weekly-item-heading span { color: var(--blue); font-size: 8px; font-weight: 900; letter-spacing: .8px; }.weekly-item-heading strong { margin-top: 2px; font-size: 10px; }
.weekly-item-grid { display: grid; grid-template-columns: 110px 1fr 1fr 180px; gap: 10px; }
.weekly-item-grid .span-2 { grid-column: span 2; }
.weekly-completed-field { display: flex !important; align-items: center; justify-content: space-between; min-height: 42px; padding: 0 3px; }
.weekly-team-editor { display: grid; grid-template-columns: 150px 1fr auto; gap: 12px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.weekly-team-editor strong, .weekly-team-editor small { display: block; }.weekly-team-editor strong { font-size: 10px; }.weekly-team-editor small { margin-top: 3px; color: var(--muted); font-size: 8px; line-height: 1.35; }
.weekly-team-slots { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.weekly-team-slot { display: grid; grid-template-columns: 1fr 28px; gap: 4px; }
.weekly-team-slot button { border: 0; border-radius: 7px; color: var(--red); background: var(--red-soft); cursor: pointer; }

.report-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 17px; margin-bottom: 17px; }
.bar-report { display: grid; gap: 13px; }
.bar-item-head { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 11px; }
.bar-item-head strong:last-child { color: var(--red); }
.report-bar { height: 9px; border-radius: 10px; background: #edf0f5; overflow: hidden; }
.report-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#f3a04f,#d7654c); }
.report-bar.complexity span { background: linear-gradient(90deg,#83a3f4,#2d62dc); }
.donut-area { display: grid; grid-template-columns: 150px 1fr; gap: 22px; align-items: center; }
.donut { display: grid; place-items: center; width: 145px; height: 145px; border-radius: 50%; background: conic-gradient(var(--blue) 0 35%, #f49c4f 35% 60%, #39a77c 60% 80%, #a277df 80% 100%); }
.donut::after { content: attr(data-total); display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: #fff; font-size: 24px; font-weight: 850; white-space: pre; text-align: center; }
.legend-list { display: grid; gap: 9px; }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: 10px; }
.legend-swatch { width: 9px; height: 9px; border-radius: 3px; }
.recommendations { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.recommendation { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfe; }
.recommendation span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--blue-soft); color: var(--blue); font-weight: 900; }
.recommendation h3 { margin: 11px 0 5px; font-size: 12px; }
.recommendation p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.legend { color: var(--muted); font-size: 10px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; }
.dot.green { background: var(--green); }

.toast { position: fixed; z-index: 100; right: 24px; bottom: 24px; max-width: 360px; padding: 13px 16px; border-radius: 10px; color: #fff; background: var(--navy); box-shadow: 0 12px 30px rgba(13,23,43,.25); transform: translateY(90px); opacity: 0; transition: .25s; }
.toast.show { transform: none; opacity: 1; }
.auth-screen { position: fixed; z-index: 500; inset: 0; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 80% 15%, #244887 0, transparent 35%), linear-gradient(145deg,#0c162b,#152a52); }
.auth-card { width: min(430px,100%); padding: 28px; border-radius: 18px; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.32); }
.auth-brand { display: flex; align-items: center; gap: 11px; padding-bottom: 20px; margin-bottom: 23px; border-bottom: 1px solid var(--line); }
.auth-brand strong, .auth-brand small { display: block; }.auth-brand strong { font-family: "Arial Rounded MT Bold", "Arial Rounded Bold", Inter, sans-serif; font-size: 21px; line-height: 1; }.auth-brand small { margin-top: 4px; color: var(--muted); font-size: 10px; letter-spacing: .15px; }
.auth-form { display: grid; gap: 14px; }.auth-form h1 { margin: 0; font-size: 24px; }.auth-form > div > p:last-child { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.auth-form label { display: grid; gap: 6px; color: #485367; font-size: 11px; font-weight: 750; }
.auth-error { min-height: 16px; margin: 0; color: var(--red); font-size: 10px; }
.auth-foot { margin: 20px 0 0; color: var(--muted); font-size: 9px; text-align: center; }
.dialog { width: min(520px, calc(100% - 28px)); border: 0; border-radius: 15px; padding: 21px; color: var(--ink); box-shadow: 0 24px 70px rgba(16,28,52,.25); }
.dialog-wide { width: min(760px, calc(100% - 28px)); }
.dialog::backdrop { background: rgba(10,18,34,.55); backdrop-filter: blur(3px); }
.dialog form { display: grid; gap: 14px; }
.dialog-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 17px; }
.detail-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 16px 0; }
.detail-grid div { padding: 11px; border-radius: 9px; background: #f6f8fb; }
.detail-grid span, .detail-grid strong { display: block; }
.detail-grid span { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.detail-grid strong { margin-top: 4px; }
.detail-section { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.detail-section h3 { margin: 0 0 8px; font-size: 13px; }
.detail-section p { margin: 5px 0; color: #4c586d; font-size: 11px; line-height: 1.5; }
.reviewer-tag { display: inline-flex; margin-left: 5px; padding: 2px 7px; border-radius: 99px; color: var(--blue); background: var(--blue-soft); font-size: 9px; }
.access-summary-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-bottom: 17px; }
.access-summary { display: flex; gap: 13px; align-items: flex-start; }
.access-summary > span { display: grid; place-items: center; min-width: 34px; height: 34px; border-radius: 10px; color: #fff; background: var(--blue); font-weight: 900; }
.access-summary strong { display: block; font-size: 13px; }.access-summary p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.permission-section { display: grid; grid-template-columns: 180px 1fr; gap: 18px; padding: 16px 0; border-top: 1px solid var(--line); }
.permission-section > div:first-child strong { font-size: 12px; }.permission-section > div:first-child p { margin: 4px 0 0; color: var(--muted); font-size: 9px; line-height: 1.4; }
.permission-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.permission-grid label { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfc; font-size: 10px !important; cursor: pointer; }
.permission-grid input { width: auto; }
.permission-pill { display: inline-flex; margin: 2px 3px 2px 0; padding: 3px 7px; border-radius: 99px; color: #244680; background: var(--blue-soft); font-size: 9px; white-space: nowrap; }
.permission-summary { max-width: 260px; color: #4c586d; font-size: 10px; line-height: 1.45; }

.totem-view { position: fixed; z-index: 200; inset: 0; min-height: 100vh; overflow: auto; color: #fff; background: radial-gradient(circle at 85% 10%, #284f9e 0, transparent 35%), linear-gradient(145deg,#0e1930,#152a52); }
.totem-view header { display: flex; justify-content: space-between; align-items: center; padding: 24px 42px; border-bottom: 1px solid rgba(255,255,255,.1); }
.totem-view header > div:last-child { text-align: right; }
.totem-view header strong, .totem-view header small { display: block; }
.totem-view header small { color: #9fb1d3; font-size: 10px; }
.totem-view main { max-width: 1500px; margin: 0 auto; padding: 30px 42px; }
.totem-slide { display: none; }
.totem-slide.active.totem-slide-enabled { display: block; animation: totem-enter .55s ease both; }
@keyframes totem-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.totem-title { text-align: center; }
.totem-title p { margin: 0; color: #8fafff; font-size: 12px; font-weight: 850; letter-spacing: 2px; }
.totem-title h1 { margin: 7px 0 25px; font-size: clamp(32px,4vw,56px); }
.totem-podium { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; align-items: end; max-width: 920px; margin: 0 auto 24px; }
.totem-person { position: relative; padding: 20px; border: 1px solid rgba(255,255,255,.13); border-radius: 16px; text-align: center; background: rgba(255,255,255,.07); }
.totem-person.first { min-height: 230px; padding-top: 24px; background: linear-gradient(145deg,rgba(72,112,218,.8),rgba(45,78,165,.75)); }
.totem-person h2 { margin: 10px 0 5px; font-size: 20px; }
.totem-person strong { font-size: 30px; }
.totem-person span { display: block; color: #b9c8e5; font-size: 10px; }
.totem-medal { font-size: 30px; }
.totem-avatar { position: relative; display: grid; place-items: center; width: 86px; height: 86px; margin: 5px auto 8px; overflow: hidden; border: 4px solid rgba(255,255,255,.9); border-radius: 50%; color: #fff; background: linear-gradient(145deg,#6088ec,#2858ca); box-shadow: 0 12px 30px rgba(0,0,0,.24); font-size: 22px; font-weight: 900; }
.totem-person.first .totem-avatar { width: 102px; height: 102px; }
.totem-ranking { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; max-width: 1050px; margin: auto; }
.totem-rank-row { display: grid; grid-template-columns: 40px 42px 1fr 70px; gap: 10px; align-items: center; padding: 10px 16px; border: 1px solid rgba(255,255,255,.1); border-radius: 11px; background: rgba(255,255,255,.045); }
.totem-row-avatar { position: relative; display: grid; place-items: center; width: 42px; height: 42px; overflow: hidden; border: 2px solid rgba(255,255,255,.65); border-radius: 50%; color: #fff; background: linear-gradient(145deg,#6088ec,#2858ca); font-size: 10px; font-weight: 900; }
.totem-rank-row b:last-child { text-align: right; }
.totem-footer { display: grid; grid-template-columns: repeat(3,140px) 1fr; gap: 12px; margin-top: 25px; padding: 17px; border-radius: 14px; background: rgba(0,0,0,.18); }
.totem-footer > div { padding: 0 15px; border-right: 1px solid rgba(255,255,255,.1); }
.totem-footer > div:last-child { border-right: 0; }
.totem-footer span, .totem-footer strong { display: block; }
.totem-footer span { color: #93a7cc; font-size: 9px; text-transform: uppercase; }
.totem-footer strong { margin-top: 5px; font-size: 18px; }
.totem-tip strong { color: #cdddff; font-size: 13px; }
.totem-employee-month { max-width: 1180px; margin: 0 auto; }
.totem-honoree-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); gap: 20px; align-items: stretch; }
.totem-honoree-grid.count-1 { max-width: 480px; margin: 0 auto; }
.totem-honoree-grid.count-2 { max-width: 820px; margin: 0 auto; }
.totem-honoree-card { position: relative; display: grid; justify-items: center; min-height: 340px; padding: 34px 22px 26px; overflow: hidden; border: 1px solid rgba(255,220,121,.38); border-radius: 26px; text-align: center; background: linear-gradient(155deg,rgba(255,219,112,.22),rgba(255,255,255,.06)); box-shadow: 0 20px 50px rgba(0,0,0,.16); }
.totem-honoree-glow { position: absolute; top: -90px; width: 240px; height: 240px; border-radius: 50%; background: rgba(255,210,73,.16); filter: blur(12px); }
.totem-honoree-avatar { position: relative; z-index: 1; display: grid; place-items: center; width: 190px; height: 190px; overflow: hidden; border: 7px solid rgba(255,255,255,.96); border-radius: 50%; color: #fff; background: linear-gradient(145deg,#6088ec,#2858ca); box-shadow: 0 16px 38px rgba(0,0,0,.28); font-size: 42px; font-weight: 900; }
.totem-honoree-card > span { position: relative; margin-top: 18px; color: #ffd96b; font-size: 11px; font-weight: 900; letter-spacing: 1.8px; }
.totem-honoree-card h2 { position: relative; margin: 8px 0 0; font-size: 27px; }
.totem-honoree-message { max-width: 900px; margin: 30px auto 0; padding: 18px 26px; border: 1px solid rgba(255,219,112,.24); border-radius: 16px; color: #f5edcf; background: rgba(0,0,0,.14); font-size: 18px; font-style: italic; line-height: 1.5; text-align: center; }
.totem-planning { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; max-width: 1180px; margin: auto; }
.totem-plan-card { display: grid; grid-template-columns: 80px 1fr; min-height: 178px; overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: 17px; background: rgba(255,255,255,.07); }
.totem-plan-date { display: grid; align-content: center; justify-items: center; padding: 15px 8px; background: linear-gradient(160deg,#315fbf,#1b3f87); }
.totem-plan-date strong { font-size: 13px; letter-spacing: 1px; }
.totem-plan-date span { margin: 4px 0; font-size: 38px; font-weight: 900; line-height: 1; }
.totem-plan-date small { color: #c7d6f5; font-size: 10px; }
.totem-plan-main { padding: 15px 17px; }
.totem-plan-heading { display: flex; justify-content: space-between; gap: 10px; color: #9fb9ff; font-size: 9px; font-weight: 850; letter-spacing: .7px; }
.totem-plan-heading em { color: #b8f0d8; font-style: normal; }
.totem-plan-main h2 { margin: 6px 0 2px; font-size: 18px; }
.totem-destination { margin: 0; color: #adbedf; font-size: 10px; }
.totem-plan-service { display: grid; gap: 2px; margin: 11px 0; }
.totem-plan-service strong { color: #fff; font-size: 11px; }
.totem-plan-service span { color: #b9c8e5; font-size: 9px; line-height: 1.35; }
.totem-plan-bottom { display: flex; justify-content: space-between; gap: 12px; align-items: flex-end; padding-top: 9px; border-top: 1px solid rgba(255,255,255,.1); }
.totem-plan-bottom > div:last-child { text-align: right; }
.totem-plan-bottom small { display: block; color: #8fa3c9; font-size: 8px; }
.totem-plan-bottom strong { font-size: 11px; }
.totem-team-avatars { display: flex; align-items: center; min-width: 0; }
.totem-team-avatars > span { margin-left: 8px; overflow: hidden; color: #dce5f8; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.totem-team-avatar { position: relative; display: grid; flex: 0 0 auto; place-items: center; width: 27px; height: 27px; margin-left: -6px; overflow: hidden; border: 2px solid #1b2f58; border-radius: 50%; color: #fff; background: #315fbf; font-size: 7px; font-weight: 900; }
.totem-team-avatar:first-child { margin-left: 0; }
.totem-team-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.totem-notices { display: grid; gap: 18px; max-width: 1040px; margin: 0 auto; }
.totem-notice-card { display: grid; grid-template-columns: 86px 1fr; gap: 22px; align-items: center; min-height: 190px; padding: 28px 34px; border: 1px solid rgba(255,255,255,.13); border-radius: 22px; background: rgba(255,255,255,.07); }
.totem-notice-card.importante { border-color: rgba(255,190,83,.42); background: linear-gradient(140deg,rgba(120,77,15,.42),rgba(255,255,255,.06)); }
.totem-notice-card.urgente { border-color: rgba(255,111,111,.45); background: linear-gradient(140deg,rgba(128,36,44,.5),rgba(255,255,255,.06)); }
.totem-notice-icon { display: grid; place-items: center; width: 82px; height: 82px; border-radius: 22px; color: #fff; background: #315fbf; font-size: 38px; font-weight: 900; }
.totem-notice-card.importante .totem-notice-icon { background: #b97818; }
.totem-notice-card.urgente .totem-notice-icon { background: #b93b48; }
.totem-notice-card > div:last-child > span { color: #9fb9ff; font-size: 11px; font-weight: 850; letter-spacing: 1.2px; text-transform: uppercase; }
.totem-notice-card h2 { margin: 7px 0 8px; font-size: 29px; }
.totem-notice-card p { margin: 0; color: #d5dff2; font-size: 15px; line-height: 1.55; }
.totem-notice-card small { display: block; margin-top: 14px; color: #92a7ce; font-size: 10px; }
.totem-empty { padding: 80px 20px; color: #9fb1d3; font-size: 18px; text-align: center; }
.totem-indicators { display: flex; justify-content: center; gap: 9px; margin-top: 26px; }
.totem-indicators button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.28); cursor: pointer; }
.totem-indicators button.active { width: 34px; border-radius: 99px; background: #8fafff; }
.totem-planning { display: block; max-width: 1380px; }
.totem-week-summary { display: flex; justify-content: space-between; gap: 20px; margin: -10px auto 14px; padding: 12px 16px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; color: #b9c8e5; background: rgba(0,0,0,.14); font-size: 10px; }
.totem-week-summary strong { color: #fff; font-size: 15px; }
.totem-week-board { display: grid; gap: 9px; }
.totem-week-day { overflow: hidden; border: 1px solid rgba(255,255,255,.15); border-radius: 14px; background: rgba(255,255,255,.045); }
.totem-week-day-label { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 9px 14px; background: linear-gradient(100deg,#315fbf,#214987); }
.totem-week-day-label > div { display: flex; align-items: baseline; gap: 9px; }
.totem-week-day-label strong { font-size: 11px; text-transform: capitalize; }
.totem-week-day-label span { color: #c9d8f5; font-size: 8px; }
.totem-week-day-label > b { padding: 4px 8px; border-radius: 99px; color: #dce7ff; background: rgba(6,20,48,.3); font-size: 7px; }
.totem-week-day-rows { display: grid; }
.totem-week-row { display: grid; grid-template-columns: 55px minmax(145px,1.15fr) minmax(130px,1fr) 90px 92px; align-items: center; min-height: 68px; padding: 7px 10px; border-top: 1px solid rgba(255,255,255,.09); }
.totem-week-row:first-child { border-top: 0; }
.totem-week-row > div { min-width: 0; padding: 2px 8px; border-right: 1px solid rgba(255,255,255,.08); }
.totem-week-row > div:last-of-type { border-right: 0; }
.totem-week-row small, .totem-week-row span, .totem-week-row strong { display: block; }
.totem-week-row small { margin-bottom: 2px; color: #8fa3c9; font-size: 6px; font-weight: 750; letter-spacing: .3px; text-transform: uppercase; }
.totem-week-row strong { overflow: hidden; color: #fff; font-size: 8px; line-height: 1.25; text-overflow: ellipsis; }
.totem-plan-os strong { color: #9fb9ff; font-size: 11px; }
.totem-plan-client > strong { font-size: 10px; }.totem-plan-client span { color: #c8d5ee; font-size: 7px; }.totem-plan-client > small { margin: 3px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.totem-week-row em { display: inline-flex; margin-top: 4px; padding: 3px 5px; border-radius: 99px; font-size: 6px; font-style: normal; font-weight: 850; }
.totem-week-row em.done { color: #b8f0d8; background: rgba(57,167,124,.2); }.totem-week-row em.pending { color: #d9e5ff; background: rgba(96,136,236,.2); }
.totem-plan-note { grid-column: 2/-1; margin: 5px 8px 0; overflow: hidden; color: #b9c8e5; font-size: 7px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }.totem-plan-note b { color: #dce7ff; }
.totem-week-row.empty { display: block; min-height: 42px; padding: 14px; color: #8fa3c9; font-size: 8px; text-align: center; }
.exit-totem { position: fixed; right: 18px; top: 18px; width: 38px; height: 38px; border: 0; border-radius: 50%; color: #fff; background: rgba(0,0,0,.35); font-size: 22px; }

@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: repeat(2,1fr); }
  .evaluation-layout { grid-template-columns: 1fr; }
  .sticky-score { position: static; }
  .people-grid { grid-template-columns: repeat(2,1fr); }
  .complexity-grid { grid-template-columns: repeat(3,1fr); }
  .team-members-grid { grid-template-columns: repeat(2,1fr); }
  .planning-summary { grid-template-columns: repeat(2,1fr); }
  .planning-day-items { grid-template-columns: 1fr; }
  .weekly-item-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 820px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; padding: 16px; }
  .nav-list { display: flex; overflow-x: auto; margin-top: 16px; padding-bottom: 3px; }
  .nav-item { width: auto; min-width: max-content; }
  .sidebar-footer { display: none; }
  .main-content { padding: 20px 15px 38px; }
  .topbar { display: block; }
  .topbar-actions { justify-content: flex-start; margin-top: 15px; }
  .dashboard-grid, .report-grid { grid-template-columns: 1fr; }
  .form-grid.cols-3 { grid-template-columns: repeat(2,1fr); }
  .people-grid { grid-template-columns: 1fr; }
  .recommendations { grid-template-columns: 1fr; }
  .complexity-grid, .formula-grid { grid-template-columns: 1fr; }
  .totem-footer { grid-template-columns: repeat(3,1fr); }
  .totem-tip { grid-column: 1/-1; }
  .access-summary-grid { grid-template-columns: 1fr; }
  .permission-section { grid-template-columns: 1fr; }
  .planning-toolbar { align-items: stretch; flex-direction: column; }
  .planning-toolbar-actions { flex-wrap: wrap; }
  .planning-day { grid-template-columns: 1fr; }
  .weekly-plan-identification, .weekly-team-editor { grid-template-columns: 1fr; }
  .weekly-item-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .employee-month-intro { align-items: stretch; flex-direction: column; }
}

@media (max-width: 560px) {
  .kpi-grid, .form-grid.cols-2, .form-grid.cols-3, .ranking-summary { grid-template-columns: 1fr; }
  .span-2, .span-3 { grid-column: auto; }
  .complexity-heading { align-items: stretch; flex-direction: column; }
  .complexity-preview { text-align: left; }
  .demo-banner { align-items: stretch; flex-direction: column; }
  .team-members-grid { grid-template-columns: 1fr; }
  .criterion-row { grid-template-columns: 1fr repeat(6, minmax(36px,1fr)); }
  .criterion-name { grid-column: 1/-1; }
  .score-option span { width: 100%; }
  .services-header { align-items: flex-start; flex-direction: column; }
  .table-filters { width: 100%; min-width: 0; flex-direction: column; }
  .donut-area { grid-template-columns: 1fr; justify-items: center; }
  .totem-view header, .totem-view main { padding-left: 18px; padding-right: 18px; }
  .totem-podium, .totem-ranking { grid-template-columns: 1fr; }
  .totem-person.first { order: -1; }
  .totem-footer { grid-template-columns: 1fr 1fr; }
  .permission-grid { grid-template-columns: 1fr; }
  .planning-summary, .totem-planning { grid-template-columns: 1fr; }
  .notice-admin-card { grid-template-columns: 1fr; }
  .notice-admin-actions { justify-content: flex-end; }
  .weekly-item-grid, .weekly-team-slots { grid-template-columns: 1fr; }
  .weekly-item-grid .span-2 { grid-column: auto; }
  .employee-month-heading { flex-direction: column; }
  .employee-month-people { grid-template-columns: 1fr; }
}

/* Totem vertical de aproximadamente 53 x 94 cm (proporção 9:16). */
@media (orientation: portrait) {
  .totem-view header { padding: 30px 46px; }
  .totem-view header .brand-mark { width: 54px; height: 54px; font-size: 22px; }
  .totem-view header .brand strong { font-size: 22px; }
  .totem-view header small { font-size: 12px; }
  .totem-view main { max-width: 1080px; padding: 42px 46px 48px; }
  .totem-title p { font-size: 14px; letter-spacing: 2.5px; }
  .totem-title h1 { margin: 10px 0 34px; font-size: clamp(48px,6.2vw,68px); }
  .totem-podium { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; max-width: 900px; margin-bottom: 28px; }
  .totem-person { min-height: 235px; padding: 24px 18px; border-radius: 22px; }
  .totem-person.first { grid-column: 1/-1; justify-self: center; width: min(72%,620px); min-height: 300px; padding-top: 28px; }
  .totem-person h2 { margin: 13px 0 7px; font-size: 25px; }
  .totem-person strong { font-size: 39px; }
  .totem-person span { font-size: 12px; }
  .totem-medal { font-size: 38px; }
  .totem-avatar { width: 112px; height: 112px; border-width: 5px; font-size: 27px; }
  .totem-person.first .totem-avatar { width: 148px; height: 148px; }
  .totem-ranking { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; max-width: 980px; }
  .totem-rank-row { min-height: 66px; grid-template-columns: 48px 54px minmax(0,1fr) 72px; gap: 12px; padding: 10px 17px; border-radius: 15px; font-size: 15px; }
  .totem-row-avatar { width: 52px; height: 52px; font-size: 12px; }
  .totem-footer { grid-template-columns: repeat(3,1fr); gap: 0; margin-top: 30px; padding: 23px 18px; border-radius: 18px; }
  .totem-footer > div { padding: 0 18px; }
  .totem-footer span { font-size: 11px; }
  .totem-footer strong { font-size: 25px; }
  .totem-tip { grid-column: 1/-1; margin-top: 22px; padding-top: 20px !important; border-top: 1px solid rgba(255,255,255,.1); border-right: 0 !important; text-align: center; }
  .totem-tip strong { font-size: 19px; }
  .totem-honoree-grid { gap: 24px; }
  .totem-honoree-card { min-height: 390px; padding: 42px 26px 30px; }
  .totem-honoree-avatar { width: 220px; height: 220px; border-width: 8px; font-size: 48px; }
  .totem-honoree-card > span { font-size: 13px; }.totem-honoree-card h2 { font-size: 32px; }
  .totem-honoree-message { margin-top: 34px; padding: 22px 30px; font-size: 22px; }
  .totem-planning { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .totem-plan-card { min-height: 205px; grid-template-columns: 92px 1fr; border-radius: 20px; }
  .totem-plan-date strong { font-size: 15px; }.totem-plan-date span { font-size: 46px; }.totem-plan-date small { font-size: 11px; }
  .totem-plan-main { padding: 18px 20px; }.totem-plan-main h2 { font-size: 22px; }.totem-destination { font-size: 12px; }
  .totem-plan-service strong { font-size: 13px; }.totem-plan-service span { font-size: 11px; }
  .totem-team-avatar { width: 34px; height: 34px; font-size: 8px; }.totem-team-avatars > span { font-size: 10px; }
  .totem-plan-bottom strong { font-size: 13px; }
  .totem-notices { gap: 24px; }
  .totem-notice-card { grid-template-columns: 110px 1fr; min-height: 245px; padding: 38px 42px; border-radius: 26px; }
  .totem-notice-icon { width: 104px; height: 104px; border-radius: 28px; font-size: 48px; }
  .totem-notice-card h2 { font-size: 38px; }.totem-notice-card p { font-size: 20px; }.totem-notice-card small { font-size: 13px; }
  .totem-indicators { margin-top: 34px; }.totem-indicators button { width: 13px; height: 13px; }.totem-indicators button.active { width: 44px; }
  .totem-week-summary { margin-bottom: 18px; padding: 15px 18px; font-size: 13px; }
  .totem-week-summary strong { font-size: 19px; }
  .totem-week-board { gap: 14px; }
  .totem-week-day { border-radius: 18px; }
  .totem-week-day-label { padding: 13px 20px; }
  .totem-week-day-label strong { font-size: 17px; }.totem-week-day-label span { font-size: 12px; }.totem-week-day-label > b { padding: 6px 11px; font-size: 10px; }
  .totem-week-row { grid-template-columns: 82px minmax(220px,1.2fr) minmax(190px,1fr) 145px 142px; min-height: 102px; padding: 10px 13px; }
  .totem-week-row > div { padding: 4px 12px; }
  .totem-week-row small { font-size: 9px; }.totem-week-row strong { font-size: 12px; }
  .totem-plan-os strong { font-size: 17px; }.totem-plan-client > strong { font-size: 15px; }.totem-plan-client span { font-size: 11px; }
  .totem-week-row em { margin-top: 6px; padding: 4px 7px; font-size: 9px; }
  .totem-plan-note { margin: 7px 12px 0; font-size: 10px; }
  .totem-week-row.empty { min-height: 58px; padding: 20px; font-size: 11px; }
  .exit-totem { width: 46px; height: 46px; font-size: 27px; }
}

@media (max-width: 560px) {
  .totem-view header { padding: 18px 54px 18px 18px; }
  .totem-view header .brand-mark { width: 42px; height: 42px; font-size: 17px; }
  .totem-view header .brand strong { font-size: 16px; }
  .totem-view header small { font-size: 9px; }
  .totem-view main { padding: 26px 18px 30px; }
  .totem-title p { font-size: 10px; letter-spacing: 2px; }
  .totem-title h1 { margin: 8px 0 22px; font-size: 38px; }
  .totem-honoree-grid { grid-template-columns: 1fr; gap: 14px; }
  .totem-honoree-card { min-height: 0; padding: 22px 16px; border-radius: 20px; }
  .totem-honoree-avatar { width: 132px; height: 132px; border-width: 5px; font-size: 30px; }
  .totem-honoree-card > span { margin-top: 13px; font-size: 9px; }.totem-honoree-card h2 { margin-top: 5px; font-size: 21px; }
  .totem-honoree-message { margin-top: 18px; padding: 14px 16px; font-size: 13px; }
  .totem-week-summary { align-items: flex-start; flex-direction: column; gap: 5px; padding: 12px 14px; font-size: 10px; }
  .totem-week-summary strong { font-size: 15px; }
  .totem-week-board { gap: 10px; }
  .totem-week-day { border-radius: 14px; }
  .totem-week-day-label { padding: 10px 12px; }
  .totem-week-day-label strong { font-size: 13px; }.totem-week-day-label span { font-size: 9px; }.totem-week-day-label > b { font-size: 8px; }
  .totem-week-row { grid-template-columns: 54px minmax(0,1fr) minmax(0,1fr); min-height: 0; padding: 9px; }
  .totem-week-row > div { padding: 4px 8px; border-right: 0; }
  .totem-plan-os { grid-row: 1/5; align-self: stretch; border-right: 1px solid rgba(255,255,255,.08) !important; }
  .totem-plan-client, .totem-plan-team { grid-column: 2/4; }
  .totem-plan-time { grid-column: 2; }.totem-plan-deadline { grid-column: 3; }
  .totem-week-row small { font-size: 7px; }.totem-week-row strong { font-size: 9px; }
  .totem-plan-os strong { font-size: 14px; }.totem-plan-client > strong { font-size: 12px; }.totem-plan-client span { font-size: 9px; }
  .totem-week-row em { font-size: 7px; }
  .totem-plan-note { grid-column: 2/4; margin: 4px 8px 1px; font-size: 8px; white-space: normal; }
  .totem-week-row.empty { min-height: 46px; padding: 15px; font-size: 9px; }
  .exit-totem { width: 38px; height: 38px; font-size: 22px; }
}
