:root {
    --ink: #192b28;
    --muted: #71807b;
    --line: #e4ebe7;
    --paper: #ffffff;
    --canvas: #f5f8f6;
    --green: #0c805d;
    --green-dark: #086447;
    --green-soft: #e5f4ee;
    --red: #b53b46;
    --shadow: 0 8px 24px rgba(28, 56, 45, .055);
}
* { box-sizing: border-box; }
html { background: var(--canvas); }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 14px; line-height: 1.55; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }
.topbar { min-height: 68px; padding: 0 30px; display: flex; align-items: center; justify-content: space-between; background: var(--paper); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); font-size: 17px; font-weight: 750; letter-spacing: -.3px; }
.brand img { width: 36px; height: 36px; object-fit: contain; border-radius: 9px; }
.topbar-right { display: flex; align-items: center; gap: 18px; }
.topbar-right form { margin: 0; }
.topbar-user { color: var(--muted); font-weight: 600; }
.app-shell { display: flex; min-height: calc(100vh - 114px); }
.sidebar { flex: 0 0 236px; padding: 26px 16px; background: #fff; border-right: 1px solid var(--line); }
.sidebar-label { padding: 0 12px 13px; color: #9aa8a2; font-size: 10px; font-weight: 750; letter-spacing: 1.3px; }
.sidebar nav { display: grid; gap: 4px; }
.sidebar nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; color: #60716b; border-radius: 9px; font-weight: 620; }
.sidebar nav a span { width: 20px; color: #85948e; font-size: 17px; text-align: center; }
.sidebar nav a:hover, .sidebar nav a.active { color: var(--green-dark); background: var(--green-soft); }
.sidebar nav a.active span { color: var(--green); }
.sidebar-note { margin: 35px 8px 0; padding: 13px; color: #74847d; background: #f7faf8; border: 1px solid var(--line); border-radius: 9px; font-size: 12px; }
.main-content { flex: 1; min-width: 0; padding: 30px clamp(18px, 3.3vw, 48px) 50px; }
.site-footer { padding: 15px 25px; color: #89958f; background: #fff; border-top: 1px solid var(--line); font-size: 12px; text-align: center; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 25px; }
.page-heading h1 { margin: 3px 0 5px; font-size: clamp(25px, 3vw, 33px); line-height: 1.2; letter-spacing: -.8px; }
.page-heading p { margin: 0; color: var(--muted); }
.eyebrow { color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: 1.4px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; margin-bottom: 22px; }
.stat-card { min-height: 112px; display: flex; align-items: center; gap: 14px; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); }
.stat-icon { width: 41px; height: 41px; display: grid; place-items: center; border-radius: 11px; font-size: 18px; font-weight: 700; }
.stat-icon.green { color: #0b7c59; background: #e3f5ed; }.stat-icon.blue { color: #386ea3; background: #e8f1fa; }.stat-icon.purple { color: #7961a5; background: #f0ebf8; }.stat-icon.amber { color: #a07122; background: #fbf1dd; }
.stat-label { display: block; margin-bottom: 2px; color: var(--muted); font-size: 12px; }
.stat-card strong { display: block; font-size: 22px; letter-spacing: -.3px; }.stat-card .status-text { font-size: 16px; }
.panel { margin-bottom: 20px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); }
.panel-heading { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 21px; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 0 0 2px; font-size: 16px; letter-spacing: -.2px; }.panel-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 12px 16px; color: #75847e; background: #fafcfb; font-size: 10px; font-weight: 750; letter-spacing: .65px; text-transform: uppercase; white-space: nowrap; }
td { max-width: 340px; padding: 13px 16px; border-top: 1px solid #edf1ef; vertical-align: middle; }
tbody tr:hover { background: #fbfdfc; }
.empty-state { padding: 37px 18px; color: var(--muted); text-align: center; }.empty-state>span { color: #a3b5ad; font-size: 27px; }.empty-state h3 { margin: 7px 0 3px; color: var(--ink); font-size: 16px; }.empty-state p { margin: 0 0 17px; }
.quick-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; margin: 20px 0; }
.quick-card { display: grid; gap: 6px; padding: 18px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: transform .15s, box-shadow .15s; }.quick-card:hover { color: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow); }.quick-card>span { color: var(--green); font-size: 20px; }.quick-card strong { font-size: 14px; }.quick-card small { color: var(--muted); }
.button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 14px; border: 1px solid transparent; border-radius: 8px; font: inherit; font-weight: 650; cursor: pointer; transition: background .15s, border-color .15s; }
.button-primary { color: #fff; background: var(--green); }.button-primary:hover { color: #fff; background: var(--green-dark); }
.button-secondary { color: var(--green-dark); background: #edf7f2; border-color: #dbece3; }.button-secondary:hover { background: #e1f1e9; }
.button-light { color: #52635d; background: #fff; border-color: var(--line); }.button-light:hover { background: #f7faf8; }
.button-danger { color: var(--red); background: #fff4f3; border-color: #f3dedb; }.button-danger:hover { background: #fee9e7; }
button:disabled { opacity: .55; cursor: not-allowed; }.button-wide { width: 100%; margin-top: 7px; }
.alert { margin: 0 0 17px; padding: 12px 15px; border: 1px solid transparent; border-radius: 9px; }.alert-success { color: #17623f; background: #e7f5ec; border-color: #cde9d6; }.alert-warning { color: #7f5c14; background: #fff7df; border-color: #f0dfae; }.alert-error { color: #963c3c; background: #fff0ee; border-color: #f0d2cf; }
.content-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 20px; }.settings-grid { grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); }.contacts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-panel { max-width: 850px; }.form-stack { display: grid; gap: 15px; padding: 20px; }.form-stack label, .form-row label, .filter-bar label, .inline-filter label { display: grid; gap: 6px; color: #465751; font-size: 12px; font-weight: 650; }
input:not([type=checkbox]):not([type=radio]), select, textarea { width: 100%; min-height: 40px; padding: 9px 11px; color: var(--ink); background: #fff; border: 1px solid #dce5e0; border-radius: 7px; outline: none; font: inherit; font-weight: 400; }
input[type=file] { padding: 7px; }.form-stack textarea, .form-row textarea, textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: #76b89b; box-shadow: 0 0 0 3px rgba(12, 128, 93, .09); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }.form-row small, .form-stack small, .form-hint { color: var(--muted); font-size: 11px; font-weight: 400; }.form-hint { margin: -5px 0 0; }
.check-row { display: flex !important; align-items: flex-start; gap: 9px !important; color: #51635c !important; font-size: 12px !important; font-weight: 500 !important; }.check-row input { margin-top: 3px; accent-color: var(--green); }
.logo-preview { width: auto; max-width: 160px; max-height: 95px; object-fit: contain; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
.connection-status { display: grid; gap: 3px; margin: 17px 20px; padding: 14px; background: #f7faf8; border: 1px solid var(--line); border-radius: 9px; }.connection-status span { color: var(--muted); font-size: 11px; }.connection-status strong { font-size: 17px; }
.button-row { display: flex; flex-wrap: wrap; gap: 9px; padding: 0 20px 8px; }.button-row form { margin: 0; }.connection-state { margin: 10px 20px; color: var(--muted); }.qr-box { margin: 15px 20px 20px; padding: 18px; background: #f8fbf9; border: 1px dashed #cddbd4; border-radius: 10px; text-align: center; }.qr-box img { width: min(100%, 280px); }.qr-box p { margin: 10px 0 0; color: var(--muted); }
.filter-bar { display: flex; align-items: end; flex-wrap: wrap; gap: 11px; padding: 15px 20px; border-bottom: 1px solid var(--line); }.filter-bar label { flex: 1 1 155px; }.filter-bar .button { flex: 0 0 auto; }.filter-bar input, .filter-bar select { min-width: 130px; }
.count-pill { padding: 5px 9px; color: #54675e; background: #f2f6f3; border-radius: 99px; font-size: 11px; }
.badge { display: inline-flex; padding: 4px 8px; border-radius: 99px; font-size: 10px; font-weight: 750; }.badge-sent { color: #17623f; background: #e4f4ea; }.badge-failed { color: #9a3b3b; background: #fff0ee; }.badge-neutral { color: #596e65; background: #eef3f0; }
.actions-cell { display: flex; align-items: center; gap: 11px; white-space: nowrap; }.actions-cell form { margin: 0; }.text-button { padding: 0; color: var(--green); background: transparent; border: 0; font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; }.text-danger { color: var(--red); }.empty-cell { padding: 28px; color: var(--muted); text-align: center; }
.template-preview { max-width: 300px; overflow-wrap: anywhere; }.inline-filter { display: flex; align-items: end; gap: 8px; }.inline-filter label { min-width: 150px; }.pagination { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 14px 18px; color: var(--muted); font-size: 12px; }.campaign-message { padding: 17px 20px; }.consent-confirm { padding: 0 20px 13px; }.campaign-submit { display: flex; align-items: center; justify-content: space-between; padding: 15px 20px 19px; color: var(--muted); font-size: 12px; }
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(ellipse at 50% 0, #e5f3ec, var(--canvas) 65%); }.auth-card { width: min(100%, 420px); padding: 34px; background: #fff; border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 20px 65px rgba(24, 59, 42, .1); }.auth-mark { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 18px; color: #fff; background: var(--green); border-radius: 13px; font-size: 21px; font-weight: 800; }.auth-card h1 { margin: 0 0 5px; font-size: 25px; letter-spacing: -.5px; }.auth-card>p { margin: 0 0 23px; color: var(--muted); }.auth-card form { display: grid; gap: 14px; }.auth-card label { display: grid; gap: 6px; color: #465751; font-size: 12px; font-weight: 650; }.auth-card .auth-foot { margin: 20px 0 0; font-size: 11px; text-align: center; }
@media (max-width: 1000px) { .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.settings-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .topbar { min-height: 60px; padding: 0 16px; }.topbar-user { display: none; }.app-shell { display: block; }.sidebar { padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line); }.sidebar-label, .sidebar-note { display: none; }.sidebar nav { display: flex; overflow-x: auto; gap: 4px; }.sidebar nav a { flex: 0 0 auto; padding: 9px 10px; font-size: 12px; }.sidebar nav a span { display: none; }.main-content { padding: 24px 14px 35px; }.page-heading { align-items: flex-start; }.stats-grid { gap: 9px; }.stat-card { min-height: 92px; gap: 9px; padding: 12px; }.stat-icon { width: 34px; height: 34px; }.stat-card strong { font-size: 18px; }.quick-links, .content-grid, .contacts-grid { grid-template-columns: 1fr; }.form-row { grid-template-columns: 1fr; }.panel-heading { padding: 14px; }.campaign-message { padding: 14px; }.consent-confirm { padding: 0 14px 13px; }td { padding: 11px 12px; } }
