/* 色板与排版对齐仓库根目录 DESIGN.md（Apple-inspired / getdesign） */
:root {
  --op-bg: #ffffff;
  --op-bg-card: #ffffff;
  --op-border-subtle: rgba(0, 0, 0, 0.06);
  --op-text-main: #1d1d1f;
  --op-text-sub: rgba(0, 0, 0, 0.8);
  --op-text-muted: rgba(0, 0, 0, 0.48);
  --op-primary: #0071e3;
  --op-link: #0066cc;
  --op-primary-rgb: 0, 113, 227;
  --op-primary-soft: rgba(0, 113, 227, 0.12);
  --op-filter-surface: #fafafc;
  --op-radius-card: 12px;
  --op-radius-control: 8px;
  --op-radius-search: 11px;
  --op-shadow-card: 0 3px 30px rgba(0, 0, 0, 0.1);
  --op-shadow-soft: 0 3px 24px rgba(0, 0, 0, 0.08);
  --op-max-width: none;
  --op-page-gutter: 24px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  background: var(--op-bg);
  color: var(--op-text-main);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

*:focus-visible {
  outline: 2px solid var(--op-primary);
  outline-offset: 2px;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
}

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

/* Header */

.op-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.op-header-inner {
  max-width: none;
  width: 100%;
  margin: 0 auto;
  padding: 10px var(--op-page-gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 480px) minmax(0, 1fr);
  align-items: center;
  gap: 16px 20px;
}

.op-logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
  min-width: 0;
}

.op-logo-text--inline {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 12px;
  min-width: 0;
}

.op-logo-text--inline .op-logo-title {
  flex-shrink: 0;
}

.op-logo-text--inline .op-logo-subtitle {
  font-size: 12px;
  color: var(--op-text-muted);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(42ch, 100%);
}

.op-header-search {
  width: 100%;
  max-width: 480px;
  justify-self: center;
}

.op-global-search {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--op-radius-search);
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: #ffffff;
  font: inherit;
  font-size: 14px;
  color: var(--op-text-main);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.op-global-search::placeholder {
  color: var(--op-text-muted);
}

.op-global-search:hover {
  border-color: rgba(0, 0, 0, 0.14);
}

.op-global-search:focus {
  outline: none;
  border-color: rgba(var(--op-primary-rgb), 0.55);
  box-shadow: 0 0 0 3px var(--op-primary-soft), 0 2px 12px rgba(0, 0, 0, 0.08);
}

.op-header-inner .op-nav {
  justify-self: end;
}

.op-logo-mark,
.op-brand-mark {
  width: 28px;
  height: 28px;
  border-radius: var(--op-radius-control);
  background: linear-gradient(145deg, #0071e3, #0077ed);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 4px 14px rgba(var(--op-primary-rgb), 0.35);
}

.op-card-icon.op-brand-mark {
  width: 26px;
  height: 26px;
  font-size: 15px;
  background: linear-gradient(145deg, #0071e3, #0077ed);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(var(--op-primary-rgb), 0.35);
}

.op-logo-title {
  font-size: 18px;
  font-weight: 650;
}

.op-logo-text:not(.op-logo-text--inline) .op-logo-subtitle {
  font-size: 12px;
  color: var(--op-text-muted);
}

.op-nav {
  display: flex;
  gap: 12px;
  font-size: 14px;
}

.op-nav-link {
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--op-text-sub);
}

.op-nav-link:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--op-text-main);
}

/* Sections */

.op-section {
  max-width: none;
  width: 100%;
  margin: 24px 0;
  padding: 0 var(--op-page-gutter);
  display: none;
  box-sizing: border-box;
}

.op-section.op-section-active {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.op-hero:not(.op-hero-tri) {
  margin-top: 32px;
}

.op-hero-main {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: stretch;
}

.op-hero-left {
  flex: 1 1 320px;
}

.op-hero-news {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.03);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
  max-width: 720px;
}

.op-hero-news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.op-hero-news-title {
  font-size: 13px;
  font-weight: 600;
}

.op-hero-news-source {
  font-size: 11px;
  color: var(--op-text-muted);
}

.op-hero-news-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 160px;
  overflow: hidden;
}

.op-hero-news-item {
  font-size: 12px;
  display: flex;
  flex-direction: column;
  padding: 4px 0;
}

