@import "tailwindcss";
@import "tw-animate-css";
@import "shadcn/tailwind.css";
@theme inline {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-border: var(--border);
  --color-muted-foreground: var(--muted-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, monospace;
}
:root {
  color-scheme: light;
  --background: #f4f6f8;
  --foreground: #17212b;
  --card: #fff;
  --card-foreground: #17212b;
  --muted-foreground: #71808e;
  --border: #e2e7eb;
  --primary: #246bce;
  --primary-foreground: #fff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 14px;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.7;
}
.app-shell {
  min-height: 100vh;
  display: flex;
}
.sidebar {
  width: 252px;
  flex-shrink: 0;
  background: #17222d;
  color: #b5c2ce;
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 25px;
  color: #fff;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #f4ad36;
  color: #17222d;
  display: grid;
  place-items: center;
}
.brand strong {
  font-size: 17px;
  letter-spacing: -0.5px;
}
.brand strong span {
  color: #f4ad36;
}
.brand small,
.workspace small,
.profile small {
  display: block;
  color: #82919e;
  font-size: 11px;
  margin-top: 2px;
}
.mobile-close {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
  color: #adbac5;
}
.workspace {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #22303d;
  border: 1px solid #334351;
  border-radius: 9px;
  padding: 10px;
  margin-bottom: 25px;
}
.workspace-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: #2d72c6;
  border-radius: 7px;
  color: #fff;
  font-weight: 700;
}
.workspace b {
  font-size: 12px;
  color: #eef3f7;
}
.workspace > svg {
  margin-left: auto;
}
.sidebar nav {
  display: grid;
  gap: 5px;
}
.sidebar nav button {
  border: 0;
  background: none;
  color: #a9b6c1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 7px;
  text-align: left;
}
.sidebar nav button:hover,
.sidebar nav button.active {
  color: #fff;
  background: #263744;
}
.sidebar nav button.active {
  box-shadow: inset 3px 0 #f4ad36;
}
.sidebar nav em {
  font-style: normal;
  font-size: 11px;
  margin-left: auto;
  background: #efaa3e;
  color: #17222d;
  border-radius: 10px;
  padding: 2px 7px;
  font-weight: 700;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #263744;
}

.sidebar-settings-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 0;
  background: none;
  color: #7d8f9b;
  padding: 10px 12px;
  border-radius: 7px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.sidebar-settings-btn:hover {
  background: #263744;
  color: #cbd8e0;
}

.sidebar-settings-btn.active {
  background: #263744;
  color: #fff;
  box-shadow: inset 3px 0 #f4ad36;
}

/* ── Workspace dropdown ── */
.ws-dropdown-wrap {
  position: relative;
  margin-bottom: 20px;
}

.ws-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: #1e2d3a;
  border: 1px solid #2e3f4e;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  text-align: left;
}

.ws-trigger:hover,
.ws-trigger.open {
  background: #253443;
  border-color: #3b5268;
}

.ws-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  color: #17222d;
  flex-shrink: 0;
}

.ws-info {
  flex: 1;
  min-width: 0;
}

.ws-info b {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #eef3f7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ws-info small {
  display: block;
  font-size: 10px;
  color: #6b7f8d;
  margin-top: 1px;
}

.ws-chevron {
  color: #6b7f8d;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.ws-chevron.rotated {
  transform: rotate(180deg);
}

.ws-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #1a2733;
  border: 1px solid #2e3f4e;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  padding: 8px;
  z-index: 100;
  animation: ws-slide-in 0.15s ease;
}

@keyframes ws-slide-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ws-dropdown-label {
  font-size: 10px;
  font-weight: 700;
  color: #4e6070;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px 6px;
  margin: 0;
}

.ws-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: none;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s;
}

.ws-option:hover {
  background: #263744;
}

.ws-option.active {
  background: #1f3244;
}

.ws-icon-sm {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 800;
  color: #17222d;
  flex-shrink: 0;
}

.ws-option b {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #dce8f0;
}

.ws-option small {
  display: block;
  font-size: 10px;
  color: #5e7485;
  margin-top: 1px;
}

.ws-check {
  margin-left: auto;
  color: #f4ad36;
  flex-shrink: 0;
}

.ws-divider {
  height: 1px;
  background: #2a3c4a;
  margin: 6px 0;
}

