/* ============================================================
   ACC Tools Web — Design System (sourced from ACC CSS + computed.json)
   ============================================================ */

/* ── Autodesk font (hosted by Autodesk CDN) ──────────────────── */
@font-face {
  font-family: "Artifakt Element";
  src: url("https://swc.autodesk.com/pharmacopeia/fonts/ArtifaktElement/v1.0/WOFF2/Artifakt%20Element%20Medium.woff2") format("woff2"),
       url("https://swc.autodesk.com/pharmacopeia/fonts/ArtifaktElement/v1.0/WOFF/Artifakt%20Element%20Medium.woff") format("woff");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Artifakt Element";
  src: url("https://swc.autodesk.com/pharmacopeia/fonts/ArtifaktElement/v1.0/WOFF2/Artifakt%20Element%20Semi%20Bold.woff2") format("woff2"),
       url("https://swc.autodesk.com/pharmacopeia/fonts/ArtifaktElement/v1.0/WOFF/Artifakt%20Element%20Semi%20Bold.woff") format("woff");
  font-weight: 600; font-style: normal; font-display: swap;
}

/* ── Design tokens ──────────────────────────────────────────── */
:root {
  --acc-font:         "Artifakt Element", Helvetica, Arial, sans-serif;
  --acc-blue:         rgb(0, 155, 155);
  --acc-blue-hover:   rgb(0, 178, 178);
  --acc-blue-active:  rgb(0, 130, 130);
  --acc-blue-light:   rgba(0, 155, 155, 0.08);
  --acc-text:         rgb(34, 34, 34);
  --acc-text-muted:   rgb(129, 144, 153);
  --acc-text-header:  rgb(60, 60, 60);
  --acc-border:       rgb(218, 225, 230);
  --acc-surface:      rgb(247, 249, 250);
  --acc-white:        rgb(255, 255, 255);
  --acc-danger:       rgb(255, 73, 92);
  --acc-danger-hover: rgb(255, 128, 140);
  --acc-success:      rgb(52, 168, 83);
  --acc-warning:      rgb(247, 148, 29);
  --acc-topbar-bg:    rgb(34, 34, 34);
  --acc-log-bg:       rgb(26, 26, 46);

  /* Status colors — full ACC palette (13 statuses) */
  --status-draft:            rgb(188, 201, 209);
  --status-open:             rgb(247, 148, 29);
  --status-pending:          rgb(122, 90, 222);
  --status-in-progress:      rgb(0, 155, 155);
  --status-in-review:        rgb(167, 110, 245);
  --status-completed:        rgb(52, 168, 83);
  --status-closed:           rgb(129, 144, 153);
  --status-void:             rgb(188, 201, 209);
  --status-answered:         rgb(0, 135, 135);
  --status-not-approved:     rgb(229, 57, 53);
  --status-in-dispute:       rgb(183, 28, 28);
  --status-work-completed:   rgb(56, 142, 60);
  --status-ready-to-inspect: rgb(2, 119, 189);

  /* Type colors */
  --type-clash:         rgb(33, 150, 243);
  --type-commission:    rgb(0, 188, 212);
  --type-safety:        rgb(255, 152, 0);
  --type-design:        rgb(63, 81, 181);
  --type-quality:       rgb(76, 175, 80);
  --type-rfi:           rgb(156, 39, 176);
  --type-default:       rgb(96, 125, 139);

  /* Layout */
  --sidebar-w:    125px;
  --topbar-h:     38px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: var(--acc-font);
  font-size: 13px;
  font-weight: 500;
  color: var(--acc-text);
  background: var(--acc-white);
  margin: 0;
  padding: 0;
  height: 100vh;
  overflow: hidden;
  /* Full-page grid: topbar + content */
  display: grid;
  grid-template-rows: var(--topbar-h) 1fr;
  grid-template-columns: 1fr;
}

[x-cloak] { display: none !important; }

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar        { width: 6px; height: 6px; }
::-webkit-scrollbar-track  { background: transparent; }
::-webkit-scrollbar-thumb  { background: var(--acc-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--acc-text-muted); }

/* ── Top bar ────────────────────────────────────────────────── */
.acc-topbar {
  height: var(--topbar-h);
  background: var(--acc-topbar-bg);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 12px;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.acc-topbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--acc-white);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.acc-topbar-logo svg { color: var(--acc-blue); }
