/* Modern AI Studio Design System — Fast, Clean, Light-First, GPU 60fps */
:root {
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-soft: #F1F5F9;
  --ink: #0F172A;
  --ink-muted: #475569;
  --slate: #64748B;
  --line: rgba(15, 23, 42, 0.08);
  --line-strong: rgba(15, 23, 42, 0.16);
  --primary: #4F46E5;
  --primary-end: #2563EB;
  --primary-soft: rgba(79, 70, 229, 0.09);
  --primary-gradient: linear-gradient(135deg, #4F46E5 0%, #2563EB 100%);
  --success: #10B981;
  --amber: #F59E0B;
  --danger: #E11D48;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 30px -8px rgba(15, 23, 42, 0.08);
  --shadow-hover: 0 18px 36px -12px rgba(79, 70, 229, 0.18), 0 6px 14px -6px rgba(15, 23, 42, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sans: "Plus Jakarta Sans", "Manrope", system-ui, -apple-system, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, monospace;
  /* Legacy token aliases for auxiliary pages */
  --paper: #F8FAFC;
  --paper-deep: #F1F5F9;
  --charcoal: #0F172A;
  --cobalt: #4F46E5;
  --vermilion: #E11D48;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.ops-body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.ops-body a { color: inherit; }
.sr-only { position: absolute!important; clip: rect(1px,1px,1px,1px); height: 1px; width: 1px; overflow: hidden; white-space: nowrap; }
.ops-skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--primary); color: #fff!important; padding: 10px 16px;
  border-radius: var(--radius-sm); font: 600 13px var(--sans); text-decoration: none;
}
.ops-skip-link:focus { top: 14px; }
.ops-body :focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Header Glassmorphism */
.ops-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.ops-header.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
}
.ops-header__inner {
  width: min(1360px, 100%);
  height: 64px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
  display: flex;
  align-items: center;
  gap: 20px;
}
.ops-brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; flex: 0 0 auto; min-height: 44px;
}
.ops-brand__mark {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.28);
}
.ops-brand__type {
  font-size: 15px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--ink);
}
.ops-brand__type b { color: var(--primary); }
.ops-brand__type small {
  display: block; margin-top: 2px; color: var(--slate);
  font: 500 10px var(--mono); letter-spacing: 0.03em; text-transform: uppercase;
}
.ops-nav {
  display: flex; align-items: center; gap: 4px; margin-left: auto;
}
.ops-nav a {
  display: inline-flex; align-items: center; min-height: 40px;
  padding: 0 14px; border-radius: var(--radius-pill);
  color: var(--ink-muted); text-decoration: none; font-size: 14px; font-weight: 600;
  transition: color 0.16s var(--ease), background 0.16s var(--ease);
}
.ops-nav a:hover { color: var(--ink); background: var(--surface-soft); }
.ops-nav a.is-active { color: var(--primary); background: var(--primary-soft); font-weight: 700; }

.ops-header__actions { display: flex; gap: 8px; align-items: center; position: relative; }
.ops-login {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 16px; border-radius: var(--radius-pill);
  background: var(--primary-gradient); color: #FFFFFF!important;
  text-decoration: none; font-size: 13px; font-weight: 700;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.ops-login:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35); }
.ops-login:active { transform: scale(0.97); }

.ops-account {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px;
  padding: 4px 12px 4px 4px; border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong); background: var(--surface);
  font: 600 13px var(--sans); color: var(--ink); cursor: pointer;
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease);
}
.ops-account:hover { border-color: var(--primary); background: var(--surface-soft); }
.ops-account > span:first-child {
  display: grid; place-items: center; width: 30px; height: 30px;
  border-radius: 50%; background: var(--primary-gradient); color: #fff; font-size: 12px; font-weight: 700;
}
.ops-account-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 80;
  min-width: 200px; background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius-md); box-shadow: var(--shadow-md); padding: 6px;
}
.ops-account-menu a {
  display: flex; align-items: center; min-height: 40px; padding: 0 12px;
  border-radius: var(--radius-sm); text-decoration: none; font-size: 13px; font-weight: 600; color: var(--ink-muted);
}
.ops-account-menu a:hover { background: var(--surface-soft); color: var(--primary); }

