/* Shen Assistant shared theme: polished, professional, calm, and high-quality. */
:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --ink: #172033;
  --muted: #647084;
  --line: #d9e2ec;
  --paper: #ffffff;
  --nav: #101827;
  --blue: #356a9f;
  --green: #2d8a7b;
  --orange: #c68642;
  --rose: #a85d72;
  --purple: #6d5fa7;
  --gold: #b9975b;
  --cyan: #2d8190;
  --forest: #3f7b5b;
  --pink: #a96482;
  --grayblue: #607089;
  --warm: #b0784d;
  --gray: #727987;
  --soft: #f7f9fc;
  --soft-blue: #eaf2fb;
  --soft-green: #e8f5f1;
  --soft-orange: #fbf1e6;
  --soft-rose: #f8edf1;
  --soft-purple: #f0eef8;
  --soft-gold: #f7f0e3;
  --soft-cyan: #e8f3f5;
  --soft-forest: #eaf3ed;
  --soft-pink: #f7eef2;
  --soft-grayblue: #eef2f6;
  --soft-warm: #f8efe8;
  --soft-gray: #f3f5f8;
  --brand-rose: #a85d72;
  --brand-gold: #b9975b;
  --brand-champagne: #f7f0e3;
  --brand-jade: #2d8a7b;
  --brand-mist: #eef2f6;
  --brand-cream: #f8fafc;
  --brand-peach: #f3e5da;
  --brand-pink: #ead8df;
  --brand-lavender: #e5e2f2;
  --brand-mint: #dcefe9;
  --brand-cocoa: #5f4a58;
  --radius-card: 14px;
  --shadow-card: 0 16px 38px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  background:
    linear-gradient(180deg, #f9fbfd 0%, #f3f6fa 48%, #eef3f7 100%) !important;
  color: var(--ink) !important;
  font-family: "Microsoft JhengHei", "Noto Sans TC", Arial, sans-serif !important;
}

.app {
  background: transparent !important;
}

.side,
.sidebar {
  position: sticky !important;
  top: 0;
  align-self: start;
  height: 100vh;
  max-height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background:
    linear-gradient(180deg, #101827 0%, #162235 58%, #1f2c3f 100%) !important;
  border-right: 4px solid #b9975b !important;
  box-shadow: 12px 0 32px rgba(15, 23, 42, 0.12);
  scrollbar-width: thin;
  scrollbar-color: rgba(185, 151, 91, 0.68) rgba(255, 255, 255, 0.08);
}

.side::-webkit-scrollbar,
.sidebar::-webkit-scrollbar {
  width: 8px;
}

.side::-webkit-scrollbar-track,
.sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
}

.side::-webkit-scrollbar-thumb,
.sidebar::-webkit-scrollbar-thumb {
  background: rgba(185, 151, 91, 0.68);
  border-radius: 999px;
}

.brand,
.sidebar .brand {
  position: relative;
  display: grid !important;
  grid-template-columns: 36px minmax(0, 1fr);
  column-gap: 9px;
  align-items: center;
}

.brand::before,
.sidebar .brand::before {
  content: "\2726";
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-right: 9px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 12px;
  background: linear-gradient(135deg, #fff8e7 0%, #d9bf82 100%);
  color: #172033;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
  grid-row: 1 / span 2;
  grid-column: 1;
  margin-right: 0;
}

.brand {
  color: #fff8e7 !important;
  letter-spacing: 0 !important;
}

.brand strong {
  display: block !important;
  grid-column: 2;
  color: #fff8e7 !important;
  letter-spacing: 0 !important;
  line-height: 1.2;
  white-space: nowrap;
}

.brand-sub,
.sidebar .brand span,
.sidebar .brand small {
  display: block !important;
  grid-column: 2;
  color: #b9c4d1 !important;
  margin-top: 2px !important;
  line-height: 1.35;
  white-space: normal;
}

.nav a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 12px !important;
  color: #dbe4ee !important;
  transition: transform .18s ease, background .18s ease, border-color .18s ease !important;
}

.nav a::before {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #d9bf82;
  font-size: 13px;
  flex: 0 0 auto;
}

.nav a[href*="index"]::before { content: "\2600"; }
.nav a[href*="calendar"]::before { content: "\25A3"; }
.nav a[href*="tasks"]::before { content: "\2713"; }
.nav a[href*="activity"]::before { content: "\25B2"; }
.nav a[href*="members"]::before { content: "\2661"; }
.nav a[href*="academy"]::before { content: "\25C7"; }
.nav a[href*="garden"]::before { content: "\273F"; }
.nav a[href*="finance"]::before { content: "$"; }
.nav a[href*="alliance"]::before { content: "\25CE"; }
.nav a[href*="intelligence"]::before { content: "\2605"; }
.nav a[href*="mindmap"]::before { content: "\25A6"; }
.nav a[href*="voice"]::before { content: "\25CF"; }

