:root{
  --bg:#111214;
  --bg2:#151619;
  --panel:#1a1c20;
  --panel2:#202228;
  --panel3:#252830;
  --line:#2d3037;
  --line2:#3a3d46;
  --text:#f0f1f3;
  --muted:#9499a3;
  --soft:#c8ccd3;
  --accent:#7f83ff;
  --accent2:#6d72e9;
  --good:#6fd49a;
  --warn:#e5b16b;
  --danger:#e5757e;
  --z-dropdown:300;
  --z-sidebar:400;
  --z-modal:1000;
  --z-toast:1100;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
body{overflow-x:hidden}
button,input,textarea{font:inherit}
button{color:inherit}
.is-hidden{display:none!important}

/* LOGIN — intentionally plain, no marketing content */
.ccc-login-page{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:24px;
  background:
    radial-gradient(circle at 50% 0%,#1a1c20 0,transparent 34%),
    linear-gradient(180deg,#121315,#0f1012);
}
.ccc-login-card{
  width:min(390px,100%);
  background:#191b1f;
  border:1px solid var(--line);
  border-radius:18px;
  padding:26px;
  box-shadow:0 24px 70px rgba(0,0,0,.35);
  animation:cccLoginIn .28s ease both;
}
@keyframes cccLoginIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.ccc-wordmark{
  font-size:16px;
  font-weight:700;
  letter-spacing:-.02em;
  margin-bottom:22px;
}
.ccc-tabs{
  position:relative;
  display:grid;
  grid-template-columns:1fr 1fr;
  padding:4px;
  height:44px;
  background:#141518;
  border:1px solid var(--line);
  border-radius:12px;
  margin-bottom:18px;
}
.ccc-tabs button{
  z-index:2;
  border:0;
  background:transparent;
  color:var(--muted);
  cursor:pointer;
  border-radius:9px;
  transition:.18s;
}
.ccc-tabs button.is-active{color:var(--text)}
.ccc-tab-glider{
  position:absolute;
  left:4px;
  top:4px;
  width:calc(50% - 4px);
  height:34px;
  border-radius:9px;
  background:#24272d;
  transition:.22s cubic-bezier(.2,.8,.2,1);
  z-index:1;
}
.ccc-tabs[data-active="invite"] .ccc-tab-glider{transform:translateX(100%)}
.ccc-auth-form{display:grid;gap:11px}
.ccc-auth-form label,.ccc-stack>label{font-size:12px;color:var(--soft)}
input,textarea{
  width:100%;
  border:1px solid var(--line);
  background:#141518;
  color:var(--text);
  border-radius:11px;
  padding:12px 13px;
  outline:none;
  transition:.18s;
}
input:focus,textarea:focus{
  border-color:#4c5083;
  box-shadow:0 0 0 3px rgba(127,131,255,.08);
}
textarea{min-height:100px;resize:vertical}
.ccc-btn{
  border:0;
  border-radius:11px;
  padding:11px 13px;
  cursor:pointer;
  transition:.16s;
}
.ccc-btn:hover{transform:translateY(-1px)}
.ccc-btn-primary{
  background:#777cf2;
  color:white;
  font-weight:700;
}
.ccc-btn-primary:hover{background:#8589fa}
.ccc-btn-soft{
  background:#24262b;
  border:1px solid var(--line);
}
.ccc-btn-ghost{
  background:transparent;
  color:var(--muted);
}
.ccc-error{
  color:#e98b93;
  font-size:12px;
  min-height:18px;
  margin-top:10px;
}

/* APP */
.ccc-app{
  display:grid;
  grid-template-columns:240px 1fr;
  min-height:100vh;
  background:var(--bg);
}
.ccc-sidebar{
  position:sticky;
  top:0;
  z-index:var(--z-sidebar);
  height:100vh;
  padding:20px 16px;
  background:#151619;
  border-right:1px solid var(--line);
  display:flex;
  flex-direction:column;
  overflow:visible;
}
.ccc-brand{
  font-size:14px;
  font-weight:700;
  padding:6px 8px 20px;
}
#cccNav{display:grid;gap:5px}
.ccc-nav-btn{
  border:0;
  background:transparent;
  color:#a3a7b0;
  text-align:left;
  padding:11px 12px;
  border-radius:10px;
  cursor:pointer;
  transition:.17s;
}
.ccc-nav-btn:hover,.ccc-nav-btn.is-active{
  color:white;
  background:#202228;
}
.ccc-sidebar-bottom{
  margin-top:auto;
  display:grid;
  gap:8px;
}
.ccc-role{
  font-size:11px;
  color:var(--muted);
  padding:10px 11px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#191b1f;
}
.ccc-main{
  min-width:0;
  padding:28px 34px 60px;
}
.ccc-topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:22px;
}
.ccc-topbar h1{
  margin:0;
  font-size:26px;
  letter-spacing:-.03em;
}
.ccc-top-actions{display:flex;gap:8px}
.ccc-view{display:none;animation:cccViewIn .22s ease}
.ccc-view.is-active{display:block}
@keyframes cccViewIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}

.ccc-hero,
.ccc-panel,
.ccc-metric,
.ccc-filterbar,
.ccc-school-card,
.ccc-month,
.ccc-modal-card{
  background:var(--panel);
  border:1px solid var(--line);
  box-shadow:0 18px 45px rgba(0,0,0,.16);
}
.ccc-hero{
  border-radius:18px;
  padding:22px 24px;
  display:flex;
  justify-content:space-between;
  align-items:center;
}
.ccc-hero h1{
  margin:0 0 6px;
  font-size:30px;
  letter-spacing:-.04em;
}
.ccc-hero p{
  margin:0;
  color:var(--muted);
  font-size:13px;
}
.ccc-hero-count{
  min-width:100px;
  height:72px;
  padding:12px 16px;
  border-radius:13px;
  background:#202228;
  border:1px solid var(--line);
  display:grid;
  align-content:center;
}
.ccc-hero-count strong{font-size:24px}
.ccc-hero-count span{font-size:10px;color:var(--muted)}

.ccc-metric-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:12px;
  margin-top:12px;
}
.ccc-metric{
  border-radius:14px;
  padding:16px;
  display:grid;
  gap:5px;
}
.ccc-metric span{font-size:11px;color:var(--muted)}
.ccc-metric strong{font-size:25px}
.ccc-metric small{font-size:11px;color:var(--soft)}

.ccc-two-col{
  display:grid;
  grid-template-columns:1.2fr 1fr;
  gap:12px;
  margin-top:12px;
}
.ccc-panel{
  border-radius:16px;
  padding:16px;
  margin-top:12px;
  overflow:visible;
}
.ccc-two-col .ccc-panel{margin-top:0}
.ccc-panel-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}
.ccc-panel-head h3{
  margin:0;
  font-size:14px;
}
.ccc-panel-head span{
  font-size:10px;
  color:var(--muted);
  border:1px solid var(--line);
  border-radius:999px;
  padding:5px 8px;
}

