﻿body {
  --ezwk-theme:        var(--ezwk-gridshift);
  --ezwk-theme-deep:   var(--ezwk-gridshift-deep);
  --ezwk-theme-bright: var(--ezwk-gridshift-bright);
  --ezwk-theme-rgb:    var(--ezwk-gridshift-rgb);
}
.visual-core {
  width: 260px;
  height: 180px;
  border-radius: 20px;
  color: var(--ezwk-ink);
  background:
    linear-gradient(rgb(var(--ezwk-theme-rgb) / .13) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--ezwk-theme-rgb) / .13) 1px, transparent 1px),
    rgb(var(--c-surface) / .88);
  background-size: 34px 28px;
  border: 1px solid rgb(var(--ezwk-theme-rgb) / .18);
}
.abstract-core {
  width: 210px;
  height: 150px;
  border-radius: 18px;
  background:
    linear-gradient(rgb(var(--ezwk-theme-rgb) / .16) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--ezwk-theme-rgb) / .16) 1px, transparent 1px),
    rgb(var(--c-surface) / .88);
  background-size: 32px 26px;
}
.abstract-core::before,
.abstract-core::after {
  content: "";
  position: absolute;
  border-radius: 8px;
  background: rgb(var(--ezwk-theme-rgb) / .16);
}
.abstract-core::before { left: 28px; top: 34px; width: 94px; height: 30px; }
.abstract-core::after { right: 34px; bottom: 34px; width: 82px; height: 26px; }
.abstract-core {
  background:
    linear-gradient(rgb(var(--ezwk-theme-rgb) / .13) 1px, transparent 1px),
    linear-gradient(90deg, rgb(var(--ezwk-theme-rgb) / .13) 1px, transparent 1px),
    linear-gradient(180deg, rgb(var(--c-surface) / .88), color-mix(in srgb, var(--ezwk-theme-soft) 60%, #fff));
  background-size: 32px 26px, 32px 26px, auto;
  animation-name: grid-scan;
}
.abstract-core::before { animation: master-pulse 3.8s ease-in-out infinite; }
.abstract-core::after { animation: master-pulse 3.8s ease-in-out infinite reverse; }

.mode-chip {
  background: var(--ezwk-theme-soft);
  color: var(--ezwk-theme-deep);
  padding: 7px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.scan-note { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.scan-note + .scan-note { margin-top: 2px; }

.result-panel {
  padding: 31px;
}
.panel-heading { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-bottom: 16px; }
.panel-heading .mode-chip { display: inline-flex; margin-top: 12px; }
.caption { color: var(--ezwk-app-muted); font-size: 13px; margin-top: 6px; }
.report-actions { display: flex; gap: 10px; }
.result-tabs { margin-bottom: 27px; overflow-x: auto; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
#metrics.c-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 19px; }
#migrationMetrics.c-metrics { grid-template-columns: repeat(4, minmax(125px, 1fr)); margin-bottom: 15px; }
.summary-columns {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 22px;
  align-items: start;
  margin-bottom: 22px;
}
.summary-findings > * + * { margin-top: 14px; }
.summary-aside {
  position: sticky;
  top: 16px;
}
.summary-aside > * + * { margin-top: 14px; }
.card {
  padding: 20px;
  border: 1px solid var(--ezwk-app-line);
  border-radius: var(--ezwk-radius-lg);
  min-height: 260px;
}
.card.wide { min-height: 286px; }

.card h3, .panel-controls h3 { margin-bottom: 16px; }
.card-title-row { display: flex; justify-content: space-between; align-items: flex-start; }
.tag {
  display: inline-flex; align-items: center; border-radius: 14px; padding: 4px 10px;
  font-size: 11px; font-weight: 600; white-space: nowrap;
}
.tag.risk { background: var(--ezwk-slideshift-soft); color: var(--ezwk-slideshift); }
.tag.critical { background: var(--ezwk-danger-soft); color: var(--ezwk-danger); }
.tag.stable { background: var(--ezwk-theme-soft); color: var(--ezwk-theme); }
.tag.neutral { background: var(--ezwk-info-soft); color: var(--ezwk-info); }
.issue-list { display: flex; flex-direction: column; gap: 9px; }
.issue-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  border-radius: 11px; background: var(--ezwk-app-surface-soft); padding: 11px 12px;
}
.issue-severity { width: 7px; height: 37px; border-radius: 4px; background: var(--ezwk-slideshift); }
.issue-severity.high { background: var(--ezwk-danger); }
.issue-copy strong { display: block; font-size: 13px; margin-bottom: 1px; }
.issue-copy span { color: var(--ezwk-app-muted); font-size: 11px; }
.issue-link { min-height: 30px; padding-inline: 10px; font-size: 12px; }
.canonical-list, .hub-list { display: flex; flex-direction: column; gap: 10px; }
.canonical-row, .hub-row {
  border-radius: 10px; background: var(--ezwk-app-surface-soft); padding: 11px 12px;
}
.canonical-row strong, .hub-row strong { display: block; font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.canonical-row span, .hub-row span { display: block; font-size: 11px; color: var(--ezwk-app-muted); margin-top: 3px; }
.panel-controls { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; margin-bottom: 20px; }
.panel-controls h3 { margin-bottom: 0; }
.panel-note { color: var(--ezwk-app-muted); font-size: 12px; align-self: flex-end; }
.legend { display: flex; gap: 16px; color: var(--ezwk-app-muted); font-size: 12px; padding-top: 16px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.legend-dot.sheets { background: var(--ezwk-theme); }
.legend-dot.excel { background: var(--ezwk-info); }
.legend-line { display: inline-block; width: 17px; border-top: 2px dashed var(--ezwk-danger); }
.graph-shell {
  display: grid; grid-template-columns: minmax(510px, 1fr) 274px; gap: 18px;
  border-radius: var(--ezwk-radius-lg); border: 1px solid var(--ezwk-app-line); padding: 16px;
  background: var(--ezwk-surface);
}
#dependencyGraph { width: 100%; height: 440px; display: block; }
.node-detail {
  border-left: 1px solid var(--ezwk-app-line); padding: 17px 0 17px 18px;
}
.empty-detail { color: var(--ezwk-app-muted); font-size: 13px; margin-top: 15px; }
.detail-title { font-size: 16px; font-weight: 700; margin: 10px 0 12px; letter-spacing: -.02em; }
.detail-type { margin-bottom: 13px; }
.detail-grid { display: flex; flex-direction: column; gap: 9px; margin-top: 13px; }
.detail-grid dt { font-size: 11px; color: var(--ezwk-app-muted); }
.detail-grid dd { font-size: 13px; font-weight: 500; }
.detail-link-list { margin: 16px 0 0; padding: 0; list-style: none; font-size: 12px; color: var(--ezwk-app-muted); }
.detail-link-list li { padding: 7px 0; border-bottom: 1px solid var(--ezwk-line-soft); }
.group-list { display: flex; flex-direction: column; gap: 14px; }
.group-card {
  border: 1px solid var(--ezwk-app-line); border-radius: var(--ezwk-radius-lg); padding: 20px;
  display: grid; grid-template-columns: 240px 1fr 180px; gap: 20px; align-items: start;
}
.group-card h4 { margin: 0 0 8px; }
.group-sub { color: var(--ezwk-app-muted); font-size: 12px; }
.group-assets { display: flex; flex-direction: column; gap: 8px; }
.group-asset {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  border-radius: 10px; background: var(--ezwk-app-surface-soft); padding: 10px 12px; font-size: 13px;
}
.group-asset.candidate { border: 1px solid var(--ezwk-line); background: var(--ezwk-line-soft); }
.group-asset .score { color: var(--ezwk-app-muted); font-size: 11px; white-space: nowrap; }
.group-decision { font-size: 12px; color: var(--ezwk-app-muted); }
.group-decision strong { display: block; color: var(--ezwk-app-ink); font-size: 13px; margin-bottom: 8px; }
.group-decision button { margin-top: 13px; border: 0; color: var(--ezwk-theme); background: transparent; font-weight: 600; padding: 0; font-size: 12px; }
.filter-row { display: flex; gap: 10px; }
.search-input, .select-input {
  border: 1px solid var(--ezwk-app-line); border-radius: 9px; background: var(--ezwk-surface); color: var(--ezwk-app-ink);
  padding: 10px 13px; font-size: 13px; outline: 0;
}
.search-input { width: 260px; }
.select-input { min-width: 148px; }
.search-input:focus, .select-input:focus { border-color: var(--ezwk-quiet); box-shadow: 0 0 0 3px rgb(var(--c-success) / .06); }
.asset-toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.asset-table-wrap { border: 1px solid var(--ezwk-app-line); border-radius: var(--ezwk-radius-lg); overflow: hidden; }
.asset-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.asset-table th {
  text-align: left; color: var(--ezwk-app-muted); font-weight: 500; font-size: 12px;
  background: var(--ezwk-app-surface-soft); padding: 12px 15px; border-bottom: 1px solid var(--ezwk-app-line);
}
.asset-table td { padding: 13px 15px; border-bottom: 1px solid var(--ezwk-line-soft); vertical-align: middle; }
.asset-table tr:last-child td { border-bottom: 0; }
.file-name { font-weight: 600; display: block; }
.file-path { display: block; color: var(--ezwk-app-muted); font-size: 11px; margin-top: 2px; }
.file-type { display: inline-flex; border-radius: 15px; font-size: 11px; font-weight: 600; padding: 4px 9px; }
.file-type.sheets { color: var(--ezwk-theme); background: var(--ezwk-theme-soft); }
.file-type.excel { color: var(--ezwk-info); background: var(--ezwk-info-soft); }

@media (max-width: 1040px) {
  .card.wide { grid-column: 1 / -1; }
  #metrics.c-metrics { grid-template-columns: repeat(2, 1fr); }
  .graph-shell { grid-template-columns: 1fr; }
  .node-detail { border-left: 0; border-top: 1px solid var(--ezwk-app-line); padding: 15px 0 0; }
  .group-card { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .mode-chip { display: none; }
  .result-panel { padding: 18px; }
  .panel-heading, .panel-controls { flex-direction: column; }
  .report-actions { width: 100%; }
  .report-actions button { flex: 1; }
  #metrics.c-metrics, .two-column-report { grid-template-columns: 1fr; }
  .table-controls .filter-row { width: 100%; flex-direction: column; }
  .search-input { width: 100%; }
  .asset-table { min-width: 700px; }
}



/* v004 diagnostic risk controls */
.diagnostic-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 26px;
  padding: 16px 18px;
  margin: 0 0 20px;
  border: 1px solid var(--ezwk-app-line);
  border-radius: var(--ezwk-radius-lg);
  background: var(--ezwk-surface);
}
.threshold-control { display: flex; align-items: center; gap: 32px; }
.threshold-control h3 { margin: 0; }
.threshold-field { width: min(280px, 32vw); }
.threshold-field label {
  display: block; margin-bottom: 5px; color: var(--ezwk-muted); font-size: 11px; font-weight: 700;
}
.threshold-field input[type="range"] {
  accent-color: var(--ezwk-action); width: 100%; cursor: pointer;
}
.range-ticks { display: flex; justify-content: space-between; color: var(--ezwk-app-muted); font-size: 10px; margin-top: 2px; }
.toolbar-note { font-size: 12px; color: var(--ezwk-muted); white-space: nowrap; }
#metrics.c-metrics { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.c-metric { min-height: 91px; padding: 15px 14px; }
.c-metric .c-metric__value { font-size: 27px; }
.tag.sensitive { background: var(--ezwk-surface-soft); color: var(--ezwk-muted); }
.tag.dormant { background: var(--ezwk-line-soft); color: var(--ezwk-muted); }
.legend-mark {
  width: 16px; height: 16px; border-radius: 7px; display: inline-grid; place-items: center;
}
.legend-mark.sensitive { background: var(--ezwk-surface-soft); }
.legend-mark.sensitive::after { content: "P"; color: var(--ezwk-muted); font-size: 9px; font-weight: 700; }
.legend-mark.departed { background: var(--ezwk-danger-soft); }
.legend-mark.departed::after { content: "!"; color: var(--ezwk-danger); font-size: 10px; font-weight: 700; }
.graph-shell { grid-template-columns: minmax(500px, 1fr) 370px; }
#dependencyGraph { height: 470px; }
.node-detail { min-height: 470px; }
.detail-title-row { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin: 9px 0 12px; }
.detail-title-row .detail-title { margin: 0; max-width: 185px; }
.file-open-link {
  color: var(--ezwk-theme); font-size: 11px; font-weight: 700; white-space: nowrap;
  text-decoration: none; padding-top: 4px;
}
.file-link-disabled { color: var(--ezwk-app-muted); font-size: 11px; }
.asset-tag-stack { display: flex; flex-wrap: wrap; gap: 5px; margin: 12px 0 14px; }
.detail-grid { border-bottom: 1px solid var(--ezwk-line-soft); padding-bottom: 14px; margin-bottom: 14px; }
.detail-grid dd { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.mini-state {
  display: inline-flex; border-radius: 10px; padding: 2px 7px; font-size: 10px; font-weight: 700;
  color: var(--ezwk-app-muted); background: var(--ezwk-app-surface-soft);
}
.mini-state.active { background: var(--ezwk-theme-soft); color: var(--ezwk-theme); }
.mini-state.departed { background: var(--ezwk-danger-soft); color: var(--ezwk-danger); }
.mini-state.external { background: var(--ezwk-slideshift-soft); color: var(--ezwk-slideshift); }
.sensitive-detail {
  border: 1px solid var(--ezwk-line-soft); border-radius: 11px; padding: 11px; margin: 13px 0;
  background: var(--ezwk-surface);
}
.sensitive-detail h4, .ref-section h4 { margin: 0 0 8px; color: var(--ezwk-app-ink);
}
.sensitive-detail div { display: flex; justify-content: space-between; gap: 8px; margin: 6px 0; font-size: 11px; }
.sensitive-detail strong { color: var(--ezwk-muted); }
.sensitive-detail span, .sensitive-detail p { color: var(--ezwk-app-muted); }
.sensitive-detail p { font-size: 10px; margin-top: 8px; }
.ref-section { margin-top: 15px; }
.ref-card { border: 1px solid var(--ezwk-app-line); border-radius: 10px; padding: 9px; margin-bottom: 8px; background: var(--ezwk-surface); }
.ref-head { display: flex; justify-content: space-between; gap: 6px; align-items: center; margin-bottom: 7px; }
.ref-head .file-open-link, .missing-ref { font-size: 11px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.missing-ref { color: var(--ezwk-danger); }
.formula-row { display: grid; grid-template-columns: auto auto; gap: 4px 6px; align-items: center; margin-top: 6px; }
.cell-ref { background: var(--ezwk-app-surface-soft); border-radius: 5px; padding: 3px 5px; font-size: 10px; font-weight: 700; }
.formula-kind { color: var(--ezwk-app-muted); font-size: 10px; }
.formula-row code {
  grid-column: 1 / -1; display: block; overflow-x: auto; padding: 6px; border-radius: 6px;
  background: var(--ezwk-surface-soft); color: var(--ezwk-muted); font-size: 10px; white-space: nowrap;
}
.detail-notice {
  margin-top: 12px; border-radius: 9px; background: var(--ezwk-theme-soft); color: var(--ezwk-theme-deep);
  padding: 9px; font-size: 11px; line-height: 1.7;
}
.filter-stack { display: flex; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 9px; }
.risk-chip-row { display: flex; flex-wrap: wrap; gap: 5px; }
.risk-chip {
  border: 1px solid var(--ezwk-app-line); background: var(--ezwk-surface); color: var(--ezwk-app-muted);
  padding: 6px 10px; border-radius: 999px; font-size: 11px; font-weight: 600;
}
.risk-chip.active { background: var(--ezwk-theme-soft); color: var(--ezwk-theme-deep); border-color: var(--ezwk-line); }
.table-tags { display: flex; flex-wrap: wrap; gap: 4px; min-width: 190px; }
.table-tags .tag { padding: 3px 7px; font-size: 10px; }
.asset-open-button {
  justify-content: flex-start;
  min-height: 30px;
  padding-inline: 10px;
  color: var(--ezwk-app-ink);
  font-size: 13px;
  font-weight: 600;
}
.table-alert { color: var(--ezwk-danger); font-weight: 700; }
.empty-table { color: var(--ezwk-app-muted); text-align: center; padding: 36px !important; }
.report-metrics { grid-template-columns: repeat(2, 1fr); }
.report-risk-table { border: 1px solid var(--ezwk-app-line); border-radius: 12px; overflow: hidden; }
.risk-table-row { display: grid; grid-template-columns: 1.25fr 1.2fr .85fr; gap: 10px; padding: 12px 14px; font-size: 12px; border-bottom: 1px solid var(--ezwk-line-soft); }
.risk-table-row:last-child { border-bottom: 0; }
.risk-table-row.header { background: var(--ezwk-app-surface-soft); font-weight: 600; color: var(--ezwk-app-muted); }

@media (max-width: 1180px) {
  #metrics.c-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .summary-columns { grid-template-columns: 1fr 280px; }
  .threshold-field { width: min(240px, 28vw); }
}
@media (max-width: 1040px) {
  .graph-shell { grid-template-columns: 1fr; }
  .node-detail { min-height: 0; }
  .summary-columns { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .diagnostic-toolbar { flex-direction: column; align-items: stretch; gap: 14px; }
  .threshold-field { width: 100%; }
  .filter-stack { flex-wrap: wrap; }
  .asset-table { min-width: 940px; }
  .risk-table-row { grid-template-columns: 1fr; gap: 5px; }
}

.toolbar-disclaimer {
  width: 100%; text-align: right; color: var(--ezwk-app-muted); font-size: 10px; margin-top: 2px;
}
@media (max-width: 680px) {
  .toolbar-disclaimer { text-align: left; }
}


/* v005 Exposure & Decision */
.tag.critical { background: var(--ezwk-danger-soft); color: var(--ezwk-danger); }
.tag.shared { background: var(--ezwk-danger-soft); color: var(--ezwk-formrecast-deep); }
.decision-grid {
  display: grid;
  grid-template-columns: minmax(520px, 1.6fr) minmax(270px, .8fr);
  gap: 15px;
  margin-top: 15px;
}
.matrix-card { min-height: 390px; }
.risk-matrix {
  display: block;
  width: 100%;
  height: 310px;
  margin-top: 14px;
  background: linear-gradient(180deg, var(--ezwk-surface) 0%, var(--ezwk-surface) 100%);
  border-radius: 12px;
}
.matrix-axis { stroke: var(--ezwk-quiet); stroke-width: 1.2; }
.matrix-grid { stroke: var(--ezwk-line-soft); stroke-dasharray: 4 5; }
.matrix-critical-zone { fill: var(--ezwk-page-background); }
.matrix-axis-label { font: 500 11px var(--ezwk-font-sans); fill: var(--ezwk-muted); }
.matrix-zone-label { font: 700 10px var(--ezwk-font-sans); fill: var(--ezwk-formrecast-deep); }
.matrix-point { cursor: pointer; }
.matrix-point circle { stroke: var(--ezwk-surface); stroke-width: 3; }
.matrix-point text { font: 600 10px var(--ezwk-font-sans); fill: var(--ezwk-muted); }
.matrix-point.watch circle { fill: var(--ezwk-slideshift); }
.matrix-point.high circle { fill: var(--ezwk-formrecast-deep); }
.matrix-point.urgent circle { fill: var(--ezwk-formrecast-deep); }
.matrix-point:hover text { fill: var(--ezwk-theme-deep); }
.matrix-point:hover circle { stroke: var(--ezwk-success-soft); stroke-width: 5; }
.coverage-card { min-height: 390px; }
.coverage-score {
  display: flex; align-items: baseline; gap: 9px; padding-top: 20px; margin-bottom: 10px;
}
.coverage-score strong { font: 700 40px/1 var(--ezwk-font-sans); letter-spacing: -.06em; color: var(--ezwk-theme-deep); }
.coverage-score span { color: var(--ezwk-app-muted); font-size: 12px; }
.coverage-bar {
  width: 100%;
  height: 7px;
  margin-bottom: 19px;
  display: block;
  overflow: hidden;
  appearance: none;
  border: 0;
  border-radius: 8px;
  background: var(--ezwk-line-soft);
}
.coverage-bar::-webkit-progress-bar { background: var(--ezwk-line-soft); border-radius: inherit; }
.coverage-bar::-webkit-progress-value { background: var(--ezwk-theme); border-radius: inherit; }
.coverage-bar::-moz-progress-bar { background: var(--ezwk-theme); border-radius: inherit; }
.coverage-counts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 18px; }
.coverage-counts div { background: var(--ezwk-app-surface-soft); border-radius: 9px; padding: 9px 8px; text-align: center; }
.coverage-counts strong { display: block; font: 700 20px/1.1 var(--ezwk-font-sans); }
.coverage-counts span { color: var(--ezwk-app-muted); font-size: 10px; }
.coverage-warning {
  padding: 8px 0; border-top: 1px solid var(--ezwk-line-soft); display: flex; flex-direction: column; gap: 2px; font-size: 11px;
}
.coverage-warning strong { font-weight: 600; }
.coverage-warning span { color: var(--ezwk-slideshift); }

.action-queue { display: grid; gap: 12px; }
.action-card {
  border: 1px solid var(--ezwk-app-line); border-radius: 15px; background: var(--ezwk-surface); padding: 17px 18px 16px;
}
.action-card.urgent { border-left: 4px solid var(--ezwk-danger); }
.action-card.high { border-left: 4px solid var(--ezwk-slideshift); }
.action-header { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 10px; }
.action-title { display: flex; gap: 8px; align-items: center; font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.action-header p { color: var(--ezwk-app-muted); font-size: 12px; }
.recommendation, .detail-recommendation {
  color: var(--ezwk-theme-deep); font-size: 12px; line-height: 1.7; padding: 10px 12px; background: var(--ezwk-theme-soft); border-radius: 9px; margin: 10px 0 13px;
}
.workflow-fields { display: grid; grid-template-columns: 1fr 1fr 165px; gap: 10px; }
.workflow-fields label, .memo-field, .detail-workflow label {
  display: flex; flex-direction: column; gap: 5px; color: var(--ezwk-app-muted); font-size: 11px; font-weight: 600;
}
.workflow-fields input, .workflow-fields select, .memo-field textarea,
.detail-workflow input, .detail-workflow select, .detail-workflow textarea {
  border: 1px solid var(--ezwk-app-line); border-radius: 8px; background: var(--ezwk-surface); color: var(--ezwk-app-ink);
  padding: 8px 9px; font-size: 12px; min-height: 37px;
}
.memo-field { margin-top: 10px; }
.memo-field textarea, .detail-workflow textarea { min-height: 55px; resize: vertical; }
.canonical-button { margin-top: 10px; min-height: 35px; }
.canonical-button.selected { color: var(--ezwk-surface); border-color: var(--ezwk-action); background: var(--ezwk-action); }
.asset-detail-tabs {
  display: flex; gap: 4px; margin: 13px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--ezwk-line-soft);
}
.asset-detail-tabs button {
  border: 0; border-radius: 999px; background: transparent; color: var(--ezwk-app-muted);
  font-size: 11px; font-weight: 700; padding: 5px 9px;
}
.asset-detail-tabs button.active { background: var(--ezwk-theme-soft); color: var(--ezwk-theme-deep); }
.sharing-detail h4 { margin: 13px 0 8px; }
.sharing-risk-line { display: flex; flex-wrap: wrap; gap: 5px; }
.permission-table {
  border: 1px solid var(--ezwk-app-line); border-radius: 10px; overflow: hidden;
}
.permission-row {
  display: grid; grid-template-columns: 1fr .8fr .55fr; gap: 7px; padding: 8px 9px;
  border-bottom: 1px solid var(--ezwk-line-soft); font-size: 11px;
}
.permission-row:last-child { border-bottom: 0; }
.permission-row span { color: var(--ezwk-app-muted); }
.detail-workflow { display: grid; gap: 9px; }
.workflow-state {
  display: inline-flex; margin-left: 6px; color: var(--ezwk-app-muted); font-size: 10px; font-weight: 600;
}

.comparison-card {
  border: 1px solid var(--ezwk-app-line); background: var(--ezwk-surface); border-radius: 16px; padding: 18px; margin-bottom: 13px;
}
.comparison-head { display: flex; justify-content: space-between; align-items: start; gap: 15px; margin-bottom: 14px; }
.comparison-head h4 { margin: 2px 0 3px; }
.comparison-grid { overflow-x: auto; border: 1px solid var(--ezwk-app-line); border-radius: 10px; }
.comparison-row {
  display: grid;
  grid-template-columns: 115px repeat(var(--member-count, 3), minmax(142px, 1fr));
  gap: 0;
  border-bottom: 1px solid var(--ezwk-line-soft);
  min-width: 560px;
}
.comparison-grid.member-count-1 .comparison-row { grid-template-columns: 115px repeat(1, minmax(142px, 1fr)); }
.comparison-grid.member-count-2 .comparison-row { grid-template-columns: 115px repeat(2, minmax(142px, 1fr)); }
.comparison-grid.member-count-3 .comparison-row { grid-template-columns: 115px repeat(3, minmax(142px, 1fr)); }
.comparison-grid.member-count-4 .comparison-row { grid-template-columns: 115px repeat(4, minmax(142px, 1fr)); }
.comparison-grid.member-count-5 .comparison-row { grid-template-columns: 115px repeat(5, minmax(142px, 1fr)); }
.comparison-grid.member-count-6 .comparison-row { grid-template-columns: 115px repeat(6, minmax(142px, 1fr)); }
.comparison-grid.member-count-7 .comparison-row { grid-template-columns: 115px repeat(7, minmax(142px, 1fr)); }
.comparison-grid.member-count-8 .comparison-row { grid-template-columns: 115px repeat(8, minmax(142px, 1fr)); }
.comparison-row:last-child { border-bottom: 0; }
.comparison-row > * { padding: 9px 10px; font-size: 11px; border-right: 1px solid var(--ezwk-line-soft); }
.comparison-row > *:last-child { border-right: 0; }
.comparison-row > span:first-child { color: var(--ezwk-app-muted); font-weight: 600; background: var(--ezwk-surface); }
.comparison-row.head { background: var(--ezwk-app-surface-soft); }
.comparison-row.head strong { font-size: 11px; }
.comparison-row.actions .canonical-button { margin: 0; min-height: 31px; padding-inline: 11px; }
.comparison-reason { margin-top: 12px; color: var(--ezwk-app-muted); font-size: 12px; }


@media (max-width: 1080px) {
  .decision-grid { grid-template-columns: 1fr; }
  .coverage-card { min-height: 0; }
  .workflow-fields { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .matrix-card { min-height: 0; }
  .risk-matrix { height: 260px; }
  .workflow-fields { grid-template-columns: 1fr; }
  .action-header { flex-direction: column; }
  .permission-row { grid-template-columns: 1fr; }
}



.risk-grade { border-radius: 13px; padding: 14px 20px; text-align: center; min-width: 94px; background: var(--ezwk-slideshift-soft); color: var(--ezwk-slideshift); }
.risk-grade strong { display: block; font: 700 30px/1 var(--ezwk-font-sans); }
.risk-grade span { font-size: 11px; font-weight: 600; }
.summary-prose { color: var(--ezwk-muted); font-size: 14px; line-height: 2; }
.summary-section { margin-bottom: 0; }
.summary-risk-table { border: 1px solid var(--ezwk-app-line); border-radius: 12px; overflow: hidden; }

/* v006 unified diagnostic summary */
.unified-brief {
  margin-top: 15px;
  padding: 26px 27px 23px;
}
.unified-brief-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
  border-bottom: 1px solid var(--ezwk-app-line);
  padding-bottom: 18px;
  margin-bottom: 17px;
}
.unified-brief-header h3 {
  margin-top: 4px;
}
.summary-output-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 21px;
}
.summary-output-grid .report-section { margin: 0; }
.summary-output-grid h4, .summary-scope-note h4 {
  margin-bottom: 10px;
}
.summary-output-grid .risk-table-row {
  grid-template-columns: 1.1fr 1fr 1.15fr;
  padding: 10px 11px;
  font-size: 11px;
}
.summary-scope-note {
  border-top: 1px solid var(--ezwk-app-line);
  margin-top: 22px;
  padding-top: 17px;
}
.summary-scope-note p {
  color: var(--ezwk-app-muted);
  font-size: 12px;
  line-height: 1.9;
}
@media (max-width: 920px) {
  .summary-output-grid { grid-template-columns: 1fr; }
}


/* EZ-WK flow layout: connection -> diagnostic result */
.connection-heading {
  display: flex; align-items: end; justify-content: space-between; gap: 24px;
  margin-bottom: 21px;
}
.connection-heading > p { max-width: 485px; color: var(--ezwk-app-muted); font-size: 13px; line-height: 1.8; }
.connection-card {
  display: flex; align-items: center; justify-content: space-between; gap: 25px;
  padding: clamp(18px, 2vw, 24px); border: 1px solid var(--ezwk-app-line); border-radius: 15px; background: var(--ezwk-surface);
}
.connection-detail { display: grid; gap: 6px; min-width: 0; }
.connection-detail strong { color: var(--ezwk-theme-deep); font-size: 17px; }
.connection-detail > span { color: var(--ezwk-app-muted); font-size: 13px; line-height: 1.7; }
.connection-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 7px; }
.connection-chips small { padding: 5px 10px; border-radius: 999px; color: var(--ezwk-theme-deep); background: var(--ezwk-theme-soft); font-size: 11px; font-weight: 600; }
.connection-actions { display: flex; flex-wrap: wrap; gap: 9px; flex: none; align-items: center; max-width: 470px; }
.file-dropzone { display: grid; gap: 9px; min-width: min(100%, 435px); padding: 15px; border: 1px dashed var(--ezwk-line); border-radius: 14px; background: var(--ezwk-app-surface-soft); transition: background .16s ease, border-color .16s ease; }
.file-dropzone.is-dragging { border-color: var(--ezwk-action); background: var(--ezwk-action-soft); }
.file-picker-button { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.dropzone-note { color: var(--ezwk-quiet); text-align: center; font-size: 12px; }
.connector-roadmap { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-top: 17px; padding: clamp(17px, 2vw, 21px); border: 1px solid var(--ezwk-app-line); border-radius: 15px; background: var(--ezwk-surface); }
.connector-roadmap > div:first-child { display: grid; gap: 5px; max-width: 570px; }
.connector-roadmap strong { color: var(--ezwk-theme-deep); font-size: 16px; }
.connector-roadmap span { color: var(--ezwk-app-muted); font-size: 13px; line-height: 1.7; }
.connector-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.connector-actions button { color: var(--ezwk-app-muted); }
.connector-actions small { margin-left: 6px; padding: 2px 5px; border-radius: 999px; background: var(--ezwk-app-surface-soft); font-size: 10px; }
.connection-availability { flex-basis: 100%; margin: 3px 0 0; color: var(--ezwk-app-muted); font-size: 12px; line-height: 1.65; }
.connection-availability.is-pending { color: var(--ezwk-slideshift); }
.connection-availability.is-success { color: var(--ezwk-theme); }
.connection-guide { margin-top: 17px; border: 1px solid var(--ezwk-app-line); border-radius: 14px; background: var(--ezwk-surface); overflow: hidden; }
.connection-guide summary { padding: 14px 17px; cursor: pointer; list-style: none; color: var(--ezwk-theme-deep); font-size: 13px; font-weight: 700; }
.connection-guide summary::-webkit-details-marker { display: none; }
.connection-guide summary::after { content: "+"; float: right; color: var(--ezwk-theme); }
.connection-guide[open] summary::after { content: "open"; }
.connection-guide__body { padding: 0 17px 17px; color: var(--ezwk-app-muted); font-size: 13px; line-height: 1.8; }
.connection-guide__body ol { margin: 4px 0 14px; padding-left: 21px; }
.connection-guide__body p { margin: 10px 0 0; }
.connection-guide__body a { color: var(--ezwk-theme); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) {
  .connection-heading, .connection-card, .connector-roadmap { flex-direction: column; align-items: stretch; }
  .connector-actions { justify-content: flex-start; }
  .connection-actions { justify-content: flex-start; }
}
@media (max-width: 520px) {
  .connection-actions button, .connection-actions .file-picker-button, .connector-actions button { width: 100%; }
}

@media print {
  body { background: var(--ezwk-surface); }
  .site-header, .panel-heading .report-actions, .result-tabs, .site-footer,
  .diagnostic-toolbar, #tab-actions, .issue-link { display: none !important; }

  .result-panel { box-shadow: none; border: 0; padding: 0; }
  .tab-panel { display: none !important; }
  #tab-summary { display: block !important; }
  .summary-columns { grid-template-columns: 1fr; }
  .decision-grid { display: grid !important; }
  .unified-brief { break-before: page; box-shadow: none; }
  .card { box-shadow: none; }
}

/* Migration Coordination Board / Beta */
.migration-panel-head {
  align-items: flex-start;
  margin-bottom: 18px;
}
.panel-lead {
  max-width: 660px;
  margin-top: 7px;
  color: var(--ezwk-app-muted);
  font-size: 13px;
  line-height: 1.75;
}
.migration-block { margin-bottom: 20px; }
.stakeholder-actions { display: flex; gap: 9px; margin-bottom: 15px; }
.migration-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.local-storage-note {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--ezwk-theme-soft);
  color: var(--ezwk-theme-deep);
  font-size: 11px;
  font-weight: 600;
}
.migration-layout {
  display: grid;
  grid-template-columns: minmax(320px, .96fr) minmax(390px, 1.04fr);
  gap: 14px;
  margin-bottom: 14px;
}
.migration-layout.secondary {
  grid-template-columns: minmax(400px, 1.1fr) minmax(350px, .9fr);
}
.migration-layout .card, .migration-progress-card {
  padding: clamp(18px, 2.2vw, 23px);
}

.migration-help {
  color: var(--ezwk-app-muted);
  font-size: 12px;
  line-height: 1.7;
  margin: 9px 0 13px;
}
.migration-help code {
  background: var(--ezwk-app-surface-soft);
  border-radius: 5px;
  padding: 2px 5px;
  font-size: 11px;
}
.migration-asset-picker {
  display: grid;
  gap: 7px;
  max-height: 362px;
  overflow: auto;
  padding-right: 4px;
}
.migration-asset-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 11px;
  border: 1px solid var(--ezwk-app-line);
  border-radius: 11px;
  background: var(--ezwk-app-surface-soft);
}
.migration-asset-row input { accent-color: var(--ezwk-action); }
.migration-asset-name {
  display: grid;
  min-width: 0;
  gap: 2px;
}
.migration-asset-name strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}
.migration-asset-name small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ezwk-app-muted);
  font-size: 10px;
}
.migration-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin-top: 15px;
}
.migration-fields label,
.stakeholder-form label,
.message-card label {
  display: grid;
  gap: 5px;
  color: var(--ezwk-app-muted);
  font-size: 11px;
  font-weight: 600;
}
.migration-fields label.wide { grid-column: 1 / -1; }
.migration-fields input,
.stakeholder-form input,
.stakeholder-form select,
.message-card input,
.message-card select,
.message-card textarea,
.migration-progress-row select,
.migration-progress-row input,
.inline-status select {
  width: 100%;
  border: 1px solid var(--ezwk-app-line);
  border-radius: 9px;
  background: var(--ezwk-surface);
  color: var(--ezwk-app-ink);
  padding: 9px 10px;
  font-size: 13px;
}
.migration-fields input:focus,
.stakeholder-form input:focus,
.stakeholder-form select:focus,
.message-card input:focus,
.message-card select:focus,
.message-card textarea:focus,
.migration-progress-row select:focus,
.migration-progress-row input:focus,
.inline-status select:focus {
  outline: 2px solid var(--ezwk-focus-ring);
  border-color: var(--ezwk-action);
}
.csv-import-button { cursor: pointer; }
.stakeholder-form {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
  border: 1px solid var(--ezwk-app-line);
  border-radius: 12px;
  background: var(--ezwk-app-surface-soft);
  padding: 13px;
  margin-bottom: 15px;
}
.stakeholder-form button { grid-column: 1 / -1; justify-self: start; }
.stakeholder-asset-assignments {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 0;
  padding: 9px 10px 10px;
  border: 1px dashed var(--ezwk-app-line);
  border-radius: 10px;
}
.stakeholder-asset-assignments legend {
  color: var(--ezwk-app-muted);
  padding: 0 5px;
  font-size: 11px;
  font-weight: 600;
}
.stakeholder-asset-assignments label {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  color: var(--ezwk-app-ink);
  font-weight: 500;
}
.stakeholder-list {
  display: grid;
  gap: 9px;
  max-height: 410px;
  overflow: auto;
}
.stakeholder-entry {
  padding: 12px;
  border: 1px solid var(--ezwk-app-line);
  border-radius: 11px;
  background: var(--ezwk-surface);
}
.stakeholder-entry-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.stakeholder-entry-head div { display: grid; gap: 2px; }
.stakeholder-entry-head strong { font-size: 14px; }
.stakeholder-entry-head small { color: var(--ezwk-app-muted); font-size: 11px; }
.stakeholder-entry-head a { color: var(--ezwk-theme); font-size: 12px; }
.inline-status {
  display: grid;
  grid-template-columns: auto minmax(130px, 160px);
  align-items: center;
  gap: 9px;
  margin: 5px 0 9px;
}
.assignment-detail {
  border-top: 1px solid var(--ezwk-line-soft);
  padding-top: 8px;
}
.assignment-detail summary {
  cursor: pointer;
  color: var(--ezwk-app-muted);
  font-size: 11px;
}
.assignment-detail div {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}
.assignment-detail label {
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--ezwk-app-ink);
  font-size: 12px;
}
.message-card {
  display: grid;
  align-content: start;
  gap: 11px;
}
.message-card h3 { margin-bottom: 4px; }
.message-card textarea {
  resize: vertical;
  min-height: 278px;
  line-height: 1.7;
  font-size: 12px;
}
.message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}
#messageStakeholderSelect { min-width: 200px; }
.migration-feedback {
  min-height: 20px;
  color: var(--ezwk-app-muted);
  font-size: 12px;
}
.migration-feedback.success { color: var(--ezwk-theme); }
.migration-progress-card { margin-top: 15px; }
.migration-progress-table {
  display: grid;
  gap: 0;
  margin-top: 16px;
  border: 1px solid var(--ezwk-app-line);
  border-radius: 12px;
  overflow: hidden;
}
.migration-progress-row {
  display: grid;
  grid-template-columns: minmax(210px, 1.35fr) minmax(138px, .7fr) minmax(138px, .8fr) minmax(180px, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--ezwk-surface);
  border-bottom: 1px solid var(--ezwk-line-soft);
}
.migration-progress-row:last-child { border-bottom: 0; }
.migration-progress-row.head {
  background: var(--ezwk-app-surface-soft);
  color: var(--ezwk-app-muted);
  font-size: 11px;
  font-weight: 700;
}
.migration-progress-row div { display: grid; gap: 3px; min-width: 0; }
.migration-progress-row strong {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.migration-progress-row small { color: var(--ezwk-app-muted); font-size: 10px; }
@media (max-width: 1060px) {
  .migration-layout, .migration-layout.secondary { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  #migrationMetrics.c-metrics { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
  .migration-fields, .stakeholder-form { grid-template-columns: 1fr; }
  .migration-progress-table { border: 0; gap: 10px; overflow: visible; }
  .migration-progress-row.head { display: none; }
  .migration-progress-row { grid-template-columns: 1fr; border: 1px solid var(--ezwk-app-line); border-radius: 12px; }
  .migration-head-actions { justify-content: flex-start; }
}


/* GridShift phased workspace: import -> results -> migration */
.workspace-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-bottom: clamp(24px, 4vw, 35px); }
.workspace-step { position: relative; display: flex; align-items: center; gap: 13px; min-height: 69px; padding: 12px 16px; border: 1px solid var(--ezwk-app-line); border-radius: 22px; color: var(--ezwk-app-muted); background: var(--ezwk-surface); text-align: left; }
.workspace-step:not(:last-child)::after { content: ""; position: absolute; z-index: 2; right: -10px; top: 50%; width: 10px; height: 1px; background: var(--ezwk-app-line); }
.workspace-step small { display: block; color: var(--ezwk-quiet); font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.workspace-step strong { display: block; font-size: 14px; font-weight: 700; }
.workspace-step.active { color: var(--ezwk-theme-deep); border-color: var(--ezwk-line); background: var(--ezwk-theme-soft); }
.workspace-step.active small { color: var(--ezwk-theme); }
.workspace-step:disabled { cursor: not-allowed; opacity: .58; }
.workspace-screen[hidden] { display: none !important; }
.workspace-screen > .result-panel { margin-top: 0; }
.results-next-step { display: flex; justify-content: space-between; align-items: center; gap: 22px; margin-top: 20px; padding: 19px 20px; border: 1px solid var(--ezwk-line); border-radius: 16px; background: var(--ezwk-surface-soft); }
.results-next-step strong { color: var(--ezwk-theme-deep); font-size: 14px; line-height: 1.7; }
.results-next-step .button.primary { flex: none; }
.workspace-screen-heading { margin: 0 0 14px; }
.migration-workspace { padding: clamp(20px, 3vw, 28px); }
@media (max-width: 760px) {
  .workspace-steps { grid-template-columns: 1fr; }
  .workspace-step:not(:last-child)::after { display: none; }
  .results-next-step { flex-direction: column; align-items: stretch; }
  .results-next-step .button.primary { width: 100%; }
}

@media print {
  .shell-header, .shell-footer, .workspace-steps, .results-next-step, .workspace-screen-heading { display: none !important; }
  .workspace-screen[data-workspace-panel="results"] { display: block !important; }
}


/* Google Drive Picker OAuth and guided import flow */
.setup-guide { display: block; margin-bottom: clamp(25px, 4vw, 34px); padding: clamp(20px, 3vw, 28px); }
.setup-guide__summary { margin-bottom: clamp(16px, 2.5vw, 22px); }
.setup-guide__summary h2 { margin: 0 0 12px; }
.import-methods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; margin: clamp(19px, 3vw, 25px) 0; }
.import-method { display: grid; gap: 8px; min-height: 122px; padding: 17px; border: 1px solid var(--ezwk-app-line); border-radius: 22px; color: var(--ezwk-app-ink); background: var(--ezwk-surface); text-align: left; transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
button.import-method:hover { border-color: var(--ezwk-quiet); box-shadow: 0 8px 23px rgb(var(--c-ink) / .06); transform: translateY(-1px); }
.import-method.is-selected { border-color: var(--ezwk-action); background: var(--ezwk-action-soft); box-shadow: inset 0 0 0 1px var(--ezwk-action); }
.import-method.is-disabled { color: var(--ezwk-app-muted); background: var(--ezwk-app-surface-soft); }
.method-label { display: inline-flex; justify-self: start; padding: 4px 8px; border-radius: 999px; background: var(--ezwk-line-soft); color: var(--ezwk-app-muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.method-label.green { background: var(--ezwk-theme-soft); color: var(--ezwk-theme); }
.method-label.muted { color: var(--ezwk-quiet); }
.import-method strong { color: var(--ezwk-theme-deep); font-size: 16px; }
.import-method small { color: var(--ezwk-app-muted); font-size: 12px; line-height: 1.65; }
.source-panel { margin-top: 10px; }
.source-panel[hidden] { display: none !important; }
.cloud-import-card { align-items: stretch; flex-direction: column; gap: 18px; }
.google-connection-detail { max-width: none; }
.google-flow { display: grid; grid-template-columns: 1.34fr .76fr; gap: 13px; }
.google-safety, .google-actions { padding: clamp(16px, 2vw, 20px); border: 1px solid var(--ezwk-app-line); border-radius: 14px; background: var(--ezwk-app-surface-soft); }
.google-safety h3 { margin: 0 0 13px; }
.safety-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-bottom: 16px; }
.safety-columns > div { padding: 12px; border-radius: 11px; background: var(--ezwk-surface); }
.safety-columns strong { display: block; margin-bottom: 8px; color: var(--ezwk-theme-deep); font-size: 12px; }
.safety-columns ul { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; color: var(--ezwk-app-muted); font-size: 11px; line-height: 1.55; }
.safety-columns li::before { content: "+"; margin-right: 6px; color: var(--ezwk-theme); font-weight: 800; }
.safety-columns > div:last-child li::before { content: "-"; color: var(--ezwk-quiet); }
.google-actions { display: flex; flex-direction: column; justify-content: center; gap: 9px; }
.google-actions button { width: 100%; }
.google-actions button:disabled { opacity: .52; cursor: not-allowed; }
.connector-limit { margin-top: 3px; color: var(--ezwk-app-muted); font-size: 11px; line-height: 1.75; }
.demo-shortcut { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 15px; color: var(--ezwk-app-muted); font-size: 12px; }
.connection-guide__body h3 { margin: 14px 0 5px; }
@media (max-width: 940px) {
  .google-flow { grid-template-columns: 1fr; }
  .import-methods { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .safety-columns { grid-template-columns: 1fr; }
  .demo-shortcut { flex-direction: column; align-items: stretch; }
}


/* Google Drive folder-first diagnostic beta */
.folder-preview {
  width: 100%;
  margin-top: 14px;
  padding: clamp(16px, 2.2vw, 21px);
  border: 1px solid var(--ezwk-line);
  border-radius: 15px;
  background: var(--ezwk-surface-soft);
}
.folder-preview[hidden] { display: none !important; }
.folder-preview__heading { display: flex; justify-content: space-between; align-items: start; gap: 18px; margin-bottom: 13px; }
.folder-preview__heading h3 { margin: 3px 0 7px; }
.folder-preview__name { color: var(--ezwk-app-muted); font-size: 13px; font-weight: 600; }
.folder-preview__count { flex: none; border-radius: 999px; padding: 7px 13px; background: var(--ezwk-theme-soft); color: var(--ezwk-theme); font-size: 13px; }
.folder-file-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; list-style: none; margin: 0 0 15px; padding: 0; }
.folder-file-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-width: 0; padding: 9px 11px; border: 1px solid var(--ezwk-app-line); border-radius: 10px; background: var(--ezwk-surface); }
.folder-file-list strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ezwk-app-ink); font-size: 12px; }
.folder-file-list small { flex: none; color: var(--ezwk-theme); font-size: 10px; font-weight: 700; }
.folder-preview__actions { display: flex; gap: 10px; margin-bottom: 11px; }
.folder-preview .connector-limit code { font-size: 11px; }
@media (max-width: 720px) {
  .folder-file-list { grid-template-columns: 1fr; }
  .folder-preview__actions { flex-direction: column; }
}


