:root,
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f151a;
  --header: #121a20;
  --surface: #192228;
  --surface-2: #202a31;
  --surface-3: #29353d;
  --text: #efeee8;
  --text-2: #b3bdc2;
  --muted: #859299;
  --border: rgba(235, 242, 246, 0.1);
  --border-strong: rgba(235, 242, 246, 0.2);
  --blue: #78b5ce;
  --blue-strong: #a6d1e2;
  --blue-soft: #183847;
  --brass: #dfb45f;
  --brass-soft: #3b311f;
  --danger: #ef817a;
  --success: #7bc5a6;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.26);
  --shadow-float: 0 28px 90px rgba(0, 0, 0, 0.46);
  --ring: 0 0 0 4px rgba(120, 181, 206, 0.15);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --ease: cubic-bezier(0.2, 0.75, 0.25, 1);
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f3ec;
  --header: #fbf8f1;
  --surface: #fffdf8;
  --surface-2: #efebe2;
  --surface-3: #e4ded3;
  --text: #19242b;
  --text-2: #4d5b63;
  --muted: #6c7880;
  --border: rgba(27, 37, 45, 0.12);
  --border-strong: rgba(27, 37, 45, 0.22);
  --blue: #347895;
  --blue-strong: #245b73;
  --blue-soft: #dcebf1;
  --brass: #94651d;
  --brass-soft: #f3e7cc;
  --danger: #b73d37;
  --success: #2f8065;
  --shadow: 0 22px 60px rgba(25, 36, 43, 0.09);
  --shadow-float: 0 28px 90px rgba(25, 36, 43, 0.18);
  --ring: 0 0 0 4px rgba(52, 120, 149, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  width: 100%;
  height: 720px;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 74% 0%, rgba(120, 181, 206, 0.13), transparent 34%),
    radial-gradient(circle at 21% 4%, rgba(223, 180, 95, 0.08), transparent 28%);
}

button,
input {
  font: inherit;
}

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

button {
  color: inherit;
}

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

img,
svg {
  display: block;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

::selection {
  color: var(--text);
  background: var(--blue-soft);
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 11px 15px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.hub-shell {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.hub-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: var(--header);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.hub-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  font-size: 1.08rem;
  letter-spacing: -0.025em;
}

.hub-brand img {
  border-radius: 13px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.18);
}

.hub-brand span {
  font-weight: 500;
}

.hub-brand strong {
  font-weight: 700;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.desktop-nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: var(--text-2);
  border-radius: 12px;
  font-size: 0.91rem;
  font-weight: 600;
  transition: color 160ms ease, background 160ms ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--text);
  background: var(--surface-2);
}

.header-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
}

.search-trigger,
.icon-button,
.header-login,
.avatar-button {
  min-height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.search-trigger {
  min-width: 168px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px 0 13px;
  color: var(--text-2);
  cursor: pointer;
}

.search-trigger svg,
.icon-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.search-trigger span {
  font-size: 0.87rem;
  font-weight: 600;
}

kbd {
  min-width: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 6px;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 7px;
  font-family: inherit;
  font-size: 0.72rem;
  line-height: 1;
}

.search-trigger kbd {
  margin-left: auto;
}

.icon-button {
  width: 44px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
}

.header-login {
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 650;
}

.search-trigger:hover,
.icon-button:hover,
.header-login:hover,
.avatar-button:hover {
  background: var(--surface-2);
  border-color: var(--blue);
}

.account-menu {
  position: relative;
}

.avatar-button {
  width: 44px;
  padding: 2px;
  overflow: hidden;
  cursor: pointer;
}

.avatar-button img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 10px;
}

.account-popover {
  position: absolute;
  z-index: 120;
  top: calc(100% + 10px);
  right: 0;
  width: 270px;
  padding: 9px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-float);
}

.account-popover[hidden] {
  display: none;
}

