@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@600;700&display=swap");

:root {
  --bg: #f5f4f0; --card: #fff; --ink: #1d2433; --ink2: #3a4152; --muted: #6b7080; --faint: #9a9ea8; --line: #e6e3dc; --line2: #efede8;
  --brand: #1d2433; --brand-ink: #fff; --hover: #f0eee9; --sel: #e9edf6;
  --green: #1f8a4c; --green-bg: #e7f4ec; --amber: #a86b0c; --amber-bg: #fbf1de; --red: #c0392b; --red-bg: #fbe9e7; --grey: #7b808b; --grey-bg: #eeede9; --blue: #2f5fb3; --blue-bg: #e8eef9;
  --r: 10px; --side: 232px; --side-mini: 64px;
  --font: "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif; --head: "Plus Jakarta Sans", var(--font);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
body { overflow-x: hidden; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--head); margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 22px; } h2 { font-size: 16px; } h3 { font-size: 14px; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }

/* ---------- frame ---------- */
.wi-app { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns .18s; }
.wi-app.mini { grid-template-columns: var(--side-mini) minmax(0, 1fr); }
.wi-app.mini.hover { grid-template-columns: var(--side) minmax(0, 1fr); }
.wi-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; overflow-x: hidden; background: #fbfaf7; border-right: 1px solid var(--line); padding: 14px 10px; display: flex; flex-direction: column; gap: 2px; }
.wi-brand { display: flex; align-items: center; gap: 6px; padding: 2px 2px 4px 8px; white-space: nowrap; min-height: 40px; }
.wi-logo-link { display: block; flex: 1; min-width: 0; }
.wi-logo-full { height: 30px; width: auto; display: block; }
.wi-logo-mark { height: 32px; width: 32px; display: none; }
.wi-team-tag { font-size: 11px; color: var(--muted); padding: 0 10px 8px; letter-spacing: .02em; white-space: nowrap; }
.wi-player { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #111; border-radius: 10px; overflow: hidden; }
.wi-player.tall { aspect-ratio: auto; height: min(70vh, 640px); }
.wi-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.wi-logo { width: 30px; height: 30px; border-radius: 8px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 13px; flex: none; }
.wi-nav-h { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); padding: 12px 10px 4px; white-space: nowrap; }
.wi-nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--ink2); white-space: nowrap; min-height: 38px; }
.wi-nav a:hover { background: var(--hover); text-decoration: none; }
.wi-nav a.on { background: var(--sel); color: var(--ink); font-weight: 600; }
.wi-nav svg { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wi-nav .lbl { overflow: hidden; text-overflow: ellipsis; }
.wi-nav .cnt { margin-left: auto; font-size: 11px; background: var(--red); color: #fff; border-radius: 10px; padding: 0 6px; }
.wi-app.mini:not(.hover) .wi-side .lbl, .wi-app.mini:not(.hover) .wi-nav-h, .wi-app.mini:not(.hover) .wi-side .cnt, .wi-app.mini:not(.hover) .wi-team-tag, .wi-app.mini:not(.hover) .wi-logo-full { display: none; }
.wi-app.mini:not(.hover) .wi-logo-mark { display: block; }
.wi-app.mini:not(.hover) .wi-brand { flex-direction: column; padding: 2px 0 10px; gap: 8px; }
.wi-app.mini:not(.hover) .wi-nav a { justify-content: center; padding: 8px 0; }
.wi-collapse { display: grid; place-items: center; background: none; border: 0; color: var(--muted); width: 32px; height: 32px; border-radius: 8px; cursor: pointer; flex: none; }
.wi-collapse:hover { background: var(--hover); }
.wi-collapse svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; flex: none; }
.wi-main { min-width: 0; display: block; }
.wi-top { display: flex; align-items: center; gap: 8px; padding: 12px 28px; min-height: 60px; }
.wi-top .wi-title { font-family: var(--head); font-weight: 700; font-size: 20px; margin-right: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wi-content { padding: 4px 28px 60px; max-width: 1400px; width: 100%; }
.wi-iconbtn { position: relative; width: 40px; height: 40px; border-radius: 10px; border: 1px solid transparent; background: none; display: grid; place-items: center; cursor: pointer; color: var(--ink2); flex: none; }
.wi-iconbtn:hover { background: var(--hover); }
.wi-iconbtn svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.wi-dot { position: absolute; top: 6px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--red); color: #fff; font-size: 10px; display: grid; place-items: center; font-weight: 600; }
.wi-av { width: 32px; height: 32px; border-radius: 50%; background: #d9dce4; color: var(--ink); display: grid; place-items: center; font-weight: 600; font-size: 12px; overflow: hidden; flex: none; object-fit: cover; }
.wi-av.sm { width: 24px; height: 24px; font-size: 10px; }
.wi-av.lg { width: 72px; height: 72px; font-size: 24px; }
.wi-menu { position: fixed; z-index: 60; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(20,24,35,.14); min-width: 240px; max-width: calc(100vw - 16px); padding: 6px; }
.wi-menu a, .wi-menu button.mi { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; background: none; border: 0; padding: 9px 10px; border-radius: 8px; color: var(--ink); cursor: pointer; min-height: 40px; }
.wi-menu a:hover, .wi-menu button.mi:hover { background: var(--hover); text-decoration: none; }
.wi-menu .who { padding: 10px; border-bottom: 1px solid var(--line2); margin-bottom: 4px; }
.wi-menu .who b { display: block; }
.wi-menu .who small { color: var(--muted); display: block; word-break: break-all; }
.wi-notes { width: 360px; max-height: 70vh; overflow-y: auto; }
.wi-note { display: block; padding: 10px; border-radius: 8px; color: var(--ink) !important; border-bottom: 1px solid var(--line2); }
.wi-note.unread { background: #f3f6fc; }
.wi-note small { color: var(--muted); display: block; }
.wi-mtop { display: none; }

@media (max-width: 860px) {
  .wi-app, .wi-app.mini { grid-template-columns: minmax(0, 1fr); }
  .wi-side { display: none; position: fixed; inset: 56px 0 0 0; height: auto; z-index: 55; border-right: 0; padding-bottom: 40px; }
  .wi-app.navopen .wi-side { display: flex; }
  .wi-app.mini .wi-side .lbl, .wi-app.mini .wi-nav-h { display: initial; }
  .wi-brand { display: none !important; }
  .wi-mtop { display: flex; position: sticky; top: 0; z-index: 56; align-items: center; gap: 4px; height: 56px; padding: 0 8px; background: #fbfaf7; border-bottom: 1px solid var(--line); }
  .wi-mtop .wi-mbrand { margin-right: auto; display: flex; align-items: center; min-width: 0; padding-left: 2px; }
  .wi-team-tag { display: none; }
  .wi-mtop .wi-logo { width: 28px; height: 28px; }
  .wi-top { padding: 14px 16px 6px; min-height: 0; }
  .wi-top .wi-tuser { display: none; } .wi-top { flex-wrap: wrap; } .wi-top .wi-title { flex: 1 1 auto; } #wi-actions:empty { display: none; }
  .wi-top .wi-title { font-size: 19px; }
  .wi-content { padding: 4px 14px 60px; }
  .wi-notes { width: calc(100vw - 16px); }
}

/* ---------- building blocks ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; min-width: 0; }
.card + .card { margin-top: 14px; }
.card-h { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.card-h h2 { margin-right: auto; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .g2, .g3 { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .g4 { grid-template-columns: 1fr 1fr; } }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.sp { flex: 1; }
.muted { color: var(--muted); } .small { font-size: 12px; } .nowrap { white-space: nowrap; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: block; color: var(--ink); min-width: 0; }
a.stat:hover { text-decoration: none; border-color: #cfcac0; }
.stat .k { font-size: 12px; color: var(--muted); display: flex; gap: 4px; align-items: center; }
.stat .v { font-family: var(--head); font-size: 24px; font-weight: 700; margin-top: 2px; }
.stat.red .v { color: var(--red); } .stat.amber .v { color: var(--amber); } .stat.green .v { color: var(--green); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; font-weight: 500; white-space: nowrap; text-decoration: none !important; }
.btn:hover { background: var(--hover); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.primary:hover { background: #2c3547; }
.btn.danger { color: var(--red); }
.btn.sure { background: var(--red); border-color: var(--red); color: #fff; }
.btn.ghost { border-color: transparent; background: none; }
.btn.sm { min-height: 32px; padding: 0 10px; font-size: 13px; }
.btn:disabled { opacity: .55; cursor: default; }
.btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (pointer: coarse) { .btn.sm { min-height: 44px; } }

label.f { display: block; font-size: 13px; font-weight: 500; color: var(--ink2); margin-bottom: 12px; min-width: 0; }
label.f > span.l { display: flex; gap: 4px; align-items: center; margin-bottom: 5px; }
.in, select.in, textarea.in { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; background: #fff; font-size: 14px; outline: none; }
textarea.in { min-height: 80px; resize: vertical; }
.in:focus { border-color: #8a94ab; box-shadow: 0 0 0 3px rgba(47,95,179,.12); }
.in[readonly] { background: #f7f6f3; color: var(--muted); }
select.in { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7080' stroke-width='1.6' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; font-size: 14px; }
.chk { display: flex; align-items: center; gap: 8px; min-height: 36px; cursor: pointer; font-size: 14px; }
.chk input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.hint { font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 4px; }
.err { background: var(--red-bg); color: var(--red); border-radius: 9px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px; }
.err details { margin-top: 6px; color: var(--ink2); } .err summary { cursor: pointer; font-size: 12px; }
.ok { background: var(--green-bg); color: var(--green); border-radius: 9px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px; }
.info { background: var(--blue-bg); color: #24467f; border-radius: 9px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px; }
.warn { background: var(--amber-bg); color: #7a4d06; border-radius: 9px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px; }

.pill { display: inline-flex; align-items: center; gap: 4px; padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--grey-bg); color: var(--grey); white-space: nowrap; line-height: 20px; }
.pill.green { background: var(--green-bg); color: var(--green); } .pill.amber { background: var(--amber-bg); color: var(--amber); } .pill.red { background: var(--red-bg); color: var(--red); } .pill.blue { background: var(--blue-bg); color: var(--blue); }
.tag { display: inline-block; padding: 0 7px; border-radius: 6px; font-size: 12px; background: #f1efe9; color: var(--ink2); margin: 0 4px 4px 0; line-height: 22px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--grey); flex: none; }
.dot.green { background: var(--green); } .dot.amber { background: #d69e2e; } .dot.red { background: var(--red); }

/* tables */
.tw { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-weight: 500; font-size: 12px; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 10px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr.click { cursor: pointer; } table.t tr.click:hover td { background: #faf9f6; }
table.t td.num, table.t th.num { text-align: right; white-space: nowrap; }
.sub { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
@media (max-width: 760px) {
  table.t.stack, table.t.stack tbody, table.t.stack tr, table.t.stack td { display: block; width: 100%; }
  table.t.stack thead { display: none; }
  table.t.stack tr { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; background: #fff; }
  table.t.stack td { border: 0; padding: 5px 0; display: flex; gap: 10px; justify-content: space-between; align-items: center; text-align: right; }
  table.t.stack td[data-l]::before { content: attr(data-l); color: var(--muted); font-size: 12px; text-align: left; flex: none; }
  table.t.stack td.main { display: block; text-align: left; font-weight: 500; }
  table.t.stack td.num { text-align: right; }
  .tw { margin: 0; padding: 0; overflow: visible; }
}

/* tabs / segmented */
.seg { display: inline-flex; background: #ebe9e3; border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; max-width: 100%; }
.seg button { border: 0; background: none; padding: 0 12px; min-height: 34px; border-radius: 8px; cursor: pointer; color: var(--ink2); font-weight: 500; font-size: 13px; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 12px; cursor: pointer; color: var(--muted); font-weight: 500; border-bottom: 2px solid transparent; white-space: nowrap; min-height: 44px; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--ink); }

/* toolbar */
.bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.bar .in, .bar select.in { width: auto; min-width: 140px; }
.bar .search { flex: 1 1 200px; min-width: 160px; max-width: 320px; }
@media (max-width: 600px) { .bar .in, .bar select.in { flex: 1 1 140px; min-width: 0; } .bar .search { max-width: none; flex-basis: 100%; } }

/* progress */
.prog { height: 6px; border-radius: 4px; background: #ecebe6; overflow: hidden; min-width: 60px; }
.prog > i { display: block; height: 100%; background: var(--green); border-radius: 4px; }
.prog.amber > i { background: #d69e2e; } .prog.red > i { background: var(--red); } .prog.grey > i { background: var(--grey); }

/* skeleton / empty */
.sk { background: linear-gradient(90deg, #eeece7 25%, #f6f5f1 50%, #eeece7 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 6px; height: 14px; margin: 10px 0; }
@keyframes sk { to { background-position: -200% 0; } }
.empty { text-align: center; padding: 34px 16px; color: var(--muted); }
.empty b { display: block; color: var(--ink); margin-bottom: 4px; font-size: 15px; }
.empty .btn { margin-top: 12px; }

/* tooltip */
.ti { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; border: 1px solid #c8c5bd; color: var(--muted); font-size: 10px; font-weight: 700; cursor: help; font-style: normal; flex: none; position: relative; }
.wi-tip { position: fixed; z-index: 90; background: #1d2433; color: #fff; font-size: 12px; line-height: 1.45; padding: 8px 10px; border-radius: 8px; max-width: 260px; pointer-events: none; font-weight: 400; }

/* drawer + modal */
.wi-shade { position: fixed; inset: 0; background: rgba(20,24,35,.32); z-index: 70; }
.wi-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(560px, 100vw); background: #fff; z-index: 71; display: flex; flex-direction: column; box-shadow: -12px 0 32px rgba(20,24,35,.15); }
.wi-drawer .dh { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.wi-drawer .dh h2 { margin-right: auto; font-size: 17px; min-width: 0; overflow-wrap: anywhere; }
.wi-drawer .db { padding: 18px; overflow-y: auto; flex: 1; }
.wi-drawer .df { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.wi-modal { position: fixed; z-index: 71; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 40px); overflow-y: auto; background: #fff; border-radius: 14px; padding: 20px; box-shadow: 0 20px 50px rgba(20,24,35,.2); }
.wi-modal h2 { margin-bottom: 12px; font-size: 17px; }

.wi-toast { position: fixed; z-index: 95; left: 50%; bottom: 24px; transform: translateX(-50%); background: #1d2433; color: #fff; padding: 11px 16px; border-radius: 10px; font-size: 14px; max-width: calc(100vw - 32px); box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.wi-toast.bad { background: var(--red); }

/* task things */
.tk-title { font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.st { font-size: 12px; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.col { background: #efede8; border-radius: 12px; padding: 10px; min-height: 120px; }
.col h3 { font-size: 13px; display: flex; gap: 6px; align-items: center; margin: 2px 4px 10px; }
.kc { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; }
.kc:hover { border-color: #cfcac0; }
.kc .sub { margin-top: 6px; }
.comment { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line2); }
.comment.sys { color: var(--muted); font-size: 12px; padding: 6px 0; }
.comment.client .cb { background: var(--amber-bg); border-radius: 8px; padding: 6px 10px; }
.cb { flex: 1; min-width: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; font-size: 14px; }
.kv > div:nth-child(odd) { color: var(--muted); font-size: 13px; }
@media (max-width: 500px) { .kv { grid-template-columns: 1fr; gap: 2px; } .kv > div:nth-child(even) { margin-bottom: 8px; } }

/* calendar list */
.day { border-top: 1px solid var(--line); padding: 12px 0; display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; }
.day.today .dl b { color: var(--blue); }
.slot { border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 8px; padding: 8px 12px; margin-bottom: 6px; cursor: pointer; background: #fff; }
.slot.done { border-left-color: var(--green); } .slot.cancelled { border-left-color: var(--grey); opacity: .6; }
@media (max-width: 600px) { .day { grid-template-columns: minmax(0, 1fr); gap: 6px; } .pst { min-width: 92px; } }

/* auth pages */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 14px; }
.auth .box { width: min(420px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.auth .brandrow { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 700; margin-bottom: 22px; }
.auth h1 { font-size: 22px; margin-bottom: 6px; }
.auth p.lead { color: var(--muted); margin: 0 0 18px; }
.meter { height: 5px; border-radius: 3px; background: #ecebe6; margin-top: 6px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-family: ui-monospace, Menlo, monospace; background: #f6f5f1; padding: 12px; border-radius: 10px; font-size: 14px; }
.qr { display: grid; place-items: center; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; width: max-content; margin: 8px 0; }
.qr svg, .qr img { width: 180px; height: 180px; display: block; }

/* tour */
.wi-tour { position: fixed; z-index: 92; background: #fff; border-radius: 12px; box-shadow: 0 16px 40px rgba(20,24,35,.25); padding: 16px; width: min(320px, calc(100vw - 24px)); }
.wi-tour-ring { position: fixed; z-index: 91; border-radius: 10px; box-shadow: 0 0 0 9999px rgba(20,24,35,.35); pointer-events: none; transition: all .2s; }

/* print (invoice) */
@media print {
  body { background: #fff; }
  .wi-side, .wi-mtop, .wi-top, .noprint { display: none !important; }
  .wi-app { display: block; }
  .wi-content { padding: 0; max-width: none; }
  .card { border: 0; padding: 0; }
}
.g21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
@media (max-width: 1000px) { .g21 { grid-template-columns: 1fr; } }
.bulk { position: sticky; top: 8px; z-index: 20; background: var(--ink); color: #fff; border-radius: 12px; padding: 8px 10px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.bulk .in, .bulk select.in { min-height: 36px; width: auto; color: var(--ink); }
.bulk .btn { min-height: 36px; }
@media (max-width: 860px) { .bulk { top: 64px; } }
td.ck, th.ck { width: 36px; padding-right: 0; }
td.ck input, th.ck input { width: 18px; height: 18px; accent-color: var(--brand); }
@media (max-width: 760px) { table.t.stack td.ck { display: block; text-align: left; float: right; width: auto; } }
.linkrow { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.linkrow a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
@media (min-width: 761px) { table.t td.main { min-width: 200px; } table.t td.mw { min-width: 140px; } }
@media (max-width: 760px) { table.t.stack td.blk { display: block; text-align: left; } table.t.stack td.blk[data-l]::before { display: block; margin-bottom: 2px; } }
@media (min-width: 761px) { .mwd { min-width: 150px; } }
.row.nowrap { flex-wrap: nowrap; }
.chk:has(.hintline) { flex-wrap: wrap; row-gap: 0; } .hintline { flex-basis: 100%; padding-left: 26px; margin-top: -6px; }
/* content calendar */
.post { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; background: #fff; }
.pipe { display: flex; gap: 4px; margin-top: 10px; overflow-x: auto; padding-bottom: 2px; }
.pst { display: flex; align-items: center; gap: 6px; flex: 1 1 0; min-width: 104px; padding: 6px 8px; border-radius: 8px; background: #f1efe9; color: var(--ink2) !important; text-decoration: none !important; font-size: 12px; line-height: 1.25; }
.pst .pn { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #fff; font-weight: 600; flex: none; font-size: 11px; }
.pst .pt { display: flex; flex-direction: column; min-width: 0; } .pst small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pst.done { background: var(--green-bg); } .pst.done .pn { background: var(--green); color: #fff; }
.pst.now { background: var(--blue-bg); outline: 2px solid #9db4e0; } .pst.now .pn { background: var(--blue); color: #fff; }
.pst.chg { background: var(--amber-bg); outline: 2px solid #e0b65a; } .pst.chg .pn { background: #d69e2e; color: #fff; }
.pst.wait { opacity: .7; }
.pst.late { outline: 2px solid var(--red); } .pst.late small { color: var(--red); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1200px) { .g5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .g5 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .g5 { grid-template-columns: 1fr; } }
