@font-face{font-family:Modam;src:url('/assets/Modam-Medium.ttf')}@font-face{font-family:Modam;src:url('/assets/Modam-Bold.ttf');font-weight:700}
:root{--bg:#f5f7f9;--surface:#fff;--text:#20263c;--muted:#7c849a;--line:#e7eaf0;--purple:#7437a9;--green:#188e73;--soft:#f0eafa;--mint:#e8f7f0;--shadow:0 12px 40px #233b5810}*{box-sizing:border-box}body{margin:0;font-family:Modam,Arial;background:var(--bg);color:var(--text);font-size:14px}body.dark{--bg:#101321;--surface:#1a1f31;--text:#eaf0f9;--muted:#a3aec6;--line:#30384d;--soft:#34234b;--mint:#153a34;--shadow:0 14px 38px #0003}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0}button:disabled{opacity:.55;cursor:wait}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #37bf99;outline-offset:3px}input,select,textarea{width:100%;padding:11px 13px;border:1px solid var(--line);border-radius:11px;background:var(--surface);color:var(--text)}input:focus,select:focus,textarea:focus{outline:2px solid #ac78d455;border-color:var(--purple)}textarea{resize:vertical;line-height:1.8}label{display:block;color:var(--muted);font-size:12px;margin-bottom:7px}h1,h2,h3,p{margin:0}h1{font-size:29px;letter-spacing:-.5px}h2{font-size:19px}h3{font-size:15px}p{line-height:1.9}small,.muted{color:var(--muted)}.shell{display:grid;grid-template-columns:250px 1fr;min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;background:var(--surface);border-left:1px solid var(--line);padding:30px 22px;display:flex;flex-direction:column;gap:22px}.brand{display:flex;align-items:center;gap:12px}.brand img{height:52px;width:52px;object-fit:contain}.brand strong{font-size:27px}.brand small{display:block;font-size:10px;letter-spacing:1px}.nav{display:grid;gap:7px}.nav button{text-align:right;border-radius:12px;padding:13px 15px;background:transparent;color:var(--muted);display:flex;align-items:center;gap:12px}.nav button span{width:22px;font-size:19px}.nav button.active{background:var(--soft);color:var(--purple);font-weight:700;box-shadow:inset -3px 0 var(--purple)}.side-note{margin-top:auto;padding:20px;border-radius:18px;background:linear-gradient(140deg,var(--soft),var(--mint));font-size:12px}.side-note p{color:var(--muted);margin-top:8px}.main{padding:26px 40px 45px;min-width:0}.topbar{display:flex;justify-content:space-between;align-items:center;gap:20px;padding-bottom:28px}.topbar select{width:210px}.topbar-right,.topbar-left,.row{display:flex;align-items:center;gap:12px}.avatar{display:inline-flex;align-items:center;justify-content:center;min-width:44px;max-width:44px;height:44px;flex:none;border-radius:14px;background:var(--soft);color:var(--purple);padding:12px;font-weight:700}.icon-btn{padding:11px 14px;border-radius:12px;background:var(--surface);color:var(--text);border:1px solid var(--line)}.heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:6px 0 28px}.heading p{color:var(--muted);margin-top:6px}.primary,.secondary,.danger{display:inline-flex;justify-content:center;align-items:center;gap:8px;padding:12px 19px;border-radius:11px;white-space:nowrap}.primary{background:var(--purple);color:#fff;box-shadow:0 5px 18px #8b44c72b}.primary:hover{box-shadow:0 0 22px #a24bea55}.secondary{background:var(--surface);border:1px solid var(--line);color:var(--text)}.danger{background:#fce9ed;color:#be3655}.hero{position:relative;overflow:hidden;padding:30px 34px;border-radius:23px;background:linear-gradient(110deg,#27223c,#493066 55%,#20564d);color:white;display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;min-height:170px}.hero:before{content:'';width:280px;height:280px;position:absolute;border:1px solid #fff2;border-radius:50%;left:120px;top:-120px;box-shadow:0 0 0 38px #fff03,0 0 0 78px #fff02}.hero .eyebrow{color:#98e7c9;font-size:11px;letter-spacing:1px;margin-bottom:10px}.hero p{color:#d5d4e3;max-width:580px;font-size:13px;margin-top:10px}.hero-art{width:95px;opacity:.85;filter:drop-shadow(0 0 18px #c468c590);position:relative}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-bottom:24px}.metric{background:var(--surface);border:1px solid var(--line);padding:22px;border-radius:17px;box-shadow:var(--shadow)}.metric .mi{display:inline-flex;padding:9px 12px;border-radius:11px;background:var(--soft);color:var(--purple);float:left}.metric:nth-child(even) .mi{background:var(--mint);color:var(--green)}.metric strong{display:block;font-size:31px;margin:12px 0 4px}.grid{display:grid;grid-template-columns:1.4fr 1fr;gap:22px}.panel{border:1px solid var(--line);background:var(--surface);border-radius:19px;padding:25px;box-shadow:var(--shadow);min-width:0}.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.chip{padding:5px 10px;border-radius:7px;font-size:10px;background:var(--mint);color:var(--green)}.chip.purple{background:var(--soft);color:var(--purple)}.bars{display:grid;gap:20px}.bar-label{display:flex;justify-content:space-between;font-size:12px;margin-bottom:8px}.track{height:9px;background:var(--bg);border-radius:10px;position:relative}.fill{height:100%;border-radius:10px;background:linear-gradient(90deg,#35b695,#6b3b9e)}.target{height:17px;position:absolute;top:-4px;border-right:2px solid var(--muted)}.legend{display:flex;gap:16px;margin-top:20px;color:var(--muted);font-size:11px}.legend i{display:inline-block;height:8px;width:8px;background:var(--purple);border-radius:50%;margin-left:5px}.person-row{display:flex;gap:12px;align-items:center;padding:15px 0;border-bottom:1px solid var(--line)}.person-row:last-child{border:0}.person-row .grow{flex:1}.person-row button{padding:7px 10px}.empty{padding:40px 20px;text-align:center;color:var(--muted);line-height:2;background:var(--bg);border-radius:14px}.empty strong{display:block;color:var(--text);font-size:17px;margin-bottom:8px}.tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:20px}.tabs button{padding:11px 16px;background:var(--surface);border:1px solid var(--line);color:var(--muted);border-radius:10px}.tabs .active{background:var(--purple);color:white;border-color:var(--purple)}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.full{grid-column:1/-1}.field{margin-bottom:16px}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:12px;text-align:right}th{background:var(--bg);color:var(--muted);font-weight:400;padding:13px}td{border-bottom:1px solid var(--line);padding:14px 12px;line-height:1.8;max-width:330px}tr:last-child td{border:0}.table-wrap button{padding:7px 11px}.comp-card{border:1px solid var(--line);border-radius:15px;padding:19px;margin-bottom:12px}.comp-card .form-grid{margin-top:16px}.modules{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.module{display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid var(--line);padding:12px;border-radius:10px}.module label{display:flex;gap:10px;align-items:center;margin:0;color:var(--text)}input[type=checkbox]{width:17px;height:17px;accent-color:var(--purple)}.module button{background:var(--bg);color:var(--muted);border-radius:6px;padding:4px 7px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.person-card{padding:25px;border:1px solid var(--line);border-radius:19px;background:var(--surface)}.person-card h3{margin:14px 0 6px}.person-card p{font-size:12px;color:var(--muted);margin-bottom:18px}.chat-layout{display:grid;grid-template-columns:260px 1fr;gap:20px}.chat-side{display:grid;align-content:start;gap:12px}.chat-side button{text-align:right}.chat{display:flex;flex-direction:column;height:620px}.messages{flex:1;overflow:auto;padding:15px 0;display:flex;flex-direction:column;gap:14px}.bubble{max-width:85%;padding:15px 19px;border-radius:15px;background:var(--bg);white-space:pre-wrap;line-height:1.9}.bubble.user{align-self:flex-start;background:var(--soft)}.bubble.assistant{align-self:flex-end;border:1px solid var(--line)}.chat-input{display:flex;gap:10px;margin-top:15px}.chat-input textarea{min-height:58px;max-height:100px}.timeline{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.phase{border-top:3px solid var(--purple)}.phase:nth-child(2){border-color:var(--green)}.phase:nth-child(3){border-color:#bc85da}.action{border:1px solid var(--line);padding:16px;border-radius:12px;margin-top:16px}.action p{font-size:12px;color:var(--muted);margin:10px 0}.login{display:grid;grid-template-columns:1fr 1fr;min-height:100vh}.login-art{background:radial-gradient(ellipse at 20% 80%,#24745d,transparent 55%),linear-gradient(150deg,#241d34,#4c2c68);display:flex;flex-direction:column;justify-content:center;padding:80px;color:white;position:relative;overflow:hidden}.login-art img{width:110px;margin-bottom:35px;filter:drop-shadow(0 0 35px #ce65bb80)}.login-art h1{font-size:45px;line-height:1.7}.login-art p{color:#cfc5df;margin-top:24px;max-width:420px}.login-form{display:flex;align-items:center;justify-content:center;padding:40px}.login-form form{width:370px}.login-form h2{font-size:27px;margin-bottom:10px}.login-form p{margin-bottom:30px;color:var(--muted)}.login-form .primary{width:100%;margin-top:10px}.login-error{color:#c44560;margin-top:14px}dialog{width:min(820px,94vw);max-height:90vh;overflow:auto;border:1px solid var(--line);border-radius:21px;padding:30px;background:var(--surface);color:var(--text);box-shadow:0 40px 90px #0004}dialog::backdrop{background:#12132c88;backdrop-filter:blur(5px)}dialog .heading{margin:0 0 22px}.report-page{background:#fff;color:#26303c;padding:45px;margin:0 auto 25px;max-width:850px;box-shadow:var(--shadow);border-top:5px solid #70309c;position:relative}.report-page:after{content:'';display:block;height:3px;background:linear-gradient(90deg,#1c9d77,#70309c);margin-top:30px}.report-brand{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px}.report-brand img{width:62px;height:62px;object-fit:contain}.report-page h1{margin-bottom:12px}.report-page h2{margin:25px 0 15px}.report-page textarea{background:#fff;color:#26303c}.report-text{white-space:pre-wrap;line-height:2}.toolbar{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:25px}.note{padding:15px 0;color:var(--muted);font-size:12px;line-height:1.9}.search{max-width:280px}.error-list{background:#fff0f2;padding:18px;border-radius:14px;color:#a22b4d;margin-top:20px}#toast{position:fixed;bottom:25px;left:25px;padding:14px 22px;background:#26303d;color:white;border-radius:12px;z-index:100;opacity:0;pointer-events:none;transition:.2s;max-width:450px}#toast.visible{opacity:1}.success{color:var(--green)}.loading{padding:100px;text-align:center;color:var(--muted)}
@media(max-width:1100px){.shell{grid-template-columns:210px 1fr}.main{padding:25px}.metrics{grid-template-columns:repeat(2,1fr)}.cards{grid-template-columns:repeat(2,1fr)}.grid{grid-template-columns:1fr}.timeline{grid-template-columns:1fr}.sidebar{padding:25px 14px}.hero-art{display:none}}
@media(max-width:760px){.shell{display:block}.sidebar{position:relative;height:auto;padding:15px}.sidebar .nav{display:flex;overflow:auto}.sidebar .nav button{white-space:nowrap}.side-note{display:none}.sidebar .brand{display:none}.main{padding:18px}.heading{align-items:flex-start;flex-direction:column}.topbar{flex-wrap:wrap}.topbar-right{display:none}.cards,.form-grid,.modules{grid-template-columns:1fr}.chat-layout{grid-template-columns:1fr}.chat-side{display:flex;overflow:auto}.login{grid-template-columns:1fr}.login-art{display:none}.report-page{padding:22px}.hero{padding:25px}.metrics{gap:10px}.metric{padding:17px}h1{font-size:24px}}
@media print{body{background:white}.sidebar,.topbar,.heading,.toolbar,#toast,dialog{display:none!important}.shell{display:block}.main{padding:0}.report-page{box-shadow:none;margin:0;padding:15mm;max-width:none;break-after:page}.report-page:last-child{break-after:auto}.report-page textarea{border:0;resize:none}.report-page table{font-size:10px}.report-page.onepage{font-size:11px;min-height:240mm}.report-page.onepage h2{font-size:14px;margin:12px 0}.report-page.onepage p{line-height:1.6}.report-page.onepage .report-brand{margin-bottom:15px}@page{size:A4;margin:10mm}}
.login-form{min-width:0}.login-form form{max-width:100%}@media(max-width:760px){.login-form{padding:26px}.login-form form{width:100%}.topbar .row{flex-wrap:wrap}}

/* Report stationery; the approved application theme is unchanged. */
.report-page{background:#fff url('/assets/report-paper.png') center top/100% 100% no-repeat;border-top:0;padding:55px 75px 120px;min-height:1000px;print-color-adjust:exact;-webkit-print-color-adjust:exact}.report-page:after{display:none}.report-page h1,.report-page h2{color:#552b80}.report-page th{background:#552b80;color:#fff}.report-page tr:nth-child(even){background:#f0f7f4}.report-page td{padding:10px}.report-page .report-brand{border-bottom:1px solid #39b991;padding-bottom:12px}.report-page .report-brand small{color:#552b80}
@media(max-width:760px){.report-page{padding:30px 30px 95px;min-height:700px}}
@media print{.report-page{padding:15mm 18mm 35mm;min-height:277mm;background-size:100% 100%}.report-page.onepage{min-height:277mm}}

.person-select-search{margin-bottom:8px}.report-page{padding-bottom:60px}.report-page.report-cover{background:#211a35 url('/assets/report-cover-v8.jpg') center/100% 100% no-repeat;color:#fff;min-height:1000px;padding-top:120px}.report-cover h1{color:#fff;font-size:44px;margin-top:90px}.report-cover h2,.report-cover small{color:#d6c7e6}.report-cover .report-brand{border-color:#806092}.report-cover .note{color:#d6c7e6}
@media print{.report-page{padding-bottom:18mm}.report-page.report-cover{min-height:277mm;padding-top:25mm}}

.report-figure{display:block;width:100%;background:#fff;margin:15px auto;color:#26303c}.level-figure{max-width:360px}.report-model-map{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:24px}.report-model-map section{border:1px solid #e9e2f0;border-radius:12px;padding:18px;background:#f7f4fa}.report-model-map section:nth-child(even){background:#eff8f4}.report-model-map p{font-size:12px}.report-model-map small{color:#6f7382}

.report-cover{background-color:#fbfcfa;color:#42245c}.report-cover h1,.report-cover h2,.report-cover .report-brand,.report-cover small,.report-cover .note{color:#42245c}

.report-page.report-cover{color:#42245c}.report-page.report-cover h1,.report-page.report-cover h2,.report-page.report-cover .note,.report-page.report-cover small{color:#42245c}
/* Metis report v8.6: document styling remains separate from approved app UI. */
.report-page.report-cover{background-color:#faf8f4;min-height:1000px;padding:45px 65px 60px}.report-cover h1{font-size:36px;line-height:1.6;margin-top:70px;max-width:600px}.report-cover .report-brand{border:0;margin-top:35px}.report-cover .report-brand img{width:110px;height:65px}.blessing{text-align:center;color:#552b80;font-size:14px}.cover-caption{font-size:13px;color:#54776a!important;margin-top:30px}.report-page .report-brand img{object-fit:contain}.level-layout{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:12px}.level-key p{display:flex;align-items:center;gap:9px;padding:6px 0;font-size:12px}.level-key i{font-style:normal;border-radius:50%;width:23px;height:23px;color:white;text-align:center;flex-shrink:0}.level-key span{flex:1}.score-legend{display:flex;gap:10px;flex-wrap:wrap;padding:15px 0;font-size:11px}.score-legend span{display:flex;align-items:center;gap:6px}.score-legend i{width:12px;height:12px;border-radius:4px}.score-badge{border:1px solid var(--score-color);border-right:6px solid var(--score-color);border-radius:16px;padding:14px 24px;display:flex;align-items:center;gap:20px;margin:22px 0;background:#fff}.score-badge strong{font-size:32px;color:var(--score-color)}.score-badge small{font-size:13px;color:#677}.score-badge span{font-size:12px}.competency-sheet{break-before:page;margin-top:45px}.competency-sheet:first-child{break-before:auto;margin-top:0}.competency-sheet h3{color:#552b80;margin:25px 0 12px}.report-figure{max-width:100%;height:auto}.report-page table{table-layout:auto;overflow-wrap:anywhere}.report-page tr{break-inside:avoid}.report-page h2,.report-page h3{break-after:avoid}
@media print{.report-page.report-cover{min-height:277mm;padding:15mm 18mm}.report-cover h1{margin-top:22mm}.level-layout{grid-template-columns:1fr 1fr}.score-badge{break-inside:avoid}.competency-sheet{break-before:page}}
@media(max-width:760px){.level-layout{grid-template-columns:1fr}.score-badge{flex-wrap:wrap}.report-page.report-cover{padding:30px;min-height:800px}}
.score-scale-illustration{display:flex;gap:10px;align-items:stretch;margin:22px 0;break-inside:avoid}.score-scale-card{flex:1;text-align:center;background:#f7f8fa;border-radius:14px;padding:15px 6px;min-width:0}.score-scale-card svg{width:75px;max-width:100%;display:block;margin:auto}.score-scale-card b{font-size:19px;display:block;margin:12px 0;color:#26323a}.score-scale-card strong{display:block;border-radius:8px;background:var(--level);color:white;font-size:11px;padding:8px 4px}.report-figure-art{width:100%;height:auto;margin:18px 0}

.score-badge strong{color:#18202B;background:var(--score-color);border-radius:8px;padding:3px 12px}.level-key i{color:#18202B}.score-scale-card strong{color:#18202B}

.report-progress{padding:20px;border-radius:16px;background:#f4f1fa}.report-progress progress{width:100%;height:18px;accent-color:#7030a0;margin:15px 0}.danger{color:#b62342!important}#report-text-editor textarea{display:block;width:100%;margin:10px 0 24px;min-height:110px;line-height:1.9}#report-text-editor label{font-weight:700}

.report-people-list{max-height:260px;overflow:auto}.report-people-list [hidden]{display:none}.report-progress{margin-top:12px}

.level-face{width:58px;height:58px;object-fit:contain}.result-faces{display:flex;flex-wrap:wrap;gap:18px;margin:20px 0}.result-faces>div{display:flex;flex-direction:column;align-items:center;gap:6px;flex:1;min-width:140px}.result-faces span{font-size:12px}

.dimension-section{margin:18px 0;padding:16px;border:1px solid #dce6e2;border-right:4px solid #39b991;border-radius:12px;break-inside:avoid}.dimension-section h3{margin-top:0}.dimension-score{font-weight:700;color:#552b80}

.cinnagen-definitions td{white-space:pre-line;line-height:1.85;vertical-align:middle}.cinnagen-definitions td:first-child{width:24%;font-weight:700}.cinnagen-findings{margin-top:24px}@media print{.cinnagen-findings.separate-page{break-before:page}}

.cinnagen-development-image img{width:100%;height:auto;object-fit:contain}.cinnagen-development-image{margin:24px 0}@media print{.cinnagen-definitions{break-inside:avoid}.cinnagen-development-images,.cinnagen-development-image{break-before:page;break-inside:avoid}}

.cinnagen-report .report-text{text-align:justify;text-justify:inter-word}.cinnagen-report th,.cinnagen-report td{text-align:center;vertical-align:middle}.cinnagen-report:not(.report-cover) h1,.cinnagen-report:not(.report-cover) h2,.cinnagen-report:not(.report-cover) h3{text-align:right}.cinnagen-report .report-figure,.cinnagen-report .report-figure-art,.cinnagen-report .cinnagen-development-image img{display:block;margin-left:auto;margin-right:auto}

.cinnagen-report .cinnagen-definitions td:last-child{text-align:right}.cinnagen-report .competency-level{text-align:right;margin:4px 0 8px}
