/* ASIARIGHT AIMS — Low-fi wireframe kit styles */
:root {
  --kit-bg: #e8eaed;
  --kit-panel: #f5f6f8;
  --ink: #1a1a1a;
  --muted: #666;
  --line: #222;
  --line-soft: #999;
  --box: #fff;
  --fill: #d0d0d0;
  --fill-2: #bdbdbd;
  --fill-3: #ececec;
  --accent: #333;
  --warn: #222;
  --danger-bg: #ddd;
  --ok-bg: #e5e5e5;
  --sidebar-w: 220px;
  --prod-sidebar: 200px;
  --font: "Segoe UI", system-ui, sans-serif;
  --mono: "SF Mono", "Consolas", monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--kit-bg);
  font-size: 13px;
}

/* ===== Kit chrome ===== */
.kit-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #111;
  color: #f0f0f0;
  flex-wrap: wrap;
}
.kit-brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kit-brand .tag {
  font-size: 10px;
  letter-spacing: 0.08em;
  border: 1px solid #888;
  padding: 2px 6px;
}
.kit-brand .muted { color: #aaa; font-size: 12px; }
.kit-controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.kit-controls label { font-size: 12px; color: #ccc; }
.kit-controls select {
  margin-left: 4px;
  background: #222;
  color: #fff;
  border: 1px solid #555;
  padding: 4px 6px;
}
.kit-btn {
  background: #2a2a2a;
  color: #fff;
  border: 1px solid #666;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 12px;
}
.kit-btn:hover { background: #3a3a3a; }

.kit-body { display: flex; min-height: calc(100vh - 52px); }
.kit-nav {
  width: 230px;
  flex-shrink: 0;
  background: var(--kit-panel);
  border-right: 1px solid #ccc;
  overflow-y: auto;
  padding: 8px 0 24px;
  max-height: calc(100vh - 52px);
  position: sticky;
  top: 0;
}
.kit-nav .nav-section {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #777;
  padding: 12px 12px 4px;
  font-weight: 700;
}
.kit-nav button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 7px 12px;
  cursor: pointer;
  font-size: 12px;
  border-left: 3px solid transparent;
  color: var(--ink);
}
.kit-nav button:hover { background: #e0e0e0; }
.kit-nav button.active {
  background: #ddd;
  border-left-color: #111;
  font-weight: 600;
}
.nav-note { font-size: 10px; color: #888; padding: 12px; line-height: 1.4; }

.kit-main {
  flex: 1;
  padding: 14px 18px 40px;
  overflow: auto;
}
.screen-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  align-items: flex-start;
}
.screen-meta h1 { margin: 0 0 4px; font-size: 18px; }
.meta-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  border: 1px solid #333;
  padding: 3px 8px;
  font-size: 11px;
  font-family: var(--mono);
  background: #fff;
}
.badge-beat { background: #eee; }
.badge-mod { background: #e8e8e8; }
.muted { color: var(--muted); }

.device-frame {
  background: #ccc;
  border: 2px solid #222;
  padding: 0;
  max-width: 1280px;
}
.device-label {
  background: #333;
  color: #ddd;
  font-size: 10px;
  font-family: var(--mono);
  padding: 4px 8px;
}
.product-root {
  background: #f2f2f2;
  min-height: 720px;
  position: relative;
}

.annotations.panel {
  margin-top: 14px;
  max-width: 1280px;
  background: #fff;
  border: 1px dashed #666;
  padding: 12px 14px;
}
.annotations h2 {
  margin: 0 0 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.annotations ul { margin: 0 0 12px; padding-left: 18px; }
.annotations li { margin-bottom: 4px; line-height: 1.35; }
.annotations.hidden { display: none; }

/* ===== Product wireframe primitives ===== */
.wf-login {
  min-height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    -45deg, #e6e6e6, #e6e6e6 8px, #ebebeb 8px, #ebebeb 16px
  );
}
.wf-card {
  width: 360px;
  background: var(--box);
  border: 2px solid var(--line);
  padding: 20px;
}
.wf-logo {
  height: 28px;
  background: var(--fill);
  border: 1px solid var(--line);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.wf-title { font-size: 16px; font-weight: 700; margin: 8px 0 14px; }
.wf-field { margin-bottom: 10px; }
.wf-field label {
  display: block;
  font-size: 11px;
  margin-bottom: 3px;
  color: #444;
}
.wf-input, .wf-select, .wf-textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  background: #fafafa;
  padding: 8px;
  font-size: 12px;
  font-family: var(--font);
  min-height: 34px;
}
.wf-textarea { min-height: 64px; resize: vertical; }
.wf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--line);
  background: var(--fill);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: default;
  text-decoration: none;
  color: inherit;
  min-height: 34px;
}
.wf-btn.primary { background: #333; color: #fff; border-color: #111; }
.wf-btn.ghost { background: #fff; }
.wf-btn.danger { background: #bbb; border-style: dashed; }
.wf-btn.sm { padding: 4px 8px; font-size: 11px; min-height: 28px; }
.wf-btn.block { width: 100%; }

.wf-app { display: flex; min-height: 720px; }
.wf-sidebar {
  width: var(--prod-sidebar);
  background: #ececec;
  border-right: 2px solid var(--line);
  padding: 10px 0;
  flex-shrink: 0;
}
.wf-side-brand {
  padding: 6px 12px 12px;
  font-weight: 700;
  font-size: 12px;
  border-bottom: 1px solid #bbb;
  margin-bottom: 8px;
}
.wf-side-item {
  padding: 7px 12px;
  font-size: 12px;
  border-left: 3px solid transparent;
  color: #333;
}
.wf-side-item.active {
  background: #ddd;
  border-left-color: #111;
  font-weight: 700;
}
.wf-side-item.sub { padding-left: 22px; font-size: 11px; color: #555; }
.wf-side-item.sub.active { color: #111; }

.wf-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.wf-topbar {
  height: 48px;
  border-bottom: 2px solid var(--line);
  background: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  gap: 8px;
}
.wf-topbar .search-box {
  width: 220px;
  height: 30px;
  border: 1.5px solid var(--line);
  background: #fff;
  display: flex;
  align-items: center;
  padding: 0 8px;
  font-size: 11px;
  color: #777;
}
.wf-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.wf-avatar {
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--line);
  background: var(--fill);
  border-radius: 50%;
}
.wf-content { padding: 14px; flex: 1; }

.wf-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.wf-page-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}
.wf-crumbs { font-size: 11px; color: #666; margin-bottom: 4px; }
.wf-actions { display: flex; gap: 6px; flex-wrap: wrap; }

.wf-grid { display: grid; gap: 10px; }
.wf-grid.cols-2 { grid-template-columns: 1fr 1fr; }
.wf-grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.wf-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.wf-grid.cols-6 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) {
  .wf-grid.cols-4, .wf-grid.cols-6 { grid-template-columns: 1fr 1fr; }
  .wf-grid.cols-3 { grid-template-columns: 1fr; }
}

.wf-card-box {
  border: 1.5px solid var(--line);
  background: #fff;
  padding: 10px;
}
.wf-card-box .label { font-size: 10px; text-transform: uppercase; color: #666; letter-spacing: 0.04em; }
.wf-card-box .value { font-size: 18px; font-weight: 700; margin-top: 4px; font-family: var(--mono); }
.wf-card-box .hint { font-size: 10px; color: #777; margin-top: 4px; }

.wf-table-wrap {
  border: 1.5px solid var(--line);
  background: #fff;
  overflow: auto;
}
.wf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.wf-table th {
  text-align: left;
  background: #e0e0e0;
  border-bottom: 1.5px solid var(--line);
  border-right: 1px solid #bbb;
  padding: 8px;
  font-size: 11px;
  white-space: nowrap;
}
.wf-table td {
  border-bottom: 1px solid #ccc;
  border-right: 1px solid #e5e5e5;
  padding: 8px;
  vertical-align: middle;
}
.wf-table tr:last-child td { border-bottom: 0; }
.wf-table tr.highlight td { background: #ececec; font-weight: 600; }
.wf-table tr.clickable { cursor: default; }
.wf-table .mono { font-family: var(--mono); font-size: 11px; }

.wf-chip {
  display: inline-block;
  border: 1px solid #333;
  padding: 1px 6px;
  font-size: 10px;
  background: #eee;
  white-space: nowrap;
}
.wf-chip.ok { background: #ddd; }
.wf-chip.warn { background: #ccc; border-style: dashed; }
.wf-chip.danger { background: #bbb; font-weight: 700; }
.wf-chip.neutral { background: #f3f3f3; }

.wf-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--line);
  margin-bottom: 12px;
}
.wf-tab {
  padding: 8px 14px;
  border: 1.5px solid transparent;
  border-bottom: 0;
  font-size: 12px;
  background: transparent;
  color: #555;
}
.wf-tab.active {
  background: #fff;
  border-color: var(--line);
  border-bottom: 2px solid #fff;
  margin-bottom: -2px;
  font-weight: 700;
  color: #111;
}

.wf-banner {
  border: 2px dashed #222;
  background: var(--danger-bg);
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 600;
}
.wf-banner.ok { border-style: solid; background: var(--ok-bg); }

.wf-two-col {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
}
.wf-three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
.wf-stack { display: flex; flex-direction: column; gap: 10px; }

.wf-kv {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 6px 10px;
  font-size: 12px;
}
.wf-kv .k { color: #666; }
.wf-kv .v { font-weight: 600; }

.wf-placeholder {
  border: 1.5px dashed #888;
  background: repeating-linear-gradient(
    45deg, #f5f5f5, #f5f5f5 6px, #eee 6px, #eee 12px
  );
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 11px;
  text-align: center;
  padding: 12px;
}

.wf-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}
.wf-modal {
  width: 420px;
  background: #fff;
  border: 2px solid #111;
  padding: 16px;
}
.wf-modal h3 { margin: 0 0 8px; font-size: 15px; }
.wf-modal p { margin: 0 0 12px; font-size: 12px; line-height: 1.45; color: #333; }
.wf-modal .row { display: flex; gap: 8px; justify-content: flex-end; }

.wf-timeline { border-left: 2px solid #333; margin-left: 8px; padding-left: 14px; }
.wf-tl-item { position: relative; margin-bottom: 12px; }
.wf-tl-item::before {
  content: "";
  position: absolute;
  left: -21px;
  top: 4px;
  width: 10px;
  height: 10px;
  background: #bbb;
  border: 1.5px solid #111;
  border-radius: 50%;
}
.wf-tl-item .t { font-weight: 700; font-size: 12px; }
.wf-tl-item .d { font-size: 11px; color: #666; }

.wf-kanban {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  min-height: 280px;
}
.wf-col {
  border: 1.5px solid var(--line);
  background: #f0f0f0;
  min-height: 260px;
}
.wf-col-h {
  background: #ddd;
  border-bottom: 1.5px solid var(--line);
  padding: 8px;
  font-size: 11px;
  font-weight: 700;
}
.wf-card-mini {
  margin: 8px;
  border: 1.5px solid var(--line);
  background: #fff;
  padding: 8px;
  font-size: 11px;
}
.wf-card-mini .amt { font-family: var(--mono); font-weight: 700; margin-top: 4px; }

.wf-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-bottom: 1px solid #ddd;
  font-size: 12px;
}
.wf-check .box {
  width: 16px;
  height: 16px;
  border: 1.5px solid #111;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}
.wf-check .box.on { background: #ccc; }

.anno-hotspot {
  outline: 1px dashed transparent;
}
body.show-anno .anno-hotspot {
  outline: 1px dashed #888;
  outline-offset: 2px;
}

.flow-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: #111;
  color: #fff;
  font-size: 10px;
  padding: 6px 8px;
  font-family: var(--mono);
  opacity: 0.85;
  z-index: 2;
}

/* ===== Full BRD product sidebar ===== */
.wf-sidebar { width: 228px; overflow-y: auto; max-height: 720px; }
.wf-side-group { border-bottom: 1px solid #ccc; }
.wf-side-group > summary {
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 700;
  cursor: default;
  list-style: none;
  display: flex;
  justify-content: space-between;
}
.wf-side-group > summary::-webkit-details-marker { display: none; }
.wf-side-group[open] > summary { background: #e4e4e4; }

.wf-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 10px;
  min-height: 420px;
}
.wf-split .pane { min-width: 0; }
.wf-ai-box {
  border: 2px dashed #333;
  background: repeating-linear-gradient(0deg, #f7f7f7, #f7f7f7 10px, #f0f0f0 10px, #f0f0f0 20px);
  padding: 10px;
}
.wf-ai-box .ai-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border: 1px solid #111;
  display: inline-block;
  padding: 1px 6px;
  margin-bottom: 6px;
}
.wf-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.wf-gantt { display: flex; flex-direction: column; gap: 6px; }
.wf-gantt-row { display: grid; grid-template-columns: 140px 1fr; gap: 8px; align-items: center; font-size: 11px; }
.wf-gantt-bar {
  height: 14px;
  background: #bbb;
  border: 1px solid #111;
  position: relative;
}
.wf-prio { font-family: var(--mono); font-size: 10px; border: 1px solid #333; padding: 0 4px; }

/* Kit nav extras */
.kit-nav { width: 250px; }
.kit-search {
  margin: 6px 8px 8px;
  width: calc(100% - 16px);
  padding: 6px 8px;
  border: 1px solid #999;
  font-size: 12px;
}
.kit-filter {
  margin: 0 8px 8px;
  width: calc(100% - 16px);
  padding: 5px;
  font-size: 11px;
}
.kit-count { font-size: 10px; color: #888; padding: 0 12px 8px; }