.ws-add-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  background: none;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #6b8fa3;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.ws-add-btn:hover {
  background: #263744;
  color: #a8c4d4;
}
.avatar,
.large-avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #d9e8fa;
  color: #246bce;
  font-weight: 700;
}
.avatar {
  width: 30px;
  height: 30px;
  font-size: 10px;
}
.profile b {
  font-size: 11px;
  color: #e7edf2;
}
.profile svg {
  margin-left: auto;
}
.main {
  min-width: 0;
  flex: 1;
}
.topbar {
  height: 76px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
}
.header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-title p,
.page-intro p,
.panel-heading p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 12px;
}
.header-title h1 {
  font-size: 17px;
  margin: 4px 0 0;
  letter-spacing: -0.3px;
}
.menu-button {
  display: none;
  border: 0;
  background: none;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.search,
.table-search {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #95a1aa;
  background: #f5f7f8;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 8px 10px;
}
.search {
  width: 210px;
}
.search input,
.table-search input {
  border: 0;
  outline: 0;
  background: transparent;
  width: 100%;
  font-size: 12px;
}
.connection,
.connected {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #4c8c66;
  font-size: 11px;
  white-space: nowrap;
}
.pulse,
.dot,
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #48a96c;
}
.pulse {
  box-shadow: 0 0 0 4px #e1f3e7;
}
.icon-button,
.row-refresh {
  border: 1px solid var(--border);
  background: #fff;
  color: #647481;
  border-radius: 7px;
  padding: 8px;
  display: grid;
  place-items: center;
}
.refresh {
  border: 0;
  background: #236bcc;
  color: #fff;
  border-radius: 7px;
  padding: 9px 13px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
}
.refresh.small {
  padding: 7px 10px;
}
.logout-button {
  border: 1px solid rgba(220, 38, 38, 0.35);
  background: rgba(239, 68, 68, 0.08);
  color: #dc2626;
  border-radius: 7px;
  padding: 9px 13px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.logout-button:hover {
  background: rgba(239, 68, 68, 0.15);
}
.spin {
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.main-content {
  padding: 24px 28px;
  max-width: 100%;
  margin: auto;
}
.page-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 23px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.25px;
  color: #8695a1;
  font-size: 10px;
  font-weight: 700;
}
.page-intro h2 {
  margin: 8px 0 4px;
  font-size: 25px;
  letter-spacing: -0.8px;
}
.live-dot {
  margin-left: 8px;
  width: 5px;
  height: 5px;
  background: #48a96c;
  vertical-align: middle;
}
.updated {
  text-align: right;
  color: #8695a1;
  font-size: 11px;
}
.updated span,
.updated b {
  display: block;
}
.updated b {
  color: #273743;
  margin-top: 4px;
  font-size: 12px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 17px;
}
.stat-card,
.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 2px 7px #1f35400a;
}
.stat-card {
  padding: 17px 18px;
}
.stat-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #71808e;
  font-size: 12px;
}
.stat-icon {
  width: 31px;
  height: 31px;
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.stat-icon.blue {
  background: #e5f0ff;
  color: #246bce;
}
.stat-icon.green {
  background: #e5f5eb;
  color: #48a96c;
}
.stat-icon.amber {
  background: #fff1d9;
  color: #d38b1a;
}
.stat-icon.slate {
  background: #eef1f3;
  color: #71808e;
}
.stat-card strong {
  display: block;
  font-size: 27px;
  letter-spacing: -1px;
  margin: 13px 0 3px;
}
.stat-card small {
  font-size: 11px;
  color: #8a98a2;
}
.slot-alert {
  display: flex;
  align-items: center;
  gap: 15px;
  background: #f0faf3;
  border: 1px solid #bde5ca;
  border-radius: 10px;
  padding: 15px 17px;
  margin-bottom: 17px;
}
.alert-icon {
  width: 34px;
  height: 34px;
  background: #d7f1df;
  color: #3b9b60;
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.alert-copy {
  flex: 1;
}
.green-text {
  color: #31894d;
}
.alert-time {
  color: #80a68b;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  margin-left: 8px;
}
.slot-alert h3 {
  font-size: 14px;
  margin: 5px 0 10px;
}
.slot-alert h3 span {
  color: #246bce;
}
.slot-meta {
  display: flex;
  gap: 26px;
  font-size: 12px;
}
.slot-meta > span {
  display: grid;
  gap: 3px;
}
.meta-label {
  font-size: 10px;
  color: #7b9985;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.outline-button,
.text-button,
.copy-button {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  background: #fff;
  color: #236bcc;
  border-radius: 7px;
  padding: 8px 11px;
  font-size: 11px;
  font-weight: 600;
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.8fr);
  gap: 17px;
}
.panel {
  padding: 19px;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 18px;
}
.panel-heading h2 {
  font-size: 15px;
  margin: 0 0 5px;
  letter-spacing: -0.2px;
}
.text-button {
  border: 0;
  padding: 0;
  background: none;
}
.table-tools {
  display: flex;
  gap: 9px;
  margin-bottom: 15px;
}
.table-search {
  width: 240px;
}
.filter {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0 9px;
  color: #7a8994;
}
.filter select,
.setting-row select {
  border: 0;
  background: transparent;
  color: #53636e;
  padding: 8px 2px;
  outline: 0;
  font-size: 12px;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 690px;
}
th {
  text-align: left;
  color: #87949d;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-size: 10px;
  font-weight: 700;
  padding: 9px 8px;
  border-bottom: 1px solid var(--border);
}
td {
  padding: 13px 8px;
  border-bottom: 1px solid #edf0f2;
  font-size: 12px;
  white-space: nowrap;
}
td b,
td small {
  display: block;
}
td small {
  color: #7e8d98;
  font-size: 11px;
  margin-top: 4px;
}
.id-button {
  border: 0;
  background: none;
  color: #236bcc;
  font-weight: 700;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}
.muted {
  color: #84919a;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
}
.status .dot {
  width: 6px;
  height: 6px;
}
.tone-green {
  color: #38915b;
}
.tone-green .dot {
  background: #48a96c;
}
.tone-blue {
  color: #3679c7;
}
.tone-blue .dot {
  background: #4f8fd7;
}
.tone-amber {
  color: #bd7d18;
}
.tone-amber .dot {
  background: #dca33e;
}
.tone-red {
  color: #c25b5b;
}
.tone-red .dot {
  background: #d26b6b;
}
.tone-slate {
  color: #7c8992;
}
.tone-slate .dot {
  background: #a5afb5;
}
.activity-panel {
  min-height: 100%;
}
.timeline {
  display: grid;
  gap: 20px;
  padding: 5px 2px;
}
.event {
  display: flex;
  gap: 12px;
}
.event-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  box-shadow: 0 0 0 4px #edf2f4;
}
.event b,
.event small {
  display: block;
  font-size: 12px;
}
.event small {
  color: #8a98a2;
  font-size: 10px;
  margin-top: 5px;
}
.empty {
  text-align: center;
  padding: 35px;
  color: #87949d;
}
.empty svg {
  margin: auto;
}
.empty p {
  font-size: 12px;
}
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: #17222d44;
  z-index: 20;
}
.drawer {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: min(450px, 100%);
  background: #fff;
  padding: 27px;
  box-shadow: -8px 0 24px #17222d22;
  overflow: auto;
}
.drawer-head {
  display: flex;
  justify-content: space-between;
}
.drawer-head p {
  color: #87949d;
  font-size: 11px;
  margin: 0 0 5px;
}
.drawer-head h2 {
  margin: 0;
  font-size: 22px;
}
.drawer-section {
  padding: 25px 0;
  border-bottom: 1px solid var(--border);
}
.detail-title {
  display: flex;
  align-items: center;
  gap: 12px;
}
.large-avatar {
  width: 42px;
  height: 42px;
}
.detail-title h3 {
  margin: 0 0 3px;
  font-size: 14px;
}
.detail-title p {
  margin: 0;
  color: #7d8a95;
  font-size: 12px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 22px;
}
.detail-grid small,
.detail-grid b {
  display: block;
}
.detail-grid small {
  color: #86939c;
  font-size: 10px;
  margin-bottom: 6px;
}
.detail-grid b {
  font-size: 12px;
}
.section-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #87949d;
  font-size: 10px;
  font-weight: 700;
}
.copy-button {
  padding: 5px 8px;
  text-transform: none;
  letter-spacing: 0;
}
.drawer pre {
  background: #17222d;
  color: #c1d1dd;
  border-radius: 8px;
  padding: 15px;
  overflow: auto;
  font: 11px/1.6 var(--font-mono);
  margin: 13px 0 0;
}
.drawer-note {
  display: flex;
  gap: 8px;
  color: #7d8b96;
  font-size: 11px;
  line-height: 1.5;
  padding-top: 18px;
}
.slots-page {
  max-width: 1000px;
}
.settings-card {
  height: fit-content;
}
.slots-list {
  display: flex;
  flex-direction: column;
}
.slots-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 40px 20px;
  color: #87949d;
  text-align: center;
}
.slots-empty b {
  font-size: 14px;
  color: #5b6b77;
}
.slots-empty p {
  max-width: 420px;
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  margin-top: 6px;
  padding-top: 14px;
}
.pagination-total {
  font-size: 11px;
  color: #87949d;
}
.pagination-pages {
  display: flex;
  gap: 5px;
}
.pagination-btn {
  min-width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  background: #fff;
  color: #5b6b77;
  border-radius: 7px;
  font-size: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pagination-btn:hover:not(:disabled) {
  border-color: #236bcc;
  color: #236bcc;
}
.pagination-btn.active {
  background: #236bcc;
  border-color: #236bcc;
  color: #fff;
}
.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.slot-row {
  border-top: 1px solid var(--border);
  padding: 16px 0;
  display: flex;
  align-items: center;
  gap: 15px;
}
.slot-calendar {
  background: #f0f5f9;
  border: 1px solid var(--border);
  border-radius: 7px;
  text-align: center;
  overflow: hidden;
  width: 48px;
}
.slot-calendar span {
  display: block;
  background: #dce8f1;
  font-size: 9px;
  padding: 3px;
  color: #547080;
}
.slot-calendar b {
  display: block;
  font-size: 17px;
  padding: 5px;
}
.slot-row h3 {
  margin: 0 0 5px;
  font-size: 13px;
}
.slot-row p {
  margin: 0;
  color: #84929c;
  font-size: 11px;
}
.slot-detected {
  margin-left: auto;
  display: grid;
  gap: 4px;
}
.slot-detected small {
  font-size: 10px;
  color: #87949d;
}
.slot-detected b {
  font-size: 11px;
}
.api-grid,
.settings-grid {
  display: grid;
  gap: 17px;
  max-width: 900px;
}.api-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 28px;
}
.api-orb {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #dff3e5;
  color: #38915b;
  display: grid;
  place-items: center;
}
.api-hero h2 {
  margin: 7px 0 5px;
  font-size: 21px;
}
.api-hero p {
  margin: 0;
  color: #71808e;
}
.api-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: end;
  gap: 20px;
}
.api-details small,
.api-details b {
  display: block;
}
.api-details small {
  color: #87949d;
  font-size: 10px;
  margin-bottom: 5px;
}
.api-details b {
  font-size: 12px;
}
.settings-grid {
  grid-template-columns: 1fr 1fr 1fr;
  max-width: 100%;
}
.settings-card .panel-heading > svg {
  color: #7f909d;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 0;
  border-top: 1px solid var(--border);
  gap: 15px;
}
.setting-row b,
.setting-row small {
  display: block;
}
.setting-row b {
  font-size: 12px;
}
.setting-row small {
  color: #87949d;
  font-size: 10px;
  margin-top: 5px;
  max-width: 230px;
}
.setting-row select {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 7px 9px;
}
.mode-note {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #eef7f0;
  color: #3f8d59;
  border-radius: 6px;
  padding: 9px;
  font-size: 11px;
}

