:root {
  --page-max: 1180px;
  --page-gutter: 28px;
  --font-ui: var(--type-font-family);
  --font-display: var(--type-font-display, var(--font-ui));
  --panel-shadow: var(--primitive-shadow-soft);
  --float-shadow: var(--primitive-shadow-float);
  --duration-fast: var(--primitive-duration-fast);
  --duration-normal: var(--primitive-duration-normal);
  --color-violet: var(--primitive-color-violet);
  --ease-standard: cubic-bezier(0.2, 0.75, 0.25, 1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-ui);
  font-size: 18px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--color-background);
  color: var(--color-foreground);
  line-height: var(--type-line-body);
}

button,
input,
select,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
}

button {
  color: inherit;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgb(0 85 255 / 0.24);
  outline-offset: 3px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

.app-shell {
  min-height: 100vh;
}

.view[hidden] {
  display: none;
}

.view {
  min-height: 100vh;
}

.panel {
  background: var(--color-surface);
  border: 1px solid rgb(226 232 241 / 0.9);
  border-radius: 22px;
  box-shadow: var(--panel-shadow);
}

.icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  vertical-align: middle;
}

[data-icon] {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
}

[data-icon] svg {
  display: block;
  width: 100%;
  height: 100%;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.status-dot,
.notification-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-success);
}

/* Login */
.login-view {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #eef4ff;
}

.login-backdrop {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(circle at 14% 72%, rgb(194 218 255 / 0.78) 0, rgb(194 218 255 / 0) 35%),
    linear-gradient(126deg, #f3f7ff 0%, #e9f1ff 52%, #f8fbff 100%);
}

.login-backdrop::after {
  position: absolute;
  right: -10vw;
  bottom: -32vh;
  width: 72vw;
  height: 62vh;
  border: 1px solid rgb(255 255 255 / 0.8);
  border-radius: 50% 50% 0 0;
  box-shadow: 0 -26px 0 rgb(255 255 255 / 0.35), 0 -54px 0 rgb(255 255 255 / 0.18);
  content: "";
  transform: rotate(-8deg);
}

.login-layout {
  display: grid;
  width: min(1180px, calc(100% - 56px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 64px 0;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: clamp(48px, 8vw, 120px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.brand-button {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 14px rgb(0 85 255 / 0.18);
}

.brand-lockup--large .brand-mark {
  width: 64px;
  height: 64px;
  border-radius: 18px;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
}

.brand-wordmark strong {
  color: var(--color-foreground);
  font-size: 1.06rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.brand-lockup--large .brand-wordmark strong {
  font-size: 1.38rem;
  letter-spacing: -0.045em;
}

.brand-lockup--large .brand-wordmark span {
  font-size: 0.84rem;
  letter-spacing: 0.06em;
}

.brand-wordmark span {
  color: var(--color-muted-foreground);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.story-copy {
  max-width: 620px;
  margin-top: 88px;
}

.story-copy h1 {
  max-width: 620px;
  margin: 0;
  color: var(--color-foreground);
  font-size: clamp(2.8rem, 4.8vw, 4.35rem);
  font-weight: 720;
  letter-spacing: -0.018em;
  line-height: 1.16;
}

.story-copy h1 em {
  color: var(--color-primary);
  font-style: normal;
}

.headline-line {
  display: block;
  white-space: nowrap;
}

.story-copy > p:last-child {
  max-width: 500px;
  margin: 28px 0 0;
  color: var(--color-muted-foreground);
  font-size: 1.06rem;
}

.login-method-tabs {
  display: flex;
  margin: 2px 0 18px;
  padding: 3px;
  border-radius: 10px;
  background: var(--color-primary-soft);
  gap: 3px;
}

.login-method-tab {
  flex: 1;
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--color-muted-foreground);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 650;
  transition: background-color var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard);
}

.login-method-tab.is-active {
  background: var(--color-surface);
  box-shadow: 0 2px 7px rgb(32 66 125 / 0.1);
  color: var(--color-foreground);
}

.login-method-panel[hidden] {
  display: none;
}

.password-input-wrap {
  position: relative;
}

.password-input-wrap .text-input {
  padding-right: 48px;
}

.field-icon-button {
  position: absolute;
  top: 50%;
  right: 8px;
  display: inline-flex;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--color-muted-foreground);
  cursor: pointer;
  transform: translateY(-50%);
}

.field-icon-button:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.password-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.remember-line {
  margin: 7px 0 6px;
}

.helper-link {
  color: var(--color-primary);
  font-size: 0.78rem;
  text-decoration: none;
}

.helper-link:hover {
  text-decoration: underline;
}

.story-index {
  display: flex;
  margin-top: 64px;
  gap: 28px;
  color: var(--color-muted-foreground);
  font-size: 0.86rem;
}

.story-index span {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.story-index b {
  color: var(--color-primary);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.login-card {
  padding: 34px;
}

.login-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.login-card h2 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 750;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.secure-mark {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 11px;
  color: var(--color-primary);
}

.login-lead {
  margin: 10px 0 28px;
  color: var(--color-muted-foreground);
  font-size: 0.92rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.field-label {
  display: block;
  margin-bottom: 5px;
  color: var(--color-foreground);
  font-size: 0.78rem;
  font-weight: 650;
}

.text-input,
.search-input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: 11px;
  outline: 0;
  background: var(--color-surface);
  color: var(--color-foreground);
  transition: border-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard);
}

.text-input::placeholder,
.search-input::placeholder {
  color: #9aa7ba;
}

.text-input:hover,
.search-input:hover {
  border-color: #b6c5dc;
}

.text-input:focus,
.search-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgb(0 85 255 / 0.12);
}

.field-row--code {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.text-button {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: 11px;
  background: transparent;
  color: var(--color-primary);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 650;
  white-space: nowrap;
}

.text-button:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
}

.check-line {
  display: flex;
  margin: 9px 0 8px;
  gap: 8px;
  align-items: flex-start;
  color: var(--color-muted-foreground);
  font-size: 0.78rem;
}

.check-line input {
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--color-primary);
}

.user-product-picker {
  min-width: 0;
  margin: 4px 0 2px;
  padding: 0;
  border: 0;
}

.user-product-picker legend {
  margin-bottom: 8px;
  color: var(--color-foreground);
  font-size: 0.78rem;
  font-weight: 700;
}

.user-product-picker-head {
  display: flex;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #dce5ef;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f7faff;
  color: #4c617d;
  font-size: 0.72rem;
  font-weight: 700;
}

.user-product-picker-actions {
  display: inline-flex;
  gap: 4px;
}

.user-product-picker-actions button {
  min-height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #147fa0;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 700;
}

.user-product-picker-actions button:hover {
  background: #e7f5f8;
}

.user-product-options {
  display: grid;
  padding: 10px;
  border: 1px solid #dce5ef;
  border-radius: 0 0 10px 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  background: #fff;
}

.user-product-option {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 66px;
  padding: 10px 38px 10px 10px;
  border: 1px solid #dce5ef;
  border-radius: 9px;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  background: #fff;
  cursor: pointer;
  transition: border-color 140ms ease-out, background-color 140ms ease-out, box-shadow 140ms ease-out;
}

.user-product-option:hover {
  border-color: #96bfd0;
  background: #fbfdff;
}

.user-product-option:has(input:checked) {
  border-color: #47a2b8;
  background: #f0fafb;
  box-shadow: inset 0 0 0 1px rgb(20 127 160 / 0.08);
}

.user-product-option:focus-within {
  outline: 3px solid rgb(20 127 160 / 0.16);
  outline-offset: 1px;
}

.user-product-option > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.user-product-option > img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  object-fit: cover;
}

.user-product-option > span:last-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.user-product-option strong {
  color: #213753;
  font-size: 0.76rem;
  line-height: 1.25;
}

.user-product-option small {
  overflow: hidden;
  color: #77879a;
  font-size: 0.62rem;
  font-weight: 500;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-product-check {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 20px;
  height: 20px;
  border: 1px solid #c7d3df;
  border-radius: 6px;
  place-items: center;
  background: #fff;
  color: transparent;
}

.user-product-check .icon {
  width: 13px;
  height: 13px;
}

.user-product-option input:checked + .user-product-check {
  border-color: #147fa0;
  background: #147fa0;
  color: #fff;
}

@media (max-width: 620px) {
  .user-product-options {
    grid-template-columns: 1fr;
  }
}

.primary-button {
  display: inline-flex;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 11px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--button-primary-bg);
  color: var(--button-primary-fg);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  transition: background-color var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard);
}

.primary-button:hover {
  background: var(--button-primary-hover-bg);
  box-shadow: 0 8px 18px rgb(0 85 255 / 0.18);
  transform: translateY(-1px);
}

.primary-button:active {
  transform: translateY(0);
}

.primary-button--wide {
  width: 100%;
}

.secondary-button,
.quiet-button {
  display: inline-flex;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: var(--color-surface);
  color: var(--color-foreground);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 650;
  transition: border-color var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard);
}

.secondary-button:hover,
.quiet-button:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
}

.quiet-button {
  min-height: 36px;
  border-color: transparent;
  background: transparent;
  color: var(--color-primary);
}

.login-footnote {
  display: flex;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
  gap: 8px;
  align-items: center;
  color: var(--color-muted-foreground);
  font-size: 0.72rem;
}

/* Shared portal chrome */
.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgb(226 232 241 / 0.9);
  background: rgb(248 250 253 / 0.92);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  display: flex;
  width: min(var(--page-max), calc(100% - (var(--page-gutter) * 2)));
  min-height: 72px;
  margin: 0 auto;
  align-items: center;
  gap: 36px;
}

.main-nav {
  display: flex;
  height: 72px;
  gap: 26px;
  align-items: center;
}

.nav-item {
  position: relative;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-muted-foreground);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 650;
}

.nav-item::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: transparent;
  content: "";
}

.nav-item:hover,
.nav-item.is-active {
  color: var(--color-primary);
}

.nav-item.is-active::after {
  background: var(--color-primary);
}

.topbar-actions {
  display: flex;
  margin-left: auto;
  gap: 10px;
  align-items: center;
}

.header-search {
  display: flex;
  min-width: 220px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  align-items: center;
  gap: 8px;
  background: var(--color-surface);
  color: var(--color-muted-foreground);
  transition: border-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-fast) var(--ease-standard);
}

.header-search:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgb(0 85 255 / 0.1);
}

.header-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--color-foreground);
  font-size: 0.84rem;
}

.header-search kbd {
  padding: 2px 5px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  color: var(--color-muted-foreground);
  font-size: 0.65rem;
  white-space: nowrap;
}

.icon-button {
  position: relative;
  display: inline-flex;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--color-muted-foreground);
  cursor: pointer;
}

.icon-button:hover {
  border-color: var(--color-border);
  background: var(--color-surface);
  color: var(--color-primary);
}

.notification-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 5px;
  height: 5px;
  border: 1px solid var(--color-background);
}

.profile-menu-wrap {
  position: relative;
}

.profile-button {
  display: inline-flex;
  min-height: 38px;
  padding: 3px 8px 3px 4px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  align-items: center;
  gap: 7px;
  background: var(--color-surface);
  color: var(--color-foreground);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 650;
}

.profile-button:hover {
  border-color: var(--color-primary);
}

.avatar {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: var(--color-surface);
  font-size: 0.78rem;
  font-weight: 750;
}

.avatar--small {
  width: 32px;
  height: 32px;
}

.profile-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 10px);
  right: 0;
  width: 214px;
  padding: 8px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-surface);
  box-shadow: var(--float-shadow);
}

.profile-menu[hidden] {
  display: none;
}

.profile-menu-head {
  display: flex;
  padding: 10px;
  border-bottom: 1px solid var(--color-border);
  gap: 9px;
  align-items: center;
}

.profile-menu-head div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.profile-menu-head strong {
  font-size: 0.8rem;
}

.profile-menu-head span:last-child {
  color: var(--color-muted-foreground);
  font-size: 0.68rem;
}

.menu-action {
  display: flex;
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--color-foreground);
  cursor: pointer;
  font-size: 0.78rem;
  text-align: left;
}

.menu-action:hover {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.menu-action--muted {
  color: var(--color-muted-foreground);
}

.portal-content {
  width: min(var(--page-max), calc(100% - (var(--page-gutter) * 2)));
  margin: 0 auto;
  padding: 42px 0 68px;
}

.site-footer {
  display: flex;
  width: min(var(--page-max), calc(100% - (var(--page-gutter) * 2)));
  margin: 0 auto;
  padding: 22px 0 36px;
  border-top: 1px solid var(--color-border);
  justify-content: space-between;
  color: var(--color-muted-foreground);
  font-size: 0.74rem;
}

/* Portal home */
.home-hero {
  display: grid;
  min-height: 300px;
  padding: 32px 38px;
  border: 1px solid var(--color-border);
  border-radius: 22px;
  align-items: center;
  background: var(--color-surface-subtle);
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.78fr);
  gap: 36px;
  overflow: hidden;
}

.home-hero h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(2.15rem, 4vw, 3.6rem);
  font-weight: 780;
  letter-spacing: -0.018em;
  line-height: 1.18;
}

.home-hero h1 .headline-line + .headline-line {
  display: block;
  margin-top: 7px;
  color: var(--color-primary);
  letter-spacing: -0.018em;
}

.home-hero h1 .headline-line:first-child {
  color: var(--color-foreground);
}

.home-hero h1 .headline-line {
  white-space: nowrap;
}

.home-hero p {
  max-width: 520px;
  margin: 18px 0 0;
  color: var(--color-muted-foreground);
  font-size: 0.98rem;
}

.home-search {
  display: flex;
  max-width: 590px;
  min-height: 54px;
  margin-top: 28px;
  padding: 5px 5px 5px 16px;
  border: 1px solid rgb(197 215 247 / 0.9);
  border-radius: 14px;
  align-items: center;
  gap: 10px;
  background: var(--color-surface);
  box-shadow: 0 6px 22px rgb(31 77 160 / 0.08);
}

.home-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--color-foreground);
  font-size: 0.9rem;
}

.home-search .primary-button {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.search-cta {
  white-space: nowrap;
}

.hero-note {
  display: flex;
  margin-top: 16px;
  gap: 8px;
  align-items: center;
  color: var(--color-muted-foreground);
  font-size: 0.75rem;
}

.hero-note .status-dot {
  width: 6px;
  height: 6px;
}

.hero-docket {
  position: relative;
  isolation: isolate;
  min-height: 240px;
  padding: 24px;
  border: 1px solid rgb(209 223 250 / 0.9);
  border-radius: 18px;
  background: rgb(255 255 255 / 0.7);
}

.hero-docket > * {
  position: relative;
  z-index: 1;
}

.hero-docket .event-badge {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: 0.68rem;
  font-weight: 700;
}

.event-card-body {
  display: grid;
  margin-top: 16px;
  grid-template-columns: minmax(116px, 0.78fr) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.event-poster {
  aspect-ratio: 16 / 9;
  border-radius: 11px;
  background: var(--color-primary-soft);
  overflow: hidden;
}

.hero-ai-visual {
  position: absolute;
  right: -120px;
  bottom: -150px;
  z-index: 0;
  width: 360px;
  opacity: 0.34;
  pointer-events: none;
}

.event-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-copy h2 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.035em;
}

.event-copy p {
  margin: 7px 0 2px;
  font-size: 0.74rem;
  line-height: 1.55;
}

.event-copy .quiet-button {
  min-height: 31px;
  padding: 0;
  font-size: 0.72rem;
}

.poster-format {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  color: var(--color-muted-foreground);
  font-size: 0.67rem;
}

.hero-docket::after {
  position: absolute;
  right: -34px;
  bottom: -70px;
  width: 210px;
  height: 210px;
  border: 1px solid rgb(201 220 255 / 0.72);
  border-radius: 50%;
  box-shadow: 0 0 0 20px rgb(211 227 255 / 0.2), 0 0 0 42px rgb(211 227 255 / 0.12);
  content: "";
  pointer-events: none;
  z-index: 0;
}

.docket-kicker {
  display: flex;
  justify-content: space-between;
  color: var(--color-muted-foreground);
  font-size: 0.74rem;
}

.docket-kicker span:first-child {
  display: flex;
  gap: 7px;
  align-items: center;
}

.docket-kicker .status-dot {
  width: 7px;
  height: 7px;
}

.hero-docket h2 {
  max-width: 220px;
  margin: 22px 0 8px;
  font-size: 1.68rem;
  letter-spacing: -0.018em;
  line-height: 1.15;
}

.hero-docket p {
  max-width: 250px;
  margin: 0;
  font-size: 0.8rem;
}

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

.docket-list li {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--color-foreground);
  font-size: 0.78rem;
}