.op-hero-news-item--loading,
.op-hero-news-item--empty {
  color: var(--op-text-muted);
}

.op-hero-news-link {
  color: var(--op-text-main);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.op-hero-news-link:hover {
  color: var(--op-primary);
}

.op-hero-news-meta {
  font-size: 11px;
  color: var(--op-text-muted);
}

.op-hero-news-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.op-hero-news-badge {
  flex-shrink: 0;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--op-text-muted);
}

/* Internal layout */

.op-internal-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.op-section#internal.op-section-active .op-internal-layout {
  flex: 1;
  min-height: max(360px, calc(100vh - 280px));
  align-items: stretch;
}

.op-internal-left {
  flex: 0 0 320px;
}

.op-internal-right {
  flex: 1 1 auto;
  min-width: 0;
}

.op-internal-locked {
  margin-top: 14px;
  font-size: 12px;
  color: var(--op-text-muted);
}

.op-internal-locked-title {
  font-weight: 550;
  margin-bottom: 4px;
  color: var(--op-text-main);
}

.op-internal-locked-text {
  line-height: 1.5;
}

.op-internal-groups-locked {
  display: none;
}

.op-hero-left h1 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw + 8px, 32px);
}

.op-hero-subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--op-text-sub);
}

.op-hero-right {
  flex: 0 0 260px;
  min-height: 120px;
  border-radius: var(--op-radius-card);
  background: radial-gradient(circle at top left, #e0f0ff 0, #ffffff 60%);
  border: 1px solid var(--op-border-subtle);
  box-shadow: var(--op-shadow-soft);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.op-highlight-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--op-primary);
  margin-bottom: 4px;
}

.op-highlight-main {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

.op-highlight-note {
  font-size: 12px;
  color: var(--op-text-sub);
}

.op-highlight-link {
  margin-top: 8px;
  font-size: 12px;
  color: var(--op-primary);
}

.op-dock-wrapper {
  margin-top: 32px;
}

.op-section-header,
.op-section-title-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.op-section-title {
  font-size: 18px;
  font-weight: 600;
}

.op-section-subtitle {
  margin: 0;
  font-size: 13px;
  color: var(--op-text-sub);
  max-width: none;
  line-height: 1.5;
  text-wrap: pretty;
}

/* Dock */

.op-dock {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--op-border-subtle);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.06);
}

.op-dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
  gap: 4px;
  cursor: pointer;
}

.op-dock-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: radial-gradient(circle at top left, #ffffff 0, #f2f2f7 60%);
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease, translate 0.18s ease;
}

.op-dock-label {
  font-size: 11px;
  color: var(--op-text-sub);
}

.op-dock-item:hover .op-dock-icon {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
}

/* Groups & cards */

/* 外部首页：五层金字塔 + 固定三栏 */

.op-hero-tri {
  margin-top: 8px;
  flex: 1;
  min-height: 0;
}

.op-hero-tri-title-block {
  margin: 0 0 14px;
}

.op-hero-tri-page-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--op-text-main);
}

.op-hero-tri-page-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--op-text-muted);
  font-weight: 400;
}

.op-hero-tri-page-note strong {
  font-weight: 600;
  color: var(--op-text-sub);
}

.op-tri-shell {
  display: grid;
  grid-template-columns: 200px minmax(200px, 280px) 1fr;
  gap: 0;
  flex: 1;
  min-height: max(480px, calc(100vh - 260px));
  border-radius: 0;
  overflow: hidden;
  border: none;
  background: #ffffff;
  box-shadow: none;
}

.op-tri-shell.op-tri-shell--hidden {
  display: none;
}

.op-tri-left {
  background: var(--op-bg-card);
  color: var(--op-text-main);
  padding: 16px 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  overflow-y: auto;
}

.op-tri-pyramid-cap {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--op-text-muted);
  text-align: center;
}

.op-tri-layer-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.op-tri-layer-btn {
  font: inherit;
  font-size: 13px;
  text-align: left;
  padding: 8px 12px;
  border-radius: var(--op-radius-control);
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--op-bg-card);
  color: var(--op-text-sub);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.op-tri-nav-icon {
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
  width: 1.35em;
  text-align: center;
}

.op-tri-nav-label {
  flex: 1;
  min-width: 0;
}

.op-tri-l2-btn .op-tri-nav-icon {
  font-size: 14px;
  width: 1.25em;
}

