:root {
  --canvas: #f7f8fc;
  --surface: #ffffff;
  --surface-soft: #fbfbfe;
  --ink: #27253a;
  --ink-soft: #626078;
  --muted: #9693a7;
  --line: #ececf3;
  --line-strong: #e2e1ec;
  --purple: #7568e9;
  --purple-deep: #5d51d5;
  --purple-soft: #eeeaff;
  --green: #36a77b;
  --green-soft: #e5f7ef;
  --peach: #e99167;
  --peach-soft: #fff0e8;
  --sky: #5d9ee9;
  --sky-soft: #eaf3ff;
  --shadow: 0 16px 42px rgba(42, 37, 74, .07);
  --shadow-hover: 0 20px 46px rgba(42, 37, 74, .12);
  --font-ui: "Avenir Next", "PingFang SC", "Helvetica Neue", sans-serif;
  --font-display: "Avenir Next", "PingFang SC", "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { width: 100%; min-width: 0; overflow-x: clip; scroll-behavior: smooth; background: var(--canvas); }

body {
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 4%, rgba(215, 210, 255, .3), transparent 25rem),
    radial-gradient(circle at 18% 92%, rgba(214, 246, 232, .28), transparent 28rem),
    var(--canvas);
  font-family: var(--font-ui);
  font-size: 14px;
  letter-spacing: -.01em;
}

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: .28;
  background-image: radial-gradient(rgba(91, 83, 150, .11) .7px, transparent .7px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 3px solid rgba(117, 104, 233, .28); outline-offset: 3px; }

.icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.icon-lg { width: 20px; height: 20px; stroke-width: 1.9; }

.app-shell { display: grid; width: 100%; min-width: 0; grid-template-columns: clamp(196px, 18vw, 246px) minmax(0, 1fr); min-height: 100vh; }

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  min-width: 0;
  height: 100vh;
  flex-direction: column;
  padding: 23px 15px 17px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, .8);
  backdrop-filter: blur(22px);
}

