@charset "UTF-8";

:root {
  --paper: #f4f1e9;
  --paper-deep: #ebe6da;
  --surface: #fffdf8;
  --surface-soft: #f8f5ed;
  --ink: #18251f;
  --ink-soft: #3f4b44;
  --muted: #707a73;
  --muted-light: #9ba39d;
  --forest: #17372b;
  --forest-2: #21493b;
  --forest-3: #2f5e4b;
  --lime: #c8f277;
  --lime-soft: #e6f8bd;
  --coral: #ff6b46;
  --coral-soft: #ffe2d8;
  --sky: #a7cff2;
  --sky-soft: #e4f1fc;
  --gold: #e4b65f;
  --line: rgba(24, 37, 31, 0.1);
  --line-strong: rgba(24, 37, 31, 0.18);
  --shadow-sm: 0 1px 1px rgba(24, 37, 31, 0.03), 0 8px 28px rgba(24, 37, 31, 0.045);
  --shadow-md: 0 18px 48px rgba(24, 37, 31, 0.09);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;
  --sidebar: 258px;
  --font-sans: "Microsoft YaHei", "Microsoft YaHei UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", sans-serif;
  --font-brand: "Songti SC", "STSong", "Noto Serif CJK SC", Georgia, serif;
  --font-serif: var(--font-sans);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% -10%, rgba(200, 242, 119, 0.17), transparent 27%),
    radial-gradient(circle at 100% 16%, rgba(167, 207, 242, 0.15), transparent 24%),
    var(--paper);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

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

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

button {
  color: inherit;
}

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

::selection {
  color: var(--forest);
  background: var(--lime);
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(20px);
  pointer-events: none;
}

.ambient-one {
  top: 55%;
  left: 19%;
  background: radial-gradient(circle, rgba(255, 229, 179, 0.2), transparent 68%);
}

.ambient-two {
  right: -200px;
  bottom: -200px;
  background: radial-gradient(circle, rgba(200, 242, 119, 0.13), transparent 68%);
}

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

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

.icon-xs {
  width: 13px;
  height: 13px;
}

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

.app-shell.sidebar-collapsed {
  --sidebar: 84px;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  width: var(--sidebar);
  padding: 28px 20px 20px;
  overflow: hidden;
  color: #f3f0e7;
  background:
    radial-gradient(circle at 110% -10%, rgba(200, 242, 119, 0.17), transparent 37%),
    radial-gradient(circle at 0% 100%, rgba(102, 166, 135, 0.16), transparent 35%),
    var(--forest);
  transition:
    width 0.28s var(--ease),
    padding 0.28s var(--ease);
}

.sidebar::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.18;
  background-image: radial-gradient(rgba(255, 255, 255, 0.6) 0.55px, transparent 0.55px);
  background-size: 6px 6px;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.sidebar::after {
  position: absolute;
  right: -92px;
  bottom: 128px;
  width: 210px;
  height: 210px;
  content: "";
  background:
    radial-gradient(circle at 36% 38%, rgba(200, 242, 119, 0.16), transparent 48%),
    rgba(255, 255, 255, 0.018);
  border: 1px dashed rgba(200, 242, 119, 0.13);
  border-radius: 46% 54% 63% 37% / 41% 42% 58% 59%;
  transform: rotate(-14deg);
  pointer-events: none;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin: 0 6px;
}

.sidebar-toggle {
  position: absolute;
  top: 25px;
  right: 13px;
  z-index: 2;
  display: grid;
  width: 28px;
  height: 28px;
  padding: 0;
  color: rgba(243, 240, 231, 0.62);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  cursor: pointer;
  place-items: center;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    top 0.28s var(--ease),
    right 0.28s var(--ease);
}

.sidebar-toggle:hover {
  color: #fffdf7;
  background: rgba(255, 255, 255, 0.14);
}

.sidebar-toggle .icon {
  width: 14px;
  height: 14px;
  transform: rotate(180deg);
}

.sidebar-collapsed .sidebar {
  padding: 22px 14px 18px;
}

.sidebar-collapsed .brand {
  margin: 0 auto;
}

.sidebar-collapsed .brand-copy,
.sidebar-collapsed .sidebar-motto,
.sidebar-collapsed .sidebar-progress,
.sidebar-collapsed .nav-link > span,
.sidebar-collapsed .nav-count,
.sidebar-collapsed .profile-copy,
.sidebar-collapsed .profile-button > .icon {
  display: none;
}

.sidebar-collapsed .sidebar-toggle {
  display: none;
}

.sidebar-collapsed .desktop-nav {
  gap: 10px;
  margin-top: 22px;
}

.sidebar-collapsed .nav-link {
  min-height: 48px;
  justify-content: center;
  gap: 0;
  padding: 0;
  border-radius: 16px;
}

.sidebar-collapsed .nav-link:hover {
  transform: translateX(0) scale(1.03);
}

.sidebar-collapsed .sidebar-bottom {
  padding-top: 0;
}

.sidebar-collapsed .profile-button {
  justify-content: center;
  padding: 8px 0;
}

.brand:hover .brand-mark svg {
  transform: rotate(-4deg) scale(1.04);
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  color: #f7f3e9;
  place-items: center;
}

.brand-mark svg {
  width: 44px;
  height: 44px;
  transition: transform 0.35s var(--ease);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-copy strong {
  font-family: var(--font-brand);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.brand-copy small {
  margin-top: 8px;
  color: rgba(243, 240, 231, 0.46);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.sidebar-motto {
  margin: 30px 10px 25px;
  color: rgba(243, 240, 231, 0.64);
  font-family: var(--font-brand);
  font-size: 14px;
  line-height: 1.72;
  letter-spacing: 0.035em;
}

.desktop-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 48px;
  padding: 0 13px;
  overflow: hidden;
  color: rgba(243, 240, 231, 0.63);
  border-radius: 15px 19px 14px 20px;
  transition:
    color 0.25s ease,
    background 0.25s ease,
    transform 0.25s var(--ease);
}

.nav-link:hover {
  color: #fffdf7;
  background: rgba(255, 255, 255, 0.07);
  transform: translateX(2px);
}

.nav-link:hover .icon {
  transform: rotate(-7deg) scale(1.08);
}

.nav-link.active {
  color: var(--forest);
  background: var(--lime);
  box-shadow: 0 9px 26px rgba(0, 0, 0, 0.13);
  transform: rotate(-0.35deg);
}

.nav-link .icon {
  width: 19px;
  height: 19px;
  transition: transform 0.25s var(--ease);
}

.nav-link span {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.nav-count {
  min-width: 21px;
  height: 21px;
  margin-left: auto;
  padding: 0 6px;
  display: grid;
  color: var(--forest);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  place-items: center;
}

.nav-link.active .nav-count {
  color: #f7f4ea;
  background: var(--forest);
}

.sidebar-progress {
  margin-top: 30px;
}

.weekly-mini {
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.045);
  border-radius: 18px;
  backdrop-filter: blur(8px);
}

.growth-mini {
  position: relative;
  padding: 19px 17px 16px;
  background:
    radial-gradient(circle at 92% 8%, rgba(200, 242, 119, 0.16), transparent 42%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.03));
  border: 1px dashed rgba(200, 242, 119, 0.27);
  border-radius: 19px 25px 18px 23px;
  transform: rotate(-0.45deg);
}

.growth-sticker {
  position: absolute;
  top: -10px;
  right: 13px;
  padding: 4px 8px;
  color: var(--forest);
  background: var(--lime);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.16);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.04em;
  transform: rotate(3deg);
}

.growth-mini .weekly-mini-head span {
  color: rgba(243, 240, 231, 0.6);
  letter-spacing: 0.06em;
}

.growth-leaves {
  display: flex;
  height: 34px;
  align-items: flex-end;
  gap: 4px;
  margin: 13px 0 9px;
  padding-left: 3px;
}

.growth-leaf {
  position: relative;
  width: 19px;
  height: 30px;
  opacity: 0.3;
  transition: opacity 0.25s ease;
}

.growth-leaf::after {
  position: absolute;
  bottom: 0;
  left: 9px;
  width: 1px;
  height: 27px;
  content: "";
  background: rgba(200, 242, 119, 0.34);
}

.growth-leaf i {
  position: absolute;
  bottom: 8px;
  left: 7px;
  width: 12px;
  height: 21px;
  background: rgba(243, 240, 231, 0.3);
  border-radius: 100% 0 100% 0;
  transform: rotate(-27deg);
  transform-origin: bottom left;
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease,
    transform 0.35s var(--ease);
}

.growth-leaf:nth-child(even) i {
  transform: rotate(27deg) scaleX(-1);
  transform-origin: bottom right;
}

.growth-leaf.is-grown {
  opacity: 1;
}

.growth-leaf.is-grown i {
  background: var(--lime);
  box-shadow: 0 0 13px rgba(200, 242, 119, 0.24);
}

.growth-leaf.is-grown i {
  animation: leafGrow 0.45s var(--ease) both;
  animation-delay: calc(var(--i) * 0.06s);
}

.growth-mini p {
  margin: 8px 0 12px;
  color: rgba(248, 243, 232, 0.78);
  font-size: 13px;
}

.growth-mini .mini-track {
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.growth-mini .mini-track span {
  background: linear-gradient(90deg, #a8d85f, var(--lime));
}

.growth-mini .mini-foot {
  margin-top: 10px;
  color: rgba(243, 240, 231, 0.44);
}

@keyframes leafGrow {
  from {
    opacity: 0;
    transform: rotate(-12deg) scale(0.35);
  }
}

.weekly-mini-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(243, 240, 231, 0.55);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.weekly-mini-head strong {
  color: var(--lime);
  font-family: Georgia, serif;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0;
}

.weekly-mini p {
  margin: 10px 0 13px;
  color: #f5f1e7;
  font-family: var(--font-serif);
  font-size: 14px;
  line-height: 1.55;
}

.mini-track {
  height: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.13);
  border-radius: 10px;
}

.mini-track span {
  display: block;
  height: 100%;
  background: var(--lime);
  border-radius: inherit;
  transition: width 0.7s var(--ease);
}

.mini-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 11px;
  color: rgba(243, 240, 231, 0.45);
  font-size: 10px;
}

.mini-foot b {
  color: var(--lime);
  font-weight: 600;
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 20px;
}

.profile-button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 10px;
  color: inherit;
  border: 0;
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease;
}

.profile-button:hover {
  background: rgba(255, 255, 255, 0.07);
}

.avatar {
  display: grid;
  width: 36px;
  height: 36px;
  color: var(--forest);
  background: #f2e7cd;
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  place-items: center;
}

.profile-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  line-height: 1.35;
}

.profile-copy strong {
  overflow: hidden;
  color: #f7f2e6;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-copy small {
  color: rgba(243, 240, 231, 0.42);
  font-size: 9px;
}

.profile-button > .icon {
  color: rgba(243, 240, 231, 0.35);
}

.main-shell {
  min-height: 100vh;
  margin-left: var(--sidebar);
  transition: margin-left 0.28s var(--ease);
}

