:root {
  color-scheme:light;
  --bg:#f5f5f0;
  --surface:#fff;
  --surface-alt:#f0f2ec;
  --text:#252f2b;
  --muted:#7a827c;
  --line:#e5e9e1;
  --green:#2c5d4d;
  --on-green:#fff;
  --green-light:#e8f0e8;
  --warm:#b66e4e;
  --shadow:0 4px 20px #253b3010
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
  font-size:14px;
  line-height:1.65
}
a {
  color:var(--green);
  text-decoration:none
}
a:hover {
  text-decoration:underline
}
button,input,textarea,select {
  font:inherit
}
button,a,input,textarea,select {
  touch-action:manipulation
}
button {
  cursor:pointer
}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible {
  outline:3px solid #90b5a4;
  outline-offset:3px
}
h1,h2,h3,p {
  margin-top:0
}
h1 {
  font-size:30px;
  line-height:1.35;
  font-weight:650;
  letter-spacing:.5px;
  margin-bottom:8px
}
h2 {
  font-size:18px;
  font-weight:620;
  line-height:1.5;
  margin-bottom:14px
}
h3 {
  font-size:15px;
  font-weight:600
}
small,.fine {
  font-size:12px
}
.muted,.fine {
  color:var(--muted)
}
.prewrap {
  white-space:pre-wrap;
  overflow-wrap:anywhere
}
.sidebar {
  position:fixed;
  inset:0 auto 0 0;
  width:232px;
  background:var(--surface);
  border-right:1px solid var(--line);
  padding:34px 22px;
  display:flex;
  flex-direction:column;
  z-index:5
}
.brand {
  display:flex;
  gap:12px;
  align-items:center;
  color:var(--text);
  font-size:23px;
  font-weight:650;
  line-height:1.2;
  padding:0 8px
}
.brand:hover {
  text-decoration:none
}
.brand small {
  display:block;
  letter-spacing:1.5px;
  font-size:8px;
  color:var(--muted);
  margin-top:7px
}
.brand-icon {
  display:grid;
  place-items:center;
  background:var(--green);
  color:var(--on-green);
  width:42px;
  height:44px;
  border-radius:13px;
  font-size:24px;
  font-weight:400
}
.nav-caption {
  font-size:10px;
  color:var(--muted);
  letter-spacing:1.6px;
  margin:48px 14px 14px
}
.sidebar nav {
  display:grid;
  gap:7px
}
.sidebar nav a {
  display:flex;
  align-items:center;
  gap:14px;
  color:var(--muted);
  padding:12px 15px;
  border-radius:8px;
  font-weight:500
}
.sidebar nav a span {
  font-size:19px;
  width:23px;
  text-align:center
}
.sidebar nav a:hover,.sidebar nav a.active {
  color:var(--green);
  background:var(--green-light);
  text-decoration:none
}
.sidebar-bottom {
  margin-top:auto;
  padding:20px 10px 0;
  color:var(--muted);
  font-size:11px
}
.sidebar-bottom p {
  margin:13px 0 3px
}
.live-dot {
  display:inline-block;
  width:7px;
  height:7px;
  background:#75a089;
  border-radius:50%;
  margin-right:6px
}
.main-shell {
  margin-left:232px
}
.topbar {
  height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 42px;
  border-bottom:1px solid var(--line);
  color:var(--muted);
  font-size:12px
}
.theme-button {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:7px;
  color:var(--muted);
  padding:7px 12px
}
.theme-button span {
  font-size:11px;
  margin-left:5px
}
main {
  max-width:1370px;
  margin:auto;
  padding:34px 42px 50px
}
.page-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:28px
}
.page-heading p {
  color:var(--muted);
  margin-bottom:0
}
.eyebrow {
  font-size:9px;
  letter-spacing:1.9px;
  color:var(--muted);
  margin-bottom:10px
}
.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  border:1px solid transparent;
  border-radius:7px;
  padding:10px 18px;
  font-size:13px;
  font-weight:550;
  white-space:nowrap;
  min-height:42px
}
.button:hover {
  text-decoration:none;
  filter:brightness(.96)
}
.primary {
  background:var(--green);
  color:var(--on-green)
}
.secondary {
  background:var(--surface);
  border-color:var(--line);
  color:var(--text)
}
.text-button {
  border:0;
  background:none;
  padding:2px 0;
  color:var(--green)
}
.danger {
  color:#b15d51
}
.card {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:12px;
  padding:24px;
  box-shadow:0 2px 4px #20332a02
}
.hero {
  min-height:247px;
  background:#254e42;
  border-radius:13px;
  color:#f7f6e9;
  display:flex;
  overflow:hidden;
  position:relative;
  padding:30px 34px;
  margin-bottom:22px
}
.hero h2 {
  font-size:27px;
  letter-spacing:1px;
  margin:14px 0 10px;
  line-height:1.45;
  font-weight:500
}
.hero p {
  font-size:12px;
  color:#bccfc2;
  margin-bottom:20px
}
.pill {
  display:inline-block;
  padding:3px 9px;
  border-radius:5px;
  background:var(--surface-alt);
  font-size:10px;
  color:var(--muted)
}
.pill.light {
  color:#d8e2d4;
  background:#ffffff14;
  border:1px solid #ffffff18
}
.hero-link {
  color:#f4f3df;
  font-size:12px
}
.hero-art {
  position:absolute;
  width:340px;
  height:260px;
  right:4%;
  top:15px;
  opacity:.9
}
.sun {
  position:absolute;
  width:94px;
  height:94px;
  border-radius:50%;
  background:#d8c79c;
  top:48px;
  left:130px;
  box-shadow:0 0 80px #e5cc8c15
}
.orbit {
  position:absolute;
  border:1px solid #b6c5a554;
  border-radius:50%;
  width:290px;
  height:140px;
  transform:rotate(-35deg);
  left:20px;
  top:88px
}
.orbit-two {
  transform:rotate(36deg);
  left:43px;
  top:88px
}
.art-label {
  position:absolute;
  bottom:10px;
  left:110px;
  font-size:8px;
  letter-spacing:3px;
  color:#b7c8b8
}
.stats-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
  margin-bottom:25px
}
.stat {
  display:block;
  min-height:137px;
  padding:19px 22px
}
.stat:hover {
  text-decoration:none
}
.stat>span {
  font-size:11px;
  color:var(--muted)
}
.stat strong {
  display:block;
  font-size:31px;
  line-height:1.4;
  font-weight:550;
  margin-top:6px;
  color:var(--text)
}
.stat strong.small-stat {
  font-size:16px;
  margin-top:17px;
  margin-bottom:9px
}
.stat small {
  font-size:12px;
  color:var(--muted);
  font-weight:400
}
.stat p {
  font-size:10px;
  color:var(--muted);
  margin:6px 0 0
}
.stat strong.warm-text {
  color:var(--warm)
}
progress {
  appearance:none;
  width:100%;
  height:4px;
  display:block;
  margin-top:13px;
  border:0;
  border-radius:3px;
  overflow:hidden;
  background:var(--line)
}
progress::-webkit-progress-bar {
  background:var(--line)
}
progress::-webkit-progress-value {
  background:var(--green)
}
progress::-moz-progress-bar {
  background:var(--green)
}
.dashboard-grid {
  display:grid;
  grid-template-columns:1.45fr 1fr;
  gap:22px
}
.section-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px
}
.section-heading h2 {
  margin:0
}
.section-heading>a {
  font-size:10px;
  color:var(--muted)
}
.count {
  font-size:11px;
  background:var(--surface-alt);
  padding:1px 6px;
  border-radius:4px;
  margin-left:6px;
  color:var(--muted)
}
.task-row {
  display:flex;
  gap:13px;
  align-items:center;
  padding:19px 0;
  border-bottom:1px solid var(--line)
}
.task-row:last-child {
  border:0
}
.task-check {
  background:transparent;
  width:20px;
  height:20px;
  border:1px solid #bbc7bd;
  border-radius:6px;
  display:grid;
  place-items:center;
  color:var(--green);
  padding:0
}
.is-done .task-check {
  background:var(--green-light);
  border-color:var(--green)
}
.is-done .task-title {
  text-decoration:line-through;
  color:var(--muted)
}
.task-main {
  min-width:0;
  flex:1
}
.task-title {
  color:var(--text);
  font-size:13px;
  overflow-wrap:anywhere
}
.task-meta {
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:10px;
  margin-top:4px
}
.overdue {
  color:#b86e52
}
.priority {
  font-size:9px;
  padding:3px 8px;
  border-radius:5px;
  white-space:nowrap
}
.p1 {
  background:#fbede7;
  color:#b47259
}
.p2 {
  background:#f6f2df;
  color:#99844b
}
.p3 {
  background:#eaf1ed;
  color:#6d9280
}
.subtle-link {
  font-size:10px;
  color:var(--muted)
}
.empty {
  text-align:center;
  padding:43px 22px;
  color:var(--muted)
}
.empty-icon {
  font-size:27px;
  color:#a9b9ab;
  display:block;
  margin-bottom:12px
}
.empty h3 {
  color:var(--text);
  font-size:14px;
  margin-bottom:7px
}
.empty p {
  font-size:12px;
  max-width:340px;
  margin:0 auto 16px
}
.empty a {
  font-size:12px
}
.empty.compact {
  padding:22px
}
.ai-card {
  background:var(--surface)
}
.message-preview {
  padding:18px 0;
  border-bottom:1px solid var(--line)
}
.message-preview:last-child {
  border:0
}
.message-preview h3 {
  margin:8px 0
}
.message-preview h3 a {
  color:var(--text)
}
.message-preview p {
  font-size:12px;
  color:var(--muted);
  overflow-wrap:anywhere
}
.message-preview time {
  font-size:10px;
  color:var(--muted)
}
.journal-preview {
  padding:20px 0;
  border-bottom:1px solid var(--line)
}
.journal-preview:last-child {
  border:0
}
.journal-preview>.muted {
  font-size:11px
}
.journal-preview p {
  font-size:12px;
  margin:10px 0
}
.journal-preview a {
  font-size:11px
}
.next-card {
  background:var(--surface-alt)
}
.next-card>p {
  font-size:12px;
  color:var(--muted)
}
.module-row {
  display:flex;
  justify-content:space-between;
  font-size:11px;
  border-top:1px solid var(--line);
  padding:11px 0
}
.module-row:last-child {
  padding-bottom:0
}
footer {
  display:flex;
  justify-content:space-between;
  margin:0 42px;
  padding:20px 0 24px;
  border-top:1px solid var(--line);
  color:var(--muted);
  font-size:10px
}
.toolbar {
  display:flex;
  gap:16px;
  justify-content:space-between;
  align-items:center;
  margin-bottom:22px;
  flex-wrap:wrap
}
.tabs {
  display:flex;
  gap:5px;
  flex-wrap:wrap
}
.tabs a {
  padding:7px 13px;
  border-radius:7px;
  font-size:12px;
  color:var(--muted)
}
.tabs a.selected {
  background:var(--green-light);
  color:var(--green)
}
.tabs a:hover {
  text-decoration:none;
  background:var(--surface-alt)
}
.search {
  display:flex;
  gap:8px;
  align-items:center
}
.search input {
  max-width:250px
}
.search button {
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:6px;
  color:var(--text);
  padding:8px 13px;
  white-space:nowrap
}
.task-list {
  padding-top:5px;
  padding-bottom:5px
}
.back-link {
  display:inline-block;
  margin-bottom:22px;
  font-size:12px
}
.form-card {
  max-width:800px;
  padding:30px
}
.stack {
  display:grid;
  gap:20px
}
.stack label,.feedback-form label {
  display:grid;
  gap:7px;
  font-size:12px;
  font-weight:500
}
.stack label .fine {
  font-weight:400
}
input,textarea,select {
  width:100%;
  border:1px solid var(--line);
  background:var(--surface);
  color:var(--text);
  padding:10px 12px;
  border-radius:6px;
  min-width:0
}
input:focus,textarea:focus,select:focus {
  border-color:#86a28f
}
textarea {
  resize:vertical;
  line-height:1.8
}
.form-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px
}
.form-actions {
  display:flex;
  gap:10px;
  padding-top:7px
}
.form-bottom {
  border-top:1px solid var(--line);
  padding-top:20px;
  margin-top:25px
}
.sharing-box {
  padding:20px;
  background:var(--surface-alt);
  border-radius:8px
}
.sharing-box label {
  margin-bottom:16px
}
.checkbox {
  display:flex!important;
  gap:9px!important;
  align-items:center;
  font-weight:400!important
}
.checkbox input {
  width:16px;
  height:16px;
  accent-color:var(--green)
}
.journal-search {
  margin-bottom:24px;
  flex-wrap:wrap
}
.journal-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px
}
.journal-item time {
  color:var(--muted);
  font-size:12px
}
.journal-item h2 {
  margin-top:22px
}
.journal-item>p {
  font-size:13px
}
.journal-item>a {
  font-size:12px
}
.message-tabs {
  margin-bottom:20px
}
.message-list {
  display:grid;
  gap:20px;
  max-width:950px
}
.message-item {
  padding:28px
}
.message-item h2 {
  margin:20px 0 6px
}
.message-item>.muted {
  font-size:11px
}
.message-content {
  margin:22px 0
}
.status {
  font-size:11px;
  color:var(--green)
}
details {
  border-top:1px solid var(--line);
  margin-top:15px;
  padding-top:13px;
  font-size:12px
}
summary {
  cursor:pointer;
  color:var(--muted)
}
.feedback-form {
  display:grid;
  grid-template-columns:130px 1fr auto;
  gap:15px;
  align-items:end;
  padding-top:20px;
  margin-top:20px;
  border-top:1px solid var(--line)
}
.feedback-form textarea {
  min-height:70px
}
.feedback-form .button {
  margin-bottom:2px
}
.notice {
  border:1px solid #d2e2d3;
  border-radius:7px;
  padding:13px 17px;
  font-size:12px;
  color:var(--green);
  background:var(--green-light);
  margin-bottom:22px
}
.agent-section {
  margin-top:22px
}
.agent-list {
  padding-left:20px
}
.agent-list li {
  padding:10px 0;
  border-bottom:1px solid var(--line)
}
.agent-list li p {
  font-size:12px;
  color:var(--muted);
  margin:6px 0
}
.agent-message {
  border-bottom:1px solid var(--line);
  padding:18px 0
}
.feedback-note {
  background:var(--surface-alt);
  padding:12px;
  border-radius:5px;
  font-size:12px;
  white-space:pre-wrap;
  overflow-wrap:anywhere
}
.scope-list {
  display:flex;
  flex-wrap:wrap;
  gap:12px 22px;
  margin:15px 0
}
.scope-list label {
  font-size:11px
}
.account-row {
  padding:22px 0 10px;
  border-top:1px solid var(--line)
}
.token-action {
  padding:0 0 20px
}
.table-scroll {
  overflow-x:auto
}
table {
  border-collapse:collapse;
  width:100%;
  text-align:left;
  font-size:11px
}
td,th {
  padding:12px 8px;
  border-bottom:1px solid var(--line);
  white-space:nowrap
}
th {
  color:var(--muted);
  font-weight:500
}
fieldset {
  border:1px solid var(--line);
  border-radius:6px
}
legend {
  font-size:12px
}
.public-shell {
  max-width:1300px;
  margin:auto
}
.public-shell .topbar {
  border:0
}
.login-layout {
  display:grid;
  grid-template-columns:1.1fr 1fr;
  gap:80px;
  align-items:center;
  max-width:1000px;
  margin:70px auto 100px
}
.login-intro h1 {
  font-size:55px;
  line-height:1.35;
  color:var(--green);
  font-weight:550;
  margin:24px 0
}
.login-intro p {
  color:var(--muted);
  line-height:2
}
.intro-mark {
  font-size:23px;
  letter-spacing:3px;
  margin-top:65px;
  color:var(--green)
}
.intro-mark span {
  font-size:9px;
  letter-spacing:2px;
  margin-left:12px
}
.login-card {
  padding:38px;
  box-shadow:var(--shadow)
}
.login-card h2 {
  font-size:25px;
  margin-top:18px;
  margin-bottom:8px
}
.login-card .stack {
  margin-top:26px
}
.login-card .fine {
  margin-top:22px;
  margin-bottom:0
}
.error-card {
  max-width:650px;
  margin:60px auto;
  padding:40px
}
.error-card .button {
  margin-right:10px;
  margin-top:10px
}