.nav a:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(217, 191, 130, 0.22);
  transform: translateX(2px);
}

.nav a.active {
  background: linear-gradient(135deg, #f7f0e3 0%, #d9bf82 100%) !important;
  color: #172033 !important;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.nav a.active::before {
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(23, 32, 51, 0.12);
  color: #172033;
}

.main,
.page-wrap {
  position: relative;
}

h1,
.hero-title {
  color: #172033 !important;
  letter-spacing: 0 !important;
}

h1::after,
.hero-title::after {
  content: "";
  display: block;
  width: 76px;
  height: 5px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #b9975b, #2d8a7b);
}

.sub,
.hero-sub {
  color: #647084 !important;
}

.card,
.panel,
.summary-card,
.menu-card,
.task,
.member,
.item,
.step,
.record,
.calendar-rhythm-card,
.day-card,
.news-card,
.decision-card {
  border: 1px solid rgba(217, 226, 236, 0.96) !important;
  border-radius: var(--radius-card) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: var(--shadow-card) !important;
}

.card,
.panel,
.summary-card,
.task,
.member,
.item,
.step {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card:hover,
.panel:hover,
.summary-card:hover,
.task:hover,
.member:hover,
.item:hover,
.step:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.11) !important;
  border-color: rgba(185, 151, 91, 0.42) !important;
}

.btn,
button,
.mode-btn.active,
.who-btn.active,
.today-btn,
.back-menu-link {
  border-radius: 999px !important;
}

.btn,
button.btn,
.button,
.today-btn:hover,
.mode-btn.active,
.who-btn.active {
  background: linear-gradient(135deg, #172033 0%, #356a9f 100%) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 12px 24px rgba(53, 106, 159, 0.16);
}

.button.secondary,
.btn.secondary,
button.secondary {
  background: #ffffff !important;
  border: 1px solid #d9e2ec !important;
  color: #356a9f !important;
  box-shadow: none;
}

input,
select,
textarea {
  border-color: #d9e2ec !important;
  border-radius: 12px !important;
  background: #ffffff !important;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(53, 106, 159, 0.14);
  border-color: #356a9f !important;
}

.tag,
.badge,
.menu-badge {
  border-radius: 999px !important;
}

.hero-badge,
.back-menu-link,
.nav-bar,
.top-bar,
.upload-zone,
.note,
.rhythm-grid-toolbar {
  border-color: rgba(217, 226, 236, 0.96) !important;
  background: rgba(255, 255, 255, 0.92) !important;
}

.brand-band {
  background: linear-gradient(135deg, #172033 0%, #274765 56%, #2d8a7b 100%) !important;
  border: 1px solid rgba(217, 226, 236, 0.18) !important;
}

.hero,
.rhythm-window {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 251, 253, 0.96) 100%) !important;
}

.cockpit-panel {
  background:
    linear-gradient(180deg, rgba(16, 24, 39, .98), rgba(31, 44, 63, .98)) !important;
  border-color: rgba(217, 191, 130, .26) !important;
}

.month-grid,
.month-cell,
.month-header,
.week-day,
.day-view,
.agenda-item,
.cell-event {
  border-color: rgba(217, 226, 236, 0.88) !important;
}

.month-cell,
.week-day,
.day-view {
  background: rgba(255, 255, 255, 0.98) !important;
}

.month-header {
  background: #eef2f6 !important;
  color: #607089 !important;
}

.cell-event,
.event-card,
.agenda-item {
  border-radius: 10px !important;
}

@media (max-width: 860px) {
  .side,
  .sidebar {
    position: static !important;
    height: auto;
    max-height: none;
    overflow: visible;
    border-right: 0 !important;
    border-bottom: 4px solid #b9975b !important;
  }

  .nav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  h1 {
    font-size: clamp(30px, 10vw, 42px) !important;
  }
}

/* 2026 wealth-management visual refresh: cream, forest green, and gold. */
:root {
  --bg: #f4efe5;
  --ink: #20332a;
  --muted: #687467;
  --line: #dccfb8;
  --paper: #fffaf0;
  --nav: #f4efe5;
  --blue: #174f43;
  --green: #174f43;
  --orange: #b78432;
  --rose: #9d5d62;
  --purple: #6f5f7e;
  --gold: #b78432;
  --cyan: #2f6f68;
  --forest: #174f43;
  --soft: #fbf7ee;
  --soft-blue: #edf4ef;
  --soft-green: #e8f1e8;
  --soft-orange: #f8ecd7;
  --soft-gold: #f7ecd1;
  --brand-rose: #9d5d62;
  --brand-gold: #b78432;
  --brand-champagne: #f7ecd1;
  --brand-jade: #174f43;
  --brand-cream: #f4efe5;
  --radius-card: 12px;
  --shadow-card: 0 18px 44px rgba(57, 43, 22, 0.09);
}