.topbar {
  position: relative;
  z-index: 20;
  display: flex;
  min-height: 80px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(24px, 4vw, 58px);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.topbar-date {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.topbar-date b {
  margin-right: 7px;
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
}

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

.icon-button {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.7);
  border-radius: 50%;
  cursor: pointer;
  place-items: center;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
}

.icon-button:hover {
  background: var(--surface);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.icon-button .icon {
  width: 17px;
  height: 17px;
}

.sync-status-button .sync-status-dot {
  position: absolute;
  right: 2px;
  bottom: 3px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--paper);
  background: var(--muted-light);
  border-radius: 50%;
}

.sync-status-button.is-on {
  color: var(--forest);
  border-color: rgba(70, 119, 83, 0.28);
  background: #eef7e7;
}

.sync-status-button.is-on .sync-status-dot {
  background: #58a56f;
}

.sync-status-button.is-pending {
  color: #7c5b18;
  border-color: rgba(182, 132, 37, 0.26);
  background: #fff6dc;
}

.sync-status-button.is-pending .sync-status-dot {
  background: var(--gold);
}

.sync-status-button.is-alert {
  color: #a13c25;
  border-color: rgba(215, 82, 52, 0.3);
  background: #fff0eb;
}

.sync-status-button.is-alert .sync-status-dot {
  background: var(--coral);
}

.sync-status-button.is-offline {
  color: var(--muted);
  background: var(--surface-soft);
}

.sync-status-button.is-offline .sync-status-dot {
  background: var(--sky);
}

.button-badge {
  position: absolute;
  top: 2px;
  right: 1px;
  display: none;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  color: white;
  background: var(--coral);
  border: 2px solid var(--paper);
  border-radius: 10px;
  font-size: 8px;
  font-weight: 700;
  line-height: 11px;
  text-align: center;
}

.button-badge.visible {
  display: block;
}

.topbar .avatar-button {
  display: none;
}

.page {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 4px clamp(24px, 4vw, 58px) 72px;
  outline: none;
}

.page > * {
  animation: rise-in 0.55s var(--ease) both;
}

.page > *:nth-child(2) {
  animation-delay: 0.04s;
}

.page > *:nth-child(3) {
  animation-delay: 0.08s;
}

.page > *:nth-child(4) {
  animation-delay: 0.12s;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(13px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 18px;
  height: 1px;
  content: "";
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  min-height: 334px;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.7fr);
  gap: 36px;
  padding: clamp(34px, 4vw, 52px);
  overflow: hidden;
  color: #f7f2e7;
  background:
    radial-gradient(circle at 86% 26%, rgba(200, 242, 119, 0.12), transparent 28%),
    linear-gradient(132deg, #17372b 0%, #1c4133 58%, #143127 100%);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 64px rgba(23, 55, 43, 0.15);
}

.hero::before {
  position: absolute;
  right: -44px;
  bottom: -150px;
  width: 430px;
  height: 430px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(255, 255, 255, 0.027),
    0 0 0 94px rgba(255, 255, 255, 0.018);
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.22;
  background-image: radial-gradient(rgba(255, 255, 255, 0.68) 0.5px, transparent 0.5px);
  background-size: 7px 7px;
  pointer-events: none;
  mask-image: linear-gradient(120deg, transparent 42%, black);
}

.hero-copy,
.hero-side {
  position: relative;
  z-index: 1;
}

.hero .eyebrow {
  color: rgba(248, 244, 234, 0.52);
}

.hero h1 {
  max-width: 700px;
  margin: 20px 0 17px;
  font-family: var(--font-serif);
  font-size: clamp(32px, 3.45vw, 51px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.015em;
}

.hero h1 em {
  position: relative;
  color: var(--lime);
  font-style: normal;
}

.hero h1 em::after {
  position: absolute;
  right: 1px;
  bottom: -3px;
  left: 1px;
  height: 2px;
  content: "";
  opacity: 0.42;
  background: currentColor;
}

.hero p {
  max-width: 550px;
  margin: 0;
  color: rgba(247, 242, 231, 0.58);
  font-size: 13px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 25px;
}

.hero-side {
  display: flex;
  align-items: center;
  justify-content: center;
}

.week-orbit {
  position: relative;
  display: grid;
  width: 200px;
  height: 200px;
  place-items: center;
}

.week-orbit::before,
.week-orbit::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.week-orbit::before {
  inset: 0;
  background: conic-gradient(var(--lime) calc(var(--progress) * 1%), rgba(255, 255, 255, 0.09) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 8px), #000 calc(100% - 7px));
}

.week-orbit::after {
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.orbit-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.orbit-inner strong {
  color: #f7f2e7;
  font-family: Georgia, serif;
  font-size: 44px;
  font-weight: 400;
  line-height: 1;
}

.orbit-inner strong span {
  color: rgba(247, 242, 231, 0.35);
  font-size: 21px;
}

.orbit-inner small {
  margin-top: 8px;
  color: rgba(247, 242, 231, 0.48);
  font-size: 10px;
  letter-spacing: 0.15em;
}

.orbit-bubble {
  position: absolute;
  top: 6px;
  right: -12px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  color: var(--forest);
  background: var(--lime);
  border-radius: 30px;
  font-size: 9px;
  font-weight: 700;
  transform: rotate(4deg);
}

.orbit-caption {
  position: absolute;
  bottom: -8px;
  padding: 5px 11px;
  color: rgba(247, 242, 231, 0.7);
  background: rgba(9, 30, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  font-size: 9px;
  letter-spacing: 0.06em;
  backdrop-filter: blur(8px);
}

.btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 17px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn .icon {
  width: 15px;
  height: 15px;
}

.btn-primary {
  color: #f9f4e8;
  background: var(--forest);
  box-shadow: 0 8px 20px rgba(23, 55, 43, 0.15);
}

.btn-primary:hover {
  background: var(--forest-2);
  box-shadow: 0 11px 26px rgba(23, 55, 43, 0.2);
}

.btn-lime {
  color: var(--forest);
  background: var(--lime);
  box-shadow: 0 9px 24px rgba(200, 242, 119, 0.16);
}

.btn-lime:hover {
  background: #d4f894;
}

.btn-light {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.btn-light:hover {
  border-color: var(--line-strong);
}

.btn-ghost-light {
  color: rgba(248, 244, 234, 0.82);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.13);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.11);
}

.btn-coral {
  color: #fffaf5;
  background: var(--coral);
}

.btn-danger {
  color: #a93b25;
  background: #fff6f2;
  border-color: #f4d0c4;
}

.btn-sm {
  min-height: 34px;
  padding: 0 12px;
  font-size: 11px;
}

.btn-block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: wait;
  transform: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--forest-3);
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
}

.text-link .icon {
  width: 13px;
  height: 13px;
  transition: transform 0.2s ease;
}

.text-link:hover .icon {
  transform: translate(2px, -2px);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 14px 0;
}

.sample-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 13px 0;
  padding: 11px 15px;
  color: #5f573f;
  background: rgba(245, 237, 219, 0.82);
  border: 1px solid rgba(162, 137, 87, 0.2);
  border-radius: 13px;
}

.sample-banner-icon {
  display: grid;
  width: 29px;
  height: 29px;
  flex: 0 0 auto;
  color: #7a642e;
  background: #efe2c3;
  border-radius: 8px;
  place-items: center;
}

.sample-banner-icon .icon {
  width: 14px;
  height: 14px;
}

.sample-banner > div {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.sample-banner strong {
  font-size: 10px;
  font-weight: 600;
}

.sample-banner small {
  color: #847761;
  font-size: 8px;
  line-height: 1.65;
}

.sample-banner .btn {
  min-height: 29px;
  flex: 0 0 auto;
  padding: 0 10px;
  color: #6f5b2f;
  background: rgba(255, 253, 248, 0.7);
  font-size: 9.5px;
}

.stat-card {
  position: relative;
  display: flex;
  min-height: 108px;
  align-items: center;
  gap: 14px;
  padding: 18px;
  overflow: hidden;
  background: rgba(255, 253, 248, 0.8);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  display: grid;
  width: 40px;
  height: 40px;
  color: var(--forest);
  background: var(--lime-soft);
  border-radius: 13px;
  place-items: center;
}

.stat-card:nth-child(2) .stat-icon {
  background: var(--coral-soft);
}

.stat-card:nth-child(3) .stat-icon {
  background: var(--sky-soft);
}

.stat-card:nth-child(4) .stat-icon {
  background: #f2e9d6;
}

.stat-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.stat-copy small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.stat-copy strong {
  margin: 2px 0;
  font-family: Georgia, var(--font-serif);
  font-size: 31px;
  font-weight: 400;
  line-height: 1.2;
}

.stat-copy strong em {
  margin-left: 2px;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

.stat-arrow {
  position: absolute;
  top: 12px;
  right: 12px;
  color: var(--muted-light);
}

.stat-arrow .icon {
  width: 13px;
  height: 13px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(290px, 0.72fr);
  gap: 14px;
}

.card {
  padding: 23px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

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

.card-head h2,
.section-heading h2 {
  margin: 4px 0 0;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.015em;
}

.card-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.progress-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  color: var(--forest);
  background: var(--lime-soft);
  border-radius: 20px;
  font-family: Georgia, serif;
  font-size: 12px;
  white-space: nowrap;
}

.progress-pill b {
  font-weight: 400;
}

.task-progress {
  height: 5px;
  margin: -3px 0 18px;
  overflow: hidden;
  background: var(--paper-deep);
  border-radius: 20px;
}

.task-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--forest-3), var(--lime));
  border-radius: inherit;
  transition: width 0.65s var(--ease);
}

.mission-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mission {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  color: var(--ink);
  border: 0;
  border-radius: 13px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease;
}

.mission:hover {
  background: var(--surface-soft);
}

.mission-check {
  display: grid;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  color: transparent;
  border: 1.5px solid #c9cec9;
  border-radius: 50%;
  place-items: center;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.mission-check .icon {
  width: 12px;
  height: 12px;
  stroke-width: 2.4;
}

.mission.done .mission-check {
  color: var(--forest);
  background: var(--lime);
  border-color: var(--lime);
}

.mission-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.mission-copy strong {
  font-size: 12px;
  font-weight: 600;
}

.mission-copy small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 10px;
}

.mission.done .mission-copy strong {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-color: rgba(112, 122, 115, 0.4);
}

.mission-tail {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted-light);
  font-size: 10px;
}