.docket-list li::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-primary);
  content: "";
}

.section-block {
  margin-top: 44px;
}

.section-heading {
  display: flex;
  margin-bottom: 20px;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.38rem;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.section-heading p {
  margin: 5px 0 0;
  color: var(--color-muted-foreground);
  font-size: 0.78rem;
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.product-item {
  display: flex;
  min-height: 148px;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: 15px;
  align-items: flex-start;
  gap: 14px;
  background: var(--color-surface);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--duration-normal) var(--ease-standard), box-shadow var(--duration-normal) var(--ease-standard), transform var(--duration-normal) var(--ease-standard);
}

.product-item:hover {
  border-color: #b4c9ed;
  box-shadow: var(--panel-shadow);
  transform: translateY(-2px);
}

.product-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  object-fit: contain;
}

.product-item-body {
  min-width: 0;
}

.product-item-top {
  display: flex;
  margin-bottom: 10px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.product-item h3 {
  margin: 0;
  font-size: 0.98rem;
}

.product-count {
  color: var(--color-muted-foreground);
  font-size: 0.68rem;
  white-space: nowrap;
}

.product-item p {
  margin: 0;
  color: var(--color-muted-foreground);
  font-size: 0.78rem;
  line-height: 1.55;
}

.home-products-panel .product-grid {
  padding: 14px 18px 18px;
  gap: 10px;
}

.home-products-panel .product-item {
  min-height: 126px;
  padding: 16px;
  border-radius: 12px;
}

.home-updates-panel {
  min-width: 0;
}

.product-update-board {
  display: grid;
  padding: 6px 20px 16px;
  gap: 12px;
}

.product-update-group {
  padding: 10px 0 2px;
  border-bottom: 1px solid var(--color-border);
}

.product-update-group:last-child {
  border-bottom: 0;
}

.product-update-group-head,
.product-update-identity,
.product-update-row {
  display: flex;
  align-items: center;
}

.product-update-group-head {
  justify-content: space-between;
  gap: 12px;
}

.product-update-identity {
  min-width: 0;
  gap: 9px;
}

.product-update-identity img {
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.product-update-identity span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.product-update-identity strong {
  font-size: 0.78rem;
}

.product-update-identity small,
.product-update-empty {
  color: var(--color-muted-foreground);
  font-size: 0.68rem;
}

.mini-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-primary);
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 700;
}

.product-update-list {
  display: grid;
  margin: 6px 0 0 36px;
  padding: 0;
  list-style: none;
}

.product-update-row {
  width: 100%;
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  gap: 9px;
  text-align: left;
}

.product-update-version {
  color: var(--color-primary);
  font-size: 0.66rem;
  font-weight: 750;
  white-space: nowrap;
}

.product-update-title {
  min-width: 0;
  overflow: hidden;
  color: var(--color-foreground);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-update-row [data-icon] {
  margin-left: auto;
  color: var(--color-muted-foreground);
}

.product-update-row:hover .product-update-title {
  color: var(--color-primary);
}

.content-panel {
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: var(--color-surface);
  overflow: hidden;
}

.content-panel-head {
  display: flex;
  min-height: 70px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--color-border);
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.content-panel-head h3 {
  margin: 0;
  font-size: 0.98rem;
}

.content-panel-head p {
  margin: 3px 0 0;
  color: var(--color-muted-foreground);
  font-size: 0.72rem;
}

.timeline-list {
  display: grid;
  margin: 0;
  padding: 8px 20px 14px;
  list-style: none;
}

.timeline-row {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  min-height: 72px;
  padding: 14px 0 14px 16px;
  border-bottom: 1px solid var(--color-border);
  align-items: center;
  gap: 14px;
  cursor: pointer;
}

.timeline-row:last-child {
  border-bottom: 0;
}

.timeline-row::before {
  position: absolute;
  left: 0;
  width: 7px;
  height: 7px;
  border: 2px solid var(--color-surface);
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
  content: "";
}

.timeline-row:hover .row-title {
  color: var(--color-primary);
}

.row-date {
  color: var(--color-muted-foreground);
  font-size: 0.7rem;
  line-height: 1.35;
}

.row-date strong {
  display: block;
  margin-top: 2px;
  color: var(--color-foreground);
  font-size: 0.74rem;
}

.row-title {
  display: block;
  color: var(--color-foreground);
  font-size: 0.82rem;
  font-weight: 700;
  transition: color var(--duration-fast) var(--ease-standard);
}

.row-meta {
  display: block;
  margin-top: 3px;
  color: var(--color-muted-foreground);
  font-size: 0.7rem;
}

.row-type {
  color: var(--color-primary);
  font-size: 0.7rem;
  white-space: nowrap;
}

.tutorial-list,
.case-list {
  display: grid;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: var(--color-surface);
  overflow: hidden;
}

.tutorial-row,
.case-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  min-height: 82px;
  padding: 13px 18px;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  align-items: center;
  gap: 16px;
  background: var(--color-surface);
  cursor: pointer;
  text-align: left;
  transition: background-color var(--duration-fast) var(--ease-standard);
}

.tutorial-row:last-child,
.case-row:last-child {
  border-bottom: 0;
}

.tutorial-row:hover,
.case-row:hover {
  background: #fbfcff;
}

.media-thumb {
  position: relative;
  display: flex;
  width: 78px;
  height: 50px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  background: #e8efff;
  color: var(--color-primary);
  overflow: hidden;
}

.media-thumb::after {
  position: absolute;
  right: -12px;
  bottom: -19px;
  width: 54px;
  height: 54px;
  border: 1px solid rgb(0 85 255 / 0.14);
  border-radius: 50%;
  content: "";
}

.media-thumb img {
  position: relative;
  z-index: 1;
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.media-thumb .duration {
  position: absolute;
  right: 6px;
  bottom: 4px;
  z-index: 2;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgb(27 38 59 / 0.72);
  color: var(--color-surface);
  font-size: 0.6rem;
}

.list-title {
  display: block;
  color: var(--color-foreground);
  font-size: 0.86rem;
  font-weight: 700;
}

.list-summary {
  display: block;
  margin-top: 4px;
  color: var(--color-muted-foreground);
  font-size: 0.74rem;
  line-height: 1.45;
}

.list-meta {
  display: flex;
  margin-top: 6px;
  gap: 8px;
  align-items: center;
  color: var(--color-muted-foreground);
  font-size: 0.68rem;
}

.list-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--color-primary);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.case-row {
  grid-template-columns: 126px minmax(0, 1fr) auto;
}

.case-mark {
  display: flex;
  width: 126px;
  min-height: 66px;
  padding: 9px 12px;
  border-radius: 10px;
  align-items: center;
  background: #f1f4f9;
  color: var(--color-foreground);
  font-size: 0.8rem;
  font-weight: 750;
}

