:root {
  color-scheme: dark;
  --bg: #07111f;
  --panel: rgba(13, 28, 46, 0.86);
  --panel-strong: #0d1c2e;
  --panel-soft: rgba(20, 39, 61, 0.72);
  --line: rgba(143, 181, 213, 0.16);
  --line-strong: rgba(143, 181, 213, 0.28);
  --text: #f5f7fb;
  --muted: #96a8bb;
  --muted-2: #71859a;
  --orange: #ff7a1a;
  --orange-soft: rgba(255, 122, 26, 0.13);
  --cyan: #61d8ff;
  --cyan-soft: rgba(97, 216, 255, 0.11);
  --green: #6ee7a8;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  font-family: "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--bg);
  background-size: 64px 64px;
  line-height: 1.6;
  overflow-x: hidden;
}

button,
input,
a {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  opacity: 0.14;
}

.ambient-a {
  top: -220px;
  left: -180px;
  background: var(--cyan);
}

.ambient-b {
  right: -260px;
  top: 420px;
  background: var(--orange);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  width: min(1440px, calc(100% - 48px));
  height: 76px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 17, 31, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
  letter-spacing: 0.04em;
}

.brand small {
  margin-top: -2px;
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: 0.15em;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  padding: 7px;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  border: 1px solid rgba(255, 122, 26, 0.42);
  border-radius: 11px;
  background: var(--orange-soft);
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  content: "";
  background: rgba(255, 122, 26, 0.45);
}

.brand-mark::before {
  top: 50%;
  right: -6px;
  left: -6px;
  height: 1px;
}

.brand-mark::after {
  top: -6px;
  bottom: -6px;
  left: 50%;
  width: 1px;
}

.brand-mark span {
  z-index: 1;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 12px rgba(255, 122, 26, 0.6);
}

nav {
  display: flex;
  align-items: center;
  gap: 34px;
  color: var(--muted);
  font-size: 14px;
}

nav a:hover,
nav a:focus-visible {
  color: var(--text);
}

.header-action,
.bundle-download,
.primary-action,
.catalog-state button {
  display: inline-flex;
  min-height: 42px;
  padding: 0 18px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 122, 26, 0.48);
  border-radius: 12px;
  background: var(--orange);
  color: #101318;
  font-size: 14px;
  font-weight: 750;
  box-shadow: 0 8px 26px rgba(255, 122, 26, 0.18);
  cursor: pointer;
  transition: box-shadow 160ms ease;
}

.header-action:hover,
.bundle-download:hover,
.primary-action:hover,
.catalog-state button:hover {
  box-shadow: 0 12px 30px rgba(255, 122, 26, 0.28);
}