.mission-tail > span:first-child {
  color: var(--ink);
  font-family: Georgia, var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.mission-tail .icon {
  width: 13px;
  height: 13px;
}

.xp-chip {
  padding: 2px 6px;
  color: #6c7d47;
  background: #f0f7dd;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 700;
}

.side-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.evidence-card {
  position: relative;
  min-height: 220px;
  padding: 24px;
  overflow: hidden;
  color: #f8f3e8;
  background:
    radial-gradient(circle at 100% 0%, rgba(228, 182, 95, 0.18), transparent 34%),
    var(--forest);
  border-radius: var(--radius-lg);
}

.evidence-card::after {
  position: absolute;
  right: -28px;
  bottom: -38px;
  width: 150px;
  height: 150px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  box-shadow: 0 0 0 22px rgba(255, 255, 255, 0.025);
}

.evidence-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.evidence-top span {
  color: rgba(248, 243, 232, 0.56);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.year-chip {
  padding: 4px 8px;
  color: var(--forest);
  background: #e6d4ae;
  border-radius: 20px;
  font-family: Georgia, serif;
  font-size: 10px;
  letter-spacing: 0;
}

.evidence-number {
  position: relative;
  z-index: 1;
  margin: 24px 0 6px;
  font-family: Georgia, var(--font-serif);
  font-size: 51px;
  font-weight: 400;
  line-height: 1;
}

.evidence-number em {
  margin-left: 6px;
  color: rgba(248, 243, 232, 0.48);
  font-family: var(--font-sans);
  font-size: 12px;
  font-style: normal;
}

.evidence-card p {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
  color: rgba(248, 243, 232, 0.58);
  font-size: 12px;
  line-height: 1.7;
}

.evidence-metrics {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 24px;
  margin-bottom: 19px;
}

.evidence-metrics div {
  display: flex;
  flex-direction: column;
}

.evidence-metrics strong {
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 400;
}

.evidence-metrics small {
  color: rgba(248, 243, 232, 0.42);
  font-size: 10px;
}

.evidence-card .btn {
  position: relative;
  z-index: 1;
  min-height: 38px;
  font-size: 11px;
}

.reading-card {
  display: flex;
  min-height: 184px;
  gap: 17px;
  padding: 20px;
  overflow: hidden;
  background: #f1eadb;
  border: 1px solid rgba(24, 37, 31, 0.08);
  border-radius: var(--radius-lg);
}

.mini-cover {
  position: relative;
  display: flex;
  width: 84px;
  min-width: 84px;
  height: 127px;
  padding: 12px 9px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: #f9f5ea;
  background: linear-gradient(145deg, #263a33, #0f1c17);
  border-radius: 4px 8px 8px 4px;
  box-shadow: 8px 10px 20px rgba(23, 55, 43, 0.2);
}

.mini-cover::before {
  position: absolute;
  inset: 0 auto 0 5px;
  width: 1px;
  content: "";
  background: rgba(255, 255, 255, 0.18);
}

.mini-cover::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  content: "";
  background: rgba(0, 0, 0, 0.16);
}

.cover-1 {
  color: var(--forest);
  background: linear-gradient(145deg, #dcebbd, #bdd685);
}

.cover-2 {
  color: #43291f;
  background: linear-gradient(145deg, #f1c6ad, #e39979);
}

.cover-3 {
  background: linear-gradient(145deg, #486b8d, #233f57);
}

.cover-4 {
  color: #3e361f;
  background: linear-gradient(145deg, #f1e3bc, #dfc786);
}

.mini-cover small {
  position: relative;
  z-index: 1;
  font-size: 5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  opacity: 0.6;
}

.mini-cover strong {
  position: relative;
  z-index: 1;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.reading-info {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.reading-info .eyebrow {
  margin-bottom: 10px;
  font-size: 8px;
}

.reading-info h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
}

.reading-info p {
  margin: 3px 0 10px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reading-progress {
  margin-top: auto;
}

.reading-progress-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 8px;
}

.reading-progress-head b {
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: 10px;
  font-weight: 400;
}

.reading-card .btn {
  align-self: flex-start;
  margin-top: 12px;
  min-height: 30px;
  padding: 0 11px;
  font-size: 9px;
}

.signal-band {
  margin-top: 14px;
  padding: 23px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

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

.section-heading .eyebrow {
  font-size: 8px;
}

.section-heading h2 {
  margin-top: 3px;
  font-size: 21px;
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
}

.signal-card {
  position: relative;
  display: flex;
  min-height: 176px;
  padding: 18px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition:
    transform 0.25s var(--ease),
    background 0.2s ease,
    box-shadow 0.25s ease;
}

.signal-card:hover {
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.signal-card::after {
  position: absolute;
  right: -28px;
  bottom: -38px;
  width: 100px;
  height: 100px;
  content: "";
  border: 1px solid var(--line);
  border-radius: 50%;
}

.signal-tag {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.signal-tag .dot {
  width: 6px;
  height: 6px;
  background: var(--lime);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(200, 242, 119, 0.22);
}

.signal-card:nth-child(2) .signal-tag .dot {
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(255, 107, 70, 0.13);
}

.signal-card:nth-child(3) .signal-tag .dot {
  background: #75abe0;
  box-shadow: 0 0 0 4px rgba(117, 171, 224, 0.14);
}

.signal-card h3 {
  position: relative;
  z-index: 1;
  margin: 18px 0 8px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.55;
}

.signal-card p {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.signal-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 12px;
  color: var(--muted-light);
  font-size: 8px;
}

.signal-footer .icon {
  width: 13px;
  height: 13px;
}

.activity-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 14px;
  padding: 18px 23px;
  background: rgba(255, 253, 248, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.activity-copy strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
}

.activity-copy small {
  color: var(--muted);
  font-size: 9px;
}

.heatmap {
  display: flex;
  gap: 5px;
}

.heat-cell {
  position: relative;
  width: 18px;
  height: 18px;
  background: var(--paper-deep);
  border-radius: 4px;
}

.heat-cell[data-level="1"] {
  background: #d9eab7;
}

.heat-cell[data-level="2"] {
  background: #b3d884;
}

.heat-cell[data-level="3"] {
  background: #7eaf60;
}

.heat-cell[data-level="4"] {
  background: var(--forest-3);
}

.heat-cell:hover::after {
  position: absolute;
  z-index: 5;
  bottom: calc(100% + 6px);
  left: 50%;
  padding: 4px 6px;
  color: white;
  background: var(--ink);
  border-radius: 5px;
  content: attr(data-tip);
  font-size: 8px;
  white-space: nowrap;
  transform: translateX(-50%);
}

.page-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 20px;
  padding: 34px 38px;
  color: #f8f3e8;
  background: var(--forest);
  border-radius: var(--radius-xl);
}

.page-hero .eyebrow {
  color: rgba(248, 243, 232, 0.46);
}

.page-hero h1 {
  margin: 12px 0 7px;
  font-family: var(--font-serif);
  font-size: clamp(29px, 3vw, 42px);
  font-weight: 600;
  line-height: 1.25;
}

.page-hero p {
  max-width: 580px;
  margin: 0;
  color: rgba(248, 243, 232, 0.56);
  font-size: 11px;
  line-height: 1.8;
}

.page-hero .hero-actions {
  margin-top: 19px;
}

.hero-metric {
  display: flex;
  min-width: 155px;
  padding: 17px;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
}

.hero-metric small {
  color: rgba(248, 243, 232, 0.46);
  font-size: 8px;
  letter-spacing: 0.12em;
}

.hero-metric strong {
  margin: 5px 0 2px;
  font-family: Georgia, serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
}

.hero-metric span {
  color: rgba(248, 243, 232, 0.58);
  font-size: 9px;
}

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

.segmented {
  display: inline-flex;
  padding: 4px;
  overflow-x: auto;
  background: rgba(235, 230, 218, 0.78);
  border: 1px solid var(--line);
  border-radius: 999px;
  scrollbar-width: none;
}

.segmented::-webkit-scrollbar {
  display: none;
}

.segment {
  display: flex;
  min-height: 32px;
  align-items: center;
  gap: 6px;
  padding: 0 15px;
  color: var(--muted);
  border: 0;
  background: transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.segment.active {
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 3px 12px rgba(24, 37, 31, 0.08);
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(250px, 0.55fr);
  gap: 14px;
}

.review-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.review-item {
  position: relative;
  padding: 23px 24px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s ease;
}

.review-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.review-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 9px;
}

.week-badge {
  padding: 3px 7px;
  color: var(--forest);
  background: var(--lime-soft);
  border-radius: 5px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.project-badge {
  padding: 3px 7px;
  color: #6a5331;
  background: #f3ead8;
  border-radius: 5px;
}

.sample-badge,
.framework-badge {
  padding: 3px 7px;
  color: #7c6f58;
  border: 1px dashed #cabfa8;
  border-radius: 5px;
  font-size: 8px;
  letter-spacing: 0.06em;
}

.review-item h3 {
  margin: 13px 0 12px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.45;
}

.review-result {
  display: flex;
  gap: 9px;
  padding: 10px 12px;
  color: var(--ink-soft);
  background: #f3f7e9;
  border-left: 2px solid #9bbd62;
  border-radius: 0 9px 9px 0;
  font-size: 10px;
  line-height: 1.7;
}

.review-result strong {
  flex: 0 0 auto;
  color: #657c3e;
  font-size: 9px;
}

.method-line {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.75;
}

.method-line strong {
  color: var(--ink-soft);
  font-weight: 600;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}

.tag {
  padding: 3px 7px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  font-size: 8px;
}

.item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.item-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mini-action {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  color: var(--muted);
  border: 0;
  background: transparent;
  border-radius: 7px;
  cursor: pointer;
  font-size: 8px;
}

.mini-action:hover {
  color: var(--ink);
  background: var(--surface-soft);
}

.mini-action .icon {
  width: 12px;
  height: 12px;
}

.award-ready {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #8a691f;
  font-size: 8px;
}

.award-ready .icon {
  width: 12px;
  height: 12px;
}

.aside-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.guide-card {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.guide-card h3 {
  margin: 5px 0 5px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
}

.guide-card > p {
  margin: 0 0 17px;
  color: var(--muted);
  font-size: 10px;
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.guide-step {
  display: flex;
  gap: 11px;
}

.guide-number {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  color: var(--forest);
  background: var(--lime-soft);
  border-radius: 8px;
  font-family: Georgia, serif;
  font-size: 11px;
  place-items: center;
}

.guide-step strong {
  display: block;
  font-size: 10px;
  font-weight: 600;
}

.guide-step small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.goal-card {
  padding: 20px;
  background: #f3ecdd;
  border: 1px solid rgba(24, 37, 31, 0.08);
  border-radius: var(--radius-lg);
}

.goal-card .eyebrow {
  font-size: 8px;
}

.goal-ring-row {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-top: 15px;
}

.mini-ring {
  --ring: 0;
  position: relative;
  display: grid;
  width: 70px;
  height: 70px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: conic-gradient(var(--forest-3) calc(var(--ring) * 1%), rgba(23, 55, 43, 0.1) 0);
  place-items: center;
}

.mini-ring::before {
  position: absolute;
  inset: 6px;
  content: "";
  background: #f3ecdd;
  border-radius: 50%;
}

.mini-ring b {
  position: relative;
  z-index: 1;
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: 400;
}

.goal-copy strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.goal-copy small {
  color: var(--muted);
  font-size: 8px;
}

.empty-state {
  display: flex;
  min-height: 260px;
  align-items: center;
  justify-content: center;
  padding: 30px;
  flex-direction: column;
  text-align: center;
  background: rgba(255, 253, 248, 0.6);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
}

.empty-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 14px;
  color: var(--forest);
  background: var(--lime-soft);
  border-radius: 17px;
  place-items: center;
}

.empty-state h3 {
  margin: 0 0 5px;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
}

.empty-state p {
  max-width: 340px;
  margin: 0 0 17px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.75;
}

.idea-hero {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 107, 70, 0.13), transparent 32%),
    var(--forest);
}

.pipeline-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.pipeline-stat {
  display: flex;
  padding: 16px 18px;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.pipeline-stat div {
  display: flex;
  flex-direction: column;
}

.pipeline-stat small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.pipeline-stat strong {
  font-family: Georgia, serif;
  font-size: 29px;
  font-weight: 400;
}

.pipeline-dot {
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(228, 182, 95, 0.14);
}

.pipeline-stat:nth-child(2) .pipeline-dot {
  background: var(--sky);
  box-shadow: 0 0 0 5px rgba(167, 207, 242, 0.16);
}

.pipeline-stat:nth-child(3) .pipeline-dot {
  background: var(--coral);
  box-shadow: 0 0 0 5px rgba(255, 107, 70, 0.12);
}

.pipeline-stat:nth-child(4) .pipeline-dot {
  background: #7fb561;
  box-shadow: 0 0 0 5px rgba(127, 181, 97, 0.13);
}

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

.kanban-column {
  min-height: 360px;
  padding: 13px;
  background: rgba(235, 230, 218, 0.5);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.kanban-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 4px 12px;
}

.kanban-head div {
  display: flex;
  align-items: center;
  gap: 7px;
}

.kanban-head strong {
  font-size: 11px;
  font-weight: 600;
}

.kanban-head span {
  display: grid;
  min-width: 18px;
  height: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.65);
  border-radius: 20px;
  font-size: 8px;
  place-items: center;
}

.kanban-dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.kanban-column:nth-child(2) .kanban-dot {
  background: var(--sky);
}

.kanban-column:nth-child(3) .kanban-dot {
  background: var(--coral);
}

.kanban-column:nth-child(4) .kanban-dot {
  background: #7fb561;
}

.kanban-cards {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.idea-card {
  position: relative;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: 0 5px 14px rgba(24, 37, 31, 0.035);
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s ease;
}

.idea-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.idea-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 8px;
}

.idea-type {
  padding: 2px 6px;
  color: var(--ink-soft);
  background: var(--surface-soft);
  border-radius: 4px;
}

.potential {
  display: flex;
  gap: 2px;
}

.potential i {
  width: 4px;
  height: 4px;
  background: #d5d7d2;
  border-radius: 50%;
}

.potential i.on {
  background: var(--coral);
}

.idea-card h3 {
  margin: 10px 0 7px;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.idea-card p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.next-action {
  display: flex;
  gap: 7px;
  margin-top: 12px;
  padding-top: 11px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  font-size: 8px;
  line-height: 1.6;
}

.next-action b {
  flex: 0 0 auto;
  color: var(--coral);
  font-weight: 600;
}

.idea-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.patent-progress {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 7px;
}

.patent-bars {
  display: flex;
  gap: 2px;
}

.patent-bars i {
  width: 9px;
  height: 3px;
  background: #e4e2db;
  border-radius: 3px;
}

.patent-bars i.on {
  background: var(--forest-3);
}

.advance-btn {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  gap: 3px;
  padding: 0 7px;
  color: var(--forest-3);
  border: 1px solid rgba(47, 94, 75, 0.15);
  background: #f5f9ef;
  border-radius: 20px;
  cursor: pointer;
  font-size: 7px;
}

.advance-btn:hover {
  background: var(--lime-soft);
}

.advance-btn .icon {
  width: 10px;
  height: 10px;
}

.column-empty {
  display: flex;
  min-height: 108px;
  align-items: center;
  justify-content: center;
  padding: 14px;
  color: var(--muted-light);
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  font-size: 8px;
  text-align: center;
}

.insight-hero {
  position: relative;
  display: flex;
  min-height: 240px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 13px;
  padding: 38px;
  overflow: hidden;
  color: #f8f3e8;
  background: var(--forest);
  border-radius: var(--radius-xl);
}

.insight-hero::after {
  position: absolute;
  top: -170px;
  right: -30px;
  width: 460px;
  height: 460px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  box-shadow:
    0 0 0 45px rgba(255, 255, 255, 0.025),
    0 0 0 92px rgba(255, 255, 255, 0.018);
}

.insight-hero-copy {
  position: relative;
  z-index: 1;
}

.insight-hero .eyebrow {
  color: rgba(248, 243, 232, 0.45);
}

.insight-hero h1 {
  margin: 13px 0 9px;
  font-family: var(--font-serif);
  font-size: clamp(31px, 3.6vw, 47px);
  font-weight: 600;
  line-height: 1.2;
}

.insight-hero p {
  max-width: 560px;
  margin: 0;
  color: rgba(248, 243, 232, 0.56);
  font-size: 11px;
  line-height: 1.8;
}

.scan-box {
  position: relative;
  z-index: 1;
  width: min(100%, 310px);
  padding: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 17px;
  backdrop-filter: blur(10px);
}

.scan-box small {
  color: rgba(248, 243, 232, 0.45);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.scan-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 11px;
}

.scan-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 9px;
  color: rgba(248, 243, 232, 0.75);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  font-size: 8px;
  transition: background 0.2s ease;
}

.scan-link:hover {
  color: var(--forest);
  background: var(--lime);
}

.scan-link .icon {
  width: 10px;
  height: 10px;
}

.tabs-line {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 18px 0;
  padding: 5px;
  overflow-x: auto;
  background: rgba(255, 253, 248, 0.6);
  border: 1px solid var(--line);
  border-radius: 14px;
  scrollbar-width: none;
}

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

.tab-button {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 0 16px;
  color: var(--muted);
  border: 0;
  background: transparent;
  border-radius: 10px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.tab-button.active {
  color: var(--forest);
  background: var(--lime-soft);
}

.tab-button .icon {
  width: 14px;
  height: 14px;
}

.briefing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.55fr);
  gap: 13px;
}

.briefing-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.briefing-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 17px;
  padding: 21px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.briefing-card:hover {
  border-color: rgba(24, 37, 31, 0.18);
  box-shadow: var(--shadow-md);
}

.briefing-card.read {
  opacity: 0.72;
}

.briefing-index {
  color: #c7cbc5;
  font-family: Georgia, serif;
  font-size: 22px;
  line-height: 1;
}

.briefing-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.signal-type {
  padding: 3px 7px;
  color: var(--forest);
  background: var(--lime-soft);
  border-radius: 5px;
  font-size: 8px;
  font-weight: 600;
}

.importance {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 3px;
}

.importance i {
  width: 3px;
  height: 8px;
  background: #dedfd9;
  border-radius: 3px;
}

.importance i.on {
  background: var(--coral);
}

.briefing-body h3 {
  margin: 10px 0 7px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
}

.briefing-body > p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}

.why-line {
  display: flex;
  gap: 7px;
  margin-top: 10px;
  padding: 8px 10px;
  color: var(--ink-soft);
  background: var(--surface-soft);
  border-radius: 8px;
  font-size: 9px;
  line-height: 1.7;
}

.why-line strong {
  flex: 0 0 auto;
  color: var(--coral);
  font-weight: 600;
}

.source-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.source-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  color: var(--forest-3);
  background: #f2f7eb;
  border-radius: 5px;
  font-size: 8px;
}

.source-link:hover {
  background: var(--lime-soft);
}

.source-link .icon {
  width: 10px;
  height: 10px;
}

.briefing-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 13px;
  padding-top: 11px;
  color: var(--muted-light);
  border-top: 1px solid var(--line);
  font-size: 8px;
}

.read-toggle {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  color: var(--forest-3);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 20px;
  cursor: pointer;
  font-size: 8px;
}

.read-toggle:hover {
  border-color: var(--forest-3);
}

.read-toggle .icon {
  width: 11px;
  height: 11px;
}

.aside-panel {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.editorial-note {
  padding: 22px;
  background: #f1ebdc;
  border: 1px solid rgba(24, 37, 31, 0.08);
  border-radius: var(--radius-lg);
}

.editorial-note h3 {
  margin: 8px 0 10px;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.45;
}

.editorial-note p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.85;
}

.editorial-note .btn {
  margin-top: 15px;
}

.intel-checklist {
  display: flex;
  padding: 20px;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.intel-checklist h3 {
  margin: 0 0 3px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
}

.check-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.check-line span {
  display: grid;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--forest);
  background: var(--lime-soft);
  border-radius: 50%;
  place-items: center;
}

.check-line .icon {
  width: 8px;
  height: 8px;
  stroke-width: 2.4;
}

.job-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
  gap: 24px;
  align-items: start;
  padding: 34px;
  overflow: hidden;
  color: #f8f3e8;
  background:
    radial-gradient(circle at 97% 6%, rgba(167, 207, 242, 0.17), transparent 31%),
    var(--forest);
  border-radius: var(--radius-xl);
}

.job-hero::after {
  position: absolute;
  right: -70px;
  bottom: -120px;
  z-index: 0;
  width: 300px;
  height: 300px;
  content: attr(data-watermark);
  color: rgba(255, 255, 255, 0.025);
  font-family: Georgia, serif;
  font-size: 150px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.job-copy,
.job-side-card,
.job-links {
  position: relative;
  z-index: 1;
}

.job-copy {
  min-width: 0;
}

.job-copy .eyebrow {
  color: rgba(248, 243, 232, 0.43);
}

.job-title-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 12px 0 9px;
}

.job-title-line h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(33px, 3.9vw, 48px);
  font-weight: 600;
  line-height: 1.17;
}

.job-copy > .en {
  margin: 1px 0 13px;
  color: rgba(248, 243, 232, 0.76);
  font-family: Georgia, serif;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.025em;
}

.job-copy > p {
  max-width: 670px;
  margin: 0;
  color: rgba(248, 243, 232, 0.59);
  font-size: 11px;
  line-height: 1.85;
}

.job-skill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 18px;
}

.job-skill {
  padding: 5px 9px;
  color: rgba(248, 243, 232, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  font-size: 8px;
}

.job-side-card {
  display: flex;
  flex-direction: column;
  gap: 19px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
}

.job-side-note small {
  color: rgba(248, 243, 232, 0.45);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.job-side-note h3 {
  margin: 7px 0 5px;
  font-family: var(--font-serif);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  line-height: 1.4;
}

.job-side-note p {
  margin: 0;
  color: rgba(248, 243, 232, 0.64);
  font-size: 12px;
  line-height: 1.72;
}

.job-side-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.job-side-actions .btn {
  width: 100%;
}

.job-links {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.job-links > span {
  width: 100%;
  margin-bottom: 1px;
  color: rgba(248, 243, 232, 0.42);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.job-links a {
  flex: 0 0 auto;
  padding: 6px 9px;
  color: rgba(248, 243, 232, 0.66);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 10px;
  line-height: 1.35;
  text-align: center;
  white-space: nowrap;
}

.job-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 13px;
  margin-top: 13px;
}

.job-read-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding: 17px 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(200, 242, 119, 0.2), transparent 36%),
    var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 15px;
}

.job-read-footer > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.job-read-footer strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.job-read-footer span {
  color: var(--muted);
  font-size: 11px;
}

.job-read-footer .btn {
  flex: 0 0 auto;
}

.job-details {
  padding: 25px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.job-details h2 {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
}

.job-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 22px;
}

.job-fact {
  min-height: 132px;
  padding: 15px;
  background:
    radial-gradient(circle at 100% 0%, rgba(200, 242, 119, 0.2), transparent 42%),
    var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.job-fact > span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.job-fact > strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.65;
}

.job-fact > small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.job-company-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.job-company-tags b {
  padding: 4px 7px;
  color: var(--forest);
  background: var(--lime-soft);
  border-radius: 6px;
  font-size: 10px;
  font-weight: 650;
}

.job-section {
  margin-bottom: 20px;
}

.job-section:last-child {
  margin-bottom: 0;
}

.job-section h3 {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.job-bullet {
  display: flex;
  gap: 8px;
  margin: 6px 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.7;
}

.job-bullet::before {
  width: 4px;
  height: 4px;
  margin-top: 7px;
  flex: 0 0 auto;
  content: "";
  background: var(--lime);
  border: 1px solid #98bd56;
  border-radius: 50%;
}

.skill-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.skill-check {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 20px;
  cursor: pointer;
  font-size: 9px;
}

.skill-check.checked {
  color: var(--forest);
  background: var(--lime-soft);
  border-color: #cfe7a3;
}

.skill-check span {
  display: grid;
  width: 13px;
  height: 13px;
  border: 1px solid currentColor;
  border-radius: 50%;
  place-items: center;
}

.skill-check .icon {
  width: 8px;
  height: 8px;
}

.job-library {
  padding: 22px;
  background: #f1ebdc;
  border: 1px solid rgba(24, 37, 31, 0.08);
  border-radius: var(--radius-lg);
}

.job-library h2 {
  margin: 5px 0 14px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
}

.job-mini {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.65);
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease;
}

.job-mini + .job-mini {
  margin-top: 7px;
}

.job-mini:hover {
  background: var(--surface);
}

.job-mini-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  color: var(--forest);
  background: var(--lime-soft);
  border-radius: 9px;
  place-items: center;
}

.job-mini-icon .icon {
  width: 14px;
  height: 14px;
}

.job-mini-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.job-mini-copy strong {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.job-mini-copy small {
  color: var(--muted);
  font-size: 8px;
}

.books-hero {
  display: flex;
  min-height: 255px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding: 36px;
  color: #f8f3e8;
  background:
    linear-gradient(110deg, rgba(23, 55, 43, 1) 0%, rgba(23, 55, 43, 0.96) 55%, rgba(37, 75, 59, 0.95) 100%);
  border-radius: var(--radius-xl);
}

.books-hero .eyebrow {
  color: rgba(248, 243, 232, 0.42);
}

.books-hero h1 {
  margin: 12px 0 8px;
  font-family: var(--font-serif);
  font-size: clamp(32px, 3.6vw, 46px);
  font-weight: 600;
  line-height: 1.18;
}

.books-hero p {
  max-width: 530px;
  margin: 0;
  color: rgba(248, 243, 232, 0.55);
  font-size: 11px;
}

.book-spines {
  display: flex;
  height: 150px;
  align-items: flex-end;
  gap: 5px;
  transform: rotate(-2deg);
}

.book-spine {
  display: flex;
  width: 33px;
  height: 120px;
  align-items: center;
  justify-content: center;
  padding: 7px 0;
  color: rgba(255, 255, 255, 0.78);
  background: #c78e68;
  border-radius: 2px 5px 5px 2px;
  font-family: var(--font-serif);
  font-size: 9px;
  letter-spacing: 0.16em;
  writing-mode: vertical-rl;
}

.book-spine:nth-child(2) {
  height: 138px;
  color: var(--forest);
  background: #d8dfae;
}

.book-spine:nth-child(3) {
  height: 110px;
  background: #4d7290;
}

.book-spine:nth-child(4) {
  height: 130px;
  color: #49361f;
  background: #e6c489;
}

.book-spine:nth-child(5) {
  height: 98px;
  background: #8b5447;
}

.shelf-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 13px 0;
}

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

.book-card {
  position: relative;
  display: flex;
  min-height: 298px;
  padding: 18px;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s ease;
}

.book-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.book-card.selected {
  border-color: var(--forest-3);
  box-shadow: 0 0 0 2px rgba(47, 94, 75, 0.12);
}

.book-cover {
  position: relative;
  display: flex;
  width: 112px;
  height: 157px;
  margin: 0 auto 16px;
  padding: 17px 13px 14px 18px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: #f8f3e8;
  background: linear-gradient(145deg, #2d443b, #0f1c17);
  border-radius: 3px 7px 7px 3px;
  box-shadow:
    12px 16px 28px rgba(23, 55, 43, 0.22),
    inset 3px 0 0 rgba(255, 255, 255, 0.06);
}

.book-cover::after {
  position: absolute;
  inset: 0 auto 0 7px;
  width: 1px;
  content: "";
  background: rgba(255, 255, 255, 0.17);
}

.book-cover-top {
  position: relative;
  z-index: 1;
  font-size: 5px;
  font-weight: 700;
  letter-spacing: 0.17em;
  opacity: 0.55;
}

.book-cover h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.03em;
}

.book-cover-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 5px;
  font-size: 6px;
  opacity: 0.65;
}

.book-cover-mark {
  width: 17px;
  height: 1px;
  background: currentColor;
}

.book-card-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.book-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 8px;
}