.metric-note {
  color: var(--color-success);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

/* Listing pages */
.page-intro {
  display: flex;
  margin-bottom: 28px;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.page-intro h1 {
  margin: 0;
  font-size: 2.3rem;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.page-intro p {
  max-width: 520px;
  margin: 8px 0 0;
  color: var(--color-muted-foreground);
  font-size: 0.9rem;
}

.page-intro-aside {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--color-muted-foreground);
  font-size: 0.75rem;
}

.filter-bar {
  display: flex;
  margin-bottom: 18px;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.update-product-tabs {
  display: flex;
  margin-bottom: 22px;
  gap: 8px;
  flex-wrap: wrap;
}

.update-product-tabs .filter-chip {
  gap: 7px;
}

.update-product-tabs .filter-chip img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.filter-chip {
  display: inline-flex;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  align-items: center;
  background: var(--color-surface);
  color: var(--color-muted-foreground);
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 650;
}

.filter-chip:hover,
.filter-chip.is-active {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.list-toolbar {
  display: flex;
  margin-bottom: 18px;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.result-count {
  color: var(--color-muted-foreground);
  font-size: 0.76rem;
}

.inline-search {
  display: flex;
  width: min(330px, 100%);
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  align-items: center;
  gap: 8px;
  background: var(--color-surface);
}

.inline-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--color-foreground);
  font-size: 0.8rem;
}

.tutorial-layout {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.tutorial-sidebar {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 112px);
  padding: 16px 12px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: var(--color-surface);
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.tutorial-sidebar-title {
  padding: 0 10px 10px;
  color: var(--color-muted-foreground);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.06em;
}

.tutorial-nav-product {
  margin-top: 7px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--color-border);
}

.tutorial-nav-product:last-child {
  border-bottom: 0;
}

.tutorial-product-link {
  display: grid;
  width: 100%;
  min-height: 48px;
  padding: 7px 9px;
  border: 0;
  border-radius: 9px;
  grid-template-columns: 28px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--color-foreground);
  cursor: pointer;
  text-align: left;
}

.tutorial-nav-product.is-active .tutorial-product-link {
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.tutorial-product-link img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.tutorial-product-link span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.tutorial-product-link strong {
  overflow: hidden;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tutorial-product-link small {
  overflow: hidden;
  color: var(--color-muted-foreground);
  font-size: 0.62rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-chevron {
  color: var(--color-muted-foreground);
}

.tutorial-nav-sections {
  display: grid;
  margin: 5px 0 4px 8px;
  gap: 1px;
}

.tutorial-nav-section {
  display: flex;
  width: 100%;
  min-height: 32px;
  padding: 0 8px 0 12px;
  border: 0;
  border-left: 2px solid transparent;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  color: var(--color-muted-foreground);
  cursor: pointer;
  font-size: 0.72rem;
  text-align: left;
}

.tutorial-nav-section--level-1 {
  min-height: 34px;
  border-radius: 8px;
  color: var(--color-foreground);
  font-weight: 650;
}

.tutorial-nav-section--level-2 {
  min-height: 30px;
  padding-left: 20px;
  font-size: 0.69rem;
}

.tutorial-nav-children {
  display: grid;
  margin: 1px 0 2px 12px;
  border-left: 1px solid var(--color-border);
  gap: 1px;
}

.nav-group-caret {
  display: inline-flex;
  width: 14px;
  height: 14px;
  align-items: center;
  justify-content: center;
  color: var(--color-muted-foreground);
  transition: transform var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard);
}

.nav-group-caret.is-collapsed {
  transform: rotate(-90deg);
}

.nav-group-caret .icon {
  width: 13px;
  height: 13px;
}

.tutorial-nav-section:hover,
.tutorial-nav-section.is-active {
  border-left-color: var(--color-primary);
  color: var(--color-primary);
}

.tutorial-nav-section--level-1.is-active {
  border-left-color: transparent;
  background: var(--color-primary-soft);
}

.tutorial-main {
  min-width: 0;
}

.tutorial-context {
  display: flex;
  margin-bottom: 22px;
  padding: 18px 20px;
  border: 1px solid var(--color-border);
  border-radius: 15px;
  align-items: center;
  gap: 13px;
  background: var(--color-surface);
}

.tutorial-context > img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.tutorial-context > div,
.update-product-group-page-head > div {
  min-width: 0;
}

.tutorial-context h2 {
  margin: 0;
  font-size: 1.16rem;
  letter-spacing: -0.03em;
}

.tutorial-context p {
  margin: 4px 0 0;
  color: var(--color-muted-foreground);
  font-size: 0.76rem;
}

.empty-content {
  display: grid;
  min-height: 150px;
  padding: 30px 24px;
  align-content: center;
  justify-items: center;
  gap: 8px;
  color: var(--color-muted-foreground);
  text-align: center;
}

.empty-content strong {
  color: var(--color-foreground);
  font-size: 0.88rem;
}

.empty-content span {
  font-size: 0.76rem;
}

.update-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
}

.update-product-groups {
  display: grid;
  gap: 16px;
}

.update-product-group-page {
  padding: 20px 24px 8px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: var(--color-surface);
}

.update-product-group-page-head {
  display: flex;
  margin-bottom: 8px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.update-product-group-page-head > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.update-product-group-page-head img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.update-product-group-page-head .eyebrow {
  margin-bottom: 2px;
  font-size: 0.66rem;
}

.update-product-group-page-head h2 {
  margin: 0;
  font-size: 1rem;
}

.update-product-group-page-head > span {
  color: var(--color-muted-foreground);
  font-size: 0.7rem;
  white-space: nowrap;
}

.update-timeline {
  position: relative;
  padding-left: 36px;
}

.update-timeline::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 8px;
  width: 1px;
  background: var(--color-border);
  content: "";
}

.update-entry {
  position: relative;
  padding: 0 0 30px;
}

.update-entry::before {
  position: absolute;
  top: 4px;
  left: -32px;
  width: 9px;
  height: 9px;
  border: 3px solid var(--color-background);
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
  content: "";
}

.update-entry-head {
  display: flex;
  margin-bottom: 10px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.update-entry-date {
  color: var(--color-muted-foreground);
  font-size: 0.74rem;
}

.version-badge,
.status-badge,
.tag {
  display: inline-flex;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 6px;
  align-items: center;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: 0.67rem;
  font-weight: 700;
}

.update-entry h2 {
  margin: 0;
  font-size: 1.06rem;
  letter-spacing: -0.03em;
}

.update-entry h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.update-entry p {
  max-width: 680px;
  margin: 7px 0 0;
  color: var(--color-muted-foreground);
  font-size: 0.82rem;
}

.update-entry-actions {
  display: flex;
  margin-top: 13px;
  gap: 10px;
  align-items: center;
}

.updates-side {
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: var(--color-surface);
}

.updates-side h3 {
  margin: 0;
  font-size: 0.92rem;
}

.updates-side p {
  margin: 7px 0 18px;
  color: var(--color-muted-foreground);
  font-size: 0.76rem;
}

.update-side-link {
  display: flex;
  width: 100%;
  min-height: 42px;
  padding: 0 4px;
  border: 0;
  border-top: 1px solid var(--color-border);
  align-items: center;
  justify-content: space-between;
  background: transparent;
  color: var(--color-foreground);
  cursor: pointer;
  font-size: 0.76rem;
  text-align: left;
}

.update-side-link > span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.update-side-link img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.update-side-link strong {
  color: var(--color-muted-foreground);
  font-size: 0.72rem;
}

.update-side-link.is-active,
.update-side-link:hover {
  color: var(--color-primary);
}

.update-side-link + .secondary-button {
  width: 100%;
  margin-top: 15px;
}

.side-stat {
  display: flex;
  padding: 13px 0;
  border-top: 1px solid var(--color-border);
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
}

.side-stat strong {
  font-size: 1.15rem;
}

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

.case-card {
  display: flex;
  min-height: 208px;
  padding: 22px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  flex-direction: column;
  justify-content: space-between;
  background: var(--color-surface);
  cursor: pointer;
  transition: border-color var(--duration-normal) var(--ease-standard), box-shadow var(--duration-normal) var(--ease-standard), transform var(--duration-normal) var(--ease-standard);
}

.case-card:hover {
  border-color: #b4c9ed;
  box-shadow: var(--panel-shadow);
  transform: translateY(-2px);
}

.case-card-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.case-card h2 {
  margin: 22px 0 0;
  font-size: 1.16rem;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.case-card p {
  margin: 6px 0 0;
  color: var(--color-muted-foreground);
  font-size: 0.78rem;
}

.case-card-foot {
  display: flex;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Admin */
.admin-view {
  background: #f4f7fc;
}

.admin-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 224px minmax(0, 1fr);
}

.admin-sidebar {
  display: flex;
  padding: 24px 14px 18px;
  border-right: 1px solid var(--color-border);
  flex-direction: column;
  background: #edf3ff;
}

.admin-brand {
  display: flex;
  margin: 0 8px 36px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.admin-brand .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.preview-pill {
  padding: 3px 6px;
  border-radius: 4px;
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: 0.64rem;
  font-weight: 750;
}

.admin-section-label {
  margin: 0 10px 10px;
  color: var(--color-muted-foreground);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.admin-nav {
  display: grid;
  gap: 3px;
}

.admin-nav-item {
  display: flex;
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  align-items: center;
  gap: 9px;
  background: transparent;
  color: var(--color-muted-foreground);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 650;
  text-align: left;
}

.admin-nav-item span:last-child {
  margin-left: auto;
  color: #8d9ab0;
  font-size: 0.68rem;
}

.admin-nav-item:hover,
.admin-nav-item.is-active {
  background: var(--color-surface);
  color: var(--color-primary);
}

.admin-nav-copy {
  display: grid;
  min-width: 0;
  margin-left: 0;
  gap: 2px;
}

.admin-nav-copy strong {
  color: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

.admin-nav-copy small {
  color: #7d8aa0;
  font-size: 0.65rem;
  font-weight: 500;
  line-height: 1.2;
}

.admin-nav-item > span:not(.admin-nav-copy):last-child {
  margin-left: auto;
}

.admin-section-label--secondary {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgb(207 220 242 / 0.9);
}

.admin-sidebar-bottom {
  display: grid;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgb(207 220 242 / 0.9);
  gap: 3px;
}

.admin-main {
  min-width: 0;
}

.admin-topbar {
  display: flex;
  min-height: 72px;
  padding: 0 34px;
  border-bottom: 1px solid var(--color-border);
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgb(248 250 253 / 0.95);
}

.admin-breadcrumb {
  color: var(--color-muted-foreground);
  font-size: 0.78rem;
}

.admin-topbar strong {
  font-size: 0.9rem;
}

.admin-top-actions {
  display: flex;
  gap: 18px;
  align-items: center;
}

.saved-state {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  color: var(--color-success);
  font-size: 0.72rem;
}

.admin-content {
  width: min(1080px, calc(100% - 68px));
  margin: 0 auto;
  padding: 40px 0 74px;
}

.admin-page-head {
  display: flex;
  margin-bottom: 30px;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.admin-page-head h1 {
  margin: 0;
  font-size: 1.95rem;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.admin-page-head p {
  margin: 7px 0 0;
  color: var(--color-muted-foreground);
  font-size: 0.82rem;
}

.admin-stats {
  display: grid;
  margin-bottom: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-stat {
  padding: 18px 20px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-surface);
}

.admin-stat span {
  display: block;
  color: var(--color-muted-foreground);
  font-size: 0.72rem;
}

.admin-stat strong {
  display: block;
  margin-top: 7px;
  font-size: 1.65rem;
  letter-spacing: -0.04em;
}

.admin-stat small {
  display: block;
  margin-top: 5px;
  color: var(--color-muted-foreground);
  font-size: 0.68rem;
}

.admin-stat--accent {
  border-color: rgb(47 114 245 / 0.24);
  background: linear-gradient(145deg, #eff5ff 0%, #fff 82%);
}

.page-map-panel {
  margin-bottom: 16px;
}

/* The admin home mirrors the customer homepage so publishing decisions stay concrete. */
.admin-front-preview {
  margin-bottom: 16px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: var(--color-surface);
  box-shadow: 0 10px 30px rgb(40 67 110 / 0.05);
  overflow: hidden;
}

.admin-front-preview-head {
  display: flex;
  padding: 22px 24px 18px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--color-border);
}

.admin-preview-kicker,
.admin-preview-label {
  display: block;
  color: var(--color-primary);
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.04em;
}

.admin-front-preview-head h2 {
  margin: 8px 0 5px;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
}

.admin-front-preview-head p {
  margin: 0;
  color: var(--color-muted-foreground);
  font-size: 0.76rem;
}

.admin-preview-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--color-muted-foreground);
  font-size: 0.7rem;
  white-space: nowrap;
}

.admin-front-hero-preview {
  display: grid;
  padding: 18px 24px 22px;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 18px;
  background: linear-gradient(135deg, #f5f8ff 0%, #fff 58%);
}

.admin-front-hero-copy {
  display: flex;
  min-height: 208px;
  padding: 20px;
  border: 1px solid rgb(47 114 245 / 0.14);
  border-radius: 13px;
  flex-direction: column;
  justify-content: center;
  background: rgb(255 255 255 / 0.82);
}

.admin-front-hero-copy h3 {
  margin: 12px 0 4px;
  font-size: clamp(1.45rem, 3vw, 2.05rem);
  letter-spacing: -0.04em;
}

.admin-front-hero-copy strong {
  color: var(--color-primary);
  font-size: 1rem;
}

.admin-front-hero-copy p {
  max-width: 46ch;
  margin: 12px 0 0;
  color: var(--color-muted-foreground);
  font-size: 0.78rem;
  line-height: 1.65;
}

.admin-front-actions {
  margin-top: 16px;
}

.admin-front-hero-rail {
  display: grid;
  min-width: 0;
  grid-template-rows: 1fr auto;
  gap: 10px;
}

.admin-front-tutorial-preview,
.admin-front-event-preview {
  display: flex;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: #fff;
  color: var(--color-foreground);
  text-align: left;
}

.admin-front-tutorial-preview strong {
  display: block;
  margin-top: 10px;
  overflow: hidden;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-front-tutorial-preview > span:last-child {
  margin-top: 5px;
  color: var(--color-muted-foreground);
  font-size: 0.72rem;
}

.admin-front-event-preview {
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.admin-front-event-preview:hover {
  border-color: rgb(47 114 245 / 0.32);
  background: #f8fbff;
  transform: translateY(-1px);
}

.admin-front-event-content {
  display: grid;
  width: 100%;
  margin-top: 10px;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
}

.admin-front-event-content img {
  width: 76px;
  height: 47px;
  border-radius: 7px;
  object-fit: cover;
}

.admin-front-event-content strong,
.admin-front-event-content small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-front-event-content strong {
  font-size: 0.84rem;
}

.admin-front-event-content small {
  margin-top: 4px;
  color: var(--color-muted-foreground);
  font-size: 0.68rem;
}

.admin-front-section-list {
  display: grid;
  gap: 10px;
  padding: 18px 24px 24px;
}

.admin-front-section-preview {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--color-border);
}

.admin-front-section-index {
  color: #9da8ba;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.admin-front-section-body {
  min-width: 0;
}

.admin-front-section-head,
.admin-front-section-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.admin-front-section-head h3 {
  margin: 6px 0 0;
  font-size: 1rem;
}

.admin-front-section-count {
  color: var(--color-muted-foreground);
  font-size: 0.68rem;
  white-space: nowrap;
}

.admin-front-section-body > p {
  max-width: 75ch;
  margin: 9px 0 13px;
  color: var(--color-muted-foreground);
  font-size: 0.75rem;
  line-height: 1.6;
}

.admin-front-section-foot {
  padding-top: 11px;
  border-top: 1px dashed var(--color-border);
}

.admin-front-section-preview-copy {
  min-width: 0;
  overflow: hidden;
  color: var(--color-foreground);
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-map-grid {
  display: grid;
  padding: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.page-map-card {
  display: flex;
  min-height: 190px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  flex-direction: column;
  background: #fbfcff;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.page-map-card:hover {
  border-color: rgb(47 114 245 / 0.35);
  box-shadow: 0 10px 24px rgb(40 67 110 / 0.08);
  transform: translateY(-2px);
}

.page-map-card-top,
.page-map-footer,
.event-admin-meta,
.catalog-admin-card-head,
.catalog-admin-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.page-map-icon {
  display: inline-grid;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  place-items: center;
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.page-map-index {
  color: #a5afbf;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.page-map-card h3 {
  margin: 18px 0 6px;
  font-size: 0.98rem;
}

.page-map-card p {
  margin: 0;
  color: var(--color-muted-foreground);
  font-size: 0.72rem;
  line-height: 1.55;
}

.page-map-card .page-map-location {
  color: var(--color-foreground);
  font-size: 0.74rem;
  font-weight: 700;
}

.page-map-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.page-map-footer > span {
  color: var(--color-muted-foreground);
  font-size: 0.68rem;
}

.admin-dashboard-grid--lower {
  margin-top: 16px;
}

.impact-note {
  display: flex;
  margin: -8px 0 18px;
  padding: 11px 13px;
  border: 1px solid rgb(47 114 245 / 0.18);
  border-radius: 10px;
  align-items: center;
  gap: 9px;
  background: #f3f7ff;
  color: #49607f;
  font-size: 0.74rem;
}

.impact-note strong {
  color: #244875;
}

.location-cell {
  color: #49607f !important;
  font-size: 0.7rem !important;
  white-space: nowrap;
}

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

.catalog-admin-card,
.event-admin-preview {
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-surface);
  box-shadow: 0 8px 24px rgb(40 67 110 / 0.04);
}

.catalog-admin-card {
  padding: 16px;
}

.catalog-admin-card-head {
  justify-content: flex-start;
}

.catalog-admin-card-head img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  object-fit: cover;
}

.catalog-admin-card-head > div {
  min-width: 0;
  flex: 1;
}

.catalog-admin-card-head h2 {
  margin: 0;
  font-size: 0.98rem;
}

.catalog-admin-card-head p {
  margin: 4px 0 0;
  color: var(--color-muted-foreground);
  font-size: 0.68rem;
}

.catalog-tree {
  display: grid;
  margin: 18px 0;
  gap: 8px;
}

.catalog-tree-row {
  display: flex;
  min-height: 30px;
  padding: 0 9px;
  border-radius: 7px;
  align-items: center;
  gap: 8px;
  background: #f7f9fd;
  font-size: 0.73rem;
}

.tree-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary);
}

.tree-count {
  margin-left: auto;
  color: var(--color-muted-foreground);
  font-size: 0.65rem;
}

.catalog-admin-foot {
  padding-top: 13px;
  border-top: 1px solid var(--color-border);
}

.catalog-admin-foot > span {
  overflow: hidden;
  color: var(--color-muted-foreground);
  font-size: 0.66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.featured-admin-list {
  display: grid;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-surface);
  overflow: hidden;
}

.featured-admin-row {
  display: grid;
  min-height: 92px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-border);
  grid-template-columns: 92px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
}

.featured-admin-row:last-child {
  border-bottom: 0;
}

.featured-admin-thumb {
  position: relative;
  display: grid;
  width: 92px;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
  place-items: center;
  background: #eaf0ff;
  color: var(--color-primary);
}

.featured-admin-thumb img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
}

.featured-admin-thumb [data-icon] {
  position: relative;
  z-index: 1;
  display: grid;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  place-items: center;
  background: #fff;
}

.featured-admin-copy {
  min-width: 0;
}

.featured-admin-copy h3 {
  margin: 0;
  overflow: hidden;
  font-size: 0.84rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.featured-admin-copy p,
.featured-admin-copy small {
  display: block;
  margin: 4px 0 0;
  color: var(--color-muted-foreground);
  font-size: 0.69rem;
}

.switch-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-muted-foreground);
  font-size: 0.7rem;
  white-space: nowrap;
}

.event-admin-preview {
  display: grid;
  padding: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
  align-items: stretch;
  gap: 22px;
}

.event-admin-copy {
  display: flex;
  padding: 10px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.event-admin-copy h2 {
  margin: 16px 0 4px;
  font-size: 1.4rem;
}

.event-admin-copy > p {
  margin: 4px 0;
  color: var(--color-muted-foreground);
  font-size: 0.8rem;
  line-height: 1.6;
}

.event-admin-meta {
  width: 100%;
  margin: 18px 0;
  padding: 11px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  align-items: flex-start;
  flex-direction: column;
}

.event-admin-meta span {
  color: var(--color-muted-foreground);
  font-size: 0.7rem;
}

.event-admin-art {
  position: relative;
  min-height: 230px;
  padding: 0;
  border: 0;
  color: #fff;
  cursor: zoom-in;
  border-radius: 11px;
  overflow: hidden;
  background: #eef3ff;
}

.event-admin-art img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}

.event-admin-art > span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgb(18 31 53 / 0.78);
  font-size: 0.68rem;
}

.event-admin-schedule {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--color-foreground) !important;
  font-weight: 700;
}

.event-preview-modal {
  width: min(940px, 100%);
  max-height: min(820px, calc(100vh - 48px));
  border: 1px solid var(--color-border);
  border-radius: 17px;
  background: var(--color-surface);
  box-shadow: var(--float-shadow);
  overflow: auto;
}

.event-preview-head {
  display: flex;
  padding: 22px 24px 18px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--color-border);
}

.event-preview-kicker {
  margin: 0;
  color: var(--color-primary);
  font-size: 0.7rem;
  font-weight: 750;
}

.event-preview-head h2 {
  margin: 7px 0 4px;
  font-size: 1.42rem;
  letter-spacing: -0.025em;
}

.event-preview-head p:last-child {
  margin: 0;
  color: var(--color-muted-foreground);
  font-size: 0.78rem;
}

.event-preview-layout {
  display: grid;
  padding: 22px 24px 26px;
  grid-template-columns: minmax(0, 1.15fr) minmax(250px, 0.85fr);
  align-items: start;
  gap: 24px;
}

.event-preview-poster-wrap {
  min-width: 0;
}

.event-poster-tabs {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 3px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  gap: 3px;
  background: #f7f9fd;
}

.event-poster-tab {
  min-height: 30px;
  padding: 0 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--color-muted-foreground);
  cursor: pointer;
  font-size: 0.68rem;
}

.event-poster-tab.is-active {
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 2px 7px rgb(40 67 110 / 0.09);
  font-weight: 700;
}

.event-preview-poster-button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 11px;
  overflow: hidden;
  background: #eef3ff;
  cursor: zoom-in;
  text-align: left;
}

.event-preview-poster {
  display: block;
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
}

.event-preview-poster-button > span {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 8px;
  border-radius: 6px;
  background: rgb(18 31 53 / 0.78);
  color: #fff;
  font-size: 0.68rem;
}

.event-preview-copy {
  min-width: 0;
  padding-top: 30px;
}

.event-preview-copy h3 {
  margin: 12px 0 4px;
  font-size: 1.15rem;
}

.event-preview-subtitle {
  margin: 0;
  color: var(--color-muted-foreground);
  font-size: 0.8rem;
  line-height: 1.55;
}

.event-preview-schedule {
  display: flex;
  margin: 18px 0 0;
  padding: 11px 12px;
  border: 1px solid rgb(47 114 245 / 0.16);
  border-radius: 9px;
  align-items: flex-start;
  gap: 9px;
  background: #f4f7ff;
  color: var(--color-primary);
}

.event-preview-schedule span:last-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.event-preview-schedule small,
.event-preview-description > small {
  color: var(--color-muted-foreground);
  font-size: 0.66rem;
}

.event-preview-schedule strong {
  font-size: 0.75rem;
}

.event-preview-description {
  margin-top: 20px;
}

.event-preview-description p {
  margin: 7px 0 0;
  color: var(--color-foreground);
  font-size: 0.82rem;
  line-height: 1.75;
}

.event-preview-actions {
  display: flex;
  margin-top: 24px;
  align-items: center;
  gap: 12px;
}

.event-lightbox {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: grid;
  padding: 28px;
  place-items: center;
  background: rgb(9 16 28 / 0.86);
}

.event-lightbox img {
  max-width: min(94vw, 1320px);
  max-height: 90vh;
  border-radius: 8px;
  object-fit: contain;
  box-shadow: 0 18px 60px rgb(0 0 0 / 0.28);
}

.event-lightbox-close {
  position: fixed;
  top: 18px;
  right: 20px;
  display: grid;
  width: 42px;
  height: 42px;
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: 10px;
  place-items: center;
  background: rgb(12 20 34 / 0.76);
  color: #fff;
  cursor: pointer;
}

@media (max-width: 980px) {
  .page-map-grid,
  .catalog-admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page-map-grid,
  .catalog-admin-grid,
  .event-admin-preview {
    grid-template-columns: 1fr;
  }

  .admin-front-preview-head,
  .admin-front-section-head,
  .admin-front-section-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-front-hero-preview,
  .event-preview-layout {
    grid-template-columns: 1fr;
  }

  .admin-front-hero-preview,
  .admin-front-section-list,
  .admin-front-preview-head {
    padding-inline: 16px;
  }

  .event-preview-layout {
    padding: 18px 16px 22px;
  }

  .event-preview-copy {
    padding-top: 0;
  }

  .event-preview-actions {
    flex-wrap: wrap;
  }

  .featured-admin-row {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .featured-admin-thumb {
    width: 72px;
  }

  .featured-admin-row .switch-line,
  .featured-admin-row > .table-action {
    grid-column: 2;
    justify-self: start;
  }
}

/* Operator console: keep the customer portal light and make publishing work visibly distinct. */
body[data-entry="admin"] {
  --admin-sidebar: #111a2a;
  --admin-sidebar-elevated: #18263a;
  --admin-sidebar-border: rgb(255 255 255 / 0.1);
  --admin-sidebar-text: #f4f8ff;
  --admin-sidebar-muted: #8fa1ba;
  --admin-accent: #5dd7e9;
  --admin-accent-strong: #2f8df4;
  --admin-workspace: #f3f5f8;
  background: var(--admin-workspace);
}

body[data-entry="admin"] .admin-view {
  background: var(--admin-workspace);
}

body[data-entry="admin"] .admin-shell {
  grid-template-columns: 248px minmax(0, 1fr);
}

body[data-entry="admin"] .admin-sidebar {
  padding: 26px 15px 18px;
  border-right: 1px solid #0b1320;
  background: var(--admin-sidebar);
  color: var(--admin-sidebar-text);
}

body[data-entry="admin"] .admin-brand {
  margin: 0 8px 34px;
}

body[data-entry="admin"] .admin-brand .brand-wordmark strong,
body[data-entry="admin"] .admin-brand .brand-wordmark span {
  color: var(--admin-sidebar-text);
}

body[data-entry="admin"] .admin-brand .brand-wordmark span {
  opacity: 0.64;
}

body[data-entry="admin"] .preview-pill {
  border: 1px solid rgb(93 215 233 / 0.3);
  background: rgb(93 215 233 / 0.12);
  color: var(--admin-accent);
}

body[data-entry="admin"] .admin-section-label {
  margin: 0 10px 10px;
  color: var(--admin-sidebar-muted);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
}

body[data-entry="admin"] .admin-section-label--secondary {
  margin-top: 25px;
  padding-top: 18px;
  border-top-color: var(--admin-sidebar-border);
}

body[data-entry="admin"] .admin-nav {
  gap: 5px;
}

body[data-entry="admin"] .admin-nav-item {
  position: relative;
  min-height: 54px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #bcc9da;
  font-size: 0.86rem;
}

body[data-entry="admin"] .admin-nav-item > [data-icon] {
  margin-left: 0;
  color: #7890ad;
}

body[data-entry="admin"] .admin-nav-item > .admin-nav-copy {
  margin-left: 0;
}

body[data-entry="admin"] .admin-nav-item:hover {
  border-color: rgb(255 255 255 / 0.08);
  background: rgb(255 255 255 / 0.055);
  color: var(--admin-sidebar-text);
}

body[data-entry="admin"] .admin-nav-item.is-active {
  border-color: rgb(93 215 233 / 0.18);
  background: var(--admin-sidebar-elevated);
  color: var(--admin-sidebar-text);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.025);
}

body[data-entry="admin"] .admin-nav-item.is-active::before {
  left: -15px;
  width: 3px;
  height: 30px;
  background: var(--admin-accent);
  box-shadow: 0 0 14px rgb(93 215 233 / 0.45);
}

body[data-entry="admin"] .admin-nav-copy strong {
  color: inherit;
  font-size: 0.86rem;
  line-height: 1.25;
}

body[data-entry="admin"] .admin-nav-copy small {
  color: var(--admin-sidebar-muted);
  font-size: 0.68rem;
  line-height: 1.35;
}

body[data-entry="admin"] .admin-nav-item.is-active > [data-icon],
body[data-entry="admin"] .admin-nav-item:hover > [data-icon] {
  color: var(--admin-accent);
}

body[data-entry="admin"] .admin-sidebar-bottom {
  padding-top: 16px;
  border-top-color: var(--admin-sidebar-border);
}

body[data-entry="admin"] .admin-sidebar-bottom .admin-nav-item {
  min-height: 44px;
  color: var(--admin-sidebar-muted);
}

body[data-entry="admin"] .admin-sidebar-bottom .admin-nav-item:hover {
  color: var(--admin-sidebar-text);
}

body[data-entry="admin"] .admin-main {
  background: var(--admin-workspace);
}

body[data-entry="admin"] .admin-topbar {
  min-height: 76px;
  border-bottom-color: #dce3eb;
  background: #fff;
  box-shadow: 0 1px 0 rgb(15 23 42 / 0.02);
}

body[data-entry="admin"] .admin-breadcrumb {
  color: #77869a;
}

body[data-entry="admin"] .admin-topbar strong {
  color: #172238;
}

body[data-entry="admin"] .saved-state {
  color: #2f8c70;
}

body[data-entry="admin"] .admin-content {
  width: min(1180px, calc(100% - 72px));
  padding-top: 42px;
}

body[data-entry="admin"] .admin-page-head .eyebrow {
  color: #0c8299;
}

body[data-entry="admin"] .admin-page-head h1,
body[data-entry="admin"] .admin-page-head h2,
body[data-entry="admin"] .admin-panel-head h2 {
  color: #172238;
}

body[data-entry="admin"] .primary-button {
  background: #147fa0;
  box-shadow: 0 8px 18px rgb(20 127 160 / 0.18);
}

body[data-entry="admin"] .primary-button:hover {
  background: #0f6e8b;
}

body[data-entry="admin"] .admin-panel,
body[data-entry="admin"] .admin-table-wrap,
body[data-entry="admin"] .admin-task-list,
body[data-entry="admin"] .admin-recent-list {
  border-color: #dce3eb;
  box-shadow: 0 12px 30px rgb(30 47 72 / 0.06);
}

body[data-entry="admin"] .admin-status-line {
  border-color: #dce3eb;
  box-shadow: 0 8px 20px rgb(30 47 72 / 0.04);
}

body[data-entry="admin"] .admin-content .text-input:focus {
  border-color: #147fa0;
  box-shadow: 0 0 0 3px rgb(20 127 160 / 0.12);
}

@media (max-width: 980px) {
  body[data-entry="admin"] .admin-shell {
    grid-template-columns: 1fr;
  }

  body[data-entry="admin"] .admin-sidebar {
    padding: 16px var(--page-gutter) 11px;
    border-right: 0;
    border-bottom: 1px solid #0b1320;
  }

  body[data-entry="admin"] .admin-brand {
    margin: 0 0 13px;
  }

  body[data-entry="admin"] .admin-section-label,
  body[data-entry="admin"] .admin-sidebar-bottom {
    display: none;
  }

  body[data-entry="admin"] .admin-nav {
    display: flex;
    overflow-x: auto;
    gap: 6px;
  }

  body[data-entry="admin"] .admin-nav-item {
    width: auto;
    min-width: max-content;
    min-height: 44px;
  }

  body[data-entry="admin"] .admin-nav-copy small {
    display: none;
  }

  body[data-entry="admin"] .admin-topbar {
    padding: 0 var(--page-gutter);
  }

  body[data-entry="admin"] .admin-content {
    width: calc(100% - (var(--page-gutter) * 2));
    padding-top: 30px;
  }
}

/* Lightweight content admin: one task per row, one blue accent, no nested dashboard cards. */
.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  transform: translateY(-150%);
}

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

textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid rgb(0 85 255 / 0.24);
  outline-offset: 3px;
}

body[data-entry="admin"] .list-toolbar .filter-bar {
  display: none;
}

.admin-page-head--simple {
  align-items: center;
  margin-bottom: 22px;
}

.admin-page-head--simple h1 {
  font-size: clamp(1.75rem, 2.6vw, 2.25rem);
}

.admin-page-head--simple p {
  font-size: 0.9rem;
  line-height: 1.65;
}

.admin-status-line {
  display: flex;
  min-height: 46px;
  margin-bottom: 30px;
  padding: 0 16px;
  border: 1px solid #dfe7f4;
  border-radius: 10px;
  align-items: center;
  gap: 0;
  background: #fff;
  color: var(--color-muted-foreground);
  font-size: 0.8rem;
}

.admin-status-line span {
  padding: 0 20px;
  border-right: 1px solid #e6ebf3;
}

.admin-status-line span:first-child {
  padding-left: 0;
}

.admin-status-line span:last-child {
  border-right: 0;
}

.admin-status-line b {
  margin-right: 4px;
  color: var(--color-foreground);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.admin-task-section,
.admin-recent-section {
  margin-top: 30px;
}

.admin-task-heading {
  display: flex;
  margin-bottom: 12px;
  align-items: end;
  justify-content: space-between;
}

.admin-task-heading h2,
.admin-setting-strip h2 {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

.admin-task-heading p,
.admin-setting-strip p {
  margin: 5px 0 0;
  color: var(--color-muted-foreground);
  font-size: 0.78rem;
}

.admin-task-list,
.admin-recent-list {
  border: 1px solid #dfe6f1;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgb(25 47 87 / 0.05);
  overflow: hidden;
}

.admin-task-row {
  display: grid;
  min-height: 104px;
  padding: 17px 18px;
  grid-template-columns: 34px 44px minmax(260px, 1fr) 72px auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #e8edf5;
}

.admin-task-row:last-child,
.admin-recent-row:last-child {
  border-bottom: 0;
}

.admin-task-index {
  color: #9aa6b9;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
}

.admin-task-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  align-items: center;
  justify-content: center;
  background: #edf3ff;
  color: var(--color-primary);
}

.admin-task-copy {
  display: grid;
  gap: 4px;
}

.admin-task-copy strong {
  font-size: 0.98rem;
}

.admin-task-copy small {
  color: #607089;
  font-size: 0.78rem;
}

.admin-task-copy em {
  color: var(--color-primary);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 650;
}

.admin-task-count {
  color: #78869b;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.admin-task-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-task-actions .primary-button {
  min-height: 40px;
  padding-inline: 15px;
}

.admin-setting-strip {
  display: grid;
  margin-top: 26px;
  padding: 20px;
  border-top: 1px solid #dfe6f1;
  border-bottom: 1px solid #dfe6f1;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  align-items: center;
  gap: 12px;
}

.admin-recent-row {
  display: grid;
  width: 100%;
  min-height: 68px;
  padding: 12px 16px;
  border: 0;
  border-bottom: 1px solid #e8edf5;
  grid-template-columns: minmax(0, 1fr) auto 20px;
  align-items: center;
  gap: 14px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.admin-recent-row > span:first-child {
  display: grid;
  gap: 4px;
}

.admin-recent-row strong {
  font-size: 0.84rem;
}

.admin-recent-row small {
  color: var(--color-muted-foreground);
  font-size: 0.72rem;
}

.copy-editor {
  display: grid;
  gap: 12px;
}

.copy-editor-group {
  border: 1px solid #dfe6f1;
  border-radius: 13px;
  background: #fff;
  overflow: hidden;
}

.copy-editor-group summary {
  display: flex;
  min-height: 74px;
  padding: 14px 18px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  list-style: none;
}

.copy-editor-group summary::-webkit-details-marker {
  display: none;
}

.copy-editor-group summary > span:first-child {
  display: grid;
  gap: 4px;
}

.copy-editor-group summary strong {
  font-size: 0.94rem;
}

.copy-editor-group summary small {
  color: var(--color-muted-foreground);
  font-size: 0.74rem;
}

.copy-editor-group summary > [data-icon] {
  transition: transform 140ms ease-out;
}

.copy-editor-group[open] summary > [data-icon] {
  transform: rotate(180deg);
}

.copy-editor-fields {
  display: grid;
  padding: 20px;
  border-top: 1px solid #e8edf5;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  background: #fbfcfe;
}

.copy-editor-fields .field-label:has(textarea),
.copy-editor-divider {
  grid-column: 1 / -1;
}

.copy-editor-divider {
  margin-top: 2px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f2;
  color: #3d4a5f;
  font-size: 0.76rem;
  font-weight: 700;
}

.copy-editor-fields--pairs fieldset {
  display: grid;
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 1px solid #e0e7f1;
  border-radius: 10px;
  gap: 14px;
  background: #fff;
}

.copy-editor-fields--pairs legend {
  padding: 0 7px;
  color: #40506a;
  font-size: 0.75rem;
  font-weight: 750;
}

.copy-editor-fields--pairs .field-label:has(textarea) {
  grid-column: auto;
}

.copy-editor-save {
  display: flex;
  padding: 14px 0 0;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.copy-editor-save > span {
  color: var(--color-muted-foreground);
  font-size: 0.76rem;
}

.field-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-muted-foreground);
  font-size: 0.72rem;
}

.field-divider::before,
.field-divider::after {
  height: 1px;
  flex: 1;
  background: var(--color-border);
  content: "";
}

.file-upload-field .text-input {
  min-height: 54px;
  padding: 9px 10px;
}

.detail-video {
  margin-bottom: 20px;
  border-radius: 13px;
  background: #0f1726;
  overflow: hidden;
}

.detail-video video {
  display: block;
  width: 100%;
  max-height: 56vh;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.detail-media small {
  color: var(--color-muted-foreground);
  font-size: 0.74rem;
}

.short-input {
  max-width: 180px;
}

.admin-login-back {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--color-muted-foreground);
  font-size: 0.78rem;
}

[data-auth-modal] .detail-drawer {
  width: min(460px, 100%);
}

@media (hover: hover) and (pointer: fine) {
  .admin-recent-row:hover {
    background: #f7f9fd;
  }

  .admin-task-row:hover .admin-task-icon {
    background: #e3edff;
  }
}

@media (max-width: 980px) {
  body[data-entry="admin"] .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-task-row {
    grid-template-columns: 30px 40px minmax(0, 1fr) auto;
  }

  .admin-task-count {
    display: none;
  }
}

@media (max-width: 720px) {
  body[data-entry="admin"] .admin-content {
    width: calc(100% - (var(--page-gutter) * 2));
  }

  .admin-page-head--simple,
  .admin-setting-strip,
  .copy-editor-save {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-page-head--simple {
    display: flex;
  }

  .admin-status-line {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 10px;
  }

  .admin-status-line span,
  .admin-status-line span:first-child {
    width: 100%;
    padding: 7px 0;
    border-right: 0;
    border-bottom: 1px solid #e6ebf3;
  }

  .admin-status-line span:last-child {
    border-bottom: 0;
  }

  .admin-task-row {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 17px 15px;
  }

  .admin-task-index,
  .admin-task-count {
    display: none;
  }

  .admin-task-copy {
    grid-column: 2;
  }

  .admin-task-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .admin-setting-strip {
    display: flex;
  }

  .copy-editor-fields,
  .copy-editor-fields--pairs {
    grid-template-columns: 1fr;
  }

  .copy-editor-save {
    display: flex;
  }
}

.admin-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 14px;
}

.admin-panel {
  border: 1px solid var(--color-border);
  border-radius: 15px;
  background: var(--color-surface);
  overflow: hidden;
}

.admin-panel-head {
  display: flex;
  min-height: 62px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--color-border);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-panel-head h2 {
  margin: 0;
  font-size: 0.92rem;
}

.admin-panel-head p {
  margin: 3px 0 0;
  color: var(--color-muted-foreground);
  font-size: 0.7rem;
}

.admin-panel-body {
  padding: 16px 18px;
}

.settings-form {
  margin-bottom: 14px;
}

.settings-form .admin-panel-body {
  display: grid;
  gap: 16px;
}

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

.admin-content .field-label {
  display: grid;
  gap: 7px;
  color: var(--color-foreground);
  font-size: 0.75rem;
  font-weight: 700;
}

.admin-content .text-input {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--color-border);
  border-radius: 9px;
  outline: 0;
  background: var(--color-surface);
  color: var(--color-foreground);
  font: inherit;
  font-size: 0.82rem;
}