.acc-topbar-project {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  flex: 1;
  min-width: 0;
}
.acc-topbar-project select {
  background: transparent;
  border: none;
  color: rgba(255,255,255,0.85);
  font-family: var(--acc-font);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  max-width: 260px;
  outline: none;
}
.acc-topbar-project select option { background: rgb(34,34,34); color: var(--acc-white); }
.acc-topbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.acc-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--acc-blue);
  color: var(--acc-white);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.acc-topbar-user img {
  width: 26px; height: 26px;
  border-radius: 50%;
}

/* ── App shell ──────────────────────────────────────────────── */
.acc-shell {
  display: flex;
  overflow: hidden;
  min-height: 0;
  height: 100%; /* Explicit height for flex children */
  position: relative;
}

/* ── Sidebar ────────────────────────────────────────────────── */
.acc-sidebar {
  width: var(--sidebar-w);
  background: var(--acc-white);
  border-right: 1px solid var(--acc-border);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  overflow-y: auto;
  overflow-x: hidden;
}
.acc-sidebar-nav { padding: 4px 0; flex: 1; }
.acc-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  height: 36px;
  cursor: pointer;
  color: var(--acc-text);
  font-size: 13px;
  font-weight: 500;
  border-left: 3px solid transparent;
  text-decoration: none;
  transition: background 0.1s, color 0.1s;
  white-space: nowrap;
  user-select: none;
}
.acc-nav-item:hover { background: var(--acc-surface); }
.acc-nav-item.active {
  color: var(--acc-blue);
  border-left-color: var(--acc-blue);
  background: var(--acc-blue-light);
}
.acc-nav-item svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.7; }
.acc-nav-item.active svg { opacity: 1; }

/* ── Main content ───────────────────────────────────────────── */
.acc-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

/* ── Page header ────────────────────────────────────────────── */
.acc-page-header {
  padding: 24px 24px 0;
  background: var(--acc-white);
  flex-shrink: 0;
}
.acc-page-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--acc-text);
  margin: 0 0 16px;
}
.acc-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--acc-border);
}
.acc-toolbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Buttons ────────────────────────────────────────────────── */
.acc-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 12px;
  border-radius: 2px;
  border: 1px solid transparent;
  font-family: var(--acc-font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.1s, border-color 0.1s, color 0.1s;
  text-decoration: none;
}
.acc-btn-primary {
  background: var(--acc-blue);
  color: var(--acc-white);
  border-color: var(--acc-blue);
}
.acc-btn-primary:hover { background: var(--acc-blue-hover); border-color: var(--acc-blue-hover); }
.acc-btn-default {
  background: var(--acc-white);
  color: var(--acc-blue);
  border-color: var(--acc-border);
}
.acc-btn-default:hover { background: var(--acc-blue-hover); color: var(--acc-white); border-color: var(--acc-blue-hover); }
.acc-btn-ghost {
  background: transparent;
  color: var(--acc-text-muted);
  border-color: transparent;
}
.acc-btn-ghost:hover { color: var(--acc-blue); }
.acc-btn-danger {
  background: transparent;
  color: var(--acc-danger);
  border-color: var(--acc-border);
}
.acc-btn-danger:hover { background: var(--acc-danger); color: var(--acc-white); }
.acc-btn-split {
  display: inline-flex;
  border-radius: 2px;
  overflow: hidden;
  border: 1px solid var(--acc-blue);
}
.acc-btn-split .acc-btn {
  border-radius: 0; border: none;
}
.acc-btn-split .acc-btn-split-arrow {
  border-left: 1px solid rgba(255,255,255,0.3);
  padding: 0 8px;
}
.acc-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── Search ─────────────────────────────────────────────────── */
.acc-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--acc-border);
  border-radius: 2px;
  background: var(--acc-white);
  height: 30px;
  padding: 0 8px;
  gap: 6px;
  min-width: 200px;
}
.acc-search input {
  border: none;
  outline: none;
  font-family: var(--acc-font);
  font-size: 13px;
  color: var(--acc-text);
  background: transparent;
  width: 100%;
}
.acc-search input::placeholder { color: var(--acc-text-muted); }
.acc-search svg { color: var(--acc-text-muted); width: 14px; height: 14px; flex-shrink: 0; }

