* {
  box-sizing: border-box;
}

:root {
  --stack-bg: #050917;
  --stack-panel: rgba(9, 20, 42, 0.84);
  --stack-panel-strong: rgba(12, 26, 56, 0.94);
  --stack-line: rgba(131, 166, 255, 0.24);
  --stack-line-hot: rgba(44, 209, 255, 0.62);
  --stack-text: #f5f9ff;
  --stack-muted: #a8b6cc;
  --stack-soft: #d5e2f4;
  --stack-blue: #2f83ff;
  --stack-cyan: #28d7ff;
  --stack-green: #2df0a0;
  --stack-amber: #f8bd43;
  --stack-red: #ff5d70;
  --stack-violet: #8b6cff;
  --stack-radius: 18px;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  color: var(--stack-text);
  background: var(--stack-bg);
  font-synthesis-weight: none;
  text-rendering: geometricPrecision;
}

html,
body,
#rzw-ai-tool-stack {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body.rzw-ai-tool-stack-body {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 82%, rgba(19, 116, 255, 0.28), transparent 28%),
    radial-gradient(circle at 84% 14%, rgba(41, 214, 255, 0.16), transparent 30%),
    linear-gradient(135deg, #030611 0%, #081326 50%, #06091a 100%);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.rzw-stack-app a {
  color: inherit;
  text-decoration: none;
}

.seo-fallback {
  max-width: 1160px;
  margin: 0 auto;
  padding: 28px;
  color: var(--stack-text);
}

.seo-hero,
.seo-note,
.seo-card,
.seo-result,
.seo-faq {
  position: relative;
  z-index: 1;
  border: 1px solid var(--stack-line);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(15, 31, 65, 0.9), rgba(7, 16, 36, 0.84)),
    radial-gradient(circle at 92% 8%, rgba(40, 215, 255, 0.12), transparent 35%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 24px 70px rgba(0, 0, 0, 0.26);
}

.seo-hero {
  padding: clamp(34px, 5vw, 60px);
}

.seo-kicker {
  margin: 0 0 14px;
  color: #8eefff;
  font-size: 15px;
  font-weight: 1000;
}

.seo-hero h1 {
  max-width: 900px;
  margin: 0;
  color: #fff;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.06;
  font-weight: 1000;
  letter-spacing: 0;
}

.seo-hero p,
.seo-note p,
.seo-card p,
.seo-result p,
.seo-result li,
.seo-faq p {
  color: #c7d5eb;
  font-size: 15px;
  line-height: 1.75;
  font-weight: 800;
}

.seo-hero p {
  max-width: 900px;
  margin: 18px 0 0;
  font-size: clamp(16px, 1.7vw, 21px);
}

.seo-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin-top: 26px;
  padding: 0 24px;
  border: 1px solid rgba(72, 180, 255, 0.62);
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #1296ff, #1c63ff 46%, #20d7ff);
  box-shadow: 0 16px 34px rgba(19, 110, 255, 0.28);
  font-size: 17px;
  font-weight: 1000;
}

.seo-note,
.seo-result,
.seo-faq {
  margin-top: 18px;
  padding: 24px;
}

.seo-note h2,
.seo-card h2,
.seo-result h2,
.seo-faq h2,
.seo-faq h3 {
  margin: 0;
  color: var(--stack-text);
  line-height: 1.25;
  font-weight: 1000;
  letter-spacing: 0;
}

.seo-note h2,
.seo-card h2,
.seo-result h2,
.seo-faq h2 {
  font-size: 24px;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.seo-card {
  min-height: 156px;
  padding: 22px;
}

.seo-result strong {
  color: var(--stack-green);
}

.seo-faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.seo-faq h2 {
  grid-column: 1 / -1;
}

.seo-faq article {
  padding: 16px;
  border: 1px solid rgba(131, 166, 255, 0.16);
  border-radius: 14px;
  background: rgba(4, 12, 29, 0.62);
}

.seo-faq h3 {
  font-size: 17px;
}

.rzw-stack-app {
  position: relative;
  min-height: 100vh;
  padding: 32px;
  overflow: hidden;
  background:
    linear-gradient(110deg, transparent 0 60%, rgba(40, 215, 255, 0.08) 60% 61%, transparent 61%),
    radial-gradient(circle at 48% 105%, rgba(32, 129, 255, 0.2), transparent 36%);
}

.rzw-stack-app::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(79, 133, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 133, 255, 0.07) 1px, transparent 1px);
  background-size: 66px 66px;
  mask-image: radial-gradient(circle at center, #000, transparent 80%);
  pointer-events: none;
}

.stack-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  gap: 24px;
  width: min(1500px, calc(100vw - 64px));
  min-height: 850px;
  margin: 0 auto;
  padding: 26px;
  border: 1px solid rgba(149, 178, 255, 0.58);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(8, 16, 35, 0.94), rgba(5, 11, 27, 0.9)),
    radial-gradient(circle at 92% 8%, rgba(47, 131, 255, 0.18), transparent 34%);
  box-shadow:
    0 36px 100px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 0 0 1px rgba(44, 209, 255, 0.08);
  overflow: hidden;
}

