:root {
  font-family: system-ui, sans-serif;
  color: #202139;
  background: #f7f8fc;
  font-synthesis: none;
  --muted: #62657d;
  --border: #e8e9f2;
  --purple: #5141bc;
  --radius: 17px;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 300px; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }
button, a, select, input, textarea, summary { outline-offset: 3px; }
:focus-visible { outline: 2px solid #6250dc; }
h1, h2, h3, p { margin: 0; }
p { line-height: 1.65; }
small { display: block; color: var(--muted); font-size: .82rem; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 5; background: white; padding: .7rem; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 244px minmax(0, 1fr); }
#sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; background: #fff; border-right: 1px solid var(--border); padding: 25px 17px 22px; overflow: auto; }
.brand { display: flex; align-items: center; gap: 10px; margin: 0 7px 30px; text-decoration: none; font-weight: 800; font-size: 1.26rem; letter-spacing: -.045em; }
.brand > span { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: white; background: #5744c6; box-shadow: 0 4px 10px #5141bc38; }
.org { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 12px; padding: 9px 11px; margin-bottom: 28px; }
.org-logo { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: #e9e8f6; color: #4537a1; font-weight: 800; }
.org strong, .person strong { display: block; font-size: .92rem; }
nav { display: grid; gap: 5px; }
nav a { min-height: 42px; display: flex; align-items: center; gap: 11px; border-radius: 9px; padding: 8px 11px; text-decoration: none; color: #50526b; font-size: .91rem; font-weight: 600; }
nav a:hover { background: #f6f5fa; }
nav a[aria-current] { background: #eeeafd; color: #4737ab; font-weight: 700; }
.sidebar-bottom { margin-top: auto; padding: 25px 8px 0; font-size: .73rem; color: var(--muted); }
.indicator { display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 50%; background: #338364; }
#topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 32px; min-height: 69px; background: #fff; border-bottom: 1px solid var(--border); }
.breadcrumb, .top-actions, .role-switch { display: flex; align-items: center; gap: 9px; }
.breadcrumb { font-size: .87rem; color: var(--muted); }
.breadcrumb strong, .profile-name { color: #292940; font-weight: 700; font-size: .87rem; }
.role-switch { padding: 0 9px; border: 1px solid var(--border); border-radius: 9px; color: #5141bc; margin-right: 9px; }
.role-switch select { background: transparent; color: #34354f; border: 0; padding: 7px 0; font-weight: 600; font-size: .84rem; }
main { max-width: 1430px; margin-inline: auto; padding: 32px; }
main:focus { outline: none; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 24px; }
.page-heading h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -.05em; margin-bottom: 4px; }
.page-heading p { color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; border: 1px solid var(--border); background: white; border-radius: 9px; padding: 8px 13px; color: #33334e; font-weight: 700; font-size: .85rem; text-align: center; }
.button:hover { background: #f4f2fb; }
.button.primary { border-color: transparent; background: var(--purple); color: #fff; box-shadow: 0 3px 7px #5141bc26; }
.button.primary:hover { background: #4433a9; }
.button.quiet { background: transparent; border-color: transparent; color: #4f3eb3; }
.button.quiet:hover { background: #f0edfd; }
.hero { position: relative; display: flex; align-items: center; min-height: 215px; overflow: hidden; isolation: isolate; padding: 29px 32px; background: radial-gradient(ellipse at 90% 30%, #7561e8, transparent 60%), linear-gradient(116deg,#362580,#5740c1); color: white; border-radius: var(--radius); }
.hero > div:first-child { position: relative; z-index: 1; max-width: 66%; }
.hero h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.045em; margin-bottom: 7px; }
.hero p { color: #f1edff; max-width: 31rem; }
.hero-button { margin-top: 19px; border: 0; color: #4333a0; }
.hero-button svg { order: 1; }
.hero-art { position: absolute; right: 3%; top: 0; bottom: 0; width: 29%; min-width: 235px; }
.halo { position: absolute; top: 50%; left: 55%; width: 235px; height: 235px; border-radius: 50%; transform: translate(-50%,-50%); border: 1px solid #dfd6ff50; box-shadow: 0 0 0 29px #e5dfff18, inset 0 0 0 26px #e5dfff15; }
.paper { position: absolute; top: 50%; left: 51%; transform: translate(-50%,-50%) rotate(-11deg); width: 121px; height: 142px; padding: 19px 14px; border: 1px solid #ffffffb0; border-radius: 14px; background: #f6f2ff; box-shadow: 0 12px 26px #21195e55; }
.paper-back { transform: translate(-20%,-46%) rotate(14deg); background: #ac9af3; }
.art-title { display: block; height: 7px; width: 62px; border-radius: 9px; background: #6b54cd; margin-bottom: 16px; }
.art-row { display: flex; gap: 7px; align-items: center; margin: 8px 0; }
.art-row span { display: grid; place-items: center; height: 18px; width: 18px; color: #4b38b0; border-radius: 5px; background: #ded5fd; }
.art-row i { width: 46px; height: 5px; border-radius: 8px; background: #cec2ed; }
.art-spark { position: absolute; left: 79%; top: 14%; color: #efecff; }
.metrics, .cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.metrics { margin: 20px 0; }
.metric, .panel { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: 0 2px 5px #2b225606; }
.metric { display: flex; align-items: center; gap: 12px; padding: 17px; color: var(--muted); font-size: .82rem; font-weight: 600; }
.metric strong { display: block; margin-top: 3px; color: #202139; font-size: 1.6rem; line-height: 1; }
.metric-icon, .task-state { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 12px; display: inline-grid; place-items: center; }
.purple, .tone-0 { color: #4c39ae; background: #ebe5fd; }
.green, .tone-1 { color: #246752; background: #dff3eb; }
.peach, .tone-2 { color: #96521e; background: #faecdb; }
.panel-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; }
.panel-header h2, .card h2, .guide h2 { font-size: 1.14rem; font-weight: 800; letter-spacing: -.025em; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; white-space: nowrap; }
th, td { border-top: 1px solid var(--border); padding: 12px 16px; font-size: .86rem; }
th { padding-block: 10px; background: #fafafd; color: var(--muted); font-size: .77rem; }
td { color: #50536a; }
td strong { color: #282941; }
.person { display: flex; align-items: center; gap: 10px; }
.avatar { display: inline-grid; place-items: center; min-width: 35px; height: 35px; border-radius: 50%; font-size: .73rem; font-weight: 800; }
.table-progress { display: flex; align-items: center; gap: 8px; }
progress { appearance: none; display: block; border: 0; border-radius: 20px; width: 90px; height: 7px; overflow: hidden; color: #6351ce; background: #eeeaf9; }
progress::-webkit-progress-bar { background: #eeeaf9; }
progress::-webkit-progress-value { background: #6653d1; border-radius: 20px; }
progress::-moz-progress-bar { background: #6653d1; border-radius: 20px; }
.employee-hero { margin-bottom: 20px; }
.employee-hero progress { width: min(100%, 250px); margin-top: 12px; }
.task-list, .detail-tasks { list-style: none; margin: 0; padding: 0; }
.task-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 13px 18px; border-top: 1px solid var(--border); }
.task-list li:first-child { border-top: 0; }
.panel-header + .task-list { border-top: 1px solid var(--border); }
.task-state { background: #f2effb; color: #5243ae; width: 35px; height: 35px; }
.task-state.complete { color: #246752; background: #dff3eb; }
.empty { padding: 22px; color: var(--muted); }
.card, .guide { padding: 19px; min-width: 0; overflow-wrap: anywhere; }
.card .metric-icon, .guide .metric-icon { margin-bottom: 10px; }
.card p, .card ul, .guide p { color: var(--muted); }
.card ul { padding-left: 18px; font-size: .9rem; }
.card .button { margin-top: 12px; }
.category { color: #5141bc !important; font-weight: 700; font-size: .82rem; }
.search { display: flex; align-items: center; gap: 8px; max-width: 420px; margin-bottom: 16px; color: #5141bc; }
.search input { flex: 1; }
.guide { padding: 24px; max-width: 780px; }
.guide form { display: flex; gap: 8px; margin: 14px 0 10px; }
.guide input { flex: 1; }
.suggestions { display: flex; flex-wrap: wrap; gap: 7px; }
.button.chip { border-radius: 30px; background: #f7f5ff; color: #4c39ae; min-height: 32px; font-weight: 600; }
.button.chip:hover { background: #ebe5fd; }
.answer { display: grid; gap: 12px; margin-top: 16px; padding: 16px; border: 1px solid #e8e2fa; border-radius: 12px; background: #f9f7ff; }
.answer .button { white-space: normal; justify-content: flex-start; }
input, select, textarea { min-width: 0; border: 1px solid #dcddea; background: #fff; color: #262640; border-radius: 8px; padding: 8px 10px; }
textarea { resize: vertical; }
dialog { width: min(550px, calc(100% - 24px)); max-height: min(90dvh, 850px); border: 1px solid var(--border); border-radius: var(--radius); color: inherit; padding: 23px; box-shadow: 0 14px 65px #21194e40; }
dialog::backdrop { background: #1d173d73; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.dialog-header h2 { font-size: 1.28rem; }
.icon-button { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 9px; background: white; color: #34324d; }
.icon-button:hover { background: #f4f2fb; }
dialog form, #task-fields { display: grid; gap: 12px; }
dialog form label:not(.radio) { display: grid; gap: 5px; font-size: .88rem; font-weight: 700; }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.person-progress { display: flex; align-items: center; gap: 12px; margin: 14px 0; }
.detail-tasks li { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.detail-tasks svg { color: #5141bc; flex: 0 0 auto; }
fieldset { min-width: 0; border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
fieldset legend { font-weight: 700; font-size: .91rem; }
.task-fields, .quiz-fields { display: grid; gap: 8px; }
.quiz-fields { padding-block: 8px; }
.task-fields .button, #plan-form > .button { justify-self: start; }
.task-source { padding: 9px 11px; margin: 13px 0; border-radius: 8px; background: #f5f2fd; }
summary { cursor: pointer; color: #4e3ba8; font-weight: 700; }
.radio { display: flex; gap: 8px; padding-block: 6px; }
.form-error { color: #9d302f; font-weight: 700; }
.form-error:empty { display: none; }
#notice:not(:empty) { position: fixed; z-index: 2; bottom: 18px; right: 18px; max-width: min(400px, calc(100% - 36px)); padding: 12px 15px; background: #242142; color: #fff; border-radius: 10px; box-shadow: 0 4px 16px #1c173538; }
@media (max-width: 1000px) {
  .shell { grid-template-columns: 204px minmax(0, 1fr); }
  main, #topbar { padding-inline: 23px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { padding: 12px; }
}
@media (max-width: 760px) {
  .shell { display: block; }
  #sidebar { position: static; height: auto; padding: 12px 14px; border-right: 0; border-bottom: 1px solid var(--border); }
  .brand { margin: 0 0 8px; }
  .org, .sidebar-bottom { display: none; }
  nav { display: flex; flex-wrap: wrap; gap: 4px; }
  nav a { min-height: 36px; font-size: .82rem; padding: 5px 7px; gap: 5px; }
  nav svg { width: 15px; }
  #topbar { min-height: 52px; padding-inline: 15px; }
  main { padding: 20px 15px; }
  .page-heading { align-items: flex-start; flex-wrap: wrap; }
}
@media (max-width: 500px) {
  .profile-name, .breadcrumb > svg { display: none; }
  .breadcrumb { font-size: 0; }
  .hero { padding: 22px 17px; min-height: 175px; }
  .hero > div:first-child { max-width: 100%; }
  .hero-art { display: none; }
  .metrics, .cards { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .metric { padding: 10px; }
  .metric strong { font-size: 1.3rem; }
  .guide form { flex-wrap: wrap; }
  .guide input { width: 100%; flex-basis: 100%; }
}