.ccc-task-row,.ccc-deadline-row{
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:10px;
  align-items:center;
  padding:11px 0;
  border-top:1px solid var(--line);
}
.ccc-task-row:first-child,.ccc-deadline-row:first-child{border-top:0}
.ccc-task-row>div,.ccc-deadline-row>div{display:grid;gap:2px}
.ccc-task-row small,.ccc-deadline-row small{font-size:10px;color:var(--muted)}
.ccc-task-row.is-done{opacity:.45}
.ccc-task-row.is-done strong{text-decoration:line-through}
.ccc-custom-check{
  width:23px;
  height:23px;
  border-radius:7px;
  border:1px solid var(--line2);
  background:#141518;
  cursor:pointer;
  display:grid;
  place-items:center;
}
.ccc-custom-check.is-checked{
  background:var(--accent);
  color:white;
  border-color:transparent;
}
.ccc-priority,.ccc-status{
  font-size:10px;
  border:1px solid var(--line);
  border-radius:999px;
  padding:5px 7px;
  color:var(--soft);
}
.ccc-deadline-row{grid-template-columns:1fr auto}
.ccc-deadline-row>div:last-child{text-align:right}

.ccc-pipeline{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  gap:9px;
}
.ccc-pipe{
  background:#181a1e;
  border:1px solid var(--line);
  border-radius:12px;
  padding:11px;
  display:grid;
  gap:6px;
}
.ccc-pipe span{font-size:10px;color:var(--muted)}
.ccc-pipe strong{font-size:21px}
.ccc-bar{
  height:4px;
  border-radius:99px;
  overflow:hidden;
  background:#111214;
}
.ccc-bar i{
  display:block;
  height:100%;
  background:var(--accent);
}

.ccc-filterbar{
  position:relative;
  z-index:50;
  border-radius:14px;
  padding:10px;
  display:grid;
  grid-template-columns:1fr 180px 180px;
  gap:8px;
  overflow:visible;
}
.ccc-select{
  position:relative;
  z-index:1;
}
.ccc-select.is-open{z-index:var(--z-dropdown)}
.ccc-select-trigger{
  width:100%;
  height:42px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#141518;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 12px;
  cursor:pointer;
}
.ccc-select-trigger i{
  width:7px;
  height:7px;
  border-right:1.5px solid #8f949e;
  border-bottom:1.5px solid #8f949e;
  transform:rotate(45deg) translateY(-1px);
  transition:.18s;
}
.ccc-select.is-open .ccc-select-trigger i{
  transform:rotate(225deg);
}
.ccc-select-menu{
  position:absolute;
  left:0;
  right:0;
  top:calc(100% + 6px);
  z-index:var(--z-dropdown);
  background:#1d1f24;
  border:1px solid var(--line2);
  border-radius:11px;
  padding:6px;
  box-shadow:0 18px 45px rgba(0,0,0,.4);
  opacity:0;
  visibility:hidden;
  transform:translateY(-4px);
  transition:.16s;
}
.ccc-select.is-open .ccc-select-menu{
  opacity:1;
  visibility:visible;
  transform:none;
}
.ccc-select-menu button{
  width:100%;
  text-align:left;
  border:0;
  background:transparent;
  color:var(--soft);
  border-radius:8px;
  padding:9px 10px;
  cursor:pointer;
}
.ccc-select-menu button:hover{
  background:#282b31;
  color:white;
}

