/* -------------------------------------------------------------------
   Stage 106.1L CLEAN — Temporary Phase 106 Blueprint / Handover Pack Builder
   Isolated CSS for Tools -> Phase 106 Blueprint only.
   Easy removal later: delete this file and its index.html link/script lines.
------------------------------------------------------------------- */
.phase106-page{
  width:100%;
  max-width:1480px;
  margin:0 auto;
  padding:0 0 48px;
  color:#0f172a;
}
.phase106-page *{box-sizing:border-box;}
.phase106-hero{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:22px 24px;
  margin:0 0 18px;
  background:linear-gradient(135deg,#ffffff 0%,#f8fbff 55%,#eef6ff 100%);
  border:1px solid #dbe7f5;
  border-radius:22px;
  box-shadow:0 14px 36px rgba(15,23,42,.08);
}
.phase106-hero h1{
  margin:0 0 6px;
  font-size:26px;
  line-height:1.15;
  letter-spacing:-.02em;
  color:#0f172a;
}
.phase106-hero p{
  margin:0;
  max-width:920px;
  color:#475569;
  font-size:14px;
  line-height:1.55;
}
.phase106-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  justify-content:flex-end;
}
.phase106-btn{
  border:1px solid #cbd5e1;
  background:#fff;
  color:#0f172a;
  border-radius:12px;
  padding:9px 13px;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 6px 14px rgba(15,23,42,.06);
}
.phase106-btn:hover{background:#f8fafc;}
.phase106-btn.primary{
  background:#2563eb;
  border-color:#2563eb;
  color:#fff;
}
.phase106-btn.danger{
  background:#fff7f7;
  border-color:#fecaca;
  color:#991b1b;
}
.phase106-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin:0 0 18px;
}
.phase106-kpi{
  background:#fff;
  border:1px solid #dbe7f5;
  border-radius:18px;
  padding:16px;
  box-shadow:0 10px 28px rgba(15,23,42,.06);
}
.phase106-kpi span{
  display:block;
  font-size:12px;
  font-weight:800;
  color:#64748b;
  text-transform:uppercase;
  letter-spacing:.04em;
  margin-bottom:7px;
}
.phase106-kpi strong{
  display:block;
  font-size:24px;
  color:#0f172a;
}
.phase106-kpi small{
  display:block;
  color:#64748b;
  margin-top:6px;
  line-height:1.35;
}
.phase106-columns{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);
  gap:18px;
  align-items:start;
}
.phase106-card{
  background:#fff;
  border:1px solid #dbe7f5;
  border-radius:20px;
  box-shadow:0 12px 30px rgba(15,23,42,.07);
  overflow:hidden;
  margin-bottom:18px;
}
.phase106-card-header{
  padding:16px 18px;
  border-bottom:1px solid #e2e8f0;
  background:#f8fafc;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.phase106-card-header h2{
  margin:0;
  color:#0f172a;
  font-size:17px;
}
.phase106-card-header p{
  margin:4px 0 0;
  color:#64748b;
  font-size:13px;
  line-height:1.45;
}
.phase106-card-body{padding:16px 18px;}
.phase106-checklist{
  display:grid;
  gap:10px;
}
.phase106-check-row{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  gap:10px;
  align-items:start;
  padding:12px;
  border:1px solid #e2e8f0;
  border-radius:14px;
  background:#fff;
}
.phase106-check-row input{margin-top:3px;}
.phase106-check-row strong{
  display:block;
  color:#0f172a;
  font-size:14px;
  margin-bottom:3px;
}
.phase106-check-row span{
  display:block;
  color:#64748b;
  font-size:13px;
  line-height:1.4;
}
.phase106-check-row.done{
  background:#f0fdf4;
  border-color:#bbf7d0;
}
.phase106-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:24px;
  padding:3px 8px;
  border-radius:999px;
  font-size:11px;
  font-weight:800;
  white-space:nowrap;
  border:1px solid #cbd5e1;
  background:#f8fafc;
  color:#334155;
}
.phase106-badge.ok{background:#ecfdf5;border-color:#bbf7d0;color:#166534;}
.phase106-badge.warn{background:#fff7ed;border-color:#fed7aa;color:#9a3412;}
.phase106-badge.plan{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8;}
.phase106-badge.lock{background:#fef2f2;border-color:#fecaca;color:#991b1b;}
.phase106-table-wrap{overflow:auto;border:1px solid #e2e8f0;border-radius:14px;}
.phase106-table{
  width:100%;
  border-collapse:collapse;
  min-width:760px;
  background:#fff;
}
.phase106-table th,
.phase106-table td{
  text-align:left;
  padding:11px 12px;
  border-bottom:1px solid #e2e8f0;
  vertical-align:top;
  color:#0f172a;
  font-size:13px;
}
.phase106-table th{
  background:#f8fafc;
  color:#475569;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.phase106-note{
  border:1px solid #bfdbfe;
  background:#eff6ff;
  color:#1e3a8a;
  border-radius:16px;
  padding:13px 14px;
  font-size:13px;
  line-height:1.5;
}
.phase106-mini-list{
  display:grid;
  gap:8px;
  margin:0;
  padding:0;
  list-style:none;
}
.phase106-mini-list li{
  border:1px solid #e2e8f0;
  border-radius:13px;
  padding:10px 12px;
  color:#334155;
  line-height:1.4;
  background:#fff;
}
.phase106-handover-output{min-height:260px;}
.phase106-output{
  width:100%;
  min-height:120px;
  border:1px solid #cbd5e1;
  border-radius:14px;
  padding:12px;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
  font-size:12px;
  color:#0f172a;
  background:#f8fafc;
  resize:vertical;
}
.stage919-tools-menu a[href="#/tools/phase106-blueprint"]::after{
  content:"Temporary";
  margin-left:12px;
  font-size:10px;
  color:#2563eb;
  background:#eff6ff;
  border:1px solid #bfdbfe;
  padding:2px 6px;
  border-radius:999px;
}
@media (max-width:1180px){
  .phase106-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .phase106-columns{grid-template-columns:1fr;}
  .phase106-hero{flex-direction:column;}
  .phase106-actions{justify-content:flex-start;}
}
@media (max-width:720px){
  .phase106-grid{grid-template-columns:1fr;}
  .phase106-hero{padding:18px;}
  .phase106-check-row{grid-template-columns:auto minmax(0,1fr);}
  .phase106-check-row .phase106-badge{grid-column:2;justify-self:start;}
}

.phase106-table tbody tr:hover td{background:#fbfdff;}
.phase106-card .phase106-note strong{color:#1e40af;}

.phase106-table td:nth-child(2){vertical-align:top;}
.phase106-table td:nth-child(3){vertical-align:top;}
.phase106-table td:nth-child(4){vertical-align:top;}

.phase106-inline-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  justify-content:flex-end;
}
.phase106-notes-input{
  width:100%;
  min-height:220px;
  border:1px solid #cbd5e1;
  border-radius:16px;
  padding:14px;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
  font-size:13px;
  line-height:1.55;
  color:#0f172a;
  background:#fbfdff;
  resize:vertical;
  box-shadow:inset 0 1px 2px rgba(15,23,42,.04);
}
.phase106-notes-input:focus{
  outline:2px solid rgba(37,99,235,.18);
  border-color:#93c5fd;
}
.phase106-note-row{
  margin-top:10px;
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  gap:8px;
  color:#64748b;
  font-size:12px;
}
.phase106-note-row span:first-child{
  color:#166534;
  font-weight:800;
}


.phase106-btn.mic{
  background:#f0fdf4;
  border-color:#bbf7d0;
  color:#166534;
}
.phase106-btn:disabled{
  opacity:.55;
  cursor:not-allowed;
  box-shadow:none;
}
.phase106-dictation-status{
  margin-top:10px;
  border:1px solid #bfdbfe;
  background:#eff6ff;
  color:#1e3a8a;
  border-radius:14px;
  padding:10px 12px;
  font-size:12px;
  line-height:1.45;
  font-weight:700;
}
.phase106-dictation-status.listening{
  border-color:#bbf7d0;
  background:#f0fdf4;
  color:#166534;
}
.phase106-dictation-status.warn{
  border-color:#fed7aa;
  background:#fff7ed;
  color:#9a3412;
}
.phase106-dictation-status.error{
  border-color:#fecaca;
  background:#fef2f2;
  color:#991b1b;
}


/* Stage 106.1G — snapshot export helper status */
.phase106-snapshot-note-row span:first-child{
  color:#1d4ed8;
  font-weight:800;
}


/* Stage 106.1J — structured missing-module organizer */
.phase106-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:12px;}
.phase106-form-grid label,.phase106-full-label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:700;color:#1f2937;}
.phase106-form-grid input,.phase106-form-grid select,.phase106-small-textarea{width:100%;box-sizing:border-box;border:1px solid rgba(148,163,184,.7);border-radius:14px;background:#fff;color:#0f172a;padding:10px 12px;font:inherit;font-weight:500;outline:none;}
.phase106-small-textarea{min-height:76px;resize:vertical;margin-bottom:12px;}
.phase106-form-grid input:focus,.phase106-form-grid select:focus,.phase106-small-textarea:focus{border-color:rgba(37,99,235,.8);box-shadow:0 0 0 3px rgba(37,99,235,.12);}
.phase106-organizer-list{margin-top:14px;}
.phase106-empty-state{border:1px dashed rgba(148,163,184,.8);border-radius:16px;padding:14px;background:rgba(248,250,252,.8);color:#475569;font-size:13px;}
.phase106-organizer-table td small{display:block;margin-top:5px;color:#64748b;font-weight:500;line-height:1.35;}
.phase106-row-actions{white-space:nowrap;}
.phase106-btn.small{padding:7px 10px;border-radius:10px;font-size:12px;margin-right:6px;}
.phase106-priority{display:inline-flex;align-items:center;border-radius:999px;padding:4px 9px;font-weight:800;font-size:12px;background:#e2e8f0;color:#334155;}
.phase106-priority.high{background:#fee2e2;color:#991b1b;}
.phase106-priority.medium{background:#fef3c7;color:#92400e;}
.phase106-priority.later{background:#dbeafe;color:#1d4ed8;}
.phase106-priority.parked{background:#ede9fe;color:#5b21b6;}
@media (max-width: 860px){.phase106-form-grid{grid-template-columns:1fr;}.phase106-row-actions{white-space:normal;}}

.phase106-highlight-card{border:1px solid rgba(37,99,235,.22);box-shadow:0 16px 38px rgba(37,99,235,.08);}
.phase106-compact-table{margin-top:12px;}


/* Stage 106.1P CLEAN v3 — real collapsible/accordion guard for the temporary Blueprint page. */
.phase106-page[data-stage="106.1P-v3"] .phase106-card.phase106-collapsible{
  transition: box-shadow .15s ease, transform .15s ease;
}
.phase106-page[data-stage="106.1P-v3"] .phase106-card.phase106-collapsible > .phase106-card-header{
  cursor: default;
  gap: 12px;
}
.phase106-page[data-stage="106.1P-v3"] .phase106-accordion-toggle{
  margin-left: auto;
  white-space: nowrap;
}
.phase106-page[data-stage="106.1P-v3"] .phase106-card.phase106-collapsed > *:not(.phase106-card-header){
  display: none !important;
}
.phase106-page[data-stage="106.1P-v3"] .phase106-card.phase106-collapsed{
  box-shadow: none;
}
.phase106-page[data-stage="106.1P-v3"] .phase106-card.phase106-collapsed > .phase106-card-header{
  border-bottom: 0;
}
.phase106-page[data-stage="106.1P-v3"] .phase106-open-all,
.phase106-page[data-stage="106.1P-v3"] .phase106-close-all{
  font-weight: 800;
}

/* Stage 106.1Q — New chat file collection command box */
.phase106-command-output{
  min-height:260px;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;
  font-size:12px;
  line-height:1.5;
  white-space:pre;
}