/* :hover 特异性需低于/让位于 --active，避免选中项悬停时被「洗白」 */
.op-tri-layer-btn:hover:not(.op-tri-layer-btn--active) {
  background: var(--op-primary-soft);
  color: var(--op-primary);
  border-color: rgba(var(--op-primary-rgb), 0.35);
}

.op-tri-layer-btn--active,
.op-tri-layer-btn--active:hover {
  background: var(--op-primary);
  border-color: var(--op-primary);
  color: #ffffff;
  font-weight: 600;
}

.op-tri-l2-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.op-tri-l2-wrap--only {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.op-tri-l2-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--op-text-muted);
  margin-bottom: 2px;
}

.op-tri-l2-btn {
  font: inherit;
  font-size: 12px;
  text-align: left;
  padding: 8px 10px;
  border-radius: var(--op-radius-control);
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--op-bg-card);
  color: var(--op-text-sub);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.op-tri-l2-btn:hover:not(.op-tri-l2-btn--active) {
  background: var(--op-primary-soft);
  color: var(--op-primary);
  border-color: rgba(var(--op-primary-rgb), 0.35);
}

.op-tri-l2-btn--active,
.op-tri-l2-btn--active:hover {
  color: #ffffff;
  background: var(--op-primary);
  border-color: var(--op-primary);
  font-weight: 600;
}

/* 智能体与工作流：单行主按钮 + 下方展开子项（展示型菜单，非 select） */
.op-tri-l2-agents-block,
.op-tri-l2-dev-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.op-tri-l2-agents-head,
.op-tri-l2-dev-head {
  width: 100%;
}

.op-tri-l2-agents-drawer,
.op-tri-l2-dev-drawer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 2px 0 4px 4px;
  margin-left: 2px;
  border-left: 2px solid rgba(var(--op-primary-rgb), 0.22);
}

.op-tri-l2-agents-drawer[hidden],
.op-tri-l2-dev-drawer[hidden] {
  display: none !important;
}

.op-tri-l2-agents-sub,
.op-tri-l2-dev-sub {
  font: inherit;
  font-size: 11px;
  font-weight: 500;
  text-align: left;
  padding: 7px 10px 7px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: rgba(0, 0, 0, 0.03);
  color: var(--op-text-sub);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.op-tri-l2-agents-sub:hover,
.op-tri-l2-dev-sub:hover {
  background: var(--op-primary-soft);
  color: var(--op-primary);
  border-color: rgba(var(--op-primary-rgb), 0.2);
}

.op-tri-l2-agents-sub--active,
.op-tri-l2-dev-sub--active {
  background: var(--op-primary-soft);
  color: var(--op-primary);
  border-color: rgba(var(--op-primary-rgb), 0.35);
  font-weight: 600;
}

.op-tri-middle {
  padding: 20px 20px 22px;
  background: var(--op-bg-card);
  border-right: 1px solid rgba(0, 0, 0, 0.06);
  overflow-y: auto;
}

.op-tri-middle-title {
  margin: 0 0 10px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.19;
  letter-spacing: 0.01em;
  color: var(--op-text-main);
}

.op-tri-middle-body {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.47;
  letter-spacing: -0.015em;
  color: var(--op-text-sub);
}

.op-tri-middle-note {
  margin: 0;
  font-size: 12px;
  color: var(--op-text-muted);
  line-height: 1.45;
}

.op-tri-right {
  padding: 16px 16px 20px;
  background: #ffffff;
  overflow-y: auto;
}

.op-tri-cards {
  min-height: 120px;
}

.op-tri-cards-empty {
  font-size: 13px;
  color: var(--op-text-muted);
  padding: 28px 8px;
}

.op-tri-knowledge {
  padding: 8px 4px 12px;
  max-width: 52rem;
}

.op-tri-knowledge-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 650;
  color: var(--op-text-main);
  letter-spacing: -0.02em;
}

.op-tri-knowledge-lede {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--op-text-sub);
}

.op-tri-knowledge-sub {
  margin: 14px 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--op-text-sub);
  text-transform: none;
  letter-spacing: 0;
}

.op-tri-knowledge-list {
  margin: 0 0 4px;
  padding-left: 1.15rem;
  color: var(--op-text-sub);
  font-size: 13px;
  line-height: 1.55;
}

.op-tri-knowledge-list li {
  margin-bottom: 6px;
}