.status-pill {
  padding: 2px 6px;
  color: #526d2a;
  background: #eef6dc;
  border-radius: 20px;
  font-size: 7px;
  font-weight: 600;
}

.status-pill.finished {
  color: #5a6b56;
  background: #eef0ec;
}

.status-pill.wishlist {
  color: #73613f;
  background: #f3ecdc;
}

.book-card h4 {
  margin: 7px 0 2px;
  overflow: hidden;
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.book-card p {
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.book-card .reading-progress {
  margin-top: 12px;
}

.add-book-card {
  display: flex;
  min-height: 298px;
  align-items: center;
  justify-content: center;
  padding: 20px;
  flex-direction: column;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  background: rgba(255, 253, 248, 0.38);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
}

.add-book-card:hover {
  color: var(--forest);
  border-color: var(--forest-3);
  background: rgba(255, 253, 248, 0.74);
}

.add-book-card .empty-icon {
  margin-bottom: 12px;
}

.add-book-card strong {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
}

.add-book-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
}

.book-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(270px, 0.6fr);
  gap: 13px;
  margin-top: 14px;
}

.book-detail-main,
.notes-panel {
  padding: 25px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.book-detail-head {
  display: flex;
  gap: 19px;
  padding-bottom: 19px;
  border-bottom: 1px solid var(--line);
}

.book-detail-head .book-cover {
  width: 94px;
  min-width: 94px;
  height: 132px;
  margin: 0;
  padding: 14px 10px 12px 15px;
}

.book-detail-head .book-cover h3 {
  font-size: 14px;
}

.book-detail-copy {
  min-width: 0;
}

.book-detail-copy .eyebrow {
  font-size: 8px;
}

.book-detail-copy h2 {
  margin: 7px 0 3px;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.35;
}

.book-detail-copy > p {
  margin: 0 0 11px;
  color: var(--muted);
  font-size: 10px;
}

.book-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 8px;
}

.meta-chip .icon {
  width: 10px;
  height: 10px;
}

.book-description {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-size: 12px;
  line-height: 1.9;
}

.book-description.no-desc {
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: 10px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.notes-panel {
  background: #f1ebdc;
}

.notes-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.notes-head h3 {
  margin: 5px 0 0;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
}

.notes-list {
  display: flex;
  max-height: 440px;
  padding-left: 2px;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
}

.note-item {
  position: relative;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid rgba(24, 37, 31, 0.08);
  border-radius: 12px;
}

.note-item::before {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: -1px;
  width: 2px;
  content: "";
  background: var(--lime);
  border-radius: 3px;
}

.note-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 8px;
}

.note-quote {
  margin: 8px 0;
  padding-left: 9px;
  color: var(--ink-soft);
  border-left: 1px solid #d7cba9;
  font-family: var(--font-serif);
  font-size: 11px;
  line-height: 1.75;
}

