/* v13: one shell and one look (Arjun, 6 Dec 2026). Laptop: sidebar + aligned columns. Phone: bottom tabs + cards.
   Every table keeps its header row and first column in place (owner rule). Loaded last. */
:root { --blue: #3565B0; --blue-soft: #E7EEF9; --side: 232px; --hair: #ECE8E1; }
body.k-lock { overflow: hidden; }
.k-mut { color: var(--ink3); } .k-late { color: var(--red); font-weight: 600; } .k-today { color: #C06A00; font-weight: 700; } .k-ok { color: var(--green); font-weight: 600; }
.k-done { text-decoration: line-through; color: var(--ink3); } .k-sp { flex: 1; } .k-el { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- shell ---------- */
.side { display: none; }
@media (min-width: 900px) {
  body { font-size: 15px; }
  .bar { position: fixed; z-index: 30; top: 0; left: 0; width: var(--side); height: 104px; margin: 0; padding: 18px 16px 10px; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 10px; background: #FBF9F5; border-right: 1px solid var(--line); }
  .bar .who { justify-content: space-between; } .bar .who select { flex: 1; margin-left: 8px; }
  .side { display: block; position: fixed; z-index: 30; top: 104px; left: 0; bottom: 0; width: var(--side); overflow-y: auto; padding: 4px 8px 24px; background: #FBF9F5; border-right: 1px solid var(--line); }
  .tabs { display: none; }
  main, body.wide main { max-width: 780px; margin: 0 0 0 calc(var(--side) + max(24px, (100vw - var(--side) - 780px) / 2)); padding: 24px 0 48px; }
  body.wide main { max-width: none; margin-left: var(--side); padding: 20px 28px 40px; }
}
#sidenav h3 { margin: 16px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink3); }
#sidenav a { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 14px; cursor: pointer; }
#sidenav a:hover { background: var(--soft); } #sidenav a.on { background: var(--accent-soft); color: var(--accent); font-weight: 650; }
#sidenav .k-ic { width: 18px; text-align: center; color: var(--ink3); font-size: 13px; } #sidenav a.on .k-ic { color: var(--accent); }
#sidenav .k-lb { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#sidenav small { font-size: 12px; color: var(--ink3); font-variant-numeric: tabular-nums; white-space: nowrap; } #sidenav small b { font-weight: 600; }

/* ---------- planner frame ---------- */
.k { font-size: 14px; line-height: 1.4; }
.k-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.k-title { display: flex; align-items: baseline; gap: 10px; min-width: 0; position: relative; }
.k-title h1 { margin: 0; font-size: 24px; } .k-sub { color: var(--ink3); font-size: 13px; }
.k-space { display: none; }
.k-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; width: auto; }
.k-btn:hover { background: var(--soft); } .k-btn.pri { background: var(--accent); border-color: var(--accent); color: #fff; } .k-btn.pri:hover { background: #17483a; } .k-btn:disabled { opacity: .6; }
.k-link { color: var(--accent); font-weight: 600; font-size: 13px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.k-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; max-width: 560px; }
.k-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); font: inherit; cursor: pointer; text-align: left; width: auto; min-height: 0; color: var(--ink); }
.k-tile b { font-size: 24px; line-height: 1.1; font-variant-numeric: tabular-nums; } .k-tile span { font-size: 12.5px; color: var(--ink2); font-weight: 600; }
.k-tile.red b { color: var(--red); } .k-tile.amber b { color: #C06A00; } .k-tile.blue b { color: var(--blue); } .k-tile.zero b { color: var(--ink3); }
.k-needs { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; margin-bottom: 12px; border-radius: 10px; background: var(--amber-soft); color: var(--amber); text-decoration: none; font-size: 13.5px; max-width: 560px; }
.k-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.k-tabs { display: flex; gap: 2px; }
.k-tabs a { padding: 8px 12px; font-weight: 600; color: var(--ink2); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; }
.k-tabs a.on { color: var(--accent); border-color: var(--accent); }
.k-filt { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 0; }
.k-fmore { display: contents; } .k-ftog { display: none; }
.k-filt input[type=search] { width: 170px; min-height: 32px; padding: 5px 10px; border-radius: 8px; font-size: 13.5px; }
.k-sel { display: inline-flex; align-items: center; gap: 6px; padding: 0 0 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); font-size: 13px; color: var(--ink3); min-height: 32px; }
.k-sel select, .k-sel input { border: 0; background-color: transparent; padding: 5px 24px 5px 0; min-height: 30px; font-size: 13.5px; font-weight: 600; color: var(--ink); width: auto; max-width: 150px; box-shadow: none; border-radius: 8px; }
.k-sel input { padding-right: 8px; }
.k-chk { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; min-height: 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); font-size: 13px; font-weight: 600; color: var(--ink2); cursor: pointer; white-space: nowrap; }
.k-chk input { width: 15px; height: 15px; margin: 0; accent-color: var(--accent); } .k-chk.on { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.k-empty { padding: 48px 16px; text-align: center; color: var(--ink3); background: var(--card); border: 1px dashed var(--line); border-radius: 12px; }
.k-note { margin-top: 10px; font-size: 12.5px; color: var(--ink3); }
.k-msg { margin: 4px 0; padding: 8px 12px; border-radius: 8px; font-size: 13px; } .k-msg.err { background: var(--red-soft); color: var(--red); }

/* ---------- small parts ---------- */
.k-av { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; font-size: 11px; font-weight: 700; box-shadow: 0 0 0 2px var(--card); flex: none; }
.k-avs { display: inline-flex; } .k-avs .k-av + .k-av { margin-left: -5px; }
.k-hl { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; white-space: nowrap; color: var(--ink2); }
.k-hl i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink3); } .k-hl.red { color: var(--red); } .k-hl.red i { background: var(--red); } .k-hl.amber { color: var(--amber); } .k-hl.amber i { background: var(--amber); } .k-hl.green { color: var(--green); } .k-hl.green i { background: var(--green); }
.k-stage { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 650; white-space: nowrap; color: var(--c); background: color-mix(in srgb, var(--c) 12%, white); }
.k-type { display: inline-block; padding: 1px 6px; border-radius: 5px; font-size: 11px; font-weight: 650; white-space: nowrap; border: 1px solid var(--line); color: var(--ink2); flex: none; }
.k-type.nw { color: #8A4FBF; border-color: #DCCBEF; background: #F7F1FC; }
.k-prog { display: inline-flex; align-items: center; gap: 8px; } .k-prog i { display: block; width: 56px; height: 5px; border-radius: 3px; background: var(--soft); overflow: hidden; } .k-prog b { display: block; height: 100%; background: var(--accent); border-radius: 3px; } .k-prog em { font-style: normal; font-size: 12.5px; color: var(--ink2); font-variant-numeric: tabular-nums; }
.k-flag { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.k-chip { display: inline-block; padding: 1px 7px; border-radius: 5px; font-size: 11.5px; font-weight: 600; background: var(--soft); color: var(--ink2); white-space: nowrap; flex: none; }
.k-chip.cl { background: var(--blue-soft); color: var(--blue); } .k-meta { font-size: 12px; color: var(--ink3); white-space: nowrap; flex: none; }
.k-code { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; } .k-nx { font-weight: 600; }
.k-caret { display: inline-flex; width: 16px; justify-content: center; color: var(--ink3); font-size: 11px; cursor: pointer; transition: transform .12s; flex: none; } .k-caret.open { transform: rotate(90deg); } .k-caret.ksp { visibility: hidden; }
.k-ck { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; min-height: 0; padding: 0; border-radius: 50%; border: 1.6px solid #B9BFBA; background: var(--card); color: #fff; font-size: 12px; line-height: 1; flex: none; cursor: pointer; }
button.k-ck:hover { border-color: var(--accent); background: var(--accent-soft); } .k-ck.on { background: var(--green); border-color: var(--green); } .k-ck.lock { border-style: dashed; background: var(--soft); cursor: default; } .k-ck.kmv { border-color: transparent; background: var(--blue-soft); color: var(--blue); font-weight: 700; cursor: default; } .k-ck.busy { opacity: .4; }

/* ---------- list (laptop): aligned columns, frozen header ---------- */
.k-list { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.k-r { display: grid; grid-template-columns: minmax(0, 1fr) 76px 92px 92px; align-items: center; column-gap: 12px; padding: 0 14px; min-height: 40px; border-top: 1px solid var(--hair); cursor: pointer; }
.k-r.kl { grid-template-columns: minmax(260px, 1fr) 122px 84px 82px 98px 44px 64px 84px 92px; column-gap: 10px; }
@media (min-width: 900px) and (max-width: 1239px) { .k-r.kl { grid-template-columns: minmax(170px, 1fr) 126px 88px 84px 104px 48px 72px 120px; } .k-r.kl > :nth-child(8) { display: none; } }
.k-rows .k-r:hover { background: #FAF8F4; }
.k-r.k-th { position: sticky; top: 0; z-index: 5; min-height: 34px; border-top: 0; border-bottom: 1px solid var(--line); border-radius: 12px 12px 0 0; background: #FBF9F5; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink3); cursor: default; }
.k-c { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.k-c.n { display: flex; align-items: center; gap: 8px; overflow: hidden; }
.k-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .k-prod { color: var(--ink2); }
.k-ch { display: inline-flex; align-items: center; gap: 6px; flex: none; }
.k-r.ksub .k-c.n { padding-left: 28px; } .k-r.done .k-t { text-decoration: line-through; color: var(--ink3); }
.k-g + .k-g .k-gh { border-top: 1px solid var(--line); }
.k-gh { display: flex; align-items: center; gap: 8px; padding: 10px 14px 8px; cursor: pointer; } .k-gh small { color: var(--ink3); font-size: 12.5px; }
.k-gl { display: inline-block; padding: 2px 9px; border-radius: 6px; font-size: 12px; font-weight: 700; letter-spacing: .02em; color: #fff; background: var(--c); }
.k-list.in { border-radius: 10px; } .k-list.in:empty { display: none; } .k-list.in .k-r:first-child { border-top: 0; } .k-list.in .k-r { grid-template-columns: minmax(0, 1fr) 60px 80px; } .k-list.in .k-c.p { display: none; }
.k-add { display: inline-block; padding: 8px 2px; color: var(--accent); font-weight: 600; font-size: 13.5px; cursor: pointer; }

/* ---------- board ---------- */
.k-board { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: flex-start; -webkit-overflow-scrolling: touch; }
.k-col { flex: 0 0 272px; background: #F1EDE6; border-radius: 12px; max-height: calc(100vh - 210px); display: flex; flex-direction: column; }
.k-colh { display: flex; align-items: center; gap: 8px; padding: 10px 12px; } .k-colh small { color: var(--ink3); }
.k-colb { padding: 0 8px 8px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; } .k-none { padding: 12px; text-align: center; color: var(--ink3); font-size: 13px; }
.k-card { background: var(--card); border-radius: 10px; padding: 10px 12px; box-shadow: 0 1px 2px rgba(30,38,34,.08); cursor: pointer; border-left: 3px solid transparent; }
.k-card.late { border-left-color: var(--red); } .k-card.done .k-ct { text-decoration: line-through; color: var(--ink3); }
.k-ct { font-weight: 600; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } .k-cp { font-size: 12.5px; color: var(--ink2); margin-top: 2px; }
.k-cm { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12.5px; flex-wrap: wrap; }

/* ---------- tables: frozen header row and first column ---------- */
.k-tw { overflow: auto; max-height: calc(100vh - 220px); background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.k-tbl { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; }
.k-tbl th, .k-tbl td { padding: 8px 12px; border-bottom: 1px solid var(--hair); text-align: left; white-space: nowrap; background: var(--card); font-variant-numeric: tabular-nums; }
.k-tbl thead th { position: sticky; top: 0; z-index: 3; background: #FBF9F5; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink3); border-bottom: 1px solid var(--line); }
.k-tbl tbody th { position: sticky; left: 0; z-index: 2; font-weight: 400; min-width: 180px; max-width: 220px; border-right: 1px solid var(--line); }
.k-tbl thead th:first-child { left: 0; z-index: 4; border-right: 1px solid var(--line); }
.k-tbl tbody tr { cursor: pointer; } .k-tbl tbody tr:hover td, .k-tbl tbody tr:hover th { background: #FAF8F4; }
.k-tbl tr.k-tg th, .k-tbl tr.k-tg td { background: #F4F0E9; font-weight: 700; font-size: 12px; color: var(--ink2); padding: 6px 12px; cursor: default; }
.k-pc { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.k-pc.dn { background: var(--green-soft); color: var(--green); } .k-pc.op { background: var(--blue-soft); color: var(--blue); } .k-pc.lt { background: var(--red-soft); color: var(--red); } .k-pc.hd { border: 1px dashed #CFC9BE; color: var(--ink3); padding: 1px 7px; } .k-pc.na { color: #C9C3B8; }
.k-key { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; font-size: 12.5px; color: var(--ink2); } .k-key > span { display: inline-flex; align-items: center; gap: 6px; }
/* timeline */
.k-tbl.tl td, .k-tbl.tl thead th + th, .k-tbl.tl tr.k-tg td { padding: 0; } .k-tbl.tl tbody th { min-width: 150px; padding: 6px 12px; }
.k-tr { position: relative; height: 40px; background-image: repeating-linear-gradient(to right, var(--hair) 0, var(--hair) 1px, transparent 1px, transparent 91px); }
.k-tr.sc { height: 34px; background: none; } .k-tr.sc span { position: absolute; top: 9px; font-size: 11.5px; color: var(--ink3); font-weight: 600; text-transform: none; letter-spacing: 0; padding-left: 4px; border-left: 1px solid var(--line); }
.k-tg .k-tr { height: 26px; background-image: none; }
.k-tb { position: absolute; top: 15px; height: 10px; border-radius: 5px; background: #D9D4CB; } .k-tb.green { background: #BFDCCB; } .k-tb.amber { background: #F1D7A6; } .k-tb.red { background: #F0BDB8; }
.k-td { position: absolute; top: 14px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--card); border: 2px solid var(--blue); } .k-td.Done { background: var(--green); border-color: var(--green); } .k-td.Hidden { border-color: #B9BFBA; } .k-td.late { border-color: var(--red); background: var(--red-soft); }
.k-tm { position: absolute; top: 13px; width: 13px; height: 13px; margin-left: -7px; transform: rotate(45deg); background: var(--ink); border-radius: 2px; } .k-tm.fd { background: var(--accent); }
.k-td.kst, .k-tm.kst { position: static; margin: 0 2px; display: inline-block; flex: none; width: 12px; height: 12px; box-sizing: border-box; }
.k-now { position: absolute; top: 0; bottom: 0; border-left: 2px solid #E07B00; font-style: normal; font-size: 10.5px; font-weight: 700; color: #E07B00; padding-left: 4px; text-transform: none; letter-spacing: 0; } .k-nowl { position: absolute; top: 0; bottom: 0; border-left: 2px solid rgba(224,123,0,.35); }
/* calendar */
.k-calh { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; } .k-calh b { min-width: 130px; text-align: center; font-size: 15px; }
.k-cal { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.k-dow { display: grid; grid-template-columns: repeat(7, 1fr); background: #FBF9F5; border-bottom: 1px solid var(--line); } .k-dow span { padding: 6px 8px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink3); }
.k-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); } .k-day { min-height: 104px; padding: 4px 6px 6px; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.k-day:nth-child(7n) { border-right: 0; } .k-day em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--ink2); } .k-day.out { background: #FBF9F5; } .k-day.out em { color: #C9C3B8; } .k-day.now em { color: #fff; background: #E07B00; border-radius: 10px; padding: 0 6px; align-self: flex-start; }
.k-ev { display: block; padding: 2px 6px; border-radius: 5px; font-size: 12px; font-weight: 600; background: var(--blue-soft); color: var(--blue); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.k-ev.late { background: var(--red-soft); color: var(--red); } .k-ev.done { background: var(--soft); color: var(--ink3); text-decoration: line-through; } .k-ev.lc { background: #2B332F; color: #fff; } .k-ev.fd { background: var(--accent); color: #fff; }

/* ---------- panel ---------- */
.k-shade { position: fixed; inset: 0; z-index: 40; background: rgba(30,38,34,.28); }
.k-panel { position: fixed; z-index: 41; top: 0; right: 0; bottom: 0; width: min(600px, 100vw); background: var(--bg); box-shadow: -8px 0 32px rgba(30,38,34,.16); display: flex; flex-direction: column; font-size: 14px; line-height: 1.4; }
.k-px { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: var(--card); border-bottom: 1px solid var(--line); } .k-crumb { font-size: 13px; color: var(--ink3); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .k-crumb a { color: var(--accent); text-decoration: none; font-weight: 600; }
.k-pb { flex: 1; overflow-y: auto; padding: 16px 20px 40px; -webkit-overflow-scrolling: touch; }
.k-h1 { margin: 0 0 8px; font-size: 20px; line-height: 1.25; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--ink); } .k-h1.task { display: flex; gap: 10px; align-items: flex-start; } .k-h1.task .k-ck { margin-top: 3px; width: 22px; height: 22px; }
.k-chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.k-why { margin-top: 10px; padding: 8px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; } .k-why.red { background: var(--red-soft); color: var(--red); } .k-why.amber { background: var(--amber-soft); color: var(--amber); }
.k-how { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; font-size: 13px; }
.k-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 14px 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.k-facts > div { padding: 9px 12px; min-width: 0; box-shadow: 1px 0 0 var(--hair), 0 1px 0 var(--hair); } .k-facts small { display: block; font-size: 11.5px; color: var(--ink3); font-weight: 600; margin-bottom: 2px; } .k-facts b { font-weight: 650; }
.k-facts select, .k-facts input { width: 100%; min-height: 30px; padding: 3px 24px 3px 8px; font-size: 13.5px; border-radius: 7px; } .k-facts input { padding-right: 6px; }
.k-style { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 4px; border-radius: 10px; background: #F7F1FC; font-size: 13px; color: #5B3A82; }
.k-sh { display: flex; align-items: center; justify-content: space-between; margin: 20px 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink3); } .k-sh .k-link { text-transform: none; letter-spacing: 0; }
.k-stepper { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px; }
.k-st { display: flex; gap: 12px; padding: 10px 0; position: relative; } .k-st + .k-st { border-top: 1px solid var(--hair); }
.k-sti { flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--blue); background: var(--card); display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 11px; color: #fff; }
.k-st.Done .k-sti { background: var(--green); border-color: var(--green); } .k-st.Hidden .k-sti { border: 2px dashed #C4C9C5; } .k-st.late .k-sti { border-color: var(--red); background: var(--red-soft); }
.k-st.Done b, .k-st.Hidden b { font-weight: 500; color: var(--ink2); } .k-st.focus { background: #FFFBEF; margin: 0 -14px; padding-left: 14px; padding-right: 14px; }
.k-stb { flex: 1; min-width: 0; } .k-st1 { display: flex; gap: 8px; align-items: center; } .k-st2 { display: flex; align-items: center; gap: 8px; margin-top: 3px; font-size: 13px; color: var(--ink2); } .k-st3 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; font-size: 13px; }
.k-form { display: flex; flex-direction: column; gap: 8px; width: 100%; } .k-form.kr { flex-direction: row; align-items: center; flex-wrap: wrap; } .k-form input[type=text], .k-form input[type=number] { min-height: 36px; padding: 6px 10px; font-size: 14px; border-radius: 8px; flex: 1; min-width: 140px; } .k-form select { min-height: 36px; font-size: 14px; border-radius: 8px; padding: 6px 28px 6px 10px; width: auto; max-width: 100%; }
.k-form .k-sel select, .k-form .k-sel input { min-height: 32px; padding: 4px 24px 4px 0; } #k-svbox .k-form { margin-bottom: 12px; max-width: 520px; }
.k-file { display: inline-flex; align-items: center; padding: 8px 12px; border: 1px dashed var(--accent); border-radius: 8px; color: var(--accent); font-weight: 600; font-size: 13.5px; cursor: pointer; align-self: flex-start; } .k-file input { display: none; }
.k-ptabs { display: flex; gap: 2px; margin-top: 24px; border-bottom: 1px solid var(--line); } .k-ptabs a { padding: 8px 12px; font-weight: 600; color: var(--ink2); border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; } .k-ptabs a.on { color: var(--accent); border-color: var(--accent); } .k-ptabs small { margin-left: 6px; color: var(--ink3); }
.k-pt { padding-top: 12px; } .k-box { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 6px 14px 10px; }
.k-ckr { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--hair); } .k-ckr span { flex: 1; } .k-ckr small { color: var(--ink3); font-size: 12px; } .k-box > .k-form { margin-top: 10px; }
.k-act { display: flex; gap: 12px; padding: 6px 0; font-size: 13px; border-bottom: 1px solid var(--hair); } .k-act:last-child { border: 0; } .k-act small { flex: none; width: 108px; color: var(--ink3); font-size: 12px; font-variant-numeric: tabular-nums; }
.k-cmt { display: flex; gap: 10px; margin-bottom: 12px; } .k-cmt > div { flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; } .k-cmh { display: flex; gap: 8px; align-items: baseline; } .k-cmh small { color: var(--ink3); font-size: 12px; } .k-cmt p { margin: 2px 0 0; white-space: pre-wrap; } .k-at { color: var(--accent); font-weight: 600; }
.k-cbox { margin-top: 12px; } .k-cbox textarea { width: 100%; min-height: 64px; padding: 8px 10px; font-size: 14px; border-radius: 10px; margin-bottom: 8px; } .k-cbox .k-form.kr { justify-content: space-between; }
.k-stt { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; background: var(--blue-soft); color: var(--blue); } .k-stt.Done { background: var(--green-soft); color: var(--green); } .k-stt.Waiting { background: var(--soft); color: var(--ink2); }

/* lot cards (phone) */
.k-lc { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; cursor: pointer; }
.k-lc1 { display: flex; align-items: center; gap: 8px; } .k-lc1 .k-code { font-size: 16px; } .k-lc2 { color: var(--ink2); font-size: 13.5px; margin: 2px 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-lc3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .k-lc4 { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--hair); font-size: 13.5px; } .k-lc4 > span:first-child { color: var(--ink3); font-size: 12px; }
.k-lc5 { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 12.5px; color: var(--ink3); } .k-lc5 b { color: var(--ink); font-weight: 600; }
.k-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; } .k-steps > div { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 12.5px; color: var(--ink2); min-width: 0; }
.k-agenda section { margin-bottom: 12px; } .k-agenda h4 { margin: 0 0 6px; font-size: 13px; color: var(--ink2); } .k-agenda h4.now { color: #C06A00; } .k-agenda .k-ev { padding: 8px 10px; margin-bottom: 4px; white-space: normal; font-size: 13.5px; }

/* ---------- phone ---------- */
@media (max-width: 899px) {
  body.wide main { padding: 4px 12px calc(96px + env(safe-area-inset-bottom)); }
  .k { font-size: 15px; }
  .k-title h1 { font-size: 24px; padding-right: 22px; } .k-title h1::after { content: '▾'; font-size: 14px; color: var(--ink3); margin-left: 8px; }
  .k-space { display: block; position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; } .k-sub { display: none; }
  .k-tiles, .k-needs { max-width: none; }
  .k-bar { display: block; border: 0; } .k-tabs { border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; } .k-tabs::-webkit-scrollbar { display: none; } .k-tabs a { padding: 10px 12px; }
  .k-filt { padding: 10px 0 0; } .k-filt input[type=search] { flex: 1; width: auto; min-width: 0; min-height: 38px; font-size: 16px; }
  .k-ftog { display: inline-flex; min-height: 38px; } .k-fmore { display: none; flex-basis: 100%; flex-wrap: wrap; gap: 8px; align-items: center; } .k-filt.open .k-fmore { display: flex; }
  .k-chk, .k-sel { min-height: 38px; } .k-sel select { font-size: 15px; }
  /* list rows become cards: title on two lines, facts on one line under it */
  .k-list { background: none; border: 0; } .k-r.k-th { display: none; }
  .k-gh { padding: 14px 2px 8px; position: sticky; top: 0; z-index: 4; background: var(--bg); } .k-g + .k-g .k-gh { border-top: 0; }
  .k-rows { display: flex; flex-direction: column; gap: 6px; }
  .k-r, .k-list.in .k-r { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "n n n" "d p a"; row-gap: 6px; column-gap: 10px; padding: 11px 12px; min-height: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
  .k-list.in .k-r:first-child { border-top: 1px solid var(--line); } .k-list.in { display: flex; flex-direction: column; gap: 6px; } .k-list.in .k-c.p { display: block; }
  .k-r .k-c.n { grid-area: n; align-items: flex-start; flex-wrap: wrap; row-gap: 4px; } .k-r .k-c.a { grid-area: a; } .k-r .k-c.d { grid-area: d; padding-left: 28px; font-size: 13.5px; } .k-r .k-c.p { grid-area: p; font-size: 13px; }
  .k-r .k-caret.ksp { display: none; } .k-r .k-ck { width: 22px; height: 22px; margin-top: 1px; }
  .k-r .k-t { flex: 1 1 0; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-weight: 600; line-height: 1.3; }
  .k-r .k-ch { flex-basis: 100%; padding-left: 30px; flex-wrap: wrap; } .k-r .k-ch:empty { display: none; }
  .k-r.ksub { margin-left: 20px; } .k-r.ksub .k-c.n { padding-left: 0; }
  .k-flag span { display: inline; } .k-r .k-c.p .k-mut, .k-r .k-c.a > .k-mut { display: none; }
  .k-r.kl { display: none; }
  .k-board { margin: 0 -12px; padding: 0 12px 12px; scroll-snap-type: x mandatory; } .k-col { flex-basis: 82vw; scroll-snap-align: center; max-height: none; }
  .k-tw { max-height: calc(100vh - 250px); } .k-tbl.tl tbody th { min-width: 92px; max-width: 110px; padding: 6px 8px; } .k-tbl thead th:first-child { min-width: 92px; }
  .k-panel { width: 100vw; } .k-pb { padding: 14px 14px calc(40px + env(safe-area-inset-bottom)); } .k-px { padding-top: calc(10px + env(safe-area-inset-top)); }
  .k-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .k-facts:not(.task) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .k-form input[type=text], .k-form input[type=number], .k-form select, .k-cbox textarea, .k-facts select, .k-facts input { font-size: 16px; }
  .k-btn { min-height: 38px; } .k-act small { width: 92px; }
}
.k-steps > div:last-child { grid-column: 1 / -1; justify-content: flex-start; gap: 10px; }
.k-card.late { color: var(--ink); }
/* plain list links (More page and others): no browser blue */
a.row, a.row:visited, .list a, .list a:visited { color: var(--ink); text-decoration: none; }
a.row b { font-weight: 600; } a.row .small { color: var(--ink3); }
/* v14: closed tasks stay in place, grey and struck out; a lot opens into its live feed of steps and tasks */
.k-r.done { background: #FAF8F4; } .k-r.done .k-t { text-decoration: line-through; color: var(--ink3); } .k-r.done .k-av { filter: grayscale(1); opacity: .6; } .k-r.done .k-chip { opacity: .6; }
.k-card.done { opacity: .62; background: #FAF8F4; }
.k-feed { background: #FBFAF7; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); } .k-feed .k-r { background: transparent; } .k-feed .k-r.done { background: transparent; }
.k-r.kl .k-caret { margin-right: 4px; cursor: pointer; padding: 6px 4px; }
.k-lc6 { display: block; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--accent); font-weight: 600; font-size: 13.5px; cursor: pointer; }
@media (max-width: 899px) { .k-cards .k-feed { margin: -6px 0 12px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); } }
/* v14 stock and register tables */
.s-page { max-width: none; }
.s-tabs { margin: 4px 0 12px; border-bottom: 1px solid var(--line); } .s-tabs a { text-decoration: none; }
.s-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; } .s-bar input[type=search] { width: 220px; min-height: 36px; }
#s-body .tw { background: var(--card); border: 1px solid var(--line); border-radius: 12px; max-height: calc(100vh - 230px); }
.s-tbl th, .s-tbl td { padding: 8px 10px; text-align: left; } .s-tbl .r { text-align: right; } .s-tbl th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; white-space: normal; min-width: 76px; vertical-align: bottom; background: #FAF8F4 !important; }
.s-tbl td:first-child { font-weight: 600; white-space: nowrap; max-width: 320px; overflow: hidden; text-overflow: ellipsis; } .s-tbl .sep { border-left: 2px solid var(--line); }
.s-tbl tr.s-grp td { background: var(--soft, #F1EEE8) !important; font-weight: 700; font-size: 12.5px; color: var(--ink2, #444); max-width: none; overflow: visible; }
.s-tbl tr.s-cx td { color: var(--ink3); text-decoration: line-through; } .s-tbl .s-clip { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .s-tbl .s-note { max-width: 240px; }
.s-0 { color: #C9C4BA; } .amb { color: var(--amber); font-weight: 600; } .s-tbl .neg { color: var(--red); font-weight: 600; } .s-cxbox { min-width: 220px; white-space: normal; }
.s-cards { display: grid; gap: 10px; } .s-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.s-ch { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; } .s-ch span { color: var(--ink3); font-size: 13px; }
.s-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-top: 8px; } .s-grid div { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; } .s-grid span { color: var(--ink3); } .s-grid b { font-variant-numeric: tabular-nums; }
.s-line { display: flex; justify-content: space-between; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); font-size: 13.5px; } .s-line.neg, .s-grid b.neg { color: var(--red); } .s-line.amb, .s-grid b.amb { color: var(--amber); }
.s-flag { margin-top: 8px; font-size: 12.5px; color: var(--ink3); } .s-lot h2 { margin: 16px 0 0; } .s-lh { margin-bottom: 8px; font-size: 13px; }
.qwarn:empty { display: none; } .qwarn { font-weight: 600; }
@media (max-width: 899px) { .s-bar input[type=search] { flex: 1; width: auto; } .s-grid { grid-template-columns: 1fr; } }

/* ---------- v15: draft designs, style history, creatives planner ---------- */
.x-pills { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 12px; } .x-pills a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: 13px; font-weight: 600; color: var(--ink2); cursor: pointer; white-space: nowrap; }
.x-pills a.on { background: var(--accent); border-color: var(--accent); color: #fff; } .x-pills.act a { color: var(--accent); border-color: var(--accent); border-style: dashed; }
.x-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.x-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--ink); }
.x-card:hover { border-color: var(--accent); } .x-card img, .x-noimg { width: 100%; height: 150px; object-fit: cover; background: var(--soft); } .x-noimg { display: flex; align-items: center; justify-content: center; color: var(--ink3); font-size: 13px; }
.x-cb { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; } .x-c1 { display: flex; justify-content: space-between; align-items: center; gap: 8px; } .x-c2 { font-weight: 700; font-size: 15px; } .x-c3 { font-size: 12.5px; color: var(--ink3); }
.x-st { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--soft); color: var(--ink2); white-space: nowrap; }
.x-st.Working { background: var(--blue-soft); color: var(--blue); } .x-st.Approved { background: var(--green-soft); color: var(--green); } .x-st.Dropped { background: var(--soft); color: var(--ink3); } .x-st.Open { background: var(--red-soft); color: var(--red); }
.x-box { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 12px 0; display: flex; flex-direction: column; gap: 8px; max-width: 860px; }
.x-box h3 { margin: 0; font-size: 15px; } .x-box.go { border-color: var(--accent); } .x-box.warn { border-color: var(--red); background: var(--red-soft); } .x-box.warn h3 { color: var(--red); }
.x-box textarea { width: 100%; min-height: 64px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 14px; }
.x-fg { display: flex; flex-wrap: wrap; gap: 8px 12px; } .x-fg label { display: flex; flex-direction: column; gap: 3px; flex: 1 1 150px; min-width: 130px; } .x-fg label.wide { flex: 3 1 260px; }
.x-fg label span, .x-ms label span { font-size: 12px; font-weight: 600; color: var(--ink3); } .x-fg input, .x-fg select, .x-ms input { min-height: 36px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 14px; width: 100%; background: var(--card); }
.x-ms { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; } .x-ms label { display: flex; flex-direction: column; gap: 3px; } .x-ms label.newp { grid-column: span 2; flex-direction: row; gap: 6px; }
.x-h2 { font-size: 15px; margin: 18px 0 8px; } .x-h2 .k-mut { font-weight: 400; font-size: 12.5px; }
.x-mt th small, .x-mt td small { display: block; font-weight: 400; font-size: 11px; color: var(--ink3); } .x-mt td.chg { background: var(--amber-soft); font-weight: 700; } .x-mt td.chg small { color: var(--amber); } .x-mt td.same { color: var(--ink3); } .x-mt th.r, .x-mt td.r, .x-st-t .r { text-align: right; }
.x-tl { display: flex; flex-direction: column; gap: 8px; max-width: 860px; } .x-n { background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--line); border-radius: 10px; padding: 9px 12px; }
.x-n.Sample, .x-n.sample { border-left-color: var(--blue); } .x-n.Measurement, .x-n.change { border-left-color: var(--amber); } .x-n.Approved { border-left-color: var(--green); } .x-n.issue { border-left-color: var(--ink3); } .x-n.issue.open { border-left-color: var(--red); }
.x-n1 { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; } .x-n2 { margin-top: 4px; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.x-mc { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; } .x-mc span { padding: 2px 8px; border-radius: 6px; background: var(--soft); font-size: 12.5px; } .x-mc span.chg { background: var(--amber-soft); }
.x-kind { font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 5px; } .x-kind.issue { background: var(--red-soft); color: var(--red); } .x-kind.change { background: var(--amber-soft); color: var(--amber); } .x-kind.sample { background: var(--blue-soft); color: var(--blue); }
.x-fixed { margin-top: 6px; font-size: 12.5px; color: var(--green); font-weight: 600; } .x-fx { margin-top: 8px; } .x-oi { font-size: 13.5px; padding: 2px 0; overflow-wrap: anywhere; }
.x-lot { margin: 16px 0; } .x-lh { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px solid var(--line); margin-bottom: 8px; font-size: 15px; } .x-none { padding: 4px 0 8px; font-size: 13px; }
.x-st-t tr[data-go], .x-pt tr[data-go], .x-pr[data-go] { cursor: pointer; } a.x-sc { display: block; text-decoration: none; color: var(--ink); }
.k-past { color: var(--red); font-weight: 700; }
a.x-ig { text-decoration: none; margin-bottom: 8px; }
.x-ig { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--green-soft); color: var(--ink); max-width: 860px; font-size: 14px; }
.x-ig small { color: var(--ink3); font-size: 12px; } .x-ig.late, .x-ig.none { background: var(--red-soft); border-color: var(--red); color: var(--red); } .x-ig.plan { background: var(--amber-soft); border-color: var(--amber); }
.x-live { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 12px 0; font-size: 14px; } .x-deal { padding: 4px 10px; border-radius: 8px; background: #DDF1F2; color: #0E7C86; font-weight: 700; } .x-deal small { font-weight: 400; margin-left: 6px; }
.x-jump { display: flex; gap: 4px; flex-wrap: wrap; position: sticky; top: 56px; z-index: 5; background: var(--bg); padding: 6px 0; } .x-jump a { padding: 4px 9px; border-radius: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink2); background: var(--card); border: 1px solid var(--line); text-decoration: none; }
.x-month { margin: 6px 0 14px; max-width: 980px; } .x-month.cur .x-h2 { color: var(--accent); }
.x-ek { display: inline-block; padding: 1px 7px; border-radius: 5px; font-size: 11.5px; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 12%, white); white-space: nowrap; margin-right: 6px; }
.x-pt td:first-child { white-space: nowrap; font-weight: 600; width: 150px; } .x-pt tr.done td { color: var(--ink3); text-decoration: line-through; } .x-pt tr.late td:nth-child(4) { color: var(--red); font-weight: 700; }
.x-pr { display: flex; gap: 10px; padding: 9px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; text-decoration: none; color: var(--ink); } .x-pd { flex: none; width: 74px; font-weight: 700; font-size: 13px; } .x-pw { min-width: 0; flex: 1; } .x-pw b { display: block; font-size: 14px; overflow-wrap: anywhere; } .x-pw > div { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 3px; font-size: 12.5px; }
.x-pr.done b { text-decoration: line-through; color: var(--ink3); } .x-pr.late { border-color: var(--red); }
.x-file { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--hair); text-decoration: none; color: var(--ink); font-size: 13.5px; flex-wrap: wrap; } .x-file b { overflow-wrap: anywhere; }
@media (max-width: 899px) { .x-grid { grid-template-columns: 1fr 1fr; gap: 8px; } .x-card img, .x-noimg { height: 110px; } .x-jump { top: 52px; } .x-box { padding: 10px 12px; } }
.k-title.x-t h1::after { content: none; } .k-title.x-t h1 { padding-right: 0; }
.x-pt th, .x-st-t th, .x-mt th:first-child { text-align: left; } .x-pt th.r, .x-st-t th.r { text-align: right; }
.x-draft .tw, .x-draft .x-mt { max-width: 860px; }

/* ---------- v15: Gantt ---------- */
.k-tr.gt { height: 34px; background-image: linear-gradient(to right, var(--hair) 0, var(--hair) 1px, transparent 1px); }
.k-gb { position: absolute; top: 9px; height: 16px; border-radius: 5px; background: var(--blue); } .k-gb.Done { background: #9CC7AE; } .k-gb.Hidden { background: var(--card); border: 1.5px dashed #B9BFBA; box-sizing: border-box; } .k-gb.Waiting { background: #C9CEC9; } .k-gb.late { background: var(--red); }
.k-gx { position: absolute; top: 15px; height: 4px; background: repeating-linear-gradient(to right, var(--red) 0, var(--red) 4px, transparent 4px, transparent 7px); }
.k-gd { position: absolute; top: 9px; font-size: 11.5px; color: var(--ink3); white-space: nowrap; line-height: 16px; } .k-gn { position: absolute; left: 8px; top: 9px; font-size: 11.5px; color: var(--ink3); }
.k-gb.kst { position: static; display: inline-block; width: 22px; height: 10px; flex: none; }
.k-tbl.gt tbody th { min-width: 240px; max-width: 300px; } .k-tbl.gt tr.k-grow th { padding: 0; height: 34px; } .k-gw { display: flex; align-items: center; gap: 8px; justify-content: space-between; height: 34px; width: 300px; padding: 0 12px 0 24px; box-sizing: border-box; overflow: hidden; }
.k-gt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; } .k-grow.Done .k-gt { color: var(--ink3); text-decoration: line-through; } .k-grow.Hidden .k-gt { color: var(--ink3); }
.k-tbl.gt tr.k-tg { cursor: pointer; } .k-tbl.gt tr.k-tg th { max-width: 300px; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 899px) { .k-tbl.gt tbody th { min-width: 132px; max-width: 132px; } .k-gw { width: 132px; padding: 0 6px 0 10px; font-size: 12px; } .k-gw .k-avs { display: none; } .k-tbl.gt thead th:first-child { min-width: 132px; } }
.k-gs { flex: none; font-size: 11.5px; color: var(--ink3); font-weight: 400; text-decoration: none; white-space: nowrap; }
.k-gs i { font-style: normal; }
@media (max-width: 899px) { .k-gs i { display: none; } .k-gs { font-size: 11px; } .k-gw .k-gt { flex: 1; } }
@media (max-width: 899px) { .k-tbl.gt thead th:first-child, .k-tbl.gt tr.k-tg th { width: 150px; min-width: 150px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; box-sizing: border-box; } .k-tbl.gt tr.k-tg th { white-space: normal; line-height: 1.25; } .k-tbl.gt tbody th { min-width: 150px; max-width: 150px; } .k-gw { width: 150px; } }

/* ---------- v16: clearer board, calmer controls, How to use (Arjun, 6 Dec 2026) ---------- */
:root { --side: 252px; }
@media (min-width: 900px) { body.wide main { box-sizing: border-box; width: calc(100vw - var(--side)); max-width: calc(100vw - var(--side)); min-width: 0; } }
html, body { overflow-x: hidden; }
#sidenav a { padding: 8px 10px; } #sidenav .k-ic { font-size: 14px; }
input[type=search]:focus, .k-filt input[type=search]:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.k-filt input[type=search] { border: 1px solid var(--line); background: var(--card); }
.k-help { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--accent); font-weight: 700; text-decoration: none; }
@media (min-width: 900px) { .k-help { display: none; } }
@media (max-width: 899px) { .bar { gap: 8px; } .bar .who { margin-left: auto; } }
/* board */
.k-bcap { font-size: 12.5px; color: var(--ink3); margin: -2px 0 10px; }
.k-board { scrollbar-width: thin; } .k-col { box-shadow: inset 0 0 0 1px var(--hair); }
.k-colh { position: sticky; top: 0; padding: 12px 12px 10px; justify-content: space-between; } .k-colh .k-gl { font-size: 12.5px; padding: 3px 10px; } .k-colh small { font-size: 12px; font-weight: 600; color: var(--ink2); background: rgba(255,255,255,.7); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.k-col.nil { flex-basis: auto; background: transparent; box-shadow: inset 0 0 0 1px var(--line); } .k-col.nil .k-colh { flex-direction: column; align-items: flex-start; gap: 6px; } .k-col.nil .k-colh small { background: none; padding: 0; color: var(--ink3); font-weight: 500; } .k-col.nil .k-gl { opacity: .55; }
.k-board.lotb .k-col:not(.nil) { flex-basis: 288px; }
.k-board.lotb .k-card { padding: 12px; } .k-board.lotb .k-ct { display: flex; align-items: center; gap: 6px; font-size: 15px; } .k-board.lotb .k-cp { margin: 2px 0 8px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.k-cl { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 26px; font-size: 13px; border-top: 1px solid var(--hair); } .k-cl small { color: var(--ink3); font-size: 12px; flex: none; } .k-cl > span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 899px) {
  .k-board.lotb { flex-direction: column; overflow: visible; margin: 0; padding: 0 0 12px; scroll-snap-type: none; } .k-board.lotb .k-col, .k-board.lotb .k-col:not(.nil) { flex: none; width: 100%; max-height: none; } .k-board.lotb .k-colb { overflow: visible; }
  .k-board.lotb .k-col.nil { display: none; } .k-board.lotb .k-colh { position: sticky; top: 0; z-index: 3; background: #F1EDE6; border-radius: 12px 12px 0 0; }
}
/* guide */
.g-wrap { max-width: 860px; } .g-wrap h1 { margin-bottom: 10px; }
.g-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; } .g-tabs a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink2); font-weight: 600; font-size: 14px; text-decoration: none; } .g-tabs a.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.g-box { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 12px; } .g-box h2 { margin: 0 0 2px; font-size: 20px; } .g-box h3 { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink3); } .g-box p { margin: 0; color: var(--ink2); }
.g-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.g-box ul { margin: 0; padding-left: 18px; } .g-box li { margin: 4px 0; line-height: 1.4; }
.g-steps { list-style: none; margin: 0; padding: 0; } .g-steps li { margin: 0; border-top: 1px solid var(--hair); } .g-steps li:first-child { border-top: 0; }
.g-steps a { display: flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--ink); text-decoration: none; } .g-steps i { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-style: normal; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; } .g-steps div { flex: 1; min-width: 0; } .g-steps b { display: block; font-weight: 600; } .g-steps span { color: var(--ink2); font-size: 13.5px; } .g-steps em { font-style: normal; color: var(--ink3); }
.g-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .g-two:empty { display: none; }
.g-lists { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; } .g-lists a { display: block; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); } .g-lists a:hover, .g-steps a:hover b { color: var(--accent); } .g-lists b { display: block; } .g-lists span { font-size: 13px; color: var(--ink2); }
.g-key > div { display: flex; align-items: center; gap: 12px; padding: 7px 0; border-top: 1px solid var(--hair); } .g-key > div:first-child { border-top: 0; } .g-key > div > span { flex: 0 0 150px; } .g-key small { color: var(--ink2); font-size: 13.5px; }
@media (max-width: 899px) { .g-two { grid-template-columns: 1fr; } .g-key > div { flex-direction: column; align-items: flex-start; gap: 2px; } .g-key > div > span { flex: none; } }
.g-box h2 { text-transform: none; letter-spacing: 0; color: var(--ink); } .g-steps span { display: block; line-height: 1.35; }

/* ---------- v17: what is still to send on the fabric and trims step ---------- */
.k-chip.kgv { background: #FBF0DC; color: #8A5A00; } .k-chip.kgv.short { background: #FBE6E3; color: var(--red); }
.k-gv { flex-basis: 100%; width: 100%; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; } .k-gvh b { display: block; } .k-gvh small { color: var(--ink3); font-size: 12px; }
.k-gv .k-tw { width: 100%; max-height: 300px; } .k-tbl.kgt th, .k-tbl.kgt td { padding: 6px 10px; } .k-tbl .r { text-align: right; } .k-tbl.kgt tbody th { min-width: 150px; max-width: 220px; white-space: normal; }
.k-lc4.kgl { border: 0; padding-top: 0; margin-top: -2px; } .k-cl .k-chip { white-space: nowrap; }
@media (max-width: 899px) { .k-tbl.kgt tbody th { min-width: 120px; max-width: 140px; } }

/* v17.1 */
.k-gvh small { display: block; } .k-gvh small.k-late { color: var(--red); font-weight: 600; }

/* v21: connected tasks (waits on / goes with / unlocks), shown to everyone */
.k-meta.k-wt { color: var(--amber, #9a6700); } .k-meta.k-nx { color: var(--ink3); }
.k-cnb { display: flex; flex-direction: column; gap: 10px; margin: 2px 0 10px; }
.k-cng > small { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--ink3); margin-bottom: 4px; }
.k-cn { display: block; position: relative; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: inherit; text-decoration: none; margin-bottom: 4px; }
.k-cn i, .k-fnow i { position: absolute; left: -25px; top: 9px; width: 16px; height: 16px; box-sizing: border-box; border-radius: 50%; border: 1.5px solid var(--ink3); background: var(--bg); font-style: normal; font-size: 10px; line-height: 13px; text-align: center; color: #fff; }
.k-cn.done i, .k-fnow.done i { background: var(--green); border-color: var(--green); } .k-cn.late i { border-color: var(--red); } .k-cn.wait i { border-style: dashed; }
.k-cn .k-cnt { display: block; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; } .k-cn.done .k-cnt { color: var(--ink3); text-decoration: line-through; }
.k-cn small { display: block; font-size: 12px; color: var(--ink3); } .k-cn.late small { color: var(--red); }
.k-st3.k-cnl { font-size: 12.5px; color: var(--ink3); }
/* v21.1: the flow line, and smooth, minimal motion. One curve everywhere; nothing bounces; nothing moves when the phone asks for reduced motion. */
:root { --ease: cubic-bezier(.32, .72, 0, 1); }
.k-flow { position: relative; padding-left: 28px; }
.k-flow::before { content: ''; position: absolute; left: 10px; top: 26px; bottom: 16px; width: 2px; border-radius: 2px; background: var(--line); transform-origin: top; }
.k-fnow { position: relative; padding: 9px 12px; border-radius: 10px; background: var(--accent-soft, #E8F1EC); border: 1px solid transparent; }
.k-fnow b { display: block; font-size: 14px; line-height: 1.3; overflow-wrap: anywhere; } .k-fnow small { display: block; font-size: 12px; color: var(--ink3); }
.k-fnow i { top: 11px; border-color: var(--accent, #1F5A45); border-width: 2px; } .k-fnow.go i { background: var(--accent, #1F5A45); box-shadow: 0 0 0 4px var(--accent-soft, #E8F1EC); } .k-fnow.wait i { border-style: dashed; }
.k-cn { transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease); }
.k-cn:hover { border-color: var(--ink3); } .k-cn:active { transform: scale(.985); }
@keyframes k-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes k-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes k-draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes k-slide { from { transform: translateX(28px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes k-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes k-glow { 0% { box-shadow: 0 0 0 0 rgba(31,90,69,0); background-color: var(--accent-soft, #E8F1EC); } 30% { box-shadow: 0 0 0 4px rgba(31,90,69,.18); } 100% { box-shadow: 0 0 0 0 rgba(31,90,69,0); } }
.k-panel.k-enter { animation: k-slide .34s var(--ease) both; } .k-shade.k-enter { animation: k-fade .28s ease-out both; }
.k-panel.k-new:not(.k-enter) .k-pb { animation: k-fade .24s ease-out both; }
.k-panel.k-new .k-flow::before { animation: k-draw .7s var(--ease) .12s both; }
.k-panel.k-new .k-flow .k-cn, .k-panel.k-new .k-flow .k-fnow, .k-panel.k-new .k-flow .k-cng > small { animation: k-rise .42s var(--ease) both; animation-delay: calc(.14s + var(--i, 0) * .07s); }
.k-panel.k-new .k-st { animation: k-rise .36s var(--ease) both; } .k-panel.k-new .k-st:nth-child(2) { animation-delay: .04s; } .k-panel.k-new .k-st:nth-child(3) { animation-delay: .08s; } .k-panel.k-new .k-st:nth-child(4) { animation-delay: .12s; } .k-panel.k-new .k-st:nth-child(n+5) { animation-delay: .16s; }
.k-r.k-glow, .k-cn.k-glow { animation: k-glow 1.6s var(--ease) .2s 2 both; }
.k-ck, .k-btn, .k-chip { transition: background-color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease); } .k-btn:active { transform: scale(.97); }
@media (max-width: 899px) { .k-panel.k-enter { animation-name: k-up; } .k-r { transition: transform .16s var(--ease); } .k-r:active { transform: scale(.985); } }
@media (prefers-reduced-motion: reduce) { .k-panel, .k-shade, .k-pb, .k-flow::before, .k-flow *, .k-st, .k-r, .k-cn { animation: none !important; transition: none !important; } }
