:root {
  --bg: #fafafd;
  --surface: #ffffff;
  --surface-2: #f3f0fa;
  --hover: #f6f4fb;
  --line: rgba(13, 20, 32, 0.08);
  --line-2: rgba(13, 20, 32, 0.14);
  --text: #0d1420;
  --muted: #5a6275;
  --faint: #8a91a3;
  --accent: #8f2cf4;
  --accent-2: #641fea;
  --accent-3: #4d11a8;
  --accent-deep: #170349;
  --accent-soft: rgba(100, 31, 234, 0.08);
  --accent-grad: linear-gradient(135deg, #8f2cf4 0%, #641fea 50%, #4d11a8 100%);
  --green: #1a7f4b; --green-bg: #e6f6ec;
  --orange: #b54a00; --orange-bg: #fff1e5;
  --red: #c4322f; --red-bg: #fdecec;
  --blue: #1d5fc2; --blue-bg: #e8f0fd;
  --violet: #5b1fd6; --violet-bg: #efe8fd;
  --grey: #4c5466; --grey-bg: #eff0f4;
  --shadow-sm: 0 1px 2px rgba(23, 3, 73, 0.06);
  --shadow: 0 24px 60px -28px rgba(23, 3, 73, 0.28);
  --radius: 14px;
  --font-display: "Sora", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, sans-serif;
  --sidebar: 248px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14.5px/1.5 var(--font-sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 26px; font-weight: 600; }
h2 { font-size: 16px; font-weight: 600; }
h3 { font-size: 14px; font-weight: 600; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea {
  font: inherit; color: var(--text);
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.spacer { flex: 1; }
.icon { flex-shrink: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 16px;
  border-radius: 10px; border: 1px solid transparent;
  font-weight: 500; font-size: 14px; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .1s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.primary { background: var(--accent-grad); color: #fff; box-shadow: 0 6px 16px -8px rgba(100, 31, 234, .7); }
.btn.primary:hover:not(:disabled) { filter: brightness(1.07); }
.btn.ghost { background: var(--surface); border-color: var(--line-2); }
.btn.ghost:hover { background: var(--hover); }
.btn.success { background: #1f9d55; color: #fff; }
.btn.warn { background: var(--surface); border-color: #f0b98a; color: var(--orange); }
.btn.warn:hover { background: var(--orange-bg); }
.btn.danger-ghost { background: transparent; color: var(--red); border-color: transparent; }
.btn.danger-ghost:hover { background: var(--red-bg); }
.btn.small { height: 30px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn.icon-only { width: 40px; padding: 0; flex-shrink: 0; }
.icon-btn {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  border: 0; background: transparent; color: var(--muted);
}
.icon-btn:hover { background: var(--hover); color: var(--text); }
.icon-btn.small { width: 28px; height: 28px; }
.link { color: var(--accent-2); font-weight: 500; font-size: 13px; }
.link-btn { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.link-btn:hover strong { color: var(--accent-2); }

/* ---------- badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 8px; border-radius: 999px;
  font-size: 12px; font-weight: 500; white-space: nowrap;
}
.tone-grey { background: var(--grey-bg); color: var(--grey); }
.tone-blue { background: var(--blue-bg); color: var(--blue); }
.tone-violet { background: var(--violet-bg); color: var(--violet); }
.tone-orange { background: var(--orange-bg); color: var(--orange); }
.tone-green { background: var(--green-bg); color: var(--green); }
.tone-red { background: var(--red-bg); color: var(--red); }
.tone-text-red { color: var(--red); }
.tone-text-orange { color: var(--orange); }
.tone-text-green { color: var(--green); display: inline-flex; align-items: center; gap: 5px; }
.tone-text-muted { color: var(--muted); }
.due { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; white-space: nowrap; }
.meta-count { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--faint); }
.proj-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.proj-chip i { width: 8px; height: 8px; border-radius: 3px; display: inline-block; }

/* ---------- avatar ---------- */
.avatar {
  position: relative; flex-shrink: 0;
  display: inline-grid; place-items: center;
  border-radius: 50%; color: #fff; font-weight: 600; font-family: var(--font-display);
  letter-spacing: 0;
}
.avatar.empty { background: var(--grey-bg); color: var(--faint); border: 1px dashed var(--line-2); }
.presence {
  position: absolute; right: -1px; bottom: -1px;
  width: 30%; height: 30%; min-width: 8px; min-height: 8px;
  border-radius: 50%; background: #c3c7d1; border: 2px solid var(--surface);
}
.presence.on { background: #22c55e; }
.avatar-stack { display: inline-flex; }
.avatar-stack .avatar { box-shadow: 0 0 0 2px var(--surface); }
.avatar-stack .avatar + .avatar { margin-left: -7px; }
.person { display: inline-flex; align-items: center; gap: 10px; }
.person > span:not(.avatar) { display: flex; flex-direction: column; line-height: 1.3; }
.person small { color: var(--muted); font-size: 12px; }

/* ---------- shell ---------- */
.boot { display: grid; place-items: center; height: 100vh; }
.shell { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar); z-index: 40;
  display: flex; flex-direction: column;
  background: var(--surface); border-right: 1px solid var(--line);
  padding: 18px 12px;
}
.sidebar-brand { display: flex; align-items: center; gap: 8px; padding: 4px 10px 22px; }
.sidebar-brand img { height: 26px; }
.sidebar-brand span {
  font-family: var(--font-display); font-weight: 600; font-size: 12px;
  color: var(--accent-2); background: var(--accent-soft); padding: 2px 8px; border-radius: 6px;
}
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 9px 12px; border-radius: 10px; border: 0; background: none;
  color: var(--muted); font-weight: 500; text-align: left;
}
.nav-item:hover { background: var(--hover); color: var(--text); }
.nav-item.active { background: var(--accent-soft); color: var(--accent-2); }
.nav-item span:first-of-type { flex: 1; }
.count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--accent-2); color: #fff; font-size: 11.5px; font-weight: 600;
  display: inline-grid; place-items: center;
}
.sidebar-foot { margin-top: auto; position: relative; display: flex; flex-direction: column; gap: 6px; }
.me-card { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; border: 1px solid var(--line); }
.me-card:hover { background: var(--hover); }
.me-card > span:not(.avatar) { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.me-card strong { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-card small { color: var(--muted); font-size: 12px; text-transform: capitalize; }
.main { flex: 1; margin-left: var(--sidebar); min-width: 0; }
.mobile-bar { display: none; }
.scrim { display: none; }

/* ---------- notifications ---------- */
.notif-panel {
  position: absolute; left: calc(100% + 18px); bottom: 0; z-index: 60;
  width: 380px; max-height: 70vh; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
}
.notif-panel > header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.notif-panel ul { list-style: none; margin: 0; padding: 6px; overflow-y: auto; }
.notif-panel li button {
  display: flex; gap: 11px; width: 100%; text-align: left;
  padding: 10px; border: 0; background: none; border-radius: 10px;
}
.notif-panel li button:hover { background: var(--hover); }
.notif-panel li.unread button { background: var(--accent-soft); }
.notif-icon { width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0; display: grid; place-items: center; background: var(--grey-bg); color: var(--grey); }
.notif-icon.type-approval, .notif-icon.type-assigned { background: var(--violet-bg); color: var(--violet); }
.notif-icon.type-approved { background: var(--green-bg); color: var(--green); }
.notif-icon.type-changes { background: var(--orange-bg); color: var(--orange); }
.notif-icon.type-mention, .notif-icon.type-dm, .notif-icon.type-comment { background: var(--blue-bg); color: var(--blue); }
.notif-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.notif-text strong { font-size: 13.5px; font-weight: 600; }
.notif-text span { font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notif-text small { font-size: 11.5px; color: var(--faint); }
.notif-empty { padding: 30px; text-align: center; color: var(--muted); }

.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 100;
  display: flex; align-items: center; gap: 9px; max-width: calc(100vw - 32px);
  padding: 11px 18px; border: 0; border-radius: 12px;
  background: var(--accent-deep); color: #fff; box-shadow: var(--shadow);
  animation: rise .25s ease-out;
}
@keyframes rise { from { opacity: 0; transform: translate(-50%, 10px); } }

/* ---------- pages ---------- */
.page { max-width: 1080px; margin: 0 auto; padding: 34px 32px 60px; }
.page.wide { max-width: none; }
.page.narrow { max-width: 760px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.eyebrow { margin: 0 0 4px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-2); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.card + .card, .card.group { margin-bottom: 16px; }
.card-head { display: flex; align-items: center; gap: 12px; justify-content: space-between; margin-bottom: 10px; }
.card-head h2 .muted { font-weight: 400; margin-left: 4px; }
.tabs { display: flex; gap: 4px; margin-bottom: 18px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border: 0; background: none; color: var(--muted); font-weight: 500;
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tab:hover { color: var(--text); }
.tab.on { color: var(--accent-2); border-bottom-color: var(--accent-2); }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.back-link:hover { color: var(--text); }
.compact-select { width: auto; min-width: 160px; }

.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 36px 16px; }
.empty-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); margin-bottom: 6px; }
.empty p { margin: 0; color: var(--muted); max-width: 360px; }
.spinner { width: 26px; height: 26px; margin: 40px auto; border-radius: 50%; border: 3px solid var(--accent-soft); border-top-color: var(--accent-2); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- dashboard ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat {
  display: flex; flex-direction: column; gap: 2px; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted);
  transition: border-color .15s, transform .15s;
}
.stat:hover { border-color: var(--line-2); transform: translateY(-1px); }
.stat-num { font-family: var(--font-display); font-size: 30px; font-weight: 600; color: var(--text); line-height: 1.2; }
.stat.warn .stat-num { color: var(--orange); }
.stat.accent { background: var(--accent-grad); color: rgba(255, 255, 255, .85); border: 0; }
.stat.accent .stat-num { color: #fff; }
.dash-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; align-items: start; }
.dash-grid.single { grid-template-columns: 1fr; }
.workload { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.workload th { text-align: left; font-weight: 500; color: var(--faint); font-size: 12px; padding: 6px 6px; }
.workload td { padding: 8px 6px; border-top: 1px solid var(--line); }
.workload td:not(:first-child), .workload th:not(:first-child) { text-align: center; }
.workload .row-actions { text-align: right !important; white-space: nowrap; }
.workload .person strong { font-weight: 500; font-size: 13.5px; }

/* ---------- task rows ---------- */
.task-list { display: flex; flex-direction: column; }
.task-row {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 12px 10px; margin: 0 -10px; width: calc(100% + 20px);
  border: 0; background: none; border-radius: 10px;
}
.task-row + .task-row { border-top: 1px solid var(--line); }
.task-row:hover { background: var(--hover); }
.task-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.task-title { font-weight: 500; overflow-wrap: anywhere; }
.task-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.task-row-side { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ---------- projects ---------- */
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.project-card {
  display: flex; flex-direction: column; gap: 4px; padding: 18px 20px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  border-top: 3px solid var(--pc); transition: transform .15s, box-shadow .15s;
}
.project-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.project-card h3 { font-size: 16px; margin-top: 6px; }
.project-card p { margin: 0; font-size: 13px; }
.project-card-top { display: flex; gap: 6px; align-items: center; min-height: 22px; }
.project-dot { width: 10px; height: 10px; border-radius: 4px; background: var(--pc); margin-right: auto; }
.project-dot.big { width: 14px; height: 14px; margin: 9px 0 0; }
.progress { height: 6px; border-radius: 99px; background: var(--grey-bg); margin: 14px 0 10px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--pc); border-radius: 99px; }
.project-card-foot { display: flex; align-items: center; justify-content: space-between; }
.project-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 14px; }
.project-title { display: flex; gap: 12px; }
.project-title p { margin: 2px 0 0; }
.project-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.project-actions .avatar-stack { margin-right: 6px; }
.project-info { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 20px; }
.project-info .drive-link { max-width: 320px; }
.project-desc { margin: 0; flex: 1; min-width: 240px; color: var(--muted); white-space: pre-wrap; }
.drive-missing {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px;
  border: 1.5px dashed var(--line-2); border-radius: 12px; background: none; color: var(--muted);
}
.drive-missing:hover { border-color: var(--accent-2); color: var(--accent-2); }

.board { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 10px; align-items: start; }
.column { background: var(--surface-2); border-radius: var(--radius); padding: 10px; min-height: 140px; display: flex; flex-direction: column; gap: 8px; transition: background .15s; }
.column.droppable { outline: 1.5px dashed rgba(100, 31, 234, .25); outline-offset: -3px; }
.column > header { display: flex; align-items: center; gap: 8px; padding: 4px 6px 6px; font-weight: 600; font-size: 13px; }
.column > header .muted { font-weight: 400; margin-left: auto; }
.col-dot { width: 8px; height: 8px; border-radius: 50%; }
.col-dot.tone-grey { background: #9aa1b1; } .col-dot.tone-blue { background: var(--blue); }
.col-dot.tone-violet { background: var(--violet); } .col-dot.tone-orange { background: #f76b15; } .col-dot.tone-green { background: #22a35b; }
.board-card {
  display: flex; flex-direction: column; gap: 10px; text-align: left;
  padding: 12px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface);
  box-shadow: var(--shadow-sm); cursor: grab;
}
.board-card:hover { border-color: var(--line-2); }
.board-card.dragging { opacity: .45; }
.board-card .task-title { font-size: 13.5px; }
.board-card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ---------- Drive links ---------- */
.drive-link { display: flex; align-items: center; gap: 4px; }
.drive-link a {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface);
}
.drive-link a:hover { border-color: var(--accent-2); background: var(--accent-soft); }
.drive-link-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.drive-link-text strong { font-weight: 500; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drive-link-text small { color: var(--faint); font-size: 12px; }
.drive-glyph { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.drive-glyph.plain { background: var(--grey-bg); color: var(--grey); }
.drive-link.compact a { padding: 5px 9px; }
.link-list { display: flex; flex-direction: column; gap: 6px; }
.inline-link { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.mention { color: var(--accent-2); background: var(--accent-soft); padding: 0 3px; border-radius: 4px; font-weight: 500; }
.rich { white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- modal & forms ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 80; background: rgba(13, 9, 30, .38);
  display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow-y: auto;
  animation: fade .15s;
}
@keyframes fade { from { opacity: 0; } }
.modal { width: 100%; max-width: 580px; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); animation: pop .2s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.99); } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px 0; }
.modal-head h2 { font-size: 18px; }
.modal-body { padding: 16px 22px 22px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.form h2 { margin-bottom: 2px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 13px; font-weight: 500; }
.field-hint { font-size: 12px; color: var(--faint); }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.error-text { margin: 0; color: var(--red); font-size: 13px; background: var(--red-bg); padding: 8px 12px; border-radius: 9px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check input { width: auto; margin-top: 3px; accent-color: var(--accent-2); }
.input-with-btn { display: flex; gap: 8px; }
.input-with-btn input { font-family: ui-monospace, Menlo, monospace; }
.link-inputs { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.link-input-row { display: flex; gap: 6px; width: 100%; align-items: center; }
.link-input-row input[type="url"] { flex: 2; }
.link-input-row .link-label { flex: 1; min-width: 90px; }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 4px; }
.swatch { width: 24px; height: 24px; border-radius: 7px; border: 2px solid transparent; }
.swatch.on { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--text); }
.member-picker { display: flex; flex-wrap: wrap; gap: 6px; }
.member-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 4px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font-size: 13px;
}
.member-chip.on { border-color: var(--accent-2); background: var(--accent-soft); color: var(--accent-3); }
.credentials {
  background: var(--surface-2); padding: 14px 16px; border-radius: 12px; white-space: pre-wrap;
  font: 13px/1.6 ui-monospace, Menlo, monospace; margin: 12px 0 16px;
}

/* ---------- task drawer ---------- */
.drawer-overlay { position: fixed; inset: 0; z-index: 70; background: rgba(13, 9, 30, .25); animation: fade .15s; }
.drawer {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(620px, 100%);
  background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column;
  animation: slide .22s ease-out;
}
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; gap: 4px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.drawer-body { flex: 1; overflow-y: auto; padding: 20px 26px 30px; }
.drawer-crumbs { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.drive-mini { display: inline-flex; align-items: center; gap: 4px; }
.drive-mini:hover { color: var(--accent-2); }
.drawer-title { font-size: 21px; line-height: 1.3; margin-bottom: 8px; }
.task-desc { margin: 0 0 16px; color: #2a3142; }
.title-input { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.edit-block { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.status-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 12px; border-radius: 12px; margin: 14px 0; background: var(--grey-bg);
}
.status-bar.tone-violet { background: var(--violet-bg); }
.status-bar.tone-orange { background: var(--orange-bg); }
.status-bar.tone-green { background: var(--green-bg); }
.status-bar.tone-blue { background: var(--blue-bg); }
.status-bar .badge { background: var(--surface); }
.callout { padding: 12px 14px; border-radius: 12px; margin-bottom: 14px; font-size: 13.5px; }
.callout p { margin: 4px 0 0; }
.callout.warn { background: var(--orange-bg); color: #6b2c00; }
.callout.accent { background: var(--accent-soft); color: var(--accent-3); }
.props { display: grid; grid-template-columns: 110px 1fr; gap: 8px 14px; align-items: center; margin: 18px 0 8px; font-size: 13.5px; }
.props dt { color: var(--muted); }
.props dd { margin: 0; }
.props select, .props input { max-width: 260px; padding: 6px 10px; }
.drawer-section { margin-top: 24px; }
.drawer-section > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.link-input-row.add { margin-top: 8px; }
.submit-box, .review-box { display: flex; flex-direction: column; gap: 10px; }
.submit-box { padding: 16px; border: 1.5px solid var(--accent-2); border-radius: 14px; background: #fcfaff; margin-bottom: 14px; }
.submit-box p { margin: -4px 0 0; }
.review-box { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.submission { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 10px; }
.submission.status-pending { border-color: rgba(100, 31, 234, .35); }
.submission > header { display: flex; align-items: center; gap: 9px; font-size: 13.5px; }
.submission > header > span:not(.avatar):not(.badge) { flex: 1; }
.submission-note { margin: 0; padding: 10px 12px; background: var(--surface-2); border-radius: 10px; font-size: 13.5px; }
.review-result { display: flex; gap: 9px; font-size: 13.5px; padding-top: 10px; border-top: 1px solid var(--line); }
.review-result p { margin: 4px 0 0; }

.feed { display: flex; flex-direction: column; gap: 12px; }
.feed-activity { font-size: 12.5px; color: var(--faint); display: flex; align-items: center; gap: 8px; padding-left: 9px; }
.feed-activity strong { font-weight: 500; color: var(--muted); }
.feed-activity .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); flex-shrink: 0; }
.feed-comment { display: flex; gap: 10px; }
.feed-comment > div { flex: 1; min-width: 0; }
.feed-comment header { display: flex; gap: 8px; align-items: baseline; font-size: 13.5px; }
.feed-comment p { margin: 3px 0 0; }
.drawer-compose { display: flex; gap: 8px; align-items: flex-end; padding: 12px 16px; border-top: 1px solid var(--line); }

.mention-wrap { position: relative; flex: 1; }
.mention-wrap textarea { resize: none; display: block; min-height: 40px; }
.mention-menu {
  position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 10;
  list-style: none; margin: 0; padding: 5px; min-width: 240px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
.mention-menu li { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 8px; cursor: pointer; font-size: 13.5px; }
.mention-menu li small { color: var(--faint); margin-left: auto; }
.mention-menu li.active { background: var(--accent-soft); }

/* ---------- approvals ---------- */
.approval-list { display: flex; flex-direction: column; gap: 14px; }
.approval-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.approval-head strong { font-size: 15px; }
.approval-meta { display: flex; gap: 8px; align-items: center; }
.approval-card .submission { margin: 0; }

/* ---------- chat ---------- */
.chat { display: grid; grid-template-columns: 290px 1fr; height: 100vh; }
.channel-list { border-right: 1px solid var(--line); background: var(--surface); overflow-y: auto; padding: 16px 10px; }
.channel-list h4 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin: 18px 10px 6px; font-family: var(--font-sans); font-weight: 600; }
.channel-search { display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid var(--line-2); border-radius: 10px; color: var(--faint); }
.channel-search input { border: 0; padding: 8px 0; box-shadow: none !important; }
.channel { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; color: var(--text); }
.channel:hover { background: var(--hover); }
.channel.active { background: var(--accent-soft); }
.channel-name { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 14px; line-height: 1.3; }
.channel-name, .channel-name small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.channel-name small { color: var(--faint); font-size: 12px; }
.hash { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--surface-2); flex-shrink: 0; }
.hash.big { width: 34px; height: 34px; border-radius: 10px; }
.pad { padding: 0 10px; }
.conversation { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--surface); }
.empty-conv { justify-content: center; background: var(--bg); }
.conv-head { display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.conv-head > div { display: flex; flex-direction: column; line-height: 1.3; }
.conv-head small { font-size: 12.5px; }
.messages { flex: 1; overflow-y: auto; padding: 18px 22px 8px; display: flex; flex-direction: column; }
.load-older { align-self: center; margin-bottom: 12px; }
.day-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0 10px; color: var(--faint); font-size: 12px; font-weight: 500; }
.day-divider::before, .day-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.msg { display: flex; gap: 12px; padding: 4px 8px; margin: 6px -8px 0; border-radius: 10px; }
.msg.grouped { margin-top: 0; padding-top: 1px; padding-bottom: 1px; }
.msg:hover { background: var(--hover); }
.msg-time-hover { width: 34px; flex-shrink: 0; font-size: 10.5px; color: var(--faint); text-align: right; padding-top: 3px; visibility: hidden; }
.msg:hover .msg-time-hover { visibility: visible; }
.msg-body { flex: 1; min-width: 0; }
.msg-body header { display: flex; gap: 8px; align-items: baseline; font-size: 14px; }
.msg-body small { font-size: 11.5px; }
.msg-body p { margin: 1px 0 0; }
.typing { height: 20px; padding: 0 24px; font-size: 12px; color: var(--faint); font-style: italic; }
.composer { display: flex; gap: 8px; align-items: flex-end; padding: 4px 22px 18px; }
.mobile-only { display: none; }

/* ---------- team ---------- */
.team-summary { margin: -14px 0 18px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.person-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.person-card.inactive { opacity: .55; }
.person-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.person-info .small { overflow: hidden; text-overflow: ellipsis; }
.person-badges { display: flex; gap: 6px; margin: 3px 0; }
.person-actions { display: flex; }
.profile-head { display: flex; gap: 16px; align-items: center; }
.profile-head p { margin: 0; }
.page.narrow .card { margin-bottom: 16px; }

/* ---------- login ---------- */
.login {
  min-height: 100vh; display: grid; place-items: center; padding: 20px;
  background: radial-gradient(1000px 500px at 80% -10%, rgba(143, 44, 244, .14), transparent),
              radial-gradient(800px 500px at -10% 110%, rgba(100, 31, 234, .10), transparent), var(--bg);
}
.login-card {
  width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); padding: 34px 32px; border-radius: 22px; border: 1px solid var(--line); box-shadow: var(--shadow);
}
.login-logo { height: 32px; align-self: flex-start; margin-bottom: 10px; }
.login-card h1 { font-size: 24px; }
.login-card > p { margin: -8px 0 6px; }
.login-foot { margin: 4px 0 0; text-align: center; font-size: 12.5px; color: var(--faint); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .dash-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; box-shadow: var(--shadow); }
  .sidebar.open { transform: none; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(13, 9, 30, .3); }
  .shell { display: block; }
  .main { margin-left: 0; }
  .mobile-bar {
    display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 30;
    height: 56px; padding: 0 12px; background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--line);
  }
  .mobile-bar img { height: 22px; }
  .dot-count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--accent-2); color: #fff; font-size: 12px; font-weight: 600; display: grid; place-items: center; }
  .notif-panel { position: fixed; left: 16px; right: 16px; bottom: 90px; width: auto; }
  .page { padding: 22px 16px 50px; }
  h1 { font-size: 22px; }
  .chat { grid-template-columns: 1fr; height: calc(100vh - 56px); height: calc(100dvh - 56px); }
  .chat.has-channel .channel-list { display: none; }
  .chat:not(.has-channel) .conversation { display: none; }
  .mobile-only { display: inline-grid; }
  .conv-head { padding: 10px 12px; }
  .messages { padding: 12px 14px 6px; }
  .composer { padding: 4px 12px 12px; }
  .board { grid-template-columns: repeat(5, 78vw); scroll-snap-type: x mandatory; }
  .column { scroll-snap-align: start; }
  .form-grid.two { grid-template-columns: 1fr; }
  .task-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .task-row-side { justify-content: flex-start; }
  .drawer-body { padding: 16px 16px 24px; }
  .props { grid-template-columns: 96px 1fr; }
  .workload th:nth-child(4), .workload td:nth-child(4) { display: none; }
  .link-input-row { flex-wrap: wrap; }
  .link-input-row input[type="url"] { flex-basis: 100%; }
  .overlay { padding: 12px; }
}

/* ---------- clients, teams, local time ---------- */
.local-time { font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.local-time.off { color: var(--faint); opacity: .75; }
.client-logo {
  display: inline-grid; place-items: center; flex-shrink: 0; overflow: hidden;
  border-radius: 10px; background: #fff; border: 1px solid var(--line);
}
.client-logo img { width: 84%; height: 84%; object-fit: contain; }
.client-logo.initials { background: var(--surface-2); color: var(--accent-3); font-family: var(--font-display); font-weight: 600; border: 0; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .search { display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--faint); flex: 1; min-width: 200px; max-width: 360px; }
.toolbar .search input { border: 0; box-shadow: none !important; padding: 8px 0; }
.toolbar select { width: auto; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 13px; color: var(--muted); }
.chip:hover { color: var(--text); }
.chip.on { background: var(--accent-soft); border-color: rgba(100, 31, 234, .35); color: var(--accent-3); font-weight: 500; }
.chip .muted { margin-left: 4px; }
.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.client-card {
  display: flex; gap: 12px; align-items: center; padding: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s;
}
.client-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.client-card.past { opacity: .6; }
.client-card-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.client-card-info strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.client-card-stats { display: flex; gap: 10px; font-size: 12px; color: var(--muted); }
.client-card-stats b { color: var(--violet); font-weight: 600; }
.client-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.client-head h1 { line-height: 1.2; }
.client-head .spacer { min-width: 10px; }
.client-layout { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }
.info-list { display: flex; flex-direction: column; gap: 12px; font-size: 13.5px; }
.info-list > div { display: flex; flex-direction: column; gap: 2px; }
.info-list dt, .info-list .label { font-size: 12px; color: var(--faint); }
.info-list a { color: var(--accent-2); overflow-wrap: anywhere; }
.info-list p { margin: 0; white-space: pre-wrap; }
.team-section { margin-bottom: 22px; }
.team-section > h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 14px; }
.team-section > h2 .muted { font-weight: 400; }
.workload .team-row td { background: var(--surface-2); font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding: 6px 8px; text-align: left !important; }
.version { font-size: 11.5px; font-weight: 600; color: var(--accent-3); background: var(--accent-soft); padding: 1px 7px; border-radius: 6px; }
.client-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
@media (max-width: 900px) {
  .client-layout { grid-template-columns: 1fr; }
}
.perm-box { border: 1px solid var(--line); border-radius: 12px; padding: 6px 14px 10px; margin: 0; display: flex; flex-direction: column; }
.perm-box legend { font-size: 13px; font-weight: 500; padding: 0 6px; }
.perm-box[disabled] .perm { opacity: .6; }
.perm { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; cursor: pointer; }
.perm + .perm { border-top: 1px solid var(--line); }
.perm input { width: auto; margin-top: 3px; accent-color: var(--accent-2); }
.perm span { display: flex; flex-direction: column; line-height: 1.35; }
.perm strong { font-weight: 500; font-size: 13.5px; }
.perm small { color: var(--faint); font-size: 12px; }

/* ---------- Drive previews ---------- */
.drive-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.drive-gallery.big { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.drive-gallery > .drive-link, .drive-gallery > .drive-error-wrap, .drive-gallery > .drive-folder-preview { grid-column: 1 / -1; }
.drive-preview { position: relative; }
.drive-preview .remove { position: absolute; top: 6px; right: 6px; background: rgba(255, 255, 255, .92); box-shadow: var(--shadow-sm); }
.drive-tile {
  display: flex; flex-direction: column; width: 100%; padding: 0; text-align: left;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.drive-tile:hover { border-color: var(--accent-2); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.drive-tile-media {
  position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden;
}
.drive-tile.big .drive-tile-media { aspect-ratio: 16 / 10; }
.drive-tile-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drive-tile.kind-gdoc .drive-tile-media img, .drive-tile.kind-pdf .drive-tile-media img { object-fit: contain; object-position: top; background: #fff; }
.drive-tile-media .drive-glyph { width: 40px; height: 40px; border-radius: 11px; }
.folder-glyph { color: #5f6368; }
.play {
  position: absolute; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(13, 9, 30, .65); color: #fff; padding-left: 3px;
}
.drive-tile-name { padding: 8px 10px 0; font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drive-tile-name:last-child { padding-bottom: 9px; }
.drive-tile-meta { padding: 0 10px 9px; font-size: 11.5px; color: var(--faint); }
.drive-tile-skeleton { aspect-ratio: 4 / 3; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; }
.drive-tile-skeleton .spinner { margin: 0; width: 20px; height: 20px; }
.drive-tile-skeleton.big { aspect-ratio: 16 / 10; }
.drive-error { margin: 6px 2px 0; color: var(--orange); display: flex; gap: 6px; align-items: center; }
.drive-link.with-preview { display: flex; gap: 8px; }
.drive-folder-preview { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 12px; }
.drive-folder-preview > header { display: flex; align-items: center; gap: 9px; margin-bottom: 10px; font-size: 13.5px; }
.folder-gallery .tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.folder-gallery .crumbs { display: flex; gap: 6px; align-items: center; margin-bottom: 10px; font-size: 13px; flex-wrap: wrap; }
.folder-gallery .crumbs .link-btn { color: var(--accent-2); }
.folder-gallery .crumbs .link-btn:disabled { color: var(--text); font-weight: 600; cursor: default; }
.folder-gallery > p { margin: 10px 0 0; }

.viewer { position: fixed; inset: 0; z-index: 120; background: rgba(8, 5, 20, .92); display: flex; flex-direction: column; animation: fade .15s; }
.viewer-head { display: flex; align-items: center; gap: 6px; padding: 10px 14px; color: #fff; }
.viewer-title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-title small { color: rgba(255, 255, 255, .55); margin-left: 8px; }
.icon-btn.light { color: rgba(255, 255, 255, .8); }
.icon-btn.light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.rot-down { transform: rotate(-90deg); }
.flip { transform: rotate(180deg); }
.viewer-stage { flex: 1; min-height: 0; display: grid; place-items: center; padding: 0 64px 24px; }
.viewer-stage img, .viewer-stage video { max-width: 100%; max-height: 100%; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.viewer-stage iframe { width: min(1100px, 100%); height: 100%; border: 0; border-radius: 8px; background: #fff; }
.viewer-file { background: var(--surface); border-radius: 16px; padding: 30px 40px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.viewer-file p { margin: 4px 0; }
.viewer-nav {
  position: absolute; top: 50%; width: 46px; height: 46px; border-radius: 50%; border: 0; transform: translateY(-50%);
  background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center;
}
.viewer-nav:hover { background: rgba(255, 255, 255, .26); }
.viewer-nav.prev { left: 12px; }
.viewer-nav.next { right: 12px; }

.upload-drop { border: 1.5px dashed var(--line-2); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 6px; background: var(--surface); transition: border-color .15s, background .15s; }
.upload-drop.over { border-color: var(--accent-2); background: var(--accent-soft); }
.upload-drop .link-btn { color: var(--accent-2); gap: 8px; }
.upload-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.upload-row > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-row.err small { color: var(--red); }
.upload-row .bar { width: 120px; height: 6px; border-radius: 99px; background: var(--grey-bg); overflow: hidden; }
.upload-row .bar i { display: block; height: 100%; background: var(--accent-grad); transition: width .2s; }

.settings-steps { margin: 6px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.settings-steps code, .code { font: 12.5px ui-monospace, Menlo, monospace; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.connected-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.connected-row .dot { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .15); }
@media (max-width: 900px) {
  .viewer-stage { padding: 0 8px 12px; }
  .viewer-nav { top: auto; bottom: 18px; transform: none; }
  .drive-gallery.big { grid-template-columns: 1fr; }
}
.drive-embed { width: 100%; height: 520px; border: 0; border-radius: 10px; background: var(--surface-2); }
.share-settings { border-top: 1px solid var(--line); padding-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.share-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.share-row select { width: auto; }
.share-settings p { margin: 0; }
.access-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); font-size: 13px; color: var(--muted); }
.access-btn:hover { border-color: var(--line-2); color: var(--text); }
.access-btn.warn { border-color: #f0b98a; color: var(--orange); }
.access-list { display: flex; flex-direction: column; }
.access-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.access-row + .access-row { border-top: 1px solid var(--line); }
.access-row > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.access-row small { color: var(--faint); font-size: 12px; overflow-wrap: anywhere; }
.access-row .err { color: var(--red); }

/* ---------- Slack-style chat ---------- */
.channel-list h4 { display: flex; align-items: center; justify-content: space-between; }
.channel-list h4 .icon-btn { width: 24px; height: 24px; }
.channel.has-unread .channel-name { font-weight: 600; }
.name-line { display: inline-flex; align-items: center; gap: 4px; }
.status-emoji { font-size: 13px; margin-left: 4px; cursor: default; }
.conv-wrap { display: grid; grid-template-columns: 1fr; min-width: 0; min-height: 0; height: 100%; }
.conv-wrap.with-thread { grid-template-columns: 1fr 360px; }
.conv-wrap > .conversation { min-height: 0; height: 100%; }
.thread-panel { display: flex; flex-direction: column; border-left: 1px solid var(--line); background: var(--surface); min-height: 0; height: 100%; }
.thread-divider { display: flex; align-items: center; gap: 10px; margin: 8px 0; font-size: 12px; color: var(--faint); }
.thread-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.msg { position: relative; }
.msg.deleted { opacity: .7; }
.msg-actions {
  position: absolute; top: -14px; right: 10px; display: none; gap: 2px; padding: 3px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-sm); z-index: 2;
}
.msg:hover .msg-actions { display: flex; }
.msg-actions button { width: 30px; height: 28px; border: 0; background: none; border-radius: 7px; display: grid; place-items: center; color: var(--muted); font-size: 15px; }
.msg-actions button:hover { background: var(--hover); color: var(--text); }
.emoji-picker {
  position: absolute; top: 18px; right: 10px; z-index: 3; display: flex; gap: 2px; padding: 5px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
.emoji-picker button { width: 34px; height: 34px; border: 0; background: none; border-radius: 8px; font-size: 18px; }
.emoji-picker button:hover { background: var(--hover); transform: scale(1.12); }
.reactions { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 5px; }
.reaction {
  display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 8px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); font-size: 13px;
}
.reaction span { font-size: 12px; color: var(--muted); font-weight: 500; }
.reaction.mine { background: var(--accent-soft); border-color: rgba(100, 31, 234, .4); }
.reaction.mine span { color: var(--accent-3); }
.reaction.add { color: var(--faint); opacity: 0; }
.msg:hover .reaction.add { opacity: 1; }
.thread-summary {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 4px 10px 4px 4px;
  border: 1px solid transparent; border-radius: 10px; background: none; font-size: 12.5px;
}
.thread-summary strong { color: var(--accent-2); font-weight: 600; }
.thread-summary:hover { border-color: var(--line); background: var(--surface); }
.msg-edit { display: flex; flex-direction: column; gap: 6px; margin-top: 4px; }
.edited { font-size: 11px; }
@media (max-width: 1100px) {
  .conv-wrap.with-thread { grid-template-columns: 1fr; }
  .conv-wrap.with-thread > .conversation { display: none; }
}

/* ---------- attendance & daily reports ---------- */
.clock-widget { border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.clock-widget.working { border-color: rgba(34, 197, 94, .45); background: #f3fbf6; }
.clock-line { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.clock-actions { display: flex; gap: 6px; }
.clock-actions .btn { flex: 1; }
.clock-actions .link-btn { font-size: 12.5px; }
.clock-hint { font-size: 11.5px; text-align: center; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: pulse 1.8s infinite; flex-shrink: 0; display: inline-block; }
.pulse.small { width: 7px; height: 7px; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.late-chip { font-size: 11px; font-weight: 600; color: var(--orange); background: var(--orange-bg); padding: 1px 7px; border-radius: 999px; white-space: nowrap; }
.mood-row { display: flex; align-items: center; gap: 6px; }
.mood-row .field-label { margin-right: 6px; }
.mood { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 20px; }
.mood.on { border-color: var(--accent-2); background: var(--accent-soft); transform: scale(1.08); }
.mood-show { font-size: 16px; }
.page.wide-ish { max-width: 1240px; }
.month-nav { display: flex; align-items: center; gap: 8px; }
.month-nav strong { min-width: 130px; text-align: center; font-family: var(--font-display); }
.stat-num small { font-size: 16px; color: var(--faint); font-weight: 500; }
.att-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.att-table th { text-align: left; font-weight: 500; color: var(--faint); font-size: 12px; padding: 6px 8px; }
.att-table td { padding: 10px 8px; border-top: 1px solid var(--line); vertical-align: middle; }
.att-table .person strong { font-weight: 500; }
.att-table .row-actions { text-align: right; white-space: nowrap; }
.month-totals { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.month-totals b { color: var(--text); font-size: 15px; }
.att-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.att-cal-head { font-size: 11.5px; color: var(--faint); text-align: center; font-weight: 600; }
.att-day {
  min-height: 70px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  padding: 6px 8px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; font-size: 12px;
}
.att-day .n { font-weight: 600; font-size: 13px; }
.att-day .h { color: var(--muted); }
.att-day .flags { margin-top: auto; font-size: 12px; }
.att-day.st-present { background: #effaf3; border-color: #bfe8cf; }
.att-day.st-half_day { background: var(--orange-bg); }
.att-day.st-absent { background: var(--red-bg); border-color: #f5c2c2; }
.att-day.st-absent .flags { color: var(--red); font-weight: 700; }
.att-day.st-leave, .att-day.st-half_leave { background: var(--violet-bg); }
.att-day.st-off, .att-day.st-none { background: var(--bg); color: var(--faint); }
.att-day.st-not_in { border-style: dashed; }
.legend { margin: 12px 0 0; }
.register-wrap { overflow-x: auto; padding: 12px; }
.register { border-collapse: separate; border-spacing: 2px; font-size: 12px; min-width: 100%; }
.register th { font-weight: 500; color: var(--faint); padding: 4px; text-align: center; }
.register th.sun { color: var(--red); }
.register td { text-align: center; padding: 0 2px; min-width: 24px; height: 28px; }
.register .sticky { position: sticky; left: 0; background: var(--surface); text-align: left; padding-right: 10px; white-space: nowrap; z-index: 1; }
.register .cell { border-radius: 6px; cursor: pointer; font-weight: 600; position: relative; }
.register .cell.st-present { background: #dff5e8; color: var(--green); }
.register .cell.st-half_day { background: var(--orange-bg); color: var(--orange); }
.register .cell.st-absent { background: var(--red-bg); color: var(--red); }
.register .cell.st-leave, .register .cell.st-half_leave { background: var(--violet-bg); color: var(--violet); }
.register .cell.st-off, .register .cell.st-none { background: var(--bg); }
.register .cell.st-not_in, .register .cell.st-upcoming { background: var(--grey-bg); opacity: .5; }
.register .cell.late::after { content: ""; position: absolute; top: 0; right: 0; border: 5px solid transparent; border-top-color: #f76b15; border-right-color: #f76b15; border-top-right-radius: 6px; }
.day-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.sessions { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.sessions th { text-align: left; color: var(--faint); font-weight: 500; font-size: 12px; padding: 4px 6px; }
.sessions td { padding: 6px; border-top: 1px solid var(--line); }
.sessions input[type=time] { padding: 4px 8px; width: auto; }
.report-body { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.report-body .label { display: block; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin-bottom: 2px; }
.report-body p { margin: 0; }
.report-body .blockers { background: var(--orange-bg); border-radius: 10px; padding: 8px 12px; }
.report-body .blockers .label { color: var(--orange); }
.report-card { margin-bottom: 14px; }
.report-card.has-blocker { border-left: 3px solid #f76b15; }
.report-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.report-head > span:nth-child(2) { display: flex; flex-direction: column; line-height: 1.35; }
.seen { margin: 12px 0 0; font-size: 12.5px; color: var(--green); display: flex; align-items: center; gap: 6px; }
.feedback-row { display: flex; gap: 8px; margin-top: 12px; }
.feedback-row input { padding: 6px 10px; }
.report-cta { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.leave-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.leave-row + .leave-row { border-top: 1px solid var(--line); }
.leave-main { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
.leave-main small { font-size: 12.5px; color: var(--muted); }
@media (max-width: 900px) {
  .att-table th:nth-child(3), .att-table td:nth-child(3), .att-table th:nth-child(5), .att-table td:nth-child(5) { display: none; }
  .att-day { min-height: 54px; padding: 4px; }
  .att-day .h { display: none; }
}
.clock-chip { height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.clock-chip.working { border-color: rgba(34, 197, 94, .5); background: #f3fbf6; color: var(--green); }
.mobile-bar .dot-count { margin-left: 0; }

/* ---------- my day, shifts, applications ---------- */
.myday {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 20px 22px; margin-bottom: 20px; border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(135deg, #fbf9ff, #fff); box-shadow: var(--shadow-sm);
}
.myday.working { background: linear-gradient(135deg, #effaf3, #fff); border-color: #bfe8cf; }
.myday-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.myday-info .eyebrow { margin: 0; }
.myday-time { font-family: var(--font-display); font-size: 34px; font-weight: 600; display: flex; align-items: center; gap: 10px; line-height: 1.1; }
.myday-time small { font-size: 15px; color: var(--muted); font-weight: 500; }
.myday-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); align-items: center; }
.where { font-size: 13px; padding: 6px 10px; border-radius: 9px; display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; align-self: flex-start; }
.where.ok { background: var(--green-bg); color: var(--green); }
.where.bad { background: var(--red-bg); color: var(--red); }
.where .link-btn { text-decoration: underline; font-weight: 600; }
.myday-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.myday-state { font-weight: 600; font-size: 15px; }
.btn.big { height: 50px; padding: 0 24px; font-size: 15.5px; border-radius: 13px; }
.btn.clock-in { min-width: 180px; }
.btn.danger { background: #e5484d; color: #fff; }
.btn.danger:hover { filter: brightness(1.05); }
.place { display: block; font-size: 11.5px; color: var(--faint); }
.app-types { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.app-type { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); }
.app-type small { color: var(--faint); font-size: 12px; }
.app-type.on { border-color: var(--accent-2); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent-2); }
.shift-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.shift-card { display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); border-left: 4px solid var(--sc); background: var(--surface); }
.shift-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.shift-time { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.shift-time small { font-size: 12px; color: var(--orange); font-weight: 500; }
.ip-list { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.office-row { padding: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.office-row + .office-row { border-top: 1px solid var(--line); }
@media (max-width: 700px) {
  .app-types { grid-template-columns: 1fr; }
  .myday-actions { width: 100%; }
  .myday-actions .btn { flex: 1; }
}
.ok-text { margin: 0; color: var(--green); font-size: 13px; background: var(--green-bg); padding: 8px 12px; border-radius: 9px; }
.input-with-btn .at { display: grid; place-items: center; color: var(--faint); padding: 0 2px; }

/* ---------- active switch ---------- */
.switch {
  position: relative; display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  height: 26px; padding: 0 10px 0 3px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--grey-bg); color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.switch .knob { width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.switch.on { background: var(--green-bg); border-color: #9fdcb7; color: var(--green); padding: 0 3px 0 10px; flex-direction: row-reverse; }
.switch:disabled { opacity: .6; }
.client-card .switch { align-self: center; }
.client-sub { margin: 4px 0 0; display: flex; align-items: center; gap: 10px; }

/* ---------- leads ---------- */
.stat-num.small-num { font-size: 22px; }
button.stat { text-align: left; cursor: pointer; font: inherit; }
.tabs.inline { margin: 0; border-bottom: 0; }
.leads-board { grid-template-columns: repeat(6, minmax(230px, 1fr)); }
.col-value { font-size: 12px; color: var(--muted); padding: 0 6px 4px; font-weight: 500; }
.lead-card {
  display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 12px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); cursor: grab;
}
.lead-card:hover { border-color: var(--line-2); }
.lead-card-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.lead-card-top strong { font-weight: 600; font-size: 13.5px; }
.lead-value { font-size: 12px; font-weight: 600; color: var(--green); white-space: nowrap; }
.lead-card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 12px; }
.lead-card-meta .src { color: var(--muted); }
.leads-table tr.clickable { cursor: pointer; }
.leads-table tr.clickable:hover td { background: var(--hover); }
.block { display: block; }
.lead-title { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.contact-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.btn.wa { color: #128c4b; border-color: #a7e3c2; }
.stage-steps { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 14px; }
.stage-step { height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); font-size: 12.5px; color: var(--muted); }
.stage-step:hover { color: var(--text); border-color: var(--accent-2); }
.stage-step.on { font-weight: 600; border-color: transparent; }
.won-cta { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.chip.static { cursor: default; height: 24px; font-size: 12px; margin: 0 2px 2px 0; display: inline-flex; align-items: center; }
.follow-cell { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.follow-cell .chip { height: 26px; font-size: 12px; }
.activity-form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.activity-form .chip { height: 28px; }
.act-type { font-size: 12px; color: var(--muted); }
@media (max-width: 900px) { .leads-board { grid-template-columns: repeat(6, 80vw) !important; } }

/* ---------- chat attachments ---------- */
.composer { flex-direction: column; align-items: stretch; gap: 8px; }
.composer-row { display: flex; gap: 8px; align-items: flex-end; }
.composer.drop { outline: 2px dashed var(--accent-2); outline-offset: -4px; border-radius: 12px; background: var(--accent-soft); }
.attach-btn { width: 40px; height: 40px; flex-shrink: 0; }
.pending-files { display: flex; flex-wrap: wrap; gap: 8px; }
.pending { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); max-width: 260px; }
.pending img { width: 36px; height: 36px; object-fit: cover; border-radius: 6px; }
.pending.err { border-color: #f5c2c2; }
.pending.err small { color: var(--red); }
.pending-name { display: flex; flex-direction: column; min-width: 0; font-size: 12.5px; }
.pending-name, .pending-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pending-name small { color: var(--faint); font-size: 11.5px; }
.attachments { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; }
.att-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 180px)); gap: 6px; }
.att-images.one { grid-template-columns: minmax(0, 360px); }
.att-image { padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface-2); cursor: zoom-in; aspect-ratio: 4 / 3; }
.att-images.one .att-image { aspect-ratio: auto; max-height: 300px; }
.att-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.att-images.one .att-image img { object-fit: contain; max-height: 300px; }
.att-file { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); max-width: 360px; }
.att-icon { font-size: 20px; }
.att-name { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13.5px; overflow-wrap: anywhere; }
.att-name small { color: var(--faint); font-size: 12px; }

/* ---------- monthly content & publishing ---------- */
.platforms { display: inline-flex; gap: 3px; vertical-align: middle; }
.plat { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 4px; border-radius: 5px; color: #fff; font-size: 10px; font-weight: 700; font-family: var(--font-sans); letter-spacing: 0; }
.platforms.small .plat { min-width: 17px; height: 17px; font-size: 9px; border-radius: 4px; }
.plat-chip { display: inline-flex; align-items: center; gap: 6px; padding-left: 5px; }
.kind-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kind-toggle button { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); }
.kind-toggle button small { color: var(--faint); font-size: 12px; }
.kind-toggle button.on { border-color: var(--accent-2); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent-2); }
.targets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.target { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.target input { width: 56px; padding: 6px 8px; }
.month-bar { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.month-bar .month-nav strong { font-size: 17px; }
.month-progress { flex: 1; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; min-width: 260px; }
.mp-item { display: flex; flex-direction: column; gap: 4px; min-width: 190px; }
.mp-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.mp-nums { font-size: 13px; color: var(--muted); }
.mp-nums b { font-size: 16px; color: var(--text); }
.mp-bar { position: relative; height: 7px; border-radius: 99px; background: var(--grey-bg); overflow: hidden; }
.mp-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; }
.mp-bar .planned { background: #d8ccf7; }
.mp-bar .approved { background: #8f6af0; }
.mp-bar .posted { background: #22a35b; }
.mp-total { font-size: 13px; font-weight: 600; color: var(--green); }
.month-actions { display: flex; gap: 8px; }
.content-board { grid-template-columns: repeat(7, minmax(200px, 1fr)); }
.plan-row { display: grid; grid-template-columns: 70px 1.1fr 1.2fr 1.3fr 30px; gap: 6px; align-items: center; }
.plan-count { text-align: center; font-weight: 600; }
.content-cal .cal-day { min-height: 92px; border: 1px solid var(--line); border-radius: 10px; padding: 5px; display: flex; flex-direction: column; gap: 3px; background: var(--surface); }
.content-cal .cal-day.today { border-color: var(--accent-2); box-shadow: 0 0 0 1px var(--accent-2); }
.content-cal .n { font-size: 12px; font-weight: 600; color: var(--muted); }
.cal-item { display: flex; align-items: center; gap: 4px; width: 100%; padding: 3px 5px; border-radius: 6px; border: 0; font-size: 11.5px; text-align: left; overflow: hidden; }
.cal-item span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workflow { list-style: none; margin: 4px 0 14px; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.workflow li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; position: relative; font-size: 11.5px; color: var(--faint); }
.workflow li::before { content: ""; position: absolute; top: 13px; left: -50%; right: 50%; height: 2px; background: var(--line-2); z-index: 0; }
.workflow li:first-child::before { display: none; }
.workflow li.done::before, .workflow li.current::before { background: #22a35b; }
.wf-dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--line-2); font-weight: 700; font-size: 12px; z-index: 1; }
.workflow li.done .wf-dot { background: #22a35b; border-color: #22a35b; color: #fff; }
.workflow li.current .wf-dot { border-color: var(--accent-2); color: var(--accent-2); }
.wf-text { display: flex; flex-direction: column; line-height: 1.3; }
.wf-text strong { font-weight: 600; color: var(--text); font-size: 11.5px; }
.workflow li:not(.done):not(.current) .wf-text strong { color: var(--faint); font-weight: 500; }
.wf-text small { font-size: 10.5px; }
.publish-box { border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--green-bg); border: 1px solid #bfe8cf; }
.publish-box.st-scheduled { background: var(--blue-bg); border-color: #c4d7f7; }
.publish-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.publish-actions { justify-content: flex-start; }
.publish-form { display: flex; gap: 6px; flex-wrap: wrap; }
.publish-form input { flex: 1; min-width: 200px; padding: 6px 10px; }
.pub-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; flex-wrap: wrap; }
.pub-row + .pub-row { border-top: 1px solid var(--line); }
.pub-main { flex: 1; min-width: 180px; display: flex !important; flex-direction: column; align-items: flex-start !important; gap: 1px; }
.pub-date { font-size: 13px; white-space: nowrap; }
@media (max-width: 900px) {
  .content-board { grid-template-columns: repeat(7, 78vw); }
  .workflow { grid-template-columns: repeat(3, 1fr); row-gap: 12px; }
  .plan-row { grid-template-columns: 60px 1fr 30px; }
  .kind-toggle { grid-template-columns: 1fr; }
}