.stack-shell::before {
  content: "";
  position: absolute;
  left: 240px;
  top: 26px;
  bottom: 26px;
  width: 1px;
  background: linear-gradient(transparent, rgba(44, 209, 255, 0.8), transparent);
  box-shadow: 0 0 24px rgba(44, 209, 255, 0.52);
}

.stack-sidebar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.stack-logo {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 6px auto 0;
  border-radius: 17px;
  color: #08111f;
  background: linear-gradient(145deg, var(--stack-cyan), var(--stack-blue) 48%, var(--stack-green));
  box-shadow: 0 0 24px rgba(44, 209, 255, 0.55), inset 0 0 12px rgba(255, 255, 255, 0.32);
  font-size: 25px;
  font-weight: 1000;
}

.stack-brand {
  margin: 0 0 4px;
  color: #fff;
  font-size: 18px;
  line-height: 1.3;
  text-align: center;
  font-weight: 1000;
}

.stack-side-nav {
  display: grid;
  gap: 10px;
}

.stack-side-nav a,
.side-save-card {
  border: 1px solid transparent;
  border-radius: 13px;
}

.stack-side-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  color: var(--stack-muted);
  background: transparent;
  font-size: 14px;
  font-weight: 900;
}

.stack-side-nav a::before {
  content: "";
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid rgba(168, 182, 204, 0.4);
  background: rgba(255, 255, 255, 0.04);
}

.stack-side-nav a.is-active {
  color: #fff;
  border-color: rgba(44, 209, 255, 0.44);
  background: linear-gradient(135deg, rgba(47, 131, 255, 0.86), rgba(14, 51, 104, 0.66));
  box-shadow: 0 12px 24px rgba(18, 92, 255, 0.24);
}

.stack-side-nav a.is-active::before {
  border-color: rgba(45, 240, 160, 0.6);
  background: linear-gradient(135deg, var(--stack-cyan), var(--stack-green));
  box-shadow: 0 0 12px rgba(45, 240, 160, 0.4);
}

.side-save-card {
  margin-top: auto;
  padding: 18px;
  border-color: rgba(69, 145, 255, 0.32);
  background:
    radial-gradient(circle at 14% 10%, rgba(45, 240, 160, 0.18), transparent 35%),
    linear-gradient(180deg, rgba(14, 30, 64, 0.88), rgba(8, 17, 38, 0.78));
}

.side-save-card span {
  display: block;
  color: #9defff;
  font-size: 13px;
  font-weight: 1000;
}

.side-save-card strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  font-weight: 1000;
}

.side-save-card small {
  display: block;
  margin-top: 10px;
  color: var(--stack-muted);
  font-size: 12px;
  line-height: 1.55;
  font-weight: 800;
}

.stack-workspace {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.stack-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 4px 0 16px;
}

.stack-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 4vw, 56px);
  line-height: 1.06;
  font-weight: 1000;
  letter-spacing: 0;
  text-shadow: 0 20px 42px rgba(0, 0, 0, 0.34);
}

.stack-hero p {
  max-width: 780px;
  margin: 10px 0 0;
  color: #c3cee3;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 800;
}

.model-pill {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(131, 166, 255, 0.24);
  border-radius: 999px;
  color: #d7e2f5;
  background: rgba(7, 16, 36, 0.74);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 900;
}

.model-pill::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: var(--stack-green);
  box-shadow: 0 0 14px rgba(45, 240, 160, 0.8);
}

.top-board {
  display: grid;
  grid-template-columns: minmax(270px, 0.72fr) minmax(0, 1.28fr) minmax(230px, 0.58fr);
  gap: 14px;
}

.panel {
  position: relative;
  min-width: 0;
  border: 1px solid var(--stack-line);
  border-radius: var(--stack-radius);
  background:
    linear-gradient(180deg, rgba(16, 31, 63, 0.9), rgba(7, 16, 36, 0.78)),
    radial-gradient(circle at 100% 0, rgba(44, 209, 255, 0.09), transparent 36%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 22px 54px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.05), transparent 22%, transparent 80%, rgba(44, 209, 255, 0.06));
  pointer-events: none;
}

.panel-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0 0 14px;
}

.panel-head h2,
.panel-head h3 {
  margin: 0;
  color: #eef5ff;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 1000;
  letter-spacing: 0;
}

.panel-kicker {
  display: block;
  margin-bottom: 5px;
  color: #8deaff;
  font-size: 12px;
  font-weight: 1000;
}

.tool-input-panel,
.result-panel,
.scenario-panel {
  padding: 16px;
}

.scenario-select {
  width: 100%;
  min-height: 42px;
  margin: 0 0 14px;
  padding: 0 12px;
  border: 1px solid rgba(131, 166, 255, 0.28);
  border-radius: 11px;
  color: var(--stack-text);
  background: rgba(5, 13, 31, 0.86);
  font-weight: 900;
}

.tool-form {
  display: grid;
  gap: 10px;
}

.tool-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(131, 166, 255, 0.18);
  border-radius: 14px;
  background: rgba(4, 11, 27, 0.68);
}

.tool-card-head {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) max-content;
  gap: 10px;
  align-items: center;
}

.tool-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: #07111f;
  background: linear-gradient(135deg, var(--stack-cyan), var(--stack-blue));
  font-size: 17px;
  font-weight: 1000;
}