body .workspace-steps {
  gap: 10px;
  margin-bottom: 18px;
}
body .workspace-step {
  min-height: 58px;
  padding: 11px 15px;
  border-color: var(--ezwk-app-line);
  border-radius: 18px;
  background: rgb(var(--c-surface) / .78);
  box-shadow: 0 10px 30px rgb(var(--c-ink) / .06);
}
body .workspace-step:not(:last-child)::after {
  background: rgb(var(--c-success) / .18);
}
body .workspace-step.active {
  border-color: rgb(var(--c-success) / .34);
  background: var(--ezwk-theme-soft);
  box-shadow: inset 0 0 0 1px rgb(var(--c-success) / .06);
}
body .setup-guide,
body .result-panel,
body .migration-workspace {
  border-color: rgb(var(--c-success) / .14);
}
body .setup-guide {
  margin-bottom: 18px;
  padding: clamp(17px, 2.3vw, 24px);
  background: rgb(var(--c-surface) / .88);
}
body .import-method,
body .google-safety,
body .google-actions,
body .connection-guide {
  border-color: rgb(var(--c-success) / .1);
  background: rgb(var(--c-surface) / .78);
}

/* workspace-main is the outer scope.
 * Level 1: setup-guide / result-panel / migration-workspace
 * Level 2: import-method / google-safety / google-actions / card / migration-metric
 * Level 3: finding-card / migration-asset-row / stakeholder-entry */
