:root { font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #253b34; background: #f5f6f2; font-synthesis: none; --green: #175443; --muted: #687a70; --line: #dde4db; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 1px solid transparent; border-radius: 7px; padding: 10px 15px; background: var(--green); color: #fff; font-weight: 600; }
button:hover { filter: brightness(.93); }
button:disabled { cursor: wait; opacity: .6; }
button.secondary { background: #fff; color: var(--green); border-color: var(--line); }
button.danger { background: #fff3f1; color: #9e332b; border-color: #eed5ce; }
button.small { padding: 7px 10px; font-size: 12px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #9ccdb0; outline-offset: 2px; }
a { color: var(--green); }
.loading { padding: 40px; }
.login { min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; }
.intro { padding: clamp(35px, 8vw, 120px); display: flex; flex-direction: column; justify-content: center; background: #123e33; color: #f5f6f2; }
.brand { font-size: 30px; font-weight: 750; letter-spacing: -1.5px; }
.brand-dot { color: #a4d290; }
.eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; font-weight: 700; color: var(--muted); }
.intro .eyebrow { margin-top: 70px; color: #b2c5b8; }
.intro h1 { font-size: clamp(30px, 4vw, 55px); line-height: 1.12; letter-spacing: -2px; margin: 18px 0; }
.intro p { color: #c7d8cc; line-height: 1.7; max-width: 420px; }
.login-side { display: flex; justify-content: center; align-items: center; padding: 35px; }
.login-card { width: 100%; max-width: 360px; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { font-size: 29px; line-height: 1.2; letter-spacing: -.8px; margin: 8px 0; }
h2 { font-size: 18px; margin: 0 0 14px; letter-spacing: -.3px; }
h3 { font-size: 14px; margin: 0 0 10px; }
p { line-height: 1.6; }
.muted { color: var(--muted); font-size: 13px; }
.login-card .muted { margin-bottom: 26px; }
.layout { display: grid; grid-template-columns: 226px minmax(0, 1fr); min-height: 100dvh; }
.sidebar { padding: 30px 20px; background: #123e33; color: #f1f5ed; display: flex; flex-direction: column; gap: 30px; }
.sidebar .brand { padding-left: 12px; }
.sidebar nav { display: grid; gap: 5px; }
.sidebar nav button { text-align: left; background: transparent; color: #c4d4c8; padding: 12px; font-size: 13px; font-weight: 500; }
.sidebar nav button.active { background: #2c5748; color: white; }
.sidebar-foot { margin-top: auto; padding: 12px; border-top: 1px solid #3a6051; }
.sidebar-foot p { font-size: 12px; color: #bacdbc; margin: 4px 0 12px; }
.sidebar-foot button { background: transparent; border-color: #51705e; font-size: 12px; }
.workspace { min-width: 0; }
.topbar { height: 70px; border-bottom: 1px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 36px; font-size: 13px; }
.pill { display: inline-block; font-size: 10px; font-weight: 650; padding: 4px 8px; border-radius: 4px; background: #e9f0e5; color: #3e6543; white-space: nowrap; }
.pill.draft { background: #fff1db; color: #89602d; }
.content { padding: 34px 36px 60px; max-width: 1450px; margin: auto; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.page-head p { margin: 8px 0 0; }
.cards { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-bottom: 25px; }
.stat, .card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.stat strong { display: block; font-size: 32px; margin: 8px 0; letter-spacing: -1px; }
.stat span { font-size: 12px; color: var(--muted); }
.grid { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.5fr); gap: 22px; align-items: start; }
.stack { display: grid; gap: 20px; }
.card > p:first-of-type { margin-top: 0; }
form { display: grid; gap: 16px; }
label.field { display: grid; gap: 7px; font-size: 12px; font-weight: 600; color: #395247; }
input:not([type=checkbox]), select, textarea { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid #cfdbd0; border-radius: 6px; background: #fff; color: #243e32; }
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
textarea.code { font-family: ui-monospace, SFMono-Regular, monospace; font-size: 12px; min-height: 190px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; }
.check input { accent-color: var(--green); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 12px; text-align: left; }
th { padding: 10px 12px; color: var(--muted); font-weight: 550; font-size: 11px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 12px; border-bottom: 1px solid #eef1eb; vertical-align: top; max-width: 380px; overflow-wrap: anywhere; }
tr:last-child td { border-bottom: 0; }
td strong { display: block; font-weight: 600; }
td small { display: block; color: var(--muted); margin-top: 4px; }
.empty { padding: 30px 12px; text-align: center; color: var(--muted); font-size: 13px; }
.notice { padding: 14px 16px; border-radius: 7px; background: #e9f0e5; font-size: 13px; line-height: 1.6; margin-bottom: 20px; }
.error { background: #fbe8e4; color: #8b332a; }
.banner:empty { display: none; }
code, pre { font-family: ui-monospace, SFMono-Regular, monospace; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; padding: 16px; background: #f2f5ef; border-radius: 6px; max-height: 500px; overflow: auto; line-height: 1.6; }
dialog { border: 1px solid var(--line); border-radius: 12px; padding: 28px; width: min(720px,90vw); max-height: 85dvh; color: #253b34; }
dialog::backdrop { background: #123e3366; backdrop-filter: blur(3px); }
.item { padding: 17px 0; border-bottom: 1px solid #eef1eb; }
.item:last-child { border: 0; }
.item h3 { margin-bottom: 5px; }
.item p { margin: 5px 0 12px; }
@media (max-width: 1050px) { .cards { grid-template-columns: repeat(2,minmax(0,1fr)); } .grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .login { grid-template-columns: 1fr; } .intro { padding: 30px; } .intro .eyebrow { margin-top: 25px; } .intro h1 { font-size: 32px; } .intro p { display: none; } .layout { grid-template-columns: 1fr; } .sidebar { padding: 18px; gap: 15px; } .sidebar nav { display: flex; overflow-x: auto; } .sidebar nav button { white-space: nowrap; } .sidebar-foot { display: none; } .topbar { padding: 0 20px; height: 56px; } .content { padding: 25px 18px; } .page-head { align-items: start; } h1 { font-size: 25px; } .card { padding: 18px; } }