.ops-menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong); background: var(--surface); padding: 10px; cursor: pointer;
}
.ops-menu-toggle span { display: block; height: 2px; margin: 5px 0; border-radius: 2px; background: var(--ink); }
.ops-mobile-menu {
  border-top: 1px solid var(--line); background: var(--surface); padding: 12px 16px 18px;
}
.ops-mobile-menu a {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px;
  border-radius: var(--radius-sm); text-decoration: none; font-size: 15px; font-weight: 600; color: var(--ink);
}
.ops-mobile-menu a.is-active { background: var(--primary-soft); color: var(--primary); }

/* Common Buttons */
.ops-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: var(--radius-pill);
  border: 0; background: var(--primary-gradient); color: #fff!important;
  text-decoration: none; font-size: 14px; font-weight: 700; cursor: pointer;
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.24);
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.ops-button:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(79, 70, 229, 0.32); }
.ops-button:active { transform: scale(0.97); }
.ops-button--paper {
  background: var(--surface); color: var(--ink)!important;
  border: 1px solid var(--line-strong); box-shadow: var(--shadow-sm);
}
.ops-button--paper:hover { background: var(--surface-soft); box-shadow: var(--shadow-md); }

/* Home Page */
.ops-page { width: min(1360px, 100%); margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); }
.ops-hero-modern {
  position: relative;
  padding: clamp(40px, 6vw, 76px) 0 clamp(32px, 4vw, 52px);
  text-align: center;
}
.ops-hero-modern::before {
  content: ""; position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: min(820px, 100%); height: 320px; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(79, 70, 229, 0.13) 0%, rgba(37, 99, 235, 0.05) 45%, transparent 72%);
}
.ops-kicker {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0 0 16px; padding: 6px 14px; border-radius: var(--radius-pill);
  background: var(--primary-soft); color: var(--primary);
  font: 700 11px var(--mono); letter-spacing: 0.08em; text-transform: uppercase;
}
.ops-hero-modern h1 {
  max-width: 820px; margin: 0 auto;
  font-size: clamp(34px, 5vw, 60px); font-weight: 800; line-height: 1.08; letter-spacing: -0.04em;
  color: var(--ink);
}
.ops-hero-modern h1 em {
  font-style: normal;
  background: var(--primary-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ops-hero__lead {
  max-width: 620px; margin: 18px auto 0; color: var(--ink-muted);
  font-size: clamp(15px, 1.4vw, 18px); line-height: 1.6;
}
.ops-hero-search {
  display: flex; align-items: center; gap: 8px;
  width: min(640px, 100%); margin: 28px auto 0; padding: 6px;
  border-radius: var(--radius-pill); background: var(--surface);
  border: 1px solid var(--line-strong); box-shadow: var(--shadow-md);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.ops-hero-search:focus-within {
  border-color: var(--primary); box-shadow: 0 12px 30px -8px rgba(79, 70, 229, 0.25);
}
.ops-hero-search input {
  flex: 1; min-width: 0; height: 44px; border: 0; background: transparent;
  padding: 0 16px; font: 500 15px var(--sans); color: var(--ink); outline: none;
}
.ops-hero-search button {
  height: 44px; padding: 0 22px; border-radius: var(--radius-pill); border: 0;
  background: var(--primary-gradient); color: #fff; font: 700 14px var(--sans); cursor: pointer;
  transition: transform 0.15s var(--ease);
}
.ops-hero-search button:active { transform: scale(0.97); }
.ops-hero-pills {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
  max-width: 780px; margin: 20px auto 0;
}
.ops-pill {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
  border-radius: var(--radius-pill); background: var(--surface);
  border: 1px solid var(--line-strong); color: var(--ink-muted);
  text-decoration: none; font-size: 13px; font-weight: 600;
  transition: all 0.16s var(--ease);
}
.ops-pill:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); transform: translateY(-1px); }
.ops-pill.is-active { background: var(--primary-gradient); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(79,70,229,0.25); }

.ops-home-section { padding: clamp(32px, 5vw, 56px) 0; }
.ops-section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-bottom: 24px;
}
.ops-section-head h2 { margin: 0; font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -0.03em; }
.ops-section-head p { margin: 4px 0 0; color: var(--slate); font-size: 14px; }
.ops-section-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
  border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--line-strong);
  text-decoration: none; font-size: 13px; font-weight: 700; color: var(--primary);
  transition: background 0.16s var(--ease), transform 0.16s var(--ease);
}
.ops-section-link:hover { background: var(--primary-soft); transform: translateX(2px); }