/* ── Flex layout helpers (used with x-show — must be classes, not inline) ── */
.acc-flex-col-fill {
  display: flex;
  flex-direction: column;
  flex: 1 1 0%;
  min-height: 0;
  overflow: hidden;
}
.acc-flex-row-fill {
  display: flex;
  flex: 1 1 0%;
  min-height: 0;
  overflow: hidden;
}
/* Alpine x-show override — when Alpine hides, it sets inline display:none
   which beats the class rule. This is correct. When Alpine shows, it removes
   the inline display, so the class rule (display:flex) takes effect. */

/* ── Issue Grid (CSS Grid) ───────────────────────────────────── */
/* Grid header (outside scroll container, fixed at top) */
.acc-grid-header {
  display: flex;
  background: var(--acc-white);
  border-bottom: 1px solid var(--acc-border);
  flex-shrink: 0;
}

.acc-grid-header .acc-grid-cell {
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--acc-text-muted);
  padding: 0 8px;
  height: 36px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  user-select: none;
  cursor: pointer;
  position: relative;
}
.acc-grid-header .acc-grid-cell:hover { color: var(--acc-text); }

/* Scrollable content wrapper (contains only rows) */
.acc-grid-wrap {
  flex: 1 1 0%;
  min-height: 0;
  overflow: auto;
  position: relative;
}

/* Empty state */
.acc-grid-empty {
  text-align: center;
  padding: 48px;
  color: var(--acc-text-muted);
}

/* Grid data rows */
.acc-grid-row {
  display: flex;
  border-bottom: 1px solid var(--acc-border);
  cursor: pointer;
  transition: background 0.08s;
}
.acc-grid-row:hover { background: var(--acc-surface); }
.acc-grid-row.selected { background: var(--acc-blue-light); }

.acc-grid-cell {
  padding: 0 8px;
  height: 40px;
  font-size: 13px;
  display: flex;
  align-items: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Column resize handles (separate from grid cells) */
.acc-grid-resize-handle {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  cursor: col-resize;
  z-index: 20;
  background: transparent;
  transition: background 0.1s;
}
.acc-grid-resize-handle:hover,
.acc-grid-resize-handle:active {
  background: var(--acc-blue);
}

/* Column class markers — flex widths */
.acc-grid-cell { flex: 0 0 90px; }
.col-check  { flex: 0 0 32px; max-width: 32px; }
.col-title  { flex: 0 1 200px; max-width: 200px; }
.col-id     { flex: 0 0 55px; max-width: 55px; }
.col-pub    { flex: 0 0 36px; max-width: 36px; justify-content: center; }
.col-status { flex: 0 0 100px; }
.col-type   { flex: 0 0 130px; }
.col-assign { flex: 0 0 130px; }
.col-due    { flex: 0 0 85px; }
.col-start  { flex: 0 0 85px; }
.col-place  { flex: 0 0 100px; }
.col-menu   { flex: 0 0 28px; max-width: 28px; }

/* Filter bar inputs */
.acc-filter-input {
  width: 100%;
  height: 24px;
  border: 1px solid var(--acc-border);
  border-radius: 3px;
  font-size: 11px;
  padding: 0 4px;
  background: var(--acc-white, #fff);
  color: var(--acc-text);
  outline: none;
  font-family: var(--acc-font);
}
.acc-filter-input:focus { border-color: var(--acc-primary); }
.acc-filter-bar { position: sticky; top: 40px; z-index: 15; }

/* ── Checkbox ───────────────────────────────────────────────── */
.acc-checkbox {
  width: 14px; height: 14px;
  accent-color: var(--acc-blue);
  cursor: pointer;
}

/* ── Status indicator ───────────────────────────────────────── */
.acc-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
}
.acc-status-bar {
  width: 3px;
  height: 16px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ── Type badge ─────────────────────────────────────────────── */
.acc-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.acc-type-avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--acc-white);
  flex-shrink: 0;
}

