*{box-sizing:border-box;margin:0;padding:0}
a{color:inherit;text-decoration:none}
html,body{height:100%}
body{font-family:Inter,-apple-system,'Segoe UI',Roboto,sans-serif;font-size:12px;color:#000;background:#fff}
.app{display:flex;height:100vh}

/* ---- sidebar ---- */
.nav1{width:190px;border-right:1px solid #e5e5e5;padding:14px 8px;background:#fff;flex:none;overflow:auto}
.logo{display:flex;align-items:center;gap:6px;padding:2px 8px 16px;font-weight:700;font-size:15px}
.logo b{background:#000;color:#fff;border-radius:11px;padding:3px 7px;font-size:11px}
.item{display:flex;align-items:center;gap:10px;padding:8px 10px;border-radius:8px;font-size:13px;color:#000;margin-bottom:2px}
.item.active{background:#eee;font-weight:600}
.item .ch{margin-left:auto;font-size:9px}
.ic{width:14px;height:14px;border:1.5px solid #000;border-radius:4px;flex:none}
.nav2{width:210px;border-right:1px solid #e5e5e5;padding:14px 10px;flex:none;overflow:auto}
.co{display:flex;align-items:center;gap:8px;border:1px solid #d4d4d4;border-radius:8px;padding:8px 10px;font-size:13px;font-weight:500;margin-bottom:14px}
.nav2 hr{border:0;border-top:1px solid #e5e5e5;margin:0 0 10px}
.nav-h{font-size:11px;font-weight:600;letter-spacing:.05em;text-transform:uppercase;padding:2px 10px 8px}

/* ---- main ---- */
main{flex:1;min-width:0;padding:12px 16px 0;display:flex;flex-direction:column;height:100vh}
.content{flex:1;overflow:auto;min-height:0}
.ptitle{display:flex;align-items:baseline;gap:10px;margin-bottom:10px;flex:none}
.ptitle h1{font-size:19px;font-weight:700}
.tabsrow{display:flex;align-items:center;gap:10px;margin-bottom:10px;flex-wrap:wrap;flex:none}
.seg{display:inline-flex;background:#f1f2f4;border-radius:8px;padding:3px}
.seg a{padding:6px 14px;border-radius:6px;font-weight:500;font-size:12px;display:flex;gap:6px;align-items:center}
.seg a.on{background:#fff;box-shadow:0 0 0 1px #d9dbe0;font-weight:700}
.seg .n{background:#e4e6ea;border-radius:9px;padding:0 7px;font-size:10.5px;font-weight:700}
.sp{flex:1}
.note{font-size:11px}

/* ---- filters ---- */
.f{border:1px solid #d4d4d4;border-radius:8px;padding:8px 10px;font-size:11px;display:flex;justify-content:space-between;align-items:center;gap:14px;background:#fff;color:#000}
.f.s{border-style:dashed;width:220px;justify-content:flex-start;gap:6px}
.f .cv{font-size:8px;pointer-events:none}
label.f{cursor:pointer;position:relative}
.f select{appearance:none;-webkit-appearance:none;border:0;background:transparent;font:inherit;color:#000;outline:none;cursor:pointer;flex:1;min-width:0}
.f input{border:0;background:transparent;font:inherit;color:#000;outline:none;flex:1;min-width:0}
.f input::placeholder{color:#555}
.f.act{border-color:#000}
.reset{border:0;background:transparent;font:inherit;font-size:11px;text-decoration:underline;cursor:pointer;color:#000;padding:0 4px}
.chips{display:flex;gap:8px;margin-bottom:10px;flex-wrap:wrap;flex:none}
.chip{display:inline-flex;align-items:center;border:1px solid #d4d4d4;border-radius:8px;padding:6px 11px;font-size:11px;background:#fff;color:#000;cursor:pointer;font-family:inherit;gap:6px}
.chip.static{cursor:default}
.chip .cnt{font-weight:700}
.chip.on{border-color:#000;box-shadow:0 0 0 1px #000}
.chip.g{background:#e6f6ea;border-color:#c9e9d1}.chip.y{background:#fff5d1;border-color:#f3e2a3}.chip.r{background:#fde9e9;border-color:#f6cccc}
.chip.b{background:#e6f0fc;border-color:#cbdcf3}.chip.pu{background:#f0eafb;border-color:#dccff2}.chip.n{background:#f3f3f3}
.chip.on{border-color:#000}

/* ---- badges ---- */
.pill{display:inline-block;border:1px solid transparent;border-radius:10px;padding:3px 9px;font-size:10.5px;font-weight:500;color:#000}
.pill.eld{background:#e6f0fc}.pill.loadup{background:#f0eafb}.pill.dyzlix{background:#fdefdd}.pill.safety{background:#e6f6ea}
.b{display:inline-block;border-radius:10px;padding:3px 9px;font-weight:500;color:#000;border:1px solid transparent}
.b.g{background:#e6f6ea;border-color:#c9e9d1}.b.y{background:#fff5d1;border-color:#f3e2a3}.b.r{background:#fde9e9;border-color:#f6cccc}.b.n{background:#f3f3f3;border-color:#e0e0e0}
.btn{display:inline-block;border:1px solid #000;background:#fff;color:#000;border-radius:7px;padding:4px 9px;font-size:10.5px;font-weight:500;cursor:pointer}
.jira{font-weight:600;margin-right:6px;text-decoration:underline}
.st{border:1px solid transparent;border-radius:8px;padding:2px 7px;font-size:10px;font-weight:500;color:#000}
.st.done{background:#e6f6ea;border-color:#c9e9d1}.st.prog{background:#e6f0fc;border-color:#cbdcf3}
.freq{font-weight:700}
.freq.hot{background:#fde9e9;border-radius:8px;padding:2px 7px}
.tg{flex:none;display:inline-flex;width:22px;height:22px;border-radius:50%}
.tg:hover{opacity:.85}
.eye{border:0;background:transparent;cursor:pointer;padding:4px;border-radius:6px;display:inline-flex}
.eye:hover{background:#eee}
.tagcur{font-size:10px;border:1px solid #000;border-radius:8px;padding:1px 7px;font-weight:600;margin-left:6px}

/* ---- kanban ---- */
.kb{flex:1;min-height:0;display:grid;grid-template-columns:repeat(5,minmax(250px,1fr));gap:12px;padding-bottom:12px;overflow-x:auto}
.col{display:flex;flex-direction:column;min-height:0;background:#f6f7f9;border-radius:10px}
.col-h{padding:12px 12px 2px;display:flex;align-items:center;gap:8px}
.col-t{font-weight:700;font-size:13px}
.col-c{border-radius:10px;padding:1px 8px;font-size:11px;font-weight:700;border:1px solid transparent;background:#e4e6ea;white-space:nowrap}
.col-h{padding-bottom:10px}
.col-c.r{background:#fde9e9;border-color:#f6cccc}.col-c.y{background:#fff5d1;border-color:#f3e2a3}.col-c.b{background:#e6f0fc;border-color:#cbdcf3}.col-c.g{background:#e6f6ea;border-color:#c9e9d1}
.col-d{padding:0 12px 10px;font-size:11px}
.col-b{flex:1;overflow:auto;padding:0 10px 10px}
.card{background:#fff;border:1px solid #e1e3e8;border-radius:9px;padding:10px 11px;margin-bottom:8px;cursor:pointer}
.card:hover{border-color:#000}
.c-title{font-weight:600;font-size:12.5px;line-height:1.35;margin-bottom:4px}
.c-meta{font-size:11px;margin-bottom:8px}
.c-tags{display:flex;gap:5px;flex-wrap:wrap;margin-bottom:8px}
.tag{display:inline-block;border-radius:8px;padding:2px 8px;font-size:10.5px;font-weight:500;background:#f1f2f4;color:#000;border:1px solid transparent}
.tag.r{background:#fde9e9;border-color:#f6cccc}.tag.y{background:#fff5d1;border-color:#f3e2a3}.tag.g{background:#e6f6ea;border-color:#c9e9d1}.tag.b{background:#e6f0fc;border-color:#cbdcf3}
.c-foot{display:flex;align-items:center;justify-content:space-between;gap:8px}
.empty-col{padding:22px 8px;text-align:center;font-size:11px}

/* ---- table ---- */
table{width:100%;border-collapse:collapse}
th{position:sticky;top:0;background:#fff;z-index:1;font-weight:600;font-size:11px;text-align:left;padding:10px 5px;border-bottom:1px solid #d4d4d4;color:#000;white-space:nowrap}
th.w{white-space:normal;width:74px}
td{font-size:11px;padding:9px 5px;border-bottom:1px solid #eee;vertical-align:middle;white-space:nowrap;color:#000}
td.wrap{white-space:normal;line-height:1.4;min-width:160px}
table.issues th,table.issues td{border-right:1px solid #e5e5e5}
table.issues th:last-child,table.issues td:last-child{border-right:0}
th.sortable{cursor:pointer;user-select:none}
th.sortable:hover{background:#f6f6f6}
th .arr{display:inline-block;width:12px;margin-left:5px;font-size:8px;color:#000;opacity:.45}
th .arr::after{content:"\21C5"}
th.asc .arr,th.desc .arr{opacity:1}
th.asc .arr::after{content:"\25B2"}
th.desc .arr::after{content:"\25BC"}
.cr{display:flex;align-items:center;justify-content:space-between;gap:10px}
.sub-t{display:block;font-size:9.5px;margin-top:2px}
.empty{display:none;padding:48px;text-align:center;font-size:12px}
.foot{flex:none;display:flex;justify-content:space-between;align-items:center;padding:10px 0 12px;font-size:11px;border-top:1px solid #e5e5e5}

/* ---- issue detail ---- */
.top{display:flex;justify-content:space-between;align-items:center;flex:none;margin-bottom:6px}
.crumb{font-size:11px}
.crumb a{text-decoration:underline}
.back{display:inline-flex;align-items:center;gap:6px;border:1px solid #d4d4d4;border-radius:8px;padding:6px 11px;font-size:11px;font-weight:500;background:#fff}
.back:hover{background:#f3f3f3}
.ph{flex:none;margin-bottom:12px}
.ph h1{font-size:19px;font-weight:700;margin:6px 0 10px;line-height:1.3}
.ds{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:11px}
.cards{display:grid;grid-template-columns:repeat(6,1fr);gap:10px;margin-bottom:12px;flex:none}
.card2{border:1px solid #d4d4d4;border-radius:10px;padding:10px 14px;background:#fff}
.card2 .l{font-size:11px;font-weight:600}
.card2 .v{font-size:22px;font-weight:700;margin-top:4px}
.rsub{display:block;font-size:9.5px;margin-top:2px}

/* ---- workspace ---- */
.addrow{display:flex;gap:8px;align-items:center;margin-bottom:10px;flex:none;flex-wrap:wrap}
.addrow .f.grow{flex:1;min-width:220px;justify-content:flex-start}
.pbtn{border:1px solid #000;background:#000;color:#fff;border-radius:8px;padding:8px 14px;font:inherit;font-size:11px;font-weight:600;cursor:pointer}
.pbtn:hover{opacity:.85}
.sbtn{border:1px solid #d4d4d4;background:#fff;color:#000;border-radius:8px;padding:7px 12px;font:inherit;font-size:11px;font-weight:500;cursor:pointer}
.sbtn:hover{background:#f3f3f3}.sbtn.on{border-color:#000;box-shadow:0 0 0 1px #000}
.x{border:0;background:transparent;cursor:pointer;font-size:15px;line-height:1;padding:2px 6px;border-radius:6px;color:#000}
.x:hover{background:#eee}
table.wsx th,table.wsx td{border-right:1px solid #e5e5e5}
table.wsx th:last-child,table.wsx td:last-child{border-right:0}
table.wsx td.wrap{white-space:normal}
tr.done td.tt{text-decoration:line-through;opacity:.6}
input[type=checkbox].ck{width:15px;height:15px;accent-color:#000;cursor:pointer}
.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px;padding-bottom:16px}
.wc{border:1px solid #e1e3e8;border-radius:10px;padding:12px 14px;background:#fff;cursor:pointer;display:flex;flex-direction:column;gap:8px;min-height:130px}
.wc:hover{border-color:#000}
.wc h3{font-size:13px;font-weight:700;line-height:1.35}
.wc p{font-size:11.5px;line-height:1.45;color:#000;overflow:hidden;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;flex:1}
.wc .m{display:flex;justify-content:space-between;align-items:center;font-size:10.5px;gap:8px}
.wc.new{border-style:dashed;align-items:center;justify-content:center;font-weight:600;font-size:12px}
.thumb{height:130px;border:1px solid #eee;border-radius:7px;background:#fff center/contain no-repeat}
.ed{display:flex;flex-direction:column;flex:1;min-height:0;gap:10px;padding-bottom:12px}
.ed .ti{border:0;border-bottom:1px solid #d4d4d4;font:inherit;font-size:20px;font-weight:700;padding:6px 0;outline:none;color:#000;background:#fff}
.ed textarea{flex:1;min-height:0;border:1px solid #d4d4d4;border-radius:10px;padding:14px;font:inherit;font-size:13px;line-height:1.55;resize:none;outline:none;color:#000}
.ed textarea:focus{border-color:#000}
.tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap;flex:none}
.sw{width:22px;height:22px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px #d4d4d4;cursor:pointer}
.sw.on{box-shadow:0 0 0 2px #000}
.cv-wrap{flex:1;min-height:0;border:1px solid #d4d4d4;border-radius:10px;overflow:hidden;background:#fff}
canvas.sk{display:block;width:100%;height:100%;touch-action:none;cursor:crosshair}
.mod{display:flex;gap:6px;flex-wrap:wrap}
.cv-wrap{position:relative}
.tbox{position:absolute;border:1px dashed #000;background:rgba(255,255,255,.9);font:500 20px Inter,sans-serif;padding:2px 3px;outline:none;z-index:2}

/* ---- sketch page ---- */
.ed2{display:flex;flex-direction:column;gap:14px;padding-bottom:24px;max-width:980px}
.ed2 .ti{border:0;border-bottom:1px solid #d4d4d4;font:inherit;font-size:20px;font-weight:700;padding:6px 0;outline:none;color:#000;background:#fff}
.sec{border:1px solid #e1e3e8;border-radius:10px;padding:12px 14px;display:flex;flex-direction:column;gap:10px}
.sec h3{font-size:13px;font-weight:700}
.sec .cv-wrap{flex:none;height:380px}
.ta{width:100%;border:1px solid #d4d4d4;border-radius:8px;padding:10px 12px;font:inherit;font-size:13px;line-height:1.5;resize:vertical;outline:none;color:#000}
.ta:focus{border-color:#000}
.lbl{font-size:11px;font-weight:600}
.pbtn.live{background:#d93025;border-color:#d93025}
.pbtn:disabled{cursor:not-allowed}
.f select,.f input{min-height:18px}

/* ---- mobile ---- */
@media (max-width:760px){
  .app{flex-direction:column;height:auto;min-height:100vh}
  .nav1{display:none}
  .nav2{width:100%;border-right:0;border-bottom:1px solid #e5e5e5;display:flex;gap:6px;overflow-x:auto;padding:8px 10px;align-items:center;-webkit-overflow-scrolling:touch}
  .nav2 .co,.nav2 hr,.nav2 .nav-h{display:none}
  .nav2 a{flex:none}
  .nav2 .item{white-space:nowrap;margin:0;padding:7px 12px;border:1px solid #e5e5e5;border-radius:16px;font-size:12px}
  .nav2 .item .ic{display:none}
  main{height:auto;padding:12px;overflow:visible}
  .content{overflow-x:auto;overflow-y:visible;min-height:0}
  .tabsrow{gap:8px}
  .f.s{width:100%}
  .f{padding:9px 10px;font-size:13px}
  .addrow .f.grow{min-width:100%}
  .pbtn,.sbtn{padding:10px 14px;font-size:13px}
  .kb{min-height:60vh;scroll-snap-type:x mandatory}
  .col{scroll-snap-align:start;max-height:78vh}
  .cards{grid-template-columns:repeat(2,1fr)}
  .grid{grid-template-columns:1fr}
  .sec .cv-wrap{height:300px}
  .ptitle h1{font-size:17px}
  .foot{flex-wrap:wrap}
  .top{gap:8px;flex-wrap:wrap}
}

/* ---- sketches: text + images, read only ---- */
.ro{font-size:13px;line-height:1.6;white-space:pre-wrap;color:#000}
.imgs{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px}
.im{position:relative;border:1px solid #e1e3e8;border-radius:8px;overflow:hidden;background:#fff;height:110px;cursor:zoom-in}
.im img{width:100%;height:100%;object-fit:cover;display:block}
.im .x{position:absolute;top:4px;right:4px;background:#fff;border:1px solid #d4d4d4;border-radius:50%;width:22px;height:22px;display:flex;align-items:center;justify-content:center;padding:0}
.mdl{position:fixed;inset:0;background:rgba(0,0,0,.75);z-index:50;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:20px}
.mdl img{max-width:min(1100px,94vw);max-height:80vh;border-radius:8px;background:#fff}

.player audio{width:100%;max-width:520px;display:block;margin-bottom:8px}
a.u{text-decoration:underline}