.account-summary {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.account-summary img {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 12px;
}

.account-summary span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.account-summary strong,
.account-summary small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-summary strong {
  font-size: 0.93rem;
}

.account-summary small {
  color: var(--muted);
  font-size: 0.76rem;
}

.account-popover > a {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 11px;
  color: var(--text-2);
  border-radius: 10px;
  font-size: 0.86rem;
  font-weight: 600;
}

.account-popover > a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.account-popover > a.danger-link {
  color: var(--danger);
}

.hero {
  padding-top: clamp(70px, 9vw, 128px);
  padding-bottom: 52px;
}

.hero-copy {
  max-width: 930px;
}

.eyebrow,
.section-label,
.service-eyebrow {
  margin: 0;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
}

.eyebrow span {
  width: 24px;
  height: 2px;
  background: var(--blue);
  border-radius: 99px;
}

.hero h1 {
  max-width: 920px;
  margin: 20px 0 20px;
  font-size: clamp(3rem, 7vw, 6.25rem);
  line-height: 0.98;
  letter-spacing: -0.067em;
  text-wrap: balance;
}

.hero-copy > p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--text-2);
  font-size: clamp(1.02rem, 1.6vw, 1.25rem);
  line-height: 1.65;
}

.hero-search {
  width: min(840px, 100%);
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  margin-top: 40px;
  color: var(--text-2);
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 180ms var(--ease), border-color 180ms ease, background 180ms ease;
}

.hero-search:hover {
  background: var(--surface-2);
  border-color: var(--blue);
  transform: translateY(-2px);
}

.hero-search > svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.hero-search span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1rem;
}

.hero-search kbd {
  margin-left: auto;
  padding: 7px 9px;
}

