:root{
  --bg:#0b0f19;
  --card:#111a2e;
  --card2:#0f172a;
  --text:#e6e9f2;
  --muted:#a8b3cf;
  --accent:#7dd3fc;
  --ok:#86efac;
  --warn:#fbbf24;
  --err:#fb7185;
  --border:rgba(255,255,255,.12);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --radius:16px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background: radial-gradient(1200px 800px at 20% 0%, rgba(125,211,252,.15), transparent 50%),
              radial-gradient(900px 700px at 100% 20%, rgba(134,239,172,.10), transparent 55%),
              var(--bg);
  color:var(--text);
  font-family:var(--sans);
}

.sr-only{
  position:absolute!important;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(11,15,25,.75);
  border-bottom:1px solid var(--border);
  padding:14px 18px;
  display:flex; align-items:center; justify-content:space-between;
  gap:14px;
}

.brand{display:flex; align-items:center; gap:12px}
.logo{
  width:42px;height:42px;border-radius:14px;
  display:grid;place-items:center;
  background: rgba(125,211,252,.12);
  border:1px solid var(--border);
  box-shadow: var(--shadow);
}
.title{font-weight:800; letter-spacing:.2px}
.subtitle{color:var(--muted); font-size:13px; margin-top:2px}

.actions{display:flex; gap:10px; flex-wrap:wrap}
.btn{
  border:1px solid var(--border);
  background: rgba(125,211,252,.16);
  color:var(--text);
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
  font-weight:700;
}
.btn:hover{filter:brightness(1.08)}
.btn:active{transform:translateY(1px)}
.btn-ghost{background: rgba(255,255,255,.04)}

.container{max-width:1100px; margin:0 auto; padding:18px}
.card{
  background: linear-gradient(180deg, rgba(17,26,46,.95), rgba(15,23,42,.90));
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow: var(--shadow);
}

.meta{padding:16px}
.meta-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:10px;
}
@media (max-width:840px){
  .meta-grid{grid-template-columns: 1fr}
  .topbar{position:static}
}
.pill{
  padding:12px 12px;
  background: rgba(255,255,255,.04);
  border:1px solid var(--border);
  border-radius:14px;
  color:var(--muted);
  line-height:1.35;
}
.pill strong{color:var(--text)}
.dot{width:10px;height:10px;border-radius:999px;display:inline-block;margin-right:8px;vertical-align:middle}
.dot-ok{background:var(--ok)}
.dot-warn{background:var(--warn)}
.dot-info{background:var(--accent)}

.toggles{
  margin-top:12px;
  display:flex; gap:14px; flex-wrap:wrap;
}
.toggle{
  display:flex; gap:10px; align-items:center;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  color:var(--muted);
}
.toggle input{transform:scale(1.1)}

.views{margin-top:16px; padding:12px 12px}
.viewbar{display:flex; gap:10px; flex-wrap:wrap}
.vbtn{
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  color:var(--muted);
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
  font-weight:900;
}
.vbtn[aria-selected="true"]{
  background: rgba(125,211,252,.18);
  color:var(--text);
}
.viewhint{margin-top:10px; font-size:13px}

.tools{margin-top:16px; padding:16px}
.tools-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:12px;
}
@media (max-width:900px){
  .tools-grid{grid-template-columns: 1fr}
}
.tool{
  padding:14px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
}
.tool-title{font-weight:900; font-size:16px}
.tool-sub{color:var(--muted); font-size:13px; margin-top:4px; line-height:1.35}
.tool-section{margin-top:12px}
.tool-kicker{
  font-weight:900;
  font-size:13px;
  color: var(--text);
  opacity:.9;
  margin-bottom:8px;
}
.row{
  margin-top:12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}
.select{
  appearance:none;
  background: rgba(255,255,255,.04);
  border:1px solid var(--border);
  color:var(--text);
  padding:10px 12px;
  border-radius:12px;
  font-weight:800;
  min-width:140px;
}
.hint{margin-top:10px; font-size:13px}