/* ── Table footer ───────────────────────────────────────────── */
.acc-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px;
  border-top: 1px solid var(--acc-border);
  font-size: 12px;
  color: var(--acc-text-muted);
  background: var(--acc-white);
  flex-shrink: 0;
}
.acc-pagination {
  display: flex;
  align-items: center;
  gap: 4px;
}
.acc-page-btn {
  width: 28px; height: 28px;
  border: 1px solid var(--acc-border);
  border-radius: 2px;
  background: var(--acc-white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--acc-text-muted);
  font-size: 12px;
}
.acc-page-btn:hover { border-color: var(--acc-blue); color: var(--acc-blue); }
.acc-page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Detail panel ───────────────────────────────────────────── */
.acc-panel-resizer {
  width: 5px;
  cursor: col-resize;
  background: transparent;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition: background 0.15s;
}
.acc-panel-resizer:hover,
.acc-panel-resizer:active {
  background: var(--acc-blue);
}
.acc-panel {
  min-width: 280px;
  max-width: 700px;
  width: 340px; /* Default, will be overridden by inline style */
  flex-shrink: 0;
  border-left: 1px solid var(--acc-border);
  background: var(--acc-white);
  display: flex;
  flex-direction: column;
  min-height: 0; /* Allow panel to shrink in flex container */
}
.acc-panel-header {
  padding: 16px 16px 0;
  border-bottom: 1px solid var(--acc-border);
  flex-shrink: 0;
}
.acc-panel-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--acc-text);
  margin: 0 0 12px;
}
.acc-panel-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.acc-panel-tabs {
  display: flex;
  gap: 0;
}
.acc-panel-tab {
  padding: 0 2px 10px;
  margin-right: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--acc-text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: var(--acc-font);
}
.acc-panel-tab.active {
  color: var(--acc-blue);
  border-bottom-color: var(--acc-blue);
}
.acc-panel-body {
  flex: 1 1 0%;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
}

/* ── Panel detail fields (ACC-parity) ───────────────────────── */
.acc-field-section {
  padding: 14px 0;
  border-bottom: 1px solid var(--acc-border);
}
.acc-field-section:first-child { padding-top: 0; }
.acc-field-editable {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-top: 4px;
  font-size: 13px;
  color: var(--acc-text);
  line-height: 1.5;
  word-break: break-word;
}
.acc-edit-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--acc-text-muted);
  padding: 2px;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.15s;
}
.acc-field-editable:hover .acc-edit-btn,
.acc-field-section:hover .acc-edit-btn { opacity: 1; }
.acc-edit-btn:hover { color: var(--acc-blue); }
.acc-edit-save {
  height: 32px;
  width: 32px;
  border: 1px solid var(--acc-blue);
  background: var(--acc-blue);
  color: var(--acc-white);
  border-radius: 2px;
  cursor: pointer;
  font-size: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.acc-edit-save:hover { background: var(--acc-blue-hover); }
.acc-edit-cancel {
  height: 32px;
  width: 32px;
  border: 1px solid var(--acc-border);
  background: var(--acc-white);
  color: var(--acc-text-muted);
  border-radius: 2px;
  cursor: pointer;
  font-size: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.acc-edit-cancel:hover { border-color: var(--acc-danger); color: var(--acc-danger); }
.acc-field-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--acc-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}
.acc-field-value {
  font-size: 13px;
  color: var(--acc-text);
  word-break: break-word;
}

/* ── Panel comments ─────────────────────────────────────────── */
.acc-comment {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.acc-comment-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--acc-blue);
  color: var(--acc-white);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.acc-comment-body { flex: 1; min-width: 0; }
.acc-comment-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--acc-text-muted);
  margin-bottom: 4px;
}
.acc-comment-name { font-weight: 600; color: var(--acc-text); }
.acc-comment-text {
  font-size: 13px;
  color: var(--acc-text);
  line-height: 1.5;
  word-break: break-word;
}

/* ── Activity log ───────────────────────────────────────────── */
.acc-activity-item {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  position: relative;
}
.acc-activity-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--acc-border);
  flex-shrink: 0;
  margin-top: 5px;
}
.acc-activity-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--acc-text);
  margin-bottom: 2px;
}
.acc-activity-meta {
  font-size: 11px;
  color: var(--acc-text-muted);
}
.acc-status-change {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.acc-status-arrow { color: var(--acc-text-muted); }

/* ── Watchers pills ─────────────────────────────────────────── */
.acc-watcher-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  margin: 2px;
}
.acc-watcher-user    { background: rgba(6,150,215,0.1); color: var(--acc-blue); }
.acc-watcher-role    { background: rgba(167,110,245,0.1); color: rgb(130,80,200); }
.acc-watcher-company { background: rgba(247,148,29,0.1); color: rgb(180,100,0); }