.note-thought {
  margin: 0;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.note-empty {
  display: flex;
  min-height: 210px;
  align-items: center;
  justify-content: center;
  padding: 25px;
  flex-direction: column;
  color: var(--muted);
  text-align: center;
}

.note-empty .icon {
  width: 27px;
  height: 27px;
  margin-bottom: 10px;
  color: #a99e85;
}

.note-empty strong {
  color: var(--ink-soft);
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
}

.note-empty p {
  max-width: 220px;
  margin: 4px 0 13px;
  font-size: 9px;
  line-height: 1.7;
}

.mobile-nav {
  display: none;
}

.fab {
  display: none;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(14, 28, 22, 0.54);
  backdrop-filter: blur(9px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
}

.modal {
  display: flex;
  width: min(100%, 690px);
  max-height: min(90vh, 870px);
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 25px;
  box-shadow: 0 30px 90px rgba(10, 27, 20, 0.3);
  transform: translateY(20px) scale(0.985);
  transition: transform 0.35s var(--ease);
}

.modal-overlay.open .modal {
  transform: none;
}

.modal.modal-wide {
  width: min(100%, 880px);
}

.modal.modal-narrow {
  width: min(100%, 510px);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 23px 25px 18px;
  border-bottom: 1px solid var(--line);
}

.modal-head .eyebrow {
  font-size: 8px;
}

.modal-head h2 {
  margin: 6px 0 0;
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 600;
  line-height: 1.28;
}

.modal-close {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  padding: 0;
  color: var(--muted);
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 50%;
  cursor: pointer;
  place-items: center;
}

.modal-close:hover {
  color: var(--ink);
  background: var(--paper-deep);
}

.modal-close .icon {
  width: 15px;
  height: 15px;
}

.modal-body {
  padding: 22px 25px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 25px 21px;
  border-top: 1px solid var(--line);
  background: rgba(248, 245, 237, 0.7);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 600;
}

.form-field label span {
  margin-left: 3px;
  color: var(--muted-light);
  font-weight: 400;
}

.form-field label em {
  margin-left: 3px;
  color: var(--coral);
  font-style: normal;
}

.input,
.textarea,
.select {
  width: 100%;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  outline: none;
  background: var(--surface);
  border-radius: 10px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.input,
.select {
  height: 40px;
  padding: 0 11px;
}

.textarea {
  min-height: 78px;
  padding: 9px 11px;
  line-height: 1.7;
  resize: vertical;
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: var(--forest-3);
  box-shadow: 0 0 0 3px rgba(47, 94, 75, 0.09);
}

.input::placeholder,
.textarea::placeholder {
  color: #b1b6b1;
}

.field-hint {
  color: var(--muted-light);
  font-size: 8px;
  line-height: 1.55;
}

.form-section {
  margin-top: 5px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.form-section:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.form-section-title {
  margin: 0 0 12px;
  color: var(--forest);
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
}

.checkbox-line {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 9px;
  line-height: 1.65;
}

.checkbox-line input {
  width: 15px;
  height: 15px;
  margin: 1px 0 0;
  accent-color: var(--forest-3);
}

.inline-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.inline-form .form-field {
  flex: 1;
}

.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.quick-option {
  display: flex;
  min-height: 94px;
  padding: 15px;
  flex-direction: column;
  align-items: flex-start;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
}

.quick-option:hover {
  background: var(--surface);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.quick-option span {
  display: grid;
  width: 33px;
  height: 33px;
  margin-bottom: 10px;
  color: var(--forest);
  background: var(--lime-soft);
  border-radius: 9px;
  place-items: center;
}

.quick-option:nth-child(2) span {
  background: var(--coral-soft);
}

.quick-option:nth-child(3) span {
  background: var(--sky-soft);
}

.quick-option:nth-child(4) span {
  background: #f2e9d6;
}

.quick-option .icon {
  width: 16px;
  height: 16px;
}

.quick-option strong {
  font-size: 11px;
  font-weight: 600;
}

.quick-option small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.reminder-intro {
  padding: 17px;
  color: var(--ink-soft);
  background: var(--lime-soft);
  border-radius: 13px;
}

.reminder-intro strong {
  display: block;
  margin-bottom: 3px;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
}

.reminder-intro p {
  margin: 0;
  color: #627449;
  font-size: 9px;
  line-height: 1.7;
}

.reminder-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 15px 0;
}

.reminder-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 10px;
}

.reminder-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  color: var(--forest);
  background: var(--surface);
  border-radius: 8px;
  place-items: center;
}

.reminder-icon .icon {
  width: 13px;
  height: 13px;
}

.reminder-row-copy {
  min-width: 0;
  flex: 1;
}

.reminder-row-copy strong {
  display: block;
  font-size: 9px;
  font-weight: 600;
}

.reminder-row-copy small {
  color: var(--muted);
  font-size: 8px;
}

.reminder-row time {
  color: var(--muted);
  font-size: 8px;
}

.modal-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.settings-section {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.settings-section:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: 0;
}

.settings-section h3 {
  margin: 0 0 11px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
}

.settings-note {
  margin-top: 10px;
  padding: 12px;
  color: #6a624f;
  background: #f5efe1;
  border-radius: 10px;
  font-size: 8px;
  line-height: 1.7;
}

.sync-settings-block {
  margin-top: 14px;
}

.sync-settings-block h3 {
  margin: 0 0 9px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
}

.sync-settings-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  border-radius: 14px;
}

.sync-settings-card.is-on {
  background: #f2f9ec;
  border-color: rgba(88, 165, 111, 0.22);
}

.sync-settings-card.is-pending {
  background: #fff8e6;
  border-color: rgba(228, 182, 95, 0.3);
}

.sync-settings-card.is-alert {
  background: #fff1ed;
  border-color: rgba(255, 107, 70, 0.24);
}

.sync-settings-icon {
  display: grid;
  width: 38px;
  height: 38px;
  color: var(--forest);
  background: var(--lime-soft);
  border-radius: 12px;
  place-items: center;
}

.sync-settings-icon .icon {
  width: 18px;
  height: 18px;
}

.sync-settings-copy {
  min-width: 0;
}

.sync-settings-copy strong {
  display: block;
  font-size: 13px;
}

.sync-settings-copy p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.sync-steps {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.sync-steps > div {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.sync-steps b {
  display: grid;
  width: 26px;
  height: 26px;
  color: var(--forest);
  background: var(--lime);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 500;
  place-items: center;
}

.sync-steps span {
  display: grid;
  gap: 1px;
}

.sync-steps strong {
  font-size: 13px;
}

.sync-steps small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.sync-code-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.sync-code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  color: var(--forest);
  background: var(--lime-soft);
  border: 1px solid rgba(69, 105, 42, 0.18);
  border-radius: 12px;
}

.sync-code-box code {
  overflow-wrap: anywhere;
  font-family: Consolas, "Microsoft YaHei", monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.sync-help,
.sync-secret-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.sync-secret-note {
  color: #7c6a48;
}

.sync-advanced {
  margin: 0 0 16px;
  padding: 11px 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.sync-advanced summary {
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.sync-advanced label {
  display: block;
  margin: 11px 0 5px;
  color: var(--muted);
  font-size: 11px;
}

.sync-advanced p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.sync-first-actions {
  display: grid;
  gap: 8px;
}

.sync-connected-hero {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
  padding: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 15px;
}

.sync-connected-hero.is-on {
  background: #f2f9ec;
  border-color: rgba(88, 165, 111, 0.22);
}

.sync-connected-hero.is-alert {
  background: #fff1ed;
  border-color: rgba(255, 107, 70, 0.24);
}

.sync-connected-hero > span {
  display: grid;
  width: 42px;
  height: 42px;
  color: var(--forest);
  background: var(--lime);
  border-radius: 14px;
  place-items: center;
}

.sync-connected-hero strong {
  display: block;
  font-size: 15px;
}

.sync-connected-hero p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.sync-conflict-card {
  margin-bottom: 18px;
  padding: 16px;
  background: #fff4ef;
  border: 1px solid rgba(255, 107, 70, 0.25);
  border-radius: 15px;
}

.sync-conflict-card h3 {
  margin: 5px 0 7px;
  color: #7d2e1d;
  font-size: 16px;
}

.sync-conflict-card p {
  margin: 0;
  color: #7d5b50;
  font-size: 12px;
  line-height: 1.7;
}

.sync-conflict-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.break-all {
  overflow-wrap: anywhere;
}

.data-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.reminder-config {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reminder-config-row {
  display: grid;
  grid-template-columns: minmax(90px, 1fr) 100px 105px;
  gap: 7px;
  align-items: center;
}

.reminder-config-row strong {
  font-size: 9px;
  font-weight: 600;
}

.reminder-config-row .select,
.reminder-config-row .input {
  height: 34px;
  font-size: 9px;
}

.report {
  color: var(--ink);
  font-size: 10px;
  line-height: 1.8;
}

.report-cover {
  padding: 29px;
  color: #f8f3e8;
  background: var(--forest);
  border-radius: 17px;
}

.report-cover span {
  color: rgba(248, 243, 232, 0.45);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.17em;
}

.report-cover h2 {
  margin: 10px 0 7px;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 600;
}

.report-cover p {
  margin: 0;
  color: rgba(248, 243, 232, 0.54);
  font-size: 9px;
}

.report-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 12px 0 20px;
}

.report-stat {
  padding: 13px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.report-stat strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 400;
}

.report-stat small {
  color: var(--muted);
  font-size: 8px;
}

.report-section {
  margin-top: 22px;
}

.report-section h3 {
  margin: 0 0 9px;
  padding-bottom: 6px;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.report-entry {
  margin-bottom: 14px;
}

.report-entry h4 {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 600;
}

.report-entry p {
  margin: 3px 0;
  color: var(--ink-soft);
  white-space: pre-wrap;
}

.report-entry small {
  color: var(--muted);
  font-size: 8px;
}

.report-empty {
  padding: 15px;
  color: var(--muted);
  background: var(--surface-soft);
  border-radius: 9px;
  font-size: 9px;
}

.toast-stack {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  display: flex;
  width: min(340px, calc(100vw - 32px));
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 13px 15px;
  color: #f8f3e8;
  background: var(--forest);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(10, 27, 20, 0.22);
  font-size: 10px;
  line-height: 1.6;
  animation: toast-in 0.35s var(--ease) both;
  pointer-events: auto;
}

.toast .icon {
  width: 15px;
  height: 15px;
  margin-top: 1px;
  color: var(--lime);
}

.toast.warn {
  color: #5d331f;
  background: #fff2e7;
  border-color: #f2d1bd;
}

.toast.warn .icon {
  color: var(--coral);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.confirm-copy {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.8;
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--muted);
}

.spacer {
  height: 12px;
}

@media (max-width: 1240px) {
  :root {
    --sidebar: 230px;
  }

  .sidebar {
    padding-right: 16px;
    padding-left: 16px;
  }

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

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

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

  .kanban-column {
    min-height: 240px;
  }
}

@media (max-width: 1020px) {
  :root {
    --sidebar: 214px;
  }

  .sidebar-motto {
    font-size: 12px;
  }

  .hero {
    grid-template-columns: minmax(0, 1.4fr) 220px;
    gap: 15px;
  }

  .week-orbit {
    width: 174px;
    height: 174px;
  }

  .orbit-inner strong {
    font-size: 37px;
  }

  .dashboard-grid,
  .review-layout,
  .briefing-layout,
  .book-detail,
  .job-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .side-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

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

  .signal-card {
    min-height: 130px;
  }

  .job-hero {
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.55fr);
  }

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

@media (max-width: 860px) {
  .sidebar {
    display: none;
  }

  .main-shell {
    margin-left: 0;
  }

  .topbar {
    position: sticky;
    top: 0;
    min-height: 64px;
    padding: 12px 20px;
    background: rgba(244, 241, 233, 0.86);
    border-bottom: 1px solid rgba(24, 37, 31, 0.06);
    backdrop-filter: blur(16px);
  }

  .topbar-left::before {
    display: block;
    width: 23px;
    height: 23px;
    content: "";
    background: url("./../icons/icon.svg") center / contain no-repeat;
    border-radius: 6px;
  }

  .topbar-date {
    font-size: 9px;
  }

  .topbar-date b {
    font-size: 12px;
  }

  .topbar .quick-add-button {
    display: none;
  }

  .topbar .avatar-button {
    display: grid;
  }

  .page {
    padding: 12px 20px 150px;
  }

  .hero {
    min-height: 285px;
    grid-template-columns: minmax(0, 1fr);
    padding: 29px;
  }

  .hero-side {
    position: absolute;
    right: 28px;
    bottom: 28px;
    opacity: 0.35;
  }

  .week-orbit {
    width: 150px;
    height: 150px;
  }

  .hero h1 {
    max-width: 90%;
    font-size: clamp(30px, 7vw, 41px);
  }

  .hero p {
    max-width: 76%;
  }

  .orbit-bubble,
  .orbit-caption {
    display: none;
  }

  .hero-actions {
    position: relative;
    z-index: 2;
    max-width: 75%;
  }

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

  .side-stack {
    grid-template-columns: 1fr 1fr;
  }

  .mobile-nav {
    position: fixed;
    right: 12px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 12px;
    z-index: 60;
    display: flex;
    height: 66px;
    padding: 6px;
    background: rgba(23, 55, 43, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 21px;
    box-shadow: 0 13px 36px rgba(16, 39, 29, 0.26);
    backdrop-filter: blur(15px);
  }

  .mobile-nav a {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: rgba(248, 243, 232, 0.46);
    border-radius: 15px;
    flex-direction: column;
    font-size: 8px;
    font-weight: 600;
    transition:
      color 0.2s ease,
      background 0.2s ease;
  }

  .mobile-nav a.active {
    color: var(--forest);
    background: var(--lime);
  }

  .mobile-nav .icon {
    width: 17px;
    height: 17px;
  }

  .fab {
    position: fixed;
    right: 22px;
    bottom: calc(89px + env(safe-area-inset-bottom));
    z-index: 65;
    display: grid;
    width: 47px;
    height: 47px;
    color: #fffaf0;
    border: 3px solid var(--paper);
    background: var(--coral);
    border-radius: 50%;
    box-shadow: 0 10px 24px rgba(255, 107, 70, 0.34);
    cursor: pointer;
    place-items: center;
  }

  .fab .icon {
    width: 18px;
    height: 18px;
  }

  .toast-stack {
    right: 16px;
    bottom: 93px;
  }

  .page-hero {
    align-items: flex-start;
    padding: 27px;
    flex-direction: column;
  }

  .hero-metric {
    width: 100%;
    min-height: auto;
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .hero-metric strong {
    margin: 0;
    font-size: 27px;
  }

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

  .insight-hero {
    min-height: 290px;
    align-items: flex-start;
    flex-direction: column;
  }

  .scan-box {
    width: 100%;
  }

  .job-hero-bottom {
    grid-template-columns: minmax(0, 1fr) minmax(175px, 0.38fr);
  }

  .job-links {
    grid-column: 1 / -1;
  }

  .books-hero {
    min-height: 280px;
  }

  .book-spines {
    position: absolute;
    right: 27px;
    bottom: 24px;
    opacity: 0.38;
  }

  .books-hero > div:first-child {
    position: relative;
    z-index: 1;
  }

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

@media (max-width: 620px) {
  .topbar {
    padding: 11px 16px;
  }

  .topbar-actions {
    gap: 6px;
  }

  .icon-button {
    width: 36px;
    height: 36px;
  }

  .page {
    padding: 8px 14px 101px;
  }

  .hero {
    min-height: 340px;
    padding: 25px 22px;
    border-radius: 27px;
  }

  .hero h1 {
    max-width: 100%;
    margin-top: 17px;
    font-size: 32px;
  }

  .hero p {
    max-width: 100%;
    font-size: 11px;
  }

  .hero-actions {
    max-width: 100%;
  }

  .hero-side {
    display: none;
  }

  .hero .btn {
    min-height: 40px;
    padding: 0 14px;
    font-size: 10px;
  }

  .sample-banner {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 12px;
  }

  .sample-banner .btn {
    margin-left: 41px;
  }

  .stats-strip {
    gap: 8px;
    margin: 9px 0;
  }

  .stat-card {
    min-height: 89px;
    padding: 13px;
    gap: 10px;
    border-radius: 15px;
  }

  .stat-icon {
    width: 33px;
    height: 33px;
    border-radius: 10px;
  }

  .stat-icon .icon {
    width: 15px;
    height: 15px;
  }

  .stat-copy strong {
    font-size: 28px;
  }

  .stat-copy small {
    font-size: 12px;
  }

  .card {
    padding: 18px;
    border-radius: 20px;
  }

  .card-head h2 {
    font-size: 19px;
  }

  .card-head {
    margin-bottom: 15px;
  }

  .mission {
    padding: 8px 4px;
  }

  .mission-copy strong {
    font-size: 11px;
  }

  .mission-copy small {
    font-size: 9px;
  }

  .mission-tail .xp-chip {
    display: none;
  }

  .side-stack {
    grid-template-columns: 1fr;
  }

  .evidence-card {
    min-height: 200px;
  }

  .signal-band {
    padding: 18px;
    border-radius: 20px;
  }

  .section-heading {
    align-items: flex-start;
  }

  .section-heading h2 {
    font-size: 19px;
  }

  .signal-card {
    min-height: 140px;
  }

  .activity-card {
    display: block;
    padding: 16px;
  }

  .heatmap {
    margin-top: 13px;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .heat-cell {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
  }

  .page-hero {
    padding: 24px 21px;
    border-radius: 24px;
  }

  .page-hero h1 {
    font-size: 29px;
  }

  .page-hero p {
    font-size: 10px;
  }

  .toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .toolbar-actions {
    width: 100%;
  }

  .toolbar-actions .btn {
    flex: 1;
  }

  .review-item {
    padding: 19px 17px 16px;
    border-radius: 18px;
  }

  .review-item h3 {
    font-size: 18px;
  }

  .review-result {
    font-size: 9px;
  }

  .item-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .pipeline-stats {
    gap: 7px;
  }

  .pipeline-stat {
    padding: 12px;
  }

  .pipeline-stat strong {
    font-size: 26px;
  }

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

  .kanban-column {
    min-height: auto;
    padding: 10px;
    border-radius: 18px;
  }

  .kanban-cards {
    display: grid;
    grid-template-columns: 1fr;
  }

  .insight-hero {
    min-height: 340px;
    padding: 26px 21px;
    border-radius: 25px;
  }

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

  .scan-box {
    padding: 14px;
  }

  .tabs-line {
    margin: 12px 0;
  }

  .tab-button {
    padding: 0 12px;
  }

  .briefing-card {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 17px;
  }

  .briefing-index {
    font-size: 17px;
  }

  .importance {
    margin-left: 0;
  }

  .briefing-body h3 {
    font-size: 17px;
  }

  .briefing-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .editorial-note {
    padding: 18px;
    border-radius: 18px;
  }

  .job-hero {
    padding: 25px 21px;
    border-radius: 25px;
  }

  .job-title-line h1 {
    font-size: 34px;
  }

  .job-details {
    padding: 20px;
    border-radius: 18px;
  }

  .job-library {
    padding: 18px;
    border-radius: 18px;
  }

  .books-hero {
    min-height: 310px;
    padding: 26px 21px;
    border-radius: 25px;
  }

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

  .book-spines {
    right: 8px;
    bottom: 8px;
  }

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

  .book-card {
    min-height: 280px;
    padding: 14px;
  }

  .book-cover {
    width: 103px;
    height: 145px;
  }

  .add-book-card {
    min-height: 280px;
  }

  .book-detail-main,
  .notes-panel {
    padding: 19px;
    border-radius: 18px;
  }

  .book-detail-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .book-detail-head .book-cover {
    width: 82px;
    min-width: 82px;
    height: 115px;
  }

  .book-detail-copy h2 {
    font-size: 23px;
  }

  .notes-list {
    max-height: none;
  }

  .modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .modal {
    width: 100%;
    max-height: 93vh;
    border-radius: 23px 23px 0 0;
    transform: translateY(35px);
  }

  .modal-head {
    padding: 20px 18px 15px;
  }

  .modal-head h2 {
    font-size: 22px;
  }

  .modal-body {
    padding: 18px;
  }

  .modal-foot {
    padding: 13px 18px calc(16px + env(safe-area-inset-bottom));
  }

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

  .form-field.full {
    grid-column: auto;
  }

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

  .quick-option {
    min-height: 100px;
    padding: 13px;
  }

  .reminder-config-row {
    grid-template-columns: 1fr 90px;
  }

  .reminder-config-row .input {
    grid-column: 2;
  }

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

  .toast-stack {
    right: 14px;
    bottom: 92px;
    left: 14px;
    width: auto;
  }
}

/* Keep secondary information readable without losing the editorial rhythm. */
.topbar-date {
  font-size: 10px;
}

.signal-footer,
.signal-tag,
.tag,
.award-ready,
.idea-card-top,
.briefing-foot,
.source-link,
.read-toggle,
.job-skill,
.book-card p,
.book-status,
.book-meta-row,
.note-meta,
.reminder-row time,
.report-entry small {
  font-size: 9px;
}

.sample-banner small,
.signal-card p,
.review-result,
.method-line,
.mini-action,
.guide-step strong,
.idea-card p,
.next-action,
.column-empty,
.tab-button,
.scan-link,
.briefing-body > p,
.why-line,
.editorial-note p,
.check-line,
.job-side-note p,
.job-bullet,
.skill-check,
.book-detail-copy > p,
.meta-chip,
.note-thought,
.form-field label,
.checkbox-line,
.quick-option small,
.reminder-intro p,
.reminder-row-copy small,
.settings-note,
.reminder-config-row strong {
  font-size: 10.5px;
}

.sample-banner strong {
  font-size: 11px;
}

.mission-copy small,
.review-meta,
.guide-step small {
  font-size: 10px;
}

.mission-copy strong {
  font-size: 12px;
}

.card-head p {
  font-size: 11px;
}

.quick-option strong {
  font-size: 12px;
}

.field-hint {
  font-size: 9.5px;
}

.advance-btn,
.patent-progress {
  font-size: 9px;
}

.mobile-nav a {
  font-size: 9px;
}

@media (max-width: 620px) {
  .sync-settings-card {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .sync-settings-card .btn {
    grid-column: 2;
    justify-self: start;
  }

  .sync-code-input-row {
    grid-template-columns: 1fr;
  }

  .sync-code-box {
    align-items: stretch;
    flex-direction: column;
  }

  .sync-code-box .btn {
    width: 100%;
  }

  .sync-conflict-actions {
    grid-template-columns: 1fr;
  }
}

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

@media print {
  body {
    background: white;
  }

  .sidebar,
  .topbar,
  .mobile-nav,
  .fab,
  .news-refresh-fab,
  .modal-head,
  .modal-foot,
  .toast-stack,
  .button-badge {
    display: none !important;
  }

  .modal-overlay {
    position: static;
    display: block;
    padding: 0;
    background: white;
  }

  .modal {
    width: 100%;
    max-height: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
  }

  .modal-body {
    padding: 0;
    overflow: visible;
  }

  .report-cover {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .report-section {
    break-inside: avoid;
  }
}

.insights-page {
  --news-accent: #3f7797;
  --news-accent-ink: #183642;
  --news-accent-soft: #e8f4fb;
  --news-highlight: #c8f277;
  --news-card-accent: #4b8cab;
}

.news-theme-us {
  --news-accent: #3f7797;
  --news-accent-ink: #173541;
  --news-accent-soft: #e7f3fa;
  --news-highlight: #c8f277;
  --news-card-accent: #4b8cab;
}

.news-theme-cn {
  --news-accent: #b95f42;
  --news-accent-ink: #472a23;
  --news-accent-soft: #fff0e8;
  --news-highlight: #ffd37a;
  --news-card-accent: #d1704f;
}

.news-theme-ai {
  --news-accent: #675ab8;
  --news-accent-ink: #292347;
  --news-accent-soft: #efedff;
  --news-highlight: #a8f0cf;
  --news-card-accent: #7769c7;
}

.news-theme-careers {
  --news-accent: #8c6a24;
  --news-accent-ink: #3e321b;
  --news-accent-soft: #fff5d9;
  --news-highlight: #c8f277;
  --news-card-accent: #b08a38;
}

.news-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.48fr) minmax(310px, 0.52fr);
  gap: 24px;
  margin-bottom: 16px;
  padding: 40px;
  overflow: hidden;
  color: #fffdf8;
  background:
    radial-gradient(circle at 88% 0%, color-mix(in srgb, var(--news-accent) 58%, transparent), transparent 34%),
    linear-gradient(128deg, var(--news-accent-ink) 8%, color-mix(in srgb, var(--news-accent-ink) 78%, #000) 100%);
  border-radius: 32px;
  box-shadow: 0 24px 60px rgba(24, 37, 31, 0.14);
}

.news-hero::after {
  position: absolute;
  right: -120px;
  bottom: -220px;
  width: 520px;
  height: 520px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(255, 255, 255, 0.025),
    0 0 0 86px rgba(255, 255, 255, 0.018);
  pointer-events: none;
}

.news-hero-main,
.news-source-card {
  position: relative;
  z-index: 1;
}

.news-source-inline {
  display: none;
}

.news-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  color: rgba(255, 253, 248, 0.82);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.news-live-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  background: var(--news-highlight);
  border-radius: 50%;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--news-highlight) 18%, transparent);
}

.news-live-dot.is-loading {
  animation: newsPulse 1.1s ease-in-out infinite;
}

@keyframes newsPulse {
  50% {
    opacity: 0.38;
    transform: scale(0.75);
  }
}

.news-hero h1 {
  max-width: 720px;
  margin: 19px 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.news-hero h1 em {
  color: var(--news-highlight);
  font-style: normal;
}

.news-hero-main > p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 253, 248, 0.72);
  font-size: 15px;
  line-height: 1.85;
}

.news-hero-main .news-soft-error {
  margin-top: 12px;
  color: #ffe6a9;
  font-size: 12px;
}

.news-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 25px;
}

.news-hero-stats span {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 9px 12px;
  color: rgba(255, 253, 248, 0.66);
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
}

.news-hero-stats b {
  color: #fff;
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 400;
}

.news-source-card {
  align-self: end;
  padding: 22px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 22px;
  backdrop-filter: blur(16px);
}

.news-source-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.news-source-head > span {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  color: var(--news-accent-ink);
  background: var(--news-highlight);
  border-radius: 12px;
  place-items: center;
}

.news-source-head .icon {
  width: 18px;
  height: 18px;
}

.news-source-head div {
  display: flex;
  flex-direction: column;
}

.news-source-head strong {
  color: #fff;
  font-size: 15px;
}

.news-source-head small {
  margin-top: 2px;
  color: rgba(255, 253, 248, 0.52);
  font-size: 11px;
}

.news-source-card > p {
  margin: 16px 0 12px;
  color: rgba(255, 253, 248, 0.69);
  font-size: 13px;
  line-height: 1.75;
}

.news-source-details {
  padding: 11px 0 0;
  color: rgba(255, 253, 248, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.news-source-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  list-style: none;
}

.news-source-details summary::-webkit-details-marker {
  display: none;
}

.news-source-details summary span {
  color: rgba(255, 253, 248, 0.44);
  font-size: 10px;
  font-weight: 500;
}

.news-source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.news-source-links a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  color: rgba(255, 253, 248, 0.82);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 7px;
  font-size: 11px;
}

.news-source-links a:hover {
  color: var(--news-accent-ink);
  background: var(--news-highlight);
}

.news-source-links .icon {
  width: 11px;
  height: 11px;
}

.news-source-details > small {
  display: block;
  margin-top: 12px;
  color: rgba(255, 253, 248, 0.43);
  font-size: 10px;
  line-height: 1.65;
}

.news-refresh {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
  color: var(--news-accent-ink);
  background: var(--news-highlight);
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition:
    transform 0.18s ease,
    filter 0.18s ease;
}

.news-refresh:hover:not(:disabled) {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.news-refresh:disabled {
  cursor: wait;
  opacity: 0.62;
}

.news-refresh .icon {
  width: 15px;
  height: 15px;
}

.news-refresh-fab {
  position: fixed;
  right: 28px;
  bottom: 26px;
  z-index: 64;
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 7px;
  padding: 0 15px;
  color: var(--news-accent-ink);
  background: var(--news-highlight);
  border: 1px solid color-mix(in srgb, var(--news-highlight) 65%, var(--line));
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(19, 34, 26, 0.18);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition:
    transform 0.18s ease,
    filter 0.18s ease;
}

.news-refresh-fab[hidden] {
  display: none !important;
}

.news-refresh-fab:hover:not(:disabled) {
  filter: brightness(1.05);
  transform: translateY(-2px);
}

.news-refresh-fab:disabled {
  cursor: wait;
  opacity: 0.66;
}

.news-refresh-fab .icon {
  width: 15px;
  height: 15px;
}

.news-top-refresh[hidden] {
  display: none !important;
}

.news-top-refresh.is-loading .icon,
.news-refresh-fab.is-loading .icon {
  animation: newsSpin 0.8s linear infinite;
}

@keyframes newsSpin {
  to {
    transform: rotate(360deg);
  }
}

.news-tabs {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 17px 0 13px;
  padding: 6px;
  overflow-x: auto;
  background: rgba(255, 253, 248, 0.86);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  scrollbar-width: none;
}

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

.news-tab {
  display: flex;
  min-height: 43px;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  transition:
    color 0.18s ease,
    background 0.18s ease;
}

.news-tab:hover {
  color: var(--ink);
  background: var(--surface-soft);
}

.news-tab.active {
  color: var(--news-accent-ink);
  background: var(--news-accent-soft);
}

.news-tab .icon {
  width: 16px;
  height: 16px;
}

.news-tab small {
  min-width: 20px;
  padding: 2px 5px;
  color: var(--muted);
  background: rgba(24, 37, 31, 0.06);
  border-radius: 999px;
  font-size: 10px;
  text-align: center;
}

.news-tab.active small {
  color: var(--news-accent-ink);
  background: rgba(255, 255, 255, 0.7);
}

.news-howto {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-bottom: 20px;
  padding: 13px 17px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 12px;
}

.news-howto > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.news-howto-lead {
  color: var(--ink);
  font-weight: 700;
}

.news-howto b {
  display: grid;
  width: 21px;
  height: 21px;
  color: var(--news-accent-ink);
  background: var(--news-accent-soft);
  border-radius: 50%;
  font-size: 10px;
  place-items: center;
}

.news-layout.briefing-layout {
  grid-template-columns: minmax(0, 1.52fr) minmax(290px, 0.48fr);
  align-items: start;
  gap: 20px;
}

.news-layout.briefing-layout.is-aside-hidden {
  grid-template-columns: minmax(0, 1fr);
}

.news-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.news-section-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.news-section-actions .btn.is-active {
  color: var(--news-accent-ink);
  background: var(--news-accent-soft);
  border-color: color-mix(in srgb, var(--news-accent) 28%, var(--line));
}

.news-section-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--news-accent);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.11em;
}

.news-section-head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.6vw, 33px);
  font-weight: 600;
  line-height: 1.3;
}

.news-section-head p {
  max-width: 600px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.news-section-head .btn {
  flex: 0 0 auto;
  min-height: 39px;
  font-size: 12px;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.news-discovery-intro {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 16px;
  padding: 14px 16px;
  background: color-mix(in srgb, var(--news-highlight) 26%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--news-highlight) 52%, var(--line));
  border-radius: 14px;
}

.news-discovery-intro > span {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  color: var(--news-accent-ink);
  background: var(--news-highlight);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.news-discovery-intro .icon {
  width: 13px;
  height: 13px;
}

.news-discovery-intro p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.75;
}

.news-list-divider {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 2px 0;
  color: var(--muted);
  font-size: 11px;
}

.news-list-divider span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 650;
}

.news-list-divider .icon {
  width: 13px;
  height: 13px;
}

.news-list-divider small {
  font-size: 10px;
}

.news-card {
  position: relative;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 5px solid var(--news-card-accent);
  border-radius: 23px;
  box-shadow: var(--shadow-sm);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s var(--ease);
}

.news-card:hover {
  border-color: color-mix(in srgb, var(--news-card-accent) 34%, var(--line));
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.news-card.is-read {
  background: color-mix(in srgb, var(--news-accent-soft) 34%, var(--surface));
  border-top-color: color-mix(in srgb, var(--news-card-accent) 58%, #d6d8d1);
}

.news-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.news-rank {
  color: var(--news-accent);
  font-family: Georgia, serif;
  font-size: 24px;
  line-height: 1;
}

.news-topic {
  padding: 5px 9px;
  color: var(--news-accent-ink);
  background: var(--news-accent-soft);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
}

.news-topic.is-community {
  color: #765012;
  background: #fae8b5;
}

.news-card.is-community {
  --news-card-accent: #d7a848;
}

.news-source {
  color: var(--muted);
  font-size: 12px;
}

.news-stake {
  margin-left: auto;
  color: var(--news-accent);
  font-size: 11px;
  font-weight: 650;
}

.news-heading {
  margin: 14px 0 10px;
}

.news-card h3,
.news-heading h3 {
  max-width: 790px;
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(20px, 2.1vw, 26px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.news-title-zh {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 550;
  line-height: 1.7;
}

.news-title-zh span {
  flex: 0 0 auto;
  padding: 2px 6px;
  color: var(--news-accent);
  background: var(--news-accent-soft);
  border-radius: 5px;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.news-translation-pending {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.news-translation-pending::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  content: "";
  background: var(--news-card-accent);
  border-radius: 50%;
  animation: translationPulse 1.1s ease-in-out infinite;
}

.news-translation-pending.is-error::before {
  animation: none;
  opacity: 0.55;
}

@keyframes translationPulse {
  50% {
    opacity: 0.28;
    transform: scale(0.72);
  }
}

.news-summary {
  margin: 12px 0 0;
  padding: 14px 16px;
  background: color-mix(in srgb, var(--news-accent-soft) 44%, var(--surface));
  border-radius: 11px;
}

.news-summary > span {
  display: block;
  margin-bottom: 4px;
  color: var(--news-accent);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.news-summary p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.8;
}

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

.news-summary-head > span {
  color: var(--news-accent);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.news-summary-head small {
  color: var(--muted);
  font-size: 10px;
}

.news-summary-main {
  color: var(--ink) !important;
  font-size: 14px !important;
  font-weight: 550;
  line-height: 1.85 !important;
}

.news-summary-main p {
  margin: 0 0 11px;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.news-summary-main p:last-child {
  margin-bottom: 0;
}

.news-summary-main.is-original {
  color: var(--ink-soft) !important;
}

.news-original-summary {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px dashed color-mix(in srgb, var(--news-card-accent) 22%, var(--line));
}

.news-original-summary summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
}

.news-original-summary p {
  margin-top: 7px;
  color: var(--muted) !important;
  font-size: 12px !important;
  line-height: 1.7 !important;
}

.news-original-copy p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.news-original-copy p + p {
  margin-top: 8px;
}

.news-summary-pending {
  display: block;
  margin-top: 7px;
  color: #9a6a18;
  font-size: 10px;
}

.news-summary-zh {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed color-mix(in srgb, var(--news-card-accent) 24%, var(--line));
}

.news-summary-zh b {
  display: block;
  margin-bottom: 4px;
  color: var(--news-accent);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.news-summary-zh p {
  color: var(--ink);
  font-size: 13px;
  font-weight: 520;
}

.resource-brief {
  margin: 14px 0 0;
  padding: 15px;
  background: color-mix(in srgb, #fae8b5 28%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--news-card-accent) 22%, var(--line));
  border-radius: 14px;
}

.resource-brief-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.resource-brief-head > span {
  padding: 4px 8px;
  color: #765012;
  background: #fae8b5;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.resource-brief-head > b {
  color: var(--ink);
  font-size: 12px;
  white-space: nowrap;
}

.resource-brief-head > .resource-meta {
  margin-left: auto;
}

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

.resource-grid > section {
  padding: 12px 13px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(118, 80, 18, 0.08);
  border-radius: 10px;
}

.resource-grid > .resource-main {
  grid-column: 1 / -1;
}

.resource-grid > section > span {
  display: block;
  margin-bottom: 5px;
  color: #8b641b;
  font-size: 10px;
  font-weight: 750;
}

.resource-grid > section > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.78;
}

.resource-grid .resource-lead {
  margin-bottom: 9px;
  color: var(--ink);
  font-weight: 600;
}

.resource-copy p {
  margin: 0 0 9px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.8;
}

.resource-copy p:last-child {
  margin-bottom: 0;
}

.resource-grid > .resource-start {
  grid-column: 1 / -1;
  background: #f3f8e9;
  border-color: rgba(94, 121, 48, 0.14);
}

.resource-grid > .resource-start > span {
  color: #506b27;
}

.resource-meta {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
  text-align: right;
}

.history-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 11px;
  padding: 10px 13px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 11px;
}

.history-note .icon {
  width: 13px;
  height: 13px;
  color: var(--news-accent);
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-card {
  padding: 20px 21px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--news-card-accent);
  border-radius: 17px;
  box-shadow: var(--shadow-sm);
}

.history-card.is-community {
  border-left-color: #d7a848;
}

.history-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 10px;
  color: var(--muted);
  font-size: 10px;
}

.history-date {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.history-date .icon {
  width: 12px;
  height: 12px;
}

.history-state {
  margin-left: auto;
  color: var(--news-accent);
  font-weight: 700;
}

.history-card > h3 {
  margin: 11px 0 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.55;
}

.history-summary,
.history-judgment {
  margin-top: 11px;
  padding: 11px 13px;
  background: var(--surface-soft);
  border-radius: 9px;
}

.history-summary > span,
.history-judgment > span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.06em;
}

.history-summary p,
.history-judgment p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.75;
}

.history-copy p + p {
  margin-top: 8px;
}

.history-judgment {
  background: var(--lime-soft);
  border: 1px solid color-mix(in srgb, var(--lime) 44%, var(--line));
}

.history-judgment > span {
  color: var(--forest-3);
}

.history-judgment p {
  color: var(--ink);
}

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

.history-explain > div {
  padding: 10px 12px;
  background: #fbf7ec;
  border-radius: 8px;
}

.history-explain span {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.history-explain p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.65;
}

.history-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.history-actions .news-open {
  margin-right: auto;
}

.news-note-context {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
  padding: 16px 18px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.news-note-context > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.news-note-context strong {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.55;
}

.news-note-context small {
  color: var(--muted);
  font-size: 12px;
}

.news-note-context a {
  color: var(--news-accent);
  font-weight: 650;
}

.translation-sheet {
  padding: 3px;
}

.translation-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.translation-meta span + span::before {
  margin-right: 8px;
  content: "·";
}

.translation-sheet > h3 {
  max-width: 780px;
  margin: 13px 0 19px;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 600;
  line-height: 1.45;
}

.translation-block {
  padding: 16px 18px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.translation-block.primary {
  color: var(--forest);
  background: var(--lime-soft);
  border-color: color-mix(in srgb, var(--lime) 34%, var(--line));
}

.translation-block > span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.translation-block.primary > span {
  color: var(--forest);
  opacity: 0.58;
}

.translation-block strong {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.65;
}

.translation-block p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.8;
}

.translation-block p + p {
  margin-top: 9px;
}

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

.translation-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 15px;
  padding: 12px 14px;
  color: var(--muted);
  background: rgba(24, 37, 31, 0.035);
  border-radius: 11px;
}

.translation-note .icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--news-accent);
}

.translation-note p {
  margin: 0;
  font-size: 11px;
  line-height: 1.7;
}

.news-explainer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin-top: 17px;
  overflow: hidden;
  background: var(--surface-soft);
  border: 1px solid rgba(24, 37, 31, 0.06);
  border-radius: 14px;
}

.news-explainer > div {
  padding: 15px 16px;
}

.news-explainer > div + div {
  border-left: 1px solid var(--line);
}

.news-explainer span {
  display: block;
  margin-bottom: 5px;
  color: var(--news-accent);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.05em;
}

.news-explainer p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.75;
}

.news-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.news-source-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 13px;
}

.news-open {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--news-accent);
  font-size: 12px;
  font-weight: 650;
}

.news-open:hover {
  text-decoration: underline;
}

.news-open .icon {
  width: 14px;
  height: 14px;
}

.news-translate-open {
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.news-translate-open .icon {
  width: 13px;
  height: 13px;
}

.news-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.news-card .read-toggle {
  min-height: 39px;
  padding: 0 14px;
  color: #fff;
  background: var(--news-accent-ink);
  border: 0;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
}

.news-card .read-toggle:hover {
  filter: brightness(1.08);
}

.news-card .read-toggle.is-read {
  color: var(--news-accent-ink);
  background: var(--news-accent-soft);
}

.news-card .read-toggle .icon {
  width: 14px;
  height: 14px;
}

.news-card .mini-action {
  min-height: 39px;
  padding: 0 12px;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-size: 12px;
}

.news-card .mini-action:hover {
  background: var(--surface-soft);
}

.news-card .mini-action .icon {
  width: 13px;
  height: 13px;
}

.news-skeleton {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.news-skeleton span {
  display: block;
  min-height: 218px;
  background: linear-gradient(
    105deg,
    var(--surface) 20%,
    var(--surface-soft) 38%,
    var(--surface) 56%
  );
  background-size: 220% 100%;
  border: 1px solid var(--line);
  border-radius: 23px;
  animation: newsSkeleton 1.25s linear infinite;
  animation-delay: calc(var(--i) * 0.08s);
}

@keyframes newsSkeleton {
  to {
    background-position-x: -220%;
  }
}

.news-empty {
  padding: 32px;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
  text-align: center;
}

.news-empty strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 20px;
}

.news-empty p {
  margin: 8px 0 17px;
  font-size: 13px;
}

.news-empty > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.my-notes {
  margin-top: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.my-notes summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 19px;
  cursor: pointer;
  list-style: none;
}

.my-notes summary::-webkit-details-marker {
  display: none;
}

.my-notes summary > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.my-notes summary .icon {
  width: 15px;
  height: 15px;
  color: var(--news-accent);
}

.my-notes summary small {
  color: var(--muted);
  font-size: 11px;
}

.my-notes-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 0 18px 18px;
}

.my-note-row p b {
  color: var(--ink);
  font-weight: 650;
}

.my-note-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.my-note-row > div:first-child {
  min-width: 0;
}

.my-note-row span {
  color: var(--muted);
  font-size: 10px;
}

.my-note-row strong {
  display: block;
  margin: 4px 0;
  font-size: 13px;
}

.my-note-row p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.7;
}

.my-note-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 4px;
}