.mode-note-error {
  background: #fef2f2;
  color: #b91c1c;
}
.logout-btn {
  margin-top: 14px;
  width: 100%;
  justify-content: center;
}
.toggle {
  width: 38px;
  height: 22px;
  border: 0;
  background: #cbd4da;
  border-radius: 12px;
  padding: 3px;
}
.toggle span {
  display: block;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
}
.toggle.on {
  background: #48a96c;
}
.toggle.on span {
  transform: translateX(16px);
}
footer {
  display: flex;
  justify-content: space-between;
  color: #9aa5ac;
  font-size: 10px;
  padding: 26px 2px;
}
@media (max-width: 1000px) {
  .sidebar {
    width: 220px;
  }
  .topbar,
  .main-content {
    padding-left: 22px;
    padding-right: 22px;
  }
  .header-actions .search {
    display: none;
  }
  .content-grid {
    grid-template-columns: 1fr;
  }
  .activity-panel {
    min-height: auto;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .sidebar {
    position: fixed;
    left: -260px;
    top: 0;
    bottom: 0;
    z-index: 30;
    transition: left 0.2s;
    width: 260px;
  }
  .sidebar.open {
    left: 0;
  }
  .mobile-close,
  .menu-button {
    display: block;
  }
  .topbar {
    height: 68px;
    padding: 0 16px;
  }
  .header-title h1 {
    font-size: 15px;
  }
  .connection span:last-child,
  .header-actions > .icon-button {
    display: none;
  }
  .header-actions {
    gap: 7px;
  }
  .refresh {
    padding: 8px 10px;
  }
  .logout-button {
    padding: 8px 10px;
  }
  .logout-button span {
    display: none;
  }
  .main-content {
    padding: 24px 16px;
  }
  .page-intro {
    align-items: start;
  }
  .page-intro h2 {
    font-size: 21px;
  }
  .updated {
    display: none;
  }
  .stats {
    gap: 9px;
  }
  .stat-card {
    padding: 13px;
  }
  .stat-card strong {
    font-size: 23px;
  }
  .slot-alert {
    align-items: start;
    flex-wrap: wrap;
  }
  .slot-copy {
    min-width: 0;
  }
  .slot-meta {
    gap: 12px;
    flex-wrap: wrap;
  }
  .slot-alert .outline-button {
    margin-left: 49px;
  }
  .table-tools {
    flex-wrap: wrap;
  }
  .table-search {
    width: 100%;
  }
  .panel {
    padding: 15px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }  .api-details {
    grid-template-columns: 1fr 1fr;
  }
  .api-details .refresh {
    grid-column: span 2;
  }
  .slot-row {
    align-items: start;
    flex-wrap: wrap;
  }
  .slot-detected {
    margin-left: 0;
  }
  .slot-row .outline-button {
    margin-left: 63px;
  }
  footer {
    flex-direction: column;
    gap: 8px;
  }
}

/* ── Sidebar account section ─────────────────────────────────────────────── */

.sidebar-accounts {
  margin: 0 0 18px;
  padding: 0 4px;
}

.sidebar-accounts-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #4a5d6b;
  padding: 0 8px 6px;
}

