:root {
  --bg: #ffffff;
  --bg-sunken: #f7f8f9;
  --bg-hover: #f1f2f4;
  --bg-pressed: #e9ebee;
  --bg-selected: #e9f2ff;
  --surface: #ffffff;
  --border: #dcdfe4;
  --border-strong: #b7bec8;
  --text: #172b4d;
  --text-subtle: #44546f;
  --text-muted: #626f86;
  --brand: #0c66e4;
  --brand-hover: #0055cc;
  --brand-text: #ffffff;
  --danger: #c9372c;
  --focus: #388bff;
  --shadow: 0 1px 1px rgba(9, 30, 66, .25), 0 0 1px rgba(9, 30, 66, .31);
  --shadow-raised: 0 8px 12px rgba(9, 30, 66, .15), 0 0 1px rgba(9, 30, 66, .31);
  --lz-todo-bg: #dfe1e6; --lz-todo-fg: #44546f;
  --lz-prog-bg: #cce0ff; --lz-prog-fg: #0055cc;
  --lz-done-bg: #baf3db; --lz-done-fg: #216e4e;
  --type-story: #22a06b; --type-task: #1d7afc; --type-bug: #e2483d; --type-epic: #8270db; --type-subtask: #4cc3e9;
  --prio-high: #e2483d; --prio-med: #e2b203; --prio-low: #1d7afc;
  --mention-bg: #e9f2ff; --mention-fg: #0055cc;
  --radius: 4px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: var(--text);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d2125; --bg-sunken: #161a1d; --bg-hover: #2c333a; --bg-pressed: #38414a; --bg-selected: #1c2b41;
    --surface: #22272b; --border: #38414a; --border-strong: #596773;
    --text: #dee4ea; --text-subtle: #b6c2cf; --text-muted: #9fadbc;
    --brand: #579dff; --brand-hover: #85b8ff; --brand-text: #1d2125;
    --danger: #f87168; --focus: #85b8ff;
    --shadow: 0 0 0 1px #38414a; --shadow-raised: 0 8px 12px rgba(3, 4, 4, .36), 0 0 1px rgba(3, 4, 4, .5);
    --lz-todo-bg: #38414a; --lz-todo-fg: #b6c2cf;
    --lz-prog-bg: #09326c; --lz-prog-fg: #85b8ff;
    --lz-done-bg: #164b35; --lz-done-fg: #7ee2b8;
    --mention-bg: #1c2b41; --mention-fg: #85b8ff;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); }
body { line-height: 1.43; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 24px; font-weight: 600; margin: 0; letter-spacing: -.01em; }
h2 { font-size: 18px; font-weight: 600; margin: 0 0 8px; }
h3 { font-size: 14px; font-weight: 600; margin: 0; }
button { font: inherit; color: inherit; }
.muted { color: var(--text-muted); }
.small { font-size: 12px; }
.error { color: var(--danger); }
.row { display: flex; align-items: center; }
.gap { gap: 8px; }
.grow { flex: 1; min-width: 0; }
.spacer { flex: 1; }
.req { color: var(--danger); }
.ico { flex: none; display: block; }
.loading { display: grid; place-items: center; height: 100vh; color: var(--text-muted); }

/* buttons & inputs */
.btn {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 0;
  border-radius: var(--radius); background: var(--bg-hover); color: var(--text-subtle); font-weight: 500;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--bg-pressed); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--brand); color: var(--brand-text); }
