:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #1f2d29; background: #f4f7f2; }
* { box-sizing: border-box; }
body { margin: 0; }
.shell { width: min(100% - 32px, 720px); margin: 0 auto; padding: 24px 0 48px; }
header { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.header-actions { display:flex; align-items:center; gap:12px; }
.desktop-nav { display:none; gap:4px; padding:4px; border:1px solid #dce4dd; border-radius:14px; background:white; }
.desktop-nav button { min-height:34px; padding:6px 10px; background:transparent; color:#52645c; font-size:13px; }
.desktop-nav button.selected { color:#205b4c; background:#e4eee5; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; color: #205b4c; }
.mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: #205b4c; color: white; }
.status, .eyebrow { color: #718078; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.intro { padding: 56px 0 28px; }
.intro h1 { margin: 8px 0; font-size: clamp(32px, 8vw, 54px); line-height: 1; }
.intro p:last-child { max-width: 480px; color: #607069; font-size: 18px; line-height: 1.5; }
.card, .matter { border: 1px solid #dce4dd; border-radius: 22px; background: white; padding: 20px; box-shadow: 0 8px 30px #355b4610; }
.card { margin-bottom: 32px; }
h2 { margin: 0 0 14px; font-size: 20px; }
form { display: flex; gap: 10px; }
input { min-width: 0; flex: 1; border: 1px solid #cbd7ce; border-radius: 14px; padding: 14px; font: inherit; font-size: 16px; }
button { border: 0; border-radius: 14px; padding: 0 18px; background: #205b4c; color: white; font: inherit; font-weight: 700; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-head h2 { margin: 0; }
.section-head span { color: #718078; }
.stack { display: grid; gap: 12px; }
.matter h3 { margin: 0 0 8px; font-size: 18px; }
.matter p { margin: 0; color: #718078; font-size: 14px; }
.message { min-height: 24px; color: #205b4c; }
.ghost { border: 1px solid #dce4dd; background: white; color: #205b4c; min-height: 42px; }
.bottom-nav { position: fixed; z-index: 20; left: 50%; bottom: 12px; transform: translateX(-50%); display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; width: min(calc(100% - 24px), 720px); padding: 8px; border: 1px solid #dce4dd; border-radius: 18px; background: #f4f7f2ee; box-shadow: 0 8px 30px #355b4620; backdrop-filter: blur(12px); }
#app-panel { padding-bottom: 100px; }
.bottom-nav button { min-height: 46px; padding: 4px; background: transparent; color: #52645c; font-size: 12px; }
.bottom-nav button.selected { background: #e4eee5; color: #205b4c; }
.stack { margin-bottom: 16px; }
textarea, select { width: 100%; border: 1px solid #cbd7ce; border-radius: 14px; padding: 14px; font: inherit; font-size: 16px; }
textarea { min-height: 100px; resize: vertical; }
form { display: grid; gap: 10px; }
.card form { margin-top: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.actions button { min-height: 42px; }
.badge { display: inline-block; margin-right: 8px; border-radius: 999px; padding: 4px 9px; background: #e4eee5; color: #205b4c; font-size: 12px; }
.empty { padding: 24px 4px; color: #718078; }
dialog { width: min(92vw, 560px); border: 1px solid #dce4dd; border-radius: 22px; padding: 22px; color: #1f2d29; box-shadow: 0 20px 80px #16352b40; }
dialog::backdrop { background: #18372c66; }
.close { float: right; background: #eef3ee; color: #52645c; }
dialog h2 { padding-right: 72px; }
ul { padding-left: 20px; color: #607069; }
@media (max-width: 480px) { .shell { width: min(100% - 24px, 720px); padding-top: 16px; } form { flex-direction: column; } button { min-height: 48px; } .status { font-size: 10px; } }
@media (min-width: 960px) {
  .shell { width:min(100% - 48px, 1200px); }
  header { flex-wrap:wrap; align-items:center; }
  .header-actions { display:contents; }
  .desktop-nav { order:3; display:grid; grid-template-columns:repeat(6, minmax(0,1fr)); flex-basis:100%; width:100%; }
  .desktop-nav button { white-space:nowrap; }
  #role-switch { margin-left:auto; white-space:nowrap; }
}