.tool-name-input {
  min-width: 0;
  width: 100%;
  height: 36px;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  font-size: 15px;
  font-weight: 1000;
}

.tool-action-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(131, 166, 255, 0.18);
  border-radius: 999px;
  color: #dfe7f7;
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  font-weight: 1000;
}

.tool-action-tag.keep {
  color: #b7ffd9;
  border-color: rgba(45, 240, 160, 0.28);
  background: rgba(45, 240, 160, 0.1);
}

.tool-action-tag.downgrade {
  color: #ffe4a3;
  border-color: rgba(248, 189, 67, 0.3);
  background: rgba(248, 189, 67, 0.1);
}

.tool-action-tag.replace {
  color: #bfefff;
  border-color: rgba(40, 215, 255, 0.28);
  background: rgba(40, 215, 255, 0.1);
}

.tool-action-tag.cancel {
  color: #ffc0c9;
  border-color: rgba(255, 93, 112, 0.28);
  background: rgba(255, 93, 112, 0.1);
}

.tool-grid {
  display: grid;
  grid-template-columns: 0.76fr 0.9fr 0.64fr;
  gap: 8px;
}

.tool-field {
  min-width: 0;
}

.tool-field span {
  display: block;
  margin-bottom: 4px;
  color: #8897b2;
  font-size: 11px;
  font-weight: 900;
}

.tool-field input,
.tool-field select {
  width: 100%;
  min-width: 0;
  height: 36px;
  border: 1px solid rgba(131, 166, 255, 0.2);
  border-radius: 10px;
  outline: 0;
  color: var(--stack-text);
  background: rgba(8, 18, 40, 0.9);
  padding: 0 9px;
  font-size: 13px;
  font-weight: 850;
}

.switch-line {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.check-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid rgba(131, 166, 255, 0.18);
  border-radius: 999px;
  color: #a8b6cc;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.check-pill input {
  width: 14px;
  height: 14px;
  accent-color: var(--stack-cyan);
}

.panel-actions,
.result-actions {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.action-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 11px;
  text-align: center;
  font-size: 14px;
  font-weight: 1000;
}

.action-button {
  border: 1px solid rgba(65, 180, 255, 0.54);
  color: #fff;
  background: linear-gradient(135deg, #128cff, #235dff 52%, #21d5ff);
  box-shadow: 0 14px 28px rgba(26, 105, 255, 0.28);
}

.secondary-button {
  border: 1px solid rgba(131, 166, 255, 0.22);
  color: #d9e7fb;
  background: rgba(10, 22, 49, 0.82);
}

.result-summary {
  position: relative;
  z-index: 1;
  min-height: 210px;
  padding: 18px;
  border: 1px solid rgba(44, 209, 255, 0.34);
  border-radius: 16px;
  background:
    radial-gradient(circle at 22% 70%, rgba(44, 209, 255, 0.14), transparent 26%),
    linear-gradient(180deg, rgba(9, 22, 49, 0.88), rgba(4, 11, 27, 0.84));
}

.result-summary h2 {
  max-width: 840px;
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.22;
  font-weight: 1000;
  letter-spacing: 0;
}

.result-summary h2 b {
  color: var(--stack-green);
}

.result-summary h2 em {
  color: var(--stack-amber);
  font-style: normal;
}

.result-summary h2 i {
  color: var(--stack-cyan);
  font-style: normal;
}

.result-summary h2 strong {
  color: var(--stack-red);
}

.result-summary p {
  max-width: 760px;
  margin: 12px 0 0;
  color: #c7d5eb;
  font-size: 15px;
  line-height: 1.65;
  font-weight: 800;
}

.saving-display {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 16px;
  align-items: end;
  margin-top: 20px;
}

.saving-visual {
  min-height: 92px;
  border: 1px solid rgba(44, 209, 255, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(44, 209, 255, 0.09), transparent),
    repeating-linear-gradient(90deg, rgba(57, 125, 255, 0.14) 0 12px, transparent 12px 28px);
  overflow: hidden;
}

.saving-visual span {
  display: block;
  width: var(--saving-width, 52%);
  height: 100%;
  min-width: 20%;
  background: linear-gradient(135deg, rgba(45, 240, 160, 0.14), rgba(45, 240, 160, 0.72));
  box-shadow: 0 0 32px rgba(45, 240, 160, 0.34);
}

.saving-number span {
  display: block;
  color: #9defff;
  font-size: 14px;
  font-weight: 1000;
  text-align: right;
}

.saving-number strong {
  display: block;
  margin-top: 6px;
  color: #70f7ff;
  font-size: clamp(40px, 4.5vw, 62px);
  line-height: 0.96;
  font-weight: 1000;
  white-space: nowrap;
  text-shadow: 0 0 24px rgba(40, 215, 255, 0.32);
}

.metric-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.metric-card {
  min-width: 0;
  min-height: 96px;
  padding: 13px;
  border: 1px solid rgba(131, 166, 255, 0.18);
  border-radius: 14px;
  background: rgba(5, 13, 31, 0.7);
}

.metric-card span {
  display: block;
  color: #9eacc4;
  font-size: 12px;
  font-weight: 900;
}

.metric-card strong {
  display: block;
  margin-top: 9px;
  color: #fff;
  font-size: clamp(24px, 2vw, 33px);
  line-height: 1;
  font-weight: 1000;
  white-space: nowrap;
}

.metric-card small {
  display: block;
  margin-top: 8px;
  color: #98a8c0;
  font-size: 11px;
  line-height: 1.35;
  font-weight: 800;
}

.signal-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.signal-grid article {
  min-height: 86px;
  padding: 13px;
  border: 1px solid rgba(131, 166, 255, 0.16);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0, rgba(45, 240, 160, 0.08), transparent 36%),
    rgba(5, 13, 31, 0.62);
}