.op-tri-knowledge-list li:last-child {
  margin-bottom: 0;
}

.op-tri-knowledge-links {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--op-text-muted);
  line-height: 1.5;
}

.op-tri-knowledge-links a {
  color: var(--op-primary);
  text-decoration: none;
}

.op-tri-knowledge-links a:hover {
  text-decoration: underline;
}

.op-tri-knowledge--fallback {
  padding: 12px 14px 4px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  max-width: none;
}

.op-tri-knowledge--fallback .op-tri-knowledge-title {
  font-size: 14px;
  margin-bottom: 10px;
}

.op-tri-knowledge--fallback .op-tri-knowledge-list {
  font-size: 12px;
}

.op-tri-knowledge--fallback .op-tri-knowledge-lede {
  font-size: 12px;
  margin-bottom: 10px;
}

.op-tri-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.op-tri-card {
  border-radius: var(--op-radius-control);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.op-tri-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
  border-color: rgba(var(--op-primary-rgb), 0.25);
}

.op-tri-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.op-tri-card-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--op-filter-surface);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.op-tri-card-icon.op-card-icon--with-img {
  padding: 3px;
  box-sizing: border-box;
}

.op-card-favicon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 5px;
  display: block;
}

.op-tri-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--op-text-main);
  line-height: 1.3;
}

.op-tri-card-desc {
  font-size: 12px;
  color: var(--op-text-sub);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.op-tri-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.op-tri-tag {
  font-size: 10px;
}

.op-tri-fallback-wrap {
  margin-top: 12px;
  padding: 14px 16px 18px;
  border-radius: var(--op-radius-card);
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.op-tri-fallback-wrap.op-tri-fallback--hidden {
  display: none;
}

.op-tri-fallback-layer {
  margin-bottom: 10px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: #ffffff;
  overflow: hidden;
}

.op-tri-fallback-summary {
  cursor: pointer;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--op-text-main);
  background: rgba(0, 0, 0, 0.03);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.op-tri-fallback-summary::-webkit-details-marker {
  display: none;
}

.op-tri-fallback-l2 {
  padding: 0 14px 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.05);
}

.op-tri-fallback-l2-title {
  margin: 10px 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--op-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.op-tri-fallback-l2-title .op-tri-nav-icon {
  font-size: 14px;
  width: auto;
}

.op-tri-fallback-ul {
  margin: 0;
  padding: 0 0 0 16px;
  font-size: 13px;
  color: var(--op-text-sub);
}

.op-tri-fallback-li {
  margin: 4px 0;
}

.op-tri-fallback-li a {
  color: var(--op-text-main);
  text-decoration: none;
}

.op-tri-fallback-li a:hover {
  color: var(--op-primary);
  text-decoration: underline;
}

.op-tri-fallback-li--muted {
  list-style: none;
  margin-left: -16px;
  color: var(--op-text-muted);
  font-size: 12px;
}

@media (max-width: 900px) {
  .op-tri-shell {
    display: none !important;
  }

  .op-tri-fallback-wrap.op-tri-fallback--hidden {
    display: block !important;
  }
}

.op-group {
  scroll-margin-top: 76px;
  margin-bottom: 24px;
}

.op-group.op-group--empty {
  display: none;
}

.op-group-header {
  margin-bottom: 10px;
}

.op-group-title-row {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.op-group-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--op-text-main);
  flex-shrink: 0;
}

.op-group-caption {
  font-size: 13px;
  font-weight: 400;
  color: var(--op-text-muted);
  line-height: 1.45;
  max-width: 56ch;
}

.op-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 400px));
  gap: 14px;
  justify-content: start;
}

.op-card {
  border-radius: var(--op-radius-control);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 14px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  max-width: 400px;
  width: 100%;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.op-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
  border-color: rgba(var(--op-primary-rgb), 0.22);
}

.op-card--internal {
  border-color: rgba(var(--op-primary-rgb), 0.16);
  animation: op-internal-card-enter 360ms ease-out both;
}

.op-card--internal:hover {
  border-color: rgba(var(--op-primary-rgb), 0.38);
  box-shadow: 0 10px 30px rgba(var(--op-primary-rgb), 0.18);
}

@keyframes op-internal-card-enter {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .op-card--internal {
    animation: none;
  }
}

.op-card.op-card--hidden {
  display: none;
}

