:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#20334e;background:#f4f7fb}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}.hidden{display:none!important}.login{min-height:100vh;display:grid;place-items:center;background:radial-gradient(ellipse at 80% 10%,#203c67,#0a172b 68%);padding:28px}.login-card{background:#fff;padding:46px;width:min(460px,100%);border-radius:18px;box-shadow:0 25px 75px #0004}.mark{display:grid;place-items:center;width:43px;height:43px;background:#132e53;color:#fff;font-weight:800;letter-spacing:-.1em;border-radius:12px}.login-card .mark{width:72px;height:72px;font-size:27px;border-radius:19px}.login h1{margin:15px 0 10px;font-size:35px}.login p{line-height:1.6;color:#687992}.eyebrow,.side-label{font-size:10px;color:#8ba0bb;letter-spacing:.17em;font-weight:800}.button{border:0;border-radius:9px;padding:11px 16px;display:inline-block;text-decoration:none;font-size:12px;font-weight:700;white-space:nowrap}.button.blue{background:#2857a7;color:#fff}.button.secondary{background:#edf2f8;color:#29415e}.button.full{display:block;text-align:center;padding:15px}.muted{color:#7b8ba3}.small{font-size:12px}.error{background:#fff2f1;color:#ab3530;padding:11px;border-radius:9px;margin-top:12px}.app{display:flex;min-height:100vh}.sidebar{width:258px;flex-shrink:0;background:#10223d;color:#f6faff;display:flex;flex-direction:column;padding:28px 16px}.brand{display:flex;align-items:center;gap:12px;padding:4px 12px 42px}.brand strong{display:block;letter-spacing:.15em;font-size:14px}.brand small{font-size:10px;color:#9aacbe}.side-label{padding:0 15px 16px}.sidebar nav{display:grid;gap:6px}.sidebar nav button{border:0;background:transparent;color:#acbdd3;text-align:left;border-radius:9px;padding:14px;font-size:12px;font-weight:650}.sidebar nav button.active,.sidebar nav button:hover{background:#29466c;color:#fff}.side-footer{margin-top:auto;display:grid;gap:9px;border-top:1px solid #314361;padding:22px 10px;color:#9cafc8}.main{min-width:0;flex:1}.topbar{height:104px;background:#fff;display:flex;justify-content:space-between;align-items:center;padding:0 34px;border-bottom:1px solid #e5ebf2;gap:20px}.topbar h2{margin:7px 0;font-size:23px}.right{display:flex;gap:14px;align-items:center}.dot{height:7px;width:7px;border-radius:100%;background:#25a474}.right>span{font-size:11px;color:#7388a1}.who{display:flex;flex-direction:column;border-left:1px solid #e2e8f0;padding-left:16px;gap:4px}.who strong{font-size:11px}.who small{font-size:10px;color:#8192aa}.content{padding:30px 32px}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.metric{background:#fff;border:1px solid #e4eaf2;border-radius:12px;padding:24px}.metric span{display:block;color:#8292aa;font-size:11px;letter-spacing:.03em;margin-bottom:10px}.metric strong{font-size:27px;color:#1d3454}.panel{background:#fff;border:1px solid #e4eaf2;border-radius:13px;margin-bottom:22px;overflow:hidden}.panel-h{padding:21px 24px;display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #edf1f6}.panel h3{margin:0;font-size:15px;color:#2a415f}.filters{display:flex;gap:9px;flex-wrap:wrap}.filters input,.filters select,.form input,.form select{padding:11px 13px;border:1px solid #dce4ef;border-radius:8px;background:white;color:#2c415a;min-width:145px}.table-wrap{overflow:auto;max-width:100%}table{border-collapse:collapse;width:100%;white-space:nowrap}th{background:#edf2f8;color:#647892;text-align:left;letter-spacing:.03em;font-size:10px;padding:14px 18px}td{padding:15px 18px;border-top:1px solid #edf1f6;font-size:12px}tr:hover td{background:#fafcff}.pill{display:inline-block;background:#e9f1ff;color:#2d66a7;padding:6px 10px;border-radius:15px;font-size:10px;font-weight:700}.pill.Finish,.pill.Approved{background:#def5e8;color:#24764c}.pill.Hold{background:#fff1d8;color:#96671d}.pill.Cancel{background:#fbe7e7;color:#ab4343}.empty{padding:48px;color:#8a9ab2;text-align:center}.form{display:grid;grid-template-columns:repeat(2,minmax(160px,1fr));gap:17px;padding:23px}.form label{display:grid;gap:7px;font-size:11px;font-weight:650;color:#52637a}.form button{align-self:end}.notice{margin:16px 24px;padding:13px 16px;background:#eef5fe;border-radius:8px;color:#4b6e9b;font-size:12px}.foot{padding:0 33px 28px;color:#a0aec0;font-size:10px}.toast{position:fixed;bottom:24px;right:28px;background:#172b48;color:white;padding:14px 20px;border-radius:10px;box-shadow:0 8px 24px #1b2b4250;font-size:12px}.col-hint{color:#8796aa;font-size:10px}@media(max-width:1000px){.cards{grid-template-columns:repeat(2,1fr)}.sidebar{width:210px}.right>span,.right>.dot{display:none}.content{padding:20px}.topbar{padding:0 20px}}@media(max-width:650px){.app{display:block}.sidebar{width:100%;padding:12px}.brand{padding:8px}.sidebar nav{display:flex;overflow-x:auto}.sidebar nav button{white-space:nowrap}.side-label,.side-footer{display:none}.topbar{height:auto;padding:20px;flex-wrap:wrap}.right{flex-wrap:wrap}.cards{grid-template-columns:1fr 1fr}.form{grid-template-columns:1fr}.content{padding:12px}}

