/* 调参日记 2.0 · 现代青绿工作台（自定义下拉筛选 + 60fps 动效） */
:root {
  --stage: #DAF2F3;
  --stage-2: #E8F7F8;
  --teal: #009A93;
  --teal-dark: #007B75;
  --teal-soft: #E1F5F4;
  --bar: #C9EFEF;
  --bar-hover: #AEE6E6;
  --yellow: #F9DA5E;
  --yellow-soft: #FEF6CF;
  --ink: #13202A;
  --ink-2: #576B78;
  --ink-3: #8A9BA6;
  --line: #EBF1F2;
  --white: #FFFFFF;
  --danger: #DC2626;
  --danger-bg: #FEE2E2;
  --spring: cubic-bezier(0.22, 1, 0.36, 1);
  --bounce: cubic-bezier(0.34, 1.4, 0.64, 1);
}

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

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Helvetica Neue", "Noto Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
  background: radial-gradient(circle at 12% 10%, #EBFAFA 0%, var(--stage) 52%, #CDEBED 100%);
}

button, input, select, textarea { font-family: inherit; color: inherit; }
button { cursor: pointer; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Outer Mint Stage & Rounded Frame */
.stage {
  min-height: 100vh;
  padding: 22px;
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.app-frame {
  width: 100%;
  max-width: 1380px;
  min-height: calc(100vh - 44px);
  background: var(--teal);
  border-radius: 28px;
  padding: 10px 10px 10px 0;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  box-shadow: 0 28px 70px rgba(0, 88, 86, 0.14), 0 4px 16px rgba(0, 88, 86, 0.06);
  position: relative;
  overflow: hidden;
  animation: frameIn 0.52s var(--spring) both;
}

@keyframes frameIn {
  from { opacity: 0; transform: translateY(14px) scale(0.992); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ==================== LEFT TEAL SIDEBAR ==================== */
.sidebar {
  background: var(--teal);
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  padding: 26px 0 18px 18px;
  position: relative;
  z-index: 20;
  user-select: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: #FFFFFF;
  padding: 4px 16px 26px 10px;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  padding: 2px;
  box-shadow: 0 6px 14px rgba(0, 66, 63, 0.22);
  transition: transform 0.35s var(--bounce);
}
.brand:hover .brand-logo { transform: rotate(-6deg) scale(1.06); }

.brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Nav with Signature Liquid White Inverted-Corner Cutout */
.side-nav {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 2px;
}

.nav-cutout {
  position: absolute;
  left: 0;
  right: 0;
  height: 48px;
  background: var(--white);
  border-radius: 24px 0 0 24px;
  transform: translateY(0);
  transition: transform 0.42s var(--spring);
  pointer-events: none;
  z-index: 0;
}

.nav-cutout::before,
.nav-cutout::after {
  content: "";
  position: absolute;
  right: 0;
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.nav-cutout::before {
  top: -20px;
  background: radial-gradient(circle at 0 0, transparent 20px, var(--white) 20.5px);
}

.nav-cutout::after {
  bottom: -20px;
  background: radial-gradient(circle at 0 20px, transparent 20px, var(--white) 20.5px);
}

.snav-item {
  position: relative;
  z-index: 1;
  height: 48px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 20px 0 18px;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  border-radius: 24px 0 0 24px;
  transition: color 0.25s ease, transform 0.2s var(--spring);
}

.snav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.3s var(--bounce);
}

.snav-item:hover:not(.active) {
  color: #FFFFFF;
  transform: translateX(3px);
}

.snav-item.active {
  color: var(--ink);
  font-weight: 700;
}

.snav-item.active svg {
  color: var(--teal);
  transform: scale(1.06);
}

.nav-cnt {
  margin-left: auto;
  min-width: 22px;
  height: 20px;
  line-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  transition: background 0.25s ease, color 0.25s ease;
}

.snav-item.active .nav-cnt {
  background: var(--teal-soft);
  color: var(--teal-dark);
}

/* Clean Minimalist Bottom Promo Card (No Cat) */
.side-promo {
  margin-top: auto;
  padding: 16px 18px 4px 2px;
}

.promo-card {
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  padding: 16px;
  backdrop-filter: blur(8px);
}

.promo-t {
  font-size: 14.5px;
  font-weight: 700;
  color: #FFFFFF;
}

.promo-d {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
  margin: 4px 0 14px;
  line-height: 1.45;
}

.promo-btn {
  width: 100%;
  height: 36px;
}

/* ==================== WORKSPACE SHELL ==================== */
.workspace {
  background: var(--white);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.topbar {
  height: 70px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.mob-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 12px;
  background: #F4F8F8;
  align-items: center;
  justify-content: center;
}
.mob-menu-btn svg { width: 20px; height: 20px; color: var(--ink); }

.global-search {
  flex: 1;
  max-width: 460px;
  height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 14px;
  background: #F6FAFA;
  border: 1.5px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.25s var(--spring);
}

.global-search:focus-within {
  background: #FFFFFF;
  border-color: rgba(0, 154, 147, 0.36);
  box-shadow: 0 8px 22px rgba(0, 154, 147, 0.08);
}

.gs-ic { width: 16px; height: 16px; color: var(--ink-3); flex-shrink: 0; }
.global-search input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  min-width: 0;
}
.global-search input::placeholder { color: var(--ink-3); }

.gs-kbd {
  font-size: 11px;
  color: var(--ink-3);
  border: 1px solid #DFE7E9;
  background: #FFFFFF;
  border-radius: 6px;
  padding: 1px 6px;
}

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

.sync-dot {
  font-size: 12px;
  font-weight: 600;
  color: var(--teal-dark);
  background: var(--teal-soft);
  padding: 5px 11px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.sync-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

.icon-pill {
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: #FFFFFF;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.2s ease, transform 0.2s var(--spring);
}
.icon-pill svg { width: 15px; height: 15px; color: var(--ink-2); }
.icon-pill:hover { border-color: var(--teal); transform: translateY(-1px); }

.qr-chip {
  height: 36px;
  padding: 3px 12px 3px 4px;
  border: 1px solid var(--line);
  background: #FFFFFF;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.qr-chip img { width: 28px; height: 28px; border-radius: 50%; }
.qr-chip:hover { border-color: var(--teal); box-shadow: 0 4px 12px rgba(0, 154, 147, 0.12); }

/* ==================== MAIN CANVAS & VIEW TRANSITIONS ==================== */
.canvas {
  flex: 1;
  padding: 26px 32px 24px;
  overflow-y: auto;
}

.view {
  display: none;
  opacity: 0;
  transform: translateY(10px);
}
.view.active {
  display: block;
  animation: viewEnter 0.34s var(--spring) forwards;
}

@keyframes viewEnter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.page-title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.page-sub {
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 4px;
}

/* Buttons */
.btn-teal {
  height: 40px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  background: var(--teal);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 18px rgba(0, 154, 147, 0.22);
  transition: transform 0.22s var(--spring), background 0.2s ease, box-shadow 0.22s ease;
}
.btn-teal:hover { background: var(--teal-dark); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(0, 154, 147, 0.28); }
.btn-teal:active { transform: scale(0.97); }

.btn-yellow {
  height: 38px;
  padding: 0 22px;
  border: none;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 8px 18px rgba(173, 134, 0, 0.16);
  transition: transform 0.22s var(--bounce), filter 0.2s ease;
}
.btn-yellow:hover { transform: translateY(-2px); filter: brightness(1.03); }
.btn-yellow:active { transform: scale(0.96); }

.btn-ghost {
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.btn-ghost:hover { border-color: var(--teal); background: #F6FAFA; }

/* ==================== CUSTOM DROPDOWN FILTER BAR (MINI-PROGRAM PARITY) ==================== */
.dd-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  position: relative;
  z-index: 35;
}

.dd-wrap {
  position: relative;
}

.dd-trigger {
  height: 34px;
  padding: 0 12px 0 13px;
  border: 1px solid var(--line);
  background: #FFFFFF;
  border-radius: 11px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.dd-trigger:hover {
  border-color: rgba(0, 154, 147, 0.42);
  color: var(--ink);
}

.dd-trigger.has-val {
  background: var(--teal-soft);
  border-color: rgba(0, 154, 147, 0.22);
  color: var(--teal-dark);
  font-weight: 650;
}

.dd-wrap.open .dd-trigger {
  border-color: var(--teal);
  color: var(--teal-dark);
  box-shadow: 0 4px 14px rgba(0, 154, 147, 0.12);
}

.dd-chev {
  width: 13px;
  height: 13px;
  opacity: 0.65;
  transition: transform 0.26s var(--spring);
  flex-shrink: 0;
}

.dd-wrap.open .dd-chev {
  transform: rotate(180deg);
  opacity: 1;
}

.dd-menu {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  min-width: 158px;
  max-height: 310px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  border: 1px solid #E3EDED;
  border-radius: 15px;
  padding: 6px;
  box-shadow: 0 16px 38px rgba(0, 62, 61, 0.14), 0 2px 8px rgba(0, 62, 61, 0.05);
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  transform-origin: top left;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.26s var(--spring);
  z-index: 60;
}

.dd-menu.align-r {
  left: auto;
  right: 0;
  transform-origin: top right;
}

.dd-menu.wide {
  min-width: 248px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.dd-wrap.open .dd-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.dd-sec {
  font-size: 11px;
  font-weight: 650;
  color: var(--ink-3);
  padding: 6px 10px 4px;
  grid-column: 1 / -1;
}

.dd-divider {
  height: 1px;
  background: var(--line);
  margin: 5px 6px;
  grid-column: 1 / -1;
}

.dd-opt {
  width: 100%;
  border: none;
  background: transparent;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}

.dd-opt:hover {
  background: #F3FAFA;
}

.dd-opt.on {
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-weight: 700;
}

.dd-chk {
  width: 14px;
  height: 14px;
  color: var(--teal);
  opacity: 0;
  flex-shrink: 0;
}
.dd-opt.on .dd-chk { opacity: 1; }

.dd-reset {
  height: 34px;
  padding: 0 11px;
  border: none;
  border-radius: 11px;
  background: transparent;
  color: var(--teal);
  font-size: 12.5px;
  font-weight: 600;
  transition: background 0.18s ease;
}
.dd-reset:hover { background: var(--teal-soft); }

/* Secondary ribbons (Papers / Help / Confs) */
.ribbon {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.f-chip {
  height: 32px;
  padding: 0 13px;
  border: 1px solid var(--line);
  background: #FFFFFF;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: all 0.2s var(--spring);
}
.f-chip:hover { border-color: rgba(0, 154, 147, 0.4); color: var(--ink); }
.f-chip.on {
  background: var(--teal-soft);
  border-color: transparent;
  color: var(--teal-dark);
  font-weight: 700;
}

.f-reset {
  border: none;
  background: transparent;
  color: var(--teal);
  font-size: 12.5px;
  font-weight: 600;
  padding: 0 6px;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  color: var(--ink-2);
}
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
}
.dot-y { background: var(--yellow); }
.dot-c { background: var(--bar); }

/* ==================== SIGNATURE INTERACTIVE BAR CHART ==================== */
.bar-panel {
  position: relative;
  padding: 50px 8px 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.bar-tooltip {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
  transition: left 0.38s var(--spring), opacity 0.2s ease;
  white-space: nowrap;
}
.bt-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--teal);
  line-height: 1.2;
}
.bt-sub {
  font-size: 11.5px;
  color: var(--ink-3);
  margin-top: 2px;
}

.bar-chart {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: end;
  gap: 14px;
  height: 150px;
  padding: 0 8px;
}

.bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 10px;
  border: none;
  background: transparent;
  padding: 0;
  outline: none;
}

.bar-track {
  width: 100%;
  max-width: 26px;
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.bar-fill {
  width: 100%;
  height: var(--h, 40%);
  min-height: 14px;
  border-radius: 9px;
  background: var(--bar);
  transform-origin: bottom center;
  animation: barRise 0.6s var(--spring) backwards;
  animation-delay: calc(var(--i, 0) * 30ms);
  transition: background-color 0.24s ease, transform 0.28s var(--bounce), box-shadow 0.24s ease;
}

@keyframes barRise {
  from { transform: scaleY(0.08); opacity: 0.2; }
  to { transform: scaleY(1); opacity: 1; }
}

.bar-col:hover .bar-fill {
  background: var(--bar-hover);
  transform: scaleY(1.04);
}

.bar-col.active .bar-fill {
  background: var(--yellow);
  box-shadow: 0 8px 18px rgba(249, 218, 94, 0.42);
  transform: scaleY(1.03);
}

.bar-lbl {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.bar-col:hover .bar-lbl,
.bar-col.active .bar-lbl {
  color: var(--ink);
  font-weight: 700;
}

/* ==================== LOWER SPLIT WORKSPACE ==================== */
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(260px, 0.85fr);
  gap: 26px;
  align-items: start;
}

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

.col-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.col-meta {
  font-size: 12.5px;
  color: var(--ink-3);
}

/* Clean Journal Rows */
.j-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.j-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #FFFFFF;
  border: 1px solid transparent;
  cursor: pointer;
  animation: rowIn 0.32s var(--spring) backwards;
  animation-delay: calc(var(--idx, 0) * 18ms);
  transition: transform 0.24s var(--spring), background 0.2s ease, border-color 0.2s ease, box-shadow 0.24s ease;
}

@keyframes rowIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.j-row:hover {
  background: #F7FCFC;
  border-color: #E0F0F0;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 110, 108, 0.06);
}
.j-row:active { transform: scale(0.994); }

.j-thumb {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
  flex-shrink: 0;
  position: relative;
}
.j-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.j-info { min-width: 0; }
.j-name {
  font-size: 14.5px;
  font-weight: 650;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 7px;
}
.j-name-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.j-sub {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.j-badges {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.pill-mint { background: var(--teal-soft); color: var(--teal-dark); }
.pill-yellow { background: var(--yellow-soft); color: #8A6500; }
.pill-gray { background: #F3F6F7; color: var(--ink-2); }
.pill-red { background: var(--danger-bg); color: var(--danger); }

.j-if-box {
  text-align: right;
  min-width: 68px;
}
.j-if {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
}
.j-yr {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--teal);
  margin-top: 2px;
}

.cmp-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #FFFFFF;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  transition: all 0.2s var(--bounce);
}
.cmp-btn:hover { border-color: var(--teal); color: var(--teal); transform: scale(1.08); }
.cmp-btn.on { background: var(--teal); border-color: var(--teal); color: #FFFFFF; }

.load-more-wrap {
  padding: 16px 0 4px;
  text-align: center;
}

/* ==================== RIGHT SPOTLIGHT COLUMN ==================== */
.spot-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.spot-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(155deg, #E2F6F6 0%, #D4EFEF 100%);
  padding: 20px 20px 22px;
}

.spot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.spot-t { font-size: 16px; font-weight: 700; }
.spot-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--teal-dark);
}
.spot-tag.y { background: var(--yellow-soft); color: #8A6500; }

.spot-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.spot-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(8px);
  padding: 10px 12px;
  border-radius: 13px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s var(--spring), background 0.2s ease;
}
.spot-item:hover { background: #FFFFFF; transform: translateX(3px); }
.si-name { font-size: 13.5px; font-weight: 700; }
.si-date { font-size: 11.5px; color: var(--ink-2); }
.si-days { font-size: 12.5px; font-weight: 700; color: var(--teal-dark); white-space: nowrap; }

.spot-card .btn-yellow { position: relative; z-index: 1; }

.spot-deco {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 150px;
  height: 100px;
  pointer-events: none;
  opacity: 0.9;
}

.riser-card {
  border-radius: 22px;
  border: 1px solid var(--line);
  background: #FFFFFF;
  padding: 18px 20px;
}

.riser-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.riser-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.18s ease;
}
.riser-row:hover { background: #F6FAFA; }
.rr-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rr-val { font-size: 13px; font-weight: 700; color: var(--teal); white-space: nowrap; }
.rr-delta { font-size: 11px; color: #059669; margin-left: 4px; font-weight: 600; }

/* ==================== RECOMMEND / CONFS / PAPERS / HELP / COMPARE ==================== */
.rec-panel {
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  background: #FAFDFD;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.rec-panel:focus-within { border-color: rgba(0, 154, 147, 0.45); background: #FFFFFF; }

.rec-ta {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  line-height: 1.65;
  resize: vertical;
}

.rec-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.rec-chips { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.sample-lnk {
  border: none;
  background: transparent;
  color: var(--teal);
  font-size: 12.5px;
  font-weight: 600;
  padding: 0 6px;
}

.conf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 14px;
}

.conf-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: rowIn 0.32s var(--spring) backwards;
  animation-delay: calc(var(--idx, 0) * 18ms);
  transition: transform 0.24s var(--spring), border-color 0.2s ease, box-shadow 0.24s ease;
}
.conf-card:hover {
  transform: translateY(-3px);
  border-color: #C7E8E8;
  box-shadow: 0 12px 26px rgba(0, 110, 108, 0.08);
}
.cc-top { display: flex; align-items: center; justify-content: space-between; }
.cc-abbr { font-size: 17px; font-weight: 700; }
.cc-days { font-size: 13px; font-weight: 700; color: var(--teal); }
.cc-days.urgent { color: #D97706; }
.cc-full { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; min-height: 36px; }
.cc-foot { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--ink-3); padding-top: 8px; border-top: 1px solid var(--line); }
.cc-foot a { color: var(--teal); text-decoration: none; font-weight: 600; }

.paper-list, .help-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.p-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  background: #FFFFFF;
  cursor: pointer;
  animation: rowIn 0.32s var(--spring) backwards;
  animation-delay: calc(var(--idx, 0) * 20ms);
  transition: transform 0.22s var(--spring), border-color 0.2s ease, box-shadow 0.22s ease;
}
.p-card:hover { transform: translateY(-2px); border-color: #C7E8E8; box-shadow: 0 10px 24px rgba(0, 110, 108, 0.06); }
.p-title { font-size: 15px; font-weight: 700; line-height: 1.45; }
.p-meta { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; display: flex; gap: 10px; flex-wrap: wrap; }
.p-abs { font-size: 13px; color: var(--ink-2); line-height: 1.6; margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Compare Table */
.cmp-table-wrap {
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow-x: auto;
  background: #FFFFFF;
}
.cmp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.cmp-table th, .cmp-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.cmp-table th { background: #F7FCFC; font-weight: 700; color: var(--ink); }
.cmp-table td.k { color: var(--ink-2); font-weight: 600; width: 120px; background: #FAFDFD; }

/* Footer */
.ws-foot {
  margin-top: 34px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-3);
}
.wf-links { display: flex; gap: 14px; flex-wrap: wrap; }
.wf-links a { color: var(--ink-2); text-decoration: none; }
.wf-links a:hover { color: var(--teal); }

/* ==================== SLIDE-OVER DRAWER ==================== */
.drawer-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 33, 38, 0.28);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  z-index: 80;
}
.drawer-mask.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 12px;
  right: 12px;
  bottom: 12px;
  width: min(620px, calc(100vw - 24px));
  background: #FFFFFF;
  border-radius: 24px;
  box-shadow: -14px 0 48px rgba(0, 56, 55, 0.16);
  transform: translateX(calc(100% + 28px));
  transition: transform 0.4s var(--spring);
  z-index: 90;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.drawer.open { transform: translateX(0); }

.drawer-head {
  height: 62px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.drawer-title { font-size: 15.5px; font-weight: 700; }
.drawer-acts { display: flex; gap: 8px; }

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, border-color 0.18s ease;
}
.icon-btn svg { width: 16px; height: 16px; color: var(--ink-2); }
.icon-btn:hover { background: #F4F9F9; border-color: var(--teal); }

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 22px;
}

.dw-top {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.dw-cover {
  width: 72px;
  height: 96px;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 700;
  font-size: 14px;
}
.dw-cover img { width: 100%; height: 100%; object-fit: cover; }
.dw-name { font-size: 19px; font-weight: 700; line-height: 1.35; }
.dw-meta { font-size: 12.5px; color: var(--ink-2); margin-top: 6px; }
.dw-acts { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

.dw-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.dw-kpi {
  background: #F6FAFA;
  border-radius: 14px;
  padding: 12px;
}
.dw-kpi .k { font-size: 11.5px; color: var(--ink-2); }
.dw-kpi .v { font-size: 18px; font-weight: 700; margin-top: 4px; }
.dw-kpi .v.hi { color: var(--teal); }

.dw-chart {
  background: #FAFDFD;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 18px;
}
.dw-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.seg {
  display: inline-flex;
  background: #EDF4F4;
  border-radius: 999px;
  padding: 3px;
}
.seg button {
  border: none;
  background: transparent;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}
.seg button.on { background: #FFFFFF; color: var(--ink); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06); }

.chart-line-anim {
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: drawLine 0.85s var(--spring) forwards;
}
@keyframes drawLine { to { stroke-dashoffset: 0; } }

.rv-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
}
.rv-head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.rv-body { font-size: 13.5px; line-height: 1.65; color: #283845; white-space: pre-wrap; }

/* ==================== MODALS & TOAST ==================== */
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(15, 33, 38, 0.36);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 120;
}
.modal-bg.open { opacity: 1; pointer-events: auto; }

.modal-card {
  width: 100%;
  max-width: 360px;
  background: #FFFFFF;
  border-radius: 24px;
  padding: 26px 24px 22px;
  text-align: center;
  position: relative;
  transform: scale(0.94) translateY(10px);
  transition: transform 0.34s var(--spring);
  box-shadow: 0 24px 60px rgba(0, 56, 55, 0.22);
}
.modal-card.modal-wide { max-width: 640px; text-align: left; max-height: 86vh; overflow-y: auto; }
.modal-bg.open .modal-card { transform: scale(1) translateY(0); }

.modal-x {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: #F3F7F7;
  font-size: 19px;
  line-height: 32px;
  color: var(--ink-2);
}
.modal-t { font-size: 17px; font-weight: 700; }
.modal-d { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.qr-stage {
  width: 196px;
  height: 196px;
  margin: 18px auto 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qr-stage img { width: 100%; height: 100%; object-fit: contain; }
.qr-fb { font-size: 13px; color: var(--teal-dark); font-weight: 600; align-items: center; justify-content: center; }
.modal-foot { font-size: 12px; color: var(--ink-3); }
.lightbox-img { max-width: 92vw; max-height: 88vh; border-radius: 14px; }

.empty-box {
  padding: 44px 16px;
  text-align: center;
  color: var(--ink-3);
  font-size: 13.5px;
  border: 1px dashed var(--line);
  border-radius: 18px;
}

.skel {
  height: 66px;
  border-radius: 16px;
  background: linear-gradient(90deg, #F3F8F8 25%, #EAF3F3 50%, #F3F8F8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 16px);
  background: #13202A;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.28s var(--spring);
  z-index: 200;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.mob-backdrop { display: none; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1080px) {
  .split-grid { grid-template-columns: 1fr; }
  .spot-col { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .stage { padding: 0; background: #FFFFFF; }
  .app-frame { border-radius: 0; padding: 0; min-height: 100vh; grid-template-columns: 1fr; box-shadow: none; background: #FFFFFF; }
  .sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 248px;
    transform: translateX(-100%);
    transition: transform 0.34s var(--spring);
    z-index: 100;
  }
  .sidebar.open { transform: translateX(0); }
  .mob-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 33, 38, 0.34);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
    z-index: 95;
  }
  .mob-backdrop.open { opacity: 1; pointer-events: auto; }
  .mob-menu-btn { display: inline-flex; }
  .topbar { padding: 0 16px; height: 60px; }
  .canvas { padding: 18px 16px 24px; }
  .bar-chart { gap: 6px; height: 132px; overflow-x: auto; }
  .bar-lbl { font-size: 11px; }
  .spot-col { grid-template-columns: 1fr; }
  .j-row { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .j-badges, .cmp-btn { display: none; }
  .dw-kpis { grid-template-columns: repeat(2, 1fr); }
  .sync-dot, .gs-kbd { display: none; }
}