.ops-format-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ops-format {
  display: flex; flex-direction: column; justify-content: space-between; min-height: 180px;
  padding: 26px; border-radius: var(--radius-lg); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); text-decoration: none;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
.ops-format:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); border-color: rgba(79,70,229,0.3); }
.ops-format__code { font: 700 11px var(--mono); color: var(--primary); letter-spacing: 0.08em; }
.ops-format h3 { margin: 14px 0 6px; font-size: 21px; font-weight: 800; letter-spacing: -0.03em; }
.ops-format p { margin: 0; color: var(--ink-muted); font-size: 14px; }

.ops-callout {
  margin-top: 24px; padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-lg); background: var(--primary-gradient); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  box-shadow: 0 20px 40px -15px rgba(79, 70, 229, 0.4);
}
.ops-callout h2 { margin: 0; max-width: 640px; font-size: clamp(24px, 3vw, 36px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; }
.ops-callout p { margin: 10px 0 0; max-width: 560px; color: rgba(255,255,255,0.88); font-size: 15px; }
.ops-callout .ops-button { background: #fff; color: var(--primary)!important; box-shadow: var(--shadow-md); }
.ops-callout .ops-button:hover { background: var(--surface-soft); }

/* Catalog Page & Top Filter Bar */
.ops-catalog-page { width: min(1360px, 100%); margin: 0 auto; padding: 24px clamp(16px, 3vw, 32px) 64px; }
.ops-catalog-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-bottom: 20px;
}
.ops-catalog-head h1 { margin: 0; font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; }
.ops-catalog-head p { margin: 6px 0 0; color: var(--ink-muted); font-size: 14px; max-width: 640px; }
.ops-catalog-count {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
  border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--line);
  font: 600 12px var(--mono); color: var(--ink-muted);
}
.ops-catalog-count strong { color: var(--primary); font-size: 14px; }

.ops-filter-bar {
  position: sticky; top: 64px; z-index: 40;
  margin-bottom: 24px; padding: 14px 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.ops-filter-bar__top {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.ops-filter-search {
  position: relative; flex: 1 1 260px; display: flex; align-items: center;
}
.ops-filter-search svg {
  position: absolute; left: 14px; width: 16px; height: 16px; color: var(--slate); pointer-events: none;
}
.ops-filter-search input {
  width: 100%; height: 44px; padding: 0 38px 0 40px;
  border-radius: var(--radius-pill); border: 1px solid var(--line-strong);
  background: var(--surface-soft); color: var(--ink); font: 500 14px var(--sans);
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease);
}
.ops-filter-search input:focus { background: var(--surface); border-color: var(--primary); outline: none; }
.ops-filter-clear {
  position: absolute; right: 8px; width: 30px; height: 30px; border-radius: 50%;
  border: 0; background: transparent; color: var(--slate); font-size: 18px; cursor: pointer;
  display: grid; place-items: center;
}
.ops-filter-clear:hover { background: var(--line); color: var(--ink); }

.ops-segmented {
  display: inline-flex; padding: 3px; border-radius: var(--radius-pill);
  background: var(--surface-soft); border: 1px solid var(--line);
}
.ops-segmented a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
  border-radius: var(--radius-pill); text-decoration: none;
  font-size: 13px; font-weight: 700; color: var(--ink-muted);
  transition: all 0.16s var(--ease);
}
.ops-segmented a.is-active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }

.ops-filter-pills {
  display: flex; align-items: center; gap: 8px; margin-top: 12px;
  overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.ops-filter-pills::-webkit-scrollbar { display: none; }
.ops-filter-pills a {
  flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
  border-radius: var(--radius-pill); background: var(--surface-soft); border: 1px solid transparent;
  text-decoration: none; font-size: 13px; font-weight: 600; color: var(--ink-muted);
  transition: all 0.16s var(--ease);
}
.ops-filter-pills a:hover { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.ops-filter-pills a.is-active { background: var(--primary-gradient); color: #fff; box-shadow: 0 4px 10px rgba(79,70,229,0.22); }

/* Card Grid (GPU 60fps + content-visibility) */
.ops-catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.ops-catalog-grid--masonry {
  display: block;
  columns: 4 260px;
  column-gap: 20px;
}
.ops-catalog-grid--masonry .ops-catalog-card {
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 20px;
  vertical-align: top;
}
.ops-catalog-grid--masonry .ops-catalog-card__media {
  aspect-ratio: auto;
}
.ops-catalog-grid--masonry .ops-catalog-card__media img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.ops-catalog-card {
  display: flex; flex-direction: column; min-width: 0;
  border-radius: var(--radius-md); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  overflow: hidden;
  content-visibility: auto; contain-intrinsic-size: 320px;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s var(--ease);
}
.ops-catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(79, 70, 229, 0.28);
}
.ops-catalog-card__media {
  position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden;
  background: var(--surface-soft); border-bottom: 1px solid var(--line);
}
.ops-catalog-card__media img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.35s var(--ease);
}
.ops-catalog-card:hover .ops-catalog-card__media img { transform: scale(1.04); }
.ops-type-badge {
  position: absolute; top: 10px; left: 10px;
  padding: 4px 10px; border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.72); backdrop-filter: blur(6px);
  color: #fff; font: 600 10px var(--mono); letter-spacing: 0.06em; text-transform: uppercase;
}
.ops-type-badge.type-skill { background: rgba(79, 70, 229, 0.88); }

.ops-catalog-card__body {
  display: flex; flex-direction: column; flex: 1; padding: 14px 16px;
}
.ops-catalog-card__body h2, .ops-catalog-card__body h3 {
  margin: 0; font-size: 16px; font-weight: 700; line-height: 1.35; letter-spacing: -0.015em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ops-catalog-card__body h2 a, .ops-catalog-card__body h3 a { text-decoration: none; }
.ops-catalog-card__body h2 a:hover, .ops-catalog-card__body h3 a:hover { color: var(--primary); }
.ops-catalog-card__body p {
  margin: 8px 0 14px; color: var(--ink-muted); font-size: 13px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ops-catalog-card__body footer {
  margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.ops-card-cat {
  font: 600 11px var(--mono); color: var(--slate);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ops-catalog-save {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  min-width: 36px; min-height: 36px; padding: 0 10px;
  border-radius: var(--radius-pill); border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink-muted); text-decoration: none;
  font: 600 12px var(--sans); cursor: pointer;
  transition: all 0.16s var(--ease);
}
.ops-catalog-save:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.ops-catalog-save.is-saved { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }

/* Motion Reveal & Skeletons */
.ops-motion-reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.ops-motion-reveal.is-revealed { opacity: 1; transform: translateY(0); }
.ops-catalog-card.is-entering { opacity: 0; transform: translateY(12px); }
.ops-catalog-card.is-entered { opacity: 1; transform: translateY(0); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); transition-delay: var(--ops-enter-delay, 0ms); }

@keyframes ops-pulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 0.9; } }
.ops-skeleton-card {
  height: 290px; border-radius: var(--radius-md);
  background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  animation: ops-pulse 1.2s ease-in-out infinite;
}
.ops-skeleton-card__img { height: 155px; background: var(--surface-soft); }
.ops-skeleton-card__line { height: 14px; margin: 16px 16px 8px; border-radius: 6px; background: var(--surface-soft); }
.ops-skeleton-card__line.short { width: 60%; margin-top: 8px; }

.ops-catalog-load-shelf, .ops-catalog-pagination {
  margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
}
.ops-catalog-pagination { flex-direction: row; justify-content: center; gap: 12px; }
.ops-catalog-pagination a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--line-strong);
  text-decoration: none; font-weight: 700; font-size: 13px;
}
.ops-catalog-pagination a:hover { border-color: var(--primary); color: var(--primary); }

.ops-catalog-no-results, .ops-empty-state, .ops-saved-empty, .ops-news-empty {
  padding: 48px 24px; text-align: center; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px dashed var(--line-strong); color: var(--ink-muted);
}
.ops-catalog-no-results h2, .ops-saved-empty h2 { margin: 0 0 8px; color: var(--ink); }