.sign-in-callout {
  max-width: 840px;
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  padding: 20px;
  margin-top: 16px;
  background: var(--blue-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
}

.sign-in-callout > div:first-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.sign-in-callout strong {
  font-size: 0.92rem;
}

.sign-in-callout span {
  color: var(--text-2);
  font-size: 0.82rem;
  line-height: 1.5;
}

.sign-in-callout > div:last-child {
  display: flex;
  gap: 8px;
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.button.primary {
  color: #10212a;
  background: var(--blue);
  border-color: transparent;
}

html[data-theme="light"] .button.primary {
  color: #fff;
}

.button.secondary {
  color: var(--text);
  background: var(--surface);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.8fr);
  gap: 18px;
  align-items: start;
}

.panel {
  min-width: 0;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.panel-heading,
.section-heading.inline-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.panel-heading h2,
.section-heading h2 {
  margin: 5px 0 0;
  font-size: 1.45rem;
  letter-spacing: -0.035em;
}

.panel-heading > a,
.inline-heading > button {
  padding: 6px 0;
  color: var(--blue);
  background: none;
  border: 0;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
}

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

.pinned-card {
  min-width: 0;
  min-height: 100px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 15px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform 170ms var(--ease), border-color 170ms ease, background 170ms ease;
}

.pinned-card:hover {
  background: var(--surface-3);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.pinned-card > .service-icon,
.recent-item > .service-icon {
  width: 44px;
  height: 44px;
}

.pinned-card > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.pinned-card strong,
.pinned-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pinned-card strong {
  font-size: 0.95rem;
}

.pinned-card small {
  color: var(--muted);
  font-size: 0.76rem;
}

.pinned-card .arrow,
.quick-action .arrow,
.service-link svg,
.system-strip a svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.empty-state {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  margin-top: 18px;
  color: var(--muted);
  text-align: center;
  background: var(--surface-2);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
}

.empty-state svg {
  width: 28px;
  height: 28px;
  margin-bottom: 4px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.7;
}

.empty-state strong {
  color: var(--text);
  font-size: 0.9rem;
}

.empty-state span {
  font-size: 0.78rem;
}

.quick-list {
  display: grid;
  gap: 4px;
  margin-top: 14px;
}

.quick-action {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 13px;
  transition: background 150ms ease;
}

.quick-action:hover {
  background: var(--surface-2);
}

.quick-icon,
.service-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--blue);
  background: var(--blue-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.quick-icon svg,
.service-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quick-action > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.quick-action strong,
.quick-action small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-action strong {
  font-size: 0.87rem;
}

.quick-action small {
  color: var(--muted);
  font-size: 0.72rem;
}

.quick-action .arrow {
  color: var(--muted);
}

.recent-section {
  padding-top: 54px;
}

.recent-list {
  display: flex;
  gap: 10px;
  padding: 16px 0 4px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.recent-item {
  min-width: 240px;
  max-width: 300px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.recent-item > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.recent-item strong,
.recent-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-item strong {
  font-size: 0.87rem;
}

.recent-item small {
  color: var(--muted);
  font-size: 0.7rem;
}

.services-section {
  padding-top: 102px;
  padding-bottom: 60px;
}

.section-heading {
  max-width: 690px;
}

.section-heading > h2 {
  margin-top: 8px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.section-heading > p:last-child {
  margin: 16px 0 0;
  color: var(--text-2);
  line-height: 1.65;
}

.inline-heading > div h2 {
  margin-top: 5px;
  font-size: 1.55rem;
}

.category-tabs {
  display: flex;
  gap: 8px;
  padding: 28px 0 18px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.category-tabs button {
  min-height: 42px;
  flex: 0 0 auto;
  padding: 0 15px;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
}

.category-tabs button:hover,
.category-tabs button.active {
  color: var(--text);
  background: var(--blue-soft);
  border-color: var(--blue);
}

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

.service-card {
  min-width: 0;
  min-height: 328px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
  transition: transform 180ms var(--ease), border-color 180ms ease, box-shadow 180ms ease;
}

.service-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.service-card[hidden] {
  display: none;
}

.service-card.featured {
  background:
    linear-gradient(145deg, var(--blue-soft), transparent 72%),
    var(--surface);
}

.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-card .service-icon {
  width: 50px;
  height: 50px;
  border-radius: 15px;
}

.service-card .service-icon svg {
  width: 24px;
  height: 24px;
}

.pin-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
}

.pin-button:hover {
  color: var(--text);
  background: var(--surface-2);
  border-color: var(--border);
}

.pin-button[aria-pressed="true"] {
  color: var(--brass);
  background: var(--brass-soft);
}

.pin-button svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
}

.service-eyebrow {
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.69rem;
}

.service-card h3 {
  margin: 7px 0 9px;
  font-size: 1.34rem;
  letter-spacing: -0.035em;
}

.service-card > p:not(.service-eyebrow) {
  margin: 0;
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.6;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 22px;
  color: var(--blue);
  font-size: 0.84rem;
  font-weight: 700;
}

.service-link:hover {
  color: var(--blue-strong);
}

.system-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 22px;
  margin-bottom: 92px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.system-strip > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-dot {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(123, 197, 166, 0.12);
}

.system-strip span:not(.status-dot) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.system-strip strong {
  font-size: 0.88rem;
}

.system-strip small {
  color: var(--muted);
  font-size: 0.76rem;
}

.system-strip a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 700;
}

.hub-footer {
  padding: 54px 0 24px;
  background: var(--header);
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) repeat(3, minmax(120px, 0.55fr));
  gap: 46px;
}

.footer-grid > div p {
  max-width: 330px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.55;
}

.footer-grid nav {
  display: grid;
  align-content: start;
  gap: 11px;
}

.footer-grid nav strong {
  margin-bottom: 3px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-grid nav a {
  color: var(--muted);
  font-size: 0.8rem;
}

.footer-grid nav a:hover,
.footer-bottom a:hover {
  color: var(--blue);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 25px;
  margin-top: 38px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
}

.mobile-nav {
  display: none;
}

.command-dialog {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  padding: 0;
  margin: 0;
  color: var(--text);
  background: rgba(15, 21, 26, 0.82);
  border: 0;
}

html[data-theme="light"] .command-dialog {
  background: rgba(25, 36, 43, 0.34);
}

.command-dialog::backdrop {
  background: transparent;
}

.command-shell {
  width: min(700px, calc(100% - 32px));
  max-height: min(650px, calc(100dvh - 80px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  margin: max(8vh, 38px) auto 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  box-shadow: var(--shadow-float);
}

.command-search {
  min-height: 68px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 0 14px 0 20px;
  border-bottom: 1px solid var(--border);
}

.command-search > svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--blue);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.command-search input {
  min-width: 0;
  height: 66px;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: none;
  font-size: 1.03rem;
}

.command-search input::placeholder {
  color: var(--muted);
}

.command-search button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  padding: 0;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 11px;
  cursor: pointer;
}

.command-search button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.command-results {
  min-height: 160px;
  padding: 10px;
  overflow-y: auto;
}

.command-group-label {
  padding: 12px 10px 6px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.command-result {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  color: var(--text);
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}

.command-result:hover,
.command-result.selected {
  background: var(--surface-2);
}

.command-result > span:nth-child(2) {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.command-result strong,
.command-result small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.command-result strong {
  font-size: 0.88rem;
}

.command-result small {
  color: var(--muted);
  font-size: 0.74rem;
}

.command-result > .arrow {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
}

.command-empty {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  color: var(--muted);
  text-align: center;
}

.command-empty strong {
  color: var(--text);
  font-size: 0.9rem;
}

.command-empty span {
  font-size: 0.78rem;
}

.command-footer {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 16px;
  color: var(--muted);
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  font-size: 0.69rem;
}

.command-footer span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.error-page {
  width: min(680px, calc(100% - 32px));
  min-height: 100dvh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  margin: 0 auto;
  text-align: center;
}

.error-page img {
  margin-bottom: 6px;
}

.error-page h1 {
  margin: 0;
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.error-page > p:not(.section-label) {
  max-width: 520px;
  margin: 0 0 8px;
  color: var(--text-2);
  line-height: 1.65;
}

@media (max-width: 960px) {
  .desktop-nav {
    display: none;
  }

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

  .quick-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

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

  .footer-grid {
    grid-template-columns: 1.3fr repeat(3, 0.7fr);
    gap: 24px;
  }
}

@media (max-width: 700px) {
  html {
    scroll-padding-top: 76px;
  }

  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  body::before {
    height: 520px;
    background: radial-gradient(circle at 70% 0%, rgba(120, 181, 206, 0.1), transparent 42%);
  }

  .hub-shell {
    width: min(100% - 28px, 1240px);
  }

  .header-inner {
    min-height: 68px;
    gap: 12px;
  }

  .hub-brand img {
    width: 38px;
    height: 38px;
  }

  .hub-brand span {
    font-size: 1rem;
  }

  .search-trigger {
    width: 44px;
    min-width: 44px;
    justify-content: center;
    padding: 0;
  }

  .search-trigger span,
  .search-trigger kbd,
  .header-login {
    display: none;
  }

  .hero {
    padding-top: 66px;
    padding-bottom: 34px;
  }

  .hero h1 {
    margin: 17px 0 17px;
    font-size: clamp(2.7rem, 13vw, 4.25rem);
    line-height: 1;
    letter-spacing: -0.065em;
  }

  .hero-copy > p:last-child {
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-search {
    min-height: 62px;
    margin-top: 28px;
    border-radius: 17px;
  }

  .hero-search span {
    font-size: 0.9rem;
  }

  .hero-search kbd {
    display: none;
  }

  .sign-in-callout {
    display: grid;
    gap: 14px;
  }

  .sign-in-callout > div:last-child {
    width: 100%;
  }

  .sign-in-callout .button {
    flex: 1;
  }

  .panel {
    padding: 18px;
  }

  .pinned-grid,
  .quick-list {
    grid-template-columns: 1fr;
  }

  .pinned-card {
    min-height: 82px;
  }

  .quick-action {
    min-height: 62px;
  }

  .recent-section {
    padding-top: 44px;
  }

  .services-section {
    padding-top: 76px;
    padding-bottom: 42px;
  }

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

  .service-card {
    min-height: 292px;
  }

  .category-tabs {
    margin-right: -14px;
    padding-right: 14px;
  }

  .system-strip {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 68px;
  }

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

  .footer-grid > div {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .mobile-nav {
    position: fixed;
    z-index: 90;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: calc(68px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: start;
    padding: 7px 8px env(safe-area-inset-bottom);
    background: var(--header);
    border-top: 1px solid var(--border-strong);
  }

  .mobile-nav a,
  .mobile-nav button {
    min-width: 0;
    min-height: 54px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    padding: 0;
    color: var(--muted);
    background: transparent;
    border: 0;
    border-radius: 13px;
    font-size: 0.68rem;
    font-weight: 600;
  }

  .mobile-nav a.active {
    color: var(--blue-strong);
    background: var(--blue-soft);
  }

  .mobile-nav svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .command-shell {
    width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .command-search {
    min-height: calc(68px + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
  }

  .command-footer {
    display: none;
  }
}

@media (max-width: 430px) {
  .hub-brand span {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 13vw, 3.55rem);
  }

  .eyebrow {
    font-size: 0.68rem;
  }

  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (forced-colors: active) {
  .service-card,
  .panel,
  .system-strip,
  .pinned-card,
  .quick-action,
  .command-shell {
    border: 1px solid CanvasText;
  }
}