.week-plan{
  margin-top:12px;
  border:1px solid var(--border);
  border-radius:14px;
  overflow:hidden;
}
.week-plan table{
  width:100%;
  border-collapse:collapse;
  font-size:13px;
}
.week-plan th, .week-plan td{
  border-bottom:1px solid rgba(255,255,255,.06);
  padding:10px 10px;
  text-align:left;
  color:var(--muted);
}
.week-plan th{font-weight:900; color:var(--text); background: rgba(255,255,255,.02)}
.week-plan tr:last-child td{border-bottom:none}
.wcell{
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
}
.small-select{
  appearance:none;
  background: rgba(255,255,255,.04);
  border:1px solid var(--border);
  color:var(--text);
  padding:8px 10px;
  border-radius:12px;
  font-weight:900;
}
.xbtn{
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  padding:7px 10px;
  border-radius:12px;
  cursor:pointer;
  font-weight:900;
}
.xbtn:hover{filter:brightness(1.1)}
.xbtn:active{transform:translateY(1px)}

.mantra{
  margin-top:12px;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(125,211,252,.10);
  font-weight:900;
  line-height:1.35;
}
.mantra::before{content:"“"; opacity:.7}
.mantra::after{content:"”"; opacity:.7}
.mantra-all{
  margin-top:10px;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  color:var(--muted);
  font-size:13px;
  line-height:1.45;
}
.mantra-all .mline{margin:0 0 8px 0}
.mantra-all .mline:last-child{margin-bottom:0}

.days{margin-top:16px}
.tabs{
  display:flex; gap:8px; flex-wrap:wrap;
  margin:0 0 12px 0;
}
.tab{
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  color:var(--muted);
  cursor:pointer;
  font-weight:800;
}
.tab[aria-selected="true"]{
  background: rgba(125,211,252,.18);
  color:var(--text);
}

.badge{
  display:inline-block;
  margin-left:8px;
  padding:3px 8px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(134,239,172,.10);
  color: var(--text);
  font-size:12px;
  font-weight:900;
}
.badge2{
  display:inline-block;
  margin-left:8px;
  padding:3px 8px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(125,211,252,.10);
  color: var(--text);
  font-size:12px;
  font-weight:900;
}

.panel{padding:14px}
.day-head{
  display:flex; justify-content:space-between; align-items:flex-end; gap:10px;
  margin-bottom:10px;
}
.day-title{font-size:20px; font-weight:900}
.day-sub{color:var(--muted); font-size:13px}

.timeline{
  display:grid;
  grid-template-columns: 120px 1fr;
  gap:10px 12px;
  padding:12px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
}
.time{
  font-family:var(--mono);
  color:var(--muted);
  font-size:13px;
  padding-top:3px;
}
.block{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
}
.block h4{
  margin:0 0 6px 0;
  font-size:14px;
}
.block p{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.35;
}
.tags{margin-top:8px; display:flex; gap:6px; flex-wrap:wrap}
.tag{
  font-size:12px;
  padding:4px 8px;
  border-radius:999px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
  color:var(--muted);
}

.block.k-home{border-left:3px solid rgba(134,239,172,.9)}
.block.k-travel{border-left:3px solid rgba(125,211,252,.9)}
.block.k-agency{border-left:3px solid rgba(125,211,252,.75)}
.block.k-call{border-left:3px solid rgba(134,239,172,.65)}
.block.k-field{border-left:3px solid rgba(251,191,36,.8)}
.block.k-bakery{border-left:3px solid rgba(251,191,36,.6)}
.block.k-content{border-left:3px solid rgba(248,113,133,.7)}
.block.k-admin{border-left:3px solid rgba(168,179,207,.55)}
.block.k-optional{opacity:.9}

.now{
  outline:2px solid rgba(125,211,252,.6);
  box-shadow: 0 0 0 4px rgba(125,211,252,.08);
}

.compact .timeline{grid-template-columns: 90px 1fr}
.compact .block{padding:8px 10px}
.compact .block h4{margin-bottom:4px}
.compact .tags{display:none}