main,
footer {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

.control-deck {
  position: relative;
  display: grid;
  min-height: 520px;
  padding: 90px 0 74px;
  align-items: center;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
}

.control-deck::after {
  position: absolute;
  z-index: -1;
  top: 72px;
  right: 22%;
  width: 1px;
  height: 320px;
  background: linear-gradient(transparent, rgba(97, 216, 255, 0.35), transparent);
  content: "";
  transform: rotate(24deg);
}

.eyebrow {
  display: flex;
  margin: 0 0 16px;
  align-items: center;
  gap: 9px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-block;
  width: 22px;
  height: 1px;
  background: currentColor;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(42px, 4.25vw, 60px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}

h1 em {
  display: inline-block;
  color: var(--orange);
  font-style: normal;
  white-space: nowrap;
}

.deck-intro {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.search-console {
  position: relative;
  padding: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(18, 39, 62, 0.92), rgba(8, 20, 35, 0.92));
  box-shadow: var(--shadow);
}

.search-console::before {
  position: absolute;
  top: -1px;
  left: 38px;
  width: 94px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  content: "";
}

.search-console label {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
}

.search-field {
  display: flex;
  min-height: 62px;
  padding: 0 16px;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(97, 216, 255, 0.28);
  border-radius: 15px;
  background: rgba(3, 11, 20, 0.68);
}

.search-field:focus-within {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(97, 216, 255, 0.08);
}

.search-field svg {
  width: 22px;
  fill: none;
  stroke: var(--cyan);
  stroke-linecap: round;
  stroke-width: 1.8;
}

.search-field input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
}

.search-field input::placeholder {
  color: #64778a;
}

kbd {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 12px;
}

.console-stats {
  display: grid;
  margin-top: 26px;
  grid-template-columns: repeat(3, 1fr);
}

.console-stats div {
  padding: 0 18px;
  border-right: 1px solid var(--line);
}

.console-stats div:first-child {
  padding-left: 0;
}

.console-stats div:last-child {
  padding-right: 0;
  border-right: 0;
}

.console-stats strong,
.console-stats span {
  display: block;
}

.console-stats strong {
  font-size: 27px;
  line-height: 1.2;
}

.console-stats span {
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 12px;
}

.bundle-strip,
.install-center,
.update-panel {
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(10, 23, 39, 0.7);
  box-shadow: var(--shadow);
}

.section-heading h2 {
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.section-heading > p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
}

.section-heading.compact {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.section-heading.compact > p {
  max-width: 520px;
  text-align: right;
}

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

.bundle-card {
  position: relative;
  display: grid;
  min-height: 190px;
  padding: 26px;
  grid-template-columns: 1fr auto;
  gap: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: linear-gradient(140deg, rgba(21, 44, 69, 0.88), rgba(10, 24, 40, 0.88));
  overflow: hidden;
}

.bundle-card::after {
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(97, 216, 255, 0.14);
  border-radius: 50%;
  box-shadow: 0 0 0 26px rgba(97, 216, 255, 0.04), 0 0 0 52px rgba(97, 216, 255, 0.025);
  content: "";
  pointer-events: none;
}

.bundle-card h3 {
  margin-bottom: 8px;
  font-size: 21px;
}

.bundle-card p {
  max-width: 480px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

.bundle-meta {
  display: flex;
  gap: 16px;
  color: var(--muted-2);
  font-size: 12px;
}

.bundle-download {
  z-index: 1;
  align-self: center;
  font-family: inherit;
}

.library {
  padding: 108px 0 92px;
}

.library-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.text-button {
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--cyan);
  cursor: pointer;
}

.category-filters {
  display: flex;
  margin: 32px 0 30px;
  gap: 9px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-summary {
  max-width: 880px;
  margin: 14px 0 28px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.category-filters::-webkit-scrollbar {
  display: none;
}

.category-chip {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(13, 28, 46, 0.68);
  color: var(--muted);
  cursor: pointer;
}

.category-chip:hover,
.category-chip[aria-pressed="true"] {
  border-color: rgba(255, 122, 26, 0.48);
  background: var(--orange-soft);
  color: #ffb27a;
}

.category-chip span {
  margin-left: 7px;
  color: var(--muted-2);
  font-size: 12px;
}

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

.skill-card {
  position: relative;
  display: flex;
  min-height: 330px;
  padding: 23px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(155deg, rgba(15, 32, 51, 0.88), rgba(8, 21, 36, 0.9));
  overflow: hidden;
  transition: border-color 180ms ease, background 180ms ease;
}

.skill-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(97, 216, 255, 0.45), transparent);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.skill-card:hover {
  border-color: rgba(97, 216, 255, 0.32);
  background: linear-gradient(155deg, rgba(18, 39, 62, 0.94), rgba(9, 23, 39, 0.94));
}

.skill-card:hover::before {
  opacity: 1;
}

.card-kicker,
.card-tags,
.card-footer,
.detail-meta,
.detail-actions {
  display: flex;
  align-items: center;
}

.card-kicker {
  justify-content: space-between;
  gap: 12px;
  color: var(--cyan);
  font-size: 12px;
}

.featured-badge {
  padding: 3px 8px;
  border: 1px solid rgba(255, 122, 26, 0.3);
  border-radius: 999px;
  background: var(--orange-soft);
  color: #ffac70;
}

.skill-card h3 {
  margin: 18px 0 10px;
  font-size: 21px;
  line-height: 1.35;
}

.skill-description {
  display: -webkit-box;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.card-tags {
  min-height: 26px;
  margin-top: auto;
  flex-wrap: wrap;
  gap: 6px;
}

.card-tags span {
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--cyan-soft);
  color: #9be9ff;
  font-size: 12px;
}

.card-footer {
  margin-top: 18px;
  padding-top: 16px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 12px;
}

.card-open {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.card-open::after {
  margin-left: 6px;
  color: var(--orange);
  content: "↗";
}

.catalog-state {
  display: flex;
  min-height: 260px;
  padding: 38px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
  color: var(--muted);
  text-align: center;
}

.catalog-state strong {
  color: var(--text);
  font-size: 18px;
}

.catalog-state p {
  margin: 6px 0 18px;
}

.loader {
  display: block;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 760ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.pending-notice {
  display: flex;
  margin-top: 20px;
  padding: 20px 22px;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(255, 180, 83, 0.23);
  border-radius: 16px;
  background: rgba(255, 180, 83, 0.07);
}

.pending-icon {
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(255, 180, 83, 0.14);
  color: #ffc06e;
  font-size: 20px;
}

.pending-notice strong,
.pending-notice p {
  display: block;
  margin: 0;
}

.pending-notice p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 14px;
}

.install-center {
  scroll-margin-top: 100px;
}

.install-grid {
  display: grid;
  margin-top: 34px;
  grid-template-columns: 1fr 1fr 0.85fr;
  gap: 16px;
}

.install-card,
.verify-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel-soft);
}

.install-label {
  display: flex;
  margin-bottom: 20px;
  align-items: center;
  gap: 10px;
}

.install-label > span {
  display: flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: var(--orange);
  color: #07111f;
  font-weight: 850;
}

.workbuddy-card .install-label > span {
  background: var(--cyan);
}

.install-card ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.install-card li {
  display: flex;
  padding: 13px 0;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.install-card li:last-child {
  border-bottom: 0;
}

.install-card li > span {
  color: var(--muted-2);
  font-family: ui-monospace, monospace;
  font-size: 12px;
}

.install-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

code {
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  color: #bdefff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}

.verify-card {
  background: linear-gradient(150deg, rgba(255, 122, 26, 0.12), rgba(11, 27, 45, 0.88));
}

.verify-card ul {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.verify-card li {
  position: relative;
  margin-bottom: 16px;
  padding-left: 24px;
  color: var(--muted);
  font-size: 14px;
}

.verify-card li::before {
  position: absolute;
  top: 1px;
  left: 0;
  color: var(--green);
  content: "✓";
}

.update-panel {
  margin: 22px 0 90px;
}

.update-flow {
  display: grid;
  margin-top: 34px;
  align-items: center;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 13px;
}

.update-flow div {
  min-height: 128px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(4, 14, 25, 0.5);
}

.update-flow b,
.update-flow strong,
.update-flow span {
  display: block;
}

.update-flow b {
  color: var(--orange);
  font-family: ui-monospace, monospace;
  font-size: 12px;
}

.update-flow strong {
  margin-top: 9px;
}

.update-flow span {
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 13px;
}

.update-flow i {
  color: var(--muted-2);
  font-style: normal;
}

.sync-meta {
  margin: 22px 0 0;
  color: var(--muted-2);
  font-size: 13px;
  text-align: right;
}

footer {
  display: flex;
  min-height: 160px;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border-top: 1px solid var(--line);
}

footer p {
  max-width: 650px;
  margin: 0;
  color: var(--muted-2);
  font-size: 13px;
  text-align: right;
}

dialog {
  width: min(760px, calc(100% - 32px));
  max-height: min(860px, calc(100vh - 32px));
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: #0a1828;
  color: var(--text);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

dialog::backdrop {
  background: rgba(2, 8, 15, 0.8);
  backdrop-filter: blur(7px);
}

.dialog-shell {
  position: relative;
  max-height: inherit;
  padding: 36px;
  overflow-y: auto;
}

.dialog-close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  display: flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 24px;
  cursor: pointer;
}

.detail-category {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
}

.detail-title {
  max-width: 600px;
  margin: 12px 54px 10px 0;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.22;
}

.detail-slug {
  color: var(--muted-2);
  font-family: ui-monospace, monospace;
  font-size: 13px;
}

.detail-description {
  margin: 24px 0;
  color: var(--muted);
  font-size: 15px;
}

.usage-callout {
  padding: 16px 18px;
  border: 1px solid rgba(97, 216, 255, 0.22);
  border-radius: 14px;
  background: var(--cyan-soft);
}

.usage-callout strong,
.detail-guide-grid h3 {
  font-size: 14px;
}

.usage-callout p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

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

.detail-guide-grid section {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.detail-guide-grid ol,
.detail-guide-grid ul {
  display: grid;
  margin: 12px 0 0;
  padding-left: 20px;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.bundle-download:disabled,
.primary-action:disabled {
  opacity: 0.72;
  cursor: wait;
  transform: none;
}

.detail-meta {
  display: grid;
  margin: 24px 0;
  padding: 18px 0;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-meta span,
.detail-meta strong {
  display: block;
}

.detail-meta span {
  color: var(--muted-2);
  font-size: 11px;
}

.detail-meta strong {
  margin-top: 4px;
  font-size: 13px;
}

.hash-box,
.command-box {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(2, 9, 16, 0.58);
}

.hash-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.hash-box code {
  min-width: 0;
  padding: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.copy-button,
.secondary-action {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}

.detail-actions {
  margin: 24px 0 28px;
  gap: 10px;
}

.primary-action,
.secondary-action {
  flex: 1;
}

.command-tabs {
  display: flex;
  gap: 8px;
}

.command-tab {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 9px 9px 0 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.command-tab[aria-selected="true"] {
  border-color: rgba(97, 216, 255, 0.32);
  background: var(--cyan-soft);
  color: var(--cyan);
}

.command-box {
  display: flex;
  margin-top: -1px;
  align-items: center;
  gap: 12px;
  border-radius: 0 12px 12px 12px;
}

.command-box code {
  flex: 1;
  padding: 0;
  background: transparent;
  color: #bdefff;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.verify-note {
  margin: 14px 0 0;
  color: var(--muted-2);
  font-size: 13px;
}

.toast {
  position: fixed;
  z-index: 50;
  right: 24px;
  bottom: 24px;
  padding: 12px 18px;
  border: 1px solid rgba(110, 231, 168, 0.34);
  border-radius: 10px;
  background: #102b24;
  color: #b9f8d6;
  box-shadow: var(--shadow);
  font-size: 14px;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .control-deck {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .skill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .install-grid {
    grid-template-columns: 1fr 1fr;
  }

  .verify-card {
    grid-column: 1 / -1;
  }

  .update-flow {
    grid-template-columns: repeat(2, 1fr);
  }

  .update-flow i {
    display: none;
  }
}

@media (max-width: 720px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1280px);
  }

  .site-header {
    height: 68px;
  }

  .site-header nav,
  .header-action,
  .brand small {
    display: none;
  }

  .control-deck {
    min-height: auto;
    padding: 64px 0 56px;
  }

  h1 {
    font-size: clamp(38px, 12vw, 54px);
  }

  h1 em {
    display: inline;
    white-space: normal;
  }

  .deck-intro {
    font-size: 16px;
  }

  .search-console,
  .bundle-strip,
  .install-center,
  .update-panel {
    padding: 24px;
    border-radius: 20px;
  }

  .search-field {
    min-height: 58px;
  }

  kbd {
    display: none;
  }

  .console-stats div {
    padding: 0 10px;
  }

  .console-stats strong {
    font-size: 22px;
  }

  .section-heading.compact,
  .library-toolbar,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading.compact > p,
  footer p {
    text-align: left;
  }

  .bundle-grid,
  .skill-grid,
  .install-grid,
  .update-flow {
    grid-template-columns: 1fr;
  }

  .bundle-card {
    grid-template-columns: 1fr;
  }

  .bundle-download {
    justify-self: start;
  }

  .library {
    padding: 82px 0 72px;
  }

  .skill-card {
    min-height: 300px;
  }

  .verify-card {
    grid-column: auto;
  }

  .update-flow div {
    min-height: 110px;
  }

  footer {
    min-height: 190px;
    padding: 34px 0;
    gap: 18px;
  }

  dialog {
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - 16px);
    margin: auto 0 0;
    border-radius: 22px 22px 0 0;
  }

  .dialog-shell {
    padding: 28px 20px 34px;
  }

  .detail-meta {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .detail-guide-grid {
    grid-template-columns: 1fr;
  }

  .detail-actions,
  .command-box,
  .hash-box {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .toast {
    right: 14px;
    bottom: 14px;
    left: 14px;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