.signal-grid span {
  display: block;
  color: #8eefff;
  font-size: 12px;
  font-weight: 1000;
}

.signal-grid strong {
  display: block;
  margin-top: 8px;
  color: #dbe8fa;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 900;
}

.scenario-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.scenario-check {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(131, 166, 255, 0.18);
  border-radius: 12px;
  color: var(--stack-soft);
  background: rgba(4, 11, 27, 0.64);
  font-size: 14px;
  font-weight: 900;
}

.scenario-check::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--stack-blue), var(--stack-cyan));
  box-shadow: 0 0 12px rgba(44, 209, 255, 0.32);
}

.dup-ring {
  display: grid;
  place-items: center;
  width: min(180px, 56vw);
  aspect-ratio: 1;
  margin: 18px auto 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #0b162f 0 48%, transparent 49%),
    conic-gradient(var(--stack-violet) var(--dup, 50%), rgba(255, 255, 255, 0.12) 0);
  filter: drop-shadow(0 0 20px rgba(139, 108, 255, 0.26));
}

.dup-ring strong {
  color: #eef4ff;
  font-size: 40px;
  line-height: 1;
  font-weight: 1000;
}

.dup-ring span {
  display: block;
  margin-top: 5px;
  color: #aab8ce;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.middle-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.decision-card {
  min-height: 150px;
  padding: 15px;
}

.decision-card h3 {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
  color: #fff;
  font-size: 16px;
  font-weight: 1000;
}

.decision-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 14px;
}

.decision-card ul {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.decision-card li {
  min-width: 0;
  color: #d4e0f2;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 850;
}

.decision-card li small {
  display: block;
  margin-top: 2px;
  color: #8797b2;
  font-size: 11px;
  line-height: 1.35;
}

.decision-card.keep {
  border-color: rgba(45, 240, 160, 0.24);
}

.decision-card.keep h3 {
  color: #a8ffd4;
}

.decision-card.downgrade {
  border-color: rgba(248, 189, 67, 0.24);
}

.decision-card.downgrade h3 {
  color: #ffe2a0;
}

.decision-card.replace {
  border-color: rgba(40, 215, 255, 0.24);
}

.decision-card.replace h3 {
  color: #b8f2ff;
}

.decision-card.cancel {
  border-color: rgba(255, 93, 112, 0.24);
}

.decision-card.cancel h3 {
  color: #ffc0c9;
}

.bottom-board {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(280px, 0.8fr);
  gap: 14px;
  margin-top: 14px;
}

.trend-panel,
.action-panel,
.locked-panel,
.case-panel,
.faq-panel {
  padding: 17px;
}

.bar-chart {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 11px;
}

.bar-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 86px;
  gap: 12px;
  align-items: center;
}

.bar-row span,
.bar-row strong {
  color: #cdd9ed;
  font-size: 13px;
  font-weight: 900;
}

.bar-track {
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.bar-track i {
  display: block;
  width: var(--bar, 48%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--stack-blue), var(--stack-cyan));
  box-shadow: 0 0 16px rgba(44, 209, 255, 0.25);
}

.bar-row.optimized .bar-track i {
  background: linear-gradient(90deg, var(--stack-green), #d7ff86);
}

.action-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.action-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 11px;
  border: 1px solid rgba(131, 166, 255, 0.16);
  border-radius: 13px;
  background: rgba(5, 13, 31, 0.62);
}

.action-list b {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  color: #06101f;
  background: linear-gradient(135deg, var(--stack-cyan), var(--stack-green));
  font-size: 13px;
  font-weight: 1000;
}

.action-list strong {
  display: block;
  color: #eef5ff;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 1000;
}

.action-list span {
  display: block;
  margin-top: 3px;
  color: #9dacbf;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 800;
}

.locked-panel {
  margin-top: 14px;
}

.locked-intro {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 18px;
  align-items: center;
}

.locked-intro h2 {
  margin: 6px 0 8px;
  color: #fff;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 1000;
}

.locked-intro p {
  max-width: 780px;
  margin: 0;
  color: #c4d1e6;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 800;
}

.locked-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.locked-item {
  min-height: 96px;
  padding: 13px;
  border: 1px solid rgba(131, 166, 255, 0.16);
  border-radius: 14px;
  background: rgba(4, 11, 27, 0.62);
}

.locked-item strong {
  display: block;
  color: #eef5ff;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 1000;
}

.locked-item span {
  display: block;
  margin-top: 7px;
  color: #9dacbf;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 800;
}

.case-panel,
.faq-panel {
  margin-top: 14px;
}

.case-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.case-card {
  min-height: 130px;
  padding: 14px;
  border: 1px solid rgba(131, 166, 255, 0.16);
  border-radius: 14px;
  background: rgba(5, 13, 31, 0.62);
}