@media(prefers-color-scheme:dark) {
  :root:not([data-theme=light]) {
  color-scheme:dark;
  --bg:#151d19;
  --surface:#1e2822;
  --surface-alt:#25322a;
  --text:#e0e6df;
  --muted:#9aa99e;
  --line:#334037;
  --green:#9dc7aa;
  --on-green:#183523;
  --green-light:#2b4032;
  --shadow:0 4px 20px #0002
}

}
:root[data-theme=dark] {
  color-scheme:dark;
  --bg:#151d19;
  --surface:#1e2822;
  --surface-alt:#25322a;
  --text:#e0e6df;
  --muted:#9aa99e;
  --line:#334037;
  --green:#9dc7aa;
  --on-green:#183523;
  --green-light:#2b4032;
  --shadow:0 4px 20px #0002
}
:root[data-theme=dark] .primary {
  color:#183523
}
:root[data-theme=dark] .brand-icon {
  color:#183523
}

@media(max-width:1200px) {
  .sidebar {
  width:205px;
  padding:30px 15px
}
.main-shell {
  margin-left:205px
}
main {
  padding:28px
}
.topbar {
  padding:0 28px
}
.stats-grid {
  gap:12px
}
.stat {
  padding:17px
}
.hero-art {
  right:-3%;
  opacity:.65
}
.dashboard-grid {
  grid-template-columns:1.2fr 1fr;
  gap:18px
}
footer {
  margin:0 28px
}

}