.week-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap:12px;
}
@media (max-width:900px){
  .week-grid{grid-template-columns: 1fr}
}
.week-card{
  padding:12px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
}
.week-card .wtitle{font-weight:900; font-size:15px}
.week-card .wsub{color:var(--muted); font-size:12px; margin-top:2px}
.wlist{margin-top:10px; display:grid; gap:6px}
.witem{
  display:flex; gap:10px; align-items:flex-start;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.wtime{font-family:var(--mono); color:var(--muted); font-size:12px; min-width:78px}
.wtxt{color:var(--text); font-weight:800; font-size:13px}
.wtxt small{display:block; color:var(--muted); font-weight:700; margin-top:2px}

.month-head{
  padding:12px 14px;
  display:flex; justify-content:space-between; align-items:center; gap:12px;
  margin-bottom:12px;
}
.month-title{font-weight:1000; font-size:18px}
.month-actions{display:flex; gap:10px; flex-wrap:wrap}
.month-panel{padding:12px}
.cal{
  width:100%;
  display:grid;
  grid-template-columns: repeat(7, minmax(0,1fr));
  gap:8px;
}
.cal-h{
  padding:8px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  color:var(--muted);
  font-weight:900;
  font-size:12px;
  text-align:center;
}
.daycell{
  min-height:92px;
  padding:10px 10px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  cursor:pointer;
}
.daycell:hover{filter:brightness(1.06)}
.daycell.out{opacity:.45}
.daycell.today{
  outline:2px solid rgba(125,211,252,.55);
  box-shadow: 0 0 0 4px rgba(125,211,252,.08);
}
.dtop{display:flex; justify-content:space-between; align-items:center; gap:6px}
.dnum{font-weight:1000}
.dchip{
  font-size:11px;
  padding:3px 7px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(134,239,172,.10);
  color:var(--text);
  font-weight:900;
}
.dlines{margin-top:8px; display:grid; gap:4px}
.dline{
  font-size:12px;
  color:var(--muted);
  line-height:1.15;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.dline strong{color:var(--text)}

.modal{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.55);
  display:grid;
  place-items:center;
  padding:16px;
  z-index:9999;
}
.modal-card{
  width:min(620px, 100%);
  border-radius:18px;
  border:1px solid var(--border);
  background: rgba(17,26,46,.96);
  box-shadow: var(--shadow);
  padding:14px;
}
.modal-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
  margin-bottom:10px;
}
.modal-title{font-weight:1000; font-size:16px}
.modal-sub{font-size:13px}