.sidebar-accounts ul {
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
  display: grid;
  gap: 2px;
}

.sidebar-account {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.12s;
  min-width: 0;
  cursor: default;
}

.sidebar-account:hover {
  background: #1e2d3a;
}

.sidebar-account-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sidebar-account-name {
  font-size: 11px;
  color: #8ca5b5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.sidebar-add-account {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  background: none;
  border: 1px dashed #2a3c4a;
  border-radius: 7px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #4e6a7a;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  margin-top: 4px;
}

.sidebar-add-account:hover {
  border-color: #3b5568;
  color: #7da5bb;
  background: #1e2d3a;
}

/* ── Account modal ─────────────────────────────────────────────────────────── */

.account-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 20, 27, 0.72);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(2px);
  animation: modal-fade-in 0.15s ease;
}

@keyframes modal-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.account-modal {
  background: #17222d;
  border: 1px solid #2a3c4a;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  animation: modal-slide-up 0.18s ease;
  overflow: hidden;
}

@keyframes modal-slide-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.account-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 20px 16px;
  border-bottom: 1px solid #21303d;
}

.account-modal-header strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #dde8f0;
  margin-bottom: 3px;
}

.account-modal-header p {
  margin: 0;
  font-size: 11px;
  color: #566d7c;
}

.account-modal-close {
  background: none;
  border: 0;
  color: #5d7585;
  cursor: pointer;
  padding: 2px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  transition: color 0.12s, background 0.12s;
  flex-shrink: 0;
}