.brand { display: flex; align-items: center; gap: 11px; padding: 5px 9px 27px; }
.brand-mark { display: grid; width: 37px; height: 37px; place-items: center; color: #fff; border-radius: 12px; background: linear-gradient(135deg, #7868ee 0%, #a89cf8 100%); box-shadow: 0 8px 17px rgba(117, 104, 233, .25); }
.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { color: var(--ink); font-size: 16px; font-weight: 750; letter-spacing: -.045em; }
.brand-copy small { color: var(--muted); font-size: 10px; letter-spacing: .01em; }

.workspace-switcher {
  display: grid;
  width: 100%;
  grid-template-columns: 31px minmax(0, 1fr) 17px;
  align-items: center;
  gap: 9px;
  padding: 10px 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--ink);
  background: rgba(249, 249, 253, .86);
  text-align: left;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.workspace-switcher:hover { border-color: #d7d4f7; background: #fff; box-shadow: 0 6px 18px rgba(42, 37, 74, .06); }
.workspace-avatar { display: grid; width: 31px; height: 31px; place-items: center; color: #6658d7; border-radius: 10px; background: var(--purple-soft); font-size: 10px; font-weight: 800; letter-spacing: .02em; }
.workspace-copy { display: grid; min-width: 0; gap: 2px; }
.workspace-copy small { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.workspace-copy strong { overflow: hidden; color: var(--ink); font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.chevron { width: 15px; color: var(--muted); }

.sidebar-nav { padding-top: 29px; }
.nav-heading { display: block; padding: 0 11px 9px; color: #aaa8b8; font-size: 9px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.nav-heading-spaced { margin-top: 27px; }
.nav-item { display: flex; min-height: 41px; align-items: center; gap: 11px; margin: 3px 0; padding: 0 11px; border: 1px solid transparent; border-radius: 10px; color: #77748d; font-size: 12px; font-weight: 600; transition: color .2s, background .2s, border-color .2s, transform .2s; }
.nav-item:hover { color: var(--ink); background: #fafaff; transform: translateX(2px); }
.nav-item.active { color: var(--purple-deep); border-color: #e4e1fb; background: var(--purple-soft); box-shadow: 0 6px 15px rgba(117, 104, 233, .06); }
.nav-item.active .icon { color: var(--purple); }
.nav-current { margin-left: auto; color: #aaa7c4; font-size: 9px; font-weight: 700; letter-spacing: .04em; }
.nav-badge { display: inline-grid; min-width: 21px; height: 20px; margin-left: auto; place-items: center; color: #8a86a1; border-radius: 7px; background: #f0f0f6; font-size: 9px; font-weight: 800; }

.sidebar-spacer { flex: 1; min-height: 25px; }
.sidebar-status { padding: 13px 12px 11px; border: 1px solid #e4e7ef; border-radius: 14px; background: linear-gradient(145deg, #fbfffd, #f3faf7); }
.status-topline { display: flex; align-items: center; gap: 7px; }
.status-topline strong { color: #4e5c66; font-size: 11px; font-weight: 700; }
.status-dot, .auth-dot, .pulse-summary-dot { width: 7px; height: 7px; border-radius: 50%; background: #b7b7c4; }
.status-live { margin-left: auto; color: #a3a3b1; font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.sidebar-status p { margin: 9px 0 12px; color: #8c929b; font-size: 10px; line-height: 1.55; }
.status-foot { display: flex; justify-content: space-between; color: #a8adb6; font-size: 8px; font-weight: 800; letter-spacing: .08em; }

.main-column { container: workspace / inline-size; width: 100%; min-width: 0; }
.topbar { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 20px; padding: 0 clamp(24px, 4vw, 56px); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .63); backdrop-filter: blur(18px); }
.breadcrumbs { display: flex; align-items: center; gap: 7px; color: #a09daf; font-size: 12px; }
.breadcrumbs .icon { width: 13px; height: 13px; color: #c0beca; }
.breadcrumbs strong { color: var(--ink); font-weight: 700; }
.topbar-actions { display: flex; align-items: center; gap: 11px; }
.icon-button { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid var(--line); border-radius: 9px; color: #8d8a9c; background: rgba(255, 255, 255, .8); font-size: 13px; font-weight: 700; transition: color .2s, border-color .2s, background .2s; }
.icon-button:hover { color: var(--purple-deep); border-color: #d7d3f5; background: var(--purple-soft); }
.auth-box { display: flex; min-height: 40px; align-items: center; gap: 8px; padding: 4px 5px 4px 10px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .9); box-shadow: 0 5px 16px rgba(42, 37, 74, .04); }
.auth-dot { width: 7px; height: 7px; }
.auth-label { display: grid; min-width: 68px; gap: 1px; }
.auth-label strong { color: #a4a1b1; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.auth-label small { color: #aaa8b6; font-size: 8px; }
.auth-box input { width: 115px; padding: 7px 9px; border: 1px solid #ededf3; border-radius: 8px; outline: 0; color: var(--ink); background: #fafafd; font-size: 10px; transition: border-color .2s, box-shadow .2s, background .2s; }
.auth-box input:focus { border-color: #bbb4f2; background: #fff; box-shadow: 0 0 0 3px rgba(117, 104, 233, .1); }
.auth-box input::placeholder { color: #b8b5c3; }
body.open-access .auth-box input,
body.open-access .auth-box #unlockButton,
body.open-access .auth-box #clearButton { display: none !important; }
body.open-access .auth-box .auth-label small { font-size: 0; }
body.open-access .auth-box .auth-label small::after { content: "Direct access"; font-size: 8px; }
.mini-button { min-height: 29px; padding: 0 10px; border: 0; border-radius: 8px; color: #fff; background: var(--purple); font-size: 10px; font-weight: 750; transition: transform .2s, background .2s, opacity .2s; }
.mini-button:hover { background: var(--purple-deep); transform: translateY(-1px); }
.mini-button-plain { color: #7e7a91; background: #f2f1f6; }
.mini-button-plain:hover { color: var(--ink); background: #e9e8f0; }
.mini-button-authing { max-width: 150px; overflow: hidden; color: #5f7dca; border: 1px solid #dbe5f8; background: #f4f8ff; text-overflow: ellipsis; white-space: nowrap; }
.mini-button-authing:hover { color: #4b68af; border-color: #bdcef0; background: #edf4ff; }
.mini-button-authing.is-user { color: #39866a; border-color: #d9eee5; background: #effaf5; }
.mini-button-authing.is-user:hover { color: #2f7058; border-color: #b9dfcf; background: #e5f7ef; }

main { width: 100%; max-width: none; margin: 0 auto; padding: 39px clamp(24px, 4vw, 56px) 20px; }
.page-intro { display: flex; align-items: end; justify-content: space-between; gap: 26px; margin-bottom: 27px; }
.eyebrow, .section-kicker { color: #aaa7b7; font-size: 9px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow i, .footer i { color: #cbc9d5; font-style: normal; }
.page-intro h1 { margin: 9px 0 6px; color: var(--ink); font-family: var(--font-display); font-size: 35px; font-weight: 750; letter-spacing: -.065em; line-height: 1; }
.page-intro p { margin: 0; color: #8e8b9e; font-size: 12px; }
.page-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.sync-note { margin-right: 5px; color: #aaa7b7; font-size: 10px; }

.button { display: inline-flex; min-height: 36px; align-items: center; justify-content: center; gap: 7px; padding: 0 14px; border: 1px solid transparent; border-radius: 9px; font-size: 11px; font-weight: 750; transition: transform .2s, color .2s, background .2s, border-color .2s, box-shadow .2s, opacity .2s; }
.button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 17px rgba(42, 37, 74, .09); }
.button:active:not(:disabled) { transform: translateY(0); }
.button:disabled { cursor: not-allowed; opacity: .48; }
.button-primary { color: #fff; background: var(--purple); box-shadow: 0 7px 16px rgba(117, 104, 233, .2); }
.button-primary:hover:not(:disabled) { background: var(--purple-deep); }
.button-secondary { color: #706b84; border-color: var(--line-strong); background: #fff; }
.button-secondary:hover:not(:disabled) { color: var(--purple-deep); border-color: #d4d0f4; background: #fbfaff; }
.button-ghost { color: #8b8799; border-color: transparent; background: transparent; }
.button-ghost:hover:not(:disabled) { color: var(--purple-deep); border-color: #e6e3f7; background: #faf9ff; }
.button-icon { font-size: 16px; font-weight: 400; line-height: .7; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin: 14px 0; }
.stat-card { position: relative; min-height: 143px; overflow: hidden; padding: 18px 19px; border: 1px solid transparent; border-radius: 16px; box-shadow: 0 8px 26px rgba(42, 37, 74, .045); animation: pageIn .65s .1s cubic-bezier(.22, 1, .36, 1) both; }
.stat-card-lavender { color: #7468d7; border-color: #e7e1ff; background: linear-gradient(135deg, #f2efff, #faf9ff); }
.stat-card-mint { color: #369b76; border-color: #dcefe7; background: linear-gradient(135deg, #eaf9f2, #fbfefc); }
.stat-card-peach { color: #d48661; border-color: #f8e5db; background: linear-gradient(135deg, #fff2eb, #fffdfb); }
.stat-card-sky { color: #5d91cc; border-color: #ddeafa; background: linear-gradient(135deg, #edf5ff, #fbfdff); }
.stat-head, .stat-foot { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stat-head { color: currentColor; font-size: 9px; font-weight: 800; letter-spacing: .11em; }
.stat-icon { display: grid; width: 23px; height: 23px; place-items: center; border: 1px solid currentColor; border-radius: 7px; font-size: 14px; font-weight: 400; opacity: .62; }
.stat-value { position: relative; z-index: 1; display: block; margin-top: 24px; color: var(--ink); font-size: 36px; font-weight: 680; letter-spacing: -.075em; line-height: .85; }
.stat-foot { margin-top: 15px; color: #9a98a9; font-size: 10px; }
.stat-trend { color: currentColor; font-size: 9px; font-weight: 700; opacity: .7; }

.overview-lower-grid { margin: 14px 0; }
.panel { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, .9); box-shadow: var(--shadow); animation: pageIn .65s .17s cubic-bezier(.22, 1, .36, 1) both; }
.issues-panel { min-height: 514px; }
.panel-head { display: flex; align-items: start; justify-content: space-between; gap: 18px; padding: 22px 24px 18px; border-bottom: 1px solid var(--line); }
.compact-head { padding-bottom: 17px; }
.section-kicker { color: #aaa8b7; }
.panel h2 { margin: 7px 0 0; color: var(--ink); font-size: 18px; font-weight: 720; letter-spacing: -.045em; line-height: 1; }
.panel-tools { display: flex; align-items: center; gap: 9px; }
.feed-total { color: #aaa8b7; font-size: 10px; white-space: nowrap; }
.feed-total strong { color: #6b6781; font-weight: 750; }
.filter-select { min-height: 29px; padding: 0 25px 0 9px; border: 1px solid var(--line); border-radius: 8px; outline: 0; color: #79768b; background: #fbfbfd; font-size: 10px; cursor: pointer; }
.filter-select:focus { border-color: #d4d0f4; box-shadow: 0 0 0 3px rgba(117, 104, 233, .08); }
.filter-button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; color: #79768b; background: #fbfbfd; font-size: 10px; transition: border-color .2s, color .2s, background .2s; }
.filter-button:hover { color: var(--purple-deep); border-color: #d9d5f4; background: #f8f7ff; }
.filter-button span { color: #aaa7b7; font-size: 13px; }
.issue-toolbar { display: flex; align-items: center; gap: 10px; padding: 14px 24px 10px; }
.search-box { display: flex; min-width: 205px; flex: 1; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid #eeedf3; border-radius: 9px; color: #aaa8b6; background: #fbfbfd; transition: border-color .2s, box-shadow .2s, background .2s; }
.search-box:focus-within { border-color: #d4d0f4; background: #fff; box-shadow: 0 0 0 3px rgba(117, 104, 233, .08); }
.search-box .icon { width: 15px; height: 15px; }
.search-box input { width: 100%; min-height: 32px; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 10px; }
.search-box input::placeholder { color: #b5b2bf; }
.filter-tabs { display: flex; align-items: center; gap: 3px; padding: 3px; border-radius: 9px; background: #f4f3f8; }
.filter-tab { min-height: 27px; padding: 0 9px; border: 0; border-radius: 7px; color: #9b98a8; background: transparent; font-size: 9px; font-weight: 700; transition: color .2s, background .2s, box-shadow .2s; }
.filter-tab:hover { color: #6f6b82; }
.filter-tab.active { color: #6259c8; background: #fff; box-shadow: 0 2px 7px rgba(42, 37, 74, .08); }
.clear-filter { padding: 0; border: 0; color: var(--purple); background: transparent; font-size: 9px; font-weight: 700; white-space: nowrap; }
.clear-filter:hover { color: var(--purple-deep); text-decoration: underline; }
.issue-list { padding: 2px 24px 16px; }
.issue-row { display: grid; min-height: 75px; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 14px; border-bottom: 1px solid #f0eff5; animation: rowIn .45s both; }
.issue-row:last-child { border-bottom: 0; }
.issue-index { color: #b2afbd; font-size: 11px; font-weight: 700; }
.issue-main { min-width: 0; }
.issue-title { display: block; overflow: hidden; color: #39364e; font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.issue-title:hover { color: var(--purple-deep); }
.issue-meta { display: flex; align-items: center; gap: 7px; margin-top: 7px; overflow: hidden; color: #aaa7b5; font-size: 10px; white-space: nowrap; }
.issue-meta span { overflow: hidden; text-overflow: ellipsis; }
.issue-meta span + span::before { margin-right: 7px; color: #d0ced8; content: "·"; }
.issue-status { display: inline-flex; min-width: 71px; align-items: center; justify-content: center; gap: 5px; padding: 6px 9px; border: 1px solid #d9f0e5; border-radius: 999px; color: #3a9c78; background: #effaf5; font-size: 9px; font-weight: 750; white-space: nowrap; }
.issue-status::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; }
.issue-status.closed { color: #9693a2; border-color: #ebebf0; background: #f8f8fa; }
.issue-status.active { color: #d58361; border-color: #f7dfd4; background: #fff5f0; }
.issue-labels { display: inline-flex; gap: 4px; }
.issue-label { padding: 2px 6px; border: 1px solid #e0e8fb; border-radius: 999px; color: #7190c4; background: #f1f6ff; font-size: 9px; }
.locked-state, .empty-state { display: flex; min-height: 360px; align-items: center; justify-content: center; flex-direction: column; gap: 9px; color: #aaa7b5; text-align: center; }
.locked-state strong, .empty-state strong { color: #5c5870; font-size: 17px; font-weight: 700; letter-spacing: -.035em; }
.locked-state span:last-child, .empty-state span:last-child { font-size: 11px; }
.lock-shape { display: grid; width: 45px; height: 45px; margin-bottom: 6px; place-items: center; border: 1px solid #ddd9f8; border-radius: 13px; color: var(--purple); background: #f5f2ff; }

.pulse-panel { min-height: 0; }
.pulse-ring { display: block; width: 10px; height: 10px; margin: 4px 4px 0 0; border-radius: 50%; background: #c0bfca; }
.pulse-summary { display: flex; align-items: center; gap: 9px; margin: 19px 24px 5px; padding: 10px 11px; border: 1px solid #e6eee9; border-radius: 11px; background: #f7fcfa; }
.pulse-summary-dot { width: 7px; height: 7px; }
.pulse-summary div { display: grid; flex: 1; min-width: 0; gap: 2px; }
.pulse-summary strong { color: #52625e; font-size: 11px; font-weight: 720; }
.pulse-summary small { color: #9ba9a5; font-size: 9px; }
.online-tag { color: #a2aaa7; font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.runtime-alert { display: flex; align-items: center; gap: 8px; margin: 10px 24px 0; padding: 9px 10px; border: 1px solid #f5ddd0; border-radius: 10px; color: #b56d4e; background: #fff8f4; }
.runtime-alert-icon { display: grid; width: 17px; height: 17px; flex: 0 0 auto; place-items: center; border-radius: 6px; color: #fff; background: #df8b68; font-size: 10px; font-weight: 800; }
.runtime-alert div { display: grid; min-width: 0; gap: 2px; }
.runtime-alert strong { font-size: 10px; font-weight: 750; }
.runtime-alert small { overflow: hidden; color: #b9917d; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.status-lines { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 10px 24px 20px; }
.status-line { display: grid; align-content: start; gap: 6px; padding: 9px 14px; border-left: 1px solid #f0eff4; }
.status-line:first-child { border-left: 0; }
.status-line span { color: #a4a1ae; font-size: 10px; }
.status-line strong { overflow: hidden; color: #5f5b71; font-size: 10px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.settings-card { display: grid; grid-template-columns: minmax(250px, .8fr) minmax(0, 1.2fr); align-items: center; gap: 28px; margin-top: 14px; padding: 23px 24px; }
.settings-copy h2 { margin-top: 8px; }
.settings-copy p { max-width: 400px; margin: 10px 0 0; color: #aaa7b5; font-size: 10px; line-height: 1.6; }
.settings-edit { margin-top: 16px; }
.settings-link-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.settings-link-row .settings-edit { margin-top: 0; }
.settings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.settings-grid > div { display: grid; min-height: 57px; gap: 7px; padding: 10px 11px; border: 1px solid #f0eff4; border-radius: 10px; background: #fcfcfe; }
.settings-grid small { color: #b1aebb; font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.settings-grid strong { overflow: hidden; color: #676378; font-size: 10px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }

.modal-backdrop { position: fixed; z-index: 30; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(43, 39, 70, .2); backdrop-filter: blur(7px); }
.help-modal { position: relative; width: min(100%, 430px); padding: 30px; border: 1px solid #e3e0f7; border-radius: 20px; background: #fff; box-shadow: 0 25px 70px rgba(42, 37, 74, .2); animation: modalIn .25s cubic-bezier(.22, 1, .36, 1) both; }
.modal-close { position: absolute; top: 15px; right: 16px; display: grid; width: 27px; height: 27px; place-items: center; border: 0; border-radius: 8px; color: #aaa7b5; background: #f5f4f8; font-size: 19px; line-height: 1; }
.modal-close:hover { color: var(--ink); background: #ecebf2; }
.help-modal h2 { margin: 18px 0 22px; color: #3c3860; font-size: 29px; font-weight: 700; letter-spacing: -.07em; line-height: 1.02; }
.help-modal h2 em { color: var(--purple); font-style: normal; }
.help-steps { display: grid; gap: 9px; }
.help-steps > div { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid #f0eff5; border-radius: 10px; color: #79768b; background: #fcfcfe; font-size: 10px; line-height: 1.45; }
.help-steps b { color: var(--purple); font-size: 9px; letter-spacing: .08em; }
.modal-done { width: 100%; margin-top: 20px; }
.settings-modal { position: relative; width: min(100%, 650px); max-height: min(760px, calc(100vh - 40px)); overflow: auto; padding: 30px; border: 1px solid #e3e0f7; border-radius: 20px; background: #fff; box-shadow: 0 25px 70px rgba(42, 37, 74, .2); animation: modalIn .25s cubic-bezier(.22, 1, .36, 1) both; }
.settings-modal h2 { margin: 17px 0 0; color: #3c3860; font-size: 27px; font-weight: 700; letter-spacing: -.065em; }
.modal-intro { margin: 8px 0 22px; color: #aaa7b5; font-size: 10px; line-height: 1.5; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.form-grid label { display: grid; gap: 6px; }
.form-grid label > span { color: #817d91; font-size: 10px; font-weight: 700; }
.form-grid label small { color: #b0adba; font-size: 9px; font-weight: 500; }
.form-grid input { width: 100%; min-height: 35px; padding: 0 10px; border: 1px solid #ecebf2; border-radius: 8px; outline: 0; color: var(--ink); background: #fbfbfd; font-size: 10px; transition: border-color .2s, box-shadow .2s, background .2s; }
.form-grid input:focus { border-color: #c5bef4; background: #fff; box-shadow: 0 0 0 3px rgba(117, 104, 233, .09); }
.toggle-field { display: flex; align-items: center; gap: 10px; margin-top: 17px; padding: 11px 12px; border: 1px solid #e5f0e9; border-radius: 10px; background: #f8fcfa; }
.toggle-field input { width: 16px; height: 16px; accent-color: var(--green); }
.toggle-field span { display: grid; gap: 3px; }
.toggle-field strong { color: #58655e; font-size: 10px; }
.toggle-field small { color: #a2ada7; font-size: 9px; }
.secret-note { margin: 15px 0 0; color: #aaa7b5; font-size: 9px; line-height: 1.5; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 21px; }

.footer { display: flex; justify-content: space-between; gap: 20px; padding: 20px clamp(24px, 4vw, 56px) 24px; color: #afacba; font-size: 9px; letter-spacing: .07em; }
.footer i { color: #d0ced8; font-style: normal; }
.toast { position: fixed; z-index: 20; right: 24px; bottom: 24px; max-width: min(380px, calc(100% - 48px)); padding: 12px 15px; border: 1px solid #d8d1fb; border-radius: 10px; color: #fff; background: var(--purple); box-shadow: var(--shadow-hover); font-size: 11px; font-weight: 700; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { border-color: #f1c8b8; background: #d97952; }

.is-ready .auth-dot, .is-ready .status-dot, .is-ready .pulse-summary-dot { background: var(--green); box-shadow: 0 0 0 4px rgba(54, 167, 123, .12); }
.is-ready .auth-label strong { color: var(--green); }
.is-ready .status-live { color: var(--green); }
.is-ready .pulse-ring { background: var(--green); box-shadow: 0 0 0 5px rgba(54, 167, 123, .12); animation: breathe 2.4s ease-in-out infinite; }
.is-ready .online-tag { color: var(--green); }

@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes rowIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes breathe { 0%, 100% { transform: scale(.84); } 50% { transform: scale(1.15); } }
@keyframes modalIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }

@container workspace (max-width: 1120px) {
  .topbar { padding-right: 30px; padding-left: 30px; }
  main { padding-right: 30px; padding-left: 30px; }
  .page-intro { align-items: start; flex-direction: column; }
  .page-actions { justify-content: flex-start; }
}

/* Give narrow windows and touch screens the same compact navigation. Keeping
   the desktop sidebar at this width leaves too little room for the workspace
   itself, especially on an embedded browser or a split-screen window. */
@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { position: relative; display: block; height: auto; padding: 15px 18px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { display: inline-flex; padding: 3px 3px 14px; }
  .workspace-switcher, .sidebar-status { display: none; }
  .sidebar-nav { display: flex; align-items: center; gap: 4px; overflow-x: auto; padding: 0; }
  .nav-heading { display: none; }
  .nav-heading-spaced { display: none; }
  .nav-item { flex: 0 0 auto; min-height: 36px; margin: 0; padding: 0 10px; }
  .nav-item .nav-current, .nav-badge { display: none; }
  .topbar { min-height: 68px; padding: 0 24px; }
  .auth-label, .auth-box input { display: none; }
  main { padding-top: 30px; }
}

@container workspace (max-width: 650px) {
  .topbar { align-items: flex-start; flex-direction: column; gap: 11px; padding-top: 15px; padding-bottom: 14px; }
  .topbar-actions { width: 100%; justify-content: space-between; }
  .auth-box { flex: 1; justify-content: flex-end; }
  .auth-box input { display: block; flex: 1; width: auto; }
  main { padding: 28px 16px 14px; }
  .page-intro { margin-bottom: 21px; }
  .page-intro h1 { font-size: 31px; }
  .page-actions { width: 100%; }
  .sync-note { width: 100%; margin: 0 0 3px; }
  .page-actions .button { flex: 1; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { min-height: 130px; padding: 15px; }
  .stat-value { margin-top: 20px; font-size: 31px; }
  .stat-foot { margin-top: 12px; }
  .status-lines { grid-template-columns: 1fr 1fr; }
  .status-line:nth-child(odd) { border-left: 0; }
  .status-line:nth-child(n + 3) { border-top: 1px solid #f0eff4; }
  .settings-card { grid-template-columns: 1fr; gap: 18px; }
  .settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-modal { padding: 24px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .panel-head { padding-right: 17px; padding-left: 17px; }
  .issue-toolbar { align-items: stretch; flex-wrap: wrap; padding-right: 17px; padding-left: 17px; }
  .search-box { min-width: 100%; }
  .filter-tabs { flex: 1; }
  .filter-tab { flex: 1; }
  .issue-list { padding-right: 17px; padding-left: 17px; }
  .panel-tools { align-items: flex-end; flex-direction: column; gap: 5px; }
  .issue-row { grid-template-columns: 23px minmax(0, 1fr); gap: 9px; padding: 15px 0; }
  .issue-status { grid-column: 2; width: fit-content; min-width: 0; }
  .pulse-panel { min-height: 0; }
  .footer { flex-direction: column; gap: 8px; padding-right: 16px; padding-left: 16px; }
}

@container workspace (max-width: 390px) {
  .topbar { padding-right: 16px; padding-left: 16px; }
  .breadcrumbs { font-size: 11px; }
  .auth-box { gap: 5px; padding-left: 7px; }
  .icon-button { display: none; }
  .status-lines { grid-template-columns: 1fr; }
  .status-line { border-top: 1px solid #f0eff4; border-left: 0; }
  .status-line:first-child { border-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
