:root {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #17211b;
  background: #f5f6f1;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 80% 0%, #dff0df 0, transparent 28rem), #f5f6f1; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 5vw; border-bottom: 1px solid #dfe3db; background: rgba(248, 249, 245, .88); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 10; }
.brand { display: inline-flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #173f2a; color: #d7f36b; font-weight: 800; font-family: Georgia, serif; }
.brand span:last-child { display: flex; flex-direction: column; line-height: 1.1; }
.brand small { color: #68736c; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; margin-top: 4px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.shell { width: min(1180px, 90vw); margin: 0 auto; padding: 70px 0 90px; }
.hero { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 44px; }
.eyebrow { margin: 0 0 10px; color: #57705f; font-size: 12px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; max-width: 760px; font: 500 clamp(42px, 6vw, 72px)/1.02 Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
h2 { margin: 0; font: 500 28px/1.2 Georgia, serif; }
.hero-copy { max-width: 620px; color: #667168; font-size: 17px; line-height: 1.6; margin: 22px 0 0; }
.button { border: 0; border-radius: 999px; padding: 11px 18px; font-weight: 700; transition: transform .15s, box-shadow .15s, background .15s; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .55; transform: none; }
.button-primary { color: #f8fff7; background: #173f2a; box-shadow: 0 8px 24px rgba(23, 63, 42, .16); }
.button-primary span { color: #d7f36b; margin-right: 5px; }
.button-secondary { color: #274333; background: #e7ebe4; }
.button-danger { color: #8a2f2b; background: #f9e7e3; }
.button-small { padding: 8px 12px; font-size: 13px; }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 52px; }
.summary-card { min-height: 126px; padding: 22px; border: 1px solid #dfe3db; border-radius: 20px; background: rgba(255, 255, 255, .66); display: flex; flex-direction: column; justify-content: space-between; }
.summary-card span { color: #68736c; font-size: 13px; font-weight: 650; }
.summary-card strong { font: 500 38px/1 Georgia, serif; }
.summary-accent { background: #dceba6; border-color: #cedf91; }
.tabs { display: flex; gap: 28px; border-bottom: 1px solid #d7ddd4; margin-bottom: 24px; }
.tab { background: transparent; border: 0; padding: 0 2px 14px; color: #758078; font-weight: 700; border-bottom: 2px solid transparent; }
.tab.active { color: #173f2a; border-color: #173f2a; }
.panel { background: rgba(255, 255, 255, .62); border: 1px solid #dfe3db; border-radius: 24px; overflow: hidden; }
.panel-heading { padding: 24px 26px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e5e8e1; }
.panel-tools { display: flex; align-items: center; gap: 10px; }
select, input { border: 1px solid #ccd3ca; background: #fff; color: #17211b; border-radius: 12px; padding: 10px 12px; }
.content-list { display: grid; }
.content-card { padding: 24px 26px; border-bottom: 1px solid #e5e8e1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; }
.content-card:last-child { border-bottom: 0; }
.content-card h3 { margin: 0 0 9px; font-size: 16px; }
.content-card p { margin: 0; white-space: pre-wrap; color: #46544b; line-height: 1.58; max-width: 720px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 15px; color: #758078; font-size: 12px; }
.actions { display: flex; align-items: start; gap: 8px; flex-wrap: wrap; justify-content: end; max-width: 270px; }
.badge { display: inline-flex; align-items: center; padding: 6px 9px; border-radius: 999px; font-size: 11px; font-weight: 750; }
.badge-muted { background: #e8ebe5; color: #667168; }
.badge-good { background: #deefcf; color: #2c602a; }
.badge-warn { background: #fff0c7; color: #765b13; }
.badge-bad { background: #f8ded9; color: #8a2f2b; }
.empty-state { padding: 70px 24px; color: #7b857e; text-align: center; }
.hidden { display: none; }
dialog { border: 0; border-radius: 24px; padding: 0; box-shadow: 0 30px 90px rgba(20, 43, 28, .24); width: min(480px, 90vw); }
dialog::backdrop { background: rgba(21, 34, 26, .46); backdrop-filter: blur(3px); }
dialog form { padding: 28px; }
.dialog-heading { display: flex; justify-content: space-between; align-items: start; margin-bottom: 28px; }
.icon-button { border: 0; background: #eef0ec; width: 34px; height: 34px; border-radius: 50%; font-size: 22px; }
label { display: grid; gap: 9px; font-size: 13px; font-weight: 700; }
.help { color: #778078; font-size: 12px; line-height: 1.5; }
menu { display: flex; justify-content: end; gap: 10px; padding: 18px 0 0; margin: 0; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: #173f2a; color: white; padding: 12px 18px; border-radius: 12px; box-shadow: 0 12px 32px rgba(23, 63, 42, .22); transition: .2s; z-index: 20; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 800px) {
  .shell { width: min(92vw, 680px); padding-top: 42px; }
  .hero { align-items: start; flex-direction: column; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .content-card { grid-template-columns: 1fr; }
  .actions { justify-content: start; max-width: none; }
  .header-actions .badge { display: none; }
}

@media (max-width: 480px) {
  h1 { font-size: 42px; }
  .summary-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .summary-card { padding: 17px; min-height: 105px; }
  .panel-heading, .content-card { padding: 20px; }
  .panel-heading { align-items: start; gap: 16px; }
  .panel-tools { align-items: stretch; flex-direction: column; }
}
