/*
 * To Search — Pearl Glass theme
 * Visual-only enhancement layer. Layout hooks and interaction logic stay in app.js.
 */

:root {
  color-scheme: light;
  --page-pearl: #fbfafb;
  --page-mist: #f2f6fc;
  --brand-red: #e62f39;
  --brand-red-dark: #c91824;
  --brand-navy: #164a88;
  --brand-navy-deep: #103a70;
  --text-primary: #173052;
  --text-secondary: #647893;
  --text-tertiary: #8593a8;
  --border-soft: rgba(130, 153, 187, 0.22);
  --border-highlight: rgba(255, 255, 255, 0.86);
  --glass-bg: rgba(255, 255, 255, 0.76);
  --glass-strong: rgba(255, 255, 255, 0.9);
  --content-bg: rgba(255, 255, 255, 0.965);
  --tint-red: #fff0f2;
  --tint-blue: #eef6ff;
  --tint-teal: #eaf8f4;
  --tint-violet: #f3f0ff;
  --tint-amber: #fff6e5;
  --success: #158267;
  --warning: #b36b0a;
  --radius-panel: 24px;
  --radius-card: 18px;
  --radius-small: 13px;
  --shadow-glass: 0 20px 50px rgba(57, 77, 112, 0.12), 0 4px 14px rgba(57, 77, 112, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.94);
  --shadow-card: 0 10px 28px rgba(57, 77, 112, 0.08), 0 2px 8px rgba(57, 77, 112, 0.045), inset 0 1px 0 rgba(255, 255, 255, 0.88);
  --shadow-button: 0 7px 17px rgba(230, 47, 57, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  --red: var(--brand-red);
  --red-dark: var(--brand-red-dark);
  --blue: var(--brand-navy);
  --ink: var(--text-primary);
  --muted: var(--text-secondary);
  --line: var(--border-soft);
  --soft: var(--page-mist);
  --paper: #fff;
  --gold: var(--warning);
  --green: var(--success);
  --shadow: var(--shadow-card);
}

html {
  min-height: 100%;
  overflow-x: hidden;
  background: var(--page-mist);
}

body {
  min-height: 100vh;
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  color: var(--text-primary);
  background:
    radial-gradient(circle at 7% 25%, rgba(255, 214, 222, 0.52), transparent 31%),
    radial-gradient(circle at 94% 14%, rgba(207, 225, 255, 0.66), transparent 34%),
    radial-gradient(circle at 76% 94%, rgba(226, 233, 255, 0.48), transparent 32%),
    linear-gradient(135deg, #fbfafb 0%, #f8f9fc 51%, #f2f6fb 100%);
  background-attachment: fixed;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  pointer-events: none;
}

body::before {
  inset: 150px -12vw auto -12vw;
  height: 520px;
  opacity: 0.42;
  background:
    radial-gradient(ellipse at center, transparent 64%, rgba(255, 255, 255, 0.82) 64.4%, transparent 65%),
    radial-gradient(ellipse at center, transparent 74%, rgba(185, 211, 244, 0.26) 74.3%, transparent 75%);
  transform: rotate(-3deg);
}

body::after {
  right: -11vw;
  bottom: 7vh;
  width: 48vw;
  height: 48vw;
  border: 1px solid rgba(189, 210, 239, 0.2);
  border-radius: 50%;
  box-shadow: 0 0 90px rgba(207, 221, 247, 0.26);
}

main,
.site-header,
.modal-backdrop,
.toast {
  position: relative;
  z-index: 1;
}

::selection {
  color: var(--brand-navy-deep);
  background: rgba(230, 47, 57, 0.16);
}

a {
  color: var(--brand-navy);
  text-underline-offset: 3px;
}

button,
input,
select,
textarea {
  border-radius: var(--radius-small);
}

button,
a,
input,
select,
textarea,
summary {
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(22, 74, 136, 0.22);
  outline-offset: 3px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: none;
}

.page-shell {
  width: min(1280px, calc(100% - 40px));
}

/* Header and navigation */
.site-header {
  padding: 14px 0 0;
  border: 0;
  background: transparent;
}

.topbar,
.nav-row,
.sub-nav,
.hero,
.main-panel,
.side-panel,
.admin-panel,
.chat-panel,
.detail-panel,
.modal {
  border: 1px solid var(--border-highlight);
  background:
    linear-gradient(118deg, rgba(255, 244, 246, 0.38), rgba(255, 255, 255, 0.32) 45%, rgba(236, 244, 255, 0.44)),
    var(--glass-bg);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(18px) saturate(125%);
  -webkit-backdrop-filter: blur(18px) saturate(125%);
}

.topbar {
  position: relative;
  z-index: 30;
  overflow: visible;
  min-height: 84px;
  grid-template-columns: 300px minmax(300px, 1fr) auto;
  gap: 22px;
  padding: 12px 16px;
  border-radius: 22px;
}

.brand {
  display: inline-flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 3px;
  width: fit-content;
}

.brand-wordmark {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  line-height: 0.9;
  transform: rotate(-2deg);
}

.brand-wordmark::after {
  content: "";
  position: absolute;
  right: 7px;
  bottom: -5px;
  width: 72%;
  height: 8px;
  border-top: 3px solid rgba(235, 48, 59, 0.68);
  border-radius: 50%;
  transform: rotate(-2deg);
}

.brand .brand-wordmark strong {
  color: #ef3541;
  font-family: "Segoe Script", "Brush Script MT", STKaiti, KaiTi, cursive;
  font-size: 38px;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0;
  text-shadow: 0 3px 10px rgba(220, 31, 44, 0.18);
}

.brand-wordmark i {
  margin: -4px 0 0 7px;
  color: #ff9f43;
  font-family: Georgia, serif;
  font-size: 18px;
  font-style: normal;
  text-shadow: 0 4px 10px rgba(255, 159, 67, 0.3);
}

.brand small {
  margin: 4px 0 0 4px;
  color: #50627a;
  font-size: 12px;
  letter-spacing: 0;
}

.search-box {
  height: 46px;
  overflow: hidden;
  border: 1px solid rgba(128, 152, 187, 0.25);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 1px 4px rgba(70, 90, 120, 0.05), 0 5px 14px rgba(65, 84, 116, 0.05);
}

.search-box:focus-within {
  border-color: rgba(22, 74, 136, 0.42);
  box-shadow: 0 0 0 4px rgba(22, 74, 136, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.search-box input {
  padding: 0 16px;
  color: var(--text-primary);
  background: transparent;
}

.search-box input::placeholder,
input::placeholder,
textarea::placeholder {
  color: #96a2b3;
  opacity: 1;
}

.search-box button {
  min-width: 70px;
  border-left: 1px solid rgba(128, 152, 187, 0.18);
  color: var(--brand-navy);
  background: rgba(248, 251, 255, 0.68);
  font-weight: 700;
}

.header-actions {
  gap: 5px;
  flex-wrap: nowrap;
}

.user-menu-popover {
  z-index: 100;
  padding: 8px;
  border: 1px solid var(--border-highlight);
  border-radius: 14px;
  background: var(--glass-strong);
  box-shadow: var(--shadow-glass);
  backdrop-filter: blur(16px);
}

.primary-button,
.outline-button,
.text-button,
.nav-link,
.sub-nav button,
.filters button,
.icon-button {
  border-radius: var(--radius-small);
}

.primary-button {
  min-height: 40px;
  padding: 0 18px;
  color: #fff;
  border: 1px solid rgba(199, 16, 28, 0.22);
  background: linear-gradient(180deg, #ed3b45, var(--brand-red));
  box-shadow: var(--shadow-button);
  font-weight: 750;
}

.primary-button:hover {
  background: linear-gradient(180deg, #df2f3a, var(--brand-red-dark));
  box-shadow: 0 9px 21px rgba(214, 29, 40, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.outline-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(126, 150, 184, 0.25);
  color: #38526f;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 4px 12px rgba(58, 78, 110, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.outline-button:hover {
  border-color: rgba(22, 74, 136, 0.34);
  color: var(--brand-navy);
  background: #fff;
  box-shadow: 0 7px 16px rgba(55, 77, 111, 0.08);
  transform: translateY(-1px);
}

.text-button {
  min-height: 36px;
  padding: 0 9px;
  color: #3d5069;
}

.text-button:hover {
  color: var(--brand-red);
  background: rgba(255, 240, 242, 0.72);
}

.main-nav {
  position: relative;
  z-index: 20;
  margin-top: 8px;
  border: 0;
  background: transparent;
}

.nav-row {
  min-height: 50px;
  justify-content: center;
  gap: 4px;
  padding: 5px 9px;
  border-radius: 18px;
}

.nav-link {
  min-height: 38px;
  padding: 0 14px;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 650;
}

.nav-link:hover {
  color: var(--brand-red);
  background: rgba(255, 255, 255, 0.72);
}

.nav-link.is-active {
  color: var(--brand-red);
  background: rgba(255, 248, 249, 0.94);
  box-shadow: 0 5px 13px rgba(78, 91, 119, 0.09), inset 0 -2px 0 var(--brand-red);
}

.nav-link.is-active::after {
  display: none;
}

.sub-nav {
  position: relative;
  z-index: 10;
  width: fit-content;
  max-width: calc(100% - 40px);
  min-height: 38px;
  gap: 4px;
  margin-top: 7px;
  padding: 4px 7px;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(57, 77, 112, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.sub-nav button,
.sub-nav-label {
  min-height: 28px;
  padding: 0 10px;
  color: #718198;
  font-size: 13px;
}

.sub-nav-label {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.sub-nav button:hover {
  color: var(--brand-navy);
  background: rgba(238, 246, 255, 0.8);
}

/* Hero and page shells */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.14fr) minmax(360px, 0.86fr);
  align-items: center;
  overflow: hidden;
  margin-top: 18px;
  min-height: 354px;
  padding: 34px 34px 28px 52px;
  border-radius: var(--radius-panel);
  background:
    linear-gradient(90deg, rgba(255, 244, 247, 0.64) 0%, rgba(255, 251, 248, 0.78) 46%, rgba(255, 249, 239, 0.92) 64%, rgba(255, 249, 238, 0.98) 100%),
    var(--glass-bg);
  text-align: left;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -70% -10% auto;
  height: 190%;
  pointer-events: none;
  opacity: 0.52;
  background:
    radial-gradient(ellipse at 15% 74%, rgba(255, 221, 227, 0.72), transparent 37%),
    radial-gradient(ellipse at 88% 60%, rgba(255, 248, 235, 0.9), transparent 43%),
    radial-gradient(ellipse at center, transparent 63%, rgba(255, 255, 255, 0.84) 63.5%, transparent 64.5%);
}

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

.hero-copy {
  z-index: 2;
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 14px;
  border: 1px solid rgba(235, 48, 59, 0.12);
  border-radius: 999px;
  color: var(--brand-red);
  background: rgba(255, 247, 248, 0.7);
  box-shadow: 0 5px 14px rgba(69, 85, 115, 0.07);
  font-size: 11px;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 730px;
  margin: 0;
  color: var(--brand-navy);
  font-family: "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
  font-size: 54px;
  font-style: italic;
  font-weight: 900;
  line-height: 1.13;
  letter-spacing: 0;
}

.hero h1 > span {
  display: block;
}

.hero-art-title {
  position: relative;
  width: fit-content;
  padding: 2px 31px 9px 0;
  color: transparent;
  background: linear-gradient(96deg, #2f69c8 0%, #765bc8 38%, #d34c79 72%, #e63342 100%);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-art-title::after {
  content: "";
  position: absolute;
  right: 8%;
  bottom: 1px;
  width: 44%;
  height: 10px;
  border-top: 4px solid rgba(238, 54, 66, 0.9);
  border-radius: 50%;
  transform: rotate(-2deg);
}

.hero-art-title i {
  position: absolute;
  right: 2px;
  bottom: 18px;
  color: #ef3541;
  font-family: Georgia, serif;
  font-size: 26px;
  font-style: normal;
  text-shadow: 0 5px 14px rgba(224, 47, 65, 0.23);
}

/* Low-frequency text sheen inspired by React Bits Shiny Text. */
.brand-wordmark strong {
  --shiny-fill: linear-gradient(90deg, #ef3541, #ef3541);
  --shiny-delay: 0s;
}

.hero h1 > span:first-child {
  --shiny-fill: linear-gradient(90deg, var(--brand-navy), var(--brand-navy));
  --shiny-delay: -3s;
}

.hero-art-title {
  --shiny-fill: linear-gradient(96deg, #2f69c8 0%, #765bc8 38%, #d34c79 72%, #e63342 100%);
  --shiny-delay: -3s;
}

.eyebrow {
  --shiny-fill: linear-gradient(90deg, var(--brand-red), var(--brand-red));
  --shiny-delay: -6s;
}

.brand-wordmark strong,
.hero h1 > span,
.eyebrow {
  color: transparent;
  background-image:
    linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.9) 50%, transparent 65%),
    var(--shiny-fill);
  background-repeat: no-repeat;
  background-position: 160% 0, 0 0;
  background-size: 250% 100%, 100% 100%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shiny-text-sweep 9s ease-in-out infinite;
  animation-delay: var(--shiny-delay);
}

.hero-art-title i {
  -webkit-text-fill-color: #ef3541;
}

@keyframes shiny-text-sweep {
  0%,
  68% {
    background-position: 160% 0, 0 0;
  }

  88%,
  100% {
    background-position: -80% 0, 0 0;
  }
}

.hero-subtitle {
  max-width: 720px;
  margin: 22px 0 0;
  color: #5d7089;
  font-size: 15px;
  line-height: 1.8;
}

.hero-meta {
  justify-content: flex-start;
  gap: 9px;
  margin-top: 18px;
}

.hero-meta span {
  padding: 7px 13px;
  border: 1px solid rgba(125, 149, 184, 0.22);
  border-radius: 11px;
  color: #38587b;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 4px 12px rgba(60, 83, 117, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  font-size: 13px;
  font-weight: 650;
}

.hero-visual {
  align-self: stretch;
  min-width: 0;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -4% -12% -4% -42%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 68% 50%, rgba(255, 249, 238, 0.98) 0 58%, rgba(255, 249, 238, 0.7) 76%, transparent 94%);
  filter: blur(24px);
}

.hero-mascot-frame {
  position: absolute;
  top: 50%;
  right: -58px;
  width: 620px;
  aspect-ratio: 8 / 5;
  max-width: none;
  transform: translateY(-49%) rotate(-1deg);
}

.hero-mascot-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: radial-gradient(circle at 65% 54%, rgba(255, 249, 238, 0.72), transparent 64%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 100%);
  pointer-events: none;
  user-select: none;
}

.hero-mascot-static {
  position: absolute;
  inset: 8% 8% 8% auto;
  width: 58%;
  height: 84%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}

.hero-mascot-video[hidden],
.hero-mascot-static[hidden] {
  display: none;
}

.hero-mascot-bubble {
  position: absolute;
  z-index: 6;
  top: 4%;
  max-width: 210px;
  padding: 9px 13px;
  border: 1px solid rgba(119, 147, 182, 0.2);
  border-radius: 14px;
  opacity: 0;
  color: #405c7d;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(72, 96, 130, 0.13);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
  transform: translateY(6px) scale(0.97);
  transition: opacity 0.2s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.hero-mascot-bubble[data-speaker="cat"] {
  left: 8%;
}

.hero-mascot-bubble[data-speaker="dog"] {
  right: 5%;
}

.hero-mascot-bubble::after {
  content: "";
  position: absolute;
  bottom: -6px;
  width: 12px;
  height: 12px;
  border-right: 1px solid rgba(119, 147, 182, 0.18);
  border-bottom: 1px solid rgba(119, 147, 182, 0.18);
  background: inherit;
  transform: rotate(45deg);
}

.hero-mascot-bubble[data-speaker="cat"]::after {
  left: 28px;
}

.hero-mascot-bubble[data-speaker="dog"]::after {
  right: 28px;
}

.hero-visual.is-speaking .hero-mascot-bubble {
  opacity: 1;
  transform: none;
}

body[data-route="detail"] .hero,
body[data-route="plan-detail"] .hero {
  display: none;
}

.layout {
  grid-template-columns: minmax(0, 1fr) 338px;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 80px;
}

.main-panel,
.admin-panel,
.chat-panel,
.detail-panel {
  min-width: 0;
  padding: 20px;
  border-radius: var(--radius-panel);
}

.main-panel {
  background:
    linear-gradient(145deg, rgba(255, 247, 248, 0.24), rgba(255, 255, 255, 0.48) 45%, rgba(238, 246, 255, 0.36)),
    rgba(255, 255, 255, 0.67);
}

.section-title {
  min-height: 42px;
  margin-bottom: 15px;
  padding: 0 0 12px;
  border-bottom: 1px solid rgba(128, 152, 187, 0.18);
}

.section-title h2 {
  color: var(--text-primary);
  font-size: 23px;
  letter-spacing: -0.02em;
}

.section-title h2::before {
  width: 4px;
  height: 23px;
  margin-right: 10px;
  border-radius: 6px;
  background: linear-gradient(180deg, #f0444e, var(--brand-red));
  box-shadow: 0 3px 8px rgba(230, 47, 57, 0.18);
}

.mini-tag,
.category-pill,
.status-pill {
  min-height: 25px;
  padding: 0 9px;
  border: 1px solid rgba(128, 152, 187, 0.13);
  border-radius: 999px;
  background: rgba(239, 244, 250, 0.88);
  color: #546981;
  font-size: 12px;
  font-weight: 650;
}

.recommended-tag {
  border-color: #e99100;
  background: linear-gradient(135deg, #ffe45c, #ffb800);
  color: #5f3000;
  font-weight: 850;
  box-shadow: 0 4px 11px rgba(238, 151, 0, 0.28);
}

/* Category entry cards */
.category-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.category-card {
  --category-accent: #e95a62;
  --category-tint: rgba(255, 240, 242, 0.78);
  position: relative;
  min-height: 154px;
  overflow: hidden;
  padding: 21px 17px 18px;
  border: 1px solid var(--border-highlight);
  border-top: 2px solid var(--category-accent);
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, var(--category-tint), rgba(255, 255, 255, 0.94) 46%);
  box-shadow: var(--shadow-card);
}

.category-card::after {
  content: "";
  position: absolute;
  right: -8px;
  bottom: -10px;
  width: 82px;
  height: 82px;
  opacity: 0.38;
  background: center / contain no-repeat;
  filter: saturate(0.9) drop-shadow(0 3px 5px rgba(81, 89, 70, 0.08));
  pointer-events: none;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    circle 150px at var(--spotlight-x, 50%) var(--spotlight-y, 50%),
    color-mix(in srgb, var(--category-accent) 18%, transparent),
    transparent 72%
  );
  transition: opacity 0.22s ease;
}

@media (hover: hover) and (pointer: fine) {
  .category-card:hover::before {
    opacity: 1;
  }
}

.category-card[data-category="competitions"] {
  --category-accent: #f07b55;
  --category-tint: rgba(255, 246, 232, 0.82);
}

.category-card[data-category="ai-money"]::after {
  background-image: url("assets/mascots/cat-opportunity-discovery.png");
}

.category-card[data-category="competitions"]::after {
  background-image: url("assets/mascots/cat-competition-trophy.png");
}

.category-card[data-category="ai-tools"] {
  --category-accent: #4f93de;
  --category-tint: rgba(238, 246, 255, 0.86);
}

.category-card[data-category="ai-tools"]::after {
  background-image: url("assets/mascots/cat-ai-tools-explorer.png");
}

.category-card[data-category="agents"] {
  --category-accent: #8177df;
  --category-tint: rgba(243, 240, 255, 0.86);
}

.category-card[data-category="agents"]::after {
  background-image: url("assets/mascots/shiba-agent-helper.png");
}

.category-card[data-category="career-benefits"] {
  --category-accent: #ef715d;
  --category-tint: rgba(255, 242, 236, 0.84);
}

.category-card[data-category="career-benefits"]::after {
  background-image: url("assets/mascots/shiba-career-ready.png");
}

.mobile-briefing-card {
  --category-accent: #3a86dc;
  --category-tint: rgba(235, 246, 255, 0.88);
  display: none;
}

.mobile-briefing-card::after {
  right: -4px;
  bottom: -5px;
  width: 96px;
  height: 86px;
  background-image: url("assets/mascots/shiba-ai-briefing.png");
}

.mobile-briefing-card.is-active {
  border-color: rgba(58, 134, 220, 0.52);
  box-shadow: 0 14px 30px rgba(58, 134, 220, 0.16), inset 0 1px 0 #fff;
}

.feed-garden-edge {
  position: relative;
  height: 96px;
  margin: -12px 0 2px;
  overflow: visible;
  border-bottom: 1px solid rgba(113, 165, 108, 0.13);
  pointer-events: none;
}

.feed-garden-image {
  position: absolute;
  right: 8px;
  bottom: -5px;
  height: 112px;
  display: block;
  object-fit: contain;
  clip-path: inset(0 0 0 2px);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 100%);
  background: url("assets/mascots/shiba-grass-panel-edge.png") center / contain no-repeat;
  filter: drop-shadow(0 6px 8px rgba(74, 101, 68, 0.1));
}

.category-card:hover {
  border-color: color-mix(in srgb, var(--category-accent) 42%, white);
  box-shadow: 0 16px 34px rgba(57, 77, 112, 0.12), inset 0 1px 0 #fff;
  transform: translateY(-3px);
}

.category-card strong {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--text-primary);
  font-size: 17px;
  line-height: 1.45;
}

.category-card strong::before {
  content: "";
  flex: 0 0 11px;
  width: 11px;
  height: 11px;
  border: 3px solid color-mix(in srgb, var(--category-accent) 25%, white);
  border-radius: 50%;
  background: var(--category-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--category-accent) 8%, transparent);
}

.category-card span {
  position: relative;
  z-index: 1;
  color: #62748b;
  font-size: 13px;
  line-height: 1.72;
}

/* Filters, fields and controls */
.filters {
  width: fit-content;
  max-width: 100%;
  gap: 5px;
  margin-bottom: 13px;
  padding: 5px;
  border: 1px solid rgba(128, 152, 187, 0.18);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 6px 18px rgba(57, 77, 112, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.filters button {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid transparent;
  color: #53677f;
  background: transparent;
  font-weight: 650;
}

.filters button:hover {
  color: var(--brand-navy);
  background: rgba(238, 246, 255, 0.8);
}

.filters button.is-active {
  border-color: rgba(197, 18, 30, 0.18);
  color: #fff;
  background: linear-gradient(180deg, #ed3b45, var(--brand-red));
  box-shadow: var(--shadow-button);
}

.career-section-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 13px;
  padding: 6px;
  border: 1px solid rgba(128, 152, 187, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
}

.career-section-switch button {
  min-height: 42px;
  border: 1px solid transparent;
  color: #52677f;
  background: transparent;
  font-weight: 750;
}

.career-section-switch button.is-active {
  border-color: rgba(232, 106, 88, 0.24);
  color: #b94032;
  background: #fff2ed;
  box-shadow: 0 6px 18px rgba(169, 77, 62, 0.1), inset 0 1px 0 #fff;
}

.career-type-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  margin-top: 0;
}

.career-type-filters button {
  min-width: 0;
}

.career-source-filters {
  align-items: center;
  width: 100%;
  margin-top: -5px;
}

.filter-group-label {
  padding: 0 8px 0 5px;
  color: #7b8ca2;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.smart-filter {
  gap: 12px;
  margin-bottom: 16px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.86);
  border-radius: 17px;
  background:
    linear-gradient(120deg, rgba(255, 245, 247, 0.4), rgba(255, 255, 255, 0.54), rgba(238, 246, 255, 0.45)),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 9px 25px rgba(57, 77, 112, 0.07), inset 0 1px 0 #fff;
}

.smart-filter label,
.form-grid label,
.stack-form label,
.modal label {
  color: #52667f;
  font-size: 13px;
  font-weight: 700;
}

input,
select,
textarea {
  min-height: 44px;
  border: 1px solid rgba(126, 150, 184, 0.26);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 1px 3px rgba(57, 77, 112, 0.04), 0 3px 10px rgba(57, 77, 112, 0.035);
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(77, 116, 164, 0.34);
}

input:focus,
select:focus,
textarea:focus {
  outline: 0;
  border-color: rgba(22, 74, 136, 0.48);
  box-shadow: 0 0 0 4px rgba(22, 74, 136, 0.08), inset 0 1px 0 #fff;
}

.agent-module-intro {
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(93, 131, 180, 0.18);
  border-left: 4px solid #4f93de;
  border-radius: 14px;
  background: var(--tint-blue);
  color: #60748d;
}

.agent-module-intro strong {
  color: var(--brand-navy);
}

.ai-money-recommend-intro {
  border-color: rgba(234, 151, 0, 0.26);
  border-left-color: #f0a000;
  background: linear-gradient(100deg, rgba(255, 247, 209, 0.94), rgba(255, 252, 239, 0.94));
  color: #705a32;
}

.ai-money-recommend-intro strong {
  color: #6c3d00;
}

.recommendation-reason {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: -2px 0 2px;
  padding: 11px 12px;
  border: 1px solid rgba(234, 151, 0, 0.28);
  border-radius: 12px;
  background: linear-gradient(105deg, rgba(255, 247, 208, 0.88), rgba(255, 252, 240, 0.92));
  color: #6d5220;
  font-size: 13px;
  line-height: 1.65;
}

.recommendation-reason .ui-icon {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  color: #e59100;
}

.recommendation-reason p {
  margin: 0;
}

.recommendation-reason strong {
  color: #6a3b00;
}

.not-recommended-reason {
  border-color: rgba(112, 134, 163, 0.22);
  background: linear-gradient(105deg, rgba(239, 244, 250, 0.9), rgba(249, 251, 254, 0.94));
  color: #617188;
}

.not-recommended-reason .ui-icon {
  color: #788da9;
}

.not-recommended-reason strong {
  color: #435873;
}

.detail-recommendation-reason {
  margin: 0;
  padding: 15px 17px;
  font-size: 14px;
}

.github-rank-note {
  margin: 0 0 16px;
  padding: 11px 14px;
  border: 1px solid rgba(83, 133, 191, 0.16);
  border-left: 3px solid #5b9de5;
  border-radius: 13px;
  background: rgba(238, 246, 255, 0.72);
  color: #60748d;
  font-size: 13px;
  line-height: 1.65;
}

/* Opportunity and competition cards */
.feed-grid,
.ai-tools-column-wide .ai-tools-list {
  gap: 16px;
}

.opportunity-card {
  min-height: 270px;
  content-visibility: auto;
  contain-intrinsic-size: auto 320px;
  padding: 19px;
  gap: 11px;
  overflow: hidden;
  border: 1px solid rgba(126, 150, 184, 0.2);
  border-radius: var(--radius-card);
  background: var(--content-bg);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.opportunity-card:hover {
  border-color: rgba(85, 124, 171, 0.3);
  box-shadow: 0 15px 34px rgba(57, 77, 112, 0.12), inset 0 1px 0 #fff;
  transform: translateY(-2px);
}

.opportunity-card h3 {
  color: var(--text-primary);
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: -0.012em;
}

.summary {
  color: #586c84;
  line-height: 1.72;
}

.category-pill {
  border-color: rgba(230, 47, 57, 0.14);
  color: var(--brand-red);
  background: var(--tint-red);
}

.status-pill[data-status="已核验"] {
  border-color: rgba(21, 130, 103, 0.14);
  color: var(--success);
  background: var(--tint-teal);
}

.status-pill[data-status="渠道核验"] {
  border-color: rgba(179, 107, 10, 0.16);
  color: var(--warning);
  background: var(--tint-amber);
}

.status-pill[data-status="渠道线索"] {
  border-color: rgba(179, 107, 10, 0.16);
  color: #8a5d35;
  background: #fff0e3;
}

.status-pill[data-status="高风险"] {
  border-color: rgba(179, 107, 10, 0.16);
  color: var(--warning);
  background: var(--tint-amber);
}

.status-pill[data-status="即将截止"] {
  border-color: rgba(230, 47, 57, 0.15);
  color: var(--brand-red);
  background: var(--tint-red);
}

.status-pill[data-status="热门线索"] {
  border-color: rgba(22, 74, 136, 0.13);
  color: var(--brand-navy);
  background: var(--tint-blue);
}

.card-facts {
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 7px 11px;
  color: #52657b;
  font-size: 13px;
  line-height: 1.55;
}

.card-facts dt {
  color: #8290a4;
}

.card-warning,
.agent-detail-warning {
  border: 1px solid rgba(230, 157, 45, 0.26);
  border-left: 3px solid #e5a12a;
  border-radius: 12px;
  color: #7c571c;
  background: linear-gradient(90deg, rgba(255, 246, 229, 0.98), rgba(255, 251, 242, 0.92));
}

.card-actions {
  gap: 8px;
  margin-top: 2px;
}

.opportunity-card .source-button {
  border-color: var(--brand-navy-deep);
  color: #fff;
  background: linear-gradient(180deg, #1b579c, var(--brand-navy));
  box-shadow: 0 7px 16px rgba(22, 74, 136, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.opportunity-card .source-button:hover {
  color: #fff;
  background: linear-gradient(180deg, #164b88, var(--brand-navy-deep));
}

.agent-card {
  border-top: 2px solid #8177df;
}

.agent-level-tag {
  border-color: rgba(129, 119, 223, 0.13);
  color: #6659c4;
  background: var(--tint-violet);
}

.agent-card-quick {
  padding: 13px;
  border: 1px solid rgba(106, 137, 177, 0.16);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(238, 246, 255, 0.86), rgba(250, 251, 255, 0.92));
  color: #536981;
}

.ai-tools-column {
  border: 1px solid rgba(126, 150, 184, 0.16);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.55);
}

.ai-tools-column-wide {
  border: 0;
  background: transparent;
}

/* Weekly briefing */
.side-panel {
  position: sticky;
  top: 16px;
  min-width: 0;
  padding: 18px;
  border-radius: var(--radius-panel);
}

.weekly-panel {
  padding-top: 76px;
  background:
    radial-gradient(circle at 5% 3%, rgba(255, 218, 225, 0.46), transparent 31%),
    radial-gradient(circle at 100% 92%, rgba(215, 230, 255, 0.56), transparent 34%),
    rgba(255, 255, 255, 0.78);
}

.weekly-panel-mascot {
  position: absolute;
  z-index: 2;
  top: -58px;
  right: 10px;
  width: 160px;
  height: 108px;
  pointer-events: none;
}

.weekly-panel-mascot img {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 160px;
  transform-origin: 62% 78%;
  filter: drop-shadow(0 7px 8px rgba(88, 93, 70, 0.12));
  animation: weekly-cat-idle 7.6s ease-in-out infinite;
}

.weekly-panel-mascot span {
  position: absolute;
  top: 59px;
  right: 137px;
  width: max-content;
  max-width: 150px;
  padding: 7px 10px;
  border: 1px solid rgba(118, 146, 181, 0.17);
  border-radius: 11px 11px 3px;
  opacity: 0;
  color: #536d88;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 7px 16px rgba(69, 91, 120, 0.1);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
  animation: weekly-cat-bubble 13s ease-in-out 2.8s infinite;
}

@keyframes weekly-cat-idle {
  0%, 70%, 100% { transform: none; }
  77% { transform: rotate(-1.8deg) translateY(-2px); }
  84% { transform: rotate(1deg); }
  90% { transform: none; }
}

@keyframes weekly-cat-bubble {
  0%, 72%, 100% { opacity: 0; transform: translateY(4px) scale(0.97); }
  78%, 92% { opacity: 1; transform: none; }
}

@media (min-width: 1021px) {
  .weekly-panel {
    align-self: start;
    max-height: calc(100vh - 32px);
    padding-top: 112px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }

  .weekly-panel-mascot {
    top: 0;
  }
}

.weekly-panel-title {
  margin-bottom: 12px;
  padding-bottom: 13px;
}

.weekly-panel-title h2 {
  font-size: 22px;
}

.weekly-panel-title p {
  color: #71849b;
  font-size: 12px;
}

.briefing-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 11px;
  padding: 4px;
  border: 1px solid rgba(132, 155, 189, 0.18);
  border-radius: 14px;
  background: rgba(242, 246, 252, 0.7);
  box-shadow: inset 0 1px 2px rgba(63, 82, 116, 0.05);
}

.briefing-tab {
  display: flex;
  min-width: 0;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #61758e;
  background: transparent;
  font-size: 12px;
  font-weight: 720;
  line-height: 1.25;
  cursor: pointer;
}

.briefing-tab small {
  display: grid;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  place-items: center;
  border-radius: 999px;
  color: #7d8fa6;
  background: rgba(255, 255, 255, 0.78);
  font-size: 10px;
}

.briefing-tab:hover {
  color: var(--brand-navy);
  background: rgba(255, 255, 255, 0.66);
}

.briefing-tab.is-active {
  border-color: rgba(230, 47, 57, 0.15);
  color: #c9212d;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 5px 14px rgba(63, 82, 116, 0.08), inset 0 1px 0 #fff;
}

.briefing-tab.is-active small {
  color: #fff;
  background: var(--brand-red);
}

.weekly-ranking-list {
  display: grid;
  gap: 8px;
}

.weekly-ranking-list li {
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(126, 150, 184, 0.17);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 4px 12px rgba(57, 77, 112, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.weekly-ranking-list li:nth-child(-n + 3) {
  border-color: rgba(230, 47, 57, 0.15);
  background: linear-gradient(100deg, rgba(255, 241, 243, 0.88), rgba(255, 255, 255, 0.74));
}

.rank-num {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  color: #4e6680;
  background: #eaf0f7;
  font-size: 12px;
}

.ranking-list li:nth-child(-n + 3) .rank-num {
  color: #fff;
  background: linear-gradient(145deg, #f03a45, var(--brand-red));
  box-shadow: 0 5px 11px rgba(230, 47, 57, 0.19);
}

.weekly-ranking-copy {
  gap: 4px;
}

.weekly-ranking-copy .text-button {
  min-height: 0;
  color: var(--text-primary);
  background: transparent;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.weekly-ranking-copy .text-button:hover {
  color: var(--brand-red);
  background: transparent;
}

.weekly-ranking-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #768aa3;
  font-size: 10.5px;
  line-height: 1.4;
}

.weekly-ranking-meta span {
  max-width: 72%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weekly-ranking-meta time::before {
  content: "·";
  margin-right: 6px;
}

.weekly-ranking-copy > time {
  display: none;
}

.weekly-ranking-copy > p {
  display: none;
}

.daily-brief-list .weekly-ranking-copy > p {
  display: -webkit-box;
  margin: 1px 0 0;
  overflow: hidden;
  color: #637891;
  font-size: 11px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.daily-brief-list li {
  align-items: start;
}

.daily-brief-list .weekly-rank-mark {
  color: #7d93af;
}

/* Details and learning content */
.detail-panel {
  padding: 24px;
}

.detail-panel h2 {
  margin-bottom: 12px;
  color: var(--text-primary);
  font-size: clamp(29px, 3vw, 38px);
  letter-spacing: -0.025em;
}

.detail-meta {
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(126, 150, 184, 0.18);
  color: #70839b;
  font-size: 14px;
}

.detail-body {
  margin-top: 18px;
  padding: 22px;
  border: 1px solid rgba(126, 150, 184, 0.17);
  border-radius: var(--radius-card);
  color: #334a65;
  background: var(--content-bg);
  box-shadow: inset 0 1px 0 #fff, 0 8px 22px rgba(57, 77, 112, 0.05);
  font-size: 17px;
  line-height: 1.78;
}

.weekly-detail-summary {
  color: #2e435d;
  font-size: 18px;
  line-height: 1.85;
}

.agent-detail-summary {
  max-width: 900px;
  color: #2f4761;
  font-size: 18px;
  line-height: 1.78;
}

.agent-at-a-glance {
  gap: 10px;
}

.agent-at-a-glance div {
  padding: 14px;
  border: 1px solid rgba(126, 150, 184, 0.17);
  border-radius: 14px;
  background: var(--tint-blue);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.agent-at-a-glance div:nth-child(2) {
  background: var(--tint-teal);
}

.agent-at-a-glance div:nth-child(3) {
  background: var(--tint-amber);
}

.agent-at-a-glance div:nth-child(4) {
  background: var(--tint-violet);
}

.agent-at-a-glance span {
  color: #71859d;
}

.agent-at-a-glance strong {
  color: var(--text-primary);
}

.agent-detail-section {
  padding: 18px;
  border: 1px solid rgba(126, 150, 184, 0.18);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  line-height: 1.75;
}

.agent-detail-section h3 {
  color: var(--text-primary);
  font-size: 18px;
}

.agent-capabilities {
  border-left: 3px solid #4f93de;
  background: linear-gradient(90deg, rgba(238, 246, 255, 0.92), rgba(255, 255, 255, 0.96));
}

.agent-pros {
  border-top: 1px solid rgba(21, 130, 103, 0.2);
  border-left: 3px solid var(--success);
  background: linear-gradient(110deg, rgba(234, 248, 244, 0.9), rgba(255, 255, 255, 0.96));
}

.agent-cons {
  border-top: 1px solid rgba(179, 107, 10, 0.18);
  border-left: 3px solid #e5a12a;
  background: linear-gradient(110deg, rgba(255, 246, 229, 0.9), rgba(255, 255, 255, 0.96));
}

.agent-resources {
  border-left: 3px solid #8177df;
  background: linear-gradient(110deg, rgba(243, 240, 255, 0.78), rgba(255, 255, 255, 0.96));
}

.agent-resource-list .outline-button {
  color: var(--brand-navy);
  background: rgba(255, 255, 255, 0.86);
}

.agent-video-notice {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(183, 64, 45, 0.34);
  border-left: 4px solid #c94b36;
  border-radius: 10px;
  background: rgba(255, 244, 240, 0.94);
  color: #8c2f20;
  font-weight: 700;
  line-height: 1.65;
}

.agent-video-notice .ui-icon {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 3px;
  color: #c94b36;
}

.agent-advanced {
  border: 1px solid rgba(126, 150, 184, 0.2);
  border-radius: 14px;
  background: rgba(246, 249, 253, 0.92);
}

.agent-advanced summary {
  color: #425c79;
}

.agent-detail-warning {
  border-left-width: 3px;
}

.news-media-section {
  margin-top: 24px;
}

.news-media-heading strong {
  color: var(--text-primary);
}

.news-media-figure {
  border: 1px solid rgba(126, 150, 184, 0.19);
  border-radius: 15px;
  background: #f6f9fd;
  box-shadow: var(--shadow-card);
}

.news-media-image-link {
  padding: 12px;
  background: linear-gradient(145deg, #f8faff, #fff8f9);
}

.news-media-image-link img {
  border-radius: 10px;
}

.news-media-figure figcaption {
  border-top-color: rgba(126, 150, 184, 0.16);
  background: rgba(255, 255, 255, 0.94);
}

.detail-panel > .card-actions {
  margin-top: 18px;
}

/* Chat */
.chat-panel {
  padding: 22px;
  background:
    radial-gradient(circle at 0 12%, rgba(255, 222, 227, 0.4), transparent 28%),
    radial-gradient(circle at 100% 88%, rgba(214, 229, 255, 0.48), transparent 31%),
    rgba(255, 255, 255, 0.76);
}

.pinned-box {
  margin-bottom: 14px;
  padding: 11px 14px;
  border: 1px solid rgba(230, 157, 45, 0.26);
  border-left: 4px solid #e5a12a;
  border-radius: 13px;
  color: #6f5428;
  background: rgba(255, 248, 234, 0.91);
}

.chat-window {
  height: min(520px, 62vh);
  padding: 20px;
  border: 1px solid rgba(126, 150, 184, 0.18);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(244, 248, 255, 0.96), rgba(248, 250, 253, 0.9)),
    var(--page-mist);
  box-shadow: inset 0 2px 10px rgba(53, 76, 111, 0.04), 0 5px 16px rgba(57, 77, 112, 0.04);
  scrollbar-color: rgba(98, 124, 157, 0.35) transparent;
}

.chat-message {
  gap: 11px;
  margin-bottom: 17px;
}

.chat-avatar {
  flex-basis: 40px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(230, 47, 57, 0.2);
  border-radius: 12px;
  color: var(--brand-red);
  background: linear-gradient(145deg, #fff, var(--tint-red));
  box-shadow: 0 6px 14px rgba(68, 88, 120, 0.08);
}

.chat-message.is-own .chat-avatar {
  border-color: rgba(22, 74, 136, 0.22);
  color: #fff;
  background: linear-gradient(145deg, #1e5da5, var(--brand-navy));
  box-shadow: 0 7px 16px rgba(22, 74, 136, 0.18);
}

.chat-meta {
  color: #8492a6;
}

.chat-meta strong,
.chat-message.is-own .chat-meta strong {
  color: var(--text-primary);
}

.chat-bubble,
.chat-message.is-own .chat-bubble {
  padding: 11px 14px;
  border: 1px solid rgba(126, 150, 184, 0.18);
  border-radius: 4px 15px 15px 15px;
  color: #29425f;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 17px rgba(57, 77, 112, 0.07);
}

.chat-message.is-own .chat-bubble {
  border-color: rgba(76, 125, 183, 0.2);
  border-radius: 15px 4px 15px 15px;
  background: linear-gradient(120deg, #fff, #f3f8ff);
}

.chat-bubble::before {
  border-left-color: rgba(126, 150, 184, 0.18);
  border-bottom-color: rgba(126, 150, 184, 0.18);
}

.chat-compose {
  gap: 9px;
  margin-top: 14px;
  padding: 7px;
  border: 1px solid rgba(126, 150, 184, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 8px 21px rgba(57, 77, 112, 0.07), inset 0 1px 0 #fff;
}

.chat-compose input {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.chat-compose input:focus {
  border-color: transparent;
  box-shadow: none;
}

/* Secondary pages and overlays */
.plan-item,
.favorite-item,
.admin-item,
.lead-item,
.empty-state {
  border: 1px solid rgba(126, 150, 184, 0.19);
  border-radius: var(--radius-card);
  background: var(--content-bg);
  box-shadow: var(--shadow-card);
}

.plan-item,
.favorite-item {
  padding: 17px;
}

.plan-link-hint {
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 500;
}

.plan-page-heading {
  min-height: 104px;
  overflow: visible;
}

.plan-page-heading-decoration {
  display: flex;
  align-self: stretch;
  align-items: center;
  gap: 10px;
}

.plan-page-mascot-bubble {
  width: max-content;
  max-width: 150px;
  padding: 7px 10px;
  border: 1px solid rgba(118, 146, 181, 0.17);
  border-radius: 11px 11px 3px;
  opacity: 0;
  color: #536d88;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 7px 16px rgba(69, 91, 120, 0.1);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
  animation: weekly-cat-bubble 13s ease-in-out 2.8s infinite;
}

.plan-page-mascot {
  width: 188px;
  height: 118px;
  margin: -20px -2px -13px 0;
  object-fit: contain;
  border-radius: 32px;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0, #000 10%, #000 92%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0, #000 10%, #000 92%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 5%, #000 95%, transparent 100%);
  mask-composite: intersect;
  pointer-events: none;
  user-select: none;
}

.plan-workspace {
  display: grid;
  gap: 26px;
}

.plan-editor-card {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 18px;
  border: 1px solid rgba(126, 150, 184, 0.19);
  border-radius: var(--radius-card);
  background: var(--content-bg);
  box-shadow: var(--shadow-card);
}

.plan-editor-card textarea {
  min-height: 150px;
}

.plan-list-section {
  min-width: 0;
}

.plan-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.plan-card-grid > .empty-state {
  grid-column: 1 / -1;
}

.plan-item {
  --plan-accent: #8290a3;
  --plan-tint: rgba(245, 247, 250, 0.94);
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border-color: color-mix(in srgb, var(--plan-accent) 25%, transparent);
  background: linear-gradient(145deg, var(--plan-tint), rgba(255, 255, 255, 0.96));
}

.plan-item h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow-wrap: anywhere;
}

.plan-status-in-progress {
  --plan-accent: #318865;
  --plan-tint: rgba(235, 249, 241, 0.95);
}

.plan-status-completed {
  --plan-accent: #d58a16;
  --plan-tint: rgba(255, 248, 224, 0.96);
}

.plan-status-paused {
  --plan-accent: #9688a4;
  --plan-tint: rgba(247, 244, 249, 0.95);
}

.plan-status-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.plan-status-badge {
  flex: 0 0 auto;
  padding: 5px 10px;
  border: 1px solid color-mix(in srgb, var(--plan-accent) 35%, white);
  border-radius: 999px;
  color: var(--plan-accent);
  background: color-mix(in srgb, var(--plan-accent) 10%, white);
  font-size: 12px;
  font-weight: 750;
}

.plan-status-message {
  position: relative;
  max-width: 330px;
  margin-left: auto;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--plan-accent) 22%, white);
  border-radius: 12px 12px 3px;
  color: color-mix(in srgb, var(--plan-accent) 78%, #243952);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 6px 15px rgba(57, 77, 112, 0.08);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  animation: plan-message-pulse 3.6s ease-in-out infinite;
}

.plan-turtle-progress {
  position: relative;
  height: 116px;
  margin: 8px 0 13px;
  overflow: hidden;
  border-radius: 17px;
  background:
    linear-gradient(180deg, rgba(234, 246, 255, 0.66), rgba(255, 255, 255, 0.16)),
    url("assets/mascots/turtle-plan-track.png") center center / 100% auto no-repeat;
}

.plan-turtle {
  position: absolute;
  z-index: 1;
  bottom: 11px;
  width: 120px;
  pointer-events: none;
  user-select: none;
}

.plan-status-not-started .plan-turtle,
.plan-status-paused .plan-turtle {
  left: 5%;
  animation: turtle-sleep 3.8s ease-in-out infinite;
}

.plan-status-paused .plan-turtle {
  opacity: 0.72;
  animation: none;
}

.plan-status-in-progress .plan-turtle {
  left: 38%;
  animation: turtle-crawl 8s linear infinite;
}

.plan-status-completed .plan-turtle {
  right: 6%;
  bottom: 8px;
  width: 90px;
  animation: turtle-celebrate 1.8s ease-in-out infinite;
}

@keyframes turtle-sleep {
  0%, 100% { transform: translateY(1px) scale(0.99); }
  50% { transform: translateY(-2px) scale(1.01); }
}

@keyframes turtle-crawl {
  0% { left: 7%; opacity: 0; transform: translateY(0) rotate(-1deg); }
  5% { opacity: 1; }
  25% { transform: translateY(-3px) rotate(1deg); }
  50% { transform: translateY(0) rotate(-1deg); }
  75% { transform: translateY(-3px) rotate(1deg); }
  88% { left: 64%; opacity: 1; }
  96%, 100% { left: 64%; opacity: 0; transform: translateY(0); }
}

@keyframes turtle-celebrate {
  0%, 100% { transform: translateY(1px) rotate(-1deg); }
  50% { transform: translateY(-7px) rotate(2deg); }
}

@keyframes plan-message-pulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.plan-linked-content {
  width: 100%;
  display: grid;
  gap: 4px;
  margin: 12px 0;
  padding: 12px 14px;
  border: 1px solid rgba(22, 74, 136, 0.16);
  border-radius: 14px;
  color: var(--text-primary);
  background: linear-gradient(120deg, rgba(238, 246, 255, 0.9), rgba(255, 255, 255, 0.96));
  text-align: left;
}

button.plan-linked-content:hover {
  border-color: rgba(22, 74, 136, 0.36);
  box-shadow: 0 7px 18px rgba(57, 77, 112, 0.08);
  transform: translateY(-1px);
}

button.plan-linked-content:focus-visible {
  outline: 3px solid rgba(22, 74, 136, 0.2);
  outline-offset: 2px;
}

.plan-linked-kicker {
  color: var(--brand-red);
  font-size: 12px;
  font-weight: 750;
}

.plan-linked-content strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.45;
}

.plan-linked-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
}

.plan-linked-meta b {
  flex: 0 0 auto;
  color: var(--brand-navy);
}

.plan-linked-content.is-missing {
  border-style: dashed;
  color: var(--text-secondary);
  background: rgba(248, 250, 253, 0.78);
}

.plan-card-excerpt {
  display: -webkit-box;
  min-height: calc(1.65em * 3);
  margin: 2px 0 16px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: var(--text-secondary);
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.plan-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  flex-wrap: wrap;
}

.plan-card-actions button {
  min-height: 38px;
}

.plan-detail-page {
  --plan-accent: #8290a3;
  --plan-tint: rgba(245, 247, 250, 0.94);
  max-width: 1040px;
  width: 100%;
  justify-self: center;
}

.plan-detail-page.plan-status-in-progress {
  --plan-accent: #318865;
  --plan-tint: rgba(235, 249, 241, 0.95);
}

.plan-detail-page.plan-status-completed {
  --plan-accent: #d58a16;
  --plan-tint: rgba(255, 248, 224, 0.96);
}

.plan-detail-page.plan-status-paused {
  --plan-accent: #9688a4;
  --plan-tint: rgba(247, 244, 249, 0.95);
}

.plan-detail-topline,
.plan-detail-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.plan-detail-topline {
  margin-bottom: 22px;
}

.plan-detail-heading > div {
  min-width: 0;
}

.plan-detail-heading h2 {
  margin: 8px 0 5px;
  overflow-wrap: anywhere;
}

.plan-detail-heading p {
  margin: 0;
  color: var(--text-tertiary);
  font-size: 13px;
}

.plan-detail-content-section {
  margin-top: 20px;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid color-mix(in srgb, var(--plan-accent) 20%, transparent);
  border-radius: 20px;
  background: linear-gradient(145deg, var(--plan-tint), rgba(255, 255, 255, 0.98));
}

.plan-detail-content-section h3 {
  margin: 0 0 16px;
}

.plan-detail-content {
  color: var(--text-primary);
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.plan-detail-actions {
  margin-top: 18px;
}

.empty-state {
  border-style: dashed;
  color: #60758e;
  background: rgba(250, 252, 255, 0.82);
}

.span-all-columns {
  grid-column: 1 / -1;
}

.feed-load-more {
  justify-self: center;
  margin-top: 4px;
}

.fade-content,
.animated-list-item {
  opacity: 0;
  transform: translateY(10px) scale(0.992);
}

.fade-content.is-revealed,
.animated-list-item.is-revealed {
  animation: animated-list-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--reveal-delay, 0ms);
}

@keyframes animated-list-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.992);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

:where(
  .primary-button,
  .outline-button,
  .text-button,
  .nav-link,
  .sub-nav button,
  .filters button,
  .briefing-tab
):not(:disabled):active {
  filter: brightness(0.98);
  transform: translateY(1px) scale(0.97);
  transition-duration: 0.08s;
}

.password-toggle:not(:disabled):active {
  transform: translateY(-50%) scale(0.97);
}

.category-card:not(:disabled):active {
  transform: translateY(-1px) scale(0.985);
}

.favorite-success {
  border-color: rgba(230, 47, 57, 0.26);
  color: var(--brand-red);
  background: rgba(255, 240, 242, 0.82);
}

.favorite-success .ui-icon {
  animation: favorite-heartbeat 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes favorite-heartbeat {
  45% {
    transform: scale(1.25);
  }

  72% {
    transform: scale(0.94);
  }
}

#app {
  view-transition-name: app-content;
}

.app-content-prep {
  opacity: 0;
  transform: translateY(6px);
}

.app-content-enter {
  animation: app-content-in 0.22s ease both;
}

::view-transition-old(app-content) {
  animation: app-content-out 0.14s ease both;
}

::view-transition-new(app-content) {
  animation: app-content-in 0.22s ease both;
}

@keyframes app-content-out {
  to {
    opacity: 0;
    transform: translateY(-4px);
  }
}

@keyframes app-content-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.form-grid,
.stack-form,
.split {
  min-width: 0;
}

/* Admin workspace — sectioned navigation instead of one long mixed page */
.admin-workspace-heading {
  align-items: flex-start;
}

.admin-workspace-heading > div,
.admin-section-title > div {
  min-width: 0;
}

.admin-workspace-heading p,
.admin-section-title p {
  margin: 5px 0 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

.admin-workspace-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
  padding: 6px;
  border: 1px solid rgba(126, 150, 184, 0.18);
  border-radius: 18px;
  background: rgba(241, 246, 252, 0.74);
  box-shadow: inset 0 1px 2px rgba(63, 82, 116, 0.05);
}

.admin-workspace-tab {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 70px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #60748e;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.admin-workspace-tab:hover {
  color: var(--brand-navy);
  background: rgba(255, 255, 255, 0.7);
}

.admin-workspace-tab.is-active {
  border-color: rgba(36, 102, 172, 0.23);
  color: var(--brand-navy-deep);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 7px 18px rgba(53, 77, 113, 0.09), inset 0 1px 0 #fff;
}

.admin-workspace-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 11px;
  color: #4a83bf;
  background: rgba(231, 241, 253, 0.86);
}

.admin-workspace-tab.is-active .admin-workspace-icon {
  color: #fff;
  background: linear-gradient(145deg, #2e72b8, var(--brand-navy));
}

.admin-workspace-icon .ui-icon {
  width: 18px;
  height: 18px;
}

.admin-workspace-tab strong,
.admin-workspace-tab small {
  display: block;
}

.admin-workspace-tab strong {
  overflow: hidden;
  color: inherit;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-workspace-tab small {
  margin-top: 3px;
  overflow: hidden;
  color: #8493a6;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-workspace-tab em {
  min-width: 24px;
  padding: 3px 6px;
  border-radius: 999px;
  color: #657990;
  background: rgba(236, 242, 249, 0.92);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  text-align: center;
}

.admin-workspace-tab.is-active em {
  color: #fff;
  background: var(--brand-red);
}

.admin-section-panel {
  min-width: 0;
  padding: 20px;
  border: 1px solid rgba(126, 150, 184, 0.19);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 10px 26px rgba(57, 77, 112, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.admin-automation-section {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.admin-automation-section .news-automation-card {
  margin: 0;
}

.admin-editor-section #adminForm {
  max-width: 980px;
  margin: 18px auto 0;
}

.admin-editor-intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: 18px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(126, 150, 184, 0.17);
}

.admin-editor-intro h3 {
  margin: 7px 0 5px;
  color: var(--text-primary);
  font-size: 20px;
}

.admin-editor-intro p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.65;
}

.admin-category-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.admin-category-choice {
  display: flex;
  min-width: 0;
  min-height: 42px;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid rgba(117, 145, 181, 0.21);
  border-radius: 12px;
  color: #5c708a;
  background: rgba(248, 251, 255, 0.86);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.admin-category-choice:hover {
  color: var(--brand-navy);
  background: #fff;
}

.admin-category-choice.is-active {
  border-color: rgba(230, 47, 57, 0.22);
  color: #bd2631;
  background: var(--tint-red);
  box-shadow: 0 5px 13px rgba(64, 80, 111, 0.07);
}

.admin-category-choice .ui-icon {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
}

[data-admin-category][hidden] {
  display: none !important;
}

.admin-content-section,
.admin-recent-section,
.admin-leads-section {
  max-width: 1120px;
  margin: 0 auto;
}

.admin-section-title {
  align-items: flex-start;
}

.admin-result-summary {
  margin: 3px 0 11px;
  color: #74869d;
  font-size: 12px;
}

.admin-item {
  margin-bottom: 10px;
  padding: 15px;
}

.admin-item-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.admin-item-heading h3 {
  min-width: 0;
}

.admin-item-heading time {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  color: #72849a;
  font-size: 11px;
  white-space: nowrap;
}

.admin-item-heading time .ui-icon {
  width: 14px;
  height: 14px;
}

.admin-item > p {
  display: -webkit-box;
  margin: 7px 0 11px;
  overflow: hidden;
  color: #53667e;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.admin-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.admin-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: -2px 0 11px;
  color: #74869a;
  font-size: 11px;
}

.admin-item-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.admin-item-meta .ui-icon {
  width: 14px;
  height: 14px;
  color: #4f87c2;
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid rgba(126, 150, 184, 0.17);
}

.admin-pagination button {
  min-width: 36px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(117, 145, 181, 0.24);
  border-radius: 10px;
  color: #526b88;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.admin-pagination button:hover:not(:disabled),
.admin-pagination button.is-active {
  border-color: rgba(230, 47, 57, 0.24);
  color: #fff;
  background: var(--brand-red);
}

.admin-page-numbers {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pagination-gap {
  color: #8795a7;
}

.admin-pagination small {
  flex-basis: 100%;
  color: #7a8ba0;
  font-size: 11px;
  text-align: center;
}

.admin-pagination-single {
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid rgba(126, 150, 184, 0.17);
  color: #7b8da2;
  font-size: 11px;
  text-align: center;
}

.admin-leads-section .lead-title {
  margin-top: 0;
}

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

.admin-users-section {
  max-width: 1180px;
  margin: 0 auto;
}

.admin-user-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.admin-user-metrics > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 12px 15px;
  border: 1px solid rgba(117, 145, 181, 0.18);
  border-radius: 14px;
  background: rgba(247, 250, 254, 0.88);
}

.admin-user-metrics small {
  color: #74869c;
  font-size: 12px;
}

.admin-user-metrics strong {
  color: var(--brand-navy-deep);
  font-size: 24px;
}

.admin-user-metrics .is-danger strong {
  color: var(--brand-red);
}

.admin-user-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(140px, 190px) auto auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}

.admin-user-toolbar label,
.admin-user-toolbar input,
.admin-user-toolbar select {
  width: 100%;
}

.admin-user-toolbar input,
.admin-user-toolbar select,
.admin-user-form input,
.admin-user-form select,
.admin-user-ban-form input,
.admin-user-ban-form select,
.admin-user-ban-form textarea {
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid rgba(117, 145, 181, 0.26);
  border-radius: 11px;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.94);
  font: inherit;
}

.admin-users-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(410px, 1.2fr);
  gap: 14px;
  align-items: start;
}

.admin-user-list-panel,
.admin-user-detail-panel {
  min-width: 0;
  border: 1px solid rgba(117, 145, 181, 0.18);
  border-radius: 16px;
  background: rgba(250, 252, 255, 0.78);
}

.admin-user-list-panel {
  overflow: hidden;
}

.admin-user-detail-panel {
  padding: 16px;
}

.admin-user-list-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px;
  border-bottom: 1px solid rgba(117, 145, 181, 0.16);
}

.admin-user-list-summary strong {
  color: var(--brand-navy-deep);
  font-size: 13px;
}

.admin-user-list-summary span {
  color: #7a8ca1;
  font-size: 11px;
}

.admin-user-list {
  display: grid;
  gap: 7px;
  padding: 9px;
}

.admin-user-row {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.admin-user-row:hover,
.admin-user-row.is-active {
  border-color: rgba(52, 111, 173, 0.2);
  background: #fff;
  box-shadow: 0 5px 14px rgba(55, 80, 115, 0.07);
}

.admin-user-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #4c8dcb, var(--brand-navy));
  font-size: 15px;
  font-weight: 800;
}

.admin-user-row-copy {
  min-width: 0;
}

.admin-user-row-copy strong,
.admin-user-row-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-row-copy strong {
  color: var(--text-primary);
  font-size: 13px;
}

.admin-user-row-copy small {
  margin-top: 3px;
  color: #7c8da1;
  font-size: 10px;
}

.admin-user-row-status {
  padding: 4px 7px;
  border-radius: 999px;
  color: #267554;
  background: rgba(53, 176, 119, 0.11);
  font-size: 10px;
  font-weight: 800;
}

.admin-user-row-status.is-banned {
  color: #b52431;
  background: rgba(230, 47, 57, 0.1);
}

.admin-user-loading {
  padding: 38px 16px;
  color: #74869c;
  font-size: 13px;
  text-align: center;
}

.admin-user-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px;
  border-top: 1px solid rgba(117, 145, 181, 0.16);
  color: #74869c;
  font-size: 11px;
}

.admin-user-pagination .outline-button {
  min-height: 32px;
  padding: 6px 10px;
}

.admin-user-empty-detail {
  display: grid;
  min-height: 320px;
  place-items: center;
  align-content: center;
  padding: 26px;
  color: #7a8ca1;
  text-align: center;
}

.admin-user-empty-detail .ui-icon {
  width: 32px;
  height: 32px;
  color: #4b86c1;
}

.admin-user-empty-detail h3 {
  margin: 10px 0 5px;
  color: var(--text-primary);
}

.admin-user-empty-detail p {
  max-width: 360px;
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
}

.admin-user-detail-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(117, 145, 181, 0.16);
}

.admin-user-detail-heading h3 {
  margin: 6px 0 2px;
  color: var(--text-primary);
  font-size: 18px;
}

.admin-user-detail-heading p {
  margin: 0;
  color: #718399;
  font-size: 11px;
}

.admin-user-ban-summary {
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(230, 47, 57, 0.18);
  border-radius: 12px;
  background: rgba(255, 241, 243, 0.78);
}

.admin-user-ban-summary strong {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #ac2430;
  font-size: 12px;
}

.admin-user-ban-summary .ui-icon {
  width: 15px;
  height: 15px;
}

.admin-user-ban-summary p {
  margin: 6px 0 0;
  color: #79565b;
  font-size: 11px;
  line-height: 1.6;
}

.admin-user-account-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin: 12px 0;
}

.admin-user-account-meta > span {
  min-width: 0;
  padding: 9px;
  border-radius: 10px;
  background: rgba(237, 243, 250, 0.72);
}

.admin-user-account-meta small,
.admin-user-account-meta strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-account-meta small {
  color: #7b8da1;
  font-size: 9px;
}

.admin-user-account-meta strong {
  margin-top: 3px;
  color: #51677f;
  font-size: 10px;
}

.admin-user-form,
.admin-user-danger-zone {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
  padding-top: 13px;
  border-top: 1px solid rgba(117, 145, 181, 0.16);
}

.admin-user-form-title {
  grid-column: 1 / -1;
}

.admin-user-form-title h4 {
  margin: 0;
  color: var(--brand-navy-deep);
  font-size: 13px;
}

.admin-user-form-title p {
  margin: 3px 0 0;
  color: #7a8ca1;
  font-size: 10px;
  line-height: 1.5;
}

.admin-user-form label,
.admin-user-ban-form label {
  color: #60748d;
  font-size: 11px;
  font-weight: 700;
}

.admin-user-form input,
.admin-user-ban-form input,
.admin-user-ban-form select,
.admin-user-ban-form textarea {
  width: 100%;
  margin-top: 5px;
}

.admin-user-form .admin-user-check {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 7px;
  padding: 8px 0;
}

.admin-user-form .admin-user-check input {
  width: 16px;
  min-height: 16px;
  margin: 0;
}

.admin-user-form .primary-button,
.admin-user-form .outline-button,
.admin-user-danger-zone > button,
.admin-user-ban-form > button {
  grid-column: 1 / -1;
  justify-self: start;
}

.admin-user-ban-form {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.admin-user-ban-form .wide {
  grid-column: 1 / -1;
}

.admin-user-ban-form textarea {
  min-height: 82px;
  resize: vertical;
}

.admin-user-custom-duration {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.admin-user-custom-duration[hidden] {
  display: none;
}

.danger-button {
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid rgba(183, 31, 44, 0.16);
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg, #d93644, #b7222f);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 7px 15px rgba(183, 31, 44, 0.16);
}

.admin-user-unban-button {
  border-color: rgba(53, 176, 119, 0.25);
  color: #24744f;
}

/* Admin — official-source AI news automation */
.news-automation-card {
  margin: 18px 0 24px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(118, 151, 197, 0.22);
  border-radius: 21px;
  background:
    radial-gradient(circle at 0 0, rgba(255, 224, 230, 0.66), transparent 32%),
    radial-gradient(circle at 100% 8%, rgba(216, 231, 255, 0.68), transparent 34%),
    rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 34px rgba(54, 76, 113, 0.09), inset 0 1px 0 #fff;
}

.news-automation-card.has-error {
  border-color: rgba(215, 62, 70, 0.3);
}

.automation-loading {
  padding: 24px;
  color: var(--text-secondary);
  text-align: center;
}

.automation-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.automation-heading h2 {
  margin: 6px 0 7px;
  color: var(--brand-navy-deep);
  font-size: 24px;
}

.automation-heading p {
  max-width: 820px;
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.65;
}

.automation-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--brand-red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.automation-kicker .ui-icon {
  width: 17px;
  height: 17px;
}

.automation-status {
  flex: 0 0 auto;
  padding: 7px 12px;
  border: 1px solid rgba(116, 142, 178, 0.2);
  border-radius: 999px;
  color: #58708f;
  background: rgba(239, 244, 251, 0.9);
  font-size: 13px;
  font-weight: 700;
}

.automation-status.status-success {
  border-color: rgba(21, 130, 103, 0.22);
  color: #0e765d;
  background: var(--tint-teal);
}

.automation-status.status-partial {
  border-color: rgba(190, 122, 20, 0.24);
  color: #94600f;
  background: rgba(255, 244, 215, 0.92);
}

.automation-status.status-failed {
  border-color: rgba(230, 47, 57, 0.22);
  color: #b5222d;
  background: var(--tint-red);
}

.automation-status.status-running {
  color: var(--brand-navy);
  background: var(--tint-blue);
}

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

.automation-stats > div {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(126, 150, 184, 0.18);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 #fff;
}

.automation-stats span,
.automation-stats small {
  display: block;
  color: var(--text-secondary);
  font-size: 12px;
}

.automation-stats strong {
  display: block;
  margin: 6px 0 4px;
  overflow: hidden;
  color: var(--text-primary);
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.automation-error {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 14px;
  padding: 11px 13px;
  border: 1px solid rgba(230, 47, 57, 0.19);
  border-left: 4px solid var(--brand-red);
  border-radius: 13px;
  color: #9e2b34;
  background: rgba(255, 240, 242, 0.86);
  line-height: 1.55;
}

.automation-error .ui-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.automation-form {
  display: grid;
  grid-template-columns: minmax(280px, 1.5fr) minmax(160px, 0.55fr) minmax(210px, 0.7fr);
  gap: 14px;
  align-items: end;
  margin-top: 17px;
  padding: 17px;
  border: 1px solid rgba(126, 150, 184, 0.19);
  border-radius: 17px;
  background: rgba(248, 251, 255, 0.72);
}

.automation-provider-options {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.automation-provider-options legend {
  margin-bottom: 9px;
  color: #526b89;
  font-size: 13px;
  font-weight: 700;
}

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

.automation-provider-card {
  position: relative;
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(113, 145, 186, 0.22);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.automation-provider-card:hover {
  border-color: rgba(61, 117, 181, 0.34);
  background: rgba(255, 255, 255, 0.96);
  transform: translateY(-1px);
}

.automation-provider-card:has(input:focus-visible) {
  outline: 3px solid rgba(44, 108, 178, 0.2);
  outline-offset: 2px;
}

.automation-provider-card:has(input:checked) {
  border-color: rgba(36, 102, 172, 0.46);
  background: linear-gradient(135deg, rgba(238, 246, 255, 0.96), rgba(255, 255, 255, 0.98));
  box-shadow: 0 8px 18px rgba(50, 91, 142, 0.1), inset 0 1px 0 #fff;
}

.automation-provider-card.is-experimental:has(input:checked) {
  border-color: rgba(219, 143, 25, 0.42);
  background: linear-gradient(135deg, rgba(255, 247, 231, 0.96), rgba(255, 255, 255, 0.98));
}

.automation-provider-card > input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.provider-radio-mark {
  display: grid;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  place-items: center;
  border: 1px solid rgba(91, 123, 162, 0.42);
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(63, 82, 116, 0.08);
}

.automation-provider-card input:checked + .provider-radio-mark {
  border: 5px solid var(--brand-navy);
}

.automation-provider-card.is-experimental input:checked + .provider-radio-mark {
  border-color: #d88c18;
}

.provider-card-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
  color: #536b86;
  font-size: 12px;
  line-height: 1.55;
}

.provider-card-copy strong {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--text-primary);
  font-size: 14px;
}

.provider-card-copy strong em {
  padding: 2px 7px;
  border-radius: 999px;
  color: #fff;
  background: var(--brand-navy);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.automation-provider-card.is-experimental .provider-card-copy strong em {
  background: #d88c18;
}

.provider-card-copy small {
  color: #256aa9;
  font-size: 11px;
  font-weight: 700;
}

.provider-privacy {
  color: #7b8da3;
  font-size: 11px;
}

.provider-privacy a {
  color: var(--brand-navy);
  font-weight: 700;
}

.automation-form label:not(.automation-switch) > span {
  display: block;
  margin-bottom: 7px;
  color: #526b89;
  font-size: 13px;
  font-weight: 700;
}

.automation-form input[type="password"],
.automation-form input[type="time"] {
  width: 100%;
  height: 45px;
  border: 1px solid rgba(113, 145, 186, 0.28);
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.94);
}

.automation-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 45px;
  padding: 8px 12px;
  border: 1px solid rgba(113, 145, 186, 0.22);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.78);
  cursor: pointer;
}

.automation-switch input {
  width: 19px;
  height: 19px;
  accent-color: var(--brand-red);
}

.automation-switch span,
.automation-switch small {
  display: block;
}

.automation-switch strong {
  color: var(--text-primary);
  font-size: 13px;
}

.automation-switch small {
  margin-top: 2px;
  color: var(--text-secondary);
  font-size: 11px;
}

.automation-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.automation-run-button {
  border-color: rgba(22, 74, 136, 0.35);
  color: #fff;
  background: linear-gradient(145deg, #2466ac, var(--brand-navy));
  box-shadow: 0 7px 17px rgba(22, 74, 136, 0.18);
}

.automation-run-button:hover:not(:disabled) {
  color: #fff;
  background: var(--brand-navy-deep);
}

.automation-remove {
  margin-left: auto;
  color: #a94a51;
}

.automation-guardrails {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.automation-guardrails > div {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px;
  border-radius: 14px;
  color: #526985;
  background: rgba(242, 247, 253, 0.76);
  font-size: 12px;
  line-height: 1.6;
}

.automation-guardrails .ui-icon {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  color: var(--brand-navy);
}

.automation-guardrails strong {
  color: var(--text-primary);
}

.automation-runs {
  margin-top: 14px;
  border-top: 1px solid rgba(126, 150, 184, 0.18);
}

.automation-runs summary {
  padding: 13px 2px 8px;
  color: var(--brand-navy);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.automation-run-list {
  display: grid;
  gap: 7px;
  padding-top: 4px;
}

.automation-run-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(126, 150, 184, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
}

.run-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: #8ca0b8;
}

.run-success .run-dot { background: var(--success); }
.run-partial .run-dot { background: #c8871b; }
.run-failed .run-dot { background: var(--brand-red); }
.run-running .run-dot { background: var(--brand-navy); }

.automation-run-row strong,
.automation-run-row small {
  display: block;
}

.automation-run-row strong {
  color: var(--text-primary);
  font-size: 13px;
}

.automation-run-row small,
.automation-empty-run {
  margin-top: 3px;
  color: var(--text-secondary);
  font-size: 12px;
}

.automation-run-row p {
  margin: 5px 0 0;
  color: #a13039;
  font-size: 12px;
}

.check-row,
.agent-admin-fields {
  border-color: rgba(126, 150, 184, 0.19);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.7);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  width: 100vw;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding:
    max(18px, env(safe-area-inset-top))
    max(18px, env(safe-area-inset-right))
    max(18px, env(safe-area-inset-bottom))
    max(18px, env(safe-area-inset-left));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(21, 37, 61, 0.34);
  backdrop-filter: blur(10px);
}

.modal-backdrop[hidden] {
  display: none !important;
}

body.auth-modal-open {
  overflow: hidden;
}

.modal {
  box-sizing: border-box;
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  border-radius: 22px;
  color: var(--text-primary);
}

.modal h2 {
  color: var(--brand-navy);
}

.modal-close:hover {
  color: var(--brand-red);
  background: var(--tint-red);
}

.auth-tabs {
  padding: 4px;
  border-radius: 14px;
  background: rgba(239, 244, 250, 0.76);
}

.auth-tabs .is-active {
  border-color: rgba(230, 47, 57, 0.16);
  color: var(--brand-red);
  background: #fff;
  box-shadow: 0 5px 13px rgba(57, 77, 112, 0.08);
}

.auth-error {
  border-radius: 11px;
}

.toast {
  position: fixed;
  z-index: 200;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: min(88vw, 520px);
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 16px;
  color: #fff;
  background: rgba(20, 48, 82, 0.94);
  box-shadow: 0 22px 58px rgba(24, 45, 74, 0.3);
  backdrop-filter: blur(16px);
  opacity: 0;
  transform: translate(-50%, -44%) scale(0.96);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.toast-success {
  background: rgba(18, 120, 91, 0.96);
}

.toast-error {
  background: rgba(174, 35, 49, 0.96);
}

.toast-icon {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  font-size: 16px;
  font-weight: 800;
}

.toast-message {
  line-height: 1.55;
  font-weight: 700;
  white-space: pre-line;
}

/* Reusable inline icon system and scan-friendly information modules */
.ui-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 1em;
  height: 1em;
  overflow: visible;
  vertical-align: -0.15em;
}

button .ui-icon,
.hero-meta .ui-icon,
.search-box button .ui-icon {
  width: 17px;
  height: 17px;
}

.primary-button,
.outline-button,
.hero-meta span,
.search-box button,
.agent-resource-list button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.search-box button {
  display: inline-flex;
}

.category-card strong::before {
  display: none;
}

.category-card strong {
  align-items: center;
  gap: 9px;
}

.category-card strong > span:last-child {
  color: var(--text-primary);
  font-size: inherit;
  line-height: inherit;
}

.category-card > span {
  color: #62748b;
  font-size: 13px;
  line-height: 1.72;
}

.category-card-icon {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--category-accent) 18%, white);
  border-radius: 10px;
  color: var(--category-accent);
  background: color-mix(in srgb, var(--category-accent) 9%, white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.category-card-icon .ui-icon {
  width: 18px;
  height: 18px;
}

.opportunity-card {
  --card-accent: #e95a62;
  --card-tint: var(--tint-red);
}

.opportunity-card[data-category="competitions"] {
  --card-accent: #ef5d58;
  --card-tint: #fff0ef;
}

.opportunity-card[data-category="career-benefits"] {
  --card-accent: #e86a58;
  --card-tint: #fff2ed;
}

.opportunity-card[data-category="ai-tools"] {
  --card-accent: #3d86d1;
  --card-tint: var(--tint-blue);
}

.opportunity-card[data-category="agents"] {
  --card-accent: #776bd8;
  --card-tint: var(--tint-violet);
}

.card-topline {
  align-items: center;
}

.card-kind-icon {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  margin-right: 1px;
  border: 1px solid color-mix(in srgb, var(--card-accent) 20%, white);
  border-radius: 10px;
  color: var(--card-accent);
  background: color-mix(in srgb, var(--card-accent) 9%, white);
}

.card-kind-icon .ui-icon {
  width: 17px;
  height: 17px;
}

.card-facts dt {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: #71849d;
}

.card-facts dt .ui-icon {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: #3f8fe4;
}

.card-facts dd {
  color: #4b617a;
}

.card-warning,
.agent-detail-warning {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.card-warning .ui-icon,
.agent-detail-warning .ui-icon {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  color: #dc8e13;
}

.card-warning > span,
.agent-detail-warning > span {
  min-width: 0;
}

.card-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.card-actions .ui-icon {
  width: 16px;
  height: 16px;
}

.agent-card-quick > strong,
.agent-good,
.agent-limit {
  display: flex;
  align-items: flex-start;
  gap: 7px;
}

.agent-card-quick > strong .ui-icon,
.agent-good .ui-icon,
.agent-limit .ui-icon {
  width: 15px;
  height: 15px;
  margin-top: 3px;
}

.agent-card-quick > strong .ui-icon {
  color: #4f8fd6;
}

.agent-good .ui-icon {
  color: var(--success);
}

.agent-limit .ui-icon {
  color: #d58b15;
}

.agent-good::before,
.agent-limit::before {
  display: none;
}

.weekly-ranking-list li {
  grid-template-columns: 28px minmax(0, 1fr) 18px;
}

.weekly-rank-mark {
  display: grid;
  width: 18px;
  height: 24px;
  place-items: center;
  color: #91a2b8;
}

.weekly-rank-mark .ui-icon {
  width: 15px;
  height: 15px;
}

.weekly-ranking-list li:nth-child(-n + 3) .weekly-rank-mark {
  color: #e2900e;
}

.detail-heading-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.detail-heading-row h2 {
  min-width: 0;
}

.detail-kind-icon {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-top: 1px;
  border: 1px solid rgba(230, 47, 57, 0.16);
  border-radius: 13px;
  color: var(--brand-red);
  background: var(--tint-red);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.detail-kind-icon[data-category="ai-tools"] {
  border-color: rgba(61, 134, 209, 0.16);
  color: #327ac5;
  background: var(--tint-blue);
}

.detail-kind-icon[data-category="agents"] {
  border-color: rgba(119, 107, 216, 0.16);
  color: #6b5fc8;
  background: var(--tint-violet);
}

.detail-kind-icon[data-category="career-benefits"] {
  border-color: rgba(232, 106, 88, 0.16);
  color: #d95846;
  background: #fff2ed;
}

.detail-kind-icon .ui-icon {
  width: 23px;
  height: 23px;
}

.agent-glance-label,
.agent-detail-section h3,
.agent-audience,
.agent-advanced summary {
  display: flex;
  align-items: center;
  gap: 8px;
}

.agent-glance-label .ui-icon {
  width: 18px;
  height: 18px;
}

.agent-at-a-glance div:nth-child(1) .agent-glance-label .ui-icon {
  color: #337fd0;
}

.agent-at-a-glance div:nth-child(2) .agent-glance-label .ui-icon {
  color: var(--success);
}

.agent-at-a-glance div:nth-child(3) .agent-glance-label .ui-icon {
  color: #d9850d;
}

.agent-at-a-glance div:nth-child(4) .agent-glance-label .ui-icon {
  color: #6b5fd0;
}

.agent-detail-section h3 .ui-icon {
  width: 21px;
  height: 21px;
}

.agent-capabilities h3 .ui-icon {
  color: #347fd0;
}

.agent-pros h3 .ui-icon {
  color: var(--success);
}

.agent-cons h3 .ui-icon {
  color: #dc8a0b;
}

.agent-resources h3 .ui-icon {
  color: #6f63d6;
}

.agent-audience {
  align-items: flex-start;
}

.agent-audience .ui-icon {
  width: 17px;
  height: 17px;
  margin-top: 4px;
  color: #347fd0;
}

.agent-resource-list .ui-icon {
  width: 15px;
  height: 15px;
}

.agent-advanced summary .ui-icon {
  width: 17px;
  height: 17px;
  color: #5d72a0;
}

.generic-detail-overview {
  display: grid;
  gap: 11px;
  padding: 18px;
  border: 1px solid rgba(92, 137, 190, 0.17);
  border-left: 3px solid #4f93de;
  border-radius: 15px;
  background: linear-gradient(105deg, rgba(238, 246, 255, 0.86), rgba(255, 255, 255, 0.96));
}

.generic-detail-heading,
.detail-fact-label,
.detail-notice-panel > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.generic-detail-heading {
  color: var(--brand-navy);
  font-size: 17px;
  font-weight: 800;
}

.generic-detail-heading .ui-icon {
  width: 20px;
  height: 20px;
  color: #3c86d6;
}

.generic-detail-summary {
  margin: 0;
  color: #334c68;
  line-height: 1.8;
}

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

.detail-fact-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(126, 150, 184, 0.18);
  border-radius: 15px;
  background: var(--tint-blue);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.detail-fact-card[data-tone="2"] {
  background: var(--tint-teal);
}

.detail-fact-card[data-tone="3"] {
  background: var(--tint-amber);
}

.detail-fact-card[data-tone="4"] {
  background: var(--tint-violet);
}

.detail-fact-label {
  margin-bottom: 9px;
  color: #60758e;
  font-size: 13px;
  font-weight: 700;
}

.detail-fact-label .ui-icon {
  width: 18px;
  height: 18px;
  color: #347fd0;
}

.detail-fact-card[data-tone="2"] .detail-fact-label .ui-icon {
  color: var(--success);
}

.detail-fact-card[data-tone="3"] .detail-fact-label .ui-icon {
  color: #d9850d;
}

.detail-fact-card[data-tone="4"] .detail-fact-label .ui-icon {
  color: #6b5fc8;
}

.detail-fact-card p {
  margin: 0;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.65;
}

.career-detail-panel {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(232, 106, 88, 0.18);
  border-left: 3px solid #e86a58;
  border-radius: 15px;
  background: linear-gradient(105deg, rgba(255, 242, 237, 0.88), rgba(255, 255, 255, 0.96));
}

.career-detail-copy {
  color: #384f68;
  line-height: 1.85;
}

.detail-notice-panel {
  margin-top: 14px;
  padding: 15px 17px;
  border: 1px solid rgba(230, 157, 45, 0.26);
  border-left: 3px solid #e5a12a;
  border-radius: 14px;
  background: linear-gradient(100deg, rgba(255, 246, 229, 0.94), rgba(255, 252, 246, 0.96));
}

.detail-notice-panel > div {
  color: #7c571c;
}

.detail-notice-panel .ui-icon {
  width: 18px;
  height: 18px;
  color: #d98b12;
}

.detail-notice-panel p {
  margin: 8px 0 0 26px;
  color: #755826;
  font-size: 15px;
  line-height: 1.7;
}

.news-media-heading strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 760px) {
  .detail-fact-grid {
    grid-template-columns: 1fr;
  }

  .detail-heading-row {
    gap: 9px;
  }

  .detail-kind-icon {
    flex-basis: 36px;
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .detail-kind-icon .ui-icon {
    width: 20px;
    height: 20px;
  }
}

/* Responsive behavior */
@media (max-width: 1160px) {
  .topbar {
    grid-template-areas:
      "brand actions"
      "search search";
    grid-template-columns: minmax(230px, 1fr) auto;
    gap: 10px 18px;
    padding: 13px 15px;
  }

  .brand {
    grid-area: brand;
  }

  .search-box {
    grid-area: search;
  }

  .header-actions {
    grid-area: actions;
  }

  .nav-row {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--border-soft) transparent;
  }

  .nav-row::-webkit-scrollbar {
    height: 3px;
  }

  .nav-row::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: var(--border-soft);
  }

  .nav-link {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .hero {
    grid-template-columns: minmax(0, 1.16fr) minmax(300px, 0.84fr);
    padding: 32px 24px 27px 38px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero-mascot-frame {
    right: -85px;
    width: 560px;
  }

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

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

  .automation-form {
    grid-template-columns: minmax(260px, 1fr) minmax(160px, 0.5fr);
  }

  .automation-switch {
    grid-column: 1 / -1;
  }

  .admin-workspace-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1020px) {
  .layout,
  .split {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }

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

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

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

  .admin-category-switch {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .hero {
    grid-template-columns: 1fr;
    min-height: 360px;
    padding-right: 210px;
  }

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

  .hero h1 {
    font-size: 42px;
  }

  .hero-visual {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.28;
    pointer-events: none;
  }

  .hero-mascot-frame {
    right: -215px;
    width: 620px;
  }
}

@media (max-width: 760px) {
  body {
    background-attachment: scroll;
  }

  body::before,
  body::after {
    position: absolute;
  }

  .topbar,
  .nav-row,
  .sub-nav,
  .hero,
  .main-panel,
  .side-panel,
  .admin-panel,
  .chat-panel,
  .detail-panel,
  .modal {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .hero-visual::before {
    filter: none;
  }

  .page-shell {
    width: min(100% - 24px, 1280px);
  }

  .site-header {
    padding-top: 8px;
  }

  .topbar {
    grid-template-areas:
      "brand"
      "search"
      "actions";
    grid-template-columns: 1fr;
  }

  .header-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
    overflow: visible;
  }

  .brand .brand-wordmark strong {
    font-size: 34px;
  }

  .sub-nav {
    width: calc(100% - 24px);
    max-width: none;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .hero {
    min-height: 378px;
    padding: 27px 19px 24px;
    text-align: left;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .hero-meta {
    justify-content: flex-start;
  }

  .hero-art-title {
    padding-right: 24px;
  }

  .hero-art-title i {
    bottom: 14px;
    font-size: 21px;
  }

  .hero-visual {
    opacity: 0.13;
  }

  .hero-mascot-frame {
    right: -82px;
    width: 330px;
  }

  .hero-mascot-static {
    inset: 6% 4% 6% auto;
    width: 72%;
    height: 88%;
  }

  .feed-garden-edge {
    height: 82px;
  }

  .feed-garden-image {
    right: -20px;
    height: 96px;
  }

  .mobile-briefing-card {
    display: block;
  }

  body[data-route="home"] .weekly-panel {
    display: none;
  }

  body[data-route="home"] .weekly-panel.is-mobile-open {
    display: block;
  }

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

  .plan-page-heading {
    min-height: 82px;
  }

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

  .plan-editor-card .wide {
    grid-column: auto;
  }

  .plan-detail-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .plan-page-heading-decoration {
    gap: 5px;
  }

  .plan-page-mascot {
    width: 126px;
    height: 88px;
    margin: -12px -8px -13px 0;
  }

  .plan-status-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .plan-status-message {
    max-width: 100%;
    margin-left: 0;
  }

  .plan-turtle-progress {
    height: 96px;
  }

  .plan-turtle {
    width: 90px;
  }

  .plan-status-completed .plan-turtle {
    width: 72px;
  }

  .weekly-panel-mascot span,
  .plan-page-mascot-bubble {
    display: none;
  }

  .weekly-panel-mascot {
    top: -48px;
    width: 142px;
    height: 96px;
  }

  .weekly-panel-mascot img {
    width: 142px;
  }

  .category-grid,
  .feed-grid,
  .ai-tools-column-wide .ai-tools-list,
  .weekly-ranking-list,
  .agent-pro-con-grid,
  .agent-at-a-glance,
  .form-grid,
  .smart-filter,
  .smart-filter-competition,
  .smart-filter-agents,
  .agent-admin-grid {
    grid-template-columns: 1fr;
  }

  .automation-stats,
  .automation-form,
  .automation-guardrails {
    grid-template-columns: 1fr;
  }

  .automation-provider-grid {
    grid-template-columns: 1fr;
  }

  .automation-switch,
  .automation-actions {
    grid-column: auto;
  }

  .automation-heading {
    display: block;
  }

  .automation-status {
    display: inline-block;
    margin-top: 12px;
  }

  .automation-actions > button {
    flex: 1 1 auto;
  }

  .automation-remove {
    margin-left: 0;
  }

  .main-panel,
  .admin-panel,
  .chat-panel,
  .detail-panel,
  .side-panel {
    padding: 15px;
    border-radius: 20px;
  }

  .category-card {
    min-height: 132px;
  }

  .filters {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .filters button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .detail-body {
    padding: 17px;
    font-size: 16px;
  }

  .detail-panel h2 {
    font-size: 28px;
  }

  .chat-window {
    height: min(500px, 58vh);
    padding: 15px;
  }

  .chat-compose {
    grid-template-columns: 1fr;
  }

  .chat-compose .primary-button {
    width: 100%;
  }

  .admin-workspace-heading,
  .admin-section-title {
    gap: 10px;
  }

  .admin-workspace-tabs {
    display: flex;
    margin-right: -7px;
    padding: 5px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .admin-workspace-tabs::-webkit-scrollbar {
    display: none;
  }

  .admin-workspace-tab {
    flex: 0 0 164px;
    min-height: 64px;
    scroll-snap-align: start;
  }

  .admin-section-panel {
    padding: 15px;
    border-radius: 16px;
  }

  .admin-automation-section {
    padding: 0;
  }

  .admin-editor-intro {
    gap: 14px;
  }

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

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

  .admin-user-toolbar label:first-child {
    grid-column: 1 / -1;
  }

  .admin-user-toolbar .outline-button,
  .admin-user-toolbar .text-button {
    width: 100%;
  }

  .admin-user-account-meta {
    grid-template-columns: 1fr;
  }

  .admin-user-form,
  .admin-user-danger-zone,
  .admin-user-ban-form {
    grid-template-columns: 1fr;
  }

  .admin-user-custom-duration {
    grid-column: 1 / -1;
  }

  .admin-item-heading {
    display: block;
  }

  .admin-item-heading time {
    margin-top: 5px;
  }

  .admin-pagination {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .admin-pagination small {
    text-align: left;
  }
}

@media (max-width: 440px) {
  .header-actions .text-button {
    padding-inline: 7px;
    font-size: 13px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .brand .brand-wordmark strong {
    font-size: 31px;
  }

  .brand small {
    font-size: 11px;
  }

  .hero-meta span {
    padding-inline: 10px;
    font-size: 12px;
  }

  .section-title h2 {
    font-size: 21px;
  }

  .opportunity-card {
    padding: 16px;
  }

  .card-actions > button {
    flex: 1 1 auto;
  }

  .chat-message-main {
    max-width: calc(100% - 48px);
  }

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

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

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

  .admin-user-toolbar label:first-child {
    grid-column: auto;
  }

  .admin-workspace-heading,
  .admin-section-title {
    display: block;
  }

  .admin-workspace-heading > .mini-tag,
  .admin-section-title > .mini-tag {
    display: inline-block;
    margin-top: 9px;
  }

  .modal-backdrop {
    padding: 12px;
  }

  .modal {
    max-height: calc(100dvh - 24px);
    padding: 22px 18px;
  }
}

@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;
  }

  .brand-wordmark strong,
  .hero h1 > span,
  .eyebrow {
    animation: none !important;
    background-position: 160% 0, 0 0;
  }

  .weekly-panel-mascot img,
  .weekly-panel-mascot span,
  .plan-turtle,
  .plan-status-message {
    animation: none !important;
  }
}