.admin-content textarea.text-input {
  resize: vertical;
}

.admin-content .text-input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgb(0 85 255 / 0.1);
}

.detail-body .field-grid {
  margin: 0;
}

@media (max-width: 720px) {
  .field-grid {
    grid-template-columns: 1fr;
  }
}

.admin-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 64px;
  padding: 11px 0;
  border-bottom: 1px solid var(--color-border);
  align-items: center;
  gap: 14px;
}

.admin-list-row:last-child {
  border-bottom: 0;
}

.admin-list-row strong {
  display: block;
  font-size: 0.8rem;
}

.admin-list-row span {
  display: block;
  margin-top: 3px;
  color: var(--color-muted-foreground);
  font-size: 0.69rem;
}

.status-badge.status-draft {
  background: #fff5df;
  color: var(--color-warning);
}

.status-badge.status-live {
  background: #e1f7ef;
  color: var(--color-success);
}

.status-badge.status-review {
  background: #f0ebff;
  color: var(--color-violet);
}

.quick-actions {
  display: grid;
  gap: 9px;
}

.quick-action {
  display: flex;
  min-height: 52px;
  padding: 0 13px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  align-items: center;
  gap: 10px;
  background: var(--color-surface);
  color: var(--color-foreground);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 650;
  text-align: left;
}

.quick-action:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
  color: var(--color-primary);
}

.admin-table-wrap {
  border: 1px solid var(--color-border);
  border-radius: 15px;
  background: var(--color-surface);
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 690px;
}

.admin-table th,
.admin-table td {
  padding: 15px 17px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: var(--color-muted-foreground);
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
}