.case-card span {
  color: #8eefff;
  font-size: 12px;
  font-weight: 1000;
}

.case-card h3 {
  margin: 8px 0 6px;
  color: #fff;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 1000;
}

.case-card p {
  margin: 0;
  color: #9dacbf;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 800;
}

.faq-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.faq-grid details {
  border: 1px solid rgba(131, 166, 255, 0.16);
  border-radius: 14px;
  background: rgba(5, 13, 31, 0.58);
}

.faq-grid summary {
  padding: 14px;
  color: #eef5ff;
  font-size: 14px;
  font-weight: 1000;
  cursor: pointer;
}

.faq-grid p {
  margin: 0;
  padding: 0 14px 14px;
  color: #9dacbf;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 800;
}

.toast {
  position: fixed;
  z-index: 999;
  right: 18px;
  bottom: 18px;
  max-width: min(340px, calc(100vw - 36px));
  padding: 12px 14px;
  border: 1px solid rgba(45, 240, 160, 0.28);
  border-radius: 13px;
  color: #dfffea;
  background: rgba(5, 18, 31, 0.94);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 900;
}

.is-hidden {
  display: none !important;
}

#rzw-ai-tool-stack .decision-card.keep h3 {
  color: #a8ffd4 !important;
}

#rzw-ai-tool-stack .decision-card.downgrade h3 {
  color: #ffe2a0 !important;
}

#rzw-ai-tool-stack .decision-card.replace h3 {
  color: #b8f2ff !important;
}

#rzw-ai-tool-stack .decision-card.cancel h3 {
  color: #ffc0c9 !important;
}

#rzw-ai-tool-stack .decision-count {
  color: inherit !important;
}

#rzw-ai-tool-stack .trend-panel .panel-head h3,
#rzw-ai-tool-stack .action-panel .panel-head h3,
#rzw-ai-tool-stack .case-card h3 {
  color: #eef5ff !important;
}

#rzw-ai-tool-stack .case-card p {
  color: #c4d1e6 !important;
}

/* Product Design cockpit pass: compact first-screen dashboard */
#rzw-ai-tool-stack .rzw-stack-app {
  padding: 24px;
  background:
    linear-gradient(112deg, transparent 0 58%, rgba(40, 215, 255, 0.08) 58% 59%, transparent 59%),
    radial-gradient(circle at 54% 110%, rgba(32, 129, 255, 0.24), transparent 34%),
    radial-gradient(circle at 8% 78%, rgba(96, 78, 255, 0.14), transparent 28%);
}

#rzw-ai-tool-stack .stack-shell {
  width: min(1560px, calc(100vw - 48px));
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 22px;
  min-height: 0;
  padding: 24px;
  border-radius: 28px;
}

#rzw-ai-tool-stack .stack-shell::before {
  left: 236px;
}

#rzw-ai-tool-stack .stack-sidebar {
  gap: 16px;
}

#rzw-ai-tool-stack .stack-logo {
  width: 56px;
  height: 56px;
  border-radius: 18px;
}

#rzw-ai-tool-stack .stack-side-nav a {
  min-height: 48px;
  padding: 0 13px;
  border-radius: 12px;
  font-size: 15px;
}

#rzw-ai-tool-stack .stack-hero {
  margin: 0 0 14px;
  align-items: start;
}

#rzw-ai-tool-stack .stack-hero h1 {
  font-size: clamp(40px, 3.25vw, 54px);
}

#rzw-ai-tool-stack .stack-hero p {
  max-width: 920px;
  margin-top: 8px;
  font-size: 16px;
}

#rzw-ai-tool-stack .model-pill {
  min-height: 38px;
  border-color: rgba(151, 120, 255, 0.52);
  background: rgba(10, 18, 45, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

#rzw-ai-tool-stack .stack-path-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

#rzw-ai-tool-stack .stack-path-strip a {
  min-height: 66px;
  display: grid;
  gap: 5px;
  align-content: center;
  padding: 12px;
  border: 1px solid rgba(122, 196, 255, 0.18);
  border-radius: 14px;
  color: inherit;
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
}

#rzw-ai-tool-stack .stack-path-strip a.is-current {
  border-color: rgba(51, 217, 255, 0.38);
  background:
    linear-gradient(135deg, rgba(10, 103, 255, 0.18), rgba(116, 72, 255, 0.16)),
    rgba(255, 255, 255, 0.05);
}

#rzw-ai-tool-stack .stack-path-strip strong {
  color: #f7fbff;
  font-size: 14px;
}

#rzw-ai-tool-stack .stack-path-strip span {
  color: #b8c5da;
  font-size: 12px;
  line-height: 1.45;
}

#rzw-ai-tool-stack .top-board {
  grid-template-columns: minmax(300px, 0.72fr) minmax(440px, 1.38fr) minmax(270px, 0.72fr);
  gap: 12px;
  align-items: stretch;
}

#rzw-ai-tool-stack .panel {
  border-color: rgba(100, 144, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(15, 31, 66, 0.92), rgba(5, 13, 32, 0.82)),
    radial-gradient(circle at 102% 0, rgba(44, 209, 255, 0.12), transparent 35%);
}