.my-note-actions .mini-action {
  min-height: 29px;
  padding: 0 7px;
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-size: 11px;
}

.my-note-actions .mini-action:hover {
  background: var(--surface-soft);
}

.news-action-card,
.news-question-card {
  position: relative;
  padding: 23px;
  border-radius: 20px;
}

.news-panel-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  place-items: center;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.news-panel-close .icon {
  width: 14px;
  height: 14px;
}

.news-action-card .news-panel-close {
  color: rgba(255, 253, 248, 0.62);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.1);
}

.news-action-card .news-panel-close:hover {
  color: #fffdf8;
  background: rgba(255, 255, 255, 0.14);
}

.news-question-card .news-panel-close {
  color: var(--muted);
  background: var(--surface-soft);
  border-color: var(--line);
}

.news-question-card .news-panel-close:hover {
  color: var(--ink);
  background: var(--paper-deep);
}

.news-action-card {
  color: #fffdf8;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--news-accent) 68%, transparent), transparent 42%),
    var(--news-accent-ink);
}

.news-action-card .news-section-kicker {
  color: var(--news-highlight);
}

.news-action-card h3,
.news-question-card h3 {
  margin: 6px 0 9px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
}

.news-action-card > p,
.news-question-card > p {
  margin: 0;
  color: rgba(255, 253, 248, 0.7);
  font-size: 13px;
  line-height: 1.75;
}