html {
  font-size: clamp(15px, 0.55vw + 12px, 17px);
  text-size-adjust: 100%;
}

body {
  background:
    radial-gradient(circle at 8% 2%, rgba(183, 132, 50, .1), transparent 30%),
    linear-gradient(180deg, #f7f1e6 0%, #f1eadf 100%) !important;
  color: var(--ink) !important;
  font-size: 1rem !important;
  line-height: 1.72 !important;
}

.app {
  background: transparent !important;
}

.side,
.sidebar {
  background: rgba(244, 239, 229, .96) !important;
  color: var(--ink) !important;
  border-right: 1px solid #b78432 !important;
  box-shadow: 10px 0 32px rgba(57, 43, 22, .08) !important;
}

.brand,
.sidebar .brand {
  display: block !important;
  grid-template-columns: none !important;
  color: var(--ink) !important;
  letter-spacing: .03em !important;
}

.brand::before,
.sidebar .brand::before {
  display: none !important;
  content: none !important;
}

.brand strong,
.sidebar .brand strong {
  color: var(--ink) !important;
  font-family: Georgia, "Times New Roman", "Noto Serif TC", serif !important;
  font-size: clamp(24px, 1.5vw + 16px, 36px) !important;
  font-weight: 800 !important;
}

.brand-sub,
.sidebar .brand span,
.sidebar .brand small,
.side-note {
  color: var(--muted) !important;
  font-size: .92rem !important;
}

.nav {
  gap: 4px !important;
}

.nav a {
  display: flex !important;
  min-height: 42px;
  align-items: center;
  gap: 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  color: var(--ink) !important;
  font-size: clamp(15px, .35vw + 13px, 18px) !important;
  font-weight: 700 !important;
  letter-spacing: .02em;
  padding: 10px 14px !important;
  background: transparent !important;
  box-shadow: none !important;
}

.nav a::before {
  display: none !important;
  content: none !important;
}

.nav a:hover {
  background: rgba(23, 79, 67, .08) !important;
  color: #0f3f35 !important;
  transform: none !important;
}

.nav a.active {
  background: #174f43 !important;
  color: #fffaf0 !important;
  box-shadow: 0 12px 24px rgba(23, 79, 67, .16) !important;
}

.main,
.page-wrap {
  color: var(--ink) !important;
}

h1,
.hero-title {
  color: var(--ink) !important;
  font-family: Georgia, "Times New Roman", "Noto Serif TC", serif !important;
  font-size: clamp(34px, 3.2vw + 18px, 64px) !important;
  font-weight: 800 !important;
  line-height: 1.08 !important;
}

h2 {
  color: var(--ink) !important;
  font-size: clamp(20px, .8vw + 16px, 28px) !important;
  line-height: 1.25 !important;
}

h3,
.panel h2,
.card h2 {
  color: var(--ink) !important;
  font-size: clamp(17px, .45vw + 14px, 22px) !important;
}

h1::after,
.hero-title::after {
  width: 92px !important;
  height: 3px !important;
  background: linear-gradient(90deg, #174f43, #b78432) !important;
}

.sub,
.hero-sub,
.muted,
small {
  color: var(--muted) !important;
  font-size: clamp(13px, .28vw + 12px, 16px) !important;
}

.card,
.panel,
.summary-card,
.menu-card,
.task,
.member,
.item,
.step,
.record,
.calendar-rhythm-card,
.day-card,
.news-card,
.decision-card,
.quick-card,
.work-card,
.review-card {
  border: 1px solid rgba(183, 132, 50, .22) !important;
  border-radius: 12px !important;
  background: rgba(255, 250, 240, .96) !important;
  box-shadow: var(--shadow-card) !important;
}

.card:hover,
.panel:hover,
.summary-card:hover,
.task:hover,
.member:hover,
.item:hover,
.step:hover {
  border-color: rgba(23, 79, 67, .32) !important;
  box-shadow: 0 22px 50px rgba(57, 43, 22, .12) !important;
  transform: translateY(-1px);
}

.btn,
button.btn,
.button,
.today-btn:hover,
.mode-btn.active,
.who-btn.active {
  background: #174f43 !important;
  color: #fffaf0 !important;
  border: 1px solid #174f43 !important;
  border-radius: 999px !important;
  box-shadow: 0 12px 24px rgba(23, 79, 67, .14) !important;
  font-weight: 800 !important;
}

.button.secondary,
.btn.secondary,
button.secondary,
.mini-btn,
.step-add,
.task-delete {
  background: #fffaf0 !important;
  border: 1px solid rgba(183, 132, 50, .38) !important;
  color: #174f43 !important;
  box-shadow: none !important;
}

input,
select,
textarea {
  min-height: 42px;
  border: 1px solid rgba(183, 132, 50, .32) !important;
  border-radius: 10px !important;
  background: #fffdf7 !important;
  color: var(--ink) !important;
  font-size: 1rem !important;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(23, 79, 67, .12) !important;
  border-color: #174f43 !important;
}

.hero-badge,
.back-menu-link,
.nav-bar,
.top-bar,
.upload-zone,
.note,
.rhythm-grid-toolbar {
  border-color: rgba(183, 132, 50, .22) !important;
  background: rgba(255, 250, 240, .92) !important;
}

.brand-band {
  background: linear-gradient(135deg, #174f43 0%, #286b5f 100%) !important;
  border: 1px solid rgba(183, 132, 50, .26) !important;
}

.brand-band strong,
.brand-band span,
.brand-pill {
  color: #fffaf0 !important;
}

.hero,
.rhythm-window {
  background:
    linear-gradient(135deg, rgba(255, 250, 240, .98) 0%, rgba(247, 236, 209, .76) 100%) !important;
}

.cockpit-panel {
  background:
    linear-gradient(180deg, rgba(32, 51, 42, .98), rgba(23, 79, 67, .96)) !important;
  border-color: rgba(183, 132, 50, .36) !important;
}

.month-header {
  background: rgba(23, 79, 67, .08) !important;
  color: var(--ink) !important;
}

@media (max-width: 860px) {
  html {
    font-size: clamp(14px, 1.8vw + 10px, 16px);
  }

  .side,
  .sidebar {
    position: static !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    border-right: 0 !important;
    border-bottom: 1px solid #b78432 !important;
  }

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

  .nav a {
    min-height: 40px;
    justify-content: center;
    text-align: center;
    padding: 9px 10px !important;
  }

  h1,
  .hero-title {
    font-size: clamp(32px, 8vw, 46px) !important;
  }
}

@media (max-width: 520px) {
  .nav {
    grid-template-columns: 1fr !important;
  }

  .main,
  .page-wrap {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}

/* Visibility-first type scale: keep pages readable without oversized desktop text. */
html {
  font-size: 15px !important;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-size: 1rem !important;
  line-height: 1.62 !important;
}

body,
button,
input,
select,
textarea {
  letter-spacing: 0 !important;
}

h1,
.hero-title {
  font-size: 2rem !important;
  line-height: 1.18 !important;
}

h2,
.panel h1,
.card h1,
.section-title {
  font-size: 1.45rem !important;
  line-height: 1.25 !important;
}

h3,
.panel h2,
.card h2,
.modal h2 {
  font-size: 1.18rem !important;
  line-height: 1.32 !important;
}

p,
li,
td,
th,
label,
.nav a,
.button,
.btn,
button,
input,
select,
textarea,
.card,
.panel,
.summary-card,
.task,
.member,
.item {
  font-size: 1rem !important;
}

small,
.muted,
.sub,
.hero-sub,
.meta,
.hint,
.badge,
.tag,
.menu-badge {
  font-size: .9rem !important;
  line-height: 1.45 !important;
}

.brand strong,
.sidebar .brand strong {
  font-size: 1.55rem !important;
  line-height: 1.18 !important;
}

.nav a {
  min-height: 38px !important;
  padding: 8px 12px !important;
}

.month-cell,
.week-day,
.day-view,
.agenda-item,
.cell-event,
.event-card,
.rhythm-item,
.task-row,
.schedule-tab,
.member-row,
.customer-row {
  font-size: .95rem !important;
}

.cell-time,
.cell-title,
.agenda-item small,
.event-card small,
.rhythm-item small,
.task-meta-line,
.table-meta {
  font-size: .84rem !important;
  line-height: 1.35 !important;
}

input,
select,
textarea {
  min-height: 40px !important;
}

@media (max-width: 860px) {
  html {
    font-size: 14.5px !important;
  }

  h1,
  .hero-title {
    font-size: 1.75rem !important;
  }

  h2,
  .panel h1,
  .card h1,
  .section-title {
    font-size: 1.32rem !important;
  }

  .brand strong,
  .sidebar .brand strong {
    font-size: 1.35rem !important;
  }
}

@media (max-width: 520px) {
  html {
    font-size: 14px !important;
  }

  h1,
  .hero-title {
    font-size: 1.55rem !important;
  }

  h2,
  .panel h1,
  .card h1,
  .section-title {
    font-size: 1.2rem !important;
  }

  p,
  li,
  td,
  th,
  label,
  .nav a,
  .button,
  .btn,
  button,
  input,
  select,
  textarea,
  .card,
  .panel,
  .summary-card,
  .task,
  .member,
  .item {
    font-size: .96rem !important;
  }
}