/* CC v.01 — Marrakesh AI Development | Modern Enterprise light theme */
:root{color:#202a3e;background:#f7f8fc}
.app{background:#f7f8fc;gap:0}
.sidebar{background:#fff;color:#25314b;border-right:1px solid #e8eaf1;width:244px;padding:27px 15px;box-shadow:2px 0 14px #26355c07}
.brand{padding:8px 12px 37px}.brand strong{color:#202941;font-size:15px;letter-spacing:.12em}.brand small{color:#8893a7;font-size:11px}.mark{background:linear-gradient(145deg,#252d58,#7957e8);border-radius:13px;letter-spacing:-.08em}
.side-label{color:#a4acc0;letter-spacing:.19em;padding-bottom:15px}
.sidebar nav{gap:5px}.sidebar nav button{color:#66718a;font-weight:620;font-size:13px;padding:14px 13px;transition:background .18s,color .18s}.sidebar nav button.active{color:#5e42cf;background:#f0edff;box-shadow:inset 3px 0 #7358df}.sidebar nav button:hover{background:#f4f1ff;color:#6245cb}
.side-footer{border-top:1px solid #eceef5;color:#8a91a4;line-height:1.45;padding:19px 10px;font-size:10px}
.main{background:#f7f8fc}.topbar{height:90px;background:#fff;border-bottom:1px solid #edf0f5;padding:0 34px}.topbar h2{font-size:24px;color:#1d2941;letter-spacing:-.025em}.eyebrow{color:#8f9bb2}.right{gap:12px}.who{border-color:#e8e9f1}.right>span{color:#71819b}
.button{border-radius:10px;font-weight:700;transition:filter .15s,transform .15s}.button:hover{filter:brightness(.97)}.button.blue{background:#6953df}.button.secondary{background:#f1f3f9;color:#455276}
.content{padding:30px 34px 20px}.cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-bottom:22px}.metric{border:1px solid #ececf4;border-radius:16px;box-shadow:0 5px 22px #31395809;padding:23px 23px 22px;position:relative;overflow:hidden}.metric:before{content:'';position:absolute;left:23px;top:0;width:42px;height:3px;border-radius:5px;background:#8062ed}.metric:nth-child(2):before{background:#2eb69d}.metric:nth-child(3):before{background:#f0a94a}.metric:nth-child(4):before{background:#638acb}.metric span{font-size:12px;color:#7a859b;margin:3px 0 13px}.metric strong{font-size:26px;color:#212a40;letter-spacing:-.045em}
.panel{border-color:#ececf4;border-radius:16px;box-shadow:0 5px 22px #31395808}.panel-h{padding:19px 22px}.panel h3{color:#28324a;font-size:14px}.panel .panel-h + .panel-h{background:#fcfcff}
th{background:#f6f7fb;color:#7c869e;font-size:11px}td{color:#374359}tr:hover td{background:#fafaff}.pill{background:#edeaff;color:#6144ce}.pill.Finish,.pill.Approved{background:#e2f6ea;color:#287d55}.pill.Hold{background:#fff1d9;color:#a36d19}.pill.Cancel{background:#fff0f0;color:#b44e53}
.filters input,.filters select,.form input,.form select{background:#fff;border-color:#e5e8f0;border-radius:10px}.foot{padding:4px 35px 24px;color:#9a9fb0}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);gap:18px;align-items:stretch}.dashboard-grid>.panel{margin:0}.dashboard-grid.secondary-grid{margin-top:20px}.chart-body{padding:22px;min-height:237px}.chart-subtitle{font-size:11px;color:#9099aa;margin-top:5px}.legend{display:flex;gap:15px;flex-wrap:wrap;align-items:center;color:#7f8a9f;font-size:11px}.legend-item{display:flex;gap:7px;align-items:center}.legend-dot{width:9px;height:9px;border-radius:50%;background:var(--item-color)}
.status-viz{display:flex;gap:28px;align-items:center;justify-content:center;flex-wrap:wrap;padding:24px 8px}.donut{width:170px;height:170px;flex:0 0 170px;border-radius:50%;position:relative;background:conic-gradient(#7652e7 0 100%)}.donut-center{position:absolute;inset:26px;display:flex;flex-direction:column;align-items:center;justify-content:center;border-radius:50%;background:#fff}.donut-center strong{font-size:30px;color:#27334d}.donut-center span{font-size:10px;color:#8b94a7}.status-legend{display:grid;gap:13px;min-width:120px}.status-legend>div{display:flex;justify-content:space-between;gap:19px;color:#5c677f;font-size:12px}.status-legend strong{color:#23314b}
.month-chart{height:177px;display:flex;gap:8px;align-items:flex-end;border-bottom:1px solid #e9edf4;padding:9px 0 0}.month-col{flex:1;min-width:0;display:flex;flex-direction:column;height:100%;align-items:center;justify-content:flex-end;gap:8px}.month-bars{width:100%;flex:1;display:flex;align-items:flex-end;justify-content:center;gap:3px}.month-bar{width:min(20px,42%);height:var(--bar-height);border-radius:6px 6px 0 0;background:#7254dc;min-height:3px}.month-bar.secondary{background:#b5d9d5}.month-label{font-size:10px;color:#8792a7}.chart-empty{text-align:center;color:#8995a8;padding:55px 12px;font-size:12px}
.quick-list{padding:6px 22px 17px}.quick-row{display:flex;justify-content:space-between;align-items:center;gap:14px;border-bottom:1px solid #f0f1f7;padding:14px 0;font-size:12px}.quick-row:last-child{border:0}.quick-row span{color:#748098}.quick-row strong{color:#27334b}
@media(max-width:1180px){.dashboard-grid{grid-template-columns:1fr}.sidebar{width:208px}.content{padding:20px}.cards{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){.sidebar{width:100%;padding:12px;border-right:0;border-bottom:1px solid #edf0f6}.brand{padding:8px 8px 12px}.sidebar nav button{font-size:11px}.content{padding:12px}.topbar{height:auto;padding:16px;gap:10px}.topbar h2{font-size:21px}.cards{gap:10px}.metric{padding:17px}.metric strong{font-size:21px}.dashboard-grid{gap:12px}.status-viz{gap:12px}.donut{width:136px;height:136px;flex-basis:136px}.donut-center{inset:21px}.foot{padding:4px 15px 20px}}

/* Official CC v.01 visual identity: K-GROUP brand artwork */
.sidebar-logo{width:48px;height:49px;object-fit:contain;display:block;flex-shrink:0}
.login-logo{display:block;width:100%;max-width:375px;height:auto;margin:0 0 17px;object-fit:contain}
.login-card{width:min(510px,100%)}
@media(max-width:650px){.sidebar-logo{width:39px;height:40px}.login-logo{max-width:100%}}

/* CC v.01 branding update: supplied CC mark, unchanged K-GROUP wordmark */
.login-brand{display:flex;align-items:center;gap:16px;margin-bottom:21px}
.login-brand-icon{display:block;width:84px;height:84px;flex-shrink:0;object-fit:contain}
.login-brand strong{display:block;font-size:29px;font-weight:850;letter-spacing:.085em;color:#132b4b;line-height:1.2}
.login-brand span{display:block;font-size:20px;letter-spacing:.04em;color:#687b94;margin-top:6px}
.sidebar-logo{width:48px;height:48px;object-fit:contain}
@media(max-width:650px){.login-brand-icon{height:64px;width:64px}.login-brand{gap:12px}.login-brand strong{font-size:23px}.login-brand span{font-size:15px}.sidebar-logo{width:39px;height:39px}}

#team-panel {margin-top:18px;min-width:0}
.tw-controls,.tw-metrics,.tw-groups {display:grid;gap:12px;padding:16px 20px}
.tw-controls {grid-template-columns:repeat(auto-fit,minmax(135px,1fr))}
.tw-controls label {display:grid;gap:5px;font-size:.82rem;color:#48516c}
.tw-controls input,.tw-controls select {width:100%;min-width:0}
.tw-metrics {grid-template-columns:repeat(auto-fit,minmax(115px,1fr));margin:0}
.tw-metrics div,.tw-group {padding:14px;border:1px solid #e8e5f3;border-radius:10px;background:#fbfaff}
.tw-metrics dt,.tw-note,.tw-group small {color:#56617b;font-size:.82rem}
.tw-metrics dd {margin:6px 0 0;color:#272a4e;font-weight:750;font-size:1.45rem}
.tw-note {padding:0 20px}
.tw-groups {grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))}
.tw-group h4 {margin:0 0 10px}
.tw-group div {display:grid;grid-template-columns:1fr auto auto;gap:7px;padding:6px 0;align-items:baseline}
.tw-group span,.tw-group small {overflow-wrap:anywhere}
.tw-records {width:100%;overflow-x:auto}
.main,.panel {min-width:0}
:focus-visible {outline:2px solid #6444bb;outline-offset:2px}
@media(max-width:650px){.tw-controls,.tw-metrics,.tw-groups{padding:12px}.tw-controls,.tw-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.sidebar nav .side-label{width:100%}.topbar .right{flex-wrap:wrap}.main{max-width:100%}}
.tw-controls input,.tw-controls select {min-height:36px;padding:6px 9px;border:1px solid #cbd0de;border-radius:7px;background:#fff;color:#27344e;font:inherit}
.tw-controls {background:#fafafd;border-block:1px solid #eeecf5}
.tw-status {display:inline-block;white-space:nowrap;border-radius:12px;padding:3px 9px;background:#f0edff;color:#493782}

.tw-by-pic {padding:0 20px 16px}
.tw-by-pic h4 {margin:16px 0 10px}
.tw-by-pic details {border-bottom:1px solid #e8e5f3}
.tw-by-pic summary {cursor:pointer;padding:12px 4px;color:#353959}
.tw-by-pic summary span {margin-left:12px;color:#56617b;font-size:.85rem}
.tw-records th {white-space:normal;min-width:7em}