.news-read-progress {
  margin: 19px 0 17px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
}

.news-read-progress > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}

.news-read-progress strong {
  color: var(--news-highlight);
  font-family: Georgia, serif;
  font-size: 27px;
  font-weight: 400;
}

.news-read-progress span {
  color: rgba(255, 253, 248, 0.65);
  font-size: 11px;
}

.news-progress-track {
  height: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.news-progress-track span {
  display: block;
  height: 100%;
  background: var(--news-highlight);
  border-radius: inherit;
  transition: width 0.5s var(--ease);
}

.news-action-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.news-action-list span {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: rgba(255, 253, 248, 0.74);
  font-size: 12px;
  line-height: 1.6;
}

.news-action-list .icon {
  width: 13px;
  height: 13px;
  margin-top: 2px;
  color: var(--news-highlight);
}

.news-question-card {
  background: var(--surface);
  border: 1px solid var(--line);
}

.news-question-card .news-section-kicker {
  color: var(--news-accent);
}

.news-question-card h3 {
  color: var(--ink);
  font-size: 20px;
}

.news-question-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 15px 0;
}

.news-question-list span {
  padding: 10px 12px;
  color: var(--ink-soft);
  background: var(--surface-soft);
  border-radius: 9px;
  font-size: 12px;
}

.news-question-card > p {
  color: var(--muted);
}