.ccc-school-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
  margin-top:12px;
}
.ccc-school-card{
  border-radius:15px;
  padding:15px;
  transition:.18s;
}
.ccc-school-card:hover{
  transform:translateY(-2px);
  border-color:var(--line2);
}
.ccc-school-top,.ccc-school-meta,.ccc-school-foot{
  display:flex;
  justify-content:space-between;
  gap:8px;
  align-items:center;
}
.ccc-tier,.ccc-system{
  font-size:10px;
  border:1px solid var(--line);
  border-radius:999px;
  padding:5px 7px;
  color:var(--muted);
}
.ccc-school-card h3{
  margin:15px 0 11px;
  font-size:16px;
}
.ccc-school-meta{
  font-size:10px;
  color:var(--muted);
  margin-top:6px;
}
.ccc-next-action{
  margin:13px 0;
  padding:9px 10px;
  min-height:42px;
  border-radius:10px;
  background:#17191d;
  color:#d1d4da;
  font-size:11px;
}

.ccc-calendar-grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:10px;
}
.ccc-month{
  border-radius:13px;
  padding:12px;
}
.ccc-month h3{
  margin:0 0 10px;
  font-size:13px;
}
.ccc-cal-item{
  display:grid;
  grid-template-columns:26px 1fr;
  gap:7px;
  padding:8px 0;
  border-top:1px solid var(--line);
}
.ccc-cal-item>strong{
  width:25px;
  height:25px;
  border-radius:7px;
  display:grid;
  place-items:center;
  background:#24262c;
  font-size:10px;
}
.ccc-cal-item span{font-size:10px}
.ccc-cal-item small{display:block;color:var(--muted);margin-top:2px}

.ccc-check-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.ccc-check{
  display:flex;
  align-items:center;
  gap:8px;
  background:#151619;
  border:1px solid var(--line);
  border-radius:10px;
  padding:9px 10px;
  cursor:pointer;
  font-size:11px;
  color:var(--soft);
}
.ccc-check input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.ccc-check span{
  width:17px;
  height:17px;
  border-radius:5px;
  border:1px solid var(--line2);
  display:grid;
  place-items:center;
}
.ccc-check input:checked+span{
  background:var(--accent);
  border-color:transparent;
}
.ccc-check input:checked+span:after{
  content:"✓";
  font-size:10px;
  color:white;
}

.ccc-invite-code{
  margin-top:12px;
  padding:12px;
  border-radius:11px;
  background:#17191d;
  border:1px solid var(--line);
  display:grid;
  gap:5px;
}
.ccc-invite-code strong{word-break:break-all}
.ccc-invite-code small{color:var(--muted)}

.ccc-modal{
  position:fixed;
  inset:0;
  z-index:var(--z-modal);
  display:grid;
  place-items:center;
  padding:20px;
  opacity:0;
  visibility:hidden;
  transition:.18s;
}
.ccc-modal.is-open{
  opacity:1;
  visibility:visible;
}
.ccc-modal-backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.68);
}
.ccc-modal-card{
  position:relative;
  z-index:1;
  width:min(680px,100%);
  max-height:90vh;
  overflow:auto;
  border-radius:16px;
  padding:18px;
}
.ccc-modal-x{
  position:absolute;
  top:11px;
  right:11px;
  width:32px;
  height:32px;
  border:1px solid var(--line);
  background:#1b1d21;
  border-radius:9px;
  cursor:pointer;
  font-size:20px;
}
.ccc-form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
}
.ccc-form-grid label,.ccc-modal-card label{
  display:grid;
  gap:6px;
  font-size:11px;
  color:var(--soft);
}
.ccc-modal-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:14px;
}
.ccc-toast{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:var(--z-toast);
  background:#212329;
  border:1px solid var(--line2);
  border-radius:10px;
  padding:11px 13px;
  opacity:0;
  transform:translateY(10px);
  transition:.18s;
}
.ccc-toast.is-show{
  opacity:1;
  transform:none;
}
.ccc-empty{
  color:var(--muted);
  font-size:11px;
  padding:12px 0;
}

@media(max-width:1100px){
  .ccc-school-grid{grid-template-columns:repeat(2,1fr)}
  .ccc-metric-grid{grid-template-columns:repeat(2,1fr)}
  .ccc-calendar-grid{grid-template-columns:repeat(2,1fr)}
  .ccc-pipeline{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:760px){
  .ccc-app{display:block}
  .ccc-sidebar{
    position:relative;
    height:auto;
    border-right:0;
    border-bottom:1px solid var(--line);
  }
  #cccNav{grid-template-columns:repeat(3,1fr)}
  .ccc-sidebar-bottom{margin-top:14px}
  .ccc-main{padding:20px 14px 50px}
  .ccc-two-col,.ccc-school-grid,.ccc-filterbar,.ccc-form-grid{grid-template-columns:1fr}
  .ccc-calendar-grid{grid-template-columns:1fr}
  .ccc-topbar{align-items:flex-start}
  .ccc-hero-count{display:none}
}