.account-modal-close:hover {
  color: #a0b8c6;
  background: #1e2d3a;
}

.account-modal-tabs {
  display: flex;
  gap: 0;
  padding: 12px 20px 0;
  border-bottom: 1px solid #21303d;
}

.account-modal-tab {
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #5a7484;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  margin-bottom: -1px;
}

.account-modal-tab:hover {
  color: #90b0c0;
}

.account-modal-tab.active {
  color: #f4ad36;
  border-bottom-color: #f4ad36;
}

.account-modal-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.account-modal-textarea {
  width: 100%;
  min-height: 160px;
  background: #0f1a22;
  border: 1px solid #243342;
  border-radius: 8px;
  color: #c1d5e0;
  font-size: 11px;
  font-family: var(--font-mono, monospace);
  line-height: 1.55;
  padding: 12px;
  resize: vertical;
  outline: none;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.account-modal-textarea:focus {
  border-color: #3b6480;
}

.account-modal-textarea::placeholder {
  color: #3a5060;
}

.account-modal-hint {
  margin: 0;
  font-size: 11px;
  color: #4d6874;
  line-height: 1.5;
}

.account-modal-error {
  margin: 0;
  font-size: 11px;
  color: #d16b6b;
  background: rgba(209, 107, 107, 0.1);
  border: 1px solid rgba(209, 107, 107, 0.2);
  border-radius: 6px;
  padding: 8px 10px;
}

.account-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px 18px;
  border-top: 1px solid #21303d;
}

