:root{
  --bg:#0b1220;
  --card:#121a2b;
  --text:#e8eefc;
  --muted:#a9b6d6;
  --line:rgba(255,255,255,.08);
  --accent:#7aa7ff;
  --accent2:#7dffa8;
  --danger:#ff6b6b;
  --radius:18px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans JP", sans-serif;
  background: radial-gradient(1200px 600px at 20% 0%, rgba(122,167,255,.15), transparent 60%),
              radial-gradient(900px 500px at 80% 10%, rgba(125,255,168,.12), transparent 60%),
              var(--bg);
  color:var(--text);
}

a{color:inherit;text-decoration:none}
.container{width:min(1100px, 92vw); margin:0 auto}

.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(11,18,32,.7);
  border-bottom:1px solid var(--line);
}
.topbar__inner{display:flex; align-items:center; justify-content:space-between; padding:14px 0; gap:10px}
.brand{font-weight:900; letter-spacing:.3px}
.nav{display:flex; gap:12px; flex-wrap:wrap}
.nav a{padding:8px 10px; border:1px solid transparent; border-radius:999px; color:var(--muted)}
.nav a:hover{border-color:var(--line); color:var(--text)}

.hero{display:grid; grid-template-columns: 1.2fr .8fr; gap:18px; padding:20px 0 24px}
@media (max-width: 900px){
  .hero{grid-template-columns:1fr}
}

.title{font-size: clamp(26px, 3.6vw, 40px); margin: 12px 0 6px}
.subtitle{margin:0 0 14px; color:var(--muted)}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border:1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,.22);
  padding:16px;
}

.planCard{padding:16px}
.row{display:flex; gap:10px; align-items:end}
.row--wrap{flex-wrap:wrap}
.row--actions{margin-top:12px}

.field{display:flex; flex-direction:column; gap:6px; color:var(--muted); font-weight:800; min-width: 170px}
.field input, .field select{
  padding:12px 12px;
  border-radius: 14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color:var(--text);
  font-weight:900;
  outline:none;
}

.details{margin-top:10px; border-top:1px solid var(--line); padding-top:10px}
.details summary{cursor:pointer; color:var(--muted); font-weight:900}

.toggle{display:flex; align-items:center; gap:10px; color:var(--muted); font-weight:800; padding:10px 0}
.toggle input{transform: scale(1.1)}

.btn{
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color:var(--text);
  padding:12px 12px;
  border-radius: 14px;
  font-weight:900;
  cursor:pointer;
}
.btn:hover{border-color: rgba(255,255,255,.18)}
.btn:active{transform: translateY(1px)}
.btn-primary{border-color: rgba(122,167,255,.55); background: rgba(122,167,255,.12)}
.btn-accent{border-color: rgba(125,255,168,.55); background: rgba(125,255,168,.10)}
.btn-ghost{background: transparent}
.btn-small{padding:10px 12px; border-radius:12px; font-weight:900}

.status{margin-top:12px; padding:12px; border-radius:14px; border:1px solid var(--line); background: rgba(0,0,0,.12)}
.status__main{font-weight:950}
.status__sub{color:var(--muted); margin-top:4px; line-height:1.5}

.progressWrap{margin-top:12px}
.progressBar{
  height:10px; border-radius:999px;
  background: rgba(255,255,255,.05);
  overflow:hidden; border:1px solid var(--line);
}
.progressFill{height:100%; width:0%}
.progressMeta{display:flex; justify-content:space-between; color:var(--muted); margin-top:8px; font-weight:800; gap:10px; flex-wrap:wrap}

.timelineCard{margin-top:14px}
.timelineHeader{display:flex; align-items:center; justify-content:space-between; gap:10px}
.h2{margin:0; font-size:18px}
.h3{margin:0 0 10px; font-size:16px}
.pill{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  color:var(--muted);
  font-weight:900;
}
.pill.ok{border-color: rgba(125,255,168,.45); color: var(--text); background: rgba(125,255,168,.10)}
.pill.ng{border-color: rgba(255,107,107,.45); color: var(--text); background: rgba(255,107,107,.10)}

.timeline{list-style:none; padding:0; margin:12px 0 0; display:flex; flex-direction:column; gap:10px}
.item{
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px;
  background: rgba(0,0,0,.12);
  display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap;
}
.item .left{display:flex; flex-direction:column; gap:4px}
.item .name{font-weight:950}
.item .meta{color:var(--muted); font-weight:800; font-size:13px}
.badge{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  font-weight:950;
  align-self:start;
}
.badge.work{border-color: rgba(122,167,255,.45); background: rgba(122,167,255,.10)}
.badge.break{border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.06)}
.badge.buffer{border-color: rgba(125,255,168,.35); background: rgba(125,255,168,.08)}
.item.is-now{outline: 2px solid rgba(122,167,255,.55)}
.item.is-done{opacity:.65}

.fixes{
  margin-top:12px;
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(255,107,107,.35);
  background: rgba(255,107,107,.08);
}
.fixes__title{font-weight:950; margin-bottom:10px}
.fixes__buttons{display:flex; gap:10px; flex-wrap:wrap}
.small{color:var(--muted); line-height:1.6; margin-top:8px}
.bullets{color:var(--muted); line-height:1.8}

.adCard .adBox{
  min-height: 180px;
  display:grid; place-items:center;
  border:1px dashed rgba(255,255,255,.18);
  border-radius: 14px;
  margin:10px 0 14px;
  background: rgba(0,0,0,.12);
}

.footer{
  border-top:1px solid var(--line);
  padding:18px 0 26px;
  color:var(--muted);
}
.footer__inner{display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap}
.footer__links{display:flex; gap:14px; flex-wrap:wrap}
.footer__links a:hover{color:var(--text)}

/* 集中モード */
body.focus .topbar,
body.focus .hero__right{display:none}
body.focus .hero{grid-template-columns:1fr}