#rzw-ai-tool-stack .tool-input-panel,
#rzw-ai-tool-stack .result-panel,
#rzw-ai-tool-stack .scenario-panel {
  padding: 14px;
}

#rzw-ai-tool-stack .panel-head {
  margin-bottom: 10px;
}

#rzw-ai-tool-stack .tool-form {
  gap: 8px;
}

#rzw-ai-tool-stack .tool-card {
  gap: 7px;
  padding: 9px;
  border-radius: 12px;
}

#rzw-ai-tool-stack .tool-card-head {
  grid-template-columns: 32px minmax(0, 1fr) 54px;
  gap: 8px;
}

#rzw-ai-tool-stack .tool-avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

#rzw-ai-tool-stack .tool-name-input {
  height: 30px;
  font-size: 14px;
}

#rzw-ai-tool-stack .tool-action-tag {
  min-width: 46px;
  min-height: 26px;
  padding: 0 7px;
}

#rzw-ai-tool-stack .tool-grid {
  grid-template-columns: 0.64fr 0.92fr 0.58fr;
  gap: 6px;
}

#rzw-ai-tool-stack .tool-field span {
  margin-bottom: 3px;
  font-size: 10px;
}

#rzw-ai-tool-stack .tool-field input,
#rzw-ai-tool-stack .tool-field select {
  height: 32px;
  border-radius: 9px;
  padding: 0 8px;
  font-size: 12px;
}

#rzw-ai-tool-stack .switch-line {
  gap: 5px;
}

#rzw-ai-tool-stack .check-pill {
  min-height: 28px;
  padding: 0 6px;
  font-size: 11px;
}

#rzw-ai-tool-stack .result-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.42fr);
  gap: 14px 18px;
  min-height: 238px;
  padding: 18px;
  background:
    radial-gradient(circle at 37% 64%, rgba(26, 212, 255, 0.17), transparent 24%),
    radial-gradient(circle at 90% 40%, rgba(139, 108, 255, 0.15), transparent 32%),
    linear-gradient(180deg, rgba(8, 21, 50, 0.94), rgba(3, 10, 28, 0.88));
}

#rzw-ai-tool-stack .result-copy {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
}

#rzw-ai-tool-stack .result-summary h2 {
  font-size: clamp(26px, 2.35vw, 36px);
}

#rzw-ai-tool-stack .result-summary p {
  margin-top: 10px;
  font-size: 14px;
}

#rzw-ai-tool-stack .result-visual {
  position: relative;
  z-index: 1;
  min-height: 100px;
  border-radius: 16px;
  overflow: hidden;
  background:
    repeating-linear-gradient(90deg, rgba(47, 131, 255, 0.18) 0 15px, transparent 15px 30px),
    radial-gradient(circle at 50% 68%, rgba(31, 218, 255, 0.28), transparent 40%),
    linear-gradient(180deg, rgba(10, 32, 76, 0.82), rgba(4, 12, 33, 0.82));
  box-shadow: inset 0 0 0 1px rgba(44, 209, 255, 0.22);
}

#rzw-ai-tool-stack .result-platform,
#rzw-ai-tool-stack .result-arrow,
#rzw-ai-tool-stack .result-wave {
  position: absolute;
  pointer-events: none;
}

#rzw-ai-tool-stack .result-platform {
  left: 22%;
  right: 22%;
  bottom: 17px;
  height: 34px;
  border: 1px solid rgba(44, 209, 255, 0.48);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(33, 154, 255, 0.2), rgba(14, 56, 128, 0.6));
  box-shadow: 0 0 34px rgba(44, 209, 255, 0.3);
}

#rzw-ai-tool-stack .result-arrow {
  left: 50%;
  top: 18px;
  width: 54px;
  height: 58px;
  transform: translateX(-50%);
  clip-path: polygon(32% 0, 68% 0, 68% 46%, 100% 46%, 50% 100%, 0 46%, 32% 46%);
  background: linear-gradient(180deg, #68f7ff, #21d6ff 48%, #236dff);
  box-shadow: 0 0 30px rgba(44, 209, 255, 0.62);
}

#rzw-ai-tool-stack .result-wave {
  right: 4%;
  bottom: 24px;
  width: 35%;
  height: 34px;
  border-top: 2px solid rgba(44, 209, 255, 0.36);
  border-radius: 50%;
}

#rzw-ai-tool-stack .saving-display {
  display: grid;
  align-content: end;
  gap: 8px;
  margin-top: 0;
}

#rzw-ai-tool-stack .saving-visual {
  min-height: 44px;
}

#rzw-ai-tool-stack .saving-number strong {
  font-size: clamp(44px, 4.4vw, 68px);
}

#rzw-ai-tool-stack .metric-row {
  gap: 8px;
}

#rzw-ai-tool-stack .metric-card {
  min-height: 78px;
  padding: 11px;
}

#rzw-ai-tool-stack .metric-card strong {
  margin-top: 6px;
}

#rzw-ai-tool-stack .signal-grid {
  gap: 8px;
}

#rzw-ai-tool-stack .signal-grid article {
  min-height: 74px;
  padding: 11px;
}

#rzw-ai-tool-stack .scenario-panel {
  display: grid;
  align-content: start;
}

