/* Views: Overview (.ov-*) and Docs (.dc-*) */

/* =================================================================== OVERVIEW */
.ov-hero{display:flex; align-items:flex-end; justify-content:space-between; gap:18px; flex-wrap:wrap; margin-bottom:22px;}
.ov-greet{font-size:30px; margin-top:6px;}
.ov-grad{background:linear-gradient(100deg,var(--accent),var(--accent-2) 60%,#d07bff); -webkit-background-clip:text; background-clip:text; color:transparent;}
.ov-quick{display:flex; gap:8px; flex-wrap:wrap;}

.ov-stats{display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); gap:14px; margin-bottom:16px;}
.ov-live{padding:18px 20px 12px; display:flex; flex-direction:column; position:relative; overflow:hidden;}
.ov-live::before{content:""; position:absolute; inset:-1px; border-radius:inherit; pointer-events:none; padding:1px;
  background:linear-gradient(140deg,color-mix(in srgb,var(--accent) 45%,transparent),transparent 35%,transparent 70%,color-mix(in srgb,var(--accent-2) 35%,transparent));
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0); -webkit-mask-composite:xor; mask-composite:exclude;}
.ov-live-head{display:flex; align-items:flex-start; gap:12px;}
.ov-live-row{margin-top:4px; align-items:baseline;}
.ov-big{font-family:var(--font-display); font-weight:700; font-size:44px; letter-spacing:-.04em; line-height:1;}
.ov-dot{width:8px; height:8px; border-radius:50%; background:var(--good); display:inline-block; flex-shrink:0; animation:ovPulse 2s infinite;}
.ov-dot.stale{background:var(--warn); animation:none;}
@keyframes ovPulse{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--good) 55%,transparent);}70%{box-shadow:0 0 0 7px transparent;}100%{box-shadow:0 0 0 0 transparent;}}
.ov-delta{display:inline-flex; align-items:center; gap:3px; font-size:12.5px; font-weight:700; padding:3px 8px; border-radius:999px; background:var(--surface-3); color:var(--text-2);}
.ov-delta.up{color:var(--good); background:var(--good-soft);} .ov-delta.down{color:var(--bad); background:var(--bad-soft);}
.ov-readout{font-size:12px; color:var(--muted); margin-top:10px; min-height:18px; font-variant-numeric:tabular-nums; transition:color .2s;}
.ov-readout.on{color:var(--text); font-weight:600;}
.ov-spark{position:relative; height:120px; margin:4px -6px 0;}
.ov-spark canvas{touch-action:pan-y; -webkit-user-select:none; user-select:none;}
.ov-spark-empty{position:absolute; inset:0; display:flex; align-items:center; justify-content:center; text-align:center; color:var(--muted); font-size:12.5px; padding:10px;}
.ov-tiles{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; min-width:0;}
.ov-tile{display:flex; gap:12px; align-items:flex-start; padding:16px; min-width:0; transition:transform .25s var(--ease), border-color .25s;}
.ov-tile:hover{transform:translateY(-2px); border-color:var(--border-strong);}
.ov-tile-ic{width:36px; height:36px; border-radius:11px; display:grid; place-items:center; background:var(--accent-soft); color:var(--accent-text); flex-shrink:0;}
.ov-tile-l{font-size:12px; color:var(--muted);}
.ov-tile-v{font-family:var(--font-display); font-weight:700; font-size:23px; letter-spacing:-.03em; line-height:1.25; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.ov-tile-s{font-size:11.5px; color:var(--muted); min-height:16px;}

.ov-grid{display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,.85fr); gap:16px; align-items:start;}
.ov-col{display:flex; flex-direction:column; gap:16px; min-width:0;}
.ov-card .card-head{padding-bottom:2px;}
.ov-card .card-body{padding-top:12px;}
.ov-empty{display:flex; gap:12px; align-items:flex-start; padding:8px 2px; color:var(--text-2);}
.ov-empty > .ic{color:var(--accent-text); margin-top:2px;}
.ov-empty b{color:var(--text); font-size:13.5px;}
.ov-more{display:block; width:100%; text-align:center; margin-top:10px; padding:8px; border-radius:9px; font-size:12.5px; font-weight:600; color:var(--text-2); transition:background .2s,color .2s;}
.ov-more:hover{background:var(--hover); color:var(--text);}

