:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color-scheme: dark;
  --bg: #141714;
  --side: #101310;
  --panel: #1c211b;
  --hover: #252d23;
  --line: #343e30;
  --text: #f0f4ed;
  --muted: #abb6a6;
  --accent: #91d34e;
  --accent-bg: #7dc23b1c;
  --red: #ffaaa1;
  --amber: #edc16b;
  --green: #a3d67d;
  --shadow: 0 24px 100px #0008;
  --input: #141714;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f8f3;
  --side: #edf2e8;
  --panel: #fff;
  --hover: #edf3e7;
  --line: #d8e0d0;
  --text: #20271d;
  --muted: #5e6c55;
  --accent: #416d1e;
  --accent-bg: #7dc23b20;
  --red: #b43229;
  --amber: #875900;
  --green: #39752b;
  --shadow: 0 24px 100px #23203525;
  --input: #fff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  font-size: 15px;
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  padding: 9px 13px;
  border-radius: 8px;
  transition: background 0.15s;
}
button:hover {
  background: var(--hover);
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: #7dc23b;
  color: #17230e;
  border-color: transparent;
  font-weight: 600;
}
.primary:hover {
  background: #a2dc6b;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
.shell {
  display: grid;
  grid-template-columns: 256px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: var(--side);
  border-right: 1px solid var(--line);
  padding: 24px 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  position: fixed;
  width: 256px;
  height: 100dvh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.4px;
  margin: 0 10px 24px;
}
.brand svg {
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  color: #b9aaff;
}
:root[data-theme="light"] .brand svg {
  color: #7050ae;
}
.workspace {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px;
  display: flex;
  gap: 11px;
  align-items: center;
  margin-bottom: 12px;
}
.workspace-icon {
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
  border: 1px solid #7dc23b44;
  border-radius: 8px;
  padding: 9px;
}
.workspace small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}
.eyebrow {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin: 16px 12px 8px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav button {
  border: 0;
  background: transparent;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  color: var(--muted);
}
.nav button.active {
  background: var(--accent-bg);
  color: var(--accent);
}
.nav-icon {
  font-size: 18px;
  width: 20px;
  text-align: center;
}
.nav-count {
  margin-left: auto;
  font-size: 13px;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 650;
  background: var(--accent-bg);
  color: var(--accent);
  border: 1px solid #7dc23b40;
}
.avatar[data-person="Raquel"] {
  color: #deb391;
  background: #deb39115;
  border-color: #deb39130;
}
.avatar[data-person="Michael"] {
  color: #9ac2dd;
  background: #9ac2dd15;
  border-color: #9ac2dd30;
}
.avatar[data-person="Jonathon"] {
  color: #b0cd9a;
  background: #b0cd9a15;
  border-color: #b0cd9a30;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 72px;
  border-bottom: 1px solid var(--line);
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}
.topbar strong {
  color: var(--text);
  font-weight: 500;
}
.topbar .right {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}
.theme {
  border: 0;
  background: transparent;
  font-size: 18px;
  padding: 8px;
}
.content {
  max-width: 1540px;
  margin: auto;
  padding: 38px 40px 60px;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.heading h1 {
  font-size: 30px;
  letter-spacing: -1px;
  margin: 0 0 8px;
  font-weight: 600;
}
.heading p {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
}
.heading-actions {
  display: flex;
  gap: 9px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 28px 0;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
  background: var(--panel);
  position: relative;
}
.stat-label {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.2px;
}
.stat-value {
  font-size: 28px;
  margin-top: 11px;
  letter-spacing: -1px;
}
.stat-detail {
  color: var(--muted);
  font-size: 12px;
  margin-top: 7px;
}
.stat-symbol {
  position: absolute;
  top: 17px;
  right: 18px;
  font-size: 18px;
  color: var(--muted);
}
.stat.high .stat-symbol,
.stat.high .stat-value {
  color: var(--red);
}
.stat.wait .stat-symbol {
  color: var(--amber);
}
.stat.done .stat-symbol {
  color: var(--green);
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 30px 0 18px;
}
.search {
  position: relative;
  flex: 1;
  min-width: 200px;
  max-width: 330px;
}
.search input {
  width: 100%;
  padding-left: 34px;
}
.search span {
  position: absolute;
  left: 12px;
  top: 9px;
  color: var(--muted);
  font-size: 17px;
}
input,
select,
textarea {
  border: 1px solid var(--line);
  color: var(--text);
  background: var(--input);
  border-radius: 7px;
  padding: 9px 10px;
  min-width: 0;
}
select {
  cursor: pointer;
  font-size: 14px;
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
}
.toolbar-end {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.checkbox input {
  accent-color: var(--accent);
}
.subfilters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
}
.subfilters select {
  max-width: 180px;
}
.list {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--panel);
}
.column-head {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 135px 120px 100px;
  gap: 12px;
  padding: 12px 20px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  background: var(--bg);
}
.group-header {
  border: 0;
  border-radius: 0;
  border-top: 1px solid var(--line);
  width: 100%;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 10px;
  padding: 14px 20px;
  background: var(--hover);
  font-size: 14px;
  font-weight: 600;
}
.group-header .count {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: 5px;
}
.priority-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  background: var(--muted);
}
.priority-dot.High {
  background: var(--red);
}
.priority-dot.Medium {
  background: var(--amber);
}
.priority-dot.Low {
  background: #8caacd;
}
.issue-row {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 135px 120px 100px;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}
.issue-row:hover {
  background: var(--hover);
}
.issue-title {
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  width: 100%;
  border-radius: 0;
  line-height: 1.6;
}
.issue-title:hover {
  background: transparent;
}
.issue-id {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.2px;
  margin-right: 10px;
  font-variant-numeric: tabular-nums;
}
.issue-name {
  font-weight: 500;
  font-size: 15px;
}
.issue-meta {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}
.product-name {
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tag {
  display: inline-flex;
  font-size: 11px;
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 3px 6px;
  border-radius: 4px;
  color: var(--muted);
  white-space: nowrap;
}
.tag.compliance {
  color: var(--accent);
  background: var(--accent-bg);
  border-color: #7dc23b40;
}
.assignee {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.status-pill {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 7px;
  font-size: 12px;
  max-width: 120px;
  color: var(--muted);
  background: var(--bg);
}
.status-pill.Waiting {
  color: var(--amber);
  background: #d9b76f12;
  border-color: #d9b76f25;
}
.status-pill.Done {
  color: var(--green);
  background: #a3d67d12;
  border-color: #a3d67d25;
}
.status-pill.In-progress {
  color: var(--accent);
  background: var(--accent-bg);
}
.date {
  font-size: 12px;
  color: var(--muted);
}
.overdue {
  color: var(--red) !important;
}
.list-footer {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  padding: 16px 3px;
}
.empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.login {
  max-width: 430px;
  margin: 12vh auto;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}
.login .brand {
  margin: 0 0 35px;
}
.login h1 {
  font-size: 28px;
  letter-spacing: -0.8px;
}
.login p {
  color: var(--muted);
  line-height: 1.7;
}
.login input {
  width: 100%;
  margin: 15px 0;
}
.login button.primary {
  width: 100%;
}
.loading {
  text-align: center;
  margin: 25vh auto;
  color: var(--muted);
}
dialog {
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
  box-shadow: var(--shadow);
  max-height: 90dvh;
  width: min(800px, 94vw);
  max-width: 94vw;
}
dialog::backdrop {
  background: #090b11aa;
  backdrop-filter: blur(4px);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 26px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--panel);
  z-index: 1;
}
.dialog-head h2 {
  font-size: 16px;
  margin: 0;
}
.dialog-head button {
  border: 0;
  background: none;
  font-size: 20px;
  padding: 3px 8px;
}
.dialog-body {
  padding: 25px 26px;
}
.dialog-body h3 {
  font-size: 15px;
  margin: 28px 0 14px;
}
.dialog-body h1 {
  font-size: 24px;
  letter-spacing: -0.6px;
  line-height: 1.3;
  margin: 0 0 24px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
}
.page-url-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; }
.page-url-heading a { font-size: 13px; font-weight: 500; white-space: nowrap; }
.page-url-field small { color: var(--muted); font-size: 12px; line-height: 1.5; }
.page-url-field [hidden] { display: none; }
.field.full {
  grid-column: 1/-1;
}
.field input,
.field select,
.field textarea {
  font-size: 15px;
  width: 100%;
}
.field textarea {
  min-height: 90px;
  resize: vertical;
  line-height: 1.6;
}
.detail-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 20px 26px;
  border-top: 1px solid var(--line);
}
.comment {
  border: 1px solid var(--line);
  padding: 14px;
  border-radius: 8px;
  margin: 10px 0;
}
.comment header {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}
.comment time {
  color: var(--muted);
  font-size: 12px;
  margin-left: auto;
}
.comment p,
.read-text {
  white-space: pre-wrap;
  line-height: 1.75;
  font-size: 15px;
  color: var(--text);
  overflow-wrap: anywhere;
}
.history {
  font-size: 13px;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding: 0 0 15px 14px;
  white-space: pre-wrap;
  line-height: 1.7;
}
.history strong {
  color: var(--text);
  font-weight: 500;
}
.utility-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.utility-row small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.share-banner {
  padding: 13px 20px;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 14px;
  border-bottom: 1px solid var(--line);
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  border-radius: 9px;
  background: var(--text);
  color: var(--bg);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  max-width: 90vw;
  font-size: 14px;
}
#toast.visible {
  opacity: 1;
}
.danger {
  color: var(--red);
}
.muted {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.issue-quick {
  display: flex;
  align-items: center;
  gap: 5px;
}
.quick-priority {
  width: 18px;
  height: 25px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
}
.stat button {
  padding: 0;
  background: none;
  border: 0;
  text-align: left;
  width: 100%;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (min-width: 1600px) {
  .content {
    padding-top: 48px;
  }
  .issue-row {
    padding-top: 19px;
    padding-bottom: 19px;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 224px 1fr;
  }
  .sidebar {
    width: 224px;
    padding: 24px 12px;
  }
  .content {
    padding: 30px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .column-head,
  .issue-row {
    grid-template-columns: minmax(220px, 1fr) 90px 110px;
    gap: 10px;
  }
  .column-head > :last-child,
  .issue-row > .date {
    display: none;
  }
  .assignee > span:last-child {
    display: none;
  }
  .toolbar-end {
    margin-left: 0;
  }
  .product-name {
    max-width: 170px;
  }
  .issue-meta .tag:nth-of-type(n + 3) {
    display: none;
  }
  .heading-actions button {
    font-size: 14px;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    border-right: 0;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
  }
  .sidebar .brand {
    margin: 0 0 15px;
  }
  .workspace,
  .sidebar .eyebrow {
    display: none;
  }
  .sidebar-bottom { margin-top: 12px; padding-top: 10px; }
  .nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 4px;
  }
  .nav button {
    white-space: nowrap;
    font-size: 13px;
    padding: 9px;
  }
  .nav-icon {
    font-size: 15px;
    width: auto;
  }
  .nav-count {
    display: none;
  }
  .sidebar .nav:nth-of-type(2) {
    display: none;
  }
  .main {
    width: 100%;
  }
  .topbar {
    height: 48px;
    padding: 0 18px;
  }
  .topbar .right > span {
    display: none;
  }
  .content {
    padding: 25px 18px;
  }
  .heading {
    align-items: flex-start;
  }
  .heading h1 {
    font-size: 25px;
  }
  .heading p {
    font-size: 13px;
    max-width: 240px;
    line-height: 1.6;
  }
  .heading-actions {
    flex-direction: column;
  }
  .heading-actions button {
    font-size: 13px;
    padding: 8px 10px;
  }
  .stats {
    gap: 8px;
    grid-template-columns: repeat(2, 1fr);
    margin: 22px 0;
  }
  .stat {
    padding: 14px;
  }
  .stat-value {
    font-size: 24px;
  }
  .toolbar {
    gap: 7px;
    margin-top: 20px;
  }
  .search {
    max-width: none;
    width: 100%;
    flex-basis: 100%;
  }
  .toolbar select {
    flex: 1;
    max-width: 48%;
  }
  .toolbar-end {
    width: 100%;
    justify-content: space-between;
    margin-top: 8px;
  }
  .subfilters {
    gap: 7px;
  }
  .column-head {
    display: none;
  }
  .issue-row {
    grid-template-columns: 1fr 100px;
    padding: 14px 12px;
    gap: 7px;
  }
  .issue-row .assignee {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
  }
  .issue-row .issue-quick {
    grid-column: 2;
    grid-row: 2;
    justify-content: flex-end;
  }
  .issue-row > .issue-cell {
    grid-column: 1;
    grid-row: 1/3;
  }
  .issue-name {
    font-size: 14px;
    display: block;
    line-height: 1.5;
  }
  .issue-id {
    font-size: 11px;
  }
  .issue-meta {
    flex-wrap: wrap;
    gap: 5px;
  }
  .product-name {
    max-width: 180px;
  }
  .issue-meta .tag {
    display: none;
  }
  .group-header {
    padding: 12px;
    font-size: 13px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field.full {
    grid-column: 1;
  }
  .dialog-body {
    padding: 20px;
  }
  .dialog-head {
    padding: 16px 20px;
  }
  .detail-actions {
    padding: 16px 20px;
    flex-wrap: wrap;
  }
  .list-footer {
    font-size: 11px;
  }
  .login {
    margin: 8vh 18px;
  }
  .utility-row {
    flex-wrap: wrap;
  }
  .utility-row .inline-actions {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

:root[data-theme="light"] .primary {
  color: #17230e;
}
:root[data-theme="light"] .avatar[data-person="Raquel"] {
  color: #94613e;
}
:root[data-theme="light"] .avatar[data-person="Michael"] {
  color: #3d749a;
}
:root[data-theme="light"] .avatar[data-person="Jonathon"] {
  color: #5d7d3b;
}
.workspace > div:nth-child(2) {
  min-width: 0;
}
.stat-label {
  max-width: 85%;
  line-height: 1.5;
  min-height: 28px;
}
.sidebar-bottom > div {
  min-width: 0;
}
.issue-title {
  overflow-wrap: anywhere;
}
.sidebar-bottom small {
  display: block !important;
}

.mobile-views,
.mobile-due {
  display: none;
}
@media (max-width: 760px) {
  .heading > div:first-child {
    min-width: 0;
    flex: 1;
  }
  .heading h1 {
    overflow-wrap: break-word;
  }
  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  .stat {
    padding: 11px 10px;
  }
  .stat-label {
    font-size: 11px;
    max-width: 100%;
    min-height: 27px;
  }
  .stat-value {
    font-size: 23px;
    margin-top: 5px;
  }
  .stat-detail,
  .stat-symbol {
    display: none;
  }
  .stat.wait .stat-label {
    font-size: 0;
  }
  .stat.wait .stat-label:before {
    content: "Waiting";
    font-size: 11px;
  }
}
@media (max-width: 760px) {
  .mobile-views {
    display: block;
    margin-top: 20px;
  }
  .mobile-views select {
    width: 100%;
  }
  .mobile-due {
    display: inline;
  }
  .heading-actions {
    flex-shrink: 0;
  }
}

/* BNB workspace: brand lime, readable neutrals and independent priority colors. */
:root { --blue: #9dc5f2; --high-bg: #412925; --medium-bg: #39321f; --low-bg: #23303d; }
:root[data-theme="light"] { --blue: #315e91; --high-bg: #fbe9e5; --medium-bg: #fbf0d6; --low-bg: #e7eff8; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); }
.sidebar { overflow: hidden; }
.sidebar > .brand, .sidebar > .workspace { flex-shrink: 0; }
.sidebar-nav { flex: 1; min-height: 0; overflow-y: auto; padding-bottom: 14px; }
.sidebar-bottom { flex-shrink: 0; flex-direction: column; align-items: stretch; gap: 14px; padding-top: 16px; margin-top: auto; }
.account-row { display: flex; align-items: center; gap: 10px; }
.account-row strong { font-size: 14px; }
.account-row small { color: var(--muted); font-size: 12px; }
.account-row button { margin-left: auto; border: 0; background: none; padding: 7px; }
.appearance > label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 7px; }
.theme-controls { display: flex; gap: 6px; align-items: stretch; }
.theme-controls select { flex: 1; width: 0; font-size: 13px; padding: 8px; }
.theme-controls button { font-size: 12px; padding: 8px; white-space: nowrap; }
.theme-controls button:disabled { opacity: 1; cursor: default; color: var(--muted); }
.appearance > small { font-size: 11px; line-height: 1.5; display: block; margin-top: 7px; color: var(--muted); }
.save-status { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.save-status > span:first-child { color: var(--green); font-size: 9px; }
.view-switch { display: flex; padding: 3px; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; }
.view-switch button { flex: 1; border: 0; background: transparent; padding: 7px; font-size: 13px; color: var(--muted); }
.view-switch button[aria-pressed="true"] { color: var(--text); background: var(--panel); box-shadow: 0 1px 4px #0002; }
.preview-banner { padding: 13px 16px; background: var(--accent-bg); border: 1px solid var(--line); border-radius: 9px; margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.preview-banner button { flex-shrink: 0; font-size: 13px; }
.workspace-label { font-size: 13px; color: var(--muted); }
[data-priority="high"] > .group-header { background: var(--high-bg); color: var(--red); border-left: 4px solid var(--red); }
[data-priority="medium"] > .group-header { background: var(--medium-bg); color: var(--amber); border-left: 4px solid var(--amber); }
[data-priority="low"] > .group-header { background: var(--low-bg); color: var(--blue); border-left: 4px solid var(--blue); }
.group-header { font-size: 15px; }
.group-header:hover { filter: brightness(.97); }
.group-header .count { color: inherit; background: var(--panel); font-size: 12px; }
.priority-dot.Low { background: var(--blue); }
.issue-title { display: flex; align-items: baseline; gap: 12px; }
.issue-id { flex-shrink: 0; margin-right: 0; font-size: 12px; font-weight: 500; }
.issue-name { font-size: 15px; line-height: 1.55; }
.issue-meta { font-size: 12px; line-height: 1.5; flex-wrap: wrap; }
.status-pill { font-size: 12px; }
#result-count { font-size: 12px !important; }
.issue-row { min-height: 86px; }
.stats .stat-label { font-size: 13px; }
.stats .stat-detail { font-size: 12px; line-height: 1.5; }
.login .appearance { margin-top: 24px; }
@media (max-width: 1100px) and (min-width: 761px) {
  .sidebar { padding: 20px 12px; }
  .content { padding: 30px 22px; }
  .theme-controls { flex-wrap: wrap; }
  .theme-controls select { min-width: 105px; }
  .stat { padding: 16px 12px; }
  .stat-detail { display: none; }
  .issue-title { display: block; }
  .issue-name { display: block; }
}
@media (max-height: 850px) and (min-width: 761px) {
  .sidebar { padding-top: 18px; padding-bottom: 16px; }
  .sidebar .brand { margin-bottom: 15px; }
  .workspace { padding: 10px; margin-bottom: 4px; }
  .eyebrow { margin-top: 11px; }
  .nav { gap: 1px; }
  .nav button { padding-top: 6px; padding-bottom: 6px; }
  .sidebar-bottom { margin-top: 0; gap: 10px; }
}
@media (max-width: 760px) {
  .sidebar-nav { overflow: visible; }
  .sidebar-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 15px; }
  .sidebar-bottom .appearance { grid-column: 1 / -1; }
  .view-switch { grid-column: 1 / -1; }
  .account-row { grid-column: 2; grid-row: 3; }
  .save-status { align-self: center; }
  .theme-controls select { flex: 1; }
  .appearance > small { margin-top: 4px; }
  .preview-banner { flex-direction: column; align-items: flex-start; }
  .heading p { font-size: 13px; }
  .heading-actions button { font-size: 13px; }
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .stats .stat-label { font-size: 13px; min-height: auto; }
  .stats .stat.wait .stat-label { font-size: 13px; }
  .stat.wait .stat-label:before { content: none; }
  .stat-value { font-size: 28px; }
  .issue-title { display: block; }
  .issue-name { display: block; font-size: 15px; }
  .issue-meta .product-name { max-width: 155px; }
  .group-header { font-size: 14px; }
  .nav button { font-size: 13px; }
}
