@font-face{font-family:'Montserrat';font-weight:400;font-display:swap;src:url(fonts/montserrat-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Montserrat';font-weight:400;font-display:swap;src:url(fonts/montserrat-latin-400-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Montserrat';font-weight:600;font-display:swap;src:url(fonts/montserrat-latin-ext-600-normal.woff2) format('woff2');unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Montserrat';font-weight:600;font-display:swap;src:url(fonts/montserrat-latin-600-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Montserrat';font-weight:700;font-display:swap;src:url(fonts/montserrat-latin-ext-700-normal.woff2) format('woff2');unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Montserrat';font-weight:700;font-display:swap;src:url(fonts/montserrat-latin-700-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Montserrat';font-weight:800;font-display:swap;src:url(fonts/montserrat-latin-ext-800-normal.woff2) format('woff2');unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Montserrat';font-weight:800;font-display:swap;src:url(fonts/montserrat-latin-800-normal.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root {
  --slate: #202E35;
  --slate-2: #2C3E47;
  --ocean: #007FA7;
  --teal: #00ADC0;
  --mist: #EAF6F7;
  --bg: #F4F8F9;
  --card: #FFFFFF;
  --line: #E0EBEE;
  --line-2: #C9DCE1;
  --muted: #5B707A;
  --soft: #DCECF1;
  --red: #C0392B;
  --red-tint: #FBEAE7;
  --gap: 16px;
  --r: 16px;
  --shadow: 0 1px 2px rgba(32,46,53,.05), 0 8px 24px rgba(32,46,53,.06);
}
*, *::before, *::after { box-sizing: border-box; }
button, input, select, textarea { font: inherit; color: inherit; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--slate);
  font-family: "Montserrat", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }
.strip { height: 6px; background: linear-gradient(90deg, var(--ocean), var(--teal)); }
.page { max-width: 1320px; margin: 0 auto; padding: 22px 28px 20px; display: flex; flex-direction: column; gap: var(--gap); }
.view { display: flex; flex-direction: column; gap: var(--gap); }