/* ── New comment bar ────────────────────────────────────────── */
.acc-comment-input {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--acc-border);
  flex-shrink: 0;
  align-items: flex-end;
}
.acc-comment-input textarea {
  flex: 1;
  border: 1px solid var(--acc-border);
  border-radius: 2px;
  font-family: var(--acc-font);
  font-size: 13px;
  padding: 6px 8px;
  resize: none;
  height: 34px;
  outline: none;
  color: var(--acc-text);
}
.acc-comment-input textarea:focus { border-color: var(--acc-blue); }

/* ── Modals ─────────────────────────────────────────────────── */
.acc-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}
.acc-modal {
  background: var(--acc-white);
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.acc-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--acc-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.acc-modal-title { font-size: 15px; font-weight: 600; color: var(--acc-text); }
.acc-modal-close {
  background: none; border: none; cursor: pointer;
  color: var(--acc-text-muted); font-size: 18px; line-height: 1;
}
.acc-modal-body { padding: 20px; overflow-y: auto; flex: 1; }
.acc-modal-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--acc-border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

/* ── Form elements ──────────────────────────────────────────── */
.acc-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--acc-text-muted);
  margin-bottom: 4px;
}
.acc-input, .acc-select, .acc-textarea {
  width: 100%;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--acc-border);
  border-radius: 2px;
  font-family: var(--acc-font);
  font-size: 13px;
  color: var(--acc-text);
  background: var(--acc-white);
  outline: none;
}
.acc-input:focus, .acc-select:focus, .acc-textarea:focus { border-color: var(--acc-blue); }
.acc-textarea { height: auto; padding: 6px 8px; resize: vertical; }
.acc-form-row { margin-bottom: 14px; }
.acc-form-grid { display: grid; gap: 12px; }

/* ── Link ───────────────────────────────────────────────────── */
.acc-link { color: var(--acc-blue); text-decoration: none; font-weight: 500; }
.acc-link:hover { color: var(--acc-blue-hover); }
.acc-link-muted { color: var(--acc-text-muted); text-decoration: none; font-size: 12px; }
.acc-link-muted:hover { color: var(--acc-blue); }

/* ── Toast ──────────────────────────────────────────────────── */
.acc-toast-wrap {
  position: fixed;
  top: calc(var(--topbar-h) + 12px);
  right: 16px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}
.acc-toast {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
  pointer-events: auto;
  cursor: pointer;
  max-width: 380px;
}
.acc-toast-success { background: rgb(52,168,83); color: #fff; }
.acc-toast-error   { background: var(--acc-danger); color: #fff; }
.acc-toast-info    { background: var(--acc-blue); color: #fff; }
.acc-toast-warning { background: rgb(247,148,29); color: #fff; }

/* ── Loading ────────────────────────────────────────────────── */
.acc-loader-wrap {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.75);
  z-index: 150;
  display: flex;
  align-items: center;
  justify-content: center;
}
.acc-loader {
  width: 36px; height: 36px;
  border: 3px solid var(--acc-border);
  border-top-color: var(--acc-blue);
  border-radius: 50%;
  animation: acc-spin 0.7s linear infinite;
}
@keyframes acc-spin { to { transform: rotate(360deg); } }

/* ── Placement link ─────────────────────────────────────────── */
.acc-placement-link {
  color: var(--acc-blue);
  text-decoration: none;
  font-size: 12px;
}
.acc-version-badge {
  display: inline-block;
  padding: 1px 5px;
  border: 1px solid var(--acc-border);
  border-radius: 2px;
  font-size: 11px;
  color: var(--acc-text-muted);
  margin-left: 4px;
}

/* ── Empty state ────────────────────────────────────────────── */
.acc-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--acc-text-muted);
  text-align: center;
}
.acc-empty svg { opacity: 0.3; margin-bottom: 12px; }

/* ── BCF panel toggle (collapsible) ─────────────────────────── */
.acc-section {
  border: 1px solid var(--acc-border);
  border-radius: 4px;
  margin-bottom: 12px;
  overflow: hidden;
}
.acc-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--acc-surface);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--acc-text);
  border-bottom: 1px solid transparent;
}
.acc-section-header.open { border-bottom-color: var(--acc-border); }
.acc-section-body { padding: 16px; }

/* ── Duplicate stepper ──────────────────────────────────────── */
.acc-step-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
}
.acc-step {
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 500;
  background: var(--acc-border);
  color: var(--acc-text-muted);
}
.acc-step.active { background: var(--acc-blue); color: var(--acc-white); }
.acc-step-sep { color: var(--acc-text-muted); }