/* my tasks */
.ov-tasks{display:flex; flex-direction:column;}
.ov-task{display:flex; align-items:flex-start; gap:10px; padding:9px 6px; border-radius:10px; transition:background .15s, opacity .35s, transform .35s;}
.ov-task:hover{background:var(--hover);}
.ov-task + .ov-task{border-top:1px solid var(--border);}
.ov-task .check{margin-top:2px;}
.ov-task-main{flex:1; min-width:0; display:flex; flex-direction:column; gap:4px;}
.ov-task-title{font-weight:500; line-height:1.4; overflow-wrap:anywhere;}
.ov-task-meta{display:flex; gap:10px; flex-wrap:wrap; align-items:center; font-size:12px; color:var(--muted);}
.ov-board{display:inline-flex; align-items:center; gap:4px; max-width:180px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:color-mix(in srgb,var(--c) 65%,var(--text-2));}
.ov-due{display:inline-flex; align-items:center; gap:4px;}
.ov-due.overdue{color:var(--bad); font-weight:600;} .ov-due.soon{color:var(--warn); font-weight:600;}
.ov-task.is-done{opacity:.45; transform:translateX(8px);}
.ov-task.is-done .ov-task-title{text-decoration:line-through;}

/* upcoming */
.ov-up{display:flex; flex-direction:column; gap:2px;}
.ov-up-day{font-size:11px; font-weight:700; letter-spacing:.7px; text-transform:uppercase; color:var(--muted); padding:10px 4px 4px;}
.ov-up-day:first-child{padding-top:0;}
.ov-up-item{display:flex; gap:10px; align-items:center; padding:7px 6px; border-radius:9px; transition:background .15s; font-size:13.5px;}
.ov-up-item:hover{background:var(--hover);}
.ov-up-ic{--c:#5b7cfa; width:28px; height:28px; border-radius:8px; display:grid; place-items:center; flex-shrink:0; background:color-mix(in srgb,var(--c) 18%,transparent); color:color-mix(in srgb,var(--c) 75%,var(--text));}
.ov-up-ic.task{background:var(--surface-3); color:var(--text-2);}

/* announcements */
.ov-anns{display:flex; flex-direction:column; gap:12px;}
.ov-ann{padding:14px; border-radius:12px; background:var(--surface-2); border:1px solid var(--border); animation:fadeUp .4s var(--ease) both;}
.ov-ann.pinned{border-color:color-mix(in srgb,var(--warn) 40%,transparent); background:linear-gradient(180deg,color-mix(in srgb,var(--warn) 7%,var(--surface-2)),var(--surface-2));}
.ov-ann-head{display:flex; align-items:center; gap:10px;}
.ov-ann-head .badge{vertical-align:1px;}
.ov-ann-title{font-size:15.5px; margin:10px 0 4px;}
.ov-ann-body{font-size:13.5px; line-height:1.6; color:var(--text-2);}
.ov-ann-body.clamp{max-height:200px; overflow:hidden; -webkit-mask-image:linear-gradient(#000 65%,transparent); mask-image:linear-gradient(#000 65%,transparent);}
.ov-readmore{font-size:12.5px; font-weight:600; color:var(--accent-text); margin-top:4px; padding:2px 0;}
.ov-reacts{display:flex; gap:6px; flex-wrap:wrap; margin-top:10px;}
.ov-react{display:inline-flex; align-items:center; gap:5px; height:28px; padding:0 9px; border-radius:999px; border:1px solid var(--border); background:var(--surface); font-size:13px; transition:all .18s var(--ease);}
.ov-react .num{font-size:12px; font-weight:600; color:var(--text-2);}
.ov-react:hover:not(:disabled){border-color:var(--border-strong); transform:translateY(-1px);}
.ov-react:active:not(:disabled){transform:scale(.92);}
.ov-react.on{background:var(--accent-soft); border-color:color-mix(in srgb,var(--accent) 45%,transparent);}
.ov-react.on .num{color:var(--accent-text);}
.ov-react.add{color:var(--muted); gap:1px;}
.ov-react:disabled{cursor:default;}
.ov-react-pop{display:flex; gap:2px; min-width:0; padding:5px; border-radius:999px;}
.ov-react-pick{width:38px; height:38px; border-radius:50%; font-size:20px; display:grid; place-items:center; transition:transform .2s var(--ease-spring), background .15s;}
.ov-react-pick:hover{transform:scale(1.25); background:var(--hover);}
.ov-ann-editor{display:flex; flex-direction:column; gap:6px;}
.ov-ann-preview{min-height:160px; padding:12px; border:1px solid var(--border); border-radius:10px; background:var(--surface-2);}

/* activity */
.ov-activity{display:flex; flex-direction:column;}
.ov-act{display:flex; gap:10px; align-items:flex-start; padding:8px 6px; border-radius:9px; position:relative; transition:background .15s;}
a.ov-act:hover{background:var(--hover);}
.ov-act-ic{position:absolute; left:26px; top:26px; width:16px; height:16px; border-radius:50%; display:grid; place-items:center; background:var(--surface-3); color:var(--text-2); box-shadow:0 0 0 2px var(--surface);}
.ov-act-text{display:block; font-size:13px; line-height:1.45; overflow-wrap:anywhere;}
.ov-act.fresh{animation:ovFresh 1.6s var(--ease);}
@keyframes ovFresh{0%{background:var(--accent-soft); transform:translateY(-6px); opacity:0;}20%{opacity:1; transform:none;}100%{background:transparent;}}

/* team / storage / links */
.ov-team-sum{display:flex; align-items:center; gap:6px; font-size:12.5px; color:var(--text-2); margin-bottom:12px;}
.ov-team{display:grid; grid-template-columns:repeat(auto-fill,minmax(64px,1fr)); gap:10px 6px;}
.ov-member{display:flex; flex-direction:column; align-items:center; gap:6px; font-size:11.5px; color:var(--text-2); padding:6px 2px; border-radius:10px; transition:background .15s, transform .2s var(--ease); min-width:0; text-align:center;}
.ov-member .truncate{max-width:100%;}
.ov-member:hover{background:var(--hover); transform:translateY(-2px);}
.ov-member.off .avatar{filter:grayscale(.7); opacity:.55;}
.ov-store{display:block; padding:8px 6px; border-radius:10px; transition:background .15s;}
.ov-store:hover{background:var(--hover);}
.ov-store .progress{margin-top:8px;}
.ov-store + .ov-store{margin-top:4px;}
.ov-disk{display:flex; gap:8px; align-items:flex-start; margin-top:10px; padding:9px 10px; border-radius:9px; font-size:12px; color:var(--text-2); background:var(--surface-2); line-height:1.45;}
.ov-disk .ic{margin-top:1px;}
.ov-disk.warn{color:var(--warn); background:var(--warn-soft);} .ov-disk.bad{color:var(--bad); background:var(--bad-soft);}
.ov-links{display:flex; flex-direction:column; gap:4px;}
.ov-link{display:flex; gap:10px; align-items:center; padding:8px; border-radius:10px; font-size:13.5px; transition:background .15s, transform .2s var(--ease);}
.ov-link:hover{background:var(--hover); transform:translateX(2px);}
.ov-link-ic{width:30px; height:30px; border-radius:9px; display:grid; place-items:center; background:var(--surface-3); font-size:15px; flex-shrink:0; color:var(--text-2);}

@media (max-width:1199px){
  .ov-stats{grid-template-columns:minmax(0,1fr);}
  .ov-tiles{grid-template-columns:repeat(4,minmax(0,1fr));}
  .ov-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);}
  .ov-grid .ov-col:nth-child(3){grid-column:1 / -1; display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); align-items:start;}
}
@media (max-width:760px), (min-width:900px) and (max-width:1099px){
  .ov-tiles{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:899px){
  .ov-grid{grid-template-columns:1fr;}
  .ov-grid .ov-col:nth-child(3){display:flex;}
  .ov-greet{font-size:24px;}
  .ov-big{font-size:38px;}
  .ov-quick{width:100%;}
  .ov-quick .btn{flex:1 1 auto;}
}
@media (max-width:420px){
  .ov-tiles{gap:10px;}
  .ov-tile{padding:12px; gap:10px;}
  .ov-tile-ic{width:30px; height:30px; border-radius:9px;}
  .ov-tile-v{font-size:19px;}
}

/* =================================================================== DOCS */
#view:has(> .dc){height:100%;}
.dc{display:grid; grid-template-columns:280px minmax(0,1fr); height:100%; min-height:0;}
.dc-side{border-right:1px solid var(--border); background:var(--bg-2); display:flex; flex-direction:column; min-height:0;}
.dc-side-head{padding:18px 14px 10px;}
.dc-side-title{font-size:17px; display:flex; align-items:center; gap:8px;}
.dc-side-title .ic{color:var(--accent-text);}
.dc-tree{flex:1; overflow-y:auto; padding:4px 8px 12px; min-height:0;}
.dc-tree-empty{padding:16px 10px; text-align:center;}
.dc-side-foot{border-top:1px solid var(--border); padding:8px;}
.dc-group-l{font-size:10.5px; font-weight:700; letter-spacing:1px; text-transform:uppercase; color:var(--muted); padding:12px 8px 5px; display:flex; align-items:center; gap:5px;}
.dc-node{--d:0; display:flex; align-items:center; gap:2px; padding-left:calc(var(--d) * 14px); border-radius:8px; position:relative;}
.dc-node:hover{background:var(--hover);}
.dc-node.on{background:var(--active);}
.dc-node.on::before{content:""; position:absolute; left:0; top:7px; bottom:7px; width:3px; border-radius:3px; background:linear-gradient(var(--accent),var(--accent-2)); animation:barIn .3s var(--ease);}
.dc-twisty,.dc-twisty-sp{width:20px; height:20px; flex-shrink:0; display:grid; place-items:center; border-radius:5px; color:var(--muted);}
.dc-twisty:hover{background:var(--active); color:var(--text);}
.dc-twisty .ic{transition:transform .2s var(--ease);}
.dc-twisty.open .ic{transform:rotate(90deg);}
.dc-link{flex:1; min-width:0; display:flex; align-items:center; gap:8px; height:32px; padding-right:4px; font-size:13.5px; color:var(--text-2);}
.dc-node.on .dc-link,.dc-node:hover .dc-link{color:var(--text);}
.dc-ic{width:18px; text-align:center; flex-shrink:0; font-size:14px;}
.dc-lock{color:var(--muted); display:inline-flex;}
.dc-add{width:24px; height:24px; border-radius:6px; display:grid; place-items:center; color:var(--muted); opacity:0; transition:opacity .15s, background .15s; flex-shrink:0;}
.dc-node:hover .dc-add,.dc-add:focus-visible{opacity:1;}
.dc-add:hover{background:var(--active); color:var(--text);}
@media (hover:none){ .dc-add{opacity:.7;} }
.dc-children{animation:fadeIn .25s ease both;}
.dc-hit{display:flex; gap:9px; align-items:center; padding:7px 8px; border-radius:8px; font-size:13.5px; color:var(--text-2);}
.dc-hit:hover,.dc-hit.on{background:var(--hover); color:var(--text);}

.dc-main{overflow-y:auto; overflow-x:hidden; min-height:0; position:relative; scroll-behavior:smooth; container-type:inline-size; container-name:dcmain;}
.dc-bar{position:sticky; top:0; z-index:5; display:flex; align-items:center; gap:8px; padding:10px 22px; min-height:54px;
  background:color-mix(in srgb,var(--bg) 85%,transparent); backdrop-filter:blur(12px); border-bottom:1px solid var(--border);}
.dc-backbar{display:none;}
.dc-trail{display:flex; align-items:center; gap:7px; font-size:13px; color:var(--text-2); min-width:0;}
.dc-trail a{color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:180px;}
.dc-trail a:hover{color:var(--text);}
.dc-trail > span:last-child{color:var(--text); font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;}
.dc-banner{display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:14px 22px 0; padding:10px 14px; border-radius:11px; font-size:13px; line-height:1.45; animation:fadeUp .3s var(--ease) both;}
.dc-banner.warn{background:var(--warn-soft); color:var(--warn); border:1px solid color-mix(in srgb,var(--warn) 25%,transparent);}
.dc-banner.bad{background:var(--bad-soft); color:var(--bad); border:1px solid color-mix(in srgb,var(--bad) 25%,transparent);}
.dc-banner b{color:var(--text);}
.dc-banner .btn{margin-left:auto;} .dc-banner .btn + .btn{margin-left:0;}

.dc-doc-wrap{display:grid; grid-template-columns:minmax(0,1fr) 220px; gap:32px; max-width:1180px; margin:0 auto; padding:28px 36px 64px;}
.dc-doc-wrap.no-toc{grid-template-columns:minmax(0,1fr); max-width:900px;}
.dc-article{min-width:0; max-width:820px;}
.dc-title-row{display:flex; align-items:flex-start; gap:14px;}
.dc-emoji{font-size:40px; line-height:1.1; flex-shrink:0;}
.dc-title{font-size:34px; font-weight:700; letter-spacing:-.03em; line-height:1.15; overflow-wrap:anywhere; padding-top:4px;}
.dc-meta{display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-top:14px; font-size:12.5px; color:var(--text-2);}
.dc-meta b{color:var(--text); font-weight:600;}
.dc-article .tag{cursor:pointer; border:0;}
.dc-md{font-size:15px;}
.dc-md h1,.dc-md h2,.dc-md h3{scroll-margin-top:72px;}
.dc-sub{margin-top:36px; padding-top:20px; border-top:1px solid var(--border);}
.dc-toc{position:sticky; top:76px; align-self:start; max-height:calc(100vh - 140px); overflow-y:auto; padding-left:14px; border-left:1px solid var(--border); display:flex; flex-direction:column; gap:2px;}
.dc-toc .eyebrow{margin-bottom:8px;}
.dc-toc-i{text-align:left; font-size:12.5px; color:var(--muted); padding:4px 8px; border-radius:6px; line-height:1.4; transition:color .15s, background .15s; overflow:hidden; text-overflow:ellipsis; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;}
.dc-toc-i:hover{color:var(--text); background:var(--hover);}
.dc-toc-i.on{color:var(--accent-text); background:var(--accent-soft);}
.dc-toc-i.lvl-3{padding-left:20px; font-size:12px;}

.dc-cards{display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:12px;}
.dc-card{padding:14px 16px; display:flex; flex-direction:column; gap:4px; min-width:0;}
.dc-card-ic{font-size:20px; flex-shrink:0;}
.dc-home{max-width:1100px; margin:0 auto; padding:32px 36px 64px;}
.dc-home-hero{padding:26px 28px; border-radius:var(--radius-xl); border:1px solid var(--border); margin-bottom:8px;
  background:radial-gradient(600px 220px at 0% 0%,var(--accent-soft),transparent 70%),radial-gradient(500px 200px at 100% 100%,color-mix(in srgb,var(--accent-2) 12%,transparent),transparent 70%),var(--surface);}
.dc-h3{font-size:15px; margin:28px 0 12px; display:flex; align-items:center; gap:8px; color:var(--text-2);}
.dc-tpls{display:grid; grid-template-columns:repeat(auto-fill,minmax(230px,1fr)); gap:12px;}
.dc-tpl{display:flex; gap:12px; align-items:flex-start; padding:14px 16px; text-align:left;}
.dc-tpl-ic{font-size:24px; line-height:1; flex-shrink:0;}
.dc-tpl-pick{display:grid; grid-template-columns:repeat(auto-fill,minmax(200px,1fr)); gap:8px;}
.dc-tpl-opt{display:flex; gap:10px; align-items:flex-start; text-align:left; padding:11px 12px; border-radius:11px; border:1px solid var(--border); background:var(--surface-2); transition:all .18s var(--ease);}
.dc-tpl-opt:hover{border-color:var(--border-strong);}
.dc-tpl-opt.on{border-color:var(--accent); background:var(--accent-soft); box-shadow:0 0 0 3px var(--accent-soft);}
.dc-tpl-opt b{font-size:13px;}

/* editor */
.dc-editor{display:flex; flex-direction:column; height:100%; min-height:0;}
.dc-ed-bar{flex-shrink:0;}
.dc-ed-status.warn{color:var(--warn);}
.dc-ed-scroll{flex:1; min-height:0; display:flex; flex-direction:column; padding:18px 28px 0; max-width:1500px; width:100%; margin:0 auto;}
.dc-ed-head{display:flex; align-items:center; gap:10px;}
.dc-emoji-btn{font-size:32px; width:52px; height:52px; border-radius:12px; display:grid; place-items:center; flex-shrink:0; transition:background .15s, transform .2s var(--ease-spring);}
.dc-emoji-btn:hover{background:var(--hover); transform:scale(1.06);}
.dc-ed-title{flex:1; min-width:0; background:none; border:0; outline:none; font-family:var(--font-display); font-size:30px; font-weight:700; letter-spacing:-.03em; color:var(--text); padding:6px 0;}
.dc-ed-title::placeholder{color:var(--muted);}
.dc-ed-tags{margin:8px 0 10px; max-width:520px;}
.dc-ed-tb{padding:4px; border:1px solid var(--border); border-bottom:0; border-radius:11px 11px 0 0; background:var(--surface-2);}
.dc-ed-body{flex:1; min-height:320px; display:grid; gap:0; border:1px solid var(--border); border-radius:0 0 11px 11px; overflow:hidden; background:var(--surface); margin-bottom:8px;}
.dc-ed-body.mode-preview{border-radius:11px;}
.dc-ed-text{width:100%; height:100%; min-height:320px; resize:none; border:0; outline:none; background:transparent; color:var(--text); padding:16px 18px;
  font-family:var(--font-mono); font-size:13.5px; line-height:1.7; tab-size:2;}
.dc-ed-preview{overflow-y:auto; padding:16px 22px; min-height:320px;}
.dc-ed-body.mode-write{grid-template-columns:1fr;} .dc-ed-body.mode-write .dc-ed-preview{display:none;}
.dc-ed-body.mode-preview{grid-template-columns:1fr;} .dc-ed-body.mode-preview .dc-ed-text{display:none;}
.dc-ed-body.mode-split{grid-template-columns:minmax(0,1fr) minmax(0,1fr);} .dc-ed-body.mode-split .dc-ed-preview{border-left:1px solid var(--border); background:var(--surface-2);}
.dc-ed-bar .btn,.dc-ed-bar .seg{flex-shrink:0;}
.dc-ed-foot{flex-shrink:0; display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:8px 28px 12px; max-width:1500px; width:100%; margin:0 auto;}
.dc-emojis{display:grid; grid-template-columns:repeat(8,1fr); gap:4px;}
.dc-emoji-opt{font-size:22px; aspect-ratio:1; border-radius:10px; display:grid; place-items:center; transition:background .15s, transform .2s var(--ease-spring);}
.dc-emoji-opt:hover{background:var(--hover); transform:scale(1.15);}

/* history / deleted lists */
.dc-hist{display:flex; flex-direction:column; gap:4px;}
.dc-hist-row{display:flex; align-items:center; gap:12px; padding:10px; border-radius:11px; text-align:left; width:100%; transition:background .15s;}
button.dc-hist-row:hover{background:var(--hover);}
.dc-hist-row.current{background:var(--accent-soft);}
.dc-hist-row > .ic{color:var(--muted);}
.dc-hist-bar{padding-bottom:12px; margin-bottom:14px; border-bottom:1px solid var(--border);}
.dc-hist-md{font-size:14px;}

/* Sizing follows the docs pane itself (it shares the screen with two sidebars) */
@container dcmain (max-width:960px){
  .dc-doc-wrap{grid-template-columns:minmax(0,1fr); max-width:900px;}
  .dc-toc{display:none;}
}
@container dcmain (max-width:720px){
  .dc-ed-bar .kbd,.dc-ed-bar [data-m="split"]{display:none;}
  .dc-doc-wrap{padding:22px 22px 48px;}
  .dc-home{padding:24px 22px 48px;}
  .dc-ed-scroll{padding:14px 18px 0;}
  .dc-ed-foot{padding:6px 18px 10px;}
}
@container dcmain (max-width:540px){
  .dc-ed-bar .seg button span,.dc-ed-bar [data-cancel] span{display:none;}
  .dc-ed-foot span:last-child{display:none;}
}
@media (min-width:900px) and (max-width:1279px){ .dc{grid-template-columns:240px minmax(0,1fr);} }
@media (max-width:899px){
  .dc{grid-template-columns:1fr;}
  .dc[data-mview="tree"] .dc-main{display:none;}
  .dc[data-mview="doc"] .dc-side{display:none;}
  .dc-side{border-right:0; background:transparent;}
  .dc-side-head{padding:16px 16px 8px;}
  .dc-tree{padding:4px 10px 16px;}
  .dc-link{height:42px; font-size:15px;}
  .dc-twisty,.dc-twisty-sp{width:26px; height:26px;}
  .dc-add{width:34px; height:34px;}
  .dc-bar{padding:8px 12px; min-height:50px;}
  .dc-backbar{display:flex;}
  .dc-banner{margin:12px 14px 0;}
  .dc-doc-wrap{padding:18px 16px 40px;}
  .dc-home{padding:18px 16px 40px;}
  .dc-home-hero{padding:20px;}
  .dc-title{font-size:26px;}
  .dc-emoji{font-size:32px;}
  .dc-ed-scroll{padding:12px 14px 0;}
  .dc-ed-title{font-size:23px;}
  .dc-emoji-btn{width:44px; height:44px; font-size:26px;}
  .dc-ed-foot{padding:6px 14px 10px;}
  .dc-ed-foot span:last-child{display:none;}
  .dc-ed-text{font-size:15px;}
  .dc-emojis{grid-template-columns:repeat(6,1fr);}
}
