@charset "UTF-8";

:root {
  --ink: #1d2c26;
  --muted: #6c7872;
  --green: #247458;
  --green-dark: #1a5b43;
  --side: #182b23;
  --bg: #f5f7f6;
  --line: #e3e8e5;
  --radius: 10px;
  --shadow: 0 2px 4px #142d2003;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 14px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
button:focus-visible, a:focus-visible, summary:focus-visible, .table-scroll:focus-visible { outline: 3px solid #b3d8c3; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 28px; font-weight: 650; letter-spacing: -.8px; line-height: 1.3; }
h2 { font-size: 16px; font-weight: 650; letter-spacing: -.25px; }
h3 { font-size: 14px; font-weight: 600; }
strong { font-weight: 600; }
small, .small { font-size: 12px; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; font-variant-numeric: tabular-nums; }
.icon { flex: none; vertical-align: middle; }
.visually-hidden, .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; clip: rect(0,0,0,0); overflow: hidden; white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: -60px; left: 245px; z-index: 100; padding: 12px; background: #fff; border-radius: 6px; }
.skip-link:focus { top: 10px; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 1.2px; color: var(--muted); }
.heading-dot { display: none; }

/* Navigation */
.sidebar { position: fixed; inset: 0 auto 0 0; width: 228px; padding: 28px 14px 0; z-index: 40; color: #acbeb3; background: var(--side); display: flex; flex-direction: column; overflow-y: auto; }
.brand { display: flex; align-items: center; justify-content: center; flex: none; width: 100%; padding: 10px 14px; border: 1px solid #ffffff26; border-radius: 8px; background: #fff; line-height: 1; }
.brand-logo { display: block; width: 100%; height: auto; max-width: 250px; object-fit: contain; }
.workspace { display: flex; align-items: center; gap: 9px; padding: 13px 11px; margin: 29px 3px 24px; border: 1px solid #ffffff1a; border-radius: 8px; background: #ffffff03; }
.workspace-icon { display: grid; place-items: center; width: 28px; height: 30px; color: #93b6a0; }
.workspace>div { min-width: 0; }
.workspace strong { display: block; color: #e2eae5; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 133px; }
.workspace small { display: block; font-size: 11px; color: #94ab9c; margin-top: 2px; }
.workspace-status, .nav-dot { width: 5px; height: 5px; background: #9cc8ab; border-radius: 50%; margin-left: auto; flex: none; }
.nav-label { padding: 0 14px; margin-bottom: 9px; font-size: 10px; font-weight: 600; color: #7f9a88; letter-spacing: 1.4px; }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 43px; padding: 10px 13px; margin: 4px 0; border-radius: 6px; font-size: 13px; color: #aec1b4; transition: background .15s, color .15s; }
.nav-item .icon { width: 18px; height: 18px; color: #8da895; }
.nav-item:hover { color: #fff; background: #ffffff08; }
.nav-item.active { color: #eff8f0; background: #c9e6d216; box-shadow: inset 2px 0 #a7d7b5; }
.nav-item.active .icon { color: #c1dfc9; }
.sidebar-bottom { margin-top: auto; padding-top: 30px; }
.automation-mini { display: flex; align-items: center; justify-content: space-between; padding: 12px; margin: 0 4px 16px; border: 1px solid #ffffff16; border-radius: 7px; }
.automation-mini-heading { display: flex; gap: 8px; align-items: center; color: #bdcfc1; font-size: 11px; }
.automation-mini-heading>span { color: #98bba2; }
.automation-mini a { display: flex; color: #97b39f; }
.automation-mini p { display: none; }
.profile { display: flex; gap: 5px; align-items: center; border-top: 1px solid #ffffff15; padding: 18px 4px 23px; margin: 20px 3px 0; }
.profile-link { display: flex; gap: 9px; align-items: center; min-width: 0; flex: 1; }
.profile strong { display: block; max-width: 130px; color: #dce8df; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile small { display: block; font-size: 11px; color: #95ad9d; margin-top: 2px; }
.profile-avatar { background: #bcd7c5 !important; color: #274a34 !important; width: 32px !important; height: 32px !important; }
.logout-button { color: #9bb2a2 !important; }
.app-main { margin-left: 228px; min-height: 100dvh; }
.topbar { height: 68px; padding: 0 32px; border-bottom: 1px solid var(--line); background: #fffffff5; display: flex; gap: 20px; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 25; backdrop-filter: blur(8px); }
.breadcrumb { display: flex; align-items: center; gap: 14px; font-size: 12px; white-space: nowrap; }
.breadcrumb-home { display: flex; gap: 8px; align-items: center; color: #7b8880; }
.breadcrumb-slash { color: #bec8c1; }
.breadcrumb strong { color: #465b4d; font-weight: 500; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.global-search { display: flex; gap: 9px; align-items: center; background: #f8faf9; border: 1px solid var(--line); border-radius: 6px; padding: 6px 9px; color: #7d8981; }
.global-search input { width: 155px; background: transparent; border: 0; outline: 0; color: var(--ink); font-size: 12px; }
.global-search kbd { font: 10px inherit; border: 1px solid #dde4df; background: #fff; padding: 0 4px; border-radius: 3px; color: #8c9690; white-space: nowrap; }
.mode-pill { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #e9dec6; background: #fcfaf4; border-radius: 5px; padding: 5px 8px; font-size: 11px; color: #8a6e2c; white-space: nowrap; }
.mode-pill>span { width: 5px; height: 5px; border-radius: 50%; background: #bb9a4c; }
.mode-pill.live { color: #247452; border-color: #d6e8dc; background: #f3f9f5; }
.mode-pill.live>span { background: #3d956a; }
.icon-button { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 5px; border: 0; border-radius: 5px; background: transparent; color: #75857a; }
.icon-button:hover { background: #edf2ee; color: var(--green); }
.mobile-menu, .sidebar-backdrop { display: none; }

/* Page structure and controls */
.content { max-width: 1540px; padding: 29px 32px 0; margin: 0 auto; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.page-heading .eyebrow { margin-bottom: 7px; }
.page-heading p { margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.heading-actions { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.date-chip { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.button { min-height: 39px; padding: 9px 14px; border: 1px solid #d8e1da; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: #fff; color: #3f5346; font-size: 12px; font-weight: 550; line-height: 1.5; white-space: nowrap; transition: background .15s, border-color .15s; }
.button:hover { background: #f4f7f5; border-color: #b6c9bd; }
.button.primary { background: var(--green); color: #fff; border-color: var(--green); box-shadow: 0 1px 2px #153a2012; }
.button.primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
.button.small-button { min-height: 31px; font-size: 12px; padding: 5px 9px; }
.button.ghost { border-color: transparent; background: transparent; }
.button.danger-button { color: #a8413b; border-color: #ead0cd; background: #fff; }
.button.danger-button:hover { background: #fff5f3; }
.button[aria-busy=true]::before { content: ''; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.text-link { color: var(--green); font-size: 12px; font-weight: 550; display: inline-flex; align-items: center; gap: 7px; }
.text-link:hover { text-decoration: underline; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; margin: 0 0 16px; }
.back-link:hover { color: var(--green); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 21px 23px; }
.card-header h2 { font-size: 15px; }
.card-header p { font-size: 12px; margin-top: 4px; color: var(--muted); }
.card-body { padding: 23px; }
.inline-heading { display: flex; align-items: center; gap: 9px; }
.soft-icon { color: #8c9d91; }
.count-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 23px; padding: 2px 6px; background: #f0f3f1; color: #758278; border-radius: 4px; font-size: 11px; font-weight: 500; }
.page-footer { display: flex; justify-content: space-between; gap: 16px; padding: 28px 0 23px; color: #839088; font-size: 11px; }
.page-footer>span { display: flex; align-items: center; gap: 7px; }
.footer-dot { color: #bdc7bf; }
.tiny-dot { display: inline-block; width: 5px; height: 5px; flex: none; background: #6ba685; border-radius: 50%; }

/* Dashboard */
.stats-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { min-width: 0; padding: 20px 21px 17px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
a.stat-card:hover { border-color: #adcbb7; }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #64776a; font-size: 12px; }
.stat-top .icon-tile { width: 31px; height: 31px; }
.stat-top .icon { width: 17px; height: 17px; }
.stat-value { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 34px; font-weight: 600; letter-spacing: -1px; line-height: 1.3; margin: 9px 0 13px; font-variant-numeric: tabular-nums; }
.stat-value>.icon { color: #a1b2a6; width: 14px; height: 14px; }
.stat-foot { display: flex; align-items: center; gap: 6px; color: #7c8a80; font-size: 11px; min-height: 19px; flex-wrap: wrap; }
.stat-change { color: #337c54; font-size: 11px; font-weight: 600; }
.stat-warning { color: #9e722a; }
.subtle-badge { padding: 1px 5px; border-radius: 3px; background: #f2f4f3; color: #788780; font-size: 10px; }
.icon-tile { display: inline-grid; place-items: center; width: 35px; height: 35px; border-radius: 7px; color: #708677; background: #f1f5f2; flex: none; }
.icon-tile.mint { color: #4e8b63; background: #edf5ef; }
.icon-tile.lavender { color: #728378; background: #f0f3f1; }
.icon-tile.peach { color: #a88743; background: #faf5e8; }
.icon-tile.blue { color: #6e8b9c; background: #eef3f6; }
.priority-layout, .dashboard-charts { display: grid; grid-template-columns: minmax(0,1.9fr) minmax(280px,1fr); gap: 22px; margin-bottom: 24px; }
.priority-table .card-header { border-bottom: 1px solid var(--line); }
.priority-table .card-header h2 { display: flex; align-items: center; gap: 9px; }
.priority-table .card-header h2>.icon { color: #a2864b; }
.priority-table td { padding-block: 15px; }
.priority-footer { padding: 13px 23px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; display: flex; align-items: center; justify-content: space-between; }
.priority-aside { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.operations-card .card-header { padding-bottom: 17px; }
.operation-state { display: flex; align-items: center; gap: 10px; padding: 0 23px 18px; color: #366d49; font-size: 12px; }
.operation-state>span { width: 8px; height: 8px; border-radius: 50%; background: #57966e; box-shadow: 0 0 0 4px #f0f6f1; }
.operation-state.paused { color: #9e7e3b; }
.operation-state.paused>span { background: #b59a5c; box-shadow: 0 0 0 4px #faf7f0; }
.operation-details { margin: 0; padding: 0 23px 5px; }
.operation-details>div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid #edf0ee; font-size: 12px; }
.operation-details dt { color: #738078; }
.operation-details dd { margin: 0; color: #3d5143; font-weight: 500; }
.operation-note { margin: 10px 18px 18px; padding: 11px 12px; background: #f8f9f8; border: 1px solid #ebefec; border-radius: 6px; color: #79857d; font-size: 11px; line-height: 1.7; }
.operation-note a { display: inline-flex; margin-top: 6px; color: var(--green); font-weight: 600; }
.chart-legend { display: flex; gap: 21px; padding: 0 23px 14px; font-size: 12px; color: var(--muted); }
.chart-legend>span { display: flex; align-items: center; gap: 7px; }
.chart-legend strong { margin-left: 3px; color: #415b49; }
.legend-dot { display: inline-block; width: 7px; height: 7px; border-radius: 2px; background: #2d7d59; }
.legend-dot.sage { background: #9ab7a2; }
.chart-canvas { height: 228px; margin: 0 19px 14px; position: relative; }
.chart-canvas canvas { width: 100% !important; height: 100% !important; }
.chart-fallback { padding: 12px 24px 20px; }
.chart-fallback summary { cursor: pointer; color: #708378; font-size: 11px; }
.chart-fallback table { margin-top: 12px; }
.chart-fallback th, .chart-fallback td { padding: 8px 12px; }
.movement-chart { padding: 0 16px 10px; }
.movement-chart svg { width: 100%; height: 235px; display: block; }
.select-small { min-height: 32px; border: 1px solid #dde6df; padding: 5px 10px; background: #fff; color: #6b7f70; font-size: 12px; border-radius: 6px; }
.donut-wrap { display: grid; place-items: center; padding: 0 15px 14px; position: relative; }
.donut-wrap svg { width: 167px; height: 167px; }
.donut-total { fill: #304b38; font: 600 28px Inter, sans-serif; }
.donut-label { fill: #819387; font: 11px Inter, sans-serif; }
.distribution-legend { display: flex; flex-direction: column; gap: 10px; padding: 0 23px 23px; }
.distribution-legend a { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: #738279; }
.distribution-legend a:hover { color: #245b3d; }
.distribution-legend a>span { display: flex; gap: 9px; align-items: center; }
.distribution-legend i { width: 7px; height: 7px; border-radius: 2px; }
.distribution-legend strong { color: #3b5243; }
.distribution-legend small { display: inline-block; width: 32px; text-align: right; margin-left: 9px; color: #8b9a90; font-size: 11px; font-weight: 400; }
.activity-list { padding: 0 22px 18px; }
.activity-item { position: relative; display: flex; gap: 10px; padding: 0 0 19px; }
.activity-item:last-child { padding-bottom: 0; }
.activity-item:not(:last-child)::after { content: ''; position: absolute; width: 1px; background: #e8ede9; top: 31px; bottom: 4px; left: 13px; }
.activity-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 7px; background: #edf5ef; color: #78a282; flex: none; }
.activity-icon .icon { width: 14px; height: 14px; }
.activity-icon.sms { background: #f0f4f7; color: #829aad; }
.activity-icon.renewal { background: #f1f5ed; color: #8ba76c; }
.activity-item p { font-size: 12px; color: #6b7e70; line-height: 1.6; }
.activity-item a:hover { color: var(--green); }
.activity-item time { display: block; font-size: 11px; color: #8d9a91; margin-top: 3px; }
.live-indicator { display: inline-flex; align-items: center; gap: 6px; color: #8b9c8f; font-size: 11px; }
.automation-strip { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 19px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.automation-strip-title { display: flex; align-items: center; gap: 11px; }
.automation-strip h3 { font-size: 13px; }
.automation-strip p { color: var(--muted); font-size: 11px; margin-top: 3px; }
.flow-steps { display: flex; align-items: center; gap: 7px; }
.flow-step { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid #e6ece7; border-radius: 4px; color: #6a8371; font-size: 11px; white-space: nowrap; }
.flow-connector { color: #a9baae; font-size: 12px; }

/* Tables and lists */
.tabs { display: flex; gap: 26px; padding: 0 23px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: thin; }
.tab { display: flex; align-items: center; gap: 7px; padding: 16px 0; color: #7c8b81; font-size: 13px; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab.active { color: var(--green); border-color: var(--green); font-weight: 600; }
.tab.active .count-badge { background: #edf5ef; color: #4f805c; }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 23px; }
.table-search { display: flex; align-items: center; gap: 9px; min-width: 190px; flex: 1; max-width: 370px; color: #8e9c92; border: 1px solid #dce4de; border-radius: 6px; padding: 8px 11px; background: #fff; }
.table-search:focus-within { border-color: #6da081; box-shadow: 0 0 0 3px #2474580a; }
.table-search input { width: 100%; min-width: 0; background: transparent; border: 0; outline: 0; padding: 0; font-size: 12px; color: var(--ink); }
.table-search input::placeholder, .global-search input::placeholder { color: #84958b; }
.filters { display: flex; align-items: center; gap: 9px; }
.filters select { min-width: 145px; max-width: 200px; height: 36px; border: 1px solid #dce4de; border-radius: 6px; background: #fff; padding: 6px 10px; color: #6d8173; font-size: 12px; }
.table-scroll { position: relative; overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 12px 23px; color: #7d8c82; background: #f8faf9; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 600; letter-spacing: .35px; white-space: nowrap; }
td { padding: 17px 23px; color: #536d5c; font-size: 12px; border-bottom: 1px solid #eef1ef; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfdfb; }
td .muted { font-size: 11px !important; }
.person-cell { display: flex; align-items: center; gap: 10px; min-width: 160px; }
.person-cell strong { display: block; color: #314e3c; font-size: 13px; font-weight: 550; }
.person-cell small { display: block; color: #829389; font-size: 11px; margin-top: 3px; white-space: nowrap; }
.person-cell:hover strong { color: var(--green); }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: #edf4ed; color: #64816b; font-size: 11px; font-weight: 600; flex: none; letter-spacing: .1px; }
.avatar.large { width: 53px; height: 53px; border-radius: 10px; font-size: 17px; }
.tone-1 { color: #787488; background: #f0eff4; }
.tone-2 { color: #668799; background: #eef3f6; }
.tone-3 { color: #9e8862; background: #f8f4eb; }
.tone-4 { color: #9a7a79; background: #f7eeee; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 7px; border: 1px solid #e6ece7; border-radius: 4px; background: #f5f7f5; color: #7b8c80; font-size: 11px; line-height: 1.3; white-space: nowrap; font-weight: 500; }
.badge-dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.badge.active, .badge.sent, .badge.success { background: #eff7f0; color: #49855b; border-color: #e0efe3; }
.badge.warning, .badge.expiring, .badge.pending { background: #fbf6e9; color: #a27b2c; border-color: #f1e8ce; }
.badge.danger, .badge.expired, .badge.failed { background: #fff2ef; color: #b66356; border-color: #f5ded8; }
.badge.test, .badge.simulated, .badge.scheduled { background: #f0f4fa; color: #6985a8; border-color: #e2eaf4; }
.badge.renewed { background: #f0f4f0; color: #71896f; border-color: #e1eae0; }
.badge.cancelled { background: #f5f5f5; color: #8c9691; border-color: #e8ebe8; }
.badge.processing { background: #f4f1fa; color: #8d7bab; border-color: #eae3f4; }
.badge.unknown { background: #fff2df; color: #a27124; border-color: #efdcbc; }
.row-actions { display: flex; align-items: center; gap: 7px; }
.row-action { display: inline-grid; place-items: center; width: 29px; height: 29px; border: 1px solid #e5ece6; border-radius: 5px; color: #7f9b86; background: #fff; }
.row-action:hover { color: var(--green); border-color: #aecab7; background: #f2f8f3; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 23px; border-top: 1px solid var(--line); }
.pagination p { font-size: 12px; color: #829288; }
.pagination p strong { font-weight: 500; color: #637c6b; }
.page-links { display: flex; align-items: center; gap: 5px; }
.page-btn { width: 28px; height: 28px; display: inline-grid; place-items: center; border: 1px solid transparent; border-radius: 5px; color: #86998c; font-size: 12px; }
.page-btn.current { background: #edf5ef; border-color: #dcece1; color: var(--green); }
.page-btn:hover:not(.disabled) { background: #f0f5f1; }
.page-btn.disabled { color: #c0ccc3; }
.empty { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 11px; padding: 50px 25px; color: #8ca293; text-align: center; }
.empty strong { display: block; color: #526e5a; font-size: 14px; font-weight: 500; }
.empty p { color: #8b9d91; font-size: 12px; line-height: 1.7; }
.empty .button { margin-top: 7px; }
.empty.compact { padding: 25px 18px; }
.empty.compact p { font-size: 12px; }

/* Forms */
.form-layout { display: grid; grid-template-columns: minmax(0,1fr) 290px; gap: 24px; align-items: start; }
.form-main, .detail-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.form-card { padding: 25px; }
.section-title { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.section-step { width: 30px; height: 30px; border: 1px solid #e2ebe4; border-radius: 6px; display: inline-grid; place-items: center; color: #6e9279; background: #f5f9f5; font-size: 11px; flex: none; }
.section-title h2 { font-size: 15px; }
.section-title p { margin-top: 4px; font-size: 12px; color: #86998c; }
.fields-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 21px; }
.field { display: block; position: relative; color: #506c59; font-size: 13px; font-weight: 500; min-width: 0; }
.field.full { grid-column: 1/-1; }
.field input, .field select, .field textarea { display: block; margin-top: 8px; width: 100%; max-width: 100%; min-height: 42px; border: 1px solid #dbe4dd; border-radius: 6px; padding: 10px 12px; background: #fff; color: #334f3d; font-size: 13px; font-weight: 400; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: #6b9c7c; box-shadow: 0 0 0 3px #2474580c; }
.field input::placeholder, .field textarea::placeholder { color: #94a59a; font-size: 13px; }
.field textarea { min-height: 96px; resize: vertical; line-height: 1.8; }
.field small { display: block; margin-top: 7px; color: #85988b; font-size: 11px; font-weight: 400; line-height: 1.65; }
.field [readonly], .field [disabled] { background: #f8faf8; color: #83978a; }
.required { color: #b3816a; margin-left: 2px; }
.field .field-error { color: #ae5a4d; }
.field input[aria-invalid=true], .field textarea[aria-invalid=true], .field .ts-wrapper.invalid .ts-control { border-color: #c78e84; background: #fffcfb; }
.form-aside { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.info-card, .note-card { padding: 24px; border: 1px solid #e2ebe4; background: #f3f8f4; border-radius: var(--radius); }
.info-card>.icon { color: #77a386; margin-bottom: 15px; width: 25px; height: 25px; }
.info-card h3, .note-card h3 { color: #547660; font-size: 13px; margin-bottom: 10px; }
.info-card p, .note-card p { color: #829a89; font-size: 12px; line-height: 1.9; }
.info-list { padding: 0; margin: 18px 0 0; list-style: none; display: flex; flex-direction: column; gap: 11px; }
.info-list li { display: flex; align-items: center; gap: 8px; color: #7e9987; font-size: 11px; }
.info-list .icon { width: 13px; height: 13px; color: #6ba27e; }
.note-card { background: #fafcfb; border-color: #e5ece7; }
.note-card h3 { display: flex; align-items: center; gap: 7px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 15px 19px; border: 1px solid var(--line); border-radius: 8px; background: #fffffff7; position: sticky; bottom: 16px; z-index: 15; box-shadow: 0 4px 18px #18372206; }
.checkbox-label { display: flex; align-items: center; gap: 9px; font-size: 12px; color: #607f69; cursor: pointer; }
input[type=checkbox], input[type=radio] { width: 16px; height: 16px; flex: none; margin: 0; accent-color: var(--green); cursor: pointer; }
.consent-box { padding: 17px 18px; margin-top: 23px; background: #f8fbf8; border: 1px solid #e3ece5; border-radius: 7px; }
.consent-box strong { font-weight: 500; font-size: 12px; }
.consent-box small { display: block; margin: 7px 0 0 25px; color: #8b9f90; font-size: 11px; line-height: 1.8; }
.radio-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-bottom: 25px; }
.radio-card { display: flex; align-items: center; gap: 11px; border: 1px solid #e2eae3; padding: 15px; border-radius: 7px; color: #849b8c; cursor: pointer; }
.radio-card:has(input:checked) { border-color: #8db99d; background: #f8fcf9; color: #477855; }
.radio-card strong { display: block; font-size: 13px; font-weight: 500; }
.radio-card small { display: block; margin-top: 2px; color: #8da193; font-size: 11px; }
.radio-card>.icon { width: 19px; height: 19px; }
.flash { display: flex; align-items: flex-start; gap: 11px; border: 1px solid #dcece0; border-radius: 7px; background: #f2f9f3; color: #548363; padding: 14px 17px; margin-bottom: 22px; font-size: 13px; line-height: 1.8; }
.flash>.icon { margin-top: 3px; width: 17px; height: 17px; }
.flash>.icon-button { margin-left: auto; margin-top: -3px; flex: none; }
.flash.error { background: #fff6f3; color: #ac6457; border-color: #f1ded7; }
.flash.warning { background: #fffaf0; color: #9e8346; border-color: #efe5d0; }
.flash.info { background: #f5f8fb; color: #728c9d; border-color: #e3ebf1; }
.flash p { margin-top: 3px; }
.flash a { text-decoration: underline; }
.flash ul { margin: 6px 0 0; padding-left: 17px; }
.timing-inputs { display: flex; gap: 9px; align-items: flex-start; margin-top: 8px; }
.timing-inputs input { width: 80px; margin-top: 0; }
.timing-inputs select { flex: 1; margin-top: 0; }
.password-wrap { position: relative; display: block; }
.password-wrap input { padding-right: 43px; }
.password-wrap .icon-button { position: absolute; right: 6px; top: 6px; }
.field input[type=file] { padding: 7px; font-size: 11px; color: #82958a; }
.field input[type=file]::file-selector-button { padding: 6px 8px; margin-right: 8px; border: 0; border-radius: 3px; background: #edf4ee; color: #587e64; font: inherit; cursor: pointer; }

/* Customer record */
.customer-heading { display: flex; align-items: center; gap: 14px; min-width: 0; }
.customer-heading h1 { font-size: 26px; }
.detail-heading-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 6px; color: #819a89; font-size: 12px; }
.detail-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 23px; align-items: start; }
.cert-item { padding: 22px 23px; border-top: 1px solid var(--line); scroll-margin-top: 88px; }
.cert-item-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 20px; }
.cert-provider { display: flex; align-items: center; gap: 10px; }
.cert-provider strong { display: block; color: #4a6c55; font-size: 14px; font-weight: 550; }
.cert-provider small { display: block; margin-top: 3px; color: #8da193; font-size: 11px; }
.cert-data { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; margin: 0 0 21px; }
.cert-data dt { color: #8c9e90; font-size: 10px; letter-spacing: .35px; margin-bottom: 6px; }
.cert-data dd { color: #597760; font-size: 12px; margin: 0; font-variant-numeric: tabular-nums; }
.cert-actions { display: flex; align-items: center; gap: 8px; }
.info-details { display: flex; flex-direction: column; gap: 21px; padding: 0 23px 24px; }
.info-row { display: flex; gap: 11px; color: #829e8b; font-size: 12px; }
.info-row>.icon { width: 16px; height: 16px; color: #92aa9a; margin-top: 2px; }
.info-row span:not(.badge) { display: block; margin-bottom: 5px; color: #8fa597; font-size: 10px; letter-spacing: .3px; }
.info-row strong { font-weight: 400; font-size: 12px; color: #6d8a76; overflow-wrap: anywhere; }
.info-row a { color: #597e65; overflow-wrap: anywhere; }
.info-row a:hover { text-decoration: underline; }
.info-divider { border: 0; border-top: 1px solid #e7eee8; width: 100%; margin: 0; }
.notes-text { color: #859f8e; font-size: 12px; line-height: 1.9; white-space: pre-line; }
.doc-list { padding: 0 23px; }
.doc-item { display: flex; align-items: center; gap: 10px; padding: 15px 0; border-top: 1px solid var(--line); }
.doc-item>div { flex: 1; min-width: 0; }
.doc-icon { color: #aa9574; background: #f8f5ef; border: 1px solid #eee8db; border-radius: 6px; width: 32px; height: 36px; display: grid; place-items: center; flex: none; }
.doc-item strong { color: #698773; font-size: 12px; font-weight: 500; display: block; }
.doc-item small { display: block; color: #9cab9f; font-size: 11px; margin-top: 3px; overflow-wrap: anywhere; }
.doc-upload { display: flex; align-items: flex-end; gap: 12px; padding: 19px 23px; border-top: 1px solid var(--line); background: #fbfcfb; border-radius: 0 0 var(--radius) var(--radius); flex-wrap: wrap; }
.doc-upload .field { flex: 1; min-width: 180px; font-size: 12px; }
.doc-upload .field input, .doc-upload .field select { min-height: 37px; }

/* Reminder rules, SMS composer */
.rules-info { display: flex; gap: 13px; align-items: center; padding: 17px 19px; border: 1px solid #dfeae2; background: #f0f7f2; border-radius: 8px; margin-bottom: 23px; color: #6b977b; }
.rules-info>div { flex: 1; }
.rules-info p { color: #698873; font-size: 12px; }
.rules-info small { display: block; color: #8ea595; font-size: 11px; margin-top: 3px; line-height: 1.7; }
.rule-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.rule-card { padding: 23px; }
.rule-card.paused { background: #fdfefd; }
.rule-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 19px; }
.toggle-switch { display: block; position: relative; width: 32px; height: 18px; border: 0; border-radius: 20px; background: #dce5de; padding: 0; }
.toggle-switch::after { content: ''; position: absolute; width: 12px; height: 12px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #304b3a15; transition: left .15s; }
.toggle-switch.on { background: #5e9873; }
.toggle-switch.on::after { left: 17px; }
.rule-card h2 { font-size: 15px; margin-bottom: 10px; }
.rule-timing { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #8aa193; }
.rule-timing strong { color: #547e62; font-weight: 550; }
.rule-template { font-size: 12px; line-height: 1.9; margin: 18px 0; padding: 14px; color: #839b89; background: #f8faf8; border: 1px solid #edf1ed; border-radius: 6px; overflow-wrap: anywhere; min-height: 119px; }
.rule-footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid #eef2ee; }
.rule-footer .text-link { font-size: 11px; }
.tokens { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.token { padding: 5px 7px; border: 1px solid #dfeae3; border-radius: 4px; background: #f7faf8; color: #6c927b; font: 11px ui-monospace,SFMono-Regular,monospace; }
.token:hover { background: #edf5ef; border-color: #a7ccb6; }
.message-preview { margin-top: 20px; border: 1px solid #e0eae3; border-radius: 9px; background: #f9fcfa; overflow: hidden; }
.preview-header { display: flex; justify-content: space-between; align-items: center; gap: 9px; border-bottom: 1px solid #e5eee8; padding: 13px 14px; background: #f3f8f4; color: #8ca496; font-size: 10px; font-weight: 500; letter-spacing: .6px; }
.phone-preview { margin: 20px 15px 24px; padding: 15px; background: #edf4ee; border: 1px solid #e0ebe2; border-radius: 0 9px 9px 9px; color: #72937f; font-size: 12px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }
.sms-length { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; font-size: 11px; color: #8da798; }
.sms-aside { position: sticky; top: 93px; }
.message-body { max-width: 340px; font-size: 12px; color: #7d9a88; line-height: 1.8; overflow-wrap: anywhere; }
.message-body summary { cursor: pointer; }
.message-body p { margin-top: 10px; white-space: pre-wrap; }
.message-body small { display: block; color: #b18b7d; font-size: 11px; margin-top: 7px; }
.recipient-search { display: flex; align-items: center; gap: 8px; padding: 9px 11px; margin-bottom: 15px; border: 1px solid #dfe8e2; border-radius: 6px; color: #86a08f; }
.recipient-search input { border: 0; outline: 0; background: transparent; width: 100%; font-size: 12px; color: #597c66; }
.recipient-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 11px; color: #8ba395; padding: 0 1px 12px; }
.recipient-list { max-height: 310px; overflow-y: auto; border: 1px solid #e3ece5; border-radius: 7px; scrollbar-width: thin; }
.recipient-row { display: flex; align-items: center; gap: 11px; padding: 12px 14px; cursor: pointer; border-bottom: 1px solid #eef3ef; }
.recipient-row:last-child { border-bottom: 0; }
.recipient-row:hover { background: #f9fcfa; }
.recipient-row:has(input:checked) { background: #f1f8f3; }
.recipient-row.disabled { opacity: .5; cursor: not-allowed; background: #fafbfa; }
.recipient-row strong { display: block; font-size: 12px; font-weight: 500; color: #5d806b; }
.recipient-row small { display: block; font-size: 11px; color: #8da798; margin-top: 2px; }
.recipient-row .badge { margin-left: auto; }
.recipient-row .avatar { width: 30px; height: 30px; border-radius: 6px; font-size: 10px; }
.recipient-feedback { color: #9a752e; font-size: 12px; padding-top: 9px; }
.composer-section { border-top: 1px solid #e7eee8; padding-top: 24px; margin-top: 25px; }
.composer-options { display: flex; align-items: center; gap: 22px; margin-bottom: 19px; }
.no-results { padding: 23px; text-align: center; color: #8ba494; font-size: 12px; }

/* Settings, reports and support */
.settings-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 23px; }
.settings-nav a { border: 1px solid #e2ebe4; border-radius: 6px; background: #fff; padding: 9px 13px; font-size: 12px; color: #779484; }
.settings-nav a:hover, .settings-nav a.active { color: var(--green); border-color: #bbd7c6; background: #f8fcf9; }
.settings-section { margin-bottom: 23px; scroll-margin-top: 88px; }
.settings-section .card-header { padding: 24px 25px; border-bottom: 1px solid #edf1ee; }
.settings-section .card-body { padding: 25px; }
.settings-split { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(230px,1fr); gap: 40px; align-items: start; }
.settings-note { padding: 17px 18px; border: 1px solid #e0ebe3; border-radius: 7px; background: #f6faf7; font-size: 12px; line-height: 1.9; color: #84a18d; }
.settings-note strong { display: block; color: #5f876c; margin-bottom: 5px; font-size: 12px; }
.settings-note span { display: block; }
.settings-check { display: flex; gap: 13px; align-items: center; border-top: 1px solid #e7eee8; margin-top: 22px; padding-top: 22px; }
.settings-check .checkbox-label { flex: 1; align-items: flex-start; }
.settings-check p { color: #8ca796; font-size: 11px; margin-top: 5px; }
.connection-status { display: flex; align-items: center; gap: 8px; color: #819c8c; font-size: 12px; line-height: 1.8; }
.warning-text { color: #af8c4d; }
.team-form { padding: 22px 25px; border-top: 1px solid #e7eee8; background: #fbfcfb; border-radius: 0 0 var(--radius) var(--radius); }
.team-form .fields-grid { grid-template-columns: 1fr 1.3fr 1fr 130px; gap: 14px; margin-top: 17px; }
.team-form .button { margin-top: 17px; }
.report-summary { display: flex; gap: 50px; padding: 0 25px 15px; }
.report-summary span { color: #829f8c; font-size: 12px; }
.report-summary strong { display: block; color: #4d755c; font-size: 25px; font-weight: 550; letter-spacing: -.6px; margin-top: 4px; }
.report-summary small { font-size: 11px; font-weight: 400; }
.revenue-chart { height: 215px; display: flex; gap: 22px; align-items: flex-end; padding: 15px 30px 25px; }
.revenue-bar-group { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 12px; }
.revenue-bar { width: 100%; max-width: 47px; min-height: 2px; background: #6f9e7f; border-radius: 4px 4px 0 0; }
.revenue-bar-group small { font-size: 11px; color: #8aa395; }
.revenue-canvas { height: 225px; margin: 0 25px 22px; position: relative; }
.report-columns { display: grid; grid-template-columns: minmax(0,1.45fr) minmax(0,1fr); gap: 23px; margin-top: 23px; align-items: start; }
.report-bar { width: 100%; height: 4px; border-radius: 5px; background: #eef3ef; overflow: hidden; }
.report-bar>span { display: block; height: 100%; background: #90b99d; border-radius: 5px; }
.help-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.help-card { padding: 27px; }
.help-card h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; color: #557e63; font-size: 15px; }
.help-card h2 .icon { color: #81a98d; width: 21px; height: 21px; }
.help-card p, .help-card ol { color: #7e9a89; font-size: 13px; line-height: 1.9; }
.help-card ol { padding-left: 18px; }
.help-card li { margin-bottom: 9px; }
.help-card code { font-size: 11px; color: #6a9078; background: #f2f7f3; padding: 3px 6px; border-radius: 3px; }
.account-card { max-width: 700px; }
.account-info { display: flex; align-items: center; gap: 14px; padding-bottom: 23px; margin-bottom: 24px; border-bottom: 1px solid #e7eee8; }
.account-info p { color: #8aa395; font-size: 12px; margin-top: 4px; }

/* Searchable select. All assets are served by the application. */
.ts-wrapper { font-size: 13px; min-width: 0; }
.field>.ts-wrapper { margin-top: 8px; }
.ts-control { padding: 10px 34px 10px 12px !important; min-height: 42px; color: #334f3d !important; border: 1px solid #dbe4dd !important; border-radius: 6px !important; background: #fff !important; box-shadow: none !important; cursor: pointer; align-items: center; line-height: 20px; }
.ts-wrapper.single .ts-control::after { content: ''; position: absolute; right: 13px; top: 16px; width: 6px; height: 6px; border: solid #8b9d90; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.ts-wrapper.focus .ts-control { border-color: #6b9c7c !important; box-shadow: 0 0 0 3px #2474580c !important; }
.ts-control>.item { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.field .ts-control>input, .ts-control>input { min-height: 0 !important; padding: 0 !important; margin: 0 !important; border: 0 !important; outline: 0 !important; box-shadow: none !important; font-size: 13px !important; line-height: 20px !important; }
.ts-dropdown { border: 1px solid #d7e3da; border-radius: 7px; box-shadow: 0 8px 24px #19372412; background: #fff; font-size: 13px; color: #486350; margin-top: 5px; z-index: 70; overflow: hidden; }
.ts-dropdown-content { max-height: 245px; padding: 5px; scrollbar-width: thin; }
.ts-dropdown .option { padding: 9px 10px; border-radius: 4px; line-height: 1.6; }
.ts-dropdown .option.active { background: #f0f7f1; color: #2b7149; }
.ts-dropdown .option.selected { color: #2c7a4b; font-weight: 500; }
.ts-dropdown .highlight { background: #d9eadc; color: inherit; border-radius: 1px; }
.ts-dropdown .no-results { padding: 16px 10px; font-size: 12px; color: #8a9c90; }
.ts-dropdown .dropdown-input-wrap { border-bottom: 1px solid #e6ede8; padding: 9px; background: #fafcfb; }
.ts-dropdown .dropdown-input, .field .ts-dropdown .dropdown-input { width: 100%; min-height: 35px; padding: 7px 10px; border: 1px solid #d8e4dc; border-radius: 4px; outline: 0; margin: 0; color: #42664e; background: #fff; font-size: 13px; }
.ts-dropdown .dropdown-input:focus { border-color: #92b89d; box-shadow: 0 0 0 2px #24745808; }
.filters .ts-wrapper { width: 170px; }
.filters .ts-control, .card-header .ts-control, .heading-actions .ts-control { min-height: 35px; padding: 6px 30px 6px 10px !important; font-size: 12px; }
.filters .ts-wrapper.single .ts-control::after, .card-header .ts-wrapper.single .ts-control::after, .heading-actions .ts-wrapper.single .ts-control::after { top: 13px; }
.card-header .ts-wrapper, .heading-actions .ts-wrapper { min-width: 130px; }
.timing-inputs .ts-wrapper { flex: 1; }
.timing-inputs .ts-control { margin: 0; }
.ts-wrapper.disabled .ts-control { background: #f7faf7 !important; color: #8fa193 !important; }

/* Confirmation dialog */
.confirm-dialog { padding: 0; width: calc(100% - 36px); max-width: 440px; border: 1px solid #dbe5de; border-radius: 12px; color: var(--ink); background: #fff; box-shadow: 0 20px 90px #112d2030; }
.confirm-dialog::backdrop { background: #12291c55; backdrop-filter: blur(2px); }
.confirm-dialog-content { padding: 27px; }
.confirm-dialog h2 { font-size: 18px; margin-bottom: 11px; }
.confirm-dialog p { color: #7d9385; font-size: 13px; line-height: 1.9; }
.confirm-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; padding: 17px 23px; border-top: 1px solid var(--line); background: #f9fbf9; }

/* Sign in */
.login-body { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); min-height: 100dvh; background: #fff; }
.login-story { padding: 43px 57px 28px; background: #1a3025; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.login-story::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(#a6c9b008 1px,transparent 1px),linear-gradient(90deg,#a6c9b008 1px,transparent 1px); background-size: 54px 54px; pointer-events: none; }
.login-story .brand { width: 282px; max-width: 100%; padding: 14px 16px; z-index: 1; }
.login-story-content { margin: auto 0; padding: 60px 0; max-width: 470px; position: relative; z-index: 1; }
.login-story .eyebrow { color: #96b5a0; font-size: 11px; }
.login-story h1 { font-size: 42px; line-height: 1.24; font-weight: 500; color: #e8f2ea; letter-spacing: -1.5px; margin: 17px 0 22px; }
.login-story-content>p { color: #a0b9a8; font-size: 14px; line-height: 1.9; max-width: 365px; }
.login-features { display: flex; flex-direction: column; gap: 17px; margin-top: 40px; color: #a9c5b2; font-size: 12px; }
.login-features span { display: flex; align-items: center; gap: 11px; }
.login-copyright { color: #7c9e87; font-size: 11px; position: relative; z-index: 1; }
.login-panel { display: flex; justify-content: center; align-items: center; padding: 55px; }
.login-form-wrap { width: 100%; max-width: 350px; }
.login-overline { display: block; color: #8ca595; font-size: 12px; margin-bottom: 13px; }
.login-panel h2 { font-size: 28px; letter-spacing: -.7px; margin-bottom: 9px; }
.login-panel .muted { font-size: 13px; line-height: 1.8; }
.login-form { display: flex; flex-direction: column; gap: 21px; margin-top: 34px; }
.login-form .field input { min-height: 44px; }
.login-options { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 3px; }
.login-options .checkbox-label { font-size: 11px; }
.login-options .small { font-size: 10px; }
.login-submit { width: 100%; justify-content: space-between; padding-inline: 16px; min-height: 44px; font-size: 13px; }
.demo-login { padding: 15px; margin-top: 26px; border: 1px solid #e1ebe4; border-radius: 7px; background: #f8fbf9; font-size: 12px; color: #769582; line-height: 1.9; }
.demo-login p { margin-top: 6px; }
.demo-login .badge { font-size: 10px; }
.demo-login code { font-size: 12px; color: #648f74; }
.demo-login small { color: #8da797; font-size: 11px; }
.login-secure { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 24px; color: #97ac9e; font-size: 11px; }
.login-panel .flash { margin-top: 20px; }

/* Readable secondary text on light backgrounds */
.page-heading p,.card-header p,.stat-foot,.chart-legend,.distribution-legend a,
.distribution-legend small,.person-cell small,.activity-item time,.automation-strip p,
.pagination p,.section-title p,.field small,.consent-box small,.info-card p,.info-list li,
.note-card p,.radio-card small,.detail-heading-meta,.cert-provider small,.cert-data dt,
.info-row,.info-row span:not(.badge),.doc-item small,.notes-text,.rule-timing,.rule-template,
.rules-info small,.message-body,.recipient-row small,.recipient-toolbar,.sms-length,
.report-summary span,.settings-note,.settings-check p,.connection-status,.help-card p,
.help-card ol,.account-info p,.demo-login small,.no-results { color: #6b8072; }

@media (min-width:1600px) { .content { padding-top: 35px; } .chart-canvas { height: 250px; } }
@media (max-width:1280px) {
  .sidebar { width: 216px; padding-inline: 12px; }
  .app-main { margin-left: 216px; }
  .topbar { padding-inline: 25px; }
  .content { padding: 25px 25px 0; }
  .global-search input { width: 115px; }
  .heading-actions .date-chip { display: none; }
  .stats-grid { gap: 13px; }
  .stat-card { padding: 18px 16px 16px; }
  .priority-layout, .dashboard-charts { gap: 19px; grid-template-columns: minmax(0,1.7fr) minmax(270px,1fr); }
  .flow-steps { gap: 5px; }
  .flow-step { font-size: 10px; padding: 6px; }
  .table-toolbar { flex-wrap: wrap; gap: 13px; }
  .table-search { max-width: none; }
  th, td { padding-inline: 18px; }
  .rule-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .form-layout { grid-template-columns: minmax(0,1fr) 250px; gap: 20px; }
  .detail-layout { grid-template-columns: minmax(0,1fr) 270px; gap: 20px; }
  .settings-split { gap: 25px; }
  .team-form .fields-grid { grid-template-columns: 1fr 1fr; }
  .login-story { padding-inline: 40px; }
}
@media (max-width:1080px) {
  .global-search, .breadcrumb-home, .breadcrumb-slash { display: none; }
  .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .priority-layout, .dashboard-charts { grid-template-columns: 1fr; }
  .priority-aside { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .status-card { display: grid; grid-template-columns: 1fr 1fr; }
  .status-card .card-header { grid-column: 1/-1; }
  .distribution-legend { justify-content: center; padding: 0 28px 25px; }
  .donut-wrap { padding-bottom: 22px; }
  .form-layout, .detail-layout { grid-template-columns: 1fr; }
  .form-aside { display: grid; grid-template-columns: 1fr 1fr; }
  .sms-aside { position: static; }
  .customer-heading h1 { font-size: 24px; }
  .settings-split, .report-columns { grid-template-columns: 1fr; }
  .page-heading { align-items: flex-start; }
  .filters { flex-wrap: wrap; }
  .filters .ts-wrapper { width: 155px; }
  .table-toolbar { align-items: stretch; }
  .table-search { flex-basis: 100%; }
  .automation-strip { flex-wrap: wrap; }
  .flow-steps { order: 3; width: 100%; }
  .login-story h1 { font-size: 35px; }
  .login-panel { padding: 35px; }
}
@media (max-width:760px) {
  .sidebar { width: 248px; padding-top: 24px; transform: translateX(-100%); visibility: hidden; transition: transform .2s,visibility .2s; }
  .menu-open .sidebar { transform: translateX(0); visibility: visible; transition-property: transform; }
  .menu-open .sidebar-backdrop { display: block; position: fixed; inset: 0; background: #142d2055; z-index: 39; }
  .menu-open { overflow: hidden; }
  .sidebar-close { display: grid !important; position: absolute; right: 12px; top: 34px; color: #9eb9a7; }
  .sidebar .brand { width: calc(100% - 38px); }
  .app-main { margin-left: 0; }
  .mobile-menu { display: inline-grid; }
  .topbar { height: 59px; padding: 0 17px; }
  .breadcrumb { gap: 8px; }
  .topbar-actions { gap: 9px; }
  .mode-pill { font-size: 10px; }
  .top-help { display: none; }
  .content { padding: 24px 17px 0; }
  .page-heading { gap: 17px; flex-wrap: wrap; margin-bottom: 22px; }
  .page-heading h1 { font-size: 26px; }
  .page-heading p { font-size: 12px; }
  .heading-actions { gap: 8px; }
  .button { font-size: 12px; }
  .heading-actions .button { min-height: 37px; padding: 8px 12px; }
  .stats-grid { gap: 11px; margin-bottom: 20px; }
  .stat-card { padding: 15px 13px; }
  .stat-value { font-size: 30px; margin-bottom: 10px; }
  .stat-top { font-size: 11px; }
  .stat-foot { font-size: 10px; gap: 4px; min-height: 26px; }
  .stat-top .icon-tile { width: 27px; height: 27px; }
  .stat-top .icon { width: 15px; height: 15px; }
  .card-header { padding: 18px; gap: 12px; }
  .card-header h2 { font-size: 14px; }
  .card-header p { font-size: 11px; }
  .priority-layout, .dashboard-charts { gap: 18px; margin-bottom: 20px; }
  .priority-aside { grid-template-columns: 1fr; gap: 18px; }
  .priority-footer { padding: 13px 18px; gap: 15px; font-size: 11px; }
  .chart-legend { padding-left: 18px; font-size: 11px; }
  .chart-canvas { height: 200px; margin-inline: 9px; }
  .chart-fallback { padding-inline: 18px; }
  .activity-list { padding-inline: 18px; }
  .operation-state, .operation-details { padding-inline: 18px; }
  .automation-strip { padding: 17px; gap: 15px; }
  .automation-strip-title { flex: 1; }
  .flow-steps { flex-wrap: wrap; gap: 7px; }
  .flow-step { font-size: 11px; }
  .page-footer { flex-wrap: wrap; font-size: 10px; gap: 6px; padding-block: 24px; }
  .tabs { padding-inline: 17px; gap: 22px; }
  .tab { font-size: 12px; padding-block: 14px; }
  .table-toolbar { padding: 17px; gap: 12px; }
  .filters { gap: 8px; width: 100%; }
  .filters .ts-wrapper { flex: 1; min-width: 125px; }
  .filters .button { min-height: 35px; }
  th, td { padding-inline: 17px; }
  td { font-size: 12px; }
  .person-cell { min-width: 160px; gap: 9px; }
  .person-cell strong { font-size: 12px; }
  .person-cell small { font-size: 11px; }
  .table-scroll { background: linear-gradient(to right,#fff,transparent) left center,linear-gradient(to left,#fff,transparent) right center; }
  .pagination { padding: 15px 17px; flex-wrap: wrap; gap: 13px; }
  .pagination p { font-size: 11px; }
  .form-card { padding: 22px 18px; }
  .form-layout { gap: 18px; }
  .form-main, .detail-main { gap: 18px; }
  .form-aside { grid-template-columns: 1fr; }
  .fields-grid { gap: 19px 17px; }
  .field input, .field select, .field textarea { font-size: 14px; }
  .field input::placeholder, .field textarea::placeholder { font-size: 13px; }
  .section-title { margin-bottom: 23px; gap: 10px; }
  .section-title p { font-size: 11px; }
  .form-actions { bottom: 10px; padding: 13px; gap: 8px; }
  .form-actions .primary { flex: 1; }
  .customer-heading h1 { font-size: 23px; }
  .customer-heading .avatar.large { width: 46px; height: 46px; font-size: 15px; }
  .detail-heading-meta { gap: 6px; font-size: 11px; }
  .cert-item { padding: 21px 18px; }
  .cert-data { grid-template-columns: 1fr 1fr; gap: 18px; }
  .cert-actions { flex-wrap: wrap; }
  .doc-list, .info-details { padding-inline: 18px; }
  .doc-upload { padding: 18px; gap: 14px; }
  .doc-upload .field { min-width: 100%; }
  .doc-upload .button { min-height: 37px; }
  .rule-grid { grid-template-columns: 1fr; gap: 18px; }
  .rule-card { padding: 23px 20px; }
  .rule-template { min-height: 0; }
  .rules-info { align-items: flex-start; gap: 10px; padding: 16px; flex-wrap: wrap; }
  .rules-info>.icon { width: 18px; height: 18px; margin-top: 2px; }
  .rules-info>div { min-width: 230px; }
  .rules-info .button { margin-left: 27px; }
  .composer-options { flex-wrap: wrap; gap: 15px; }
  .recipient-row { padding-inline: 12px; gap: 9px; }
  .recipient-row .avatar { display: none; }
  .recipient-row small { font-size: 11px; }
  .recipient-list { max-height: 285px; }
  .settings-section .card-header, .settings-section .card-body { padding: 21px 18px; }
  .settings-nav a { font-size: 11px; padding: 8px 10px; }
  .settings-check { flex-wrap: wrap; gap: 15px; }
  .team-form { padding: 21px 18px; }
  .revenue-chart { gap: 9px; padding-inline: 18px; }
  .revenue-canvas { height: 200px; margin-inline: 12px; }
  .report-summary { padding-inline: 18px; gap: 30px; }
  .report-summary strong { font-size: 23px; }
  .help-grid { grid-template-columns: 1fr; gap: 18px; }
  .help-card { padding: 23px; }
  .login-body { display: flex; flex-direction: column; }
  .login-story { padding: 24px 27px; min-height: auto; }
  .login-story .brand { width: 250px; padding: 11px 14px; }
  .login-story-content, .login-copyright { display: none; }
  .login-panel { padding: 40px 27px; flex: 1; }
  .login-form-wrap { max-width: 370px; }
  .login-panel h2 { font-size: 29px; }
  .skip-link { left: 17px; }
}
@media (max-width:480px) {
  .fields-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .heading-actions { width: 100%; }
  .heading-actions .primary { flex: 1; }
  .status-card { grid-template-columns: 1fr; }
  .distribution-legend { padding: 0 24px 23px; }
  .donut-wrap { padding-bottom: 16px; }
  .team-form .fields-grid { grid-template-columns: 1fr; }
  .card-header .text-link { font-size: 11px; }
  .priority-table .card-header .count-badge { display: none; }
  .rule-footer .text-link { font-size: 12px; }
  .radio-card { gap: 8px; padding: 13px 10px; }
  .login-options .small { font-size: 10px; max-width: 130px; text-align: right; }
}
@media (max-height:820px) and (min-width:761px) {
  .sidebar { padding-top: 23px; }
  .workspace { margin-block: 23px; }
  .sidebar-bottom { padding-top: 15px; }
  .automation-mini { display: none; }
  .profile { padding-block: 15px; }
}
@media (prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print {
  .sidebar,.topbar,.heading-actions,.page-footer,.button,.settings-nav,.chart-fallback summary { display: none !important; }
  .app-main { margin-left: 0; }
  .content { max-width: none; padding: 0; }
  .card { break-inside: avoid; box-shadow: none; border-color: #ddd; }
  .page-heading h1 { font-size: 24px; }
  .chart-fallback { display: block; }
  .chart-fallback:not([open])>* { display: block; }
  body { background: #fff; }
}

button[data-clear-recipients] { border: 0; background: transparent; padding: 0; }
.recipient-search { max-width: none; }
.help-card>.icon-tile { margin-bottom: 16px; }
.settings-note code { display: block; font-size: 11px; overflow-wrap: anywhere; }