.footer{
  margin-top:18px;
  padding:10px 2px;
  color:var(--muted);
  font-size:13px;
}
.sep{opacity:.5; padding:0 6px}
code{
  font-family:var(--mono);
  background: rgba(255,255,255,.06);
  padding:2px 6px;
  border-radius:8px;
  border:1px solid var(--border);
}
.muted{color:var(--muted)}
@media print{
  body{background:white;color:#111}
  .topbar,.toggles,.actions,.tabs,.footer,.tools,.views,.month-head,.month-actions{display:none !important}
  .card,.timeline,.block{box-shadow:none !important}
  .card,.timeline,.block{border:1px solid #ddd !important}
  .pill,.toggle{border:1px solid #ddd !important}
  .muted{color:#333}
  #weekView, #dayView, #monthView{display:block !important}
  #monthView{display:none !important}
}


:where([hidden]){display:none !important}

/* Avatar header */
.avatar{
  width:42px;
  height:42px;
  border-radius:14px;
  object-fit:cover;
  border:1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Links block under mantras */
.links{
  margin-top:12px;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
}
.links-title{
  font-weight:1000;
  font-size:13px;
  margin-bottom:10px;
}
.links-sub{
  margin-top:10px;
  font-weight:900;
  font-size:12px;
  color: var(--muted);
}
.link{
  display:block;
  text-decoration:none;
  color: var(--text);
  font-weight:850;
  font-size:13px;
  padding:10px 10px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  margin-top:8px;
}
.link:hover{filter:brightness(1.08)}
.link:active{transform:translateY(1px)}
.link-sub{
  font-size:13px;
  color: var(--muted);
  font-weight:800;
}

/* Focus mode banner */
.focus-banner{
  margin: 10px 0 12px 0;
  padding: 10px 12px;
  border-radius: 14px;
  border:1px solid var(--border);
  background: rgba(125,211,252,.10);
  color: var(--text);
  font-weight: 900;
  font-size: 13px;
}
.focus-banner .muted{font-weight:800}

/* Closing checklist */
.checklist{
  margin-top: 10px;
  padding: 10px 10px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.checklist-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}
.checklist-title{
  font-weight: 1000;
  font-size: 13px;
}
.checklist-progress{
  font-weight: 900;
  font-size: 12px;
  color: var(--muted);
}
.check-item{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:8px 6px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.02);
  margin-top:8px;
}
.check-item input{ margin-top:2px; transform: scale(1.05); }
.check-item span{
  font-size: 13px;
  font-weight: 850;
  color: var(--text);
}
.check-actions{ display:flex; gap:8px; }
.btn-mini{
  padding: 8px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 950;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: var(--text);
  cursor:pointer;
}
.btn-mini:hover{filter:brightness(1.08)}
.btn-mini:active{transform:translateY(1px)}

/* Pipeline */
.pipeline{
  margin-top: 10px;
}
.ptable{
  display:block;
  border:1px solid var(--border);
  border-radius: 16px;
  overflow:hidden;
  background: rgba(255,255,255,.02);
}
.prow{
  display:grid;
  grid-template-columns: 160px 1.2fr 170px 1.6fr 1.8fr 130px 60px;
  gap: 8px;
  padding: 10px 10px;
  align-items:center;
}
.prow.head{
  background: rgba(255,255,255,.03);
  font-weight: 1000;
  font-size: 12px;
  color: var(--muted);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.prow:not(.head){ border-bottom:1px solid rgba(255,255,255,.06); }
.prow:last-child{ border-bottom: none; }
.pinp, .pselect{
  width:100%;
  padding: 10px 10px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: var(--text);
  font-weight: 850;
  font-size: 13px;
  outline:none;
}
.pinp::placeholder{ color: rgba(255,255,255,.35); }
.pbtn-del{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: var(--text);
  cursor:pointer;
  font-weight: 1000;
}
.pbtn-del:hover{filter:brightness(1.08)}
.pbtn-del:active{transform:translateY(1px)}
@media (max-width: 980px){
  .prow{ grid-template-columns: 160px 1fr 150px 1fr 1fr 130px 60px; }
}
@media (max-width: 820px){
  .prow{ 
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
  }
  .prow.head{ display:none; }
  .pbtn-del{ width: 100%; }
}

/* Secondary page (pitches) */
.page-wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 14px 60px 14px;
}
.page-hero{
  margin-top: 14px;
  padding: 14px 14px;
  border-radius: 18px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.03);
}
.page-hero h1{
  font-size: 22px;
  margin: 0 0 6px 0;
}
.page-hero p{
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}
.grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
@media (max-width: 920px){
  .grid-2{ grid-template-columns: 1fr; }
}
.card{
  padding: 14px 14px;
  border-radius: 18px;
  border:1px solid var(--border);
  background: rgba(255,255,255,.02);
  box-shadow: var(--shadow);
}
.card h2{
  font-size: 16px;
  margin: 0 0 10px 0;
}
.card h3{
  font-size: 14px;
  margin: 14px 0 8px 0;
  color: var(--text);
}
.kicker{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-weight: 950;
  font-size: 12px;
  margin-bottom: 10px;
}
.bullets{
  margin: 10px 0 0 0;
  padding-left: 18px;
  color: var(--text);
  font-weight: 850;
}
.bullets li{ margin: 6px 0; }
.quote{
  margin-top: 10px;
  padding: 12px 12px;
  border-radius: 16px;
  border:1px solid rgba(125,211,252,.22);
  background: rgba(125,211,252,.10);
  font-weight: 900;
}
.script{
  margin-top: 10px;
  padding: 12px 12px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.script .title{
  font-weight: 1000;
  margin-bottom: 6px;
}
.script pre{
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 12.5px;
  color: var(--text);
}
.copy-row{
  display:flex;
  gap:8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.copy{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: var(--text);
  cursor:pointer;
  font-weight: 950;
  font-size: 12px;
}
.copy:hover{filter:brightness(1.08)}
.copy:active{transform:translateY(1px)}
.muted-note{
  color: var(--muted);
  font-weight: 850;
  font-size: 12px;
  margin-top: 10px;
}