#rzw-ai-tool-stack .scenario-list {
  gap: 9px;
}

#rzw-ai-tool-stack .scenario-check {
  min-height: 44px;
  font-size: 15px;
}

#rzw-ai-tool-stack .dup-ring {
  width: min(172px, 54vw);
  margin-top: 22px;
}

#rzw-ai-tool-stack .middle-board {
  gap: 12px;
  margin-top: 12px;
}

#rzw-ai-tool-stack .decision-card {
  min-height: 116px;
  padding: 14px;
}

#rzw-ai-tool-stack .decision-card li {
  font-size: 12px;
}

#rzw-ai-tool-stack .bottom-board {
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.88fr);
  gap: 12px;
  margin-top: 12px;
}

#rzw-ai-tool-stack .trend-panel,
#rzw-ai-tool-stack .action-panel {
  padding: 15px;
}

#rzw-ai-tool-stack .bar-row {
  grid-template-columns: 78px minmax(0, 1fr) 82px;
}

#rzw-ai-tool-stack .action-list {
  gap: 8px;
}

#rzw-ai-tool-stack .action-list li {
  padding: 9px;
}

#rzw-ai-tool-stack .action-dock {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
  padding: 10px 64px;
  border: 1px solid rgba(131, 166, 255, 0.28);
  border-radius: 16px;
  background: rgba(4, 11, 27, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

#rzw-ai-tool-stack .dock-card {
  display: grid;
  align-content: center;
  min-height: 68px;
  padding: 10px 18px;
  border: 1px solid rgba(131, 166, 255, 0.24);
  border-radius: 11px;
  color: #d9e7fb;
  background: linear-gradient(180deg, rgba(18, 36, 78, 0.9), rgba(9, 20, 48, 0.9));
  text-align: left;
}

#rzw-ai-tool-stack .dock-card strong {
  display: block;
  color: #fff;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 1000;
}

#rzw-ai-tool-stack .dock-card span {
  display: block;
  margin-top: 4px;
  color: #9dacbf;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
}

#rzw-ai-tool-stack .dock-primary {
  border-color: rgba(65, 180, 255, 0.58);
  background: linear-gradient(135deg, #138fff, #245eff 52%, #21d5ff);
  box-shadow: 0 18px 34px rgba(26, 105, 255, 0.3);
}

#rzw-ai-tool-stack .dock-report {
  border-color: rgba(174, 113, 255, 0.52);
  background: linear-gradient(135deg, rgba(108, 66, 204, 0.92), rgba(56, 35, 122, 0.9));
}

#rzw-ai-tool-stack .locked-panel,
#rzw-ai-tool-stack .case-panel,
#rzw-ai-tool-stack .faq-panel {
  margin-top: 12px;
}

@media (max-width: 1280px) {
  .rzw-stack-app {
    padding: 16px;
  }

  .stack-shell {
    width: 100%;
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 18px;
  }

  #rzw-ai-tool-stack .stack-shell {
    width: 100%;
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .stack-shell::before {
    display: none;
  }

  .stack-sidebar {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    align-items: center;
  }

  .stack-logo {
    margin: 0;
  }

  .stack-brand {
    text-align: left;
  }

  .stack-side-nav {
    grid-column: 1 / -1;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .side-save-card {
    display: none;
  }

  .top-board,
  .bottom-board,
  .locked-intro {
    grid-template-columns: 1fr;
  }

  .middle-board,
  .locked-grid,
  #rzw-ai-tool-stack .action-dock {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #rzw-ai-tool-stack .top-board {
    grid-template-columns: 1fr;
  }

  #rzw-ai-tool-stack .action-dock {
    padding: 10px;
  }
}