/* Saved & News Lists */
.ops-saved-page, .ops-news-page { width: min(1280px, 100%); margin: 0 auto; padding: 32px clamp(16px, 3vw, 32px) 72px; }
.ops-saved-page > header, .ops-news-masthead { margin-bottom: 28px; }
.ops-saved-page h1, .ops-news-masthead h1 { margin: 8px 0 0; font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; letter-spacing: -0.035em; }
.ops-saved-grid, .ops-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ops-saved-grid > article, .ops-news-card {
  display: flex; flex-direction: column; border-radius: var(--radius-md);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  overflow: hidden; text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.ops-saved-grid > article:hover, .ops-news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.ops-saved-card__media, .ops-news-card__media { display: block; aspect-ratio: 16 / 10; background: var(--surface-soft); overflow: hidden; }
.ops-saved-card__media img, .ops-news-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ops-news-card__fallback { display: grid; place-items: center; height: 100%; color: var(--primary); }
.ops-saved-card__body, .ops-news-card__body { display: flex; flex-direction: column; flex: 1; padding: 16px; }
.ops-saved-card__body h2, .ops-news-card__body h2 { margin: 6px 0 8px; font-size: 18px; font-weight: 700; line-height: 1.3; }
.ops-news-card__meta { font: 600 11px var(--mono); color: var(--slate); }
.ops-news-card__link { margin-top: auto; padding-top: 12px; font-size: 13px; font-weight: 700; color: var(--primary); }
.ops-saved-flash { padding: 12px 16px; border-radius: var(--radius-md); margin-bottom: 18px; font-weight: 600; }
.ops-saved-flash.is-success { background: rgba(16,185,129,0.12); color: #065F46; }
.ops-saved-flash.is-error { background: rgba(225,29,72,0.12); color: #9F1239; }

/* Toast */
.ops-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 99999;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  padding: 12px 20px; border-radius: var(--radius-pill);
  background: var(--ink); color: #fff; font: 600 13px var(--sans);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.25);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.ops-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Footer */
.ops-footer {
  margin-top: 72px; background: var(--ink); color: #CBD5E1;
  padding: 52px clamp(16px, 4vw, 48px) 24px;
}
.ops-footer__grid {
  display: grid; grid-template-columns: minmax(260px, 1.8fr) repeat(2, minmax(140px, 0.6fr));
  gap: 36px; width: min(1280px, 100%); margin: auto;
}
.ops-footer h2 { margin: 8px 0 12px; color: #fff; font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -0.03em; }
.ops-footer p { margin: 0; color: #94A3B8; max-width: 460px; font-size: 14px; }
.ops-eyebrow, .ops-footer__label { font: 700 11px var(--mono)!important; letter-spacing: 0.1em; text-transform: uppercase; color: #818CF8!important; }
.ops-footer__grid > div:not(.ops-footer__brand) a {
  display: block; width: max-content; margin: 10px 0; color: #E2E8F0; text-decoration: none; font-size: 14px;
}
.ops-footer__grid > div:not(.ops-footer__brand) a:hover { color: #818CF8; }
.ops-footer__legal {
  width: min(1280px, 100%); padding-top: 24px; margin: 32px auto 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  color: #64748B; font: 500 11px var(--mono);
}

/* Responsive */
@media (max-width: 1120px) { .ops-catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ops-catalog-grid--masonry { columns: 3; } }
@media (max-width: 860px) {
  .ops-nav { display: none; }
  .ops-menu-toggle { display: block; }
  .ops-account__name { display: none; }
  .ops-catalog-grid, .ops-saved-grid, .ops-news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ops-catalog-grid--masonry { columns: 2; }
  .ops-format-grid { grid-template-columns: 1fr; }
  .ops-footer__grid { grid-template-columns: 1fr 1fr; }
  .ops-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .ops-brand__type small { display: none; }
  .ops-catalog-grid, .ops-saved-grid, .ops-news-grid { grid-template-columns: 1fr; }
  .ops-catalog-grid--masonry { columns: 1; }
  .ops-filter-bar { top: 64px; padding: 12px; border-radius: var(--radius-md); }
  .ops-footer__grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms!important; transition-duration: 0.01ms!important; scroll-behavior: auto!important; }
}