@media(max-width:900px) {
  .sidebar {
  width:178px;
  padding:25px 10px
}
.sidebar nav a {
  gap:7px;
  font-size:12px;
  padding:11px
}
.brand {
  font-size:20px
}
.main-shell {
  margin-left:178px
}
main {
  padding:24px
}
.hero-art {
  right:-100px;
  opacity:.3
}
.hero>div:first-child {
  z-index:1
}
.stats-grid {
  grid-template-columns:1fr 1fr
}
.dashboard-grid {
  grid-template-columns:1fr
}
.page-heading h1 {
  font-size:27px
}
.journal-grid {
  grid-template-columns:1fr
}
.login-layout {
  gap:35px
}
.login-intro h1 {
  font-size:45px
}
.feedback-form {
  grid-template-columns:120px 1fr
}
.feedback-form .button {
  grid-column:2;
  justify-self:end
}

}

@media(max-width:650px) {
  .sidebar {
  position:sticky;
  top:0;
  inset:auto;
  width:100%;
  padding:10px 14px 0;
  border-right:0;
  border-bottom:1px solid var(--line)
}
.brand {
  font-size:17px;
  padding:0 3px;
  gap:9px
}
.brand-icon {
  width:28px;
  height:28px;
  font-size:18px;
  border-radius:8px
}
.brand small {
  display:none
}
.nav-caption {
  display:none
}
.sidebar nav {
  display:flex;
  justify-content:space-between;
  gap:0;
  overflow:auto;
  margin-top:8px
}
.sidebar nav a {
  padding:9px 8px;
  border-radius:0;
  gap:4px;
  white-space:nowrap;
  font-size:11px
}
.sidebar nav a span {
  display:none
}
.sidebar nav a.active {
  background:none;
  border-bottom:2px solid var(--green)
}
.sidebar-bottom {
  position:absolute;
  right:16px;
  top:13px;
  padding:0;
  display:flex;
  align-items:center;
  gap:9px;
  font-size:10px
}
.sidebar-bottom>.live-dot,.sidebar-bottom>p {
  display:none
}
.sidebar-bottom {
  font-size:0
}
.sidebar-bottom .text-button {
  font-size:11px
}
.main-shell {
  margin-left:0
}
.topbar {
  height:51px;
  padding:0 20px;
  font-size:10px
}
.theme-button {
  padding:4px 8px
}
.theme-button span {
  display:none
}
main {
  padding:22px 17px 32px
}
.page-heading {
  gap:10px;
  margin-bottom:22px
}
.page-heading h1 {
  font-size:24px
}
.page-heading p {
  font-size:11px
}
.eyebrow {
  font-size:7px;
  letter-spacing:1.4px
}
.page-heading .button {
  font-size:11px;
  padding:9px 12px;
  min-height:37px
}
.hero {
  padding:24px;
  min-height:233px
}
.hero h2 {
  font-size:24px
}
.hero p {
  font-size:11px
}
.hero-art {
  right:-115px;
  top:0
}
.stats-grid {
  gap:11px;
  margin-bottom:18px
}
.stat {
  min-height:127px;
  padding:16px
}
.stat strong {
  font-size:28px
}
.stat strong.small-stat {
  font-size:14px
}
.dashboard-grid {
  gap:16px
}
.card {
  padding:20px
}
.task-row {
  gap:10px
}
.task-row .subtle-link {
  display:none
}
.priority {
  padding:3px 6px;
  font-size:8px
}
.task-title {
  font-size:12px
}
.section-heading h2 {
  font-size:16px
}
.toolbar {
  gap:12px
}
.tabs {
  gap:0
}
.tabs a {
  padding:7px 11px
}
.search {
  width:100%
}
.search input {
  max-width:none;
  flex:1;
  min-width:0
}
.form-grid {
  grid-template-columns:1fr
}
.form-card {
  padding:22px
}
.feedback-form {
  grid-template-columns:1fr
}
.feedback-form .button {
  grid-column:1;
  justify-self:stretch
}
.message-item {
  padding:21px
}
.message-item h2 {
  font-size:18px
}
.message-tabs a {
  font-size:11px;
  padding:7px 10px
}
.journal-search input[type=date] {
  flex-basis:35%
}
.login-layout {
  grid-template-columns:1fr;
  margin:0 auto 25px;
  gap:30px;
  max-width:420px
}
.login-intro h1 {
  font-size:36px;
  margin:12px 0
}
.login-intro p {
  font-size:12px
}
.login-intro .intro-mark {
  display:none
}
.login-card {
  padding:26px
}
.public-shell main {
  padding-top:10px
}
.public-shell footer {
  margin:0 20px
}
.desktop-only {
  display:none
}
footer {
  margin:0 20px;
  font-size:9px;
  flex-wrap:wrap;
  gap:4px
}
footer span {
  display:none
}
.scope-list {
  display:grid;
  gap:13px
}

}