.op-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.op-card-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--op-filter-surface);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.op-card-icon.op-card-icon--with-img {
  padding: 3px;
  box-sizing: border-box;
}

.op-card-title {
  font-size: 14px;
  font-weight: 550;
}

.op-card-desc {
  font-size: 13px;
  color: var(--op-text-sub);
}

.op-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.op-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.9);
  color: var(--op-text-muted);
}

.op-tag-primary {
  border: 1px solid rgba(var(--op-primary-rgb), 0.35);
  background: var(--op-bg-card);
  color: var(--op-primary);
  cursor: default;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.op-tag-primary:hover {
  background: var(--op-primary);
  border-color: var(--op-primary);
  color: #ffffff;
}

.op-tag-recommended {
  border-color: rgba(52, 199, 89, 0.4);
  background: rgba(52, 199, 89, 0.1);
  color: #05a049;
}

.op-card-footer {
  margin-top: 2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--op-text-muted);
}

.op-card-link-text {
  font-size: 11px;
  color: var(--op-primary);
}

/* Login card */

.op-login-card {
  margin-top: 20px;
  padding: 18px 20px 16px;
  border-radius: var(--op-radius-card);
  background: var(--op-bg-card);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--op-shadow-soft);
  max-width: 380px;
}

.op-login-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

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

.op-login-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.op-login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  height: 56px;
  border: 2px solid rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.op-login-input-wrap:focus-within {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.16);
}

.op-login-input-icon {
  width: 44px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  flex-shrink: 0;
}

.op-login-input-icon svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.op-login-input-wrap input {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  font-size: 18px;
  color: var(--op-text-main);
  outline: none;
  padding: 0 14px 0 0;
}

.op-login-input-wrap input::placeholder {
  color: #9ca3af;
  font-weight: 550;
}

.op-password-wrap input {
  padding-right: 44px;
}

.op-password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  border-radius: 8px;
  cursor: pointer;
  color: #9ca3af;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.op-password-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #6b7280;
}

.op-password-toggle .op-eye-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.op-password-toggle .op-eye-icon--hide {
  display: none;
}

.op-password-toggle[aria-pressed="true"] .op-eye-icon--show {
  display: none;
}

.op-password-toggle[aria-pressed="true"] .op-eye-icon--hide {
  display: block;
}

.op-login-button {
  margin-top: 6px;
  border-radius: var(--op-radius-control);
  border: 1px solid transparent;
  padding: 8px 15px;
  font-size: 15px;
  font-weight: 400;
  background: var(--op-primary);
  color: #ffffff;
  cursor: pointer;
  transition: filter 0.15s ease, box-shadow 0.15s ease;
  width: 100%;
}

.op-login-button:hover {
  filter: brightness(1.06);
  box-shadow: 0 4px 16px rgba(var(--op-primary-rgb), 0.35);
}

.op-login-message {
  margin-top: 6px;
  font-size: 12px;
  min-height: 16px;
}

.op-login-message[data-type="info"] {
  color: var(--op-text-muted);
}

.op-login-message[data-type="error"] {
  color: #ff3b30;
}

.op-login-message[data-type="success"] {
  color: #34c759;
}

.op-login-status {
  margin-top: 8px;
  font-size: 11px;
  color: var(--op-text-muted);
}

/* Nav active state */

.op-nav-link-active {
  color: var(--op-primary);
}

/* Footer */

.op-footer {
  margin-top: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
}

.op-footer-inner {
  max-width: none;
  width: 100%;
  margin: 0 auto;
  padding: 14px var(--op-page-gutter) 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

.op-footer-title {
  font-size: 14px;
  font-weight: 550;
}

.op-footer-text {
  font-size: 12px;
  color: var(--op-text-sub);
}

.op-footer-meta {
  font-size: 11px;
  color: var(--op-text-muted);
  text-align: right;
}

/* Responsive */

@media (max-width: 900px) {
  .op-header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
  }

  .op-logo-area {
    flex: 1 1 auto;
    min-width: 0;
  }

  .op-header-inner .op-nav {
    flex: 0 0 auto;
    margin-left: auto;
  }

  .op-header-search {
    flex: 1 1 100%;
    max-width: none;
  }
}

@media (max-width: 720px) {
  .op-hero-right {
    flex: 1 1 100%;
    order: -1;
  }

  .op-dock {
    border-radius: 18px;
  }
}