/* header */
.head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--gap); flex-wrap: wrap;
  background: var(--slate); color: #FFFFFF; border-radius: 20px; padding: 14px 20px 14px 18px;
  background-image: radial-gradient(circle at 92% -40%, rgba(0,173,192,.28), transparent 45%);
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.logo { width: 46px; height: auto; flex: none; display: block; }
.word { font-size: 26px; font-weight: 800; line-height: 1.1; margin: 0; letter-spacing: -.01em; }
.word span { color: var(--teal); }
.sub { font-size: 13px; color: #B8CDD4; margin: 3px 0 0; }
.head-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chip {
  text-align: left; color: #FFFFFF; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  border-radius: 12px; padding: 6px 14px; font-size: 11.5px; font-weight: 600; line-height: 1.35; color: #CFE0E5;
}
.chip b { display: block; letter-spacing: .1em; font-size: 10.5px; color: var(--teal); }
.tools { display: flex; gap: 6px; }
.tool {
  background: transparent; color: #CFE0E5; border: 1px solid rgba(255,255,255,.18); border-radius: 999px;
  padding: 6px 14px; font-size: 12px; font-weight: 600; cursor: pointer; transition: all .15s;
}
.tool:hover { border-color: var(--teal); color: #FFFFFF; background: rgba(0,173,192,.15); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

/* legend */
.legend {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 24px; margin: 0; list-style: none;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 9px 18px;
  font-size: 13px; color: var(--muted); font-weight: 500;
}
.legend b { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; align-items: center; justify-content: center; background: var(--mist); color: var(--ocean); font-size: 11px; margin-right: 6px; }

/* cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); min-width: 0; box-shadow: var(--shadow); overflow: hidden; }
.card h2 {
  margin: 0; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 11px 20px; color: #FFFFFF; background: var(--ocean);
}
.card.alt h2 { background: var(--teal); color: var(--slate); }
.card.dark h2 { background: var(--slate); }
.items { padding: 16px 20px 18px; display: flex; flex-direction: column; gap: 14px; }

/* questionnaire */
.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid .card { display: flex; flex-direction: column; }
.grid .items { justify-content: space-around; flex: 1; gap: 18px; }
.q { margin: 0; }
.qt { margin: 0 0 10px; font-size: 14.5px; line-height: 1.45; }
.n { font-weight: 700; color: var(--ocean); margin-right: .35em; }
.dark .n, .open .n { color: var(--ocean); }
.scale { display: flex; align-items: center; gap: 7px; }
.r {
  flex: none; width: 36px; height: 36px; padding: 0; border-radius: 50%; background: #FFFFFF; color: var(--slate);
  border: 1.5px solid var(--line-2); font-weight: 700; font-size: 13.5px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: all .12s;
}
.r:hover { border-color: var(--ocean); background: var(--mist); }
.r[aria-checked="true"] { background: var(--ocean); border-color: var(--ocean); color: #FFFFFF; box-shadow: 0 3px 10px rgba(0,127,167,.3); transform: scale(1.06); }
.lab { flex: 1; text-align: right; font-size: 12px; color: var(--ocean); font-weight: 600; }
.open label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 14px; }
textarea, input:not([type]), input[type=password], input[type=text], select {
  width: 100%; border: 1.5px solid var(--line-2); border-radius: 10px; background: #FFFFFF; padding: 9px 12px;
  line-height: 1.4; font-size: 14px; transition: border-color .15s, box-shadow .15s;
}
textarea:hover, input:hover, select:hover { border-color: #A9C6CE; }
textarea:focus, input:focus, select:focus { outline: none; border-color: var(--ocean); box-shadow: 0 0 0 3px rgba(0,127,167,.15); }
textarea { resize: vertical; min-height: 70px; display: block; }
textarea::placeholder, input::placeholder { color: #8FA3AB; opacity: 1; }

/* manager picker */
.mgr .items { gap: 12px; }
.mgr-list { display: flex; flex-wrap: wrap; gap: 8px; }
.mgr-btn {
  background: #FFFFFF; border: 1.5px solid var(--line-2); border-radius: 999px; padding: 8px 16px; cursor: pointer;
  font-weight: 600; font-size: 13.5px; transition: all .12s;
}
.mgr-btn:hover { border-color: var(--ocean); background: var(--mist); }
.mgr-btn[aria-pressed="true"] { background: var(--ocean); border-color: var(--ocean); color: #FFFFFF; box-shadow: 0 3px 10px rgba(0,127,167,.25); }
.mgr-btn[aria-pressed="true"]::before { content: "\2713\00a0"; }
.mgr-btn .done { font-size: 11px; font-weight: 700; color: var(--teal); margin-left: 6px; }
.mgr-btn[aria-pressed="true"] .done { color: var(--soft); }
.note { margin: 0; font-size: 12.5px; color: var(--muted); }
.note:empty { display: none; }
.note.warn { color: var(--red); font-weight: 600; }
.hint { margin: 0; color: var(--muted); font-size: 13.5px; }
.fine { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.err { margin: 0; color: var(--red); font-weight: 600; font-size: 13px; }
.err:empty { display: none; }

/* bottom bar */
.foot {
  position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; gap: 22px;
  background: var(--slate); color: #FFFFFF; border-radius: var(--r); padding: 12px 14px 12px 22px;
  box-shadow: 0 10px 30px rgba(32,46,53,.28);
}
.prog { flex: 1; min-width: 0; }
.prog-text { font-weight: 600; font-size: 13.5px; margin: 0 0 7px; }
.track { height: 6px; border-radius: 999px; background: rgba(255,255,255,.12); }
.fill { height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--teal), #5FD3E0); transition: width .3s ease; }
.rules { flex: 0 1 28%; font-size: 11.5px; color: #9FB6BE; margin: 0; }
.go {
  flex: none; min-width: 12em; background: var(--teal); color: var(--slate); border: 0;
  border-radius: 12px; padding: 12px 22px; font-weight: 700; font-size: 14px; cursor: pointer; transition: all .15s;
}
.go:hover:not(:disabled) { background: #33C3D2; transform: translateY(-1px); }
.go:disabled { background: rgba(255,255,255,.1); color: #8FA3AB; cursor: not-allowed; }

/* buttons, sign-in, misc */
.btn {
  align-self: flex-start; background: var(--ocean); color: #FFFFFF; border: 1.5px solid var(--ocean); border-radius: 10px;
  padding: 9px 18px; font-weight: 600; font-size: 13.5px; cursor: pointer; transition: all .15s; white-space: nowrap;
}
.btn:hover { background: #006A8C; border-color: #006A8C; }
.btn.ghost { background: #FFFFFF; color: var(--slate); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--ocean); color: var(--ocean); background: var(--mist); }
.btn.red { background: #FFFFFF; color: var(--red); border-color: #E7B3AC; }
.btn.red:hover { background: var(--red); color: #FFFFFF; border-color: var(--red); }
.btn:disabled { opacity: .55; cursor: wait; }
.login { max-width: 420px; width: 100%; margin: 40px auto; }
.login h2 { background: var(--slate); }
.login .items { padding: 22px 24px 24px; gap: 12px; }
.login label { font-weight: 600; font-size: 13px; margin-bottom: -6px; }
.login .btn { align-self: stretch; padding: 11px; margin-top: 4px; font-size: 14px; }
.center { max-width: 560px; width: 100%; margin: 40px auto; text-align: center; }
.center .items { align-items: center; padding: 36px 30px; gap: 12px; }
.center h3 { margin: 0; font-size: 22px; font-weight: 700; }
.center p { margin: 0; }
.tick { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--teal), var(--ocean)); color: #FFFFFF; font-size: 28px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(0,127,167,.3); }
.footer { display: flex; justify-content: space-between; font-size: 10.5px; font-weight: 600; color: #8FA3AB; letter-spacing: .1em; margin: 4px 4px 0; }

/* HR */
#v-admin .card h2 { background: transparent; color: var(--slate); border-bottom: 1px solid var(--line); padding: 14px 20px; display: flex; align-items: center; gap: 10px; }
#v-admin .card h2::before { content: ""; width: 4px; height: 14px; border-radius: 2px; background: var(--teal); }
#v-admin .card.danger h2 { color: var(--red); }
#v-admin .card.danger h2::before { background: var(--red); }
.tabs { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.seg { display: inline-flex; background: #E3EDF0; border-radius: 12px; padding: 4px; gap: 2px; }
.tab { background: transparent; border: 0; border-radius: 9px; padding: 8px 18px; font-weight: 600; font-size: 13.5px; cursor: pointer; color: var(--muted); transition: all .15s; }
.tab:hover { color: var(--slate); }
.tab.on { background: #FFFFFF; color: var(--slate); box-shadow: 0 1px 3px rgba(32,46,53,.12); }
.spacer { flex: 1; }
.round-pick { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; color: var(--muted); }
.round-pick select { width: auto; min-width: 150px; padding: 7px 10px; font-weight: 600; color: var(--slate); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.kpi::after { content: ""; position: absolute; right: -24px; top: -24px; width: 80px; height: 80px; border-radius: 50%; background: var(--mist); }
.kpi .v { font-size: 30px; font-weight: 700; line-height: 1.15; margin: 6px 0 2px; letter-spacing: -.01em; position: relative; z-index: 1; }
.kpi .l { font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); position: relative; z-index: 1; }
.kpi .s { font-size: 12px; color: #8FA3AB; position: relative; z-index: 1; }
.table-wrap { overflow-x: auto; margin: 0 -20px; padding: 0 20px; }
table.heat { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.heat th { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; text-align: center; padding: 8px 6px 10px; color: var(--muted); vertical-align: bottom; border-bottom: 1px solid var(--line); line-height: 1.35; }
.heat th:first-child, .heat td:first-child { text-align: left; padding-left: 10px; }
.heat td { padding: 9px 6px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; font-weight: 500; }
.heat td:first-child { font-weight: 600; border-radius: 8px 0 0 8px; }
.heat td:nth-child(2) { color: var(--muted); font-variant-numeric: tabular-nums; }
.heat tr.total td { background: #F7FAFB; font-weight: 700; }
.heat tr.total td:first-child { color: var(--ocean); }
.heat tbody tr:last-child td { border-bottom: 0; }
.heat tbody tr.open { cursor: pointer; }
.heat tbody tr.open:hover td { background: #F2F8F9; }
.heat tbody tr.sel td { background: var(--mist); }
.heat tbody tr.sel td:first-child { box-shadow: inset 3px 0 0 var(--ocean); }
.heat tbody tr.locked td:first-child { color: var(--muted); font-weight: 500; }
.sc { display: inline-block; min-width: 46px; padding: 4px 8px; border-radius: 8px; font-weight: 700; font-variant-numeric: tabular-nums; }
.heat td.na { color: #8FA3AB; font-weight: 500; font-size: 12.5px; text-align: left; padding-left: 14px; }
.heat .off { font-size: 10.5px; color: var(--muted); font-weight: 600; margin-left: 8px; background: #EEF3F5; padding: 2px 8px; border-radius: 999px; }
.mini { display: inline-block; width: 90px; height: 5px; border-radius: 999px; background: #E6EEF1; vertical-align: middle; margin-right: 12px; overflow: hidden; }
.mini span { display: block; height: 100%; background: var(--teal); border-radius: 999px; }
.banner { margin: 0; background: var(--mist); border-radius: 10px; padding: 11px 16px; font-size: 13px; font-weight: 500; color: var(--slate); display: flex; gap: 10px; align-items: flex-start; }
.banner::before { content: "i"; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--teal); color: #FFFFFF; font-weight: 800; font-size: 12px; display: flex; align-items: center; justify-content: center; font-style: italic; }
.legend-scale { display: flex; gap: 16px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted); align-items: center; }
.legend-scale i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; vertical-align: -1px; margin-right: 6px; }
.dist { display: grid; grid-template-columns: minmax(0, 1fr) 64px; gap: 4px 18px; align-items: center; }
.dist .lbl { font-size: 13.5px; margin-top: 10px; }
.dist .lbl small { color: var(--ocean); font-weight: 600; display: block; font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 1px; }
.bar { display: flex; height: 16px; border-radius: 999px; overflow: hidden; background: #EEF3F5; grid-column: 1; gap: 2px; }
.bar span { display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #FFFFFF; min-width: 0; overflow: hidden; }
.avg { font-weight: 700; font-size: 20px; text-align: right; grid-row: span 2; align-self: end; line-height: 1.1; }
.avg .fine { font-size: 10.5px; font-weight: 600; }
.comments { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.comments h4 { margin: 0 0 10px; font-size: 13px; font-weight: 700; }
.comments ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.comments li { background: #F7FAFB; border: 1px solid var(--line); border-left: 3px solid var(--teal); border-radius: 8px; padding: 10px 14px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13.5px; }
.comments div:last-child li { border-left-color: var(--ocean); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.saved { color: var(--ocean); font-weight: 600; font-size: 13px; }
.empty { color: var(--muted); margin: 0; font-size: 13.5px; }

/* settings */
.settings { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--gap); align-items: start; }
.col { display: flex; flex-direction: column; gap: var(--gap); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-weight: 600; font-size: 13px; }
.inline { display: flex; gap: 8px; }
.inline input { flex: 1; min-width: 0; }
.mlist { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.mrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 6px 12px 6px 6px; border-bottom: 1px solid var(--line); }
.mrow:last-child { border-bottom: 0; }
.mrow input[type=text] { border-color: transparent; background: transparent; font-weight: 500; }
.mrow input[type=text]:hover { border-color: var(--line-2); background: #FFFFFF; }
.mrow input[type=text]:focus { background: #FFFFFF; }
.mrow label { display: flex; gap: 8px; align-items: center; font-weight: 500; font-size: 12px; color: var(--muted); white-space: nowrap; cursor: pointer; }
.switch { display: flex; gap: 12px; align-items: center; font-weight: 600; font-size: 13.5px; cursor: pointer; }
.tg { appearance: none; -webkit-appearance: none; flex: none; width: 36px; height: 20px; border-radius: 999px; background: #CBD8DD; position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.tg::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.tg:checked { background: var(--ocean); }
.tg:checked::after { transform: translateX(16px); }

@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .page { padding: 14px 14px; }
  .grid, .comments { grid-template-columns: 1fr; }
  .word { font-size: 22px; } .logo { width: 40px; } .sub { font-size: 12px; }
  .chip { display: none; }
  .foot { flex-wrap: wrap; gap: 10px; bottom: 8px; padding: 12px 14px; }
  .rules { display: none; }
  .go { min-width: 0; width: 100%; }
  .r { width: 40px; height: 40px; }
  .inline { flex-direction: column; }
  .inline .btn { align-self: stretch; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
  body { background: #FFFFFF; }
  .strip, .tools, .tabs, .actions, .foot, .danger { display: none !important; }
  .page { padding: 0; max-width: none; }
  .card, .kpi { break-inside: avoid; box-shadow: none; }
  .head, .card h2, .sc, .bar span, .mini span { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.saved:empty { display: none; }
p.saved { margin: 0; }