.btn.primary:hover { background: var(--brand-hover); }
.btn.danger { background: var(--danger); color: #fff; }
.btn.subtle { background: transparent; }
.btn.subtle:hover { background: var(--bg-hover); }
.btn.on { color: var(--brand); }
.btn.block { width: 100%; justify-content: center; margin-top: 12px; }
.icon-btn {
  display: inline-flex; align-items: center; gap: 2px; border: 0; background: transparent; padding: 4px;
  border-radius: var(--radius); cursor: pointer; color: var(--text-subtle); position: relative;
}
.icon-btn:hover { background: var(--bg-hover); }
.link { border: 0; background: none; color: var(--brand); cursor: pointer; padding: 0; }
.link:hover { text-decoration: underline; }
.input, .field-input {
  width: 100%; height: 36px; padding: 0 8px; border: 2px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--text); font: inherit;
}
textarea.input { height: auto; padding: 8px; resize: vertical; }
.input:focus, .field-input:focus { outline: none; border-color: var(--focus); }
.field-input { border-color: transparent; background: transparent; height: 32px; }
.field-input:hover { background: var(--bg-hover); }
.field-input:focus { background: var(--surface); }
.field-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); margin: 14px 0 4px; }
.select-like { display: flex; align-items: center; gap: 6px; text-align: left; cursor: pointer; }
.check { display: flex; align-items: center; gap: 8px; margin: 8px 0; cursor: pointer; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* auth */
.auth { min-height: 100vh; display: grid; place-items: center; background: var(--bg-sunken); padding: 16px; }
.auth-card { width: 100%; max-width: 380px; background: var(--surface); border-radius: 8px; box-shadow: var(--shadow-raised); padding: 32px; }
.auth-card.wide { max-width: 520px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.brand.big { font-size: 20px; margin-bottom: 20px; }
.brand-mark {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 6px; flex: none;
  background: var(--brand); color: var(--brand-text); font-weight: 700;
}
.claim-list { display: grid; gap: 6px; margin: 16px 0; max-height: 360px; overflow: auto; }
.claim-item {
  display: flex; align-items: center; gap: 12px; padding: 8px 12px; border: 1px solid var(--border);
  border-radius: 6px; background: var(--surface); cursor: pointer; text-align: left;
}
.claim-item:hover { background: var(--bg-selected); border-color: var(--brand); }
.claim-new summary { cursor: pointer; color: var(--brand); margin-bottom: 8px; }

/* shell */
.shell { display: flex; height: 100vh; }
.sidebar {
  width: 240px; flex: none; background: var(--bg-sunken); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 16px 8px;
}
.project { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; }
.project-name { font-weight: 600; }
.sidebar nav { display: grid; gap: 2px; }
.sidebar nav a {
  display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--radius);
  color: var(--text-subtle); font-weight: 500;
}
.sidebar nav a:hover { background: var(--bg-hover); text-decoration: none; }
.sidebar nav a.active { background: var(--bg-selected); color: var(--brand); }
.sidebar-foot { margin-top: auto; padding: 8px; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 16px;
  border-bottom: 1px solid var(--border); flex: none;
}
.content { flex: 1; overflow: auto; }
.page { padding: 20px 32px 40px; min-width: 0; }
.page.narrow { max-width: 900px; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 6px 0 16px; }
.sprint-goal { margin: -8px 0 12px; }
.empty-state { text-align: center; padding: 80px 16px; }

/* global search */
.global-search {
  position: relative; display: flex; align-items: center; gap: 6px; width: min(420px, 40vw);
  border: 2px solid var(--border); border-radius: var(--radius); padding: 0 8px; height: 36px; color: var(--text-muted);
}
.global-search:focus-within { border-color: var(--focus); }
.global-search input { border: 0; outline: 0; background: transparent; flex: 1; font: inherit; color: var(--text); min-width: 0; }
.search-menu { left: 0; right: auto; width: 560px; max-width: 90vw; top: 40px; }
.key { color: var(--text-muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.key.done { text-decoration: line-through; }

/* menus */
.picker { position: relative; display: inline-block; }
.picker-trigger { display: contents; }
.menu {
  position: absolute; z-index: 50; top: calc(100% + 4px); left: 0; min-width: 220px; max-width: 420px;
  background: var(--surface); border-radius: 6px; box-shadow: var(--shadow-raised); padding: 4px 0;
}
.menu-right { left: auto; right: 0; }
.menu-search { width: calc(100% - 16px); margin: 4px 8px 6px; height: 32px; padding: 0 8px; border: 2px solid var(--border); border-radius: var(--radius); font: inherit; background: var(--surface); color: var(--text); }
.menu-search:focus { outline: none; border-color: var(--focus); }
.menu-list { max-height: 360px; overflow: auto; }
.menu-item {
  display: flex; align-items: center; gap: 8px; padding: 6px 12px; cursor: pointer; min-height: 34px;
  border-left: 2px solid transparent;
}
.menu-item.hot, .menu-item:hover { background: var(--bg-hover); }
.menu-item.current { border-left-color: var(--brand); background: var(--bg-selected); }
.menu-item.static { cursor: default; background: none; }
.menu-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-hint { color: var(--text-muted); font-size: 12px; }
.menu-empty { padding: 8px 12px; color: var(--text-muted); }

/* notifications */
.bell { position: relative; }
.badge {
  position: absolute; top: -2px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
.notes { width: 420px; max-width: 92vw; }
.notes-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 16px; }
.note { display: flex; gap: 10px; padding: 10px 16px; cursor: pointer; border-left: 3px solid transparent; }
.note:hover { background: var(--bg-hover); }
.note.unread { border-left-color: var(--brand); background: var(--bg-selected); }
.note-body { min-width: 0; }
.note-title { font-weight: 500; }
.note-snippet { color: var(--text-subtle); font-size: 13px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* avatars & icons */
.avatar {
  border-radius: 50%; flex: none; display: inline-grid; place-items: center; color: #fff; font-weight: 600;
  object-fit: cover; vertical-align: middle;
}
.avatar-empty { background: var(--bg-pressed); color: var(--text-muted); }
.type-icon, .prio-icon { display: inline-flex; flex: none; }

/* filter bar */
.filterbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-search {
  display: flex; align-items: center; gap: 6px; width: 200px; height: 32px; padding: 0 8px; color: var(--text-muted);
  border: 2px solid var(--border); border-radius: var(--radius);
}
.filter-search:focus-within { border-color: var(--focus); }
.filter-search input { border: 0; outline: 0; background: none; font: inherit; color: var(--text); width: 100%; }
.avatar-stack { display: flex; padding-left: 6px; }
.stack-avatar { border: 2px solid var(--bg); border-radius: 50%; padding: 0; margin-left: -6px; background: var(--bg); cursor: pointer; display: flex; }
.stack-avatar:hover { transform: translateY(-2px); }
.stack-avatar.on { border-color: var(--brand); z-index: 1; }
.chip {
  height: 32px; padding: 0 10px; border: 0; border-radius: var(--radius); background: transparent;
  color: var(--text-subtle); font-weight: 500; cursor: pointer;
}
.chip:hover { background: var(--bg-hover); }
.chip.on { background: var(--bg-selected); color: var(--brand); }

/* lozenges */
.lozenge {
  display: inline-block; padding: 0 4px; border-radius: 3px; font-size: 11px; font-weight: 700; line-height: 16px;
  text-transform: uppercase; white-space: nowrap; max-width: 140px; overflow: hidden; text-overflow: ellipsis;
}
.lozenge.cat-todo, .pill.cat-todo { background: var(--lz-todo-bg); color: var(--lz-todo-fg); }
.lozenge.cat-inprogress, .pill.cat-inprogress { background: var(--lz-prog-bg); color: var(--lz-prog-fg); }
.lozenge.cat-done, .pill.cat-done { background: var(--lz-done-bg); color: var(--lz-done-fg); }
.pill { min-width: 24px; text-align: center; border-radius: 10px; font-size: 12px; font-weight: 600; padding: 0 6px; }
.tag {
  display: inline-flex; align-items: center; gap: 2px; padding: 0 6px; border-radius: 3px; font-size: 12px;
  background: var(--bg-pressed); color: var(--text-subtle); white-space: nowrap;
}
.parent-tag { background: #dfd8fd; color: #5e4db2; font-weight: 600; }

/* board */
.columns { display: flex; gap: 8px; align-items: flex-start; overflow-x: auto; padding-bottom: 16px; }
.column {
  flex: 1 0 260px; max-width: 360px; background: var(--bg-sunken); border-radius: 6px; padding: 8px 6px;
  display: flex; flex-direction: column; max-height: calc(100vh - 220px);
}
.column-head {
  font-size: 12px; font-weight: 600; text-transform: uppercase; color: var(--text-muted); padding: 4px 6px 10px;
  display: flex; align-items: center; gap: 6px;
}
.column-head .count { font-weight: 400; }
.done-check { color: var(--lz-done-fg); }
.column-body { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; min-height: 60px; padding: 2px; }
.card {
  display: block; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 10px 10px 8px; color: var(--text); cursor: grab;
}
.card:hover { background: var(--bg-hover); text-decoration: none; }
.card.dragging, .bl-row.dragging { opacity: .4; }
.card-summary { margin-bottom: 8px; word-break: break-word; }
.card-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.card-foot { display: flex; align-items: center; gap: 6px; }
.est { font-size: 12px; color: var(--text-muted); background: var(--bg-pressed); border-radius: 8px; padding: 0 6px; }
.est:empty { display: none; }
.drop-line { height: 2px; background: var(--brand); border-radius: 1px; margin: -1px 0; }
.add-card, .add-row {
  display: flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 8px;
  color: var(--text-subtle); border-radius: var(--radius); cursor: pointer; text-align: left; font-weight: 500;
}
.add-card:hover, .add-row:hover { background: var(--bg-pressed); }
.quick-create { display: flex; gap: 6px; align-items: center; background: var(--surface); padding: 6px; border-radius: var(--radius); box-shadow: var(--shadow); }
.quick-create.inline { margin: 4px 8px 8px; }

/* backlog */
.backlog { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.bl-section { background: var(--bg-sunken); border-radius: 6px; padding: 8px; min-width: 0; }
.bl-head { display: flex; align-items: center; gap: 8px; padding: 2px 4px 8px; flex-wrap: wrap; }
.bl-head.movable { cursor: grab; }
.grip { color: var(--text-muted); font-size: 14px; line-height: 1; margin-right: -4px; user-select: none; }
.bl-section.drop-before { box-shadow: 0 -3px 0 var(--brand); }
.bl-section.drop-after { box-shadow: 0 3px 0 var(--brand); }
.bl-goal { padding: 0 8px 8px 36px; }
.bl-list { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); min-height: 44px; }
.bl-list.empty { background: transparent; box-shadow: none; border: 2px dashed var(--border); }
.bl-empty { padding: 12px; text-align: center; }
.bl-row {
  display: flex; align-items: center; gap: 8px; padding: 0 10px; height: 40px; color: var(--text);
  border-bottom: 1px solid var(--border); cursor: grab;
}
.bl-row:last-child { border-bottom: 0; }
.bl-row:hover { background: var(--bg-hover); text-decoration: none; }
.bl-row > :not(.bl-summary):not(.spacer) { flex-shrink: 0; }
.bl-summary { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 0 1 auto; }

/* modal */
.overlay {
  position: fixed; inset: 0; background: rgba(9, 30, 66, .54); z-index: 100; display: flex;
  align-items: flex-start; justify-content: center; padding: 48px 16px; overflow: auto;
}
.modal { background: var(--surface); border-radius: 8px; box-shadow: var(--shadow-raised); width: 100%; max-width: 520px; }
.modal.wide { max-width: 1100px; }
.dialog { padding: 24px; }
.dialog-body { margin: 8px 0 0; }
.dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 24px; }
.create-dialog { max-width: 720px; margin: 0 auto; }
.create-desc .editor-actions { display: none; }

/* issue detail */
.issue { position: relative; }
.issue.drag-over { outline: 2px dashed var(--brand); outline-offset: -6px; }
.drop-hint {
  position: absolute; inset: 0; display: grid; place-items: center; background: rgba(233, 242, 255, .85);
  color: var(--brand); font-weight: 600; font-size: 18px; border-radius: 8px; pointer-events: none;
}
.issue-top { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 0 24px; }
.issue-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; padding: 8px 24px 32px; }
.issue-title {
  width: 100%; font: inherit; font-size: 24px; font-weight: 600; color: var(--text); border: 2px solid transparent;
  border-radius: var(--radius); padding: 4px 6px; margin: 0 -8px 8px; background: transparent; resize: none; overflow: hidden;
  letter-spacing: -.01em;
}
.issue-title:hover { background: var(--bg-hover); }
.issue-title:focus { outline: none; border-color: var(--focus); background: var(--surface); }
.section-actions { margin-bottom: 20px; }
.section-title { margin: 24px 0 8px; display: flex; align-items: center; gap: 6px; }
.section-title .count { color: var(--text-muted); font-weight: 400; }
.desc-view { border-radius: var(--radius); margin: 0 -8px; padding: 4px 8px; cursor: text; }
.desc-view:hover { background: var(--bg-hover); }
.issue-side { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.status-btn {
  height: 32px; padding: 0 12px; border: 0; border-radius: var(--radius); font-weight: 600; cursor: pointer;
}
.status-btn.cat-todo { background: var(--lz-todo-bg); color: var(--lz-todo-fg); }
.status-btn.cat-inprogress { background: var(--brand); color: var(--brand-text); }
.status-btn.cat-done { background: #1f845a; color: #fff; }
.details { width: 100%; border: 1px solid var(--border); border-radius: 6px; }
.details-head { padding: 10px 12px; border-bottom: 1px solid var(--border); font-weight: 600; }
.field { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: 8px; padding: 6px 12px; min-height: 40px; }
.field-name { color: var(--text-muted); font-size: 13px; font-weight: 600; }
.field .picker { display: block; }
.field-btn {
  display: flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 4px 6px; margin-left: -6px;
  border-radius: var(--radius); cursor: pointer; text-align: left; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.field-btn:hover { background: var(--bg-hover); }
.dates { display: grid; gap: 2px; padding: 0 4px; }
.tabs { display: flex; gap: 4px; margin-bottom: 12px; }
.tab { border: 0; background: var(--bg-hover); padding: 4px 10px; border-radius: var(--radius); cursor: pointer; font-weight: 500; color: var(--text-subtle); }
.tab.on { background: var(--bg-selected); color: var(--brand); }
.children { border: 1px solid var(--border); border-radius: var(--radius); }

/* attachments */
.attachments { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.att { position: relative; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; background: var(--surface); }
.att-thumb { display: grid; place-items: center; height: 100px; background: var(--bg-sunken); color: var(--text-muted); }
.att-thumb img { width: 100%; height: 100%; object-fit: cover; }
.att-name { padding: 6px 8px 0; font-size: 12px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-meta { padding: 0 8px 6px; font-size: 11px; }
.att-del {
  position: absolute; top: 4px; right: 4px; border: 0; border-radius: var(--radius); background: var(--surface);
  box-shadow: var(--shadow); padding: 3px; cursor: pointer; opacity: 0; color: var(--text-subtle);
}
.att:hover .att-del { opacity: 1; }

/* activity */
.activity { display: grid; gap: 4px; }
.composer { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.fake-input {
  flex: 1; text-align: left; height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--text-muted); cursor: text;
}
.sort-toggle { display: flex; justify-content: flex-end; }
.act { display: flex; gap: 12px; padding: 10px 0; }
.act-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 2px; }
.act-actions { display: flex; gap: 12px; margin-top: 4px; }
.change { margin-top: 4px; font-size: 13px; }
.change .from { text-decoration: line-through; color: var(--text-muted); }

/* rich text */
.rich { word-break: break-word; }
.rich p { margin: 0 0 8px; }
.rich p:last-child { margin-bottom: 0; }
.rich img { max-width: 100%; height: auto; border-radius: 3px; cursor: zoom-in; border: 1px solid var(--border); }
.rich pre, .rich code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background: var(--bg-sunken); border-radius: 3px; }
.rich pre { padding: 8px 12px; overflow-x: auto; white-space: pre-wrap; }
.rich code { padding: 1px 3px; }
.rich ul, .rich ol { margin: 0 0 8px; padding-left: 24px; }
.rich h1, .rich h2, .rich h3, .rich h4 { margin: 12px 0 6px; }
.rich table { border-collapse: collapse; margin: 8px 0; }
.rich td, .rich th { border: 1px solid var(--border); padding: 4px 8px; }
.rich blockquote { border-left: 3px solid var(--border); margin: 0 0 8px; padding-left: 12px; color: var(--text-subtle); }
.rich-empty { cursor: text; padding: 4px 0; }
.mention {
  background: var(--mention-bg); color: var(--mention-fg); border-radius: 12px; padding: 0 6px; font-weight: 500; white-space: nowrap;
}

/* editor */
.editor { position: relative; border: 2px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.editor:focus-within { border-color: var(--focus); }
.toolbar { display: flex; align-items: center; gap: 2px; padding: 4px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.tb { border: 0; background: transparent; min-width: 28px; height: 28px; border-radius: var(--radius); cursor: pointer; color: var(--text-subtle); display: inline-grid; place-items: center; }
.tb:hover { background: var(--bg-hover); }
.tb-sep { width: 1px; height: 18px; background: var(--border); margin: 0 4px; }
.editable { min-height: 120px; max-height: 480px; overflow: auto; padding: 10px 12px; outline: none; }
.editor.compact .editable { min-height: 60px; }
.editable:empty::before { content: attr(data-placeholder); color: var(--text-muted); }
.editor-actions { display: flex; align-items: center; gap: 8px; padding: 8px; border-top: 1px solid var(--border); }
.editor-actions .hint { margin-left: auto; }
.mention-pop { position: absolute; z-index: 60; background: var(--surface); border-radius: 6px; box-shadow: var(--shadow-raised); padding: 4px 0; min-width: 220px; }
.mention-opt { display: flex; align-items: center; gap: 8px; padding: 6px 12px; cursor: pointer; }
.mention-opt.sel, .mention-opt:hover { background: var(--bg-selected); }

/* labels */
.labels-editor {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 32px; padding: 2px 4px;
  border: 2px solid transparent; border-radius: var(--radius); margin-left: -6px;
}
.labels-editor:hover { background: var(--bg-hover); }
.labels-editor:focus-within { border-color: var(--focus); background: var(--surface); }
.labels-input { border: 0; outline: 0; background: transparent; font: inherit; color: var(--text); flex: 1; min-width: 80px; height: 24px; }
.tag-x { border: 0; background: none; cursor: pointer; padding: 0 0 0 2px; color: inherit; }
.create-dialog .labels-editor { border-color: var(--border); margin-left: 0; }

/* settings */
.panel { border: 1px solid var(--border); border-radius: 8px; padding: 20px; margin-top: 20px; }
.panel .input { max-width: 420px; }
.team { width: 100%; border-collapse: collapse; }
.team th { text-align: left; font-size: 12px; color: var(--text-muted); padding: 6px 8px; border-bottom: 1px solid var(--border); }
.team td { padding: 6px 8px; border-bottom: 1px solid var(--border); }
.team .input { height: 32px; }

/* toasts */
.toasts { position: fixed; left: 24px; bottom: 24px; z-index: 200; display: grid; gap: 8px; }
.toast { background: #172b4d; color: #fff; padding: 10px 16px; border-radius: 6px; box-shadow: var(--shadow-raised); max-width: 420px; }
.toast a { color: #85b8ff; }
.toast.error { background: #ae2e24; }

@media (max-width: 900px) {
  .sidebar { display: none; }
  .page { padding: 16px; }
  .issue-body { grid-template-columns: 1fr; }
  .global-search { width: auto; flex: 1; }
  .two { grid-template-columns: 1fr; }
  .bl-row .lozenge, .bl-row .est { display: none; }
}