.admin-table td {
  color: var(--color-foreground);
  font-size: 0.77rem;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-table td strong {
  display: block;
  font-size: 0.79rem;
}

.admin-table td span {
  display: block;
  margin-top: 3px;
  color: var(--color-muted-foreground);
  font-size: 0.68rem;
}

.table-actions {
  display: inline-flex;
  gap: 8px;
}

.table-action {
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: var(--color-primary);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
}

.table-action:hover {
  text-decoration: underline;
}

/* Keep admin table actions visually separate so each decision reads as one control. */
body[data-entry="admin"] .admin-table th:last-child,
body[data-entry="admin"] .admin-table td:last-child {
  min-width: 285px;
}

body[data-entry="admin"] .admin-table .table-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

body[data-entry="admin"] .admin-table .table-action {
  display: inline-flex;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #d5dfeb;
  border-radius: 7px;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #31527b;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

body[data-entry="admin"] .admin-table .table-action:hover {
  border-color: #7ea7cf;
  background: #f7fbff;
  color: #0f6196;
  text-decoration: none;
}

body[data-entry="admin"] .admin-table .table-action--edit {
  border-color: #afd0ef;
  color: #1768ae;
}

body[data-entry="admin"] .admin-table .table-action--danger {
  border-color: #efc5c5;
  background: #fff8f8;
  color: #ad4d4d;
}

body[data-entry="admin"] .admin-table .table-action--danger:hover {
  border-color: #dc9999;
  background: #fff0f0;
  color: #913c3c;
}

.admin-empty-row {
  display: block;
  padding: 14px 0;
  color: var(--color-muted-foreground);
  text-align: center;
}

body[data-entry="admin"] .admin-table .table-action--preview {
  color: #53657d;
}

body[data-entry="admin"] .admin-table .table-action--publish {
  border-color: #a9decf;
  background: #effaf6;
  color: #168367;
}

body[data-entry="admin"] .admin-table .table-action--publish:hover {
  border-color: #67bea5;
  background: #e4f7f0;
  color: #0f6d55;
}

body[data-entry="admin"] .admin-table .table-action--unpublish {
  border-color: #efd4a4;
  background: #fff8eb;
  color: #a66a08;
}

body[data-entry="admin"] .admin-table .table-action--unpublish:hover {
  border-color: #e5b86b;
  background: #fff2d8;
  color: #895707;
}

.detail-drawer--catalog {
  width: min(760px, 100%);
}

.catalog-form {
  display: grid;
  gap: 16px;
}

.catalog-editor {
  display: grid;
  gap: 12px;
}

.catalog-editor-toolbar {
  display: flex;
  padding: 12px 14px;
  border: 1px solid #dce5ef;
  border-radius: 10px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #f7faff;
}

.catalog-editor-toolbar > div {
  display: grid;
  gap: 3px;
}

.catalog-editor-toolbar strong {
  color: #243f63;
  font-size: 0.82rem;
}

.catalog-editor-toolbar span {
  color: #71839b;
  font-size: 0.68rem;
}

.catalog-editor-level-list {
  display: grid;
  gap: 10px;
}

.catalog-editor-level {
  display: grid;
  padding: 12px;
  border: 1px solid #dce5ef;
  border-radius: 11px;
  gap: 10px;
  background: #fff;
}

.catalog-editor-level-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
}

.catalog-editor-index {
  min-width: 34px;
  color: #597492;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
}

.catalog-editor-level-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.catalog-editor-level-actions .secondary-button,
.catalog-editor-remove-level,
.catalog-editor-remove-child {
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 7px;
  font-size: 0.7rem;
  white-space: nowrap;
}

.danger-button,
.catalog-editor-remove-level,
.catalog-editor-remove-child {
  border: 1px solid #efc5c5;
  background: #fff8f8;
  color: #ad4d4d;
  cursor: pointer;
  font-weight: 700;
}

.danger-button:hover,
.catalog-editor-remove-level:hover,
.catalog-editor-remove-child:hover {
  border-color: #dc9999;
  background: #fff0f0;
  color: #913c3c;
}

.catalog-editor-children {
  display: grid;
  margin-left: 43px;
  padding-left: 15px;
  border-left: 1px solid #d7e1ed;
  gap: 8px;
}

.catalog-editor-child {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.catalog-editor-branch {
  width: 7px;
  height: 7px;
  border: 2px solid #87a5c4;
  border-radius: 50%;
  background: #fff;
}

/* Details and feedback */
.modal-backdrop {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: grid;
  padding: 24px;
  place-items: center;
  background: rgb(21 34 56 / 0.34);
}

.detail-drawer {
  width: min(670px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: var(--color-surface);
  box-shadow: var(--float-shadow);
  overflow: auto;
}

.detail-head {
  display: flex;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--color-border);
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.detail-head h2 {
  margin: 0;
  font-size: 1.34rem;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.detail-head p {
  margin: 7px 0 0;
  color: var(--color-muted-foreground);
  font-size: 0.76rem;
}

.close-button {
  display: inline-flex;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 9px;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  color: var(--color-muted-foreground);
  cursor: pointer;
}

.close-button:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.detail-body {
  padding: 22px 24px 28px;
}

.detail-media {
  display: flex;
  min-height: 180px;
  margin-bottom: 20px;
  border-radius: 13px;
  align-items: center;
  justify-content: center;
  background: #eaf1ff;
  color: var(--color-primary);
}

.detail-body h3 {
  margin: 22px 0 8px;
  font-size: 0.92rem;
}

.detail-body p,
.detail-body li {
  color: var(--color-muted-foreground);
  font-size: 0.82rem;
  line-height: 1.72;
}

.detail-body ul {
  margin: 8px 0 0;
  padding-left: 19px;
}

.detail-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.toast {
  position: fixed;
  z-index: 80;
  right: 22px;
  bottom: 22px;
  max-width: min(360px, calc(100% - 44px));
  padding: 12px 15px;
  border: 1px solid rgb(206 220 242 / 0.95);
  border-radius: 10px;
  background: var(--color-surface);
  box-shadow: var(--float-shadow);
  color: var(--color-foreground);
  font-size: 0.78rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity var(--duration-normal) var(--ease-standard), transform var(--duration-normal) var(--ease-standard);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 980px) {
  .login-layout {
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 42px;
  }

  .story-copy {
    margin-top: 70px;
  }

  .main-nav {
    gap: 17px;
  }

  .header-search {
    min-width: 160px;
  }

  .profile-name {
    display: none;
  }

  .home-hero {
    padding: 30px;
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .tutorial-layout {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 16px;
  }

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

@media (max-width: 800px) {
  :root {
    --page-gutter: 18px;
  }

  .login-layout {
    width: min(520px, calc(100% - 36px));
    padding: 36px 0 54px;
    grid-template-columns: 1fr;
  }

  .story-copy {
    margin-top: 52px;
  }

  .story-copy h1 {
    max-width: 100%;
    font-size: clamp(2.15rem, 8vw, 3.55rem);
    letter-spacing: -0.022em;
    line-height: 1.18;
  }

  .brand-lockup--large .brand-mark {
    width: 56px;
    height: 56px;
  }

  .brand-lockup--large .brand-wordmark strong {
    font-size: 1.2rem;
  }

  .story-index {
    margin-top: 32px;
  }

  .topbar-inner {
    min-height: 64px;
    flex-wrap: wrap;
    gap: 0 18px;
  }

  .main-nav {
    order: 3;
    width: 100%;
    height: 45px;
    gap: 19px;
    overflow-x: auto;
  }

  .nav-item {
    height: 45px;
    white-space: nowrap;
  }

  .header-search {
    min-width: 140px;
  }

  .header-search kbd {
    display: none;
  }

  .portal-content {
    padding-top: 32px;
  }

  .home-hero {
    grid-template-columns: 1fr;
  }

  .hero-ai-visual {
    right: -150px;
    bottom: -180px;
    width: 320px;
    opacity: 0.24;
  }

  .tutorial-layout {
    grid-template-columns: 1fr;
  }

  .tutorial-sidebar {
    position: static;
    display: flex;
    max-height: none;
    padding: 12px;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-gutter: auto;
  }

  .tutorial-sidebar-title {
    display: none;
  }

  .tutorial-nav-product {
    min-width: 178px;
    margin: 0;
    padding: 0;
    border: 0;
  }

  .tutorial-nav-sections {
    display: none;
  }

  .update-layout,
  .admin-dashboard-grid {
    grid-template-columns: 1fr;
  }

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

  .home-products-panel .product-grid {
    grid-template-columns: 1fr;
  }

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

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: relative;
    padding: 15px var(--page-gutter) 10px;
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .admin-brand {
    margin: 0 0 12px;
  }

  .admin-section-label,
  .admin-sidebar-bottom {
    display: none;
  }

  .admin-nav {
    display: flex;
    overflow-x: auto;
    gap: 5px;
  }

  .admin-nav-item {
    width: auto;
    min-width: max-content;
  }

  .admin-nav-copy small {
    display: none;
  }

  .admin-nav-copy strong {
    font-size: 0.74rem;
  }

  .admin-nav-item span:last-child {
    display: none;
  }

  .admin-topbar {
    padding: 0 var(--page-gutter);
  }

  .admin-content {
    width: calc(100% - (var(--page-gutter) * 2));
    padding-top: 28px;
  }
}

@media (max-width: 560px) {
  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .brand-wordmark strong {
    font-size: 0.9rem;
  }

  .brand-wordmark span {
    font-size: 0.62rem;
    letter-spacing: 0.05em;
  }

  .login-card {
    padding: 24px;
  }

  .story-copy h1 {
    font-size: clamp(1.68rem, 7.7vw, 2.55rem);
    line-height: 1.2;
  }

  .story-index {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    font-size: 0.7rem;
  }

  .story-index span {
    display: grid;
    gap: 3px;
  }

  .topbar-inner {
    min-height: 60px;
  }

  .topbar-actions {
    gap: 3px;
  }

  .header-search {
    min-width: 38px;
    width: 38px;
    padding: 0;
    border-color: transparent;
    background: transparent;
  }

  .header-search input {
    display: none;
  }

  .header-search [data-icon] {
    margin: auto;
  }

  .notification-button {
    display: none;
  }

  .portal-content {
    padding-bottom: 58px;
  }

  .home-hero {
    padding: 24px;
    border-radius: 17px;
  }

  .hero-ai-visual {
    right: -160px;
    bottom: -170px;
    width: 280px;
  }

  .home-hero h1 {
    font-size: clamp(1.48rem, 6.8vw, 2.5rem);
    line-height: 1.24;
  }

  .home-hero h1 span {
    margin-top: 0;
  }

  .home-hero h1 .headline-line + .headline-line {
    margin-top: 5px;
  }

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

  .event-poster {
    max-width: 220px;
  }

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

  .product-update-list {
    margin-left: 0;
  }

  .update-product-group-page {
    padding: 16px 16px 5px;
  }

  .home-search {
    min-height: 48px;
    padding-left: 12px;
  }

  .home-search .primary-button {
    width: 42px;
    padding: 0;
  }

  .home-search .primary-button span:first-child {
    display: none;
  }

  .section-block {
    margin-top: 40px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .timeline-row {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .timeline-row .row-type {
    grid-column: 2;
  }

  .tutorial-row,
  .case-row {
    grid-template-columns: 62px minmax(0, 1fr);
    padding: 13px 14px;
  }

  .media-thumb {
    width: 62px;
    height: 48px;
  }

  .tutorial-row .list-action,
  .case-row .metric-note {
    display: none;
  }

  .case-mark {
    width: 62px;
    min-height: 48px;
    padding: 7px;
    font-size: 0.68rem;
  }

  .page-intro {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .page-intro h1 {
    font-size: 2rem;
  }

  .list-toolbar {
    align-items: flex-start;
    flex-direction: column-reverse;
  }

  .inline-search {
    width: 100%;
  }

  .admin-top-actions .saved-state {
    display: none;
  }

  .admin-topbar {
    min-height: 62px;
  }

  .admin-page-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}

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

/* Route Desk home: porcelain workspace with one blue accent. */
.route-home {
  --route-ink: #172238;
  --route-muted: #60708a;
  --route-line: #dbe4f0;
  --route-soft: #f1f5fb;
  --route-blue: #0055ff;
  --route-blue-soft: #eaf1ff;
  color: var(--route-ink);
}

.route-home button {
  font: inherit;
}

.route-home h1,
.route-home h2,
.route-home h3 {
  font-family: var(--font-display);
  text-wrap: balance;
}

.route-home p {
  text-wrap: pretty;
}

.route-hero {
  display: grid;
  min-height: 402px;
  padding: 46px 48px 44px;
  border: 1px solid var(--route-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 44px rgb(34 70 124 / 0.08);
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 32px;
  align-items: stretch;
}

.route-hero-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.route-home .eyebrow {
  margin-bottom: 11px;
  color: var(--route-blue);
  font-size: 0.82rem;
  letter-spacing: 0.09em;
}

.route-hero h1 {
  max-width: 640px;
  margin: 0;
  font-size: clamp(2.7rem, 4.5vw, 3.9rem);
  font-weight: 780;
  letter-spacing: 0;
  line-height: 1.12;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.route-hero h1 span,
.route-hero h1 em {
  display: block;
}

.route-hero h1 em {
  margin-top: 5px;
  color: var(--route-blue);
  font-style: normal;
}

.route-hero-lead {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--route-muted);
  font-size: 1.03rem;
  line-height: 1.8;
}

.route-search {
  display: flex;
  max-width: 574px;
  min-height: 54px;
  margin-top: 25px;
  padding: 5px 5px 5px 16px;
  border: 1px solid #c7d6ee;
  border-radius: 11px;
  align-items: center;
  gap: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(21 74 166 / 0.08);
  color: var(--route-muted);
}

.route-search:focus-within {
  border-color: var(--route-blue);
  box-shadow: 0 0 0 4px rgb(0 85 255 / 0.11);
}

.route-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--route-ink);
  font-size: 1rem;
}

.route-search .primary-button {
  min-height: 42px;
  padding-inline: 16px;
  border-radius: 8px;
  white-space: nowrap;
}

.route-hero-note {
  display: flex;
  margin-top: 17px;
  align-items: center;
  gap: 9px;
  color: #7c8aa0;
  font-size: 0.86rem;
  line-height: 1.5;
}

.route-note-rule {
  width: 1px;
  height: 15px;
  margin-inline: 3px;
  background: var(--route-line);
}

.route-hero-rail {
  display: grid;
  min-width: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
}

.route-visual {
  position: relative;
  display: block;
  min-height: 276px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 14px;
  background: #14223a;
  color: #fff;
  cursor: pointer;
  text-align: left;
}

.route-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 276px;
  object-fit: cover;
  opacity: 0.74;
  transition: transform 220ms var(--ease-standard), opacity 220ms var(--ease-standard);
}

.route-visual:hover img {
  transform: scale(1.02);
  opacity: 0.86;
}

.route-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(13 28 53 / 0.04) 30%, rgb(13 28 53 / 0.9) 100%);
}

.route-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 56px;
  height: 56px;
  border: 1px solid rgb(255 255 255 / 0.58);
  border-radius: 50%;
  place-items: center;
  background: #fff;
  color: var(--route-blue);
  box-shadow: 0 12px 28px rgb(6 18 41 / 0.2);
  transform: translate(-50%, -50%);
}

.route-play svg {
  width: 18px;
  height: 18px;
  margin-left: 2px;
}

.route-visual-caption {
  position: absolute;
  right: 21px;
  bottom: 18px;
  left: 21px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.route-visual-caption strong {
  font-size: 1.05rem;
  line-height: 1.35;
}

.route-visual-caption small {
  color: #c8d5e8;
  font-size: 0.86rem;
}

.route-event-note {
  display: grid;
  min-height: 80px;
  padding: 9px 13px 9px 9px;
  border: 1px solid var(--route-line);
  border-radius: 11px;
  align-items: center;
  grid-template-columns: 94px minmax(0, 1fr) auto;
  gap: 12px;
  background: #fff;
  color: var(--route-ink);
  cursor: pointer;
  text-align: left;
}

.route-event-note:hover {
  border-color: #9db8ec;
  background: var(--route-blue-soft);
}

.route-event-thumb {
  display: block;
  height: 58px;
  overflow: hidden;
  border-radius: 7px;
  background: var(--route-blue-soft);
}

.route-event-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.route-event-note > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.route-event-note small {
  color: var(--route-blue);
  font-size: 0.82rem;
  font-weight: 700;
}

.route-event-note strong {
  overflow: hidden;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-event-note em {
  overflow: hidden;
  color: var(--route-muted);
  font-size: 0.86rem;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-section {
  margin-top: 48px;
}

.route-section-head {
  display: flex;
  margin-bottom: 19px;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.route-section-head h2,
.route-case-intro h2 {
  margin: 0;
  font-size: clamp(1.78rem, 2.4vw, 2.14rem);
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1.25;
}

.route-section-head p:not(.eyebrow),
.route-case-intro > p:not(.eyebrow) {
  max-width: 690px;
  margin: 7px 0 0;
  color: var(--route-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.route-section-head .quiet-button,
.route-case-intro .quiet-button {
  flex: 0 0 auto;
  min-height: 38px;
  padding-inline: 7px;
  font-size: 0.9rem;
}

.route-product-list {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--route-line);
  border-radius: 14px;
  background: #fff;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.route-product-item {
  display: grid;
  min-width: 0;
  min-height: 132px;
  padding: 17px 16px 18px;
  border: 0;
  border-right: 1px solid var(--route-line);
  background: #fff;
  color: var(--route-ink);
  cursor: pointer;
  grid-template-columns: auto 42px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  text-align: left;
  transition: background-color 160ms var(--ease-standard), color 160ms var(--ease-standard), box-shadow 160ms var(--ease-standard), transform 160ms var(--ease-standard);
}

.route-product-item:last-child {
  border-right: 0;
}

.route-product-item:hover,
.route-product-item:focus-visible {
  background: var(--route-blue-soft);
  color: var(--route-ink);
  box-shadow: inset 0 0 0 2px rgb(0 85 255 / 0.22);
}

.route-product-item:hover {
  background: linear-gradient(135deg, #f4f7ff 0%, #eaf1ff 100%);
  color: var(--route-ink);
  box-shadow: inset 0 -3px 0 var(--route-blue);
}

.route-product-item.is-featured {
  background: #fff;
  color: var(--route-ink);
  box-shadow: inset 0 -2px 0 rgb(0 85 255 / 0.24);
}

.route-product-item.is-featured:hover,
.route-product-item.is-featured:focus-visible {
  background: linear-gradient(135deg, #f4f7ff 0%, #eaf1ff 100%);
  color: var(--route-ink);
  box-shadow: inset 0 -3px 0 var(--route-blue), 0 8px 18px rgb(30 72 147 / 0.08);
  transform: translateY(-1px);
}

.route-product-index {
  align-self: start;
  color: #9aa8bd;
  font-size: 0.8rem;
  font-weight: 700;
}

.route-product-item.is-featured .route-product-index { color: var(--route-blue); }

.route-product-logo {
  display: grid;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 11px;
  place-items: center;
  background: #fff;
}

.route-product-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.route-product-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 5px;
}

.route-product-copy strong {
  font-size: 1.04rem;
  font-weight: 750;
}

.route-product-copy small {
  display: -webkit-box;
  overflow: hidden;
  color: #718198;
  font-size: 0.86rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.route-product-item.is-featured .route-product-copy small { color: #718198; }

.route-product-arrow {
  align-self: start;
  color: var(--route-blue);
}

.route-product-item.is-featured .route-product-arrow,
.route-product-item:hover .route-product-arrow { color: var(--route-blue); }

.route-update-board {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--route-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgb(34 70 124 / 0.05);
  grid-template-columns: minmax(0, 1.16fr) minmax(350px, 0.84fr);
}

.route-update-featured {
  min-width: 0;
  padding: 26px 28px 18px;
  border-right: 1px solid var(--route-line);
  background: #f4f7ff;
}

.route-update-featured-head,
.route-update-compact header {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.route-update-featured-identity,
.route-update-compact-product {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.route-update-featured-identity img,
.route-update-compact-product img {
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 11px;
  object-fit: cover;
}

.route-update-featured-identity > span,
.route-update-compact-product > span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.route-update-featured-identity small,
.route-update-compact-product small,
.route-update-featured-copy small,
.route-update-compact-copy small {
  color: var(--route-muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.route-update-featured-identity small,
.route-update-featured-copy small {
  color: #426eb9;
  font-weight: 700;
}

.route-update-featured-identity strong {
  overflow: hidden;
  font-size: 1.24rem;
  font-weight: 780;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-update-featured-stat {
  display: flex;
  padding-top: 3px;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-end;
  color: var(--route-muted);
  font-size: 0.82rem;
  line-height: 1.2;
}

.route-update-featured-stat b {
  color: var(--route-blue);
  font-size: 1.55rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.route-update-featured-list {
  margin-top: 22px;
}

.route-update-featured-entry {
  display: grid;
  width: calc(100% + 20px);
  min-height: 100px;
  margin-inline: -10px;
  padding: 15px 10px;
  border: 0;
  border-top: 1px solid rgb(116 145 192 / 0.28);
  border-radius: 10px;
  align-items: start;
  background: transparent;
  color: var(--route-ink);
  cursor: pointer;
  grid-template-columns: 76px minmax(0, 1fr) 18px;
  gap: 13px;
  text-align: left;
  transition: background-color 150ms var(--ease-standard), box-shadow 150ms var(--ease-standard), transform 150ms var(--ease-standard);
}

.route-update-featured-entry:hover,
.route-update-featured-entry:focus-visible {
  background: #fff;
  box-shadow: 0 5px 16px rgb(30 72 147 / 0.1);
  transform: translateY(-1px);
}

.route-update-version {
  padding-top: 3px;
  color: var(--route-blue);
  font-size: 0.9rem;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  white-space: nowrap;
}

.route-update-featured-copy,
.route-update-compact-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.route-update-featured-copy {
  gap: 4px;
}

.route-update-featured-copy strong {
  overflow: hidden;
  font-size: 1.05rem;
  font-weight: 760;
  letter-spacing: -0.012em;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-update-featured-copy p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--route-muted);
  font-size: 0.87rem;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.route-update-featured-entry > [data-icon],
.route-update-compact-entry > [data-icon] {
  margin-top: 4px;
  color: #6a86b5;
  transition: color 150ms var(--ease-standard), transform 150ms var(--ease-standard);
}

.route-update-featured-entry:hover > [data-icon],
.route-update-featured-entry:focus-visible > [data-icon],
.route-update-compact-entry:hover > [data-icon],
.route-update-compact-entry:focus-visible > [data-icon] {
  color: var(--route-blue);
  transform: translate(1px, -1px);
}

.route-update-compact-list {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.route-update-compact {
  display: flex;
  min-width: 0;
  padding: 16px 21px;
  flex: 1 1 0;
  flex-direction: column;
  border-bottom: 1px solid var(--route-line);
  justify-content: center;
}

.route-update-compact:last-child {
  border-bottom: 0;
}

.route-update-compact-product img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.route-update-compact-product strong {
  overflow: hidden;
  font-size: 0.98rem;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-update-compact-count {
  flex: 0 0 auto;
  color: var(--route-muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.route-update-compact-entry {
  display: grid;
  width: 100%;
  min-height: 51px;
  margin-top: 11px;
  padding: 7px 9px;
  border: 1px solid transparent;
  border-radius: 9px;
  align-items: center;
  background: transparent;
  color: var(--route-ink);
  cursor: pointer;
  grid-template-columns: 66px minmax(0, 1fr) 18px;
  gap: 8px;
  text-align: left;
  transition: background-color 150ms var(--ease-standard), border-color 150ms var(--ease-standard);
}

.route-update-compact-entry:hover,
.route-update-compact-entry:focus-visible {
  border-color: #d3e0f5;
  background: var(--route-blue-soft);
}

.route-update-compact-copy {
  gap: 3px;
}

.route-update-compact-copy strong {
  overflow: hidden;
  font-size: 0.91rem;
  font-weight: 720;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-update-empty {
  margin: 0;
  padding: 18px 0 6px;
  color: var(--route-muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.route-cases .quiet-button:hover,
.route-cases .quiet-button:focus-visible {
  background: rgb(255 255 255 / 0.12);
  border-color: rgb(255 255 255 / 0.3);
  color: #fff;
}

.route-learning-layout {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 18px;
}

.route-feature-tutorial {
  display: grid;
  min-width: 0;
  padding: 0;
  border: 1px solid var(--route-line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  color: var(--route-ink);
  cursor: pointer;
  grid-template-columns: 46% minmax(0, 1fr);
  text-align: left;
}

.route-feature-tutorial:hover {
  border-color: #9db8ec;
  box-shadow: 0 12px 28px rgb(30 72 147 / 0.08);
}

.route-feature-media {
  position: relative;
  min-height: 235px;
  background: var(--route-blue-soft);
}

.route-feature-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 235px;
  object-fit: cover;
}

.route-duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 6px;
  border-radius: 5px;
  background: rgb(20 34 58 / 0.86);
  color: #fff;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.route-media-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  place-items: center;
  background: #fff;
  color: var(--route-blue);
  box-shadow: 0 7px 16px rgb(18 58 124 / 0.15);
  transform: translate(-50%, -50%);
}

.route-media-play svg {
  width: 14px;
  height: 14px;
  margin-left: 2px;
}

.route-feature-copy {
  display: flex;
  min-width: 0;
  padding: 25px 25px 22px;
  flex-direction: column;
  justify-content: center;
}

.route-feature-copy small,
.route-tutorial-row small {
  color: var(--route-blue);
  font-size: 0.86rem;
  font-weight: 700;
}

.route-feature-copy strong {
  margin-top: 10px;
  font-size: 1.28rem;
  line-height: 1.45;
}

.route-feature-copy p {
  margin: 11px 0 0;
  color: var(--route-muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.route-inline-link {
  display: inline-flex;
  margin-top: 18px;
  align-items: center;
  gap: 5px;
  color: var(--route-blue);
  font-size: 0.88rem;
  font-weight: 700;
}

.route-tutorial-list {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border-top: 1px solid var(--route-line);
}

.route-tutorial-row {
  display: grid;
  min-width: 0;
  min-height: 78px;
  padding: 11px 4px;
  border: 0;
  border-bottom: 1px solid var(--route-line);
  align-items: center;
  background: transparent;
  color: var(--route-ink);
  cursor: pointer;
  grid-template-columns: 67px minmax(0, 1fr) auto;
  gap: 12px;
  text-align: left;
}

.route-tutorial-row:hover strong,
.route-tutorial-row:hover [data-icon] {
  color: var(--route-blue);
}

.route-tutorial-mark {
  position: relative;
  display: grid;
  width: 67px;
  height: 53px;
  overflow: hidden;
  border-radius: 8px;
  place-items: center;
  background: var(--route-blue-soft);
}

.route-tutorial-mark img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
}

.route-tutorial-mark b {
  position: absolute;
  right: 4px;
  bottom: 3px;
  padding: 2px 3px;
  border-radius: 3px;
  background: rgb(20 34 58 / 0.8);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}

.route-tutorial-row > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.route-tutorial-row strong {
  overflow: hidden;
  font-size: 0.96rem;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-cases {
  display: grid;
  padding: 29px 31px;
  border-radius: 16px;
  background: #14223a;
  color: #fff;
  grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.28fr);
  gap: 48px;
}

.route-cases .eyebrow {
  color: #9db8ff;
}

.route-case-intro h2 {
  color: #fff;
}

.route-case-intro > p:not(.eyebrow) {
  color: #bdc9db;
}

.route-case-intro .quiet-button {
  margin-top: 19px;
  padding-left: 0;
  color: #d7e3ff;
}

.route-case-story {
  min-width: 0;
  padding: 5px 0 5px 30px;
  border: 0;
  border-left: 1px solid rgb(161 188 255 / 0.4);
  background: transparent;
  color: #fff;
  cursor: pointer;
  text-align: left;
}

.route-case-kicker {
  color: #9db8ff;
  font-size: 0.82rem;
  font-weight: 700;
}

.route-case-story h3 {
  max-width: 640px;
  margin: 13px 0 9px;
  font-size: 1.34rem;
  line-height: 1.45;
}

.route-case-story > p {
  max-width: 640px;
  margin: 0;
  color: #c3cede;
  font-size: 0.94rem;
  line-height: 1.75;
}

.route-case-result {
  display: flex;
  margin-top: 22px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.route-case-result strong {
  font-size: 1.13rem;
}

.route-case-result > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #d7e3ff;
  font-size: 0.88rem;
  font-weight: 700;
}

@media (max-width: 980px) {
  .route-hero {
    padding: 36px 32px;
    grid-template-columns: minmax(0, 1.06fr) minmax(300px, 0.94fr);
    gap: 28px;
  }

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

  .route-product-item:nth-child(2) {
    border-right: 0;
  }

  .route-product-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--route-line);
  }

  .route-update-board {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  }
}

@media (min-width: 721px) {
  .route-hero h1 span,
  .route-hero h1 em {
    white-space: nowrap;
  }
}

@media (max-width: 720px) {
  .route-hero {
    display: flex;
    padding: 28px 20px 20px;
    flex-direction: column;
    gap: 24px;
  }

  .route-hero h1 {
    font-size: clamp(2.1rem, 10vw, 2.8rem);
    line-height: 1.18;
    letter-spacing: 0;
    word-break: break-all;
  }

  .route-hero-lead {
    margin-top: 17px;
    font-size: 0.96rem;
  }

  .route-search {
    min-height: 51px;
  }

  .route-search .primary-button {
    padding-inline: 12px;
  }

  .route-hero-note {
    align-items: flex-start;
    flex-wrap: wrap;
    font-size: 0.84rem;
  }

  .route-note-rule {
    display: none;
  }

  .route-hero-rail {
    gap: 10px;
  }

  .route-visual,
  .route-visual img {
    min-height: 220px;
  }

  .route-section {
    margin-top: 36px;
  }

  .route-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .route-section-head p:not(.eyebrow),
  .route-case-intro > p:not(.eyebrow) {
    font-size: 0.95rem;
  }

  .route-product-list,
  .route-update-board {
    grid-template-columns: 1fr;
  }

  .route-product-item,
  .route-product-item:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--route-line);
  }

  .route-product-item:last-child {
    border-bottom: 0;
  }

  .route-update-featured {
    padding: 23px 20px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--route-line);
  }

  .route-update-compact {
    min-height: 126px;
    padding: 17px 20px;
  }

  .route-learning-layout,
  .route-cases {
    grid-template-columns: 1fr;
  }

  .route-feature-tutorial {
    grid-template-columns: 1fr;
  }

  .route-feature-media,
  .route-feature-media img {
    min-height: 190px;
  }

  .route-tutorial-list {
    margin-top: 9px;
  }

  .route-cases {
    padding: 24px 20px;
    gap: 26px;
  }

  .route-case-story {
    padding: 21px 0 0;
    border-top: 1px solid rgb(161 188 255 / 0.4);
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .route-home {
    width: 100%;
  }

  .route-hero {
    margin-inline: 0;
    border-radius: 14px;
  }

  .route-hero h1 {
    font-size: clamp(2.1rem, 11vw, 3rem);
    letter-spacing: -0.035em;
  }

  .route-search {
    padding-left: 12px;
  }

  .route-search .primary-button {
    width: 44px;
    padding: 0;
  }

  .route-search .primary-button span:first-child {
    display: none;
  }

  .route-event-note {
    grid-template-columns: 82px minmax(0, 1fr) auto;
    gap: 9px;
  }

  .route-event-thumb {
    height: 53px;
  }

  .route-event-note em {
    font-size: 0.82rem;
  }

  .route-product-item {
    grid-template-columns: auto 40px minmax(0, 1fr) auto;
    min-height: 112px;
    padding: 14px 13px;
  }

  .route-product-logo {
    width: 40px;
    height: 40px;
  }

  .route-product-copy small {
    font-size: 0.86rem;
  }

  .route-update-featured {
    padding: 20px 15px 14px;
  }

  .route-update-featured-entry {
    min-height: 94px;
    grid-template-columns: 65px minmax(0, 1fr) 18px;
    gap: 9px;
  }

  .route-update-featured-copy strong {
    font-size: 1rem;
  }

  .route-update-featured-copy p {
    font-size: 0.84rem;
  }

  .route-update-compact {
    min-height: 120px;
    padding: 16px 15px;
  }

  .route-update-compact-entry {
    grid-template-columns: 61px minmax(0, 1fr) 18px;
  }

  .route-feature-copy {
    padding: 20px 18px 19px;
  }

  .route-feature-copy strong {
    font-size: 1.12rem;
  }

  .route-tutorial-row {
    grid-template-columns: 60px minmax(0, 1fr) auto;
    gap: 9px;
  }

  .route-tutorial-mark {
    width: 60px;
    height: 49px;
  }

  .route-tutorial-row strong {
    font-size: 0.86rem;
  }

  .route-cases {
    border-radius: 13px;
  }

  .route-case-story h3 {
    font-size: 1.12rem;
  }

  .route-case-story > p {
    font-size: 0.88rem;
  }
}

/* Learning Studio home direction */
.studio-home {
  --studio-ink: #142238;
  --studio-muted: #667085;
  --studio-line: #dfe5ed;
  --studio-blue: #155eef;
  --studio-blue-soft: #eaf1ff;
  --studio-paper: #f4f7fb;
  --studio-navy: #142238;
  max-width: 1240px;
  margin: 0 auto;
  color: var(--studio-ink);
}

.studio-home button {
  font: inherit;
}

.studio-home-hero {
  display: grid;
  min-height: 390px;
  padding: 40px 46px 36px;
  grid-template-columns: minmax(0, .92fr) minmax(360px, 1.08fr);
  gap: 34px;
  align-items: stretch;
  border: 1px solid var(--studio-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 42px rgb(27 52 94 / .07);
}

.studio-home-hero-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.studio-home .eyebrow {
  margin-bottom: 9px;
  color: var(--studio-blue);
  font-size: .68rem;
  letter-spacing: .12em;
}

.studio-home-hero h1 {
  max-width: 560px;
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  font-weight: 780;
  letter-spacing: -.065em;
  line-height: 1.04;
}

.studio-home-hero h1 .headline-line {
  display: block;
  white-space: nowrap;
}

.studio-home-hero h1 .headline-line + .headline-line {
  margin-top: 8px;
  color: var(--studio-blue);
}

.studio-home-lead {
  max-width: 510px;
  margin: 17px 0 0;
  color: var(--studio-muted);
  font-size: .91rem;
  line-height: 1.8;
}

.studio-home-search {
  display: flex;
  max-width: 540px;
  min-height: 49px;
  margin-top: 22px;
  padding: 4px 4px 4px 14px;
  align-items: center;
  gap: 9px;
  border: 1px solid #cbd8ed;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 7px 22px rgb(33 77 150 / .08);
}

.studio-home-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--studio-ink);
  font-size: .82rem;
}

.studio-home-search .primary-button {
  min-height: 39px;
  padding: 0 13px;
  border-radius: 7px;
  background: var(--studio-blue);
  white-space: nowrap;
}

.studio-home-trust {
  display: flex;
  margin-top: 16px;
  align-items: center;
  gap: 7px;
  color: #8a96a8;
  font-size: .68rem;
}

.studio-home-trust .status-dot {
  width: 6px;
  height: 6px;
  background: #159570;
}

.studio-home-trust-divider {
  width: 1px;
  height: 12px;
  margin: 0 3px;
  background: var(--studio-line);
}

.studio-feature-video {
  position: relative;
  display: block;
  min-height: 300px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 13px;
  background: var(--studio-navy);
  color: #fff;
  cursor: pointer;
  text-align: left;
}

.studio-feature-video > img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  opacity: .66;
  transition: transform var(--duration-normal) var(--ease-standard), opacity var(--duration-normal) var(--ease-standard);
}

.studio-feature-video:hover > img {
  transform: scale(1.025);
  opacity: .78;
}

.studio-video-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(10 24 49 / .02) 26%, rgb(10 24 49 / .86) 100%);
}

.studio-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid rgb(255 255 255 / .46);
  border-radius: 50%;
  background: #fff;
  color: var(--studio-blue);
  box-shadow: 0 10px 28px rgb(4 14 32 / .24);
}

.studio-video-play svg {
  width: 18px;
  height: 18px;
  margin-left: 2px;
}

.studio-video-meta {
  position: absolute;
  right: 19px;
  bottom: 17px;
  left: 19px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.studio-video-meta strong,
.studio-video-meta small {
  display: block;
}

.studio-video-meta strong {
  font-size: .95rem;
}

.studio-video-meta small {
  margin-top: 4px;
  color: #c8d4e8;
  font-size: .68rem;
}

.studio-video-arrow {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / .34);
  border-radius: 7px;
  color: #fff;
}

.studio-video-arrow svg {
  width: 14px;
  height: 14px;
}

.studio-section {
  margin-top: 37px;
  padding: 0 0 1px;
}

.studio-section-heading {
  display: flex;
  margin-bottom: 17px;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
}

.studio-section-heading h2 {
  margin: 0;
  font-size: 1.52rem;
  letter-spacing: -.045em;
  line-height: 1.15;
}

.studio-section-heading p:not(.eyebrow) {
  margin: 5px 0 0;
  color: var(--studio-muted);
  font-size: .75rem;
  line-height: 1.6;
}

.studio-section-heading .section-link {
  color: var(--studio-blue);
  font-size: .74rem;
}

.studio-product-shelf {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1fr;
  gap: 9px;
}

.studio-product-chip {
  display: flex;
  min-height: 92px;
  padding: 14px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--studio-line);
  border-radius: 10px;
  background: #fff;
  color: var(--studio-ink);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--duration-normal) var(--ease-standard), transform var(--duration-normal) var(--ease-standard), box-shadow var(--duration-normal) var(--ease-standard);
}

.studio-product-chip:hover {
  border-color: #b6caf1;
  box-shadow: 0 10px 25px rgb(27 52 94 / .08);
  transform: translateY(-2px);
}

.studio-product-chip.is-featured {
  border-color: var(--studio-blue);
  background: var(--studio-blue);
  color: #fff;
}

.studio-product-chip-logo {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: #fff;
}

.studio-product-chip-logo img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.studio-product-chip-copy {
  min-width: 0;
}

.studio-product-chip-copy strong,
.studio-product-chip-copy small {
  display: block;
}

.studio-product-chip-copy strong {
  font-size: .79rem;
}

.studio-product-chip-copy small {
  margin-top: 4px;
  overflow: hidden;
  color: var(--studio-muted);
  font-size: .64rem;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-product-chip.is-featured .studio-product-chip-copy small {
  color: #dce7ff;
}

.studio-product-chip-arrow {
  display: grid;
  width: 22px;
  height: 22px;
  margin-left: auto;
  flex: 0 0 auto;
  place-items: center;
  color: var(--studio-blue);
}

.studio-product-chip.is-featured .studio-product-chip-arrow {
  color: #fff;
}

.studio-product-chip-arrow svg {
  width: 14px;
  height: 14px;
}

.studio-updates-section {
  padding: 26px 22px 25px;
  border-radius: 13px;
  background: var(--studio-paper);
}

.studio-update-layout {
  display: grid;
  grid-template-columns: .86fr 1.14fr;
  gap: 20px;
}

.studio-update-feature {
  display: flex;
  min-height: 187px;
  padding: 22px;
  flex-direction: column;
  justify-content: center;
  border-radius: 11px;
  background: var(--studio-navy);
  color: #fff;
}

.studio-update-feature .eyebrow {
  color: #9db8ff;
}

.studio-update-feature strong {
  max-width: 270px;
  margin-top: 13px;
  font-size: 1.22rem;
  letter-spacing: -.04em;
  line-height: 1.28;
}

.studio-update-feature p {
  margin: 7px 0 0;
  color: #b9c5d7;
  font-size: .7rem;
}

.studio-update-feature .quiet-button {
  width: fit-content;
  min-height: 30px;
  margin-top: 15px;
  padding: 0;
  color: #dce7ff;
  font-size: .68rem;
}

.studio-update-list {
  border-top: 1px solid var(--studio-line);
}

.studio-update-row {
  display: grid;
  width: 100%;
  min-height: 47px;
  padding: 7px 0;
  grid-template-columns: 74px minmax(0, 1fr) 22px;
  gap: 10px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--studio-line);
  background: transparent;
  color: var(--studio-ink);
  cursor: pointer;
  text-align: left;
}

.studio-update-version {
  color: var(--studio-blue);
  font: 800 .67rem/1 "Bahnschrift", "Arial", sans-serif;
}

.studio-update-row strong,
.studio-update-row small {
  display: block;
}

.studio-update-row strong {
  font-size: .69rem;
}

.studio-update-row small {
  margin-top: 3px;
  overflow: hidden;
  color: var(--studio-muted);
  font-size: .68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-update-row > [data-icon] {
  color: var(--studio-blue);
}

.studio-update-row svg {
  width: 14px;
  height: 14px;
}

.studio-tutorial-layout {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
}

.studio-tutorial-main {
  display: grid;
  min-height: 184px;
  padding: 0;
  grid-template-columns: .92fr 1.08fr;
  border: 1px solid var(--studio-line);
  border-radius: 11px;
  background: #fff;
  color: var(--studio-ink);
  cursor: pointer;
  overflow: hidden;
  text-align: left;
}

.studio-tutorial-main-visual {
  position: relative;
  min-height: 184px;
  overflow: hidden;
  background: var(--studio-blue-soft);
}

.studio-tutorial-main-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.studio-tutorial-main-visual > span {
  position: absolute;
  right: 9px;
  bottom: 8px;
  padding: 3px 5px;
  border-radius: 4px;
  background: rgb(16 24 40 / .8);
  color: #fff;
  font-size: .63rem;
}

.studio-tutorial-main-copy {
  display: flex;
  padding: 20px;
  flex-direction: column;
  justify-content: center;
}

.studio-tutorial-main-copy small {
  color: var(--studio-blue);
  font-size: .65rem;
  font-weight: 700;
}

.studio-tutorial-main-copy strong {
  margin-top: 11px;
  font-size: 1.08rem;
  letter-spacing: -.035em;
  line-height: 1.32;
}

.studio-tutorial-main-copy p {
  margin: 8px 0 0;
  color: var(--studio-muted);
  font-size: .68rem;
  line-height: 1.65;
}

.studio-inline-link {
  display: inline-flex;
  margin-top: 14px;
  align-items: center;
  gap: 5px;
  color: var(--studio-blue);
  font-size: .67rem;
  font-weight: 700;
}

.studio-inline-link svg {
  width: 14px;
  height: 14px;
}

.studio-tutorial-list {
  border-top: 1px solid var(--studio-line);
}

.studio-tutorial-row {
  display: grid;
  width: 100%;
  min-height: 61px;
  padding: 8px 0;
  grid-template-columns: 70px minmax(0, 1fr) 18px;
  gap: 10px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--studio-line);
  background: transparent;
  color: var(--studio-ink);
  cursor: pointer;
  text-align: left;
}

.studio-tutorial-thumb {
  position: relative;
  display: grid;
  width: 70px;
  height: 44px;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  background: var(--studio-blue-soft);
}

.studio-tutorial-thumb img {
  max-width: 68%;
  max-height: 68%;
  object-fit: contain;
}

.studio-tutorial-thumb span {
  position: absolute;
  right: 4px;
  bottom: 3px;
  padding: 2px 3px;
  border-radius: 3px;
  background: rgb(16 24 40 / .8);
  color: #fff;
  font-size: .56rem;
}

.studio-tutorial-row small,
.studio-tutorial-row strong {
  display: block;
}

.studio-tutorial-row small {
  color: var(--studio-blue);
  font-size: .62rem;
}

.studio-tutorial-row strong {
  margin-top: 4px;
  overflow: hidden;
  font-size: .68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-tutorial-row > [data-icon] {
  color: var(--studio-blue);
}

.studio-event-section {
  display: grid;
  min-height: 143px;
  padding: 19px 22px;
  grid-template-columns: 180px minmax(0, 1fr) 125px;
  gap: 18px;
  align-items: center;
  border: 1px solid #d9e1ed;
  border-radius: 13px;
  background: #fff;
}

.studio-event-poster {
  position: relative;
  width: 180px;
  height: 101px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--studio-blue-soft);
}

.studio-event-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.studio-poster-label {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 3px 5px;
  border-radius: 4px;
  background: rgb(16 24 40 / .78);
  color: #fff;
  font-size: .58rem;
}

.studio-event-copy h2 {
  margin: 0;
  font-size: 1.27rem;
  letter-spacing: -.045em;
}

.studio-event-copy > p:not(.eyebrow) {
  max-width: 490px;
  margin: 6px 0 10px;
  color: var(--studio-muted);
  font-size: .68rem;
  line-height: 1.6;
}

.studio-event-copy .quiet-button {
  min-height: 28px;
  padding: 0;
  color: var(--studio-blue);
  font-size: .68rem;
}

.studio-event-side {
  display: flex;
  min-height: 92px;
  padding-left: 17px;
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid var(--studio-line);
  color: #8a96a8;
  font-size: .64rem;
  line-height: 1.5;
}

.studio-event-side-mark {
  color: #b56d28;
  font-size: .84rem;
  font-weight: 800;
  line-height: 1.35;
}

.studio-case-section {
  display: grid;
  margin-top: 37px;
  padding: 29px 32px 31px;
  grid-template-columns: .8fr 1.2fr;
  gap: 34px;
  border-radius: 13px;
  background: var(--studio-navy);
  color: #fff;
}

.studio-case-section .eyebrow {
  color: #9db8ff;
}

.studio-case-section h2 {
  margin: 0;
  font-size: 1.47rem;
  letter-spacing: -.045em;
}

.studio-case-section > div:first-child > p:not(.eyebrow) {
  max-width: 210px;
  margin: 7px 0 0;
  color: #b7c3d5;
  font-size: .7rem;
  line-height: 1.65;
}

.studio-case-story {
  min-height: 144px;
  padding-left: 25px;
  border-left: 1px solid rgb(157 184 255 / .34);
}

.studio-case-tag {
  color: #9db8ff;
  font-size: .65rem;
  font-weight: 700;
}

.studio-case-story h3 {
  max-width: 520px;
  margin: 12px 0 7px;
  font-size: 1.18rem;
  letter-spacing: -.035em;
  line-height: 1.35;
}

.studio-case-story > p {
  max-width: 520px;
  margin: 0;
  color: #b7c3d5;
  font-size: .69rem;
  line-height: 1.65;
}

.studio-case-footer {
  display: flex;
  margin-top: 17px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.studio-case-footer strong {
  color: #fff;
  font-size: 1.05rem;
}

.studio-case-footer .quiet-button {
  min-height: 29px;
  padding: 0;
  color: #dce7ff;
  font-size: .68rem;
}

@media (max-width: 980px) {
  .studio-home {
    max-width: none;
  }

  .studio-home-hero {
    grid-template-columns: 1fr 1fr;
    padding-inline: 29px;
  }

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

  .studio-event-section {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  .studio-event-poster {
    width: 150px;
    height: 84px;
  }

  .studio-event-side {
    display: none;
  }
}

@media (max-width: 720px) {
  .studio-home-hero {
    display: flex;
    padding: 28px 20px 20px;
    flex-direction: column;
  }

  .studio-home-hero h1 {
    font-size: 3rem;
  }

  .studio-home-hero h1 .headline-line {
    white-space: normal;
  }

  .studio-feature-video,
  .studio-feature-video > img {
    min-height: 220px;
  }

  .studio-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .studio-product-shelf,
  .studio-update-layout,
  .studio-tutorial-layout,
  .studio-case-section {
    grid-template-columns: 1fr;
  }

  .studio-updates-section {
    padding: 21px 16px;
  }

  .studio-tutorial-main {
    grid-template-columns: 1fr;
  }

  .studio-tutorial-main-visual {
    min-height: 170px;
  }

  .studio-event-section {
    display: flex;
    padding: 17px;
    align-items: flex-start;
    flex-direction: column;
  }

  .studio-event-poster {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .studio-case-section {
    padding: 25px 21px;
    gap: 24px;
  }

  .studio-case-story {
    min-height: 0;
    padding-top: 20px;
    padding-left: 0;
    border-top: 1px solid rgb(157 184 255 / .34);
    border-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .studio-feature-video > img,
  .studio-product-chip {
    transition: none;
  }
}

/* Case library: lead with the delivery method, then let the examples breathe. */
.case-page-intro {
  margin-bottom: 20px;
}

.case-page-intro > div:first-child {
  min-width: 0;
}

.case-page-intro h1 {
  max-width: 690px;
  letter-spacing: -0.03em;
}

.case-page-stats {
  display: flex;
  min-width: 290px;
  gap: 24px;
  align-items: stretch;
}

.case-page-stats span {
  display: flex;
  min-width: 72px;
  padding-left: 16px;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--color-border);
}

.case-page-stats b {
  color: var(--color-foreground);
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.case-page-stats small {
  margin-top: 7px;
  color: var(--color-muted-foreground);
  font-size: 0.7rem;
  white-space: nowrap;
}

.case-filter-bar {
  margin-bottom: 22px;
}

.case-method-band {
  display: grid;
  padding: 26px 28px;
  border-radius: 16px;
  background: #14223a;
  color: #fff;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: 38px;
  align-items: center;
}

.case-method-copy .eyebrow {
  color: #9db8ff;
}

.case-method-copy h2 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.case-method-copy p:not(.eyebrow) {
  max-width: 260px;
  margin: 8px 0 0;
  color: #bdc9db;
  font-size: 0.78rem;
  line-height: 1.65;
}

.case-method-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.case-method-steps > span {
  display: flex;
  min-height: 90px;
  padding-left: 17px;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid rgb(157 184 255 / 0.35);
}

.case-method-steps b {
  color: #9db8ff;
  font: 800 0.72rem/1 "Bahnschrift", "Arial", sans-serif;
  letter-spacing: 0.08em;
}

.case-method-steps strong {
  margin-top: 10px;
  font-size: 0.96rem;
}

.case-method-steps small {
  margin-top: 5px;
  color: #bdc9db;
  font-size: 0.7rem;
}

.case-featured-section {
  margin-top: 34px;
}

.case-featured-head,
.case-library-head {
  display: flex;
  margin-bottom: 15px;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.case-featured-head h2,
.case-library-head h2 {
  margin: 0;
  font-size: 1.36rem;
  letter-spacing: -0.035em;
}

.case-featured-head > span,
.case-library-head > span {
  color: var(--color-muted-foreground);
  font-size: 0.72rem;
  white-space: nowrap;
}

.case-featured-card {
  display: grid;
  width: 100%;
  min-height: 272px;
  padding: 0;
  border: 1px solid #d7e1f1;
  border-radius: 17px;
  overflow: hidden;
  background: #fff;
  color: var(--color-foreground);
  cursor: pointer;
  grid-template-columns: minmax(0, 1.1fr) minmax(270px, 0.9fr);
  text-align: left;
  transition: border-color var(--duration-normal) var(--ease-standard), box-shadow var(--duration-normal) var(--ease-standard), transform var(--duration-normal) var(--ease-standard);
}

.case-featured-card:hover,
.case-featured-card:focus-visible {
  border-color: #9db8ec;
  box-shadow: 0 18px 38px rgb(34 70 124 / 0.11);
  transform: translateY(-2px);
}

.case-featured-copy {
  display: flex;
  min-width: 0;
  padding: 29px 32px 25px;
  flex-direction: column;
}

.case-featured-kicker,
.case-featured-partner {
  color: var(--color-primary);
  font-size: 0.74rem;
  font-weight: 700;
}

.case-featured-title {
  max-width: 580px;
  margin-top: 15px;
  font-size: 1.55rem;
  font-weight: 760;
  letter-spacing: -0.045em;
  line-height: 1.32;
  text-wrap: balance;
}

.case-featured-partner {
  margin-top: 11px;
  color: var(--color-muted-foreground);
  font-weight: 600;
}

.case-featured-summary {
  max-width: 570px;
  margin-top: 13px;
  color: var(--color-muted-foreground);
  font-size: 0.86rem;
  line-height: 1.72;
}

.case-featured-foot {
  display: flex;
  margin-top: auto;
  padding-top: 20px;
  align-items: end;
  justify-content: space-between;
  gap: 15px;
}

.case-featured-metric {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.case-featured-metric b {
  color: var(--color-success);
  font-size: 1.2rem;
}

.case-featured-metric small {
  color: var(--color-muted-foreground);
  font-size: 0.68rem;
}

.case-featured-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--color-primary);
  font-size: 0.74rem;
  font-weight: 700;
  white-space: nowrap;
}

.case-featured-visual {
  position: relative;
  display: flex;
  min-width: 0;
  padding: 28px;
  overflow: hidden;
  flex-direction: column;
  justify-content: center;
  background: #eef4ff;
}

.case-featured-visual::before,
.case-featured-visual::after {
  position: absolute;
  border: 1px solid rgb(0 85 255 / 0.13);
  border-radius: 50%;
  content: "";
}

.case-featured-visual::before {
  top: -92px;
  right: -42px;
  width: 260px;
  height: 260px;
}

.case-featured-visual::after {
  right: 37px;
  bottom: -148px;
  width: 300px;
  height: 300px;
}

.case-visual-label {
  position: relative;
  z-index: 1;
  color: var(--color-primary);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.case-flow {
  position: relative;
  z-index: 1;
  display: flex;
  margin-top: 25px;
  align-items: center;
  gap: 9px;
}

.case-flow i {
  display: grid;
  min-width: 65px;
  min-height: 54px;
  padding: 8px;
  border: 1px solid #c8d7f3;
  border-radius: 9px;
  place-items: center;
  background: rgb(255 255 255 / 0.82);
  color: var(--color-foreground);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 700;
  text-align: center;
}

.case-flow b {
  color: var(--color-primary);
  font-size: 0.92rem;
}

.case-visual-note {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  color: var(--color-muted-foreground);
  font-size: 0.72rem;
}

.case-library {
  margin-top: 36px;
}

.case-compact-list {
  border-top: 1px solid var(--color-border);
}

.case-compact-card {
  display: grid;
  width: 100%;
  min-height: 112px;
  padding: 18px 4px;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  align-items: center;
  background: transparent;
  color: var(--color-foreground);
  cursor: pointer;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 15px;
  text-align: left;
  transition: color var(--duration-fast) var(--ease-standard), background-color var(--duration-fast) var(--ease-standard);
}

.case-compact-card:hover,
.case-compact-card:focus-visible {
  background: #fbfcff;
  color: var(--color-primary);
}

.case-compact-index {
  color: #a3afc0;
  font: 800 0.82rem/1 "Bahnschrift", "Arial", sans-serif;
}

.case-compact-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.case-compact-meta {
  color: var(--color-primary);
  font-size: 0.7rem;
  font-weight: 700;
}

.case-compact-copy strong {
  margin-top: 5px;
  color: var(--color-foreground);
  font-size: 0.96rem;
  line-height: 1.4;
}

.case-compact-copy small {
  display: block;
  max-width: 680px;
  margin-top: 5px;
  overflow: hidden;
  color: var(--color-muted-foreground);
  font-size: 0.76rem;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.case-compact-tags {
  display: flex;
  margin-top: 9px;
  gap: 6px;
  flex-wrap: wrap;
}

.case-compact-tags .tag {
  min-height: 21px;
  font-size: 0.62rem;
}

.case-compact-result {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--color-success);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.case-empty {
  margin-top: 24px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-surface);
}

@media (max-width: 900px) {
  .case-page-stats {
    min-width: 250px;
    gap: 15px;
  }

  .case-method-band {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 720px) {
  .case-page-stats {
    width: 100%;
    min-width: 0;
    justify-content: space-between;
  }

  .case-page-stats span {
    flex: 1;
  }

  .case-method-band {
    padding: 23px 20px;
  }

  .case-method-steps {
    gap: 10px;
  }

  .case-method-steps > span {
    padding-left: 11px;
  }

  .case-method-steps strong {
    font-size: 0.82rem;
  }

  .case-method-steps small {
    font-size: 0.64rem;
  }

  .case-featured-head,
  .case-library-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

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

  .case-featured-copy {
    padding: 24px 20px 21px;
  }

  .case-featured-title {
    font-size: 1.3rem;
  }

  .case-featured-visual {
    min-height: 174px;
    padding: 22px 20px;
  }

  .case-flow {
    margin-top: 18px;
  }

  .case-flow i {
    min-width: 58px;
    min-height: 48px;
    font-size: 0.64rem;
  }

  .case-compact-card {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
  }

  .case-compact-result {
    grid-column: 2;
    justify-self: start;
    margin-top: 7px;
  }

  .case-compact-copy small {
    white-space: normal;
  }
}