@media (max-width: 760px) {
  body.rzw-ai-tool-stack-body {
    overflow-x: hidden;
  }

  .rzw-stack-app {
    width: 100%;
    max-width: 100%;
    padding: 10px;
  }

  #rzw-ai-tool-stack .rzw-stack-app {
    padding: 10px;
  }

  .stack-shell {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    border-radius: 22px;
  }

  #rzw-ai-tool-stack .stack-shell {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
    padding: 12px;
    border-radius: 22px;
  }

  #rzw-ai-tool-stack .stack-sidebar {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    width: 100%;
  }

  #rzw-ai-tool-stack .stack-workspace {
    width: 100%;
  }

  .stack-sidebar {
    gap: 10px;
  }

  .stack-side-nav {
    display: grid;
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .stack-side-nav a:not(.is-active) {
    display: none;
  }

  .stack-side-nav a.is-active {
    justify-content: center;
  }

  .stack-hero {
    display: grid;
  }

  .stack-hero h1 {
    font-size: 34px;
  }

  .stack-hero p {
    font-size: 15px;
    overflow-wrap: anywhere;
  }

  .model-pill {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
  }

  .tool-input-panel,
  .result-panel,
  .scenario-panel,
  .trend-panel,
  .action-panel,
  .locked-panel,
  .case-panel,
  .faq-panel {
    padding: 14px;
  }

  .tool-grid,
  .switch-line,
  .metric-row,
  .signal-grid,
  .middle-board,
  .bottom-board,
  .result-summary,
  .locked-intro,
  .locked-grid,
  .case-grid,
  .faq-grid,
  .seo-grid,
  .seo-faq,
  .panel-actions,
  .result-actions,
  #rzw-ai-tool-stack .action-dock {
    grid-template-columns: 1fr;
  }

  .saving-display {
    grid-template-columns: 1fr;
  }

  #rzw-ai-tool-stack .result-copy,
  #rzw-ai-tool-stack .result-visual {
    grid-column: auto;
  }

  #rzw-ai-tool-stack .result-summary {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  #rzw-ai-tool-stack .top-board,
  #rzw-ai-tool-stack .bottom-board,
  #rzw-ai-tool-stack .middle-board,
  #rzw-ai-tool-stack .stack-path-strip,
  #rzw-ai-tool-stack .locked-grid,
  #rzw-ai-tool-stack .case-grid,
  #rzw-ai-tool-stack .faq-grid,
  #rzw-ai-tool-stack .metric-row,
  #rzw-ai-tool-stack .signal-grid,
  #rzw-ai-tool-stack .panel-actions,
  #rzw-ai-tool-stack .result-actions {
    grid-template-columns: 1fr;
  }

  #rzw-ai-tool-stack .result-visual {
    min-height: 82px;
  }

  #rzw-ai-tool-stack .action-dock {
    gap: 8px;
    padding: 8px;
  }

  #rzw-ai-tool-stack .dock-card {
    min-height: 58px;
    padding: 9px 12px;
  }

  .saving-number span,
  .saving-number strong {
    text-align: left;
  }

  .saving-number strong {
    font-size: 42px;
  }

  .tool-card-head {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .tool-action-tag {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .bar-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .seo-fallback {
    padding: 10px;
  }

  .seo-hero,
  .seo-note,
  .seo-card,
  .seo-result,
  .seo-faq {
    border-radius: 18px;
  }

  .seo-hero h1 {
    font-size: 36px;
  }

  .seo-hero p,
  .seo-note p,
  .seo-card p,
  .seo-result p,
  .seo-result li,
  .seo-faq p {
    font-size: 14px;
  }
}

@media print {
  body.rzw-ai-tool-stack-body {
    background: #fff;
  }

  .rzw-stack-app {
    padding: 0;
    background: #fff;
  }

  .stack-shell {
    width: 100%;
    border: 0;
    box-shadow: none;
    background: #fff;
  }

  .stack-sidebar,
  .locked-panel,
  .case-panel,
  .faq-panel,
  .panel-actions,
  .result-actions,
  .model-pill {
    display: none;
  }

  .stack-workspace,
  .panel,
  .result-summary,
  .metric-card,
  .decision-card,
  .bar-row,
  .action-list li {
    color: #111827;
    background: #fff;
    border-color: #d1d5db;
    box-shadow: none;
  }

  .stack-hero h1,
  .panel-head h2,
  .panel-head h3,
  .result-summary h2,
  .metric-card strong,
  .decision-card h3,
  .action-list strong {
    color: #111827;
  }
}

/* 20260630 P0 readability and paid-gate hardening. */
#rzw-ai-tool-stack,
#rzw-ai-tool-stack * {
  letter-spacing: 0 !important;
}

#rzw-ai-tool-stack p,
#rzw-ai-tool-stack span,
#rzw-ai-tool-stack small,
#rzw-ai-tool-stack li,
#rzw-ai-tool-stack label {
  color: #dce8fa !important;
}

#rzw-ai-tool-stack h1,
#rzw-ai-tool-stack h2,
#rzw-ai-tool-stack h3,
#rzw-ai-tool-stack h4,
#rzw-ai-tool-stack strong,
#rzw-ai-tool-stack b,
#rzw-ai-tool-stack em,
#rzw-ai-tool-stack .metric-card strong,
#rzw-ai-tool-stack .saving-number strong {
  color: #ffffff !important;
}

#rzw-ai-tool-stack input,
#rzw-ai-tool-stack select,
#rzw-ai-tool-stack textarea {
  color: #f8fbff !important;
  background-color: rgba(4, 12, 24, .78) !important;
}

#rzw-ai-tool-stack button,
#rzw-ai-tool-stack a {
  text-shadow: none;
}

#rzw-ai-tool-stack .action-button,
#rzw-ai-tool-stack .dock-report {
  color: #ffffff !important;
  background: linear-gradient(135deg, #8b5cf6, #55d7ef) !important;
}

#rzw-ai-tool-stack a[href*="/workspace"],
#rzw-ai-tool-stack a[href*="/workspace"] *,
#rzw-ai-tool-stack button,
#rzw-ai-tool-stack button *,
#rzw-ai-tool-stack [role="button"],
#rzw-ai-tool-stack [role="button"] *,
#rzw-ai-tool-stack .action-button *,
#rzw-ai-tool-stack .dock-report * {
  color: #f8fcff !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .46) !important;
}

@media (max-width: 430px) {
  #rzw-ai-tool-stack .stack-hero h1 {
    font-size: 32px !important;
    line-height: 1.08 !important;
  }

  #rzw-ai-tool-stack .panel,
  #rzw-ai-tool-stack .result-summary,
  #rzw-ai-tool-stack .locked-panel,
  #rzw-ai-tool-stack .case-panel,
  #rzw-ai-tool-stack .faq-panel {
    padding: 14px !important;
  }
}
