@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root { --ink: #17221d; --muted: #758078; --line: #dce4dd; --paper: #f6f8f4; --panel: #ffffff; --lime: #b8f35b; --lime-dark: #253619; --red: #b13d35; --shadow: 0 18px 40px rgba(23,34,29,.07); }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Manrope, ui-sans-serif, system-ui, sans-serif; }
button, input { font: inherit; }
.shell { max-width: 1380px; min-height: 100vh; margin: 0 auto; padding: 0 42px; display: flex; flex-direction: column; }
.topbar { height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.wordmark { color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.1rem; letter-spacing: -.05em; }
.wordmark span { display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 7px; background: var(--ink); color: var(--lime); border-radius: 8px 2px 8px 2px; font-size: .9rem; letter-spacing: 0; }
.topbar__meta, footer { color: var(--muted); font: .68rem/1 DM Mono, monospace; letter-spacing: .06em; text-transform: uppercase; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #65b44c; box-shadow: 0 0 0 4px #dcefd5; }
main { flex: 1; }
.intro { max-width: 630px; padding: 76px 0 58px; }
.eyebrow { margin: 0 0 18px; color: var(--muted); font: .7rem/1 DM Mono, monospace; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(3rem, 6vw, 5.8rem); line-height: .96; letter-spacing: -.085em; font-weight: 800; }
h1 em { color: #719743; font-style: normal; }
.intro__copy { max-width: 460px; margin: 26px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.workspace { display: grid; grid-template-columns: minmax(240px, 31%) 1fr; min-height: 425px; margin-bottom: 64px; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); }
.sites-panel { padding: 27px 20px; border-right: 1px solid var(--line); background: #f9fbf8; }
.search-wrap { display: block; padding: 16px 12px 4px; }
.search-wrap input { min-height: 40px; background: var(--panel); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.panel-heading { display: flex; justify-content: space-between; align-items: baseline; padding: 0 12px 15px; border-bottom: 1px solid var(--line); }
h2 { margin: 0; font-size: 1.05rem; letter-spacing: -.035em; }
.panel-heading span { color: var(--muted); font: .7rem DM Mono, monospace; }
.site-list { padding-top: 10px; }
.site-button { width: 100%; padding: 14px 12px; border: 0; border-radius: 7px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; transition: background .18s, transform .18s; }
.site-button:hover { background: #edf4e8; transform: translateX(2px); }
.site-button[aria-current="true"] { background: var(--lime); color: var(--lime-dark); }
.site-button__name { display: block; overflow: hidden; font-size: .83rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.site-button__meta { display: block; overflow: hidden; margin-top: 6px; color: var(--muted); font: .63rem DM Mono, monospace; text-overflow: ellipsis; white-space: nowrap; }
.site-button[aria-current="true"] .site-button__meta { color: #506b31; }
.skeleton { height: 50px; margin: 8px 12px; background: #edf1ec; border-radius: 7px; }
.editor { padding: 39px 48px; }
.empty-state { display: grid; place-content: center; min-height: 340px; color: var(--muted); text-align: center; }
.empty-state h2 { color: var(--ink); }
.empty-state p { margin: 9px 0; font-size: .85rem; }
.empty-mark { width: 42px; height: 42px; margin: 0 auto 20px; display: grid; place-items: center; border: 1px solid var(--line); color: #719743; font-size: 1.4rem; }
.editor-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 27px; border-bottom: 1px solid var(--line); }
.editor-head h2 { font-size: 1.5rem; }
.editor-head p { margin: 8px 0 0; color: var(--muted); font: .68rem DM Mono, monospace; }
.live-pill { flex: none; padding: 7px 10px; border-radius: 999px; background: #eef7e8; color: #557e38; font: .64rem DM Mono, monospace; text-transform: uppercase; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; padding-top: 30px; }
.field--wide { grid-column: 1 / -1; }
label { display: block; color: var(--ink); font-size: .76rem; font-weight: 700; }
.field-help { margin: 7px 0 12px; color: var(--muted); font-size: .72rem; line-height: 1.5; font-weight: 400; }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.check-label { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--muted); font-size: .72rem; font-weight: 500; }
.check-label input { width: 16px; min-height: 16px; accent-color: var(--ink); }
.recipient-list { display: grid; gap: 9px; }
.recipient-row { display: flex; gap: 8px; }
input { width: 100%; min-height: 44px; padding: 0 13px; border: 1px solid var(--line); border-radius: 5px; outline: 0; background: #fbfcfa; color: var(--ink); font-size: .83rem; transition: border .18s, box-shadow .18s; }
input:focus { border-color: #719743; box-shadow: 0 0 0 3px #e7f3d9; }
.remove-button, .add-button { border: 0; cursor: pointer; }
.remove-button { width: 44px; border: 1px solid var(--line); border-radius: 5px; background: transparent; color: var(--muted); font-size: 1.2rem; }
.remove-button:hover { border-color: #e3b8b5; color: var(--red); }
.add-button { padding: 9px 0; background: transparent; color: #557e38; font-size: .73rem; font-weight: 700; }
.add-button:hover { color: var(--ink); }
.actions { display: flex; align-items: center; gap: 15px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.save-button { padding: 13px 19px; border: 1px solid var(--ink); border-radius: 5px; background: var(--ink); color: var(--lime); cursor: pointer; font-size: .78rem; font-weight: 800; }
.save-button:hover { background: #304338; }
.save-button:disabled { cursor: wait; opacity: .55; }
.feedback { color: var(--muted); font-size: .75rem; }
.feedback.error { color: var(--red); }
footer { display: flex; justify-content: space-between; padding: 20px 0 26px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .shell { padding: 0 18px; } .topbar { height: 70px; } .workspace { display: block; } .sites-panel { border-right: 0; border-bottom: 1px solid var(--line); } .site-list { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; } .site-button { min-width: 190px; } .editor { padding: 28px 22px; } .form-grid, .auth-grid { grid-template-columns: 1fr; gap: 24px; } .field--wide { grid-column: auto; } footer { gap: 18px; flex-direction: column; } }