.account-modal-cancel {
  background: none;
  border: 1px solid #2a3c4a;
  color: #6a8494;
  border-radius: 7px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.account-modal-cancel:hover:not(:disabled) {
  background: #1e2d3a;
  color: #90aab8;
}

.account-modal-cancel:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.account-modal-connect {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #f4ad36;
  color: #17222d;
  border: 0;
  border-radius: 7px;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}

.account-modal-connect:hover:not(:disabled) {
  background: #fbbe55;
}

.account-modal-connect:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ── Sidebar account section ── */
.sidebar-accounts { margin: 0 0 18px; padding: 0 4px; }
.sidebar-accounts-label { display: block; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #4a5d6b; padding: 0 8px 6px; }
.sidebar-accounts ul { list-style: none; margin: 0 0 4px; padding: 0; display: grid; gap: 2px; }
.sidebar-account { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 6px; transition: background 0.12s; cursor: default; }
.sidebar-account:hover { background: #1e2d3a; }
.sidebar-account-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.sidebar-account-name { font-size: 11px; color: #8ca5b5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sidebar-add-account { display: flex; align-items: center; gap: 6px; width: 100%; background: none; border: 1px dashed #2a3c4a; border-radius: 7px; padding: 7px 10px; font-size: 11px; font-weight: 600; color: #4e6a7a; cursor: pointer; transition: border-color 0.15s, color 0.15s, background 0.15s; margin-top: 4px; }
.sidebar-add-account:hover { border-color: #3b5568; color: #7da5bb; background: #1e2d3a; }

/* ── Account modal ── */
.account-modal-overlay { position: fixed; inset: 0; background: rgba(14,20,27,0.72); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; backdrop-filter: blur(2px); animation: modal-fade-in 0.15s ease; }
@keyframes modal-fade-in { from { opacity: 0; } to { opacity: 1; } }
.account-modal { background: #17222d; border: 1px solid #2a3c4a; border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,0.55); width: 100%; max-width: 480px; display: flex; flex-direction: column; animation: modal-slide-up 0.18s ease; overflow: hidden; }
@keyframes modal-slide-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.account-modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 16px; border-bottom: 1px solid #21303d; }
.account-modal-header strong { display: block; font-size: 14px; font-weight: 700; color: #dde8f0; margin-bottom: 3px; }
.account-modal-header p { margin: 0; font-size: 11px; color: #566d7c; }
.account-modal-close { background: none; border: 0; color: #5d7585; cursor: pointer; padding: 2px; border-radius: 5px; display: grid; place-items: center; transition: color 0.12s, background 0.12s; flex-shrink: 0; }
.account-modal-close:hover { color: #a0b8c6; background: #1e2d3a; }
.account-modal-tabs { display: flex; padding: 12px 20px 0; border-bottom: 1px solid #21303d; }
.account-modal-tab { background: none; border: 0; border-bottom: 2px solid transparent; color: #5a7484; font-size: 12px; font-weight: 600; padding: 8px 14px; cursor: pointer; transition: color 0.15s, border-color 0.15s; margin-bottom: -1px; }
.account-modal-tab:hover { color: #90b0c0; }
.account-modal-tab.active { color: #f4ad36; border-bottom-color: #f4ad36; }
.account-modal-body { padding: 16px 20px; display: flex; flex-direction: column; gap: 8px; }
.account-modal-textarea { width: 100%; min-height: 160px; background: #0f1a22; border: 1px solid #243342; border-radius: 8px; color: #c1d5e0; font-size: 11px; font-family: var(--font-mono, monospace); line-height: 1.55; padding: 12px; resize: vertical; outline: none; transition: border-color 0.15s; box-sizing: border-box; }
.account-modal-textarea:focus { border-color: #3b6480; }
.account-modal-textarea::placeholder { color: #3a5060; }
.account-modal-hint { margin: 0; font-size: 11px; color: #4d6874; line-height: 1.5; }
.account-modal-error { margin: 0; font-size: 11px; color: #d16b6b; background: rgba(209,107,107,0.1); border: 1px solid rgba(209,107,107,0.2); border-radius: 6px; padding: 8px 10px; }
.account-modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 20px 18px; border-top: 1px solid #21303d; }
.account-modal-cancel { background: none; border: 1px solid #2a3c4a; color: #6a8494; border-radius: 7px; padding: 8px 16px; font-size: 12px; font-weight: 600; cursor: pointer; transition: background 0.12s, color 0.12s; }
.account-modal-cancel:hover:not(:disabled) { background: #1e2d3a; color: #90aab8; }
.account-modal-cancel:disabled { opacity: 0.5; cursor: not-allowed; }
.account-modal-connect { display: inline-flex; align-items: center; gap: 7px; background: #f4ad36; color: #17222d; border: 0; border-radius: 7px; padding: 8px 18px; font-size: 12px; font-weight: 700; cursor: pointer; transition: background 0.15s, opacity 0.15s; }
.account-modal-connect:hover:not(:disabled) { background: #fbbe55; }
.account-modal-connect:disabled { opacity: 0.45; cursor: not-allowed; }

/* ── Workspace accordion sidebar ── */
.ws-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

.ws-accordion {
  border-radius: 9px;
  overflow: hidden;
}

.ws-header {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: #1e2d3a;
  border: 1px solid #2a3c4a;
  border-radius: 9px;
  padding: 9px 12px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  text-align: left;
  color: #a9b6c1;
}

.ws-header:hover {
  background: #253443;
  border-color: #3a5265;
}

.ws-header.open {
  background: #1f3244;
  border-color: #3a5568;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  color: #fff;
}

.ws-badge {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
  color: #17222d;
  flex-shrink: 0;
}

.ws-name {
  flex: 1;
  font-size: 12px;
  font-weight: 700;
  color: inherit;
}

.ws-arrow {
  color: #4e6070;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.ws-arrow.rotated {
  transform: rotate(180deg);
}

.ws-nav {
  background: #1a2a36;
  border: 1px solid #2a3c4a;
  border-top: 0;
  border-bottom-left-radius: 9px;
  border-bottom-right-radius: 9px;
  padding: 6px;
  display: grid;
  gap: 2px;
}

.ws-nav button {
  border: 0;
  background: none;
  color: #7d9aaa;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 7px;
  text-align: left;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  width: 100%;
}

.ws-nav button:hover {
  background: #1e2d3a;
  color: #c8dde8;
}

.ws-nav button.active {
  background: #233345;
  color: #fff;
  box-shadow: inset 3px 0 #f4ad36;
}

/* ── Account connect form tabs ── */
.connect-form-tabs {
  display: flex;
  border: 1px solid #e2e7eb;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
}

.connect-form-tab {
  flex: 1;
  border: 0;
  background: #f8fafc;
  color: #64748b;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.connect-form-tab:first-child {
  border-right: 1px solid #e2e7eb;
}

.connect-form-tab.active {
  background: #2563eb;
  color: #fff;
}

.connect-form-tab:not(.active):hover {
  background: #eff6ff;
  color: #2563eb;
}

.connect-cookie-count {
  margin: 0;
  font-size: 11px;
  color: #16a34a;
  font-weight: 600;
}