.insights-page.news-theme-careers .news-tabs {
  margin-top: 0;
}

.career-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 13px;
  padding: 13px 17px;
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid var(--line);
  border-radius: 15px;
}

.career-toolbar > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.career-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.career-toolbar .btn.is-active {
  color: var(--surface);
  background: var(--forest);
  border-color: var(--forest);
}

.career-toolbar > .career-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.job-history {
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}

.job-history-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.job-history-head h2 {
  margin: 6px 0 7px;
  font-family: var(--font-serif);
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.25;
}

.job-history-head p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

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

.job-history-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(200, 242, 119, 0.16), transparent 42%),
    var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.job-history-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
}

.job-history-card-top b {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  color: var(--forest);
  font-size: 10px;
  font-weight: 650;
}

.job-history-card-top .icon {
  width: 12px;
  height: 12px;
}

.job-history-card h3 {
  margin: 14px 0 3px;
  font-family: var(--font-serif);
  font-size: 23px;
  line-height: 1.35;
}

.job-history-en {
  margin: 0 0 12px;
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 600;
}

.job-history-summary {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.75;
}

.job-history-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 15px;
}

.job-history-facts > div {
  padding: 10px 11px;
  background: rgba(255, 255, 255, 0.56);
  border-radius: 10px;
}

.job-history-facts span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.job-history-facts strong {
  display: block;
  color: var(--ink);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.55;
}

.job-history-companies {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 11px;
}

.job-history-companies span {
  padding: 4px 7px;
  color: var(--forest);
  background: var(--lime-soft);
  border-radius: 6px;
  font-size: 9px;
  font-weight: 650;
}

.job-history-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 17px;
}

.job-history-actions .news-open {
  font-size: 11px;
}

.job-history-empty {
  margin-top: 0;
}

.insights-page.news-theme-careers .job-hero {
  margin-top: 0;
  gap: 24px;
  padding: 38px;
  background:
    radial-gradient(circle at 95% 7%, rgba(200, 242, 119, 0.2), transparent 33%),
    linear-gradient(128deg, #332b1c, #182d25);
  border-radius: 30px;
}

.insights-page.news-theme-careers .job-copy h1 {
  font-size: clamp(34px, 4.1vw, 52px);
}

.insights-page.news-theme-careers .job-copy > p {
  max-width: 740px;
  color: rgba(248, 243, 232, 0.76);
  font-size: 15px;
  line-height: 1.85;
}

.insights-page.news-theme-careers .job-side-note h3 {
  font-size: clamp(21px, 2.2vw, 27px);
  line-height: 1.45;
}

.insights-page.news-theme-careers .job-side-note p {
  color: rgba(248, 243, 232, 0.68);
  font-size: 14px;
  line-height: 1.75;
}

.insights-page.news-theme-careers .job-links {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
}

.insights-page.news-theme-careers .job-links > span {
  width: 100%;
  color: rgba(248, 243, 232, 0.42);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.insights-page.news-theme-careers .job-links a {
  flex: 0 0 auto;
  color: var(--news-highlight);
  background: rgba(255, 255, 255, 0.045);
  font-size: 11px;
  white-space: nowrap;
}

.insights-page.news-theme-careers .job-details,
.insights-page.news-theme-careers .job-library {
  padding: 28px;
}

.insights-page.news-theme-careers .job-details > h2 {
  margin: 0 0 22px;
  font-family: var(--font-serif);
  font-size: clamp(25px, 2.8vw, 34px);
  font-weight: 600;
}

.insights-page.news-theme-careers .job-section h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.insights-page.news-theme-careers .job-bullet {
  margin: 3px 0;
  padding: 6px 10px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
}

.insights-page.news-theme-careers .skill-check {
  min-height: 38px;
  padding: 0 12px;
  font-size: 12px;
}

.insights-page.news-theme-careers .review-result {
  font-size: 13px;
  line-height: 1.75;
}

.insights-page.news-theme-careers .job-library h2 {
  font-size: 23px;
}

.insights-page.news-theme-careers .job-mini-copy strong {
  font-size: 13px;
}

.insights-page.news-theme-careers .job-mini-copy small {
  font-size: 10px;
}

.news-tab:focus-visible,
.news-refresh:focus-visible,
.news-refresh-fab:focus-visible,
.news-card .read-toggle:focus-visible,
.news-card .mini-action:focus-visible,
.news-open:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--news-accent) 40%, transparent);
  outline-offset: 2px;
}

@media (max-width: 1120px) {
  .news-hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 32px;
  }

  .news-source-card {
    width: min(100%, 520px);
  }

  .news-layout.briefing-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .news-layout .aside-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .news-hero {
    padding: 25px 22px;
    border-radius: 24px;
  }

  .news-hero h1 {
    font-size: 34px;
  }

  .news-hero-main > p {
    font-size: 14px;
  }

  .news-source-card {
    display: none;
  }

  .news-source-inline {
    display: block;
    margin-top: 14px;
    padding: 11px 13px;
    color: rgba(248, 243, 232, 0.74);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 12px;
  }

  .news-source-inline summary {
    cursor: pointer;
    font-size: 12px;
    font-weight: 650;
  }

  .news-source-inline > div {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding-top: 10px;
  }

  .news-source-inline a {
    color: var(--news-highlight);
    font-size: 12px;
  }

  .news-source-inline small {
    display: block;
    margin-top: 9px;
    color: rgba(248, 243, 232, 0.54);
    font-size: 10px;
    line-height: 1.65;
  }

  .news-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    margin-top: 13px;
    overflow: visible;
  }

  .news-tab {
    min-height: 40px;
    justify-content: flex-start;
    padding: 0 12px;
    font-size: 12px;
  }

  .news-howto {
    gap: 8px 13px;
    padding: 12px 13px;
  }

  .news-section-head {
    flex-direction: column;
    gap: 11px;
  }

  .news-section-head .btn {
    width: 100%;
  }

  .news-section-actions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-card {
    padding: 21px 18px;
    border-radius: 19px;
  }

  .news-refresh-fab {
    right: auto;
    bottom: calc(91px + env(safe-area-inset-bottom));
    left: 16px;
  }

  .news-discovery-intro {
    flex-direction: column;
    gap: 8px;
  }

  .news-stake {
    width: 100%;
    margin-left: 34px;
  }

  .news-card h3 {
    font-size: 21px;
  }

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

  .resource-grid > .resource-main {
    grid-column: auto;
  }

  .resource-brief-head {
    flex-wrap: wrap;
  }

  .resource-brief-head > .resource-meta {
    width: 100%;
    margin-left: 0;
    text-align: left;
  }

  .history-card {
    padding: 18px 16px;
  }

  .history-card > h3 {
    font-size: 18px;
  }

  .history-state {
    width: 100%;
    margin-left: 0;
  }

  .history-explain {
    grid-template-columns: minmax(0, 1fr);
  }

  .history-actions .news-open {
    width: 100%;
    margin-right: 0;
  }

  .news-explainer {
    grid-template-columns: minmax(0, 1fr);
  }

  .news-explainer > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .news-card-foot {
    align-items: stretch;
    flex-direction: column;
  }

  .news-card-actions {
    justify-content: stretch;
  }

  .news-card-actions > * {
    flex: 1;
  }

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

  .news-layout .aside-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .news-action-card,
  .news-question-card {
    padding: 20px;
  }

  .my-note-row {
    flex-direction: column;
  }

  .my-note-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .insights-page.news-theme-careers .job-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 25px 21px;
    border-radius: 23px;
  }

  .career-toolbar,
  .job-history-head {
    align-items: stretch;
    flex-direction: column;
  }

  .career-toolbar > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .career-toolbar .btn,
  .job-history-head .btn {
    width: 100%;
  }

  .job-read-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .job-read-footer .btn {
    width: 100%;
  }

  .job-links {
    grid-column: 1 / -1;
    align-items: stretch;
  }

  .job-links a {
    flex: 1 1 auto;
    white-space: normal;
  }

  .job-copy > .en {
    font-size: 17px;
  }

  .job-history {
    padding: 21px 18px;
    border-radius: 20px;
  }

  .job-history-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .job-history-card {
    padding: 18px 16px;
  }

  .job-history-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .insights-page.news-theme-careers .job-details,
  .insights-page.news-theme-careers .job-library {
    padding: 21px 18px;
  }

  .job-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .job-fact {
    min-height: 0;
  }
}
