:root{font-family:Inter,-apple-system,BlinkMacSystemFont,'Hiragino Sans',sans-serif;color:#272438;background:#f8f7fb;font-synthesis:none;--purple:#7046c3;--border:#e8e4ef}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer}button,a,input,select{outline-offset:4px}button{background:white;border:1px solid var(--border);border-radius:9px;padding:10px 14px;color:inherit;min-height:42px}button:hover{border-color:#b39adf;background:#faf8ff}a{color:inherit;text-decoration:none}#app{display:flex;min-height:100vh}aside{width:224px;flex-shrink:0;background:white;border-right:1px solid var(--border);padding:34px 22px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.brand{font-size:37px;font-weight:800;letter-spacing:-2px}.brand>span:first-child{color:var(--purple)}.brand-dot{font-size:14px;color:var(--purple);padding-left:4px}.workspace{font-size:10px;letter-spacing:1px;color:#8b8597;margin:35px 0 24px;line-height:2}.workspace b{font-size:12px;letter-spacing:0;color:#655c76}nav{display:grid;gap:7px}nav button{display:flex;align-items:center;gap:12px;border:0;text-align:left;font-size:13px;background:transparent}nav button>span{font-size:21px}nav small{margin-left:auto}.selected{background:#eee7fa!important;color:#653bb3!important;font-weight:700}.aside-note{margin-top:auto;font-size:11px;color:#746a84;line-height:1.8}.live-dot{display:inline-block;width:7px;height:7px;background:#549985;border-radius:50%;margin-right:6px}main{width:calc(100% - 224px);padding:0 40px}header{height:83px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--border);font-size:12px;color:#7c738b}.local-tag{font-size:9px;border:1px solid var(--border);padding:5px 8px;border-radius:5px;margin-left:12px}.heading{display:flex;justify-content:space-between;align-items:center;margin:32px 0 21px}.eyebrow{font-size:10px;color:var(--purple);letter-spacing:1.6px;font-weight:700}h1{font-size:27px;letter-spacing:-.8px;margin:9px 0}h2{font-size:17px}h3{font-size:15px}.primary{background:var(--purple);color:white;border-color:var(--purple);font-size:12px;font-weight:600}.primary:hover{background:#5d35aa;color:white}.notice{border-left:3px solid #b69bdc;background:#f0ebf7;color:#69567e;font-size:11px;line-height:1.8;padding:11px 15px;margin-bottom:25px}.stats{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--border);border-radius:12px;background:white;padding:22px 0}.stats>div{padding:0 25px;display:flex;flex-direction:column;border-right:1px solid var(--border)}.stats>div:last-child{border:0}.stats span{font-size:10px;letter-spacing:1px;color:#8a809a}.stats b{font-size:35px;font-weight:600;margin:9px 0}.stats b span{font-size:27px;color:#c5bdd3;padding:0 4px}.stats small{font-size:11px;color:#857c90}.section-title{display:flex;justify-content:space-between;align-items:center;margin:26px 0 12px}.section-title>span{font-size:11px;color:#918698}.section-title>button{font-size:11px;background:transparent;border:0}.projects{display:grid;grid-template-columns:repeat(3,1fr);gap:17px}.project-card{text-align:left;padding:23px;border-radius:12px;min-width:0}.project-logo{width:37px;height:37px;display:grid;place-items:center;background:#eee8f8;color:var(--purple);font-size:19px;font-weight:700;border-radius:10px}.project-card h2{font-size:21px;margin-bottom:6px}.project-card p{font-size:11px;color:#8a8196;margin-bottom:18px}.badge{display:inline-block;border-radius:5px;font-size:10px;padding:4px 7px;white-space:nowrap}.neutral{color:#7a7088;background:#f0edf4}.on_track{color:#267d61;background:#e5f3ed}.watch{color:#926521;background:#fbf1d8}.at_risk{color:#b24b61;background:#fbe8ed}.progress{height:4px;background:#eeebf3;margin:24px 0 14px;border-radius:5px}.progress i{display:block;background:var(--purple);height:100%}.row{display:flex;justify-content:space-between;align-items:center;gap:12px}.project-card .row{font-size:11px}.project-card small{display:block;font-size:10px;color:#a095ad;margin-top:10px}.cards{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.task{text-align:left;display:block;width:100%;padding:16px;margin-bottom:12px;min-width:0;border-radius:10px;box-shadow:0 2px 4px #30224303}.task-top{display:flex;justify-content:space-between;gap:6px;font-size:9px;color:#82768f;margin-bottom:12px}.task strong{font-size:13px;line-height:1.7}.task p{font-size:11px;color:#89808f}.task-bottom{display:flex;justify-content:space-between;gap:5px;font-size:8px;color:#92899b;margin-top:18px;flex-wrap:wrap}.filters{display:flex;gap:16px;align-items:center;margin:22px 0;font-size:12px;flex-wrap:wrap}.filters span{font-size:10px;color:#8a8194;margin-left:auto}.filters select{margin-left:6px}.board{display:grid;grid-template-columns:repeat(4,minmax(210px,1fr));gap:15px;overflow:auto}.column{background:#f0edf5;padding:12px;border-radius:10px}.column h2{font-size:11px;display:flex;align-items:center;gap:6px;margin:7px 0 20px}.column h2 small{margin-left:auto;color:#92869e}.status-dot{width:7px;height:7px;border-radius:50%;background:#b8afc5}.DOING{background:#9368d2}.REVIEW{background:#ddac4d}.DONE{background:#63a78f}.empty{font-size:12px;color:#958a9f;padding:25px 10px}.hint,.legend{font-size:11px;color:#81738e;line-height:1.8}.timeline-scroll{overflow:auto;background:white;border:1px solid var(--border);border-radius:12px}.timeline{min-width:820px}.timeline-head,.timeline-row{display:grid;grid-template-columns:230px 1fr;border-bottom:1px solid var(--border)}.timeline-head{height:50px;font-size:11px}.timeline-head>b{padding:17px}.ruler{position:relative;margin-right:15px}.ruler span{position:absolute;top:17px;color:#8b7f98}.timeline-label{text-align:left;border:0;border-radius:0;padding:17px;min-height:100px}.timeline-label strong{font-size:12px}.timeline-label small{display:block;font-size:9px;color:#94869f;line-height:1.8;margin-top:6px}.track{position:relative;background:repeating-linear-gradient(90deg,transparent 0,transparent calc(100% / var(--days) - 1px),#f0edf5 calc(100% / var(--days) - 1px),#f0edf5 calc(100% / var(--days)));margin-right:15px}.bar{position:absolute;top:32px;min-height:32px;white-space:nowrap;padding:7px 5px;font-size:10px;border:1px solid currentColor;border-radius:5px;cursor:ew-resize;touch-action:pan-y;overflow:hidden}.bar:focus{z-index:3}.legend{display:flex;gap:12px;align-items:center;margin:18px 0;flex-wrap:wrap}.decision,.sync-panel{background:white;border:1px solid var(--border);border-radius:12px;padding:24px;margin-bottom:16px}.decision p,.decision li,.sync-panel p{font-size:12px;line-height:1.9;color:#7c6d89}.focus-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.event{padding:14px;background:white;border-bottom:1px solid var(--border);font-size:12px}details{margin-top:24px;font-size:12px}pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f0edf5;padding:20px;max-height:400px;overflow:auto}footer{font-size:10px;color:#998fa4;margin:30px 0}dialog{width:min(560px,94vw);border:1px solid var(--border);border-radius:15px;padding:26px;max-height:90vh;box-shadow:0 20px 100px #30204333}dialog::backdrop{background:#28203460}dialog p{font-size:11px;color:#8a7c97}dialog label{display:flex;flex-direction:column;gap:6px;margin:12px 0;font-size:11px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 15px}input,select{padding:10px;border:1px solid #dcd5e7;border-radius:7px;background:white;color:#3b3049;min-width:0;max-width:100%}select[multiple]{min-height:85px}#form-error{color:#b24b61}#message:not(:empty){position:fixed;bottom:20px;left:50%;transform:translateX(-50%);z-index:5;background:#392652;color:white;padding:12px 20px;border-radius:10px;font-size:12px;max-width:90vw}
@media(min-width:1600px){main{padding:0 70px}}@media(max-width:1050px){aside{width:180px;padding:25px 14px}main{width:calc(100% - 180px);padding:0 22px}.projects{gap:10px}.project-card{padding:16px}.cards{grid-template-columns:1fr}h1{font-size:23px}}@media(max-width:700px){#app{display:block}aside{width:100%;height:auto;position:static;padding:15px 18px;border-bottom:1px solid var(--border)}.brand{font-size:27px}.workspace,.aside-note{display:none}nav{display:flex;overflow:auto;gap:3px;margin-top:10px}nav button{white-space:nowrap;font-size:10px;padding:7px 9px}nav button>span{font-size:16px}main{width:100%;padding:0 17px}header{height:55px;font-size:10px}.heading{margin:22px 0 18px}.heading>.primary{display:none}h1{font-size:23px}.eyebrow{font-size:8px}.notice{font-size:10px}.stats{padding:17px 0}.stats>div{padding:0 13px}.stats span{font-size:8px;letter-spacing:0}.stats b{font-size:28px}.stats small{font-size:9px}.projects{grid-template-columns:1fr}.project-card{padding:20px}.section-title>span{display:none}.focus-grid{grid-template-columns:1fr}.filters{gap:10px}.filters label{display:flex;align-items:center}.filters span{margin-left:0}.sync-panel .row,.event{align-items:flex-start;flex-direction:column}.form-grid{gap:0 10px}.board{grid-template-columns:repeat(4,245px)}footer{line-height:1.8}dialog{padding:20px}}
.sample-summary{font-size:10px;color:#735f8c;margin-top:14px;line-height:1.7}
.cross-filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px;margin:0 0 25px;background:white;padding:18px;border:1px solid var(--border);border-radius:12px}.cross-filters label{display:flex;flex-direction:column;gap:6px;font-size:10px;color:#786b87}.cross-filters input,.cross-filters select{width:100%;font-size:12px}.cross-filters button{align-self:end}.filter-count{grid-column:1/-1;font-size:11px;color:#83748e;margin:0}.project-card details{font-size:11px;margin:12px 0;line-height:1.8}.project-card ul{padding-left:15px}.project-card>button{margin-top:14px;font-size:11px}.project-card .badge{white-space:normal}.projects{align-items:start}.timeline-label{overflow-wrap:anywhere}.task strong,.project-card h2{overflow-wrap:anywhere}@media(max-width:700px){.cross-filters{grid-template-columns:1fr 1fr;padding:12px;gap:10px}.stats b{font-size:24px}.stats small{line-height:1.7}.projects{grid-template-columns:1fr}}
.evidence{font-size:10px;color:#786687;line-height:1.7;overflow-wrap:anywhere;margin:10px 0}.evidence p{font-size:10px!important;margin:6px 0}.actor-human{background:#f9eadb;color:#80532e}.actor-ai{background:#e4eff9;color:#3a5f80}.actor-collab{background:#eee3f7;color:#714c8e}.actor-unknown{background:#efedf1;color:#776981}.timeline-label{min-height:150px}.timeline-row .bar{top:60px}

/* Keep the existing desktop/tablet layout; compact overview on phones only. */
.filter-toggle,.mobile-stats{display:none}
@media(max-width:700px){
  main{min-width:0;overflow-wrap:anywhere}
  aside{padding:12px 16px}
  nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;overflow:visible;margin-top:8px}
  nav button{min-width:0;min-height:44px;font-size:14px;padding:6px;gap:5px;white-space:normal}
  nav button>span{font-size:17px;flex-shrink:0}
  header{height:auto;min-height:55px;gap:8px;font-size:13px;padding:8px 0;flex-wrap:wrap}
  header>span{display:flex;align-items:center;gap:8px;margin-left:auto}
  #logout{font-size:14px;min-height:44px;padding:8px 10px}
  .heading{margin:18px 0 12px}
  .eyebrow{font-size:13px;letter-spacing:1px}
  .notice{font-size:14px;line-height:1.6;padding:10px 12px;margin-bottom:14px}
  .filter-toggle{display:flex;width:100%;justify-content:space-between;align-items:center;gap:8px;min-height:48px;margin-bottom:12px;padding:10px 14px;border-color:#b39adf;color:#593291;background:#f0e9fb;font-size:15px;font-weight:700}
  .filter-toggle>span:last-child{font-size:13px;font-weight:500}
  .cross-filters{display:none;margin-bottom:14px;grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;gap:12px}
  .cross-filters.is-open{display:grid}
  .cross-filters label{min-width:0;font-size:13px;color:#655571}
  .cross-filters input,.cross-filters select{min-width:0;min-height:44px;font-size:16px;padding:8px}
  .cross-filters button{min-height:44px}
  .filter-count{font-size:13px;line-height:1.6}
  .desktop-stats{display:none}
  .mobile-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));background:white;border:1px solid var(--border);border-radius:12px;overflow:hidden}
  .mobile-stats>div{min-width:0;display:flex;flex-direction:column;gap:5px;padding:12px}
  .mobile-stats>div:nth-child(odd){border-right:1px solid var(--border)}
  .mobile-stats>div:nth-child(-n+2){border-bottom:1px solid var(--border)}
  .mobile-stats>div>span{font-size:13px;color:#655571;font-weight:600}
  .mobile-stats b{font-size:27px;line-height:1.2;font-weight:650}
  .mobile-stats small{font-size:13px;line-height:1.5;color:#71647e;font-weight:400}
  .section-title{margin:20px 0 10px;gap:8px}
  .section-title h2{font-size:16px;margin:0;line-height:1.5}
  .projects{gap:12px}
  .project-card{padding:14px;background:white;border:1px solid var(--border);display:flow-root}
  .project-logo{float:left;width:32px;height:32px;margin:0 9px 4px 0;font-size:17px;border-radius:8px}
  .project-card h2{font-size:19px;line-height:1.5;margin:0 0 6px;min-height:32px}
  .project-card p{font-size:14px;line-height:1.55;color:#71647e;margin:8px 0}
  .project-card>p:first-of-type{clear:both;margin-top:0;font-size:14px}
  .project-card .badge{font-size:13px;line-height:1.4;padding:4px 7px}
  .project-card details{font-size:14px;line-height:1.6;margin:4px 0}
  .project-card summary{min-height:44px;padding:11px 0;cursor:pointer;color:#655571}
  .project-card ul{margin:4px 0 8px}
  .project-card>button{width:100%;min-height:44px;font-size:14px;margin-top:8px;padding:8px 12px}
  .task{padding:14px}
  .task-top,.task-bottom,.task p,.task .evidence,.task .evidence p{font-size:13px!important;color:#71647e}
  .task strong{font-size:16px}
  .task .badge{font-size:13px;white-space:normal}
  .task-bottom{margin-top:10px}
  .decision{padding:16px}
  .decision p,.decision li{font-size:14px}
  .decision button{min-height:44px;font-size:14px}
  /* Cover secondary views and the editor without changing wider layouts. */
  button,.primary,.section-title>button{font-size:14px}
  input,select,dialog input,dialog select{font-size:16px}
  .task p{font-size:14px!important}
  .badge,.local-tag,nav small,.filters span,.sample-summary,
  .project-card small,.task-top,.task-bottom,.hint,.legend,
  .timeline-head,.timeline-label small,.bar,.evidence,
  dialog label,dialog p{font-size:13px}
  .evidence p{font-size:13px!important}
  .filters,.project-card .row,.column h2,.empty,.timeline-label strong,
  .sync-panel p,.event,details,#message:not(:empty){font-size:14px}
  footer{font-size:13px;color:#71647e}
}

/* Larger reading sizes on phones; wider layouts keep their existing type. */
@media(max-width:700px){
  body{font-size:16px;line-height:1.6}
  main p,.project-card p,.project-card>p:first-of-type,
  .decision p,.decision li,.sync-panel p,.event,details,
  .project-card details,.empty,.filters,footer,
  .notice,dialog p,#message:not(:empty){font-size:16px;line-height:1.6}
  .badge,.project-card .badge,.task .badge,.local-tag,nav small,
  .filters span,.sample-summary,.project-card small,.project-card .row,
  .hint,.legend,.eyebrow,header,.mobile-stats>div>span,.mobile-stats small,
  .filter-count,.evidence,dialog label,.column h2 small,
  .section-title>span,.timeline-head{font-size:15px;line-height:1.6}
  /* Earlier card/evidence rules use !important; override them at the same scope. */
  .task-top,.task-bottom,.task .evidence,.evidence p,.task .evidence p{
    font-size:15px!important;line-height:1.6;
  }
  .task p{font-size:16px!important;line-height:1.6}
  .filter-count{font-size:15px}
  button,.primary,nav button,#logout,.filter-toggle,.filter-toggle>span:last-child,
  .cross-filters label,.cross-filters button,.project-card>button,
  .decision button,.section-title>button{font-size:16px;line-height:1.55}
  button,input,select,summary{min-height:44px}
  /* WebKit native menus need an explicit height to retain the tap target. */
  select:not([multiple]){height:44px}
  summary{padding-block:9px}
  input,select,dialog input,dialog select,
  .cross-filters input,.cross-filters select{font-size:17px}
  .task strong,.decision h2,h3{font-size:18px;line-height:1.6}
  h2,.project-card h2,.section-title h2{font-size:20px;line-height:1.55}
  .column h2{font-size:16px}
  h1{font-size:26px;line-height:1.55}
  .timeline-label strong{font-size:16px;line-height:1.6}
  .timeline-label small{font-size:15px;line-height:1.6}
  .timeline-label{min-height:180px}
  .timeline-head{height:auto;min-height:58px}
  .bar{font-size:14px;line-height:1.6;min-height:44px}
  /* Allow larger labels to wrap without expanding the phone viewport. */
  nav button{flex-wrap:wrap;overflow-wrap:anywhere}
  nav small{margin-left:0}
  .task-top{flex-wrap:wrap}
  .badge{max-width:100%;white-space:normal;overflow-wrap:anywhere}
  .cross-filters,.form-grid{grid-template-columns:minmax(0,1fr)}
  .focus-grid>*{min-width:0}
  pre{font-size:16px;line-height:1.6}
}
