/* 科创智析 v1.5 — 简约可信的数学学习空间 */

:root {
  --v15-ink: #1d2922;
  --v15-ink-2: #314139;
  --v15-muted: #6f776f;
  --v15-paper: #f4f0e7;
  --v15-paper-2: #faf8f2;
  --v15-surface: rgba(255, 254, 250, .92);
  --v15-line: #ded7c9;
  --v15-line-soft: #ebe6db;
  --v15-red: #923c34;
  --v15-red-dark: #712c28;
  --v15-red-soft: #f2e4df;
  --v15-jade: #356150;
  --v15-jade-dark: #26483c;
  --v15-jade-soft: #e3ece6;
  --v15-gold: #a57b38;
  --v15-gold-soft: #f2e8d2;
  --v15-shadow: 0 18px 50px rgba(38, 45, 39, .08);
  --v15-shadow-soft: 0 8px 28px rgba(38, 45, 39, .055);
  --v15-radius: 20px;
}

body.layout-v15 {
  color: var(--v15-ink);
  background:
    radial-gradient(circle at 83% 4%, rgba(165, 123, 56, .09), transparent 28rem),
    radial-gradient(circle at 4% 42%, rgba(53, 97, 80, .055), transparent 30rem),
    linear-gradient(180deg, #f8f5ee 0, var(--v15-paper) 42rem, #f3efe6 100%);
}

body.layout-v15::before {
  opacity: .5;
  background:
    radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(165, 123, 56, .08), transparent 18rem),
    linear-gradient(90deg, rgba(65, 75, 67, .018) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(rgba(65, 75, 67, .018) 1px, transparent 1px) 0 0 / 36px 36px;
}

body.layout-v15::after { opacity: .07; }

.layout-v15 .app-header {
  height: 72px;
  border-bottom-color: rgba(212, 188, 137, .25);
  background:
    radial-gradient(circle at 13% -120%, rgba(182, 142, 65, .2), transparent 38%),
    linear-gradient(110deg, #16251f, #1d3028 58%, #182820);
  box-shadow: 0 8px 28px rgba(21, 32, 26, .13);
}

.layout-v15 .app-header::after {
  opacity: .65;
  background: linear-gradient(90deg, transparent, rgba(197, 158, 83, .66), transparent);
}

.layout-v15 .suite-header-inner {
  max-width: 1640px;
  grid-template-columns: 34px 220px minmax(300px, 620px) auto auto 112px;
  gap: 16px;
  padding: 0 24px;
}

.sidebar-toggle {
  width: 34px;
  height: 34px;
  display: none;
  place-content: center;
  gap: 4px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 10px;
  background: rgba(255, 255, 255, .05);
}

.sidebar-toggle i {
  display: block;
  width: 14px;
  height: 1.5px;
  border-radius: 9px;
  background: #e8dfcb;
}

.layout-v15 .brand { gap: 11px; }

.layout-v15 .brand-mark {
  width: 38px;
  height: 38px;
  border-color: rgba(202, 163, 91, .68);
  border-radius: 12px 12px 12px 4px;
  color: #fff9eb;
  background: linear-gradient(145deg, #aa4c40, #783029);
  box-shadow: 0 8px 18px rgba(101, 38, 32, .28), inset 0 1px rgba(255, 255, 255, .18);
}

.layout-v15 .brand b { font-size: 15px; letter-spacing: .05em; }
.layout-v15 .brand small { margin-top: 3px; color: #9fafa5; font-size: 9px; letter-spacing: .04em; }

.layout-v15 .header-search {
  height: 42px;
  border-color: rgba(225, 207, 169, .16);
  border-radius: 13px;
  background: rgba(255, 255, 255, .055);
}

.layout-v15 .header-search:focus-within {
  border-color: rgba(210, 170, 94, .5);
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 0 0 4px rgba(193, 148, 66, .07);
}

.layout-v15 .header-search input { font-size: 12px; }
.layout-v15 .header-search input::placeholder { color: #89998f; }

.header-context {
  display: grid;
  gap: 1px;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, .1);
  white-space: nowrap;
}

.header-context span { color: #d9bd83; font: 700 10px var(--serif); letter-spacing: .12em; }
.header-context small { color: #829188; font-size: 8px; }

.layout-v15 .header-status { gap: 6px; }
.layout-v15 .storage-state,
.layout-v15 .ai-state { padding: 7px 9px; font-size: 8px; }

.layout-v15 .user-session-button {
  min-height: 30px;
  padding: 6px 9px;
  border: 1px solid rgba(218, 197, 156, .18);
  border-radius: 999px;
  color: #d8c9a8;
  background: rgba(255, 250, 236, .045);
  font-size: 8px;
  white-space: nowrap;
}
.layout-v15 .user-session-button:hover { color: #fff7e5; border-color: rgba(210, 170, 94, .48); }
.layout-v15 .user-session-button:disabled { opacity: .55; cursor: wait; }

.header-quick {
  height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 15px;
  border: 1px solid rgba(222, 190, 128, .38);
  border-radius: 11px;
  color: #fff9ea;
  background: rgba(165, 69, 58, .82);
  box-shadow: 0 9px 20px rgba(99, 36, 31, .22);
  font-size: 11px;
  font-weight: 760;
  transition: .2s ease;
}

.header-quick:hover { background: #a6483e; transform: translateY(-1px); }
.header-quick span { font-size: 16px; font-weight: 400; }

.layout-v15 .suite-shell {
  max-width: 1640px;
  min-height: calc(100vh - 72px);
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 24px;
  padding: 22px 24px 76px;
}

.layout-v15 .suite-sidebar {
  top: 94px;
  height: calc(100vh - 116px);
  padding: 15px 11px 12px;
  border-color: rgba(197, 185, 163, .72);
  border-radius: 20px;
  background: rgba(255, 254, 250, .78);
  box-shadow: var(--v15-shadow-soft);
  backdrop-filter: blur(20px);
}

.sidebar-head {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 3px 8px 11px;
  border-bottom: 1px solid var(--v15-line-soft);
}

.sidebar-head > div { display: grid; gap: 3px; }
.sidebar-head span { color: var(--v15-gold); font-size: 8px; font-weight: 800; letter-spacing: .18em; }
.sidebar-head b { color: var(--v15-ink-2); font-size: 11px; font-weight: 720; }
.sidebar-head button { display: none; border: 0; color: var(--v15-muted); background: transparent; font-size: 22px; }

.layout-v15 .suite-nav { gap: 6px; margin-top: 10px; }

.layout-v15 .suite-nav .nav-button {
  min-height: 54px;
  grid-template-columns: 34px 1fr;
  padding: 9px 10px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: #56645b;
  background: transparent;
}

.layout-v15 .suite-nav .nav-button span {
  width: 34px;
  height: 34px;
  border: 1px solid #d9cba9;
  border-radius: 10px;
  color: var(--v15-gold);
  background: #f6efe0;
  font-size: 13px;
}

.layout-v15 .suite-nav .nav-button b { font-size: 12px; }
.layout-v15 .suite-nav .nav-button small { color: #90968f; font-size: 9px; }
.layout-v15 .suite-nav .nav-button:hover { border-color: #e0d7c6; background: rgba(255, 252, 245, .85); }

.layout-v15 .suite-nav .nav-button.active {
  color: var(--v15-red-dark);
  border-color: #dcc8a4;
  background: linear-gradient(135deg, #fffaf0, #f5ead4);
  box-shadow: inset 3px 0 0 var(--v15-red), 0 7px 20px rgba(72, 56, 33, .06);
}

.nav-cluster {
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 14px;
  transition: border-color .2s ease, background .2s ease;
}

.nav-cluster.active-cluster {
  border-color: rgba(211, 198, 174, .8);
  background: rgba(255, 252, 245, .7);
}

.nav-cluster-toggle {
  width: 100%;
  min-height: 52px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  border: 0;
  border-radius: 13px;
  color: #526058;
  background: transparent;
  text-align: left;
}

.nav-cluster-toggle:hover { background: rgba(248, 243, 233, .82); }

.nav-cluster-toggle > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #d8d0c1;
  border-radius: 10px;
  color: var(--v15-jade);
  background: #eef2ec;
  font: 700 12px var(--serif);
}

.nav-cluster-toggle > div { min-width: 0; display: grid; gap: 2px; }
.nav-cluster-toggle b { font-size: 12px; }
.nav-cluster-toggle small { overflow: hidden; color: #929790; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.nav-cluster-toggle > i { color: #9b9c96; font-size: 14px; font-style: normal; transition: transform .2s ease; }
.nav-cluster.open .nav-cluster-toggle > i { transform: rotate(180deg); }

.nav-cluster-items {
  max-height: 0;
  display: grid;
  gap: 3px;
  padding: 0 7px;
  opacity: 0;
  transition: max-height .3s ease, opacity .2s ease, padding .3s ease;
}

.nav-cluster.open .nav-cluster-items { max-height: 190px; padding: 2px 7px 8px 20px; opacity: 1; }

.nav-sub-button {
  min-height: 34px;
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border: 0;
  border-radius: 9px;
  color: #717971;
  background: transparent;
  text-align: left;
  transition: .18s ease;
}

.nav-sub-button span {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #8a7351;
  background: #f1ecdf;
  font: 700 9px var(--serif);
}

.nav-sub-button b { font-size: 10px; font-weight: 650; }
.nav-sub-button:hover { color: var(--v15-ink); background: #f5f0e5; }
.nav-sub-button.active { color: var(--v15-red-dark); background: var(--v15-red-soft); }
.nav-sub-button.active span { color: #fff; background: var(--v15-red); }

.layout-v15 .sidebar-progress {
  padding: 13px;
  border-color: var(--v15-line);
  border-radius: 14px;
  background: rgba(247, 243, 234, .84);
}

.layout-v15 .sidebar-progress span,
.layout-v15 .sidebar-progress small { font-size: 9px; }
.layout-v15 .sidebar-progress b { font-size: 10px; }

.layout-v15 .sidebar-boundary {
  margin-top: 8px;
  padding: 9px 11px;
  border: 0;
  border-radius: 10px;
  background: rgba(53, 97, 80, .055);
}

.layout-v15 .sidebar-boundary summary { color: var(--v15-jade); cursor: pointer; font-size: 9px; font-weight: 750; }
.layout-v15 .sidebar-boundary p { margin: 7px 0 1px; color: #778078; font-size: 9px; line-height: 1.65; }

.sidebar-scrim { display: none; }

.layout-v15 .suite-main { width: 100%; max-width: 1360px; margin: 0 auto; }
.layout-v15 .page { animation: v15-page-in .32s ease both; }

@keyframes v15-page-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 首页 */
.home-page { padding-bottom: 20px; }

.home-hero {
  min-height: 425px;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(340px, .78fr);
  align-items: stretch;
  gap: 20px;
  padding: 42px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(190, 177, 151, .72);
  border-radius: 28px;
  background:
    radial-gradient(circle at 80% 5%, rgba(183, 145, 72, .16), transparent 22rem),
    radial-gradient(circle at 5% 100%, rgba(53, 97, 80, .09), transparent 26rem),
    rgba(255, 254, 250, .88);
  box-shadow: var(--v15-shadow);
}

.home-hero::before {
  position: absolute;
  right: -80px;
  bottom: -130px;
  width: 360px;
  height: 360px;
  content: "";
  border: 1px solid rgba(165, 123, 56, .18);
  border-radius: 50%;
  box-shadow: inset 0 0 0 38px rgba(165, 123, 56, .025), inset 0 0 0 76px rgba(53, 97, 80, .018);
}

.home-copy { align-self: center; position: relative; z-index: 1; }
.home-kicker { color: var(--v15-red); font-size: 10px; font-weight: 850; letter-spacing: .2em; }

.home-copy h1 {
  max-width: 720px;
  margin: 14px 0 18px;
  color: #16251e;
  font-family: var(--serif);
  font-size: clamp(38px, 4.1vw, 61px);
  font-weight: 760;
  line-height: 1.22;
  letter-spacing: -.04em;
}

.home-copy h1 span { color: var(--v15-red); }
.home-copy p { max-width: 670px; margin: 0; color: #667169; font-size: 14px; line-height: 1.95; }
.home-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.home-primary i { margin-left: 7px; font-style: normal; }

.home-trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 24px; }
.home-trust-row span { display: inline-flex; align-items: center; gap: 7px; color: #7c837d; font-size: 10px; }
.home-trust-row i { width: 6px; height: 6px; border-radius: 50%; background: var(--v15-jade); box-shadow: 0 0 0 4px rgba(53, 97, 80, .08); }

.today-focus-card {
  align-self: stretch;
  min-width: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(203, 176, 120, .28);
  border-radius: 22px;
  color: #f7f2e6;
  background:
    radial-gradient(circle at 100% 0, rgba(190, 145, 64, .2), transparent 16rem),
    linear-gradient(145deg, #1b3027, #22392f);
  box-shadow: 0 24px 48px rgba(31, 52, 43, .2);
}

.today-focus-card::after {
  position: absolute;
  top: -65px;
  right: -65px;
  width: 180px;
  height: 180px;
  content: "";
  border: 1px solid rgba(220, 186, 115, .15);
  border-radius: 50%;
  box-shadow: inset 0 0 0 30px rgba(220, 186, 115, .025);
}

.today-focus-card header { display: flex; align-items: flex-start; justify-content: space-between; position: relative; z-index: 1; }
.today-focus-card header > div { display: grid; gap: 4px; }
.today-focus-card header span { color: #d3b778; font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.today-focus-card header b { color: #aebdb4; font-size: 10px; font-weight: 500; }
.today-focus-card header em { padding: 5px 8px; border: 1px solid rgba(217, 187, 123, .18); border-radius: 999px; color: #b7a378; font-size: 7px; font-style: normal; letter-spacing: .16em; }

.today-progress-area { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center; gap: 17px; margin: 27px 0 22px; }

.home-progress-ring {
  --home-progress: 0deg;
  width: 108px;
  height: 108px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#d0a956 var(--home-progress), rgba(255, 255, 255, .09) 0);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, .025);
}

.home-progress-ring::before { grid-area: 1/1; width: 86px; height: 86px; content: ""; border-radius: 50%; background: #21372e; }
.home-progress-ring > div { grid-area: 1/1; position: relative; display: grid; justify-items: center; gap: 1px; }
.home-progress-ring b { font: 750 22px var(--serif); }
.home-progress-ring span { color: #93a59a; font-size: 8px; }

.today-focus-copy { min-width: 0; }
.today-focus-copy > span { color: #9caf9f; font-size: 9px; }
.today-focus-copy h2 { margin: 6px 0 8px; color: #fffaf0; font: 700 19px/1.4 var(--serif); }
.today-focus-copy p { margin: 0; color: #9caf9f; font-size: 9px; line-height: 1.7; }

.today-mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid rgba(255, 255, 255, .07); border-radius: 13px; background: rgba(255, 255, 255, .035); }
.today-mini-stats div { display: grid; justify-items: center; gap: 3px; padding: 13px 7px; border-right: 1px solid rgba(255, 255, 255, .06); }
.today-mini-stats div:last-child { border-right: 0; }
.today-mini-stats b { color: #f5e9ce; font: 700 17px var(--serif); }
.today-mini-stats span { color: #8fa197; font-size: 8px; }

.today-start-button {
  width: 100%;
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: 0 15px;
  border: 1px solid rgba(211, 174, 96, .4);
  border-radius: 11px;
  color: #fff8e8;
  background: rgba(169, 76, 61, .88);
  font-size: 11px;
  font-weight: 750;
  transition: .2s ease;
}

.today-start-button:hover { background: #aa4b3f; transform: translateY(-2px); }
.today-start-button i { font-size: 15px; font-style: normal; }

.home-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin: 30px 2px 14px; }
.home-section-head > div { display: grid; gap: 4px; }
.home-section-head span,
.home-panel-head span { color: var(--v15-red); font-size: 9px; font-weight: 820; letter-spacing: .14em; }
.home-section-head h2,
.home-panel-head h2 { margin: 0; color: var(--v15-ink); font: 720 22px var(--serif); }
.home-section-head > small { color: #899088; font-size: 9px; }

.home-quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; }

.home-action-card {
  min-width: 0;
  min-height: 92px;
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr) 22px;
  align-items: center;
  gap: 12px;
  position: relative;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--v15-line);
  border-radius: 17px;
  color: var(--v15-ink-2);
  background: var(--v15-surface);
  box-shadow: var(--v15-shadow-soft);
  text-align: left;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.home-action-card::before { position: absolute; inset: auto 0 0; height: 3px; content: ""; opacity: .75; background: var(--action-color); transform: scaleX(.28); transform-origin: left; transition: transform .22s ease; }
.home-action-card:hover { border-color: #cfc2aa; box-shadow: 0 16px 36px rgba(43, 48, 42, .1); transform: translateY(-4px); }
.home-action-card:hover::before { transform: scaleX(1); }
.home-action-card > div { min-width: 0; display: grid; gap: 5px; }
.home-action-card b { font-size: 12px; }
.home-action-card small { overflow: hidden; color: #858c85; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.home-action-card > i { color: #a2a29a; font-size: 16px; font-style: normal; }
.home-action-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--action-color); background: var(--action-soft); font: 750 14px var(--serif); }
.accent-red { --action-color: var(--v15-red); --action-soft: var(--v15-red-soft); }
.accent-jade { --action-color: var(--v15-jade); --action-soft: var(--v15-jade-soft); }
.accent-gold { --action-color: var(--v15-gold); --action-soft: var(--v15-gold-soft); }
.accent-ink { --action-color: #58625c; --action-soft: #e9ece8; }

.home-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); gap: 15px; margin-top: 15px; }

.home-panel {
  min-width: 0;
  padding: 23px;
  border: 1px solid var(--v15-line);
  border-radius: 19px;
  background: var(--v15-surface);
  box-shadow: var(--v15-shadow-soft);
}

.home-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.home-panel-head > div { display: grid; gap: 4px; }
.home-panel-head h2 { font-size: 18px; }
.home-panel-head > button { padding: 6px 9px; border: 0; border-radius: 8px; color: var(--v15-jade); background: var(--v15-jade-soft); font-size: 9px; font-weight: 700; }

.resume-session-card { display: grid; grid-template-columns: 42px minmax(0, 1fr) 24px; align-items: center; gap: 12px; margin-top: 18px; padding: 15px; border: 1px solid var(--v15-line-soft); border-radius: 14px; background: #faf7ef; }
.resume-seal { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: #fff7e7; background: var(--v15-jade); font: 700 14px var(--serif); }
.resume-session-card > div { min-width: 0; }
.resume-session-card b { display: block; overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.resume-session-card p { margin: 5px 0 0; overflow: hidden; color: #808780; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.resume-session-card > i { color: var(--v15-gold); font-size: 16px; font-style: normal; }

.home-proof-strip { display: flex; align-items: center; gap: 8px; margin-top: 16px; overflow-x: auto; color: #788078; white-space: nowrap; }
.home-proof-strip span { margin-right: 3px; color: var(--v15-red); font-size: 8px; font-weight: 800; }
.home-proof-strip b { font-size: 9px; font-weight: 600; }
.home-proof-strip i { width: 18px; height: 1px; flex: 0 0 18px; background: #d8cdb9; }

.home-weak-list { display: grid; gap: 11px; margin-top: 17px; }
.home-weak-item { display: grid; grid-template-columns: minmax(0, 1fr) 42px; gap: 9px; align-items: center; }
.home-weak-item > div { min-width: 0; }
.home-weak-item header { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.home-weak-item b { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.home-weak-item small { color: #92968f; font-size: 8px; }
.home-weak-track { height: 5px; overflow: hidden; border-radius: 99px; background: #ece7dd; }
.home-weak-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--v15-red), var(--v15-gold)); }
.home-weak-item > em { color: var(--v15-red); font: 700 12px var(--serif); font-style: normal; text-align: right; }

.home-library-panel { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(230px, .65fr) minmax(0, 1.35fr); align-items: center; gap: 24px; }
.home-library-panel .home-panel-head { align-items: center; }
.home-library-panel .home-panel-head > button { display: none; }
.home-library-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.home-library-stats div { display: grid; justify-items: center; gap: 4px; padding: 14px 8px; border-left: 1px solid var(--v15-line-soft); }
.home-library-stats b { color: var(--v15-jade-dark); font: 750 20px var(--serif); }
.home-library-stats span { color: #8a908a; font-size: 8px; }
.home-library-panel > p { grid-column: 1 / -1; margin: -10px 0 0; color: #8a908a; font-size: 9px; }

/* 全站页面统一 */
.layout-v15 .suite-main .page-intro {
  min-height: 134px;
  margin-bottom: 18px;
  padding: 28px 30px;
  border-color: rgba(199, 187, 165, .72);
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 0, rgba(165, 123, 56, .09), transparent 20rem),
    rgba(255, 254, 250, .82);
  box-shadow: var(--v15-shadow-soft);
}

.layout-v15 .page-intro::before { background: linear-gradient(180deg, var(--v15-red), var(--v15-gold)); }
.layout-v15 .page-intro::after { opacity: .16; }
.layout-v15 .suite-intro h1 { margin: 7px 0 9px; color: var(--v15-ink); font-size: clamp(28px, 2.6vw, 38px); line-height: 1.35; }
.layout-v15 .page-intro p { color: #687169; font-size: 12px; line-height: 1.85; }

.layout-v15 .simple-card,
.layout-v15 .assistant-card {
  border-color: rgba(204, 194, 176, .74);
  border-radius: 18px;
  background: rgba(255, 254, 250, .9);
  box-shadow: var(--v15-shadow-soft);
}

.layout-v15 .simple-card { padding: 22px; }
.layout-v15 .simple-card::before { opacity: .58; }
.layout-v15 .card-title h2 { margin-top: 4px; color: var(--v15-ink); font-size: 17px; }
.layout-v15 .card-title span { font-size: 9px; letter-spacing: .12em; }
.layout-v15 .card-title small { font-size: 9px; }

.layout-v15 .primary-button,
.layout-v15 .secondary-button {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 730;
}

.layout-v15 .primary-button::before,
.layout-v15 .secondary-button::before { opacity: .28; }
.layout-v15 .primary-button { border-color: var(--v15-red-dark); background: linear-gradient(135deg, #a4473d, #7a302b); }
.layout-v15 .primary-button:hover:not(:disabled) { background: linear-gradient(135deg, #ad4b40, #6f2925); }
.layout-v15 .secondary-button { color: var(--v15-jade-dark); border-color: #cfc6b5; background: #fbf8f0; }
.layout-v15 .secondary-button:hover { color: var(--v15-red-dark); border-color: #bfa674; background: #fffaf0; }

.layout-v15 input,
.layout-v15 textarea,
.layout-v15 select {
  border-radius: 10px;
  border-color: #d9d2c5;
  color: var(--v15-ink-2);
  background: rgba(255, 255, 252, .9);
  font-size: 11px;
}

.layout-v15 input:focus,
.layout-v15 textarea:focus,
.layout-v15 select:focus { border-color: #b7975b; box-shadow: 0 0 0 4px rgba(165, 123, 56, .08); }
.layout-v15 .field > span { color: #697169; font-size: 9px; font-weight: 650; }

.layout-v15 .scan-layout,
.layout-v15 .dashboard-grid,
.layout-v15 .map-layout,
.layout-v15 .paper-layout,
.layout-v15 .knowledge-layout,
.layout-v15 .sessions-layout,
.layout-v15 .analytics-grid,
.layout-v15 .tracking-grid,
.layout-v15 .math-evidence-grid { gap: 18px; }

.layout-v15 .knowledge-entry,
.layout-v15 .error-item,
.layout-v15 .session-item,
.layout-v15 .reminder-item,
.layout-v15 .priority-item { border-radius: 12px; }

.layout-v15 .knowledge-entry h3,
.layout-v15 .error-item h3 { font-size: 12px; line-height: 1.65; }
.layout-v15 .knowledge-entry small,
.layout-v15 .error-item small,
.layout-v15 .session-item small { font-size: 9px; line-height: 1.6; }

.layout-v15 .filter-toolbar,
.layout-v15 .knowledge-search-card { padding: 12px; border-radius: 15px; }
.layout-v15 canvas { max-width: 100%; height: auto; }

.layout-v15 .modal-card { border-radius: 20px; background: #fffdf8; box-shadow: 0 28px 80px rgba(24, 33, 28, .22); }
.layout-v15 .toast { border-radius: 12px; background: #20342b; box-shadow: 0 16px 38px rgba(25, 39, 32, .2); }

@media (max-width: 1380px) {
  .layout-v15 .suite-header-inner { grid-template-columns: 34px 205px minmax(280px, 1fr) auto auto 104px; gap: 11px; }
  .layout-v15 .storage-state { display: none; }
  .home-quick-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1120px) {
  .layout-v15 .suite-header-inner { grid-template-columns: 38px 205px minmax(260px, 1fr) auto 108px; }
  .sidebar-toggle { display: grid; }
  .header-context { display: none; }
  .layout-v15 .suite-shell { grid-template-columns: minmax(0, 1fr); padding-top: 18px; }
  .layout-v15 .suite-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 90;
    width: min(310px, 88vw);
    height: 100vh;
    padding: 18px 13px;
    border-radius: 0 22px 22px 0;
    transform: translateX(-104%);
    transition: transform .28s ease;
  }
  body.sidebar-open { overflow: hidden; }
  body.sidebar-open .suite-sidebar { transform: translateX(0); }
  .sidebar-head button { display: block; }
  .sidebar-scrim { position: fixed; inset: 0; z-index: 80; display: block; border: 0; background: rgba(18, 28, 23, .42); backdrop-filter: blur(3px); }
  .home-hero { grid-template-columns: minmax(0, 1fr) 340px; padding: 32px; }
  .home-copy h1 { font-size: 43px; }
}

@media (max-width: 860px) {
  .layout-v15 .app-header { height: 112px; }
  .layout-v15 .suite-header-inner {
    grid-template-columns: 38px minmax(170px, 1fr) auto 104px;
    grid-template-rows: 55px 44px;
    padding: 0 14px 8px;
  }
  .layout-v15 .brand { grid-column: 2; }
  .layout-v15 .header-status { grid-column: 3; grid-row: 1; }
  .header-quick { grid-column: 4; grid-row: 1; }
  .layout-v15 .header-search { grid-column: 1 / -1; grid-row: 2; }
  .layout-v15 .suite-shell { min-height: calc(100vh - 112px); padding: 15px 14px 60px; }
  .home-hero { grid-template-columns: 1fr; padding: 28px; }
  .today-focus-card { min-height: 345px; }
  .home-dashboard-grid { grid-template-columns: 1fr; }
  .home-library-panel { grid-column: auto; grid-template-columns: 1fr; }
  .home-library-panel .home-panel-head > button { display: inline-block; }
  .home-library-panel > p { margin-top: 0; }
  .layout-v15 .suite-main .page-intro { padding: 24px; }
}

@media (max-width: 620px) {
  .layout-v15 .suite-header-inner { grid-template-columns: 34px minmax(135px, 1fr) auto; }
  .layout-v15 .header-status { grid-column: 3; }
  .header-quick { display: none; }
  .layout-v15 .ai-state span { max-width: 84px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .layout-v15 .brand small { display: none; }
  .home-hero { min-height: 0; padding: 23px 20px; border-radius: 21px; }
  .home-copy h1 { font-size: 35px; }
  .home-copy p { font-size: 12px; }
  .home-actions { display: grid; grid-template-columns: 1fr; }
  .home-actions button { width: 100%; }
  .home-trust-row { display: grid; gap: 10px; }
  .today-focus-card { min-height: 365px; padding: 20px; }
  .today-progress-area { grid-template-columns: 92px minmax(0, 1fr); }
  .home-progress-ring { width: 88px; height: 88px; }
  .home-progress-ring::before { width: 69px; height: 69px; }
  .home-progress-ring b { font-size: 18px; }
  .home-section-head { align-items: flex-start; flex-direction: column; }
  .home-quick-grid { grid-template-columns: 1fr; }
  .home-dashboard-grid { gap: 12px; }
  .home-panel { padding: 19px; }
  .home-library-stats { grid-template-columns: 1fr 1fr; }
  .home-library-stats div:nth-child(odd) { border-left: 0; }
  .home-proof-strip span { display: none; }
  .layout-v15 .suite-main .page-intro { padding: 21px 19px; border-radius: 18px; }
  .layout-v15 .suite-intro h1 { font-size: 27px; }
  .layout-v15 .simple-card { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .layout-v15 .page,
  .nav-cluster-items,
  .layout-v15 .suite-sidebar,
  .home-action-card { animation: none; transition: none; }
}

@media print {
  #page-home { display: none !important; }
}

/* ===== v1.5.2 header layout fix ===== */
.layout-v15 .suite-header-inner {
  align-items: center;
}

.layout-v15 .suite-header-inner > * {
  min-width: 0;
}

.layout-v15 .brand {
  width: 100%;
  min-width: 0;
  flex-wrap: nowrap;
  overflow: hidden;
  white-space: nowrap;
}

.layout-v15 .brand::after {
  display: none;
}

.layout-v15 .brand > span:last-child {
  min-width: 0;
  display: grid;
  align-content: center;
}

.layout-v15 .brand b,
.layout-v15 .brand small {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layout-v15 .header-search {
  width: 100%;
  min-width: 0;
  padding-inline: 13px 10px;
}

.layout-v15 .header-search input {
  min-width: 0;
}

.layout-v15 .header-search kbd {
  flex: 0 0 auto;
}

.layout-v15 .header-context {
  min-width: 108px;
  padding: 7px 11px;
  border: 1px solid rgba(226, 202, 153, .13);
  border-radius: 11px;
  background: rgba(255, 255, 255, .035);
}

.layout-v15 .header-status {
  min-width: max-content;
  flex-wrap: nowrap;
}

.layout-v15 .storage-state,
.layout-v15 .ai-state {
  min-height: 30px;
  white-space: nowrap;
}

.layout-v15 .header-quick {
  width: 112px;
  padding-inline: 12px;
  white-space: nowrap;
}

@media (min-width: 1381px) {
  .layout-v15 .suite-header-inner {
    grid-template-columns: 210px minmax(320px, 1fr) auto auto 112px;
    gap: 14px;
  }
}

@media (min-width: 1121px) and (max-width: 1380px) {
  .layout-v15 .suite-header-inner {
    grid-template-columns: 190px minmax(260px, 1fr) auto auto 106px;
    gap: 11px;
  }

  .layout-v15 .brand b { font-size: 14px; }
  .layout-v15 .brand small { letter-spacing: .02em; }
  .layout-v15 .header-context { min-width: 96px; padding-inline: 9px; }
  .layout-v15 .header-quick { width: 106px; }
}

@media (max-width: 1120px) {
  .layout-v15 .suite-header-inner {
    grid-template-columns: 38px 190px minmax(220px, 1fr) auto 104px;
    gap: 10px;
  }

  .layout-v15 .brand b { font-size: 14px; }
}

@media (max-width: 860px) {
  .layout-v15 .suite-header-inner {
    grid-template-columns: 38px minmax(160px, 1fr) auto 104px;
    grid-template-rows: 55px 44px;
  }
}

@media (max-width: 620px) {
  .layout-v15 .suite-header-inner {
    grid-template-columns: 34px minmax(130px, 1fr) auto;
  }
  .layout-v15 .user-session-button { max-width: 66px; overflow: hidden; text-overflow: ellipsis; }
}
/* ===== end v1.5.2 header layout fix ===== */
