:root {
  --ink: #21312c;
  --muted: #7d8883;
  --line: #e7e4dc;
  --paper: #f7f5f0;
  --card: #fffefa;
  --forest: #2d5c4e;
  --forest-dark: #234a3f;
  --mint: #d9e8df;
  --coral: #e66f51;
  --coral-soft: #f8ded5;
  --violet: #715c9d;
  --violet-soft: #ebe5f4;
  --blue: #4d7392;
  --blue-soft: #e1ebf1;
  --shadow: 0 12px 36px rgba(42, 58, 51, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "DM Sans", "Noto Sans SC", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, label, input, textarea, select { -webkit-tap-highlight-color: transparent; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 238px; padding: 32px 24px 25px; background: #f0eee8; border-right: 1px solid var(--line); display: flex; flex-direction: column; z-index: 20; }
.brand { border: 0; background: transparent; padding: 0; display: flex; align-items: center; gap: 12px; cursor: pointer; text-align: left; }
.brand-mark { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--forest); color: white; font-family: "Noto Sans SC", sans-serif; font-weight: 700; box-shadow: 0 8px 20px rgba(45,92,78,.18); }
.brand-copy { display: grid; }
.brand-copy strong { font-size: 18px; letter-spacing: .08em; }
.brand-copy small { margin-top: 2px; font-size: 8px; color: var(--muted); letter-spacing: .18em; }
.side-nav { display: grid; gap: 7px; margin-top: 53px; }
.nav-item { border: 0; background: transparent; border-radius: 13px; padding: 13px 15px; display: flex; align-items: center; gap: 14px; color: #65726d; cursor: pointer; text-align: left; transition: .2s ease; }
.nav-item span { font-size: 17px; width: 20px; text-align: center; }
.nav-item:hover { background: rgba(255,255,255,.55); color: var(--ink); }
.nav-item.active { color: var(--forest); background: #fffefa; box-shadow: 0 5px 18px rgba(42,58,51,.05); font-weight: 600; }
.side-quote { margin-top: auto; border-top: 1px solid #dfdcd3; padding: 25px 8px 20px; }
.side-quote p { font-family: "Noto Sans SC", sans-serif; line-height: 1.85; margin: 8px 0 0; font-size: 15px; }
.user-chip { display: flex; gap: 11px; align-items: center; border-top: 1px solid #dfdcd3; padding: 20px 3px 2px; }
.user-chip > span { width: 35px; height: 35px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; color: var(--forest); font-size: 13px; font-weight: 700; }
.user-chip div { display: grid; }
.user-chip strong { font-size: 12px; }
.user-chip small { color: var(--muted); margin-top: 2px; font-size: 9px; }

.main-content { margin-left: 238px; padding: 34px clamp(30px, 5vw, 76px) 80px; max-width: 1480px; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 42px; }
.topbar h1 { margin: 0 0 5px; font-family: "Noto Sans SC", sans-serif; font-size: 25px; letter-spacing: -.04em; }
.topbar p { margin: 0; font-size: 12px; }
.mobile-brand { display: none; }
.top-actions { display: flex; gap: 10px; align-items: center; }
.primary-button { border: 0; background: var(--forest); color: white; border-radius: 11px; padding: 11px 18px; font-weight: 600; font-size: 13px; cursor: pointer; box-shadow: 0 8px 18px rgba(45,92,78,.12); transition: .2s ease; }
.primary-button:hover { background: var(--forest-dark); transform: translateY(-1px); }
.primary-button span { margin-right: 4px; font-size: 16px; }
.icon-button { border: 1px solid var(--line); border-radius: 11px; background: var(--card); width: 41px; height: 41px; cursor: pointer; }
.muted { color: var(--muted); }
.eyebrow { display: inline-block; font-size: 9px; font-weight: 700; letter-spacing: .17em; color: var(--forest); text-transform: uppercase; }
.eyebrow.coral { color: var(--coral); }
.eyebrow.green { color: #4d806d; }
.eyebrow.violet { color: var(--violet); }
.eyebrow.blue { color: var(--blue); }

.view { display: none; animation: fadeIn .28s ease; }
.view.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.focus-banner { min-height: 196px; border-radius: 25px; padding: 36px 42px; background: var(--forest); color: white; display: flex; align-items: center; justify-content: space-between; overflow: hidden; position: relative; box-shadow: 0 18px 36px rgba(45,92,78,.14); }
.focus-banner::before, .focus-banner::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); }
.focus-banner::before { width: 320px; height: 320px; right: -90px; top: -176px; }
.focus-banner::after { width: 230px; height: 230px; right: 73px; bottom: -198px; }
.focus-banner .eyebrow { color: #c2d8cf; }
.focus-banner h2 { font-family: "Noto Sans SC", sans-serif; font-weight: 500; font-size: clamp(25px, 2.2vw, 34px); line-height: 1.52; margin: 12px 0 0; letter-spacing: .02em; }
.focus-score { display: grid; place-items: center; z-index: 1; margin-right: 10px; }
.focus-score p { font-size: 10px; color: #c7dbd3; letter-spacing: .08em; margin: 8px 0 0; }
.score-ring { width: 91px; height: 91px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#d7c58f var(--score, 0%), rgba(255,255,255,.13) 0); position: relative; }
.score-ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--forest); }
.score-ring span { position: relative; font-size: 19px; font-weight: 600; }

.section-heading { display: flex; justify-content: space-between; align-items: flex-end; margin: 38px 1px 15px; }
.section-heading h2 { font-family: "Noto Sans SC", sans-serif; margin: 3px 0 0; font-size: 19px; }
.section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.section-heading.compact { margin-top: 0; align-items: center; }
.text-button { border: 0; background: transparent; color: var(--forest); font-size: 12px; font-weight: 600; cursor: pointer; padding: 8px 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 19px; box-shadow: var(--shadow); }
.task-card { overflow: hidden; }
.task-list { display: grid; }
.task-item { min-height: 61px; padding: 12px 18px; display: grid; grid-template-columns: 24px 1fr auto auto; gap: 12px; align-items: center; border-bottom: 1px solid #efede7; }
.task-item:last-child { border-bottom: 0; }
.check-button { width: 21px; height: 21px; padding: 0; border-radius: 50%; border: 1.5px solid #b6c1bc; background: transparent; cursor: pointer; display: grid; place-items: center; color: white; font-size: 11px; }
.task-item.done .check-button { background: var(--forest); border-color: var(--forest); }
.task-item.done .task-name { text-decoration: line-through; color: #9ba39f; }
.task-name { font-size: 13px; font-weight: 500; }
.task-meta { font-size: 10px; color: var(--muted); margin-top: 3px; }
.task-tag { font-size: 9px; padding: 5px 8px; border-radius: 20px; background: #edf2ee; color: var(--forest); }
.delete-task, .delete-food { border: 0; background: transparent; color: #aaa; cursor: pointer; padding: 7px; opacity: 0; transition: .2s; }
.task-item:hover .delete-task, .food-item:hover .delete-food { opacity: 1; }
.empty-state { padding: 35px; text-align: center; color: var(--muted); }
.empty-state span { font-size: 22px; color: var(--forest); }
.empty-state p { margin: 6px 0 0; font-size: 12px; }

.dashboard-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; margin-top: 20px; }
.dashboard-grid > .card { padding: 24px; min-height: 260px; }
.card-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.card-title-row h3 { margin: 4px 0 0; font-family: "Noto Sans SC", sans-serif; font-size: 17px; }
.mini-button { border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 7px 10px; font-size: 10px; color: var(--forest); cursor: pointer; }
.calorie-summary { display: flex; align-items: center; gap: 22px; margin-top: 23px; }
.calorie-ring { --calories: 0%; width: 105px; height: 105px; flex: 0 0 105px; border-radius: 50%; position: relative; display: grid; place-items: center; background: conic-gradient(var(--coral) var(--calories), var(--coral-soft) 0); }
.calorie-ring::before { content: ""; position: absolute; inset: 8px; background: var(--card); border-radius: 50%; }
.calorie-ring div { position: relative; display: grid; text-align: center; }
.calorie-ring strong { font-size: 23px; }
.calorie-ring span { color: var(--muted); font-size: 9px; }
.calorie-copy p { font-size: 11px; color: var(--muted); margin: 0 0 7px; }
.calorie-copy p:first-child { color: var(--ink); font-size: 12px; }
.food-log { margin-top: 17px; border-top: 1px solid #efede7; }
.food-item { display: grid; grid-template-columns: 1fr auto auto; align-items: center; padding: 9px 0 0; font-size: 11px; }
.food-item span { color: var(--muted); }
.lesson-preview { display: grid; gap: 9px; margin-top: 24px; }
.lesson-row { display: grid; grid-template-columns: 43px 1fr auto; align-items: center; gap: 12px; border: 1px solid #e8eee9; background: #f5f8f5; border-radius: 12px; padding: 12px; }
.lesson-number { width: 43px; height: 43px; border-radius: 10px; background: var(--mint); color: var(--forest); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.lesson-row strong { font-size: 12px; }
.lesson-row p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }
.lesson-check { border: 1px solid #b8c9c0; background: white; color: var(--forest); border-radius: 50%; width: 25px; height: 25px; cursor: pointer; }
.lesson-check.done { background: var(--forest); color: white; }
.card-note { color: var(--muted); font-size: 9px; margin: 15px 0 0; }
.day-pill { border-radius: 20px; padding: 6px 10px; background: var(--violet-soft); color: var(--violet); font-size: 10px; font-weight: 600; white-space: nowrap; }
.expression-card h4 { font-size: 17px; margin: 23px 0 7px; }
.training-prompt { color: #66716d; font-size: 11px; line-height: 1.7; margin: 0; }
.prompt-box { border-left: 2px solid #9f8fbe; padding: 7px 11px; margin: 18px 0; background: #faf8fc; }
.prompt-box span { color: var(--violet); font-size: 9px; font-weight: 700; }
.prompt-box p { font-size: 11px; margin: 4px 0 0; }
.wide-button { width: 100%; border: 1px solid #d9d0e7; background: var(--violet-soft); color: var(--violet); border-radius: 10px; padding: 10px; font-size: 11px; font-weight: 600; cursor: pointer; }
.wide-button.done { background: var(--violet); color: white; }
.digest-preview { display: grid; grid-template-columns: 38px 1fr; gap: 11px; padding: 18px 0; border-bottom: 1px solid #efede7; }
.digest-preview:last-child { border-bottom: 0; }
.digest-type { width: 37px; height: 37px; border-radius: 11px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.digest-type.stock { background: #f3ead9; color: #9a7130; }
.digest-preview strong { display: block; font-size: 12px; }
.digest-preview p { color: var(--muted); font-size: 10px; margin: 4px 0 0; line-height: 1.6; }

.page-intro { margin: 10px 0 34px; max-width: 670px; }
.page-intro h2 { font-family: "Noto Sans SC", sans-serif; font-size: clamp(27px, 3vw, 40px); font-weight: 500; letter-spacing: -.04em; margin: 11px 0; }
.page-intro p { color: var(--muted); font-size: 12px; }
.learning-layout { display: grid; grid-template-columns: 1.4fr .8fr; gap: 18px; }
.lesson-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.lesson-detail-card { padding: 25px; }
.lesson-detail-card .lesson-number { width: 51px; height: 51px; font-size: 15px; }
.lesson-detail-card h3 { font-size: 18px; margin: 24px 0 6px; }
.lesson-detail-card > p { font-size: 11px; color: var(--muted); line-height: 1.7; }
.practice-list { display: grid; gap: 8px; margin-top: 20px; }
.practice-item { border: 0; background: #f5f7f5; border-radius: 10px; padding: 10px 12px; display: flex; justify-content: space-between; cursor: pointer; font-size: 11px; }
.practice-item.done { background: var(--mint); color: var(--forest); }
.material-card { padding: 25px; }
.material-card h3 { font-size: 18px; margin: 10px 0; }
.material-card > p { color: var(--muted); font-size: 11px; line-height: 1.8; }
.material-tip { display: grid; grid-template-columns: 23px 1fr; gap: 9px; background: #f7f1e6; border-radius: 11px; padding: 12px; margin: 19px 0; }
.material-tip span { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: #ead7b3; color: #8b682c; font-weight: 700; }
.material-tip p { margin: 1px 0 0; font-size: 10px; line-height: 1.6; color: #7c6d51; }
.field-label { display: block; font-size: 10px; font-weight: 600; color: #53605b; margin: 16px 0 7px; }
input, textarea, select { width: 100%; border: 1px solid #deddd7; background: #fff; border-radius: 10px; padding: 11px 12px; outline: 0; color: var(--ink); font-size: 12px; transition: .2s; }
input:focus, textarea:focus, select:focus { border-color: #87a397; box-shadow: 0 0 0 3px rgba(45,92,78,.08); }
textarea { resize: vertical; line-height: 1.7; }
.training-full-card { margin-top: 18px; padding: 28px; }
.training-head { display: flex; align-items: flex-start; justify-content: space-between; }
.training-head h3 { margin: 7px 0 0; font-size: 21px; }
.training-full-card > p { font-size: 12px; color: var(--muted); line-height: 1.8; }
.training-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0; counter-reset: steps; }
.training-step { background: #faf8fc; border: 1px solid #eee8f5; border-radius: 12px; padding: 15px; font-size: 10px; line-height: 1.6; }
.training-step::before { counter-increment: steps; content: "0" counter(steps); display: block; color: var(--violet); font-size: 9px; font-weight: 700; margin-bottom: 8px; }

.news-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; }
.sample-badge { border-radius: 20px; color: #96703b; background: #f5ead9; padding: 6px 9px; font-size: 9px; }
.news-stack { display: grid; gap: 12px; }
.news-card { padding: 21px; }
.news-meta { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 9px; }
.news-meta span:first-child { padding: 4px 7px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); }
.news-card h3 { font-size: 14px; margin: 13px 0 8px; line-height: 1.5; }
.news-summary { color: #65716c; font-size: 11px; line-height: 1.75; margin: 0; }
.why-it-matters { margin-top: 14px; padding: 11px 12px; background: #f6f7f5; border-radius: 9px; font-size: 10px; line-height: 1.6; }
.why-it-matters strong { color: var(--forest); }
.empty-news { padding: 35px 25px; text-align: center; }
.empty-news span { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 50%; margin: 0 auto 12px; background: #f3ead9; color: #99702e; }
.empty-news h3 { font-size: 14px; margin: 0 0 6px; }
.empty-news p { color: var(--muted); font-size: 10px; line-height: 1.7; margin: 0; }

.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.settings-card { padding: 25px; }
.settings-card h3 { font-size: 16px; margin: 0 0 20px; }
.field-help { color: var(--muted); font-size: 9px; line-height: 1.6; }
.save-settings { grid-column: 1 / -1; justify-self: end; padding: 12px 28px; }

.bottom-nav, .floating-add { display: none; }
.modal-layer[hidden] { display: none; }
.modal-layer { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(25,34,31,.45); backdrop-filter: blur(3px); }
.modal { position: relative; width: min(430px, 100%); background: var(--card); border-radius: 20px; padding: 28px; box-shadow: 0 24px 70px rgba(21,35,30,.22); animation: modalIn .2s ease; }
@keyframes modalIn { from { opacity: 0; transform: scale(.97) translateY(8px); } }
.modal h2 { font-size: 21px; margin: 7px 0 22px; }
.modal-close { position: absolute; right: 18px; top: 15px; border: 0; background: transparent; font-size: 24px; color: var(--muted); cursor: pointer; }
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.modal-submit { width: 100%; margin-top: 22px; padding: 12px; }
.coral-button { background: var(--coral); }
.coral-button:hover { background: #cf5f44; }
.toast { position: fixed; z-index: 200; left: 50%; bottom: 30px; transform: translate(-50%, 20px); background: var(--ink); color: white; padding: 10px 16px; border-radius: 10px; font-size: 11px; opacity: 0; pointer-events: none; transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 980px) {
  .sidebar { width: 200px; padding-inline: 18px; }
  .main-content { margin-left: 200px; padding-inline: 28px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .learning-layout, .news-columns { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { background: #f8f6f1; padding-bottom: 82px; }
  .sidebar { display: none; }
  .main-content { margin-left: 0; padding: max(20px, env(safe-area-inset-top)) 17px 28px; }
  .topbar { align-items: flex-end; margin-bottom: 24px; }
  .topbar h1 { font-size: 22px; }
  .mobile-brand { display: block; color: var(--forest); font-size: 8px !important; letter-spacing: .15em; margin-bottom: 8px !important; font-weight: 700; }
  .top-actions .primary-button { display: none; }
  .focus-banner { min-height: 170px; padding: 28px 24px; border-radius: 20px; }
  .focus-banner h2 { font-size: 22px; }
  .focus-score { margin-right: 0; }
  .score-ring { width: 74px; height: 74px; }
  .score-ring span { font-size: 16px; }
  .section-heading { margin-top: 28px; }
  .task-item { grid-template-columns: 24px 1fr auto; padding: 12px; gap: 9px; }
  .task-tag { display: none; }
  .delete-task, .delete-food { opacity: 1; }
  .dashboard-grid { grid-template-columns: 1fr; gap: 13px; }
  .dashboard-grid > .card { min-height: auto; padding: 20px; }
  .lesson-cards { grid-template-columns: 1fr; }
  .training-steps { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .save-settings { justify-self: stretch; }
  .page-intro { margin-top: 4px; margin-bottom: 27px; }
  .page-intro h2 { font-size: 27px; line-height: 1.35; }
  .bottom-nav { position: fixed; z-index: 50; display: grid; grid-template-columns: repeat(4, 1fr); left: 0; right: 0; bottom: 0; min-height: 67px; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid #e6e3da; background: rgba(255,254,250,.95); backdrop-filter: blur(15px); }
  .bottom-nav button { border: 0; background: transparent; color: #89928e; display: grid; place-content: center; gap: 3px; font-size: 9px; cursor: pointer; }
  .bottom-nav button span { font-size: 17px; }
  .bottom-nav button.active { color: var(--forest); font-weight: 600; }
  .floating-add { display: grid; place-items: center; position: fixed; z-index: 60; right: 17px; bottom: calc(83px + env(safe-area-inset-bottom)); width: 49px; height: 49px; border-radius: 50%; border: 4px solid var(--paper); background: var(--forest); color: white; font-size: 24px; box-shadow: 0 10px 24px rgba(45,92,78,.25); cursor: pointer; }
  .toast { bottom: 90px; }
}

/* Personal information system */
.today-intel-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  align-items: center;
  gap: 20px;
  margin: 18px 0 27px;
  padding: 14px 17px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 18px;
  color: #4b332d;
  background: rgba(255,249,244,.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.today-intel-title { display: flex; align-items: center; gap: 12px; }
.today-intel-title h3 { margin: 3px 0 2px; font-family: Georgia, "Times New Roman", "Songti SC", serif; font-size: 16px; }
.today-intel-title p { margin: 0; color: #947970; font-size: 9px; }
.intel-orbit { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 38px; border-radius: 13px; color: #c25f3d; background: rgba(241,208,191,.55); font-size: 20px; }
.info-diet-checks { display: flex; gap: 7px; }
.info-check {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 1px 6px;
  padding: 8px 10px;
  border: 0;
  border-radius: 11px;
  color: #8e695d;
  background: rgba(241,218,208,.5);
  cursor: pointer;
}
.info-check > span { grid-row: 1 / 3; font-size: 15px; }
.info-check strong { font-size: 9px; }
.info-check small { color: #aa8e84; font-size: 7px; }
.info-check.done { color: #fff; background: linear-gradient(145deg, #e88658, #c9603d); }
.info-check.done small { color: rgba(255,255,255,.72); }

.knowledge-loop-card { margin: 24px 0; padding: 23px; }
.knowledge-loop-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.knowledge-loop-head h3 { margin: 5px 0 18px; font-family: Georgia, "Times New Roman", "Songti SC", serif; font-size: 20px; }
.knowledge-loop-head > span { color: #a07768; font-size: 9px; }
.knowledge-loop-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.knowledge-loop-steps > div { padding: 14px; border-radius: 14px; background: rgba(241,218,207,.42); }
.knowledge-loop-steps b { color: #d06b43; font-family: Georgia, serif; font-size: 14px; }
.knowledge-loop-steps strong { display: block; margin: 8px 0 4px; color: #563b34; font-size: 11px; }
.knowledge-loop-steps p { margin: 0; color: #8a6f66; font-size: 9px; line-height: 1.55; }
.expression-transfer { margin: 17px 0; padding: 13px 15px; border-left: 2px solid #da7b55; border-radius: 0 12px 12px 0; background: rgba(242,217,205,.43); }
.expression-transfer span { color: #bd6040; font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.expression-transfer p { margin: 5px 0 0; color: #72574f; font-size: 10px; line-height: 1.65; }

.information-principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 34px; }
.principle-card { min-height: 154px; padding: 20px; border: 1px solid rgba(255,255,255,.6); border-radius: 20px; box-shadow: var(--shadow); }
.principle-card h3 { margin: 12px 0 8px; color: #432e28; font-family: Georgia, "Times New Roman", "Songti SC", serif; font-size: 17px; line-height: 1.25; }
.principle-card p { margin: 0; color: #795f57; font-size: 10px; line-height: 1.75; }
.principle-name { font-size: 8px; font-weight: 900; letter-spacing: .14em; }
.naval-card { background: linear-gradient(145deg, rgba(247,225,214,.82), rgba(255,249,244,.7)); }
.naval-card .principle-name { color: #c65f3d; }
.gates-card { background: linear-gradient(145deg, rgba(235,228,216,.82), rgba(255,249,244,.7)); }
.gates-card .principle-name { color: #8d7858; }
.personal-card { background: linear-gradient(145deg, rgba(235,221,220,.82), rgba(255,249,244,.7)); }
.personal-card .principle-name { color: #9c6260; }

.intel-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin: 0 0 17px; }
.intel-section-heading h2 { margin: 4px 0; color: #3d2924; font-family: Georgia, "Times New Roman", "Songti SC", serif; font-size: 26px; }
.intel-section-heading p { margin: 0; color: #8e746b; font-size: 10px; }
.intel-section-heading > div:last-child { display: grid; justify-items: end; gap: 5px; color: #9b7b70; font-size: 8px; }
.intel-section-heading > div:last-child strong { color: #7f5d53; font-size: 9px; }
.daily-intel-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.intel-card { min-height: 320px; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 15px; padding: 20px; overflow: hidden; }
.intel-index { width: 43px; height: 62px; display: grid; place-content: center; border-radius: 14px; color: #a36853; background: rgba(238,210,197,.52); text-align: center; }
.intel-card.must .intel-index { color: #fff; background: linear-gradient(155deg, #f09664, #cd603b); }
.intel-card.should .intel-index { color: #8c644e; background: rgba(234,214,185,.66); }
.intel-card.deep .intel-index { color: #815a6b; background: rgba(229,207,219,.66); }
.intel-index span { font-size: 7px; }
.intel-index strong { font-family: Georgia, serif; font-size: 18px; }
.intel-card-meta { display: flex; justify-content: space-between; gap: 10px; color: #a07d70; font-size: 8px; }
.intel-card-body h3 { margin: 8px 0 14px; color: #432e28; font-family: Georgia, "Times New Roman", "Songti SC", serif; font-size: 17px; line-height: 1.35; }
.intel-answer { margin-top: 10px; }
.intel-answer > span { color: #bd6241; font-size: 8px; font-weight: 800; }
.intel-answer p { margin: 4px 0 0; color: #705851; font-size: 10px; line-height: 1.65; }
.intel-action { margin-top: 13px; padding: 11px 12px; border-radius: 11px; background: rgba(241,217,206,.46); }
.intel-action strong { color: #a95639; font-size: 8px; }
.intel-action p { margin: 4px 0 0; color: #6f554d; font-size: 10px; line-height: 1.6; }
.intel-source { margin-top: 12px; color: #a27d70; font-size: 8px; }
.intel-source a { color: #b25a3b; font-weight: 700; text-decoration: none; }
.insight-review-card { display: grid; grid-template-columns: .8fr 1.2fr; gap: 26px; align-items: center; margin-top: 16px; padding: 22px; }
.insight-review-card h3 { margin: 5px 0; color: #432e28; font-family: Georgia, "Times New Roman", "Songti SC", serif; font-size: 18px; }
.insight-review-card p { margin: 0; color: #8e7168; font-size: 9px; line-height: 1.6; }
.insight-review-card textarea { margin: 0; }
.digest-subheading { margin-top: 42px; }
.settings-info-rule { display: grid; gap: 5px; margin-top: 15px; padding: 12px; border-radius: 12px; color: #8d675b; background: rgba(241,218,207,.46); font-size: 9px; }

@media (max-width: 1000px) {
  .today-intel-bar { grid-template-columns: 1fr auto; }
  .info-diet-checks { grid-column: 1 / -1; grid-row: 2; }
  .information-principles { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .today-intel-bar { grid-template-columns: 1fr auto; gap: 13px; padding: 14px; }
  .today-intel-title p { display: none; }
  .today-intel-bar > .mini-button { align-self: start; }
  .info-diet-checks { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .info-check { padding: 8px 6px; gap: 1px 4px; }
  .info-check > span { display: none; }
  .knowledge-loop-head { display: block; }
  .knowledge-loop-head > span { display: block; margin-bottom: 14px; }
  .knowledge-loop-steps { grid-template-columns: 1fr; }
  .principle-card { min-height: auto; }
  .intel-section-heading { align-items: flex-start; }
  .intel-section-heading > div:last-child { justify-items: end; text-align: right; }
  .daily-intel-list { grid-template-columns: 1fr; }
  .intel-card { min-height: auto; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; padding: 16px; }
  .intel-index { width: 40px; height: 56px; }
  .intel-card-body h3 { font-size: 15px; }
  .insight-review-card { grid-template-columns: 1fr; gap: 15px; }
}

/* GitHub Skills daily board */
.skill-orange { color: #d66536 !important; }
.skills-preview-card {
  grid-column: 1 / -1;
  min-height: auto !important;
  overflow: hidden;
}
.skills-preview-note { margin: 5px 0 15px; color: #8e746b; font-size: 10px; }
.hot-skills-preview { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.skill-preview-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(151, 91, 70, .08);
  border-radius: 14px;
  color: inherit;
  background: rgba(246, 222, 210, .38);
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}
.skill-preview-item:hover { transform: translateY(-2px); background: rgba(250, 231, 220, .64); }
.skill-preview-rank {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, #ef8b54, #ca5b34);
  font-family: Georgia, serif;
  font-size: 16px;
}
.skill-preview-item strong, .skill-preview-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.skill-preview-item strong { color: #4c322b; font-size: 11px; }
.skill-preview-item small { margin-top: 3px; color: #9a7d73; font-size: 8px; }
.skill-preview-item b { color: #ae5a3c; font-size: 9px; white-space: nowrap; }

.skills-page-intro { max-width: 760px; }
.skill-method-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: -4px 0 30px;
  padding: 16px 19px;
  border: 1px solid rgba(255,255,255,.66);
  border-radius: 18px;
  color: #634a43;
  background: rgba(255,249,244,.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.skill-method-card > div { display: flex; align-items: flex-start; gap: 11px; }
.method-dot { width: 9px; height: 9px; margin-top: 4px; border-radius: 50%; background: #e87845; box-shadow: 0 0 0 5px rgba(232,120,69,.12); }
.skill-method-card strong { display: block; color: #4c312a; font-size: 11px; }
.skill-method-card p { max-width: 720px; margin: 4px 0 0; color: #91766d; font-size: 9px; line-height: 1.55; }
.skill-method-card a { flex: 0 0 auto; color: #b65b39; font-size: 10px; font-weight: 700; text-decoration: none; }
.skills-list-heading { display: grid; grid-template-columns: 1fr 110px; padding: 0 17px 9px 83px; color: #a4867c; font-size: 9px; letter-spacing: .09em; }
.skills-list-heading span:last-child { text-align: right; }
.hot-skills-list { display: grid; gap: 11px; }
.skill-item {
  min-height: 142px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 110px;
  align-items: center;
  gap: 17px;
  padding: 19px 20px;
}
.skill-rank {
  width: 50px;
  height: 58px;
  display: grid;
  place-content: center;
  border-radius: 16px;
  color: #a66b56;
  background: rgba(236, 211, 199, .48);
  text-align: center;
}
.skill-rank.top-three { color: #fff; background: linear-gradient(155deg, #f3a16f, #ce6139); box-shadow: 0 9px 18px rgba(179,78,43,.16); }
.skill-rank span { font-size: 7px; letter-spacing: .12em; }
.skill-rank strong { font-family: Georgia, serif; font-size: 22px; line-height: 1; }
.skill-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.skill-title-row h3 { margin: 5px 0 0; color: #432d27; font-family: Georgia, "Times New Roman", "Songti SC", serif; font-size: 17px; }
.skill-title-row a { flex: 0 0 auto; padding: 7px 10px; border-radius: 10px; color: #ad593b; background: rgba(241, 216, 204, .5); font-size: 9px; font-weight: 700; text-decoration: none; }
.skill-type { color: #c06847; font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.skill-description { margin: 9px 0; color: #6f5750; font-size: 11px; line-height: 1.7; }
.skill-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: #9b8178; font-size: 8px; }
.skill-heat { display: grid; justify-items: end; gap: 7px; }
.skill-heat strong { color: #9f5136; font-family: Georgia, serif; font-size: 17px; }
.skill-heat span { padding: 5px 8px; border-radius: 999px; color: #a16a56; background: rgba(242, 220, 210, .56); font-size: 8px; }
.skills-safety-note { margin: 18px 4px 0; color: #987b72; font-size: 9px; text-align: center; }
.skills-empty { color: #92786f; font-size: 10px; }

@media (max-width: 900px) {
  .hot-skills-preview { grid-template-columns: 1fr; }
  .skills-preview-card { grid-column: auto; }
}

@media (max-width: 720px) {
  .bottom-nav { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .bottom-nav button { min-width: 0; font-size: 8px; }
  .skill-method-card { align-items: flex-start; }
  .skill-method-card a { display: none; }
  .skills-list-heading { display: none; }
  .skill-item { grid-template-columns: 45px minmax(0, 1fr); gap: 13px; padding: 16px; }
  .skill-rank { width: 43px; height: 51px; border-radius: 14px; }
  .skill-rank strong { font-size: 19px; }
  .skill-title-row { gap: 8px; }
  .skill-title-row h3 { font-size: 15px; }
  .skill-title-row a { padding: 6px 8px; }
  .skill-description { font-size: 10px; }
  .skill-heat { grid-column: 2; grid-row: 2; display: flex; justify-content: flex-start; align-items: center; }
  .skill-heat strong { font-size: 14px; }
}

@media (max-width: 430px) {
  .focus-score { display: none; }
  .calorie-summary { gap: 16px; }
  .calorie-ring { width: 94px; height: 94px; flex-basis: 94px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

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

/* Apple-inspired visual system */
:root {
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(60, 60, 67, 0.12);
  --paper: #f5f5f7;
  --card: rgba(255, 255, 255, 0.9);
  --forest: #007aff;
  --forest-dark: #0066d6;
  --mint: #e7f3ff;
  --coral: #ff6b4a;
  --coral-soft: #fff0ec;
  --violet: #7d5ce5;
  --violet-soft: #f1edff;
  --blue: #007aff;
  --blue-soft: #e7f3ff;
  --shadow: 0 10px 35px rgba(0, 0, 0, 0.045), 0 1px 2px rgba(0, 0, 0, 0.035);
}

body {
  background:
    radial-gradient(circle at 82% 4%, rgba(0, 122, 255, 0.055), transparent 26%),
    var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -0.01em;
}

.sidebar {
  width: 250px;
  padding: 30px 20px 24px;
  background: rgba(242, 242, 247, 0.78);
  border-right: 0.5px solid rgba(60, 60, 67, 0.16);
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.6);
  backdrop-filter: saturate(180%) blur(28px);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: linear-gradient(145deg, #32a0ff 0%, #007aff 55%, #0567d2 100%);
  font-family: inherit;
  font-size: 19px;
  box-shadow: 0 8px 22px rgba(0, 122, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.brand-copy strong { font-size: 18px; letter-spacing: -0.02em; }
.brand-copy small { color: #8e8e93; letter-spacing: .13em; }
.side-nav { gap: 4px; margin-top: 48px; }
.nav-item {
  min-height: 44px;
  border-radius: 12px;
  color: #636366;
  padding: 11px 14px;
  font-size: 14px;
  font-weight: 500;
}
.nav-item span { color: #8e8e93; }
.nav-item:hover { background: rgba(255, 255, 255, 0.55); }
.nav-item.active {
  color: #007aff;
  background: rgba(0, 122, 255, 0.11);
  box-shadow: none;
  font-weight: 600;
}
.nav-item.active span { color: #007aff; }
.side-quote, .user-chip { border-color: rgba(60, 60, 67, 0.12); }
.side-quote p { font-family: inherit; line-height: 1.65; }
.user-chip > span { background: linear-gradient(145deg, #e7f3ff, #cfe7ff); color: #007aff; }

.main-content { margin-left: 250px; padding-top: 37px; }
.topbar h1 { font-family: inherit; font-size: 27px; font-weight: 700; letter-spacing: -0.035em; }
.topbar p { color: #8e8e93; }
.primary-button {
  background: #007aff;
  border-radius: 12px;
  padding: 11px 17px;
  box-shadow: 0 5px 14px rgba(0, 122, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.primary-button:hover { background: #006ee6; }
.icon-button { background: rgba(255,255,255,.75); border-color: rgba(60,60,67,.12); border-radius: 12px; }
.eyebrow { color: #007aff; letter-spacing: .13em; }

.focus-banner {
  min-height: 205px;
  padding: 39px 43px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 81% -10%, rgba(107, 180, 255, .6), transparent 33%),
    linear-gradient(130deg, #1c1c1e 0%, #2c2c2e 55%, #26384c 100%);
  box-shadow: 0 20px 55px rgba(23, 32, 44, 0.19), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.focus-banner::before { border-color: rgba(255,255,255,.1); }
.focus-banner::after { border-color: rgba(91,179,255,.2); }
.focus-banner .eyebrow { color: #72b9ff; }
.focus-banner h2 { font-family: inherit; font-weight: 600; letter-spacing: -0.035em; }
.score-ring { background: conic-gradient(#61afff var(--score, 0%), rgba(255,255,255,.15) 0); }
.score-ring::before { background: #293441; }
.focus-score p { color: #d1d1d6; }

.section-heading h2, .card-title-row h3, .page-intro h2 { font-family: inherit; }
.section-heading h2 { letter-spacing: -.025em; }
.text-button { color: #007aff; }
.card {
  background: rgba(255, 255, 255, 0.86);
  border: 0.5px solid rgba(60, 60, 67, 0.12);
  border-radius: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: saturate(135%) blur(12px);
  -webkit-backdrop-filter: saturate(135%) blur(12px);
}
.task-item { border-color: rgba(60,60,67,.09); }
.check-button { border-color: #aeaeb2; }
.task-item.done .check-button { background: #007aff; border-color: #007aff; }
.task-tag { background: #f2f2f7; color: #636366; }
.mini-button {
  border: 0;
  background: #f2f2f7;
  color: #007aff;
  border-radius: 9px;
  font-weight: 600;
}
.calorie-ring { background: conic-gradient(#ff6b4a var(--calories), #fff0ec 0); }
.lesson-row { border: 0; background: #f2f7fb; border-radius: 14px; }
.lesson-number { background: #dceeff; color: #007aff; border-radius: 11px; }
.lesson-check { border-color: #b5d8f7; color: #007aff; }
.lesson-check.done { background: #007aff; border-color: #007aff; }
.day-pill { background: #f0ebff; color: #7655d9; }
.wide-button { border: 0; background: #efebff; border-radius: 11px; }
.wide-button.done { background: #7d5ce5; }
.digest-type { background: #e4f2ff; color: #007aff; border-radius: 12px; }
.digest-type.stock { background: #fff3dd; color: #b87500; }
.digest-preview, .food-log { border-color: rgba(60,60,67,.09); }

.page-intro h2 { font-weight: 700; letter-spacing: -.045em; }
.practice-item { background: #f2f2f7; border-radius: 12px; }
.practice-item.done { background: #e1f0ff; color: #007aff; }
.material-tip { background: #fff5e6; }
.prompt-box, .training-step { background: #f8f6ff; }
.news-meta span:first-child { background: #e5f2ff; color: #007aff; }
.why-it-matters { background: #f2f2f7; }
.why-it-matters strong { color: #007aff; }
.sample-badge { color: #a76500; background: #fff1d8; }

input, textarea, select {
  border: 0;
  background: #f2f2f7;
  border-radius: 11px;
  color: #1d1d1f;
}
input:focus, textarea:focus, select:focus {
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, .17);
  background: #fff;
}
.modal-backdrop { background: rgba(0, 0, 0, .28); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.modal { border-radius: 24px; background: rgba(255,255,255,.94); box-shadow: 0 30px 90px rgba(0,0,0,.24); }
.toast { background: rgba(29,29,31,.93); border-radius: 12px; backdrop-filter: blur(18px); }

@media (max-width: 980px) {
  .sidebar { width: 210px; }
  .main-content { margin-left: 210px; }
}

@media (max-width: 720px) {
  body {
    background:
      radial-gradient(circle at 90% 0%, rgba(0,122,255,.07), transparent 23%),
      #f5f5f7;
  }
  .main-content { margin-left: 0; padding-inline: 16px; }
  .topbar h1 { font-size: 25px; }
  .mobile-brand { color: #007aff; }
  .focus-banner {
    min-height: 176px;
    padding: 29px 25px;
    border-radius: 26px;
    background:
      radial-gradient(circle at 90% 0%, rgba(76, 165, 255, .5), transparent 39%),
      linear-gradient(135deg, #19191b, #2d3035 64%, #293a4d);
  }
  .focus-banner h2 { font-weight: 650; letter-spacing: -.035em; }
  .card { border-radius: 22px; background: rgba(255,255,255,.9); }
  .bottom-nav {
    min-height: 72px;
    background: rgba(249, 249, 249, .82);
    border-top: .5px solid rgba(60,60,67,.2);
    box-shadow: 0 -5px 24px rgba(0,0,0,.035);
    backdrop-filter: saturate(180%) blur(24px);
    -webkit-backdrop-filter: saturate(180%) blur(24px);
  }
  .bottom-nav button { color: #8e8e93; font-size: 10px; }
  .bottom-nav button.active { color: #007aff; }
  .floating-add {
    bottom: calc(87px + env(safe-area-inset-bottom));
    width: 52px;
    height: 52px;
    border: 4px solid #f5f5f7;
    background: linear-gradient(145deg, #2696ff, #007aff);
    box-shadow: 0 9px 25px rgba(0,122,255,.32), inset 0 1px 0 rgba(255,255,255,.3);
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f5f5f7;
    --muted: #98989d;
    --line: rgba(255,255,255,.1);
    --paper: #000;
    --card: rgba(28,28,30,.88);
    --shadow: 0 12px 36px rgba(0,0,0,.22);
  }
  body { background: radial-gradient(circle at 82% 4%, rgba(0,122,255,.12), transparent 25%), #000; }
  .sidebar { background: rgba(28,28,30,.82); border-color: rgba(255,255,255,.1); }
  .nav-item { color: #aeaeb2; }
  .nav-item:hover { background: rgba(255,255,255,.06); color: white; }
  .nav-item.active { color: #56a9ff; background: rgba(0,122,255,.18); }
  .card, .modal { background: rgba(28,28,30,.88); }
  .task-item { border-color: rgba(255,255,255,.08); }
  .task-tag, .mini-button, input, textarea, select, .practice-item, .why-it-matters { background: #2c2c2e; color: #d1d1d6; }
  .lesson-row { background: #22282e; }
  .lesson-number, .digest-type { background: rgba(0,122,255,.18); }
  .prompt-box, .training-step { background: rgba(125,92,229,.11); }
  input:focus, textarea:focus, select:focus { background: #333336; }
  .bottom-nav { background: rgba(28,28,30,.86); border-color: rgba(255,255,255,.12); }
  .floating-add { border-color: #000; }
}

/* Warm cloud editorial theme inspired by the supplied visual reference */
:root {
  --ink: #3d2924;
  --muted: #8d7168;
  --line: rgba(116, 74, 60, 0.12);
  --paper: #f7e2d8;
  --card: rgba(255, 249, 244, 0.73);
  --forest: #df7544;
  --forest-dark: #c85f32;
  --mint: #f3ded4;
  --coral: #f2773e;
  --coral-soft: rgba(247, 179, 148, .24);
  --violet: #9a6258;
  --violet-soft: rgba(231, 190, 177, .35);
  --blue: #a86f60;
  --blue-soft: rgba(244, 215, 203, .68);
  --shadow: 0 18px 48px rgba(110, 66, 50, 0.09), inset 0 1px 0 rgba(255,255,255,.72);
}

body {
  min-height: 100vh;
  color: var(--ink);
  background-color: #f3d9ce;
  background-image:
    linear-gradient(rgba(248, 225, 214, .22), rgba(216, 139, 115, .12)),
    url("assets/warm-clouds-v1.png");
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,244,237,.26), transparent 38%, rgba(116,56,46,.045));
  z-index: -1;
}

.sidebar {
  inset: 88px auto 70px 24px;
  width: 84px;
  height: auto;
  padding: 18px 10px;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 40px;
  background: rgba(255, 249, 244, .66);
  box-shadow: 0 22px 55px rgba(111, 63, 48, .14), inset 0 1px 0 rgba(255,255,255,.8);
  backdrop-filter: blur(25px) saturate(125%);
  -webkit-backdrop-filter: blur(25px) saturate(125%);
}

.brand { justify-content: center; }
.brand-mark {
  width: 43px;
  height: 43px;
  border-radius: 50%;
  background: rgba(226, 127, 79, .14);
  color: #c75e32;
  box-shadow: inset 0 0 0 1px rgba(201, 97, 51, .1);
  font-family: Georgia, "Songti SC", serif;
}
.brand-copy, .side-quote, .user-chip { display: none; }
.side-nav { margin-top: 25px; gap: 12px; }
.nav-item {
  width: 62px;
  min-height: 59px;
  padding: 8px 3px;
  border-radius: 22px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  color: #7d635b;
  font-size: 10px;
  line-height: 1.1;
}
.nav-item span { width: auto; color: #9a7b71; font-size: 15px; }
.nav-item:hover { color: #9d4f30; background: rgba(255,255,255,.38); }
.nav-item.active {
  color: #c95f32;
  background: rgba(255, 248, 242, .88);
  box-shadow: 0 8px 20px rgba(136, 72, 52, .09);
}
.nav-item.active span { color: #d1693b; }

.main-content {
  width: auto;
  max-width: 1500px;
  margin-left: 126px;
  padding: 76px clamp(30px, 5vw, 76px) 90px;
}
.topbar {
  align-items: flex-start;
  margin-bottom: 28px;
}
.topbar > div:first-child { display: flex; flex-direction: column; }
.topbar h1 {
  order: 0;
  margin: 12px 0 7px;
  color: #35221e;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(46px, 5vw, 70px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.055em;
}
#fullDate { order: -1; color: #8a6d64; font-size: 11px; }
.greeting-note { order: 1; display: block; color: #8b7067 !important; font-size: 11px !important; }
.mobile-brand { order: -2; }
#topAddTask { display: none; }
.icon-button { background: rgba(255,249,244,.67); border-color: rgba(255,255,255,.65); color: #8b5d50; }

.quick-capture {
  width: min(720px, 72%);
  min-height: 52px;
  margin: 0 0 24px;
  padding: 6px 7px 6px 20px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 18px;
  background: rgba(255,249,244,.64);
  box-shadow: 0 13px 35px rgba(118,65,49,.08), inset 0 1px 0 rgba(255,255,255,.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #987d73;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  font-size: 11px;
}
.quick-capture b {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  color: white;
  background: linear-gradient(145deg, #ff914e, #ed6a31);
  box-shadow: 0 7px 17px rgba(218, 91, 40, .25), inset 0 1px 0 rgba(255,255,255,.4);
  font-size: 18px;
}

.focus-banner {
  min-height: 165px;
  padding: 29px 34px;
  color: #3d2924;
  border: 1px solid rgba(255,255,255,.62);
  border-radius: 22px;
  background: rgba(255, 248, 242, .66);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(112%);
  -webkit-backdrop-filter: blur(18px) saturate(112%);
}
.focus-banner::before, .focus-banner::after { border-color: rgba(179,101,75,.13); }
.focus-banner .eyebrow { color: #c5633d; }
.focus-banner h2 {
  color: #3a2520;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: clamp(25px, 2.5vw, 36px);
  font-weight: 500;
  letter-spacing: -.025em;
}
.focus-score p { color: #9a7468; }
.score-ring { background: conic-gradient(#e47948 var(--score, 0%), rgba(194,116,87,.14) 0); }
.score-ring::before { background: rgba(255,248,242,.96); }
.score-ring span { color: #6b4135; }

.section-heading h2, .card-title-row h3, .page-intro h2, .lesson-detail-card h3, .material-card h3, .training-head h3, .news-card h3, .settings-card h3 {
  color: #3d2924;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  letter-spacing: -.025em;
}
.eyebrow, .eyebrow.green, .eyebrow.blue, .eyebrow.violet { color: #ad6048; }
.eyebrow.coral { color: #d76335; }
.text-button { color: #bd572e; }
.card {
  color: #4b342e;
  border: 1px solid rgba(255,255,255,.63);
  border-radius: 20px;
  background: rgba(255, 249, 244, .70);
  box-shadow: var(--shadow);
  backdrop-filter: blur(19px) saturate(112%);
  -webkit-backdrop-filter: blur(19px) saturate(112%);
}
.task-item, .digest-preview, .food-log { border-color: rgba(125,75,60,.1); }
.task-tag, .mini-button {
  color: #9c583f;
  background: rgba(240,211,198,.42);
}
.check-button { border-color: #c9a69a; }
.task-item.done .check-button { background: #df7544; border-color: #df7544; }
.calorie-ring { background: conic-gradient(#f2773e var(--calories), rgba(239,164,132,.22) 0); }
.lesson-row, .practice-item, .why-it-matters, input, textarea, select { background: rgba(248,229,220,.54); }
.lesson-number, .digest-type { color: #b95631; background: rgba(241,199,180,.48); }
.lesson-check { color: #c35d34; border-color: #dda78f; }
.lesson-check.done { background: #dd7141; border-color: #dd7141; }
.day-pill, .wide-button, .prompt-box, .training-step { color: #955a4c; background: rgba(235,204,193,.47); }
.wide-button.done { background: #bb6a55; }
.digest-type.stock { color: #9d6a37; background: rgba(242,218,183,.62); }
.why-it-matters strong { color: #b95735; }
.sample-badge { color: #a35c3e; background: rgba(244,213,194,.58); }
input:focus, textarea:focus, select:focus { background: rgba(255,251,247,.9); box-shadow: 0 0 0 3px rgba(213,109,65,.14); }
.primary-button { background: linear-gradient(145deg, #ed844f, #d96635); box-shadow: 0 7px 18px rgba(188,80,42,.2); }
.primary-button:hover { background: #ca5b30; }

.dashboard-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.dashboard-grid > .card { min-height: 292px; padding: 21px; }
.calorie-summary { gap: 14px; }
.calorie-ring { width: 92px; height: 92px; flex-basis: 92px; }
.calorie-copy p { line-height: 1.45; }
.digest-card { position: relative; overflow: hidden; }
.digest-card::after {
  content: "";
  position: absolute;
  right: -19px;
  bottom: -18px;
  width: 112px;
  height: 92px;
  border-radius: 24px 0 0 0;
  background: linear-gradient(rgba(212,121,90,.05), rgba(185,82,58,.2)), url("assets/warm-clouds-v1.png") center bottom / cover;
  opacity: .8;
  pointer-events: none;
}
.brief-listen-button {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 10px;
  padding: 9px 12px;
  border: 0;
  border-radius: 11px;
  color: #a65133;
  background: rgba(239, 204, 188, .46);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}
.brief-player {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 16px;
  margin: -5px 0 35px;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.66);
  border-radius: 20px;
  color: #4a322b;
  background: rgba(255,249,244,.66);
  box-shadow: var(--shadow);
  backdrop-filter: blur(19px);
  -webkit-backdrop-filter: blur(19px);
}
.brief-play-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(145deg, #ef8750, #d96535);
  font-size: 18px;
  box-shadow: 0 8px 20px rgba(194,83,44,.2);
}
.brief-player h3 { margin: 4px 0 3px; font-family: Georgia, "Times New Roman", "Songti SC", serif; font-size: 16px; }
.brief-player p { margin: 0; color: #92766d; font-size: 10px; }
.brief-player button {
  border: 0;
  border-radius: 12px;
  padding: 10px 15px;
  color: #a95133;
  background: rgba(239,207,191,.58);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
}
.news-meta .priority-label { color: #a65d45; background: rgba(238,211,199,.58); }
.brief-answer { margin-top: 13px; }
.brief-answer > span { color: #ad644c; font-size: 9px; font-weight: 700; }
.brief-answer p { margin: 4px 0 0; color: #6f5750; font-size: 11px; line-height: 1.65; }
.news-action {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 15px;
  padding: 11px 12px;
  border-radius: 10px;
  background: rgba(242,218,206,.47);
  font-size: 10px;
  line-height: 1.55;
}
.news-action strong { flex: 0 0 auto; color: #a45135; }
.news-action span { color: #725850; }

.modal-backdrop { background: rgba(91,50,38,.25); backdrop-filter: blur(13px); -webkit-backdrop-filter: blur(13px); }
.modal { color: #432e28; border: 1px solid rgba(255,255,255,.68); background: rgba(255,248,243,.88); }
.toast { background: rgba(70,42,34,.9); }

@media (max-width: 1200px) {
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main-content { padding-inline: 34px; }
}

@media (max-width: 720px) {
  body {
    background-image: linear-gradient(rgba(251,235,226,.25), rgba(224,155,132,.1)), url("assets/warm-clouds-v1.png");
    background-position: 58% center;
  }
  .main-content { margin-left: 0; padding: max(28px, env(safe-area-inset-top)) 16px 35px; }
  .topbar { margin-bottom: 20px; }
  .topbar h1 { font-size: 45px; margin-top: 10px; }
  .mobile-brand { display: block; color: #b35b3d; }
  .greeting-note { font-size: 10px !important; }
  .quick-capture { width: 100%; min-height: 50px; margin-bottom: 18px; }
  .focus-banner { min-height: 166px; padding: 28px 24px; border-radius: 23px; background: rgba(255,248,242,.65); }
  .focus-banner h2 { font-size: 26px; }
  .card { background: rgba(255,249,244,.77); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-grid > .card { min-height: auto; }
  .brief-player { grid-template-columns: 42px 1fr; gap: 12px; padding: 16px; }
  .brief-play-icon { width: 42px; height: 42px; }
  .brief-player button { grid-column: 1 / -1; width: 100%; }
  .bottom-nav {
    background: rgba(255, 248, 243, .79);
    border-color: rgba(132,80,63,.13);
    box-shadow: 0 -8px 30px rgba(99,57,44,.07);
  }
  .bottom-nav button { color: #9b7d73; }
  .bottom-nav button.active { color: #ca5d32; }
  .floating-add {
    border-color: rgba(248,226,215,.9);
    background: linear-gradient(145deg, #f08b50, #d96534);
    box-shadow: 0 9px 25px rgba(190,77,37,.27), inset 0 1px 0 rgba(255,255,255,.35);
  }
}

/* Daily brief, market recap and dated task calendar */
.dashboard-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.digest-card, .market-brief-card, .skills-preview-card {
  grid-column: 1 / -1;
  min-height: auto !important;
}
.digest-card::after { opacity: .34; }
.daily-judgment {
  position: relative;
  z-index: 1;
  margin: 17px 0 14px;
  padding: 13px 15px;
  border-left: 3px solid #dd7545;
  border-radius: 0 12px 12px 0;
  color: #664a41;
  background: rgba(244, 218, 205, .48);
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
  font-size: 14px;
  line-height: 1.65;
}
.home-intel-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}
.home-intel-list a {
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid rgba(163, 96, 73, .1);
  border-radius: 13px;
  color: #4e352e;
  background: rgba(255, 249, 244, .48);
  text-decoration: none;
  transition: .18s ease;
}
.home-intel-list a:hover { transform: translateY(-1px); background: rgba(255, 252, 248, .82); }
.home-intel-list a > span { color: #cb6d45; font-family: Georgia, serif; font-size: 15px; }
.home-intel-list a div { min-width: 0; display: grid; gap: 3px; }
.home-intel-list small { color: #a47b6e; font-size: 8px; }
.home-intel-list strong { overflow: hidden; color: #4b322b; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.home-intel-list a > b { color: #bd6a4b; font-size: 10px; }
.brief-empty { margin: 18px 0 0; color: #91776e; font-size: 11px; }

.market-brief-card { position: relative; overflow: hidden; }
.market-brief-card::before {
  content: "";
  position: absolute;
  inset: auto -25px -45px auto;
  width: 190px;
  height: 150px;
  border-radius: 50%;
  background: rgba(225, 131, 88, .09);
  filter: blur(2px);
}
.market-conclusion { position: relative; margin: 17px 0 14px; color: #4d332c; font-family: Georgia, "Songti SC", serif; font-size: 16px; line-height: 1.55; }
.market-index-row { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.market-index {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 4px 10px;
  padding: 13px 14px;
  border-radius: 13px;
  color: #684b42;
  background: rgba(244, 220, 207, .48);
}
.market-index span { grid-column: 1 / -1; color: #98746a; font-size: 8px; }
.market-index strong { font-family: Georgia, serif; font-size: 16px; }
.market-index b { font-size: 10px; }
.market-index .down { color: #bd4e3f; }
.market-index .up { color: #2f8366; }
.market-sector-line { position: relative; display: flex; flex-wrap: wrap; gap: 7px 18px; margin-top: 12px; color: #876a61; font-size: 9px; line-height: 1.5; }
.market-disclaimer { position: relative; margin: 12px 0 0; color: #a58980; font-size: 8px; }

.market-brief-detail {
  margin: -5px 0 34px;
  padding: 25px;
  border: 1px solid rgba(255,255,255,.66);
  border-radius: 22px;
  color: #4a322b;
  background: rgba(255,249,244,.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(19px);
  -webkit-backdrop-filter: blur(19px);
}
.market-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.market-detail-head h2 { margin: 7px 0 0; color: #3d2924; font-family: Georgia, "Songti SC", serif; font-size: 25px; }
.market-date-pill { padding: 7px 10px; border-radius: 999px; color: #a15b42; background: rgba(240, 211, 197, .55); font-size: 8px; white-space: nowrap; }
.market-detail-conclusion { margin: 19px 0; padding: 14px 16px; border-radius: 13px; color: #5b3d34; background: rgba(241, 213, 199, .45); font-family: Georgia, "Songti SC", serif; font-size: 15px; line-height: 1.65; }
.market-index-row.detail .market-index { padding: 15px; background: rgba(248, 228, 218, .55); }
.market-index-row.detail .market-index strong { font-size: 19px; }
.market-detail-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 12px; margin-top: 13px; }
.market-detail-grid section, .market-impact { padding: 16px; border: 1px solid rgba(160, 102, 81, .09); border-radius: 14px; background: rgba(255, 250, 246, .43); }
.market-detail-grid section > span, .market-impact > span, .market-watch > span { color: #b66142; font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.market-detail-grid ol { margin: 10px 0 0; padding-left: 18px; color: #71564d; font-size: 10px; line-height: 1.75; }
.market-detail-grid p { margin: 10px 0 0; color: #71564d; font-size: 10px; line-height: 1.65; }
.market-detail-grid p strong { display: inline-grid; width: 21px; height: 21px; margin-right: 7px; place-items: center; border-radius: 7px; color: #af5a3c; background: rgba(239, 211, 197, .58); font-size: 8px; }
.market-impact { margin-top: 12px; }
.market-impact p { margin: 8px 0 0; color: #6b5149; font-size: 10px; line-height: 1.75; }
.market-watch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding: 13px 15px; border-radius: 13px; background: rgba(239, 215, 202, .42); }
.market-watch strong { padding: 5px 8px; border-radius: 8px; color: #704d41; background: rgba(255,250,246,.7); font-size: 9px; }
.market-sources { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; margin-top: 14px; }
.market-sources a, .news-source-link { color: #b15c3d; font-size: 8px; font-weight: 700; text-decoration: none; }
.market-sources small { margin-left: auto; color: #9d837a; font-size: 8px; }
.news-source-link { display: inline-block; margin-top: 12px; }

.calendar-popover[hidden] { display: none; }
.calendar-popover {
  position: fixed;
  z-index: 75;
  left: 121px;
  top: 88px;
  width: 344px;
  max-height: calc(100vh - 150px);
  overflow: auto;
  padding: 20px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 25px;
  color: #4d342d;
  background: rgba(255, 248, 243, .9);
  box-shadow: 0 26px 70px rgba(91, 50, 38, .2), inset 0 1px 0 rgba(255,255,255,.85);
  backdrop-filter: blur(28px) saturate(120%);
  -webkit-backdrop-filter: blur(28px) saturate(120%);
}
.nav-item.calendar-open { color: #c95f32; background: rgba(255,248,242,.88); box-shadow: 0 8px 20px rgba(136,72,52,.09); }
.calendar-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.calendar-head > div:first-child { display: grid; gap: 5px; }
.calendar-head strong { font-family: Georgia, "Songti SC", serif; font-size: 19px; }
.calendar-actions { display: flex; gap: 5px; }
.calendar-actions button, .calendar-selected-summary button, .notification-button {
  border: 0;
  border-radius: 9px;
  color: #9c583f;
  background: rgba(240, 211, 198, .5);
  cursor: pointer;
}
.calendar-actions button { width: 29px; height: 29px; padding: 0; font-size: 14px; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.calendar-weekdays { margin: 18px 0 7px; color: #a2877e; font-size: 8px; text-align: center; }
.calendar-grid { gap: 4px; }
.calendar-day {
  position: relative;
  min-width: 0;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  border-radius: 11px;
  color: #6e554d;
  background: transparent;
  cursor: pointer;
  font-size: 10px;
}
.calendar-day:hover { background: rgba(239, 211, 198, .42); }
.calendar-day.outside { color: #c2aaa2; }
.calendar-day.today { box-shadow: inset 0 0 0 1px rgba(209, 105, 61, .46); }
.calendar-day.selected { color: white; background: linear-gradient(145deg, #ec824d, #d76535); box-shadow: 0 6px 14px rgba(194,83,44,.2); }
.calendar-day i { position: absolute; right: 2px; bottom: 2px; min-width: 13px; height: 13px; padding: 0 3px; display: grid; place-items: center; border-radius: 999px; color: #b65a3a; background: #f2d5c8; font-size: 7px; font-style: normal; }
.calendar-day.selected i { color: #b35432; background: rgba(255,255,255,.84); }
.calendar-selected-summary { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 5px 10px; margin-top: 15px; padding: 13px; border-radius: 14px; background: rgba(242, 218, 206, .42); }
.calendar-selected-summary span { color: #a06855; font-size: 8px; }
.calendar-selected-summary strong { grid-column: 1; font-size: 11px; }
.calendar-selected-summary button { grid-column: 2; grid-row: 1 / 3; padding: 8px 10px; font-size: 9px; font-weight: 700; }
.tomorrow-reminder { margin-top: 12px; padding: 14px; border: 1px solid rgba(157, 96, 73, .09); border-radius: 15px; background: rgba(255, 251, 247, .5); }
.tomorrow-reminder > div:first-child { display: grid; gap: 5px; }
.tomorrow-reminder > div:first-child strong { font-size: 11px; }
.tomorrow-reminder-list { display: grid; gap: 6px; margin-top: 9px; }
.tomorrow-reminder-list div { display: grid; grid-template-columns: 42px 1fr; gap: 8px; color: #72574f; font-size: 9px; }
.tomorrow-reminder-list span { color: #ad654b; }
.notification-button { width: 100%; margin-top: 11px; padding: 9px; font-size: 9px; font-weight: 700; }
.notification-button:disabled { cursor: default; opacity: .66; }
.tomorrow-reminder > p { margin: 8px 0 0; color: #a0867d; font-size: 7px; line-height: 1.5; }
#taskSectionDate { min-height: 13px; }
.reminder-choice { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px; border-radius: 12px; background: rgba(241, 217, 206, .48); cursor: pointer; }
.reminder-choice input { width: 18px; height: 18px; margin: 0; accent-color: #d76b3c; }
.reminder-choice span { display: grid; gap: 3px; }
.reminder-choice strong { color: #704c40; font-size: 10px; }
.reminder-choice small { color: #9b7e74; font-size: 8px; }

@media (max-width: 1200px) {
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .digest-card, .market-brief-card, .skills-preview-card { grid-column: auto; }
  .home-intel-list { grid-template-columns: 1fr; }
  .home-intel-list strong { white-space: normal; line-height: 1.45; }
  .market-index-row { gap: 5px; }
  .market-index { grid-template-columns: 1fr; gap: 3px; padding: 10px; }
  .market-index span { grid-column: auto; }
  .market-index strong { font-size: 13px; }
  .market-detail-head { display: grid; }
  .market-detail-head h2 { font-size: 22px; }
  .market-date-pill { justify-self: start; }
  .market-detail-grid { grid-template-columns: 1fr; }
  .market-sources small { width: 100%; margin-left: 0; }
  .calendar-popover {
    inset: auto 12px calc(76px + env(safe-area-inset-bottom)) 12px;
    width: auto;
    max-height: min(72vh, 640px);
    border-radius: 24px;
  }
  .bottom-nav { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .bottom-nav button { font-size: 7px; }
}

/* Content research rooms */
.side-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  align-content: start;
  scrollbar-width: none;
}
.side-nav::-webkit-scrollbar { display: none; }
.research-nav[data-view-target="tiktok-b2b"] { margin-top: 4px; }

.research-view { padding-bottom: 24px; }
.research-tabs {
  width: fit-content;
  max-width: 100%;
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  padding: 5px;
  border: 1px solid rgba(255,255,255,.66);
  border-radius: 15px;
  background: rgba(255,249,244,.56);
  box-shadow: 0 10px 28px rgba(105,58,45,.07), inset 0 1px 0 rgba(255,255,255,.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.research-tabs button {
  border: 0;
  border-radius: 11px;
  padding: 10px 15px;
  color: #98776c;
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  white-space: nowrap;
}
.research-tabs button.active {
  color: #9b4f32;
  background: rgba(255,250,246,.92);
  box-shadow: 0 5px 14px rgba(129,68,50,.08);
  font-weight: 700;
}
.research-page-intro { margin-bottom: 19px; }
.research-page-intro h2 { max-width: 820px; font-size: clamp(31px, 4vw, 50px); }
.research-page-intro p { max-width: 760px; }
.research-page-intro small {
  display: block;
  margin-top: 13px;
  color: #a18075;
  font-size: 9px;
}
.research-principle {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 18px;
  padding: 20px 23px;
  border: 1px solid rgba(255,255,255,.68);
  border-radius: 18px;
  background: linear-gradient(105deg, rgba(245,211,195,.72), rgba(255,249,244,.64));
  box-shadow: var(--shadow);
}
.research-principle span {
  color: #c2623c;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}
.research-principle p { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: 17px; line-height: 1.75; }
.research-signal-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.research-signal-grid article,
.research-content-card,
.finance-concern-grid article,
.creator-card,
.shop-pattern-grid article,
.research-panel {
  border: 1px solid rgba(255,255,255,.68);
  background: rgba(255,249,244,.67);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(112%);
  -webkit-backdrop-filter: blur(18px) saturate(112%);
}
.research-signal-grid article { min-height: 145px; padding: 20px; border-radius: 18px; }
.research-signal-grid strong { display: block; color: #d3673a; font-family: Georgia, serif; font-size: 30px; }
.research-signal-grid span { display: block; margin-top: 6px; font-size: 11px; font-weight: 700; }
.research-signal-grid p { margin: 8px 0 0; color: #8f7369; font-size: 9px; line-height: 1.65; }
.research-section-title { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin: 34px 2px 14px; }
.research-section-title h3,
.research-panel h3,
.research-content-card h3,
.finance-concern-grid h3,
.creator-card h3,
.shop-pattern-grid h3 {
  margin: 4px 0 0;
  color: #3d2924;
  font-family: Georgia, "Times New Roman", "Songti SC", serif;
}
.research-section-title h3 { font-size: 20px; }
.research-section-title > p { max-width: 340px; margin: 0; color: #95786e; font-size: 9px; text-align: right; }
.research-card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.research-content-card { min-height: 195px; padding: 21px; border-radius: 18px; }
.research-content-card > b { color: #d66a3d; font-family: Georgia, serif; font-size: 12px; }
.research-content-card h3 { margin-top: 17px; font-size: 17px; }
.research-content-card p { min-height: 50px; margin: 9px 0 14px; color: #735a52; font-size: 10px; line-height: 1.65; }
.research-content-card small { display: block; padding-top: 12px; border-top: 1px solid rgba(136,83,63,.1); color: #a17d71; font-size: 8px; line-height: 1.6; }
.research-two-column { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 14px; margin-top: 14px; align-items: start; }
.research-panel { padding: 22px; border-radius: 19px; }
.research-panel-head { display: flex; justify-content: space-between; gap: 18px; align-items: start; margin-bottom: 15px; }
.research-panel-head h3 { font-size: 18px; }
.research-panel-head > strong { padding: 7px 10px; border-radius: 20px; color: #ae5d40; background: rgba(239,207,193,.5); font-size: 9px; }
.research-panel-head p { margin: 6px 0 0; color: #977a70; font-size: 9px; }
.research-task-list { display: grid; gap: 8px; }
.research-task {
  width: 100%;
  display: grid;
  grid-template-columns: 25px 1fr;
  gap: 11px;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(137,84,65,.09);
  border-radius: 13px;
  color: #674b42;
  background: rgba(250,235,227,.36);
  cursor: pointer;
  text-align: left;
}
.research-task > span { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid #d4a18d; border-radius: 50%; color: white; font-size: 10px; }
.research-task div { display: grid; gap: 4px; }
.research-task strong { font-size: 10px; }
.research-task small { color: #9e8177; font-size: 8px; line-height: 1.5; }
.research-task.done { opacity: .7; background: rgba(237,213,202,.58); }
.research-task.done > span { border-color: #cf6b43; background: #cf6b43; }
.research-task.done strong { text-decoration: line-through; }
.research-score-list { margin: 0; padding: 0; list-style: none; counter-reset: research-score; display: grid; gap: 9px; }
.research-score-list li { counter-increment: research-score; display: grid; grid-template-columns: 24px 1fr; gap: 9px; align-items: center; color: #72584f; font-size: 9px; line-height: 1.5; }
.research-score-list li::before { content: counter(research-score); width: 22px; height: 22px; display: grid; place-items: center; border-radius: 8px; color: #b15b3d; background: rgba(239,208,194,.55); font-family: Georgia, serif; font-size: 9px; }
.research-note-panel { display: grid; grid-template-columns: minmax(220px, .75fr) minmax(0, 1.25fr); gap: 22px; margin-top: 14px; }
.research-note-panel p,
.research-source-panel p { margin: 7px 0 0; color: #94786e; font-size: 9px; line-height: 1.6; }
.research-note-panel textarea { min-height: 120px; margin: 0; resize: vertical; border-color: rgba(145,87,66,.1); background: rgba(255,252,248,.62); font-size: 10px; line-height: 1.7; }
.research-source-panel { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr); gap: 24px; margin-top: 14px; }
.research-source-panel > div:last-child { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.research-source-panel a { display: flex; justify-content: space-between; gap: 8px; align-items: center; padding: 12px; border-radius: 12px; color: #765448; background: rgba(245,222,211,.44); font-size: 9px; text-decoration: none; }
.research-source-panel a:hover { background: rgba(242,210,195,.72); }
.research-source-panel a b { color: #d2693e; }

.finance-concern-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 11px; }
.finance-concern-grid article { min-height: 190px; display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 18px 15px; border-radius: 17px; }
.finance-concern-grid article > b { color: #d16b42; font-family: Georgia, serif; font-size: 11px; }
.finance-concern-grid h3 { font-size: 15px; }
.finance-concern-grid p { margin: 10px 0; color: #765e55; font-size: 9px; line-height: 1.65; }
.finance-concern-grid small { color: #a17f73; font-size: 8px; line-height: 1.55; }
.creator-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.creator-card { min-height: 170px; padding: 19px; border-radius: 18px; color: inherit; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.creator-card:hover { transform: translateY(-2px); background: rgba(255,252,248,.84); }
.creator-card > span { color: #c76540; font-size: 8px; font-weight: 700; letter-spacing: .06em; }
.creator-card h3 { margin-top: 8px; font-size: 18px; }
.creator-card p { min-height: 45px; margin: 10px 0 15px; color: #856b62; font-size: 9px; line-height: 1.65; }
.creator-card > b { color: #bd6241; font-size: 8px; }
.research-workflow { display: grid; gap: 12px; }
.research-workflow > div { display: grid; grid-template-columns: 30px 1fr; gap: 11px; }
.research-workflow > div > b { color: #d06b43; font-family: Georgia, serif; font-size: 10px; }
.research-workflow span { display: grid; gap: 4px; }
.research-workflow strong { font-size: 10px; }
.research-workflow p { margin: 0; color: #8d7167; font-size: 8px; line-height: 1.6; }
.safety-panel { background: linear-gradient(145deg, rgba(242,218,207,.76), rgba(255,249,244,.68)); }
.safety-panel ul { margin: 0; padding-left: 18px; display: grid; gap: 10px; color: #73584f; font-size: 9px; line-height: 1.55; }

.shop-pattern-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.shop-pattern-grid article { min-height: 200px; padding: 19px; border-radius: 18px; }
.shop-pattern-grid article > div { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.shop-pattern-grid article > div b { color: #d2693f; font-family: Georgia, serif; }
.shop-pattern-grid article > div span { padding: 5px 8px; border-radius: 20px; color: #9c634e; background: rgba(240,210,197,.48); font-size: 7px; }
.shop-pattern-grid h3 { margin-top: 15px; font-size: 18px; }
.shop-pattern-grid article > strong { display: block; margin-top: 11px; color: #a9593d; font-size: 9px; }
.shop-pattern-grid p { margin: 8px 0 0; color: #82685f; font-size: 9px; line-height: 1.65; }
.timeline-panel { margin-top: 14px; }
.video-timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.video-timeline > div { min-height: 116px; padding: 15px; border-left: 1px solid rgba(139,82,62,.1); }
.video-timeline > div:first-child { border-left: 0; }
.video-timeline span { color: #c76540; font-size: 8px; font-weight: 700; }
.video-timeline strong { display: block; margin: 7px 0; font-family: Georgia, "Songti SC", serif; font-size: 16px; }
.video-timeline p { margin: 0; color: #8e7167; font-size: 8px; line-height: 1.6; }

@media (max-width: 1100px) {
  .research-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finance-concern-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finance-concern-grid article:last-child { grid-column: 1 / -1; min-height: auto; }
}

@media (max-width: 720px) {
  .research-tabs { width: 100%; overflow-x: auto; margin: 0 0 18px; }
  .research-tabs button { flex: 1 0 auto; padding: 10px 12px; }
  .research-page-intro h2 { font-size: 31px; }
  .research-principle { grid-template-columns: 1fr; gap: 8px; padding: 18px; }
  .research-principle p { font-size: 15px; }
  .research-signal-grid,
  .research-card-grid,
  .research-two-column,
  .finance-concern-grid,
  .creator-grid,
  .shop-pattern-grid,
  .research-note-panel,
  .research-source-panel { grid-template-columns: 1fr; }
  .research-section-title { align-items: start; }
  .research-section-title > p { display: none; }
  .research-content-card,
  .finance-concern-grid article,
  .creator-card,
  .shop-pattern-grid article { min-height: auto; }
  .finance-concern-grid article:last-child { grid-column: auto; }
  .research-content-card p,
  .creator-card p { min-height: auto; }
  .research-source-panel > div:last-child { grid-template-columns: 1fr; }
  .video-timeline { grid-template-columns: 1fr; }
  .video-timeline > div { min-height: auto; border-left: 0; border-top: 1px solid rgba(139,82,62,.1); }
  .video-timeline > div:first-child { border-top: 0; }
}

/* Shared workspace accounts and owner console */
[hidden] { display: none !important; }
.account-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid rgba(133, 81, 62, .13);
  border-radius: 999px;
  color: #704b3e;
  background: rgba(255, 249, 245, .66);
  box-shadow: 0 8px 24px rgba(106, 60, 45, .06);
  cursor: pointer;
}
.account-button:hover { background: rgba(255, 252, 249, .9); }
.account-button > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #bca8a0;
  box-shadow: 0 0 0 4px rgba(188, 168, 160, .13);
}
.account-button > span.online { background: #55a77a; box-shadow: 0 0 0 4px rgba(85, 167, 122, .14); }
.account-button > span.pending { background: #e2a248; box-shadow: 0 0 0 4px rgba(226, 162, 72, .15); }
.account-button b { font-size: 9px; letter-spacing: .03em; }
.account-modal { width: min(470px, 100%); }
.account-modal h2 { margin-bottom: 12px; overflow-wrap: anywhere; }
.account-explain { margin: 0 0 22px; color: #80675f; font-size: 11px; line-height: 1.75; }
.account-footnote { margin: 12px 0 0; color: #a18479; font-size: 9px; text-align: center; }
.account-actions { display: flex; align-items: center; gap: 10px; margin-top: 24px; }

.admin-summary-card,
.admin-invite-card,
.member-card,
.pending-invites,
.trash-panel {
  border: 1px solid rgba(145, 87, 66, .1);
  border-radius: 21px;
  background: rgba(255, 249, 245, .63);
  box-shadow: 0 16px 42px rgba(91, 50, 38, .055);
}
.admin-summary-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px; }
.admin-summary-card h3,
.admin-invite-card h3,
.trash-panel h3 { margin: 7px 0 5px; font-family: Georgia, "Songti SC", serif; font-size: 21px; }
.admin-summary-card p,
.admin-invite-card p,
.trash-panel p { margin: 0; color: #866b61; font-size: 10px; line-height: 1.65; }
.admin-invite-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .8fr); gap: 28px; align-items: center; margin-top: 14px; padding: 24px; }
.admin-invite-card > div:last-child { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.member-admin-list { display: grid; gap: 14px; margin-top: 14px; }
.member-card { padding: 22px; }
.member-card-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.member-card-head > div:first-child > span {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  color: #a45f45;
  background: rgba(235, 200, 185, .42);
  font-size: 8px;
  font-weight: 700;
}
.member-card h3 { margin: 8px 0 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.member-actions { display: flex; gap: 7px; }
.member-actions button,
.trash-row button {
  border: 1px solid rgba(153, 94, 72, .14);
  border-radius: 9px;
  padding: 7px 10px;
  color: #8b503b;
  background: rgba(255, 255, 255, .64);
  font-size: 9px;
  cursor: pointer;
}
.member-permission-grid { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: 11px; margin-top: 20px; }
.member-permission-grid label { display: grid; grid-template-columns: 1fr 92px; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 11px; background: rgba(244, 222, 212, .27); }
.member-permission-grid label > span { color: #765a50; font-size: 9px; }
.member-permission-grid select { padding: 7px 8px; border-radius: 8px; font-size: 9px; }
.owner-permission-note,
.admin-empty { margin: 18px 0 0; color: #9a7b70; font-size: 9px; }
.pending-invites { padding: 22px; }
.pending-invites > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(139, 82, 62, .08); }
.pending-invites > div:last-child { border-bottom: 0; }
.pending-invites strong { font-size: 10px; overflow-wrap: anywhere; }
.pending-invites span { color: #94766b; font-size: 9px; }
.trash-panel { display: grid; grid-template-columns: minmax(220px, .55fr) minmax(0, 1fr); gap: 30px; padding: 24px; }
.trash-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid rgba(139, 82, 62, .08); }
.trash-row:last-child { border-bottom: 0; }
.trash-row > span { display: grid; gap: 4px; }
.trash-row strong { color: #65483e; font-size: 10px; }
.trash-row small { color: #9f8277; font-size: 8px; }

[data-edit-module]:disabled,
.cloud-public button:disabled,
.cloud-public textarea:disabled,
.cloud-public input:disabled,
.cloud-public select:disabled { cursor: not-allowed; opacity: .55; }

@media (max-width: 980px) {
  .member-permission-grid { grid-template-columns: repeat(2, minmax(145px, 1fr)); }
}

@media (max-width: 720px) {
  .top-actions { align-self: flex-start; }
  .account-button { min-height: 36px; padding: 7px 10px; background: rgba(255, 249, 245, .82); }
  .account-button b { font-size: 8px; }
  .account-actions { align-items: stretch; flex-direction: column; }
  .admin-summary-card { padding: 18px; }
  .admin-summary-card h3,
  .admin-invite-card h3,
  .trash-panel h3 { font-size: 18px; }
  .admin-invite-card,
  .trash-panel { grid-template-columns: 1fr; gap: 18px; padding: 18px; }
  .admin-invite-card > div:last-child { grid-template-columns: 1fr; }
  .member-card { padding: 17px; }
  .member-card-head { align-items: stretch; flex-direction: column; }
  .member-permission-grid { grid-template-columns: 1fr; }
  .pending-invites > div { align-items: flex-start; flex-direction: column; gap: 5px; }
}