body .source-panel .connection-card {
  border: none;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}
body .connection-heading {
  align-items: center;
  margin-bottom: 17px;
}
body .connection-heading > p {
  max-width: 620px;
}
body .import-method {
  min-height: 112px;
  border-radius: 18px;
}
body .import-method.is-selected {
  border-color: rgb(var(--c-success) / .34);
  background: var(--ezwk-theme-soft);
  box-shadow: inset 0 0 0 1px rgb(var(--c-success) / .1);
}
body .result-panel {
  padding: clamp(22px, 3vw, 30px);
  background: rgb(var(--c-surface) / .88);
}
body .result-tabs {
  background: var(--ezwk-app-surface-soft);
}
body .c-tab.active {
  color: var(--ezwk-theme-deep);
}



/* Diagnostic evidence overview */
.finding-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 20px;
}
.finding-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 176px;
  gap: 10px;
  padding: 17px 17px 15px;
  border: 1px solid var(--ezwk-app-line);
  border-radius: var(--ezwk-radius-md);
  background: var(--ezwk-surface);
  overflow: hidden;
}
.finding-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--ezwk-theme);
}
.finding-card.privacy { background: var(--ezwk-page-background); border-color: var(--ezwk-line); }
.finding-card.privacy::before { background: var(--ezwk-danger); }
.finding-card.security { background: var(--ezwk-page-background); border-color: var(--ezwk-line); }
.finding-card.security::before { background: var(--ezwk-slideshift); }
.finding-card.duplicate { background: var(--ezwk-surface-soft); }
.finding-card.reference { background: var(--ezwk-surface-soft); }
.finding-label {
  margin: 0;
  color: var(--ezwk-theme);
  font-size: 10px;
  line-height: 1.45;
  font-weight: 700;
  letter-spacing: .12em;
}
.finding-card.privacy .finding-label { color: var(--ezwk-danger); }
.finding-card.security .finding-label { color: var(--ezwk-slideshift); }
.finding-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.finding-title-row h3 {
  margin: 0;
}
.finding-title-row strong {
  font-size: 22px;
  line-height: 1.45;
  white-space: nowrap;
  color: var(--ezwk-theme);
}
.finding-card.privacy .finding-title-row strong { color: var(--ezwk-danger); }
.finding-card.security .finding-title-row strong { color: var(--ezwk-slideshift); }
.finding-card > p:not(.finding-label) {
  flex: 1;
  margin: 0;
  color: var(--ezwk-app-muted);
  font-size: 12px;
  line-height: 1.7;
}
.finding-link {
  align-self: flex-start;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ezwk-theme);
  font-size: 12px;
  font-weight: 700;
}
.issue-copy small {
  display: block;
  margin-top: 4px;
  color: var(--ezwk-theme);
  font-size: 11px;
  line-height: 1.45;
}
@media (max-width: 1080px) {
  .finding-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .finding-overview { grid-template-columns: 1fr; }
  .finding-card { min-height: 0; }
}


/* GridShift v25: EZ-WK rounded control language */
.file-picker-button { cursor: pointer; }
.finding-link { align-self: flex-start; min-height: 30px; padding-inline: 10px; font-size: 12px; }
.workspace-step,
.import-method { border-radius: 22px; }
.c-tab,
.risk-chip,
.asset-detail-tabs button { border-radius: var(--ezwk-button-radius, 999px); }


