:root {
  font-family: Outfit, "Segoe UI", sans-serif;
  color: #17233a;
  background: #f5f7fb;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
svg { flex: none; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.boot-screen { min-height: 100vh; display: grid; align-content: center; justify-items: center; gap: 12px; color: #66758e; }
.boot-mark, .brand-mark { display: grid; place-items: center; color: white; background: #2563eb; font-weight: 700; letter-spacing: -.08em; box-shadow: 0 8px 20px #2563eb33; }
.boot-mark { width: 52px; height: 52px; border-radius: 16px; font-size: 27px; }

.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(400px, 46%) 1fr; background: #fff; }
.auth-art { position: relative; isolation: isolate; overflow: hidden; min-height: 100vh; background: linear-gradient(145deg, #0e3c91 0%, #124fb4 50%, #2779f5 100%); color: white; padding: 52px min(6vw, 100px); display: flex; flex-direction: column; justify-content: space-between; }
.auth-art::before, .auth-art::after { content: ""; position: absolute; border: 1px solid #ffffff2a; border-radius: 50%; z-index: -1; }
.auth-art::before { width: 780px; height: 780px; top: 12%; left: 20%; }
.auth-art::after { width: 560px; height: 560px; top: 30%; left: 40%; }
.auth-brand { display: flex; align-items: center; gap: 13px; font-size: 23px; font-weight: 600; letter-spacing: -.04em; }
.auth-brand .brand-mark { background: #ffffff27; box-shadow: none; border: 1px solid #ffffff52; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; font-size: 22px; }
.auth-story { max-width: 470px; padding-bottom: 8vh; }
.auth-story .eyebrow { color: #bfdbfe; }
.auth-story h1 { font-size: clamp(36px, 4.1vw, 64px); line-height: 1.05; letter-spacing: -.055em; font-weight: 500; margin: 18px 0 23px; }
.auth-story p { font-size: 17px; line-height: 1.65; color: #deebff; max-width: 390px; font-weight: 300; }
.auth-foot { color: #ffffffb2; font-size: 13px; }
.auth-main { display: grid; place-items: center; padding: 46px 26px; }
.auth-card { width: min(100%, 430px); }
.eyebrow { color: #2d67d9; text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 600; }
.auth-card h2 { font-size: 36px; line-height: 1.1; letter-spacing: -.05em; font-weight: 500; margin: 15px 0 10px; }
.auth-card .lead { color: #718099; line-height: 1.5; font-size: 15px; margin: 0 0 34px; font-weight: 300; }
.auth-card .field { margin-bottom: 17px; }
.auth-card .primary-btn { width: 100%; margin-top: 10px; }
.auth-note { margin-top: 26px; display: flex; gap: 10px; align-items: flex-start; color: #8692a8; font-size: 12px; line-height: 1.5; }

.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 238px; flex: none; background: #fff; border-right: 1px solid #e8edf5; min-height: 100vh; display: flex; flex-direction: column; padding: 27px 16px 20px; position: sticky; top: 0; height: 100vh; z-index: 25; }
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 3px 10px 32px; font-size: 21px; font-weight: 600; letter-spacing: -.05em; }
.sidebar-brand small { display: block; font-size: 10px; color: #9aa8be; letter-spacing: .14em; font-weight: 600; text-transform: uppercase; margin-top: -4px; }
.nav-label { color: #a2acc0; font-size: 10px; font-weight: 600; letter-spacing: .15em; padding: 10px 17px 11px; }
.nav-list { display: flex; flex-direction: column; gap: 3px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; height: 43px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: #718098; text-align: left; font-weight: 400; font-size: 14px; transition: background .15s, color .15s; }
.nav-item svg { width: 17px; height: 17px; stroke-width: 1.8; }
.nav-item:hover { background: #f4f7fd; color: #2558bd; }
.nav-item.active { background: #eaf2ff; color: #2161d4; font-weight: 500; }
.nav-sub-item { width: calc(100% - 22px); height: 36px; margin-left: 22px; padding-left: 12px; color: #8190a8; font-size: 12px; }
.nav-sub-item svg { width: 15px; height: 15px; }
.sidebar-spacer { flex: 1; }
.sidebar-help { margin: 0 4px 15px; padding: 17px; border: 1px solid #e4ecf7; border-radius: 13px; background: linear-gradient(135deg, #f8fbff, #eff6ff); }
.sidebar-help svg { color: #3674e5; width: 19px; }
.sidebar-help strong { display: block; font-size: 13px; font-weight: 500; margin: 9px 0 5px; }
.sidebar-help p { font-size: 11px; line-height: 1.5; color: #8390a8; margin: 0; }
.sidebar-account { display: flex; align-items: center; gap: 10px; border-top: 1px solid #e9edf4; padding: 19px 7px 3px; }
.avatar { flex: none; width: 35px; height: 35px; border-radius: 10px; background: #e5efff; color: #2764cf; display: grid; place-items: center; font-size: 14px; font-weight: 600; }
.sidebar-account strong, .sidebar-account small { display: block; max-width: 129px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-account strong { font-size: 12px; font-weight: 500; }
.sidebar-account small { font-size: 11px; color: #9aa6b8; margin-top: 2px; }
.logout-btn { margin-left: auto; color: #98a6bb; background: none; border: 0; padding: 7px; border-radius: 7px; }
.logout-btn:hover { color: #d34b5b; background: #fff1f2; }
.logout-btn svg { width: 17px; height: 17px; }
.main-area { flex: 1; min-width: 0; }
.topbar { height: 74px; padding: 0 clamp(24px, 4vw, 66px); border-bottom: 1px solid #e8edf4; display: flex; justify-content: space-between; align-items: center; background: #fff; }
.topbar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.breadcrumb { color: #9aa6ba; font-size: 13px; }
.breadcrumb strong { color: #34425b; font-weight: 500; }
.breadcrumb .slash { margin: 0 11px; color: #c4ccda; }
.topbar-right { display: flex; align-items: center; gap: 13px; color: #8996aa; font-size: 12px; }
.topbar-tag { border: 1px solid #e8edf5; padding: 7px 10px; border-radius: 7px; display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.topbar-tag svg { width: 14px; height: 14px; }
.mobile-toggle { display: none; border: 0; background: transparent; color: #24426b; padding: 4px; }
.content { max-width: 1450px; margin: 0 auto; padding: 38px clamp(24px, 4vw, 66px) 70px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; }
.page-head h1 { font-size: clamp(29px, 2.6vw, 38px); font-weight: 500; letter-spacing: -.055em; line-height: 1.15; margin: 7px 0 7px; }
.page-head p { color: #8995a9; font-size: 14px; font-weight: 300; margin: 0; line-height: 1.45; }
.page-actions { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.primary-btn, .secondary-btn, .text-btn, .danger-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 9px; font-size: 13px; font-weight: 500; transition: .15s; white-space: nowrap; }
.primary-btn { min-height: 40px; padding: 0 16px; border: 1px solid #2360db; color: white; background: #2563e6; box-shadow: 0 4px 12px #2563eb26; }
.primary-btn:hover { background: #1552ca; }
.primary-btn:disabled, .secondary-btn:disabled { opacity: .55; cursor: not-allowed; }
.secondary-btn { min-height: 40px; padding: 0 15px; color: #50627c; background: #fff; border: 1px solid #dce4ef; }
.secondary-btn:hover { color: #2a63d2; border-color: #b8d0fb; background: #f9fbff; }
.danger-btn { min-height: 40px; padding: 0 15px; color: #bb4a56; background: #fff; border: 1px solid #f2cbd0; }
.danger-btn:hover { background: #fff3f4; }
.text-btn { padding: 7px 0; color: #2d6ad8; background: none; border: 0; }
.text-btn:hover { color: #114ebc; }
.primary-btn svg, .secondary-btn svg, .danger-btn svg, .text-btn svg { width: 16px; height: 16px; stroke-width: 1.8; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid #e4eaf2; border-radius: 8px; background: white; color: #74839a; }
.icon-btn:hover { color: #2c66d2; background: #f7faff; }
.icon-btn svg { width: 16px; height: 16px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-bottom: 25px; }
.stat-card { min-height: 139px; background: white; border: 1px solid #e9edf4; border-radius: 13px; padding: 21px; box-shadow: 0 3px 16px #1c3d7508; }
.stat-top { display: flex; justify-content: space-between; align-items: flex-start; color: #8391a7; font-size: 12px; }
.stat-icon { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #2766d4; background: #ebf3ff; }
.stat-icon svg { width: 17px; height: 17px; stroke-width: 1.8; }
.stat-icon.green { color: #208d72; background: #e8f8f2; }
.stat-icon.amber { color: #ba811c; background: #fff5e5; }
.stat-icon.violet { color: #765ac4; background: #f2edff; }
.stat-value { font-size: 31px; letter-spacing: -.05em; color: #24334c; line-height: 1; font-weight: 500; margin: 14px 0 5px; }
.stat-foot { color: #a0abba; font-size: 11px; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin: 27px 0 13px; gap: 10px; }
.section-head h2 { font-size: 17px; letter-spacing: -.02em; font-weight: 500; margin: 0; }
.section-head p { margin: 4px 0 0; font-size: 12px; color: #99a5b6; }
.panel { background: white; border: 1px solid #e6ebf3; border-radius: 13px; box-shadow: 0 3px 16px #1c3d7507; }
.panel-pad { padding: 24px; }
.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; min-width: 660px; }
.data-table th { padding: 16px 20px; color: #9aa6b7; font-size: 11px; font-weight: 500; letter-spacing: .04em; background: #fbfcfe; border-bottom: 1px solid #edf0f5; white-space: nowrap; }
.data-table td { padding: 17px 20px; border-bottom: 1px solid #edf0f5; font-size: 13px; color: #66758c; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: #fbfdff; }
.campaign-table-row { cursor: pointer; }
.campaign-table-row:focus-visible { outline: 2px solid #4b88ed; outline-offset: -2px; }
.campaign-row-actions { text-align: right; white-space: nowrap; }
.table-name { color: #24344f; font-weight: 500; display: block; }
.table-sub { color: #a0acbd; font-size: 11px; margin-top: 4px; display: block; }
.table-action { color: #2b67d9; background: none; border: 0; padding: 4px 0; font-size: 12px; font-weight: 500; }
.table-action:hover { text-decoration: underline; }
.status { display: inline-flex; align-items: center; gap: 6px; min-height: 23px; padding: 3px 8px; border-radius: 20px; font-size: 11px; font-weight: 500; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-draft { background: #f1f4f8; color: #8090a7; }
.status-scheduled, .status-pending { background: #eef4ff; color: #4374d6; }
.status-running, .status-sending { background: #e9f4ff; color: #2379cc; }
.status-paused { background: #fff5e6; color: #be842a; }
.status-sent, .status-completed { background: #e9f8f2; color: #22896d; }
.status-skipped { background: #f0efff; color: #6c63ad; }
.status-stopped { background: #f1f4f8; color: #66758c; }
.status-failed, .status-invalid { background: #fff0f0; color: #d05b60; }
.status-unknown { background: #f3eeff; color: #8063b6; }
.empty { display: grid; justify-items: center; text-align: center; padding: 53px 24px; }
.empty-icon { width: 54px; height: 54px; border-radius: 15px; color: #3572dc; background: #ecf3ff; display: grid; place-items: center; margin-bottom: 14px; }
.empty-icon svg { width: 23px; height: 23px; stroke-width: 1.7; }
.empty h3 { margin: 0 0 5px; font-size: 17px; font-weight: 500; }
.empty p { margin: 0 0 20px; color: #97a3b5; font-size: 13px; max-width: 400px; line-height: 1.5; }

.detail-tabs { display: flex; gap: 4px; border-bottom: 1px solid #e2e9f3; margin: 0 0 22px; overflow-x: auto; }
.detail-tab { border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 11px 17px 13px; background: none; color: #8d9aaf; font-size: 13px; white-space: nowrap; display: flex; align-items: center; gap: 9px; }
.detail-tab.active { color: #2365d8; border-color: #2b6be4; font-weight: 500; }
.detail-tab svg { width: 15px; height: 15px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .65fr); gap: 20px; align-items: start; }
.form-card { padding: 25px; }
.form-card h2, .info-card h2 { font-size: 17px; font-weight: 500; letter-spacing: -.025em; margin: 0 0 5px; }
.form-card .card-desc, .info-card .card-desc { color: #9aa6b8; font-size: 12px; line-height: 1.5; margin: 0 0 23px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { color: #52617b; font-size: 12px; font-weight: 500; }
.field input, .field textarea, .field select, .paste-area { width: 100%; border: 1px solid #dce5f0; background: #fff; color: #26374f; outline: 0; border-radius: 8px; transition: border .15s, box-shadow .15s; }
.field input, .field select { height: 40px; padding: 0 12px; }
.field textarea, .paste-area { min-height: 155px; padding: 12px; line-height: 1.5; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus, .paste-area:focus, .sheet-cell:focus { border-color: #7ca9f5; box-shadow: 0 0 0 3px #3b82f61b; }
.field input::placeholder, .field textarea::placeholder { color: #b1bdce; }
.field input:disabled, .field textarea:disabled, .field select:disabled { background: #f8fafd; color: #7d8ba1; cursor: default; }
.field small { color: #a1adbe; font-size: 11px; line-height: 1.4; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.campaign-instances { display: grid; gap: 12px; padding: 18px; border: 1px solid #e2eaf6; border-radius: 11px; background: #f9fbff; }
.campaign-instances .field select { max-width: 560px; }
.campaign-instances-head strong { color: #52617b; font-size: 12px; font-weight: 500; }
.campaign-instances-head p { margin: 5px 0 0; color: #899bb4; font-size: 11px; line-height: 1.5; }
.campaign-instance-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 8px; }
.campaign-instances-compact { gap: 9px; padding: 14px 16px; }
.campaign-instance-list.compact { grid-template-columns: repeat(auto-fill, minmax(170px, 190px)); gap: 6px; max-height: 174px; overflow-y: auto; }
.campaign-instance-list.compact .campaign-instance { min-height: 38px; padding: 7px 10px; }
.campaign-instance { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 58px; padding: 10px 12px; border: 1px solid #dce6f3; border-radius: 9px; background: #fff; cursor: pointer; }
.campaign-instance.selected { border-color: #8fb6f1; background: #eef5ff; }
.campaign-instance.unavailable { border-style: dashed; }
.campaign-instance input { flex: none; accent-color: #2967dc; }
.campaign-instance-copy { display: grid; gap: 3px; min-width: 0; flex: 1; }
.campaign-instance-copy strong { overflow: hidden; color: #405470; font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.campaign-instance-copy small { color: #93a3b9; font-size: 10px; }
.campaign-instance em { color: #386fcb; font-size: 10px; font-style: normal; white-space: nowrap; }
.campaign-instance:has(input:disabled) { cursor: default; }
.campaign-instances-note, .campaign-instance-empty { color: #7188a8; font-size: 11px; line-height: 1.5; }
.campaign-instance-empty { padding: 10px 12px; border: 1px dashed #ceddf0; border-radius: 8px; background: #fff; }
.campaign-schedule { display: grid; gap: 18px; padding: 18px; border: 1px solid #e2eaf6; border-radius: 11px; background: #f9fbff; }
.campaign-date-range { align-items: start; }
.campaign-recurrence select { max-width: 370px; }
.campaign-recurrence small { max-width: 710px; }
.campaign-breaks { display: grid; gap: 12px; padding: 16px; border: 1px solid #dfeaf9; border-radius: 8px; background: #fff; }
.campaign-breaks > div:first-child strong { color: #52617b; font-size: 12px; font-weight: 500; }
.campaign-breaks > div:first-child p { margin: 4px 0 0; color: #94a3ba; font-size: 11px; line-height: 1.45; }
.campaign-break-row { display: grid; grid-template-columns: 24px minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.campaign-break-row .field { min-width: 0; }
.campaign-break-toggle { display: grid; place-items: center; align-self: end; height: 49px; cursor: pointer; }
.campaign-break-toggle input { width: 17px; height: 17px; accent-color: #2563eb; cursor: pointer; }
.campaign-break-row.is-disabled .field input[type="time"] { opacity: .55; }
@media (max-width: 640px) { .campaign-break-row { grid-template-columns: 24px repeat(2, minmax(0, 1fr)); } .campaign-break-row .field:nth-child(2) { grid-column: 2 / -1; } .campaign-break-row .field:nth-child(3) { grid-column: 2; } }
.campaign-end-hint { display: flex; align-items: flex-start; gap: 8px; margin: -3px 0 0; padding: 10px 12px; border: 1px solid #dfeaf9; border-radius: 8px; background: #f0f6ff; color: #59759f; font-size: 11px; line-height: 1.5; }
.campaign-end-hint svg { width: 15px; height: 15px; flex: 0 0 15px; margin-top: 1px; color: #3976d9; }
.campaign-interval-range { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: end; gap: 9px; }
.campaign-dispatch-interval { display: grid; grid-template-columns: minmax(0,1fr) 150px; gap: 10px; }
.campaign-dispatch-interval input, .campaign-dispatch-interval select { width: 100%; }
.campaign-interval-range label { display: grid; gap: 6px; color: #7d90ac; font-size: 11px; }
.campaign-interval-range input { width: 100%; height: 40px; padding: 0 10px; border: 1px solid #dce5f0; border-radius: 8px; outline: 0; color: #26374f; background: #fff; }
.campaign-interval-range input:focus { border-color: #7ca9f5; box-shadow: 0 0 0 3px #3b82f61b; }
.campaign-interval-range > span { padding-bottom: 11px; color: #9aabc2; font-size: 11px; }
.campaign-days > div:first-child strong { color: #52617b; font-size: 12px; font-weight: 500; }
.campaign-days p { margin: 4px 0 10px; color: #94a3ba; font-size: 11px; line-height: 1.45; }
.campaign-day-list { display: flex; flex-wrap: wrap; gap: 7px; }
.campaign-day { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 5px 9px; border: 1px solid #dce6f3; border-radius: 8px; background: #fff; color: #5d7293; font-size: 11px; cursor: pointer; }
.campaign-day.selected { border-color: #a8c5f3; color: #2d66bf; background: #edf4ff; }
.campaign-day input, .campaign-holiday-check input, .holiday-global-toggle input, .holiday-repeat input { accent-color: #2967dc; }
.campaign-holiday-check { display: flex; align-items: flex-start; gap: 9px; padding-top: 13px; border-top: 1px solid #e6edf7; cursor: pointer; }
.campaign-holiday-check input { margin-top: 2px; }
.campaign-holiday-check strong, .campaign-holiday-check small { display: block; }
.campaign-holiday-check strong { color: #52617b; font-size: 12px; font-weight: 500; }
.campaign-holiday-check small { margin-top: 4px; color: #94a3ba; font-size: 11px; line-height: 1.45; }
.form-stack { display: grid; gap: 18px; }
.form-footer { display: flex; justify-content: flex-end; align-items: center; gap: 10px; border-top: 1px solid #edf1f6; padding-top: 20px; margin-top: 24px; }
.start-choice-actions { flex-wrap: wrap; }
.start-choice-actions button { flex: 1 1 150px; justify-content: center; }
.info-card { padding: 24px; }
.info-list { display: grid; gap: 0; }
.info-row { display: flex; justify-content: space-between; gap: 15px; padding: 13px 0; border-bottom: 1px solid #f0f3f7; font-size: 12px; }
.info-row:last-child { border-bottom: 0; }
.info-row span { color: #9aa6b8; }
.info-row strong { color: #43536b; font-weight: 500; text-align: right; }
.tip-box { display: flex; gap: 11px; padding: 15px; border-radius: 10px; background: #f0f6ff; color: #3f6db7; font-size: 12px; line-height: 1.5; }
.tip-box svg { width: 18px; height: 18px; }
.tip-box strong { display: block; color: #285da9; font-weight: 500; margin-bottom: 3px; }
.preview-bubble { background: #eaf5e9; color: #3d5b45; border-radius: 12px 12px 3px 12px; padding: 15px; font-size: 13px; white-space: pre-wrap; line-height: 1.5; overflow-wrap: anywhere; margin-top: 18px; }
.preview-hint { font-size: 11px; color: #a0abbc; margin-top: 12px; }
.sheet-tools { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; margin: 21px 0 14px; flex-wrap: wrap; }
.sheet-page-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 18px; }
.sheet-page-head h2 { margin: 0; color: #253958; font-size: 20px; font-weight: 500; letter-spacing: -.03em; }
.sheet-page-actions { display: flex; align-items: center; gap: 9px; flex: none; }
.sheet-filter-bar { position: relative; display: flex; justify-content: flex-end; align-items: center; gap: 10px; margin: 0 0 14px; flex-wrap: wrap; }
.sheet-search { display: flex; align-items: center; width: min(360px, 100%); height: 42px; padding: 0 5px 0 12px; gap: 8px; border: 1px solid #d7e2f1; border-radius: 9px; background: #fff; color: #7590b4; }
.sheet-search:focus-within { border-color: #7ea9ed; box-shadow: 0 0 0 3px #3d83eb1a; }
.sheet-search > svg { width: 17px; height: 17px; }
.sheet-search input { flex: 1; min-width: 0; border: 0; outline: 0; color: #344b6c; background: transparent; font-size: 12px; }
.sheet-search input::placeholder { color: #9baac0; }
.sheet-search button { align-self: stretch; margin: 4px 0; padding: 0 11px; border: 0; border-radius: 6px; background: #edf4ff; color: #2864ca; font-size: 11px; font-weight: 600; }
.sheet-search button:hover { background: #dceaff; }
.sheet-date-wrap { position: relative; }
.sheet-date-toggle { min-height: 42px; }
.sheet-date-toggle.active { color: #168558; border-color: #9edcbc; background: #f1fbf5; }
.sheet-date-toggle svg:last-child { width: 13px; }
.sheet-clear-filters { border: 0; background: transparent; color: #5274a5; font-size: 11px; font-weight: 500; }
.sheet-clear-filters:hover { color: #225ec2; text-decoration: underline; }
.sheet-date-popover { position: fixed; z-index: 22; top: 50%; right: clamp(16px, 4vw, 66px); transform: translateY(-50%); width: min(820px, calc(100vw - 48px)); max-height: calc(100vh - 30px); overflow-y: auto; border: 1px solid #d9e4f0; border-radius: 11px; background: #fff; box-shadow: 0 20px 55px #1b355a2b; color: #50627c; }
.sheet-date-body { display: grid; grid-template-columns: minmax(0, 1fr) 180px; }
.sheet-date-main { min-width: 0; padding: 18px 17px 9px; }
.sheet-date-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 15px; }
.sheet-date-fields > div > span { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 600; }
.sheet-date-field { display: flex; align-items: center; justify-content: space-between; min-height: 39px; padding: 0 12px; border: 1px solid #d4e0ed; border-radius: 8px; color: #50617b; font-size: 12px; }
.sheet-date-field svg { width: 15px; height: 15px; color: #334861; }
.sheet-calendars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.sheet-calendar-month + .sheet-calendar-month { padding-left: 15px; border-left: 1px solid #e1e9f2; }
.sheet-calendar-title { display: grid; grid-template-columns: 23px 1fr 23px; align-items: center; margin-bottom: 7px; text-align: center; }
.sheet-calendar-title strong { color: #50617b; font-size: 12px; font-weight: 600; text-transform: capitalize; }
.sheet-calendar-title button { display: grid; place-items: center; width: 23px; height: 23px; border: 0; border-radius: 5px; background: transparent; color: #526a88; }
.sheet-calendar-title button:hover { background: #edf4fc; }
.sheet-calendar-title svg { width: 15px; height: 15px; }
.sheet-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; }
.sheet-calendar-grid b { padding: 5px 0; font-size: 10px; font-weight: 600; }
.sheet-calendar-day { width: 100%; min-height: 29px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #60718c; font-size: 11px; }
.sheet-calendar-day:hover, .sheet-calendar-day.today { background: #edf7f1; color: #138b58; }
.sheet-calendar-day.in-range { border-radius: 0; background: #e7f7ed; color: #148858; }
.sheet-calendar-day.selected { background: #17a565; color: #fff; font-weight: 600; }
.sheet-date-hint { margin: 10px 0 0; color: #8a9cb1; font-size: 10px; }
.sheet-date-presets { display: grid; align-content: start; gap: 3px; padding: 17px 10px; border-left: 1px solid #e1e9f2; }
.sheet-date-presets button { width: 100%; min-height: 31px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: #53647d; text-align: left; font-size: 11px; font-weight: 600; }
.sheet-date-presets button:hover { background: #f1f8f4; }
.sheet-date-presets button.active { background: #dcf6e7; color: #13a464; }
.sheet-date-footer { display: flex; justify-content: flex-end; gap: 9px; padding: 10px 17px; border-top: 1px solid #e1e9f2; }
.sheet-date-footer .primary-btn { border-color: #13a463; background: #16a565; box-shadow: none; }
.sheet-date-footer .primary-btn:hover { background: #0d8f55; }
.sheet-date-footer .secondary-btn { border-color: #14a362; color: #148b57; }
.sheet-filter-empty { padding: 35px 20px; color: #8294ab; text-align: center; font-size: 12px; }
.sheet-row-number:disabled { cursor: default; opacity: .6; }
.sheet-settings-panel { position: absolute; z-index: 20; top: calc(100% + 10px); right: 0; width: min(570px, calc(100vw - 50px)); max-height: min(78vh, 690px); overflow: auto; padding: 22px; border: 1px solid #d8e4f4; border-radius: 12px; background: white; box-shadow: 0 20px 55px #1c3c7026; }
.sheet-settings-panel h3 { margin: 0 0 5px; color: #253e64; font-size: 16px; font-weight: 500; }
.sheet-settings-panel > p { margin: 0 0 20px; color: #8192aa; font-size: 12px; line-height: 1.5; }
.sheet-settings-panel .sheet-column-selects { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.sheet-settings-panel .sheet-column-selects .field { min-width: 0; }
.sheet-settings-help { display: grid; gap: 11px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #e9eef7; }
.sheet-settings-help p { display: flex; gap: 8px; align-items: flex-start; margin: 0; color: #7d8ea6; font-size: 11px; line-height: 1.5; }
.sheet-settings-help svg { width: 15px; height: 15px; flex: none; color: #3d7add; }
.sheet-settings-help code { color: #2359ad; background: #eaf2ff; border-radius: 4px; padding: 1px 4px; }
.sheet-birthday { display: grid; gap: 14px; margin: 0 0 18px; padding: 17px 19px; border: 1px solid #dce8f8; border-radius: 11px; background: #f7faff; }
.sheet-birthday-toggle { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.sheet-birthday-toggle input { margin-top: 2px; flex: none; accent-color: #2967dc; }
.sheet-birthday-toggle strong, .sheet-birthday-toggle small { display: block; }
.sheet-birthday-toggle strong { color: #3d5f95; font-size: 13px; font-weight: 500; }
.sheet-birthday-toggle small { margin-top: 4px; color: #8196b4; font-size: 11px; line-height: 1.5; }
.sheet-birthday-toggle:has(input:disabled) { cursor: default; }
.sheet-birthday-column { max-width: 340px; }
.sheet-birthday-locked { margin: 0; color: #8396b1; font-size: 11px; }
.sheet-tools .field { min-width: 215px; }
.sheet-column-selects { display: flex; gap: 14px; flex-wrap: wrap; }
.sheet-column-selects .field { min-width: 215px; }
.sheet-toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sheet-note { display: flex; align-items: flex-start; gap: 10px; color: #8390a5; font-size: 12px; line-height: 1.5; margin: 0 0 17px; }
.sheet-note svg { width: 16px; height: 16px; color: #4480e8; }
.sheet-example { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -4px 0 16px; color: #61738e; font-size: 12px; line-height: 1.5; }
.sheet-example svg { width: 15px; height: 15px; color: #3975dc; }
.sheet-example code { font: inherit; color: #2359ad; background: #eaf2ff; border: 1px solid #dce9fc; border-radius: 5px; padding: 1px 5px; }
.sheet-selection-hint { margin: -4px 0 12px; color: #8190a8; font-size: 11px; line-height: 1.4; }
.sheet-scroll {
  overflow-x: scroll;
  overflow-y: auto;
  max-height: 1281px; /* 24px + 43px de cabeçalhos, 25 linhas de 48px e barra horizontal de 14px */
  border-top: 1px solid #e9edf5;
  scrollbar-width: auto;
  scrollbar-color: #829fc9 #edf3fb;
}
.sheet-scroll::-webkit-scrollbar { width: 12px; height: 14px; }
.sheet-scroll::-webkit-scrollbar-track { background: #edf3fb; }
.sheet-scroll::-webkit-scrollbar-thumb { background: #829fc9; border: 2px solid #edf3fb; border-radius: 9px; }
.sheet-scroll::-webkit-scrollbar-thumb:hover { background: #557fbd; }
.sheet-table { border-collapse: separate; border-spacing: 0; table-layout: fixed; min-width: 0; }
.sheet-table th, .sheet-table td { border-right: 1px solid #ecf0f5; border-bottom: 1px solid #ecf0f5; padding: 0; }
.sheet-table th { position: sticky; top: 0; z-index: 1; height: 43px; background: #f9fbfe; color: #7d8ba2; font-size: 11px; font-weight: 500; padding: 0 10px; white-space: nowrap; }
.sheet-table .row-num { width: var(--sheet-row-num-width, 47px); min-width: var(--sheet-row-num-width, 47px); max-width: var(--sheet-row-num-width, 47px); text-align: center; background: #fbfcfe; color: #a6b1c0; font-size: 11px; }
.sheet-table .cell-col { min-width: 110px; width: auto; }
.sheet-table .status-col { min-width: var(--sheet-status-width, 235px); width: var(--sheet-status-width, 235px); max-width: var(--sheet-status-width, 235px); }
.sheet-table .sent-col { width: var(--sheet-sent-width, 86px); min-width: var(--sheet-sent-width, 86px); max-width: var(--sheet-sent-width, 86px); text-align: center; }
.sheet-table .send-time-col { width: var(--sheet-send-time-width, 170px); min-width: var(--sheet-send-time-width, 170px); max-width: var(--sheet-send-time-width, 170px); padding: 0 10px; white-space: nowrap; }
.sheet-table .sender-col { width: var(--sheet-sender-width, 175px); min-width: var(--sheet-sender-width, 175px); max-width: var(--sheet-sender-width, 175px); padding: 0 10px; white-space: nowrap; }
.sheet-table td.send-time-col, .sheet-table td.sender-col,
.sheet-table thead tr:nth-child(2) th.send-time-col,
.sheet-table thead tr:nth-child(2) th.sender-col,
.sheet-table thead tr:nth-child(2) th.status-col { overflow: hidden; text-overflow: ellipsis; }
.sheet-table .sheet-letters th { top: 0; z-index: 4; height: 24px; background: #eaf1fb; color: #53739d; font-size: 10px; font-weight: 500; letter-spacing: .08em; }
.sheet-table thead tr:nth-child(2) th { top: 24px; z-index: 3; }
.sheet-table .sheet-letter-head { padding: 0; }
.sheet-table .sheet-letter-head.menu-open { z-index: 6; }
.sheet-table .sheet-letters th.sheet-drop-before,
.sheet-table .sheet-letters th.sheet-drop-after { z-index: 7; background: #dceaff; }
.sheet-table .sheet-letters th.sheet-drop-before::before,
.sheet-table .sheet-letters th.sheet-drop-after::after { position: absolute; top: 0; bottom: -43px; width: 4px; background: #2467e8; content: ''; pointer-events: none; }
.sheet-table .sheet-letters th.sheet-drop-before::before { left: -2px; }
.sheet-table .sheet-letters th.sheet-drop-after::after { right: -2px; }
.sheet-column-resize, .sheet-resize-handle {
  position: absolute;
  z-index: 7;
  top: 0;
  right: -5px;
  width: 11px;
  height: 67px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: col-resize;
  touch-action: none;
}
.sheet-column-resize::after, .sheet-resize-handle::after {
  content: '';
  display: block;
  width: 3px;
  height: 32px;
  margin: 17px auto;
  border-radius: 3px;
  background: #4b83dd;
  opacity: .24;
  transition: opacity .12s ease;
}
.sheet-column-resize:hover::after, .sheet-column-resize:focus-visible::after,
.sheet-resize-handle:hover::after, .sheet-resize-handle:focus-visible::after { opacity: 1; }
.sheet-column-resize:focus-visible, .sheet-resize-handle:focus-visible { outline: 2px solid #4b83dd; outline-offset: -2px; }
body.sheet-resizing, body.sheet-resizing * { cursor: col-resize !important; user-select: none !important; }
.sheet-column-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 100%;
  height: 24px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  cursor: pointer;
}
.sheet-column-trigger:hover, .sheet-column-trigger[aria-expanded="true"] { background: #dce9fb; color: #245dc0; }
.sheet-column-trigger { cursor: grab; }
body.sheet-column-dragging .sheet-column-trigger { cursor: grabbing; }
.sheet-column-trigger:focus-visible { outline: 2px solid #4b88ed; outline-offset: -2px; }
.sheet-column-trigger svg { width: 12px; height: 12px; }
.sheet-column-menu {
  position: absolute;
  z-index: 8;
  top: calc(100% + 3px);
  left: 4px;
  min-width: 210px;
  padding: 5px;
  background: #fff;
  border: 1px solid #dbe5f2;
  border-radius: 9px;
  box-shadow: 0 12px 28px #17366524;
  text-align: left;
  letter-spacing: normal;
}
.sheet-column-menu > span { display: block; padding: 6px 10px; overflow: hidden; color: #627797; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.sheet-column-move { display: grid; gap: 5px; padding: 7px 10px; color: #52617b; font-size: 11px; }
.sheet-column-move select { width: 100%; min-width: 0; height: 32px; padding: 0 8px; border: 1px solid #dbe5f2; border-radius: 6px; color: #314663; background: #fff; font: inherit; }
.sheet-column-move select:focus-visible { outline: 2px solid #4b88ed; outline-offset: 1px; }
.sheet-column-delete {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #bb4d56;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}
.sheet-column-delete:hover, .sheet-column-delete:focus-visible { background: #fff0f1; outline: 0; }
.sheet-column-delete svg { width: 15px; height: 15px; }
.sheet-table .remove-col { width: var(--sheet-remove-width, 43px); min-width: var(--sheet-remove-width, 43px); max-width: var(--sheet-remove-width, 43px); }
.sheet-table .sheet-add-column-head { padding: 0; background: #eaf1fb; }
.sheet-add-column-inline { display: grid; place-items: center; width: 100%; height: 24px; border: 0; background: transparent; color: #2a67ce; cursor: pointer; }
.sheet-add-column-inline svg { width: 15px; height: 15px; }
.sheet-add-column-inline:hover, .sheet-add-column-inline:focus-visible { background: #d7e7fd; outline: none; }
.sheet-head-input { width: 100%; height: 42px; text-align: left; background: transparent; border: 0; color: #687a95; outline: 0; font-size: 11px; font-weight: 500; }
.sheet-table tbody tr, .sheet-table tbody td { height: 48px; }
.sheet-table tbody tr.sheet-spacer,
.sheet-table tbody tr.sheet-spacer td { padding: 0; border: 0; background: transparent; }
.sheet-cell { width: 100%; min-width: 0; height: 47px; border: 1px solid transparent; padding: 0 11px; background: transparent; outline: 0; color: #52627a; font-size: 12px; }
.sheet-table tbody tr:hover { background: #fbfdff; }
.sheet-row-number, .sheet-row-selector {
  display: grid;
  place-items: center;
  width: 100%;
  height: 47px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.sheet-row-number:hover, .sheet-row-selector:hover { color: #2563e6; background: #edf4ff; }
.sheet-row-number:focus-visible, .sheet-row-selector:focus-visible { outline: 2px solid #4b88ed; outline-offset: -3px; }
.sheet-table tbody tr.sheet-row-selected,
.sheet-table tbody tr.sheet-row-selected:hover { background: #eaf2ff; }
.sheet-table tbody tr.sheet-row-selected > td { background: #eaf2ff; border-bottom-color: #cddffc; }
.sheet-table tbody tr.sheet-row-selected > td.row-num { background: #dceaff; color: #1f59b5; }
.sheet-table tbody tr.sheet-row-selected .sheet-cell { color: #254d89; }
.sheet-table tbody tr.sheet-row-selected .sheet-row-number,
.sheet-table tbody tr.sheet-row-selected .sheet-row-selector { color: #1f59b5; font-weight: 500; }
.sheet-table tbody tr.sheet-row-selected .sheet-row-number:hover,
.sheet-table tbody tr.sheet-row-selected .sheet-row-selector:hover { background: #cbdfff; }
.sheet-table tbody tr.sheet-row-anchor > td.row-num { box-shadow: inset 3px 0 #2d6de0; }
.sheet-delete { border: 0; background: none; color: #a5b1bf; padding: 8px; }
.sheet-delete:hover { color: #d46168; }
.sheet-delete svg { width: 14px; height: 14px; }
.sheet-status { display: flex; align-items: center; gap: 6px; height: 47px; padding: 0 9px; overflow: hidden; white-space: nowrap; }
.sheet-status .status { flex: none; }
.sheet-status .table-sub { flex: 1; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sheet-checkbox { width: 16px; height: 16px; accent-color: #2563e6; cursor: pointer; vertical-align: middle; }
.sheet-checkbox-sent { accent-color: #159766; }
.sheet-checkbox:disabled { cursor: default; opacity: .65; }
.sheet-retry { flex: none; display: inline-block; margin: 0; border: 0; background: transparent; color: #2563e6; font: inherit; font-size: 11px; cursor: pointer; padding: 0; }
.sheet-retry:hover { text-decoration: underline; }
.sheet-ghost { background: #f8fbff; }
.sheet-ghost .row-num { color: #6292d6; }
.sheet-ghost .sheet-status { color: #96a8bf; font-size: 11px; }
.sheet-add-row-inline { display: grid; place-items: center; width: 100%; height: 47px; border: 0; background: #edf5ff; color: #2568dc; cursor: pointer; }
.sheet-add-row-inline svg { width: 17px; height: 17px; }
.sheet-add-row-inline:hover, .sheet-add-row-inline:focus-visible { background: #d8e9ff; outline: 2px solid #8bb3f3; outline-offset: -2px; }
.sheet-bottom { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 18px; color: #a0acbd; font-size: 11px; flex-wrap: wrap; }
.import-panel { padding: 22px; margin-bottom: 20px; background: #f9fbff; border: 1px dashed #bdd2f6; border-radius: 12px; }
.sheet-import { margin-top: 20px; }
.sheet-conflict { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.sheet-conflict span { flex: 1; min-width: 220px; }
.sheet-live-note { margin-bottom: 16px; }
.import-panel h3 { font-size: 14px; font-weight: 500; margin: 0 0 5px; }
.import-panel p { color: #99a6b8; font-size: 12px; margin: 0 0 13px; }
.import-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 11px; flex-wrap: wrap; }
.check-label { display: flex; align-items: center; gap: 8px; color: #6e7e97; font-size: 12px; }
.check-label input { accent-color: #2563e6; }
.run-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(300px,.9fr); gap: 20px; }
.execution-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 18px; }
.execution-head h2 { margin: 5px 0 4px; font-size: 25px; letter-spacing: -.04em; color: #1b2d4a; }
.execution-head p { margin: 0; color: #8494ac; font-size: 12px; line-height: 1.5; }
.execution-live { display: inline-flex; align-items: center; gap: 7px; flex: none; border-radius: 30px; padding: 9px 13px; background: #e8f7ef; color: #19825b; font-size: 12px; font-weight: 500; }
.execution-live svg { width: 15px; height: 15px; }
.execution-section { overflow: hidden; padding: 0; }
.execution-section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 22px; border-bottom: 1px solid #e8eef7; }
.execution-section-head > div { display: flex; align-items: center; gap: 12px; }
.execution-section-head h3 { margin: 0 0 3px; color: #273c5c; font-size: 16px; font-weight: 500; }
.execution-section-head p { margin: 0; color: #91a0b5; font-size: 11px; }
.execution-section-head > span { display: inline-flex; align-items: center; gap: 6px; color: #7190b8; font-size: 11px; white-space: nowrap; }
.execution-section-head > span svg { width: 15px; height: 15px; }
.execution-step { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; font-size: 13px; font-weight: 600; }
.execution-step.done { color: #19835f; background: #e4f5ec; }
.execution-step.next { color: #2967d7; background: #eaf2ff; }
.execution-table-scroll { width: 100%; max-height: 430px; overflow: auto; }
.execution-table { width: 100%; min-width: max-content; border-collapse: separate; border-spacing: 0; font-size: 12px; }
.execution-table th { position: sticky; top: 0; z-index: 1; background: #f7faff; color: #7185a1; font-size: 11px; font-weight: 500; text-align: left; white-space: nowrap; }
.execution-table th, .execution-table td { max-width: 300px; min-width: 125px; padding: 12px 15px; border-bottom: 1px solid #eef2f8; overflow-wrap: anywhere; vertical-align: middle; }
.execution-table th:first-child, .execution-table td:first-child { min-width: 64px; width: 64px; background: #f9fbff; text-align: center; }
.execution-table tbody tr:last-child td { border-bottom: 0; }
.execution-table tbody tr:hover td { background: #f7faff; }
.execution-row-number { color: #7891b4; font-weight: 500; }
.execution-result { min-width: 190px !important; }
.execution-result .status { display: inline-flex; }
.execution-result small { display: block; margin-top: 5px; color: #8595aa; line-height: 1.35; }
.execution-empty { margin: 0; padding: 26px 22px; color: #899ab0; font-size: 12px; }
.execution-now { display: flex; align-items: center; gap: 17px; margin: 14px 0; padding: 20px 22px; border: 1px solid #bcd4fa; border-radius: 12px; background: linear-gradient(100deg, #edf5ff, #f8fbff); }
.execution-now-icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 11px; background: #2c6be1; color: white; }
.execution-now-icon svg { width: 20px; height: 20px; }
.execution-now-copy { display: grid; gap: 3px; min-width: 0; flex: 1 1 300px; }
.execution-now-copy > span, .execution-now-timer > span { color: #6d89b2; font-size: 11px; }
.execution-now-copy strong { color: #244675; font-size: 16px; font-weight: 500; }
.execution-now-copy small { color: #748eaf; font-size: 11px; line-height: 1.45; }
.execution-now-recipient { display: grid; gap: 3px; min-width: 160px; max-width: 310px; flex: 1 1 220px; padding-left: 17px; border-left: 1px solid #cbdcf6; }
.execution-now-recipient > span { color: #6d89b2; font-size: 11px; }
.execution-now-recipient strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #244675; font-size: 15px; font-weight: 600; }
.execution-now-recipient small { display: flex; align-items: center; gap: 5px; color: #5172a0; font-size: 12px; font-variant-numeric: tabular-nums; }
.execution-now-recipient small svg { width: 13px; height: 13px; }
.execution-now-timer { display: grid; gap: 3px; margin-left: auto; flex: none; text-align: right; }
.execution-now-timer strong { color: #225cc4; font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
.execution-idle { display: grid; justify-items: center; gap: 11px; padding: 56px 24px; text-align: center; }
.execution-idle h2 { margin: 0; color: #263b5c; font-size: 20px; }
.execution-idle p { max-width: 450px; margin: 0 0 5px; color: #8597af; font-size: 12px; line-height: 1.6; }
.execution-idle-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 13px; background: #eaf2ff; color: #2b6bdc; }
.execution-idle-icon svg { width: 23px; height: 23px; }
.progress-track { width: 100%; height: 9px; border-radius: 30px; background: #ebf0f7; overflow: hidden; margin: 15px 0 8px; }
.progress-bar { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #3477ed, #6fa3fc); }
.progress-numbers { display: flex; justify-content: space-between; color: #9aa7b7; font-size: 11px; }
.run-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 23px; }
.check-list { display: grid; gap: 13px; margin: 20px 0; }
.check-item { display: flex; gap: 10px; color: #53637d; font-size: 12px; line-height: 1.45; }
.check-item svg { width: 17px; height: 17px; color: #35a183; }
.check-item.warn svg { color: #d79a36; }
.activity-list { display: grid; }
.activity-row { display: flex; align-items: flex-start; gap: 10px; padding: 13px 0; border-bottom: 1px solid #eff2f7; }
.activity-row:last-child { border: 0; }
.activity-icon { width: 28px; height: 28px; border-radius: 8px; background: #edf4ff; color: #3b74da; display: grid; place-items: center; }
.activity-icon svg { width: 14px; height: 14px; }
.activity-row strong { display: block; font-size: 12px; color: #53637a; font-weight: 500; }
.activity-row small { display: block; font-size: 11px; color: #a1adbc; margin-top: 2px; }
.notice { display: flex; gap: 11px; padding: 14px 16px; border-radius: 9px; background: #fff8e9; color: #966d29; font-size: 12px; line-height: 1.5; margin-bottom: 20px; }
.notice svg { width: 17px; height: 17px; }
.notice.error { background: #fff1f2; color: #b74857; }
.notice.info { background: #eef5ff; color: #3e6cba; }
.setting-line { display: flex; gap: 13px; align-items: flex-start; padding: 18px 0; border-bottom: 1px solid #edf1f6; }
.setting-line:last-child { border: 0; }
.setting-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #2d6de0; background: #edf4ff; }
.setting-icon svg { width: 18px; height: 18px; }
.setting-line strong { display: block; font-size: 13px; font-weight: 500; margin-bottom: 3px; }
.setting-line p { margin: 0; color: #9aa7b7; font-size: 12px; }
.settings-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(270px,.8fr); gap: 20px; }
.kirago-card-head, .kirago-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.kirago-card-head { margin-bottom: 18px; }
.kirago-card-head .card-desc { margin-bottom: 0; }
.kirago-state { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 10px; color: #71819c; background: #f1f4f8; font-size: 11px; font-weight: 500; white-space: nowrap; }
.kirago-state.is-online { color: #16836d; background: #e8f8f2; }
.kirago-state svg { width: 14px; height: 14px; }
.kirago-connect-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 19px; }
.kirago-legacy { margin-top: 24px; padding-top: 16px; border-top: 1px solid #edf1f6; color: #8491a5; font-size: 12px; }
.kirago-legacy summary { width: fit-content; color: #687b9b; cursor: pointer; }
.kirago-legacy p { margin: 10px 0 16px; line-height: 1.5; }
.kirago-legacy .form-footer { margin-top: 0; }
.kirago-selected-icon { display: grid; place-items: center; width: 45px; height: 45px; margin: 7px 0 14px; border-radius: 12px; color: #2d6de0; background: #edf4ff; }
.kirago-selected-icon svg { width: 21px; height: 21px; }
.kirago-selected-name { display: block; color: #273a58; font-size: 18px; font-weight: 500; line-height: 1.3; }
.kirago-muted { color: #98a6b9; font-size: 12px; line-height: 1.5; }
.kirago-inline-link { display: inline-flex; align-items: center; gap: 3px; margin-left: 4px; padding: 0; border: 0; background: none; color: #2d68d5; font: inherit; font-weight: 500; }
.kirago-inline-link:hover { text-decoration: underline; }
.kirago-inline-link svg { width: 13px; height: 13px; }
.kirago-instances { margin-top: 22px; overflow: hidden; }
.kirago-section-head { align-items: center; padding: 22px 24px; border-bottom: 1px solid #edf1f6; }
.kirago-section-head h2 { font-size: 17px; font-weight: 500; margin: 0 0 4px; }
.kirago-section-head p { color: #99a6b9; font-size: 12px; margin: 0; }
.kirago-instance-list { display: grid; }
.kirago-instance { display: grid; grid-template-columns: minmax(220px, 1fr) auto; align-items: center; gap: 14px; padding: 18px 24px; border-bottom: 1px solid #edf1f6; }
.kirago-instance:last-child { border-bottom: 0; }
.kirago-instance-main, .kirago-instance-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.kirago-instance-avatar { position: relative; width: 48px; height: 48px; display: grid; place-items: center; flex: none; overflow: hidden; border-radius: 50%; background: #edf4ff; color: #2e6ad5; }
.kirago-instance-avatar svg { width: 19px; height: 19px; }
.kirago-instance-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #edf4ff; }
.kirago-instance-avatar img[hidden] { display: none; }
.kirago-selected-avatar { width: 50px; height: 50px; margin: 7px 0 14px; }
.kirago-instance-text { min-width: 0; }
.kirago-instance-title strong { color: #30405b; font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kirago-instance-text > span { display: block; margin-top: 3px; color: #9aa7b8; font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kirago-selected-pill { color: #2a67d2; background: #eaf2ff; border-radius: 999px; padding: 3px 7px; font-size: 10px; white-space: nowrap; }
.kirago-instance-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.kirago-instance-actions .secondary-btn { min-height: 34px; padding: 0 10px; font-size: 11px; }
.kirago-instance-actions .secondary-btn svg { width: 14px; height: 14px; }
.kirago-delete-btn { display: grid; place-items: center; width: 34px; height: 34px; margin-left: auto; border: 1px solid #f2d5d9; border-radius: 8px; color: #bb4a56; background: white; }
.kirago-delete-btn:hover { background: #fff3f4; }
.kirago-delete-btn svg { width: 15px; height: 15px; }
.kirago-empty { display: grid; justify-items: center; gap: 7px; text-align: center; padding: 40px 20px; color: #9aa7b9; font-size: 12px; }
.kirago-empty svg { width: 34px; height: 34px; color: #5388e6; margin-bottom: 5px; }
.kirago-empty strong { color: #536784; font-size: 14px; font-weight: 500; }
.holiday-panel { margin-top: 22px; padding: 24px; }
.holiday-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid #e9eef6; }
.holiday-panel-head .eyebrow { font-size: 10px; }
.holiday-panel-head h2 { margin: 5px 0; color: #273b58; font-size: 19px; font-weight: 500; }
.holiday-panel-head p, .holiday-list-card > p { margin: 0; color: #90a1ba; font-size: 11px; line-height: 1.5; }
.holiday-global-toggle { display: flex; align-items: flex-start; gap: 9px; min-width: 235px; padding: 12px; border: 1px solid #d9e7fa; border-radius: 9px; background: #f5f9ff; cursor: pointer; }
.holiday-global-toggle input { margin-top: 2px; }
.holiday-global-toggle strong, .holiday-global-toggle small { display: block; }
.holiday-global-toggle strong { color: #315f9f; font-size: 12px; font-weight: 500; }
.holiday-global-toggle small { margin-top: 3px; color: #8ba1be; font-size: 11px; line-height: 1.4; }
.holiday-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding-top: 20px; }
.holiday-list-card { min-width: 0; }
.holiday-list-card h3 { margin: 0 0 5px; color: #304764; font-size: 15px; font-weight: 500; }
.holiday-list-card a { color: #2a69d6; }
.holiday-list { display: grid; gap: 7px; margin-top: 15px; }
.holiday-entry { display: grid; grid-template-columns: 92px minmax(0,1fr); align-items: center; gap: 9px; min-height: 39px; padding: 8px 10px; border: 1px solid #e8edf5; border-radius: 8px; background: #fbfcff; }
.holiday-entry time { color: #3e75c7; font-size: 11px; white-space: nowrap; }
.holiday-entry strong { min-width: 0; color: #5c6d85; font-size: 11px; font-weight: 500; }
.holiday-custom-entry { grid-template-columns: 92px minmax(0,1fr) auto auto; }
.holiday-entry button { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #7c91b1; }
.holiday-entry button:hover { color: #2869d7; background: #edf4ff; }
.holiday-entry button:last-child:hover { color: #c35667; background: #fff1f4; }
.holiday-entry button svg { width: 15px; height: 15px; }
.holiday-empty, .holiday-readonly { padding: 13px; border: 1px dashed #dce7f6; border-radius: 8px; color: #95a5bb; font-size: 11px; }
.holiday-custom-form { display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; margin-top: 16px; }
.holiday-custom-form .field input { height: 38px; }
.holiday-repeat { display: inline-flex; align-items: center; gap: 7px; color: #637b9d; font-size: 11px; }
.holiday-form-actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.holiday-form-actions button { min-height: 37px; }
.kirago-modal-wide { width: min(100%, 580px); }
.kirago-detail-list { display: grid; gap: 0; }
.kirago-detail-list > div { display: flex; justify-content: space-between; gap: 18px; padding: 10px 0; border-bottom: 1px solid #edf1f6; font-size: 12px; }
.kirago-detail-list span { color: #96a3b5; }
.kirago-detail-list strong { color: #4c5d75; font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.kirago-qr-box { display: grid; justify-items: center; gap: 9px; margin-top: 18px; color: #8291a7; font-size: 12px; text-align: center; }
.kirago-qr-box img { width: min(220px, 100%); height: auto; border: 1px solid #e2eaf5; border-radius: 10px; padding: 9px; }
.kirago-qr-placeholder { display: grid; justify-items: center; gap: 8px; width: 100%; padding: 23px 15px; border: 1px dashed #d7e3f4; border-radius: 10px; background: #f8fbff; }
.kirago-qr-placeholder svg { width: 26px; height: 26px; color: #6d98dc; }
.kirago-event-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.kirago-event-grid label, .kirago-active-check { display: flex; align-items: center; gap: 8px; color: #62738d; font-size: 12px; }
.kirago-event-grid input, .kirago-active-check input { accent-color: #2563e6; }
.kirago-active-check { margin-top: 4px; }
.message-library { margin-bottom: 20px; overflow: hidden; }
.message-library-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 19px 22px 14px; border-bottom: 1px solid #edf1f6; }
.message-library-title h2, .message-editor-head h2, .message-preview-head h2 { margin: 0 0 4px; color: #24344f; font-size: 17px; font-weight: 500; letter-spacing: -.025em; }
.message-library-title p, .message-preview-head p { margin: 0; color: #99a6b9; font-size: 12px; line-height: 1.5; }
.message-library-title > span { color: #9aa6ba; font-size: 11px; white-space: nowrap; }
.message-library-list { display: flex; gap: 10px; overflow-x: auto; padding: 15px 20px 18px; }
.message-library-item { display: grid; grid-template-columns: 30px minmax(100px, 1fr); column-gap: 10px; align-items: center; flex: 0 0 190px; padding: 10px 12px; border: 1px solid #e4eaf3; border-radius: 10px; background: #fff; color: #43536e; text-align: left; }
.message-library-item:hover, .message-library-item.active { border-color: #9fc2ff; background: #f1f7ff; }
.message-library-item > strong { grid-column: 2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 500; }
.message-library-item > small { grid-column: 2; color: #8ea0b9; font-size: 10px; }
.message-library-icon { grid-row: 1 / 3; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #e8f1ff; color: #3773de; }
.message-library-icon svg { width: 16px; height: 16px; }
.message-model-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; overflow: visible; }
.message-model-item { display: flex; flex-direction: column; gap: 11px; min-width: 0; padding: 10px; }
.message-model-thumbnail { display: grid; place-items: center; width: 100%; height: 118px; overflow: hidden; border-radius: 8px; background: #eef4fc; }
.message-model-thumbnail-image img { width: 100%; height: 100%; object-fit: contain; }
.message-model-thumbnail-placeholder { display: grid; justify-items: center; gap: 7px; color: #8299bb; font-size: 11px; }
.message-model-thumbnail-placeholder svg { width: 25px; height: 25px; }
.message-model-thumbnail-text { justify-items: end; padding: 11px; background: #eaf2f0; }
.message-model-text-bubble { display: grid; align-content: center; gap: 4px; width: min(100%, 220px); max-height: 100%; padding: 10px; border-radius: 9px 9px 2px 9px; background: #fff; color: #3d5a4a; box-shadow: 0 2px 5px #2d493a12; overflow: hidden; }
.message-model-text-bubble strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 600; }
.message-model-text-body { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-height: 1.35; overflow-wrap: anywhere; white-space: pre-wrap; font-size: 11px; }
.message-model-text-buttons { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-top: 4px; border-top: 1px solid #d8ebe1; color: #267b8d; text-align: center; font-size: 10px; }
.message-model-thumbnail-audio { display: flex; gap: 12px; padding: 14px; background: linear-gradient(135deg, #edf4ff, #e5edfd); }
.message-model-audio-icon { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: #2d68d9; color: #fff; }
.message-model-audio-icon svg { width: 15px; height: 15px; }
.message-model-wave { display: flex; align-items: center; gap: 3px; min-width: 0; overflow: hidden; }
.message-model-wave i { width: 3px; height: var(--wave-height); flex: none; border-radius: 4px; background: #6d9bef; }
.message-model-audio-label { color: #6b83aa; font-size: 11px; }
.message-model-details { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; }
.message-model-details .message-library-icon { flex: none; }
.message-model-labels { display: grid; gap: 3px; min-width: 0; }
.message-model-labels strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; }
.message-model-labels small { color: #8ea0b9; font-size: 10px; }
.message-library-empty { color: #9aa8b9; font-size: 12px; padding: 10px 2px; }
.message-no-selection { display: grid; justify-items: center; align-content: center; min-height: 250px; padding: 32px; color: #8799b3; text-align: center; }
.message-no-selection svg { width: 30px; height: 30px; margin-bottom: 14px; color: #467bdb; }
.message-no-selection h2 { margin: 0 0 7px; color: #24344f; font-size: 17px; font-weight: 500; }
.message-no-selection p { margin: 0; font-size: 13px; }
.message-workspace { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr); gap: 20px; align-items: start; }
.message-editor { padding: 23px; min-width: 0; }
.message-editor-head, .message-preview-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.message-editor-head { margin-bottom: 22px; }
.message-editor-head .eyebrow, .message-preview-head .eyebrow { display: block; margin-bottom: 7px; }
.message-unsaved { border-radius: 30px; padding: 5px 8px; background: #fff7e7; color: #a67720; font-size: 10px; white-space: nowrap; }
.message-editor-form { display: grid; gap: 19px; }
.message-editor-form .field textarea { min-height: 130px; }
.message-type-switch { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; padding: 5px; border-radius: 10px; background: #f3f6fb; }
.message-type { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 39px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #7e8da5; font-size: 12px; }
.message-type svg { width: 15px; height: 15px; }
.message-type.active { background: #fff; color: #2562cd; border-color: #dde8fb; box-shadow: 0 2px 7px #1d4f9810; }
.message-media-card { display: grid; gap: 13px; padding: 17px; border: 1px dashed #c7d9f5; border-radius: 10px; background: #f9fbff; }
.message-media-card .notice { margin: 0; }
.message-media-status { display: flex; align-items: center; gap: 9px; color: #6a7f9c; font-size: 12px; line-height: 1.5; }
.message-media-status svg { width: 18px; height: 18px; color: #3e79db; flex: none; }
.message-upload-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.message-file-label { cursor: pointer; }
.message-upload-row input[type=file] { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.message-upload-row span { color: #93a0b3; font-size: 11px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.message-media-note { margin: 0; color: #9ca9ba; font-size: 11px; }
.message-optional { font-weight: 300; color: #9ca9b9; }
.message-audio-info { margin: 0; }
.message-buttons-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid #edf1f6; }
.message-buttons-head h3 { margin: 0 0 4px; font-size: 15px; font-weight: 500; }
.message-buttons-head p { margin: 0; color: #9aa6b8; font-size: 11px; }
.message-buttons-head .secondary-btn { min-height: 34px; font-size: 11px; padding: 0 10px; }
.message-button-list { display: grid; gap: 10px; }
.message-button-editor { display: grid; gap: 13px; border: 1px solid #e6edf6; border-radius: 9px; padding: 15px; background: #fcfdff; }
.message-button-editor-head { display: flex; align-items: center; justify-content: space-between; }
.message-button-editor-head strong { color: #536683; font-size: 12px; font-weight: 500; }
.message-button-editor-head .icon-btn { width: 27px; height: 27px; border-color: transparent; }
.message-button-editor-head .icon-btn:hover { color: #c75060; background: #fff2f4; }
.message-editor-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding-top: 20px; border-top: 1px solid #edf1f6; }
.message-editor-actions .danger-btn { margin-right: auto; }
.message-preview-panel { padding: 23px; position: sticky; top: 90px; }
.message-preview-head { margin-bottom: 17px; }
.message-add-preview { align-self: center; min-height: 35px; padding: 0 10px; font-size: 11px; }
.message-add-preview svg { width: 14px; height: 14px; }
.message-phone { overflow: hidden; border: 1px solid #dce6f4; border-radius: 17px; background: #e9eff4; box-shadow: 0 8px 25px #284b7811; }
.message-phone-top { display: flex; align-items: center; gap: 9px; min-height: 57px; padding: 9px 13px; background: #f7f9fd; border-bottom: 1px solid #e0e9f4; }
.message-phone-top > div { display: grid; gap: 2px; flex: 1; }
.message-phone-top strong { color: #334862; font-size: 11px; font-weight: 500; }
.message-phone-top small { color: #94a4b6; font-size: 10px; }
.message-phone-top > svg { color: #9cabc0; width: 16px; }
.message-phone-avatar { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 50%; background: #d9e8ff; color: #2c66c8; font-size: 12px; font-weight: 500; }
.message-phone-chat { min-height: 300px; max-height: 560px; overflow-y: auto; padding: 30px 15px 20px; background: radial-gradient(circle at 20% 30%, #f4f7f8, transparent 55%), #e7efed; }
.message-preview-bubble { width: min(100%, 335px); margin-left: auto; padding: 11px; border-radius: 12px 12px 3px 12px; background: #e5f7ec; color: #2d493a; box-shadow: 0 2px 5px #2042340d; }
.message-preview-title { display: block; margin: 2px 3px 7px; font-size: 13px; font-weight: 600; }
.message-preview-body { margin: 2px 3px 4px; font-size: 12px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.message-preview-footer { display: block; margin: 8px 3px 0; color: #6a8e79; font-size: 10px; }
.message-preview-time { display: flex; align-items: center; justify-content: flex-end; gap: 3px; margin-top: 8px; color: #7d9c88; font-size: 9px; }
.message-preview-time svg { width: 12px; height: 12px; color: #67a5b8; }
.message-preview-media { display: grid; place-items: center; min-height: 160px; overflow: hidden; border-radius: 8px; background: #dbe8ed; color: #6d8c99; }
.message-preview-media img { display: block; width: 100%; max-height: 280px; object-fit: cover; }
.message-preview-placeholder { gap: 8px; padding: 20px; text-align: center; font-size: 11px; }
.message-preview-placeholder svg { width: 24px; height: 24px; }
.message-preview-audio { display: flex; align-items: center; gap: 8px; padding: 10px 3px; min-height: 48px; }
.message-preview-audio svg { width: 21px; height: 21px; color: #4d8a75; flex: none; }
.message-preview-audio audio { width: min(100%, 255px); height: 34px; }
.message-preview-buttons { display: grid; gap: 3px; margin-top: 10px; }
.message-preview-button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 37px; border-top: 1px solid #bbddc5; color: #227f92; text-align: center; font-size: 12px; }
.message-preview-button svg { width: 13px; height: 13px; }
.message-phone-bottom { display: flex; align-items: center; gap: 10px; margin: 10px; padding: 10px 13px; border-radius: 25px; background: #f8fafd; color: #9ba7b8; font-size: 11px; }
.message-phone-bottom span { flex: 1; }
.message-phone-bottom svg { width: 15px; height: 15px; }
.message-preview-note { margin: 13px 0 0; color: #9ba9b9; font-size: 11px; line-height: 1.5; }
.variable-preview-refresh { width: 100%; justify-content: center; margin-top: 13px; }
.variable-picker { display: flex; align-items: flex-start; gap: 9px; flex-wrap: wrap; padding: 9px; border: 1px solid #e4ebf6; border-radius: 9px; background: #f8fbff; }
.variable-picker > span { display: inline-flex; align-items: center; gap: 6px; min-height: 29px; color: #7589a6; font-size: 11px; white-space: nowrap; }
.variable-picker > span svg { width: 14px; height: 14px; color: #3b75d8; }
.variable-picker-actions { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.variable-picker-actions button { min-height: 28px; padding: 4px 9px; border: 1px solid #d8e6fb; border-radius: 7px; background: #fff; color: #3269c5; font-size: 11px; }
.variable-picker-actions button:hover:not(:disabled) { background: #eaf3ff; }
.variable-picker-actions button:disabled { cursor: default; opacity: .55; }
.variable-system-grid { display: grid; grid-template-columns: 1fr; gap: 17px; }
.variable-system-card { display: flex; gap: 15px; padding: 22px; min-width: 0; }
.variable-system-card > div { min-width: 0; }
.variable-system-icon, .variable-list-icon { display: grid; place-items: center; flex: none; width: 37px; height: 37px; border-radius: 10px; color: #286ade; background: #edf4ff; }
.variable-system-icon svg, .variable-list-icon svg { width: 18px; height: 18px; }
.variable-system-card .eyebrow { font-size: 10px; }
.variable-system-card h2, .variable-panel-head h2 { margin: 4px 0 5px; color: #263a59; font-size: 17px; font-weight: 500; letter-spacing: -.02em; }
.variable-system-card p, .variable-panel-head p, .variable-options-head p { margin: 0; color: #8b9bb1; font-size: 12px; line-height: 1.5; }
.variable-system-card code, .variable-token-row code { display: inline-block; max-width: 100%; overflow-wrap: anywhere; margin-top: 13px; padding: 7px 9px; border: 1px solid #dce9fb; border-radius: 7px; background: #f0f6ff; color: #2b64bd; font: 12px Outfit, sans-serif; }
.variable-system-card .text-btn { margin: 10px 0 0 10px; font-size: 11px; }
.variable-system-card .text-btn svg { width: 13px; height: 13px; }
.variable-periods { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.variable-periods span { padding: 5px 7px; border-radius: 6px; background: #f7f9fd; color: #607590; font-size: 10px; }
.variable-periods strong { margin-right: 4px; color: #386ec3; font-weight: 500; }
.variable-workspace { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); align-items: start; gap: 20px; }
.variable-side-column { display: grid; align-content: start; gap: 20px; min-width: 0; }
.variable-library, .variable-editor { min-width: 0; overflow: hidden; }
.variable-panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 21px 23px; border-bottom: 1px solid #ebf0f7; }
.variable-count { display: grid; place-items: center; min-width: 28px; height: 28px; padding: 0 7px; border-radius: 20px; background: #eef4ff; color: #3d73c7; font-size: 11px; }
.variable-list { display: grid; gap: 10px; max-height: 620px; overflow-y: auto; padding: 14px; }
.variable-list-item { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; padding: 14px; border: 1px solid #e3eaf4; border-radius: 11px; background: #fff; text-align: left; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.variable-list-item:hover, .variable-list-item.active { border-color: #bad4fb; background: #f4f8ff; box-shadow: 0 4px 14px #2c69c60d; }
.variable-list-item > span:nth-child(2) { flex: 1; min-width: 0; }
.variable-list-item strong, .variable-list-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.variable-list-item strong { color: #334b6d; font-size: 13px; font-weight: 500; }
.variable-list-item small { margin-top: 3px; color: #91a1b8; font-size: 10px; }
.variable-list-edit { display: inline-flex; align-items: center; gap: 5px; flex: none; color: #2f69c8; font-size: 11px; font-weight: 500; }
.variable-list-edit svg { width: 14px; height: 14px; }
.variable-list-icon { width: 31px; height: 31px; border-radius: 8px; }
.variable-list-icon svg { width: 15px; height: 15px; }
.variable-empty { display: grid; justify-items: center; gap: 5px; padding: 45px 18px; text-align: center; color: #9aabc1; }
.variable-empty svg { width: 24px; height: 24px; color: #4e82d9; }
.variable-empty strong { color: #506585; font-size: 13px; font-weight: 500; }
.variable-empty p { margin: 0; font-size: 11px; }
.variable-editor { padding-bottom: 21px; }
.variable-editor > .field, .variable-token-row, .variable-options-head, .variable-options, .variable-editor-footer { margin-left: 23px; margin-right: 23px; }
.variable-editor > .field { margin-top: 21px; }
.variable-token-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.variable-token-row code { margin-top: 14px; }
.variable-token-row .secondary-btn { margin-top: 14px; }
.variable-options-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 23px; margin-bottom: 11px; }
.variable-options-head h3 { margin: 0 0 3px; color: #3d506f; font-size: 14px; font-weight: 500; }
.variable-options { display: grid; gap: 10px; max-height: 580px; overflow-y: auto; }
.variable-option { padding: 12px; border: 1px solid #e7edf6; border-radius: 9px; background: #fbfcff; }
.variable-option-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; }
.variable-option-head label { color: #667b99; font-size: 11px; font-weight: 500; }
.variable-option-head .icon-btn { min-width: 27px; height: 27px; border: 0; color: #9aacc3; }
.variable-option-head .icon-btn:hover:not(:disabled) { background: #fff1f2; color: #c65b67; }
.variable-option textarea { display: block; width: 100%; min-height: 65px; padding: 9px 11px; resize: vertical; border: 1px solid #dce5f0; border-radius: 7px; outline: 0; background: #fff; color: #314766; font-size: 12px; line-height: 1.5; }
.variable-option textarea:focus { border-color: #7ca9f5; box-shadow: 0 0 0 3px #3b82f61b; }
.variable-editor-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; padding-top: 18px; border-top: 1px solid #edf1f6; }
.variable-editor-footer-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }
.message-campaign-choice { margin: 0; }
.message-campaign-preview { margin-top: 16px; padding: 15px; border-radius: 10px; background: #e8efed; }
.message-inline-link { font-size: inherit; padding: 0; }
.message-inline-link svg { width: 12px; height: 12px; }
.message-storage { margin-top: 20px; overflow: hidden; }
.message-storage > summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; padding: 20px 23px; }
.message-storage > summary::-webkit-details-marker { display: none; }
.message-storage > summary > span:nth-child(2) { flex: 1; }
.message-storage > summary strong, .message-storage > summary small { display: block; }
.message-storage > summary strong { font-size: 14px; font-weight: 500; color: #33445f; }
.message-storage > summary small { margin-top: 3px; color: #9ba8ba; font-size: 11px; }
.message-storage > summary > svg { width: 17px; height: 17px; color: #8fa1b8; transition: transform .15s; }
.message-storage[open] > summary > svg { transform: rotate(180deg); }
.message-storage-icon { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 10px; background: #edf4ff; color: #3170dd; }
.message-storage-icon svg { width: 18px; height: 18px; }
.message-storage-form { display: grid; gap: 17px; border-top: 1px solid #edf1f6; padding: 21px 23px 23px; }
.message-storage-form .notice { margin: 0; }
.message-storage-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid #edf1f6; padding-top: 17px; }
.message-storage-actions span { color: #9aa8ba; font-size: 11px; }
.message-main-tabs { display: flex; gap: 5px; width: fit-content; margin: -5px 0 22px; padding: 4px; border: 1px solid #e1e9f4; border-radius: 11px; background: #eef3fa; }
.message-main-tab { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 112px; min-height: 36px; padding: 0 15px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #7789a4; font-size: 13px; font-weight: 400; }
.message-main-tab svg { width: 16px; height: 16px; }
.message-main-tab.active { border-color: #dbe7fa; background: white; color: #235fce; box-shadow: 0 2px 7px #153f8a0e; font-weight: 500; }
.flow-library { margin-bottom: 20px; }
.flow-workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(275px, 330px); gap: 20px; align-items: start; }
.flow-builder, .flow-inspector { min-width: 0; overflow: hidden; }
.flow-builder-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 23px 23px 0; }
.flow-builder-head .eyebrow { display: block; margin-bottom: 7px; }
.flow-builder-head h2, .flow-inspector-title h2 { margin: 0 0 4px; color: #24344f; font-size: 18px; font-weight: 500; letter-spacing: -.025em; }
.flow-builder-head p, .flow-inspector-title p { margin: 0; color: #93a2b9; font-size: 12px; line-height: 1.5; }
.flow-builder-name { padding: 19px 23px 23px; }
.flow-builder-name input { width: 100%; }
.flow-canvas-scroll { max-height: 720px; overflow: auto; border-top: 1px solid #e6edf6; border-bottom: 1px solid #e6edf6; background-color: #f6f9fd; background-image: radial-gradient(#c3d2e8 .8px, transparent .9px); background-size: 22px 22px; scrollbar-color: #b6c7df transparent; }
.flow-canvas-scroll.is-auto-height { max-height: none; overflow: visible; }
.flow-canvas-scroll.is-auto-height .flow-canvas { min-width: 0; }
.flow-canvas-scroll.is-auto-height.is-empty-menu-open .flow-canvas { min-height: 470px; }
.flow-canvas-scroll.is-limited { max-height: 1980px; overflow: auto; }
.flow-canvas { display: flex; flex-direction: column; align-items: center; min-width: 420px; min-height: 350px; padding: 55px 32px 42px; }
.flow-start-node, .flow-node { position: relative; width: min(100%, 430px); border: 1px solid #cbdcf2; border-radius: 13px; background: white; box-shadow: 0 8px 28px #214d870f; }
.flow-start-node { display: flex; align-items: center; gap: 15px; min-height: 98px; padding: 18px 22px; border-color: #aac6ed; background: linear-gradient(100deg, #f6faff, #fff 66%); }
.flow-start-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 13px; color: white; background: #2865dc; box-shadow: 0 7px 16px #2865dc2e; }
.flow-start-icon svg { width: 21px; height: 21px; fill: currentColor; }
.flow-start-node > span:nth-child(2), .flow-node-copy { display: grid; gap: 3px; min-width: 0; }
.flow-start-node small, .flow-node-copy small { color: #6488be; font-size: 10px; letter-spacing: .07em; text-transform: uppercase; font-style: normal; }
.flow-start-node strong, .flow-node-copy strong { color: #263d60; font-size: 15px; font-weight: 500; }
.flow-start-node em, .flow-node-copy > span { color: #8d9db2; font-size: 11px; font-weight: 300; font-style: normal; line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flow-port { position: absolute; left: 50%; width: 16px; height: 16px; transform: translateX(-50%); border: 2px solid #5489d4; border-radius: 50%; background: #fff; z-index: 2; }
.flow-port-top { top: -9px; }
.flow-port-bottom { bottom: -9px; }
.flow-connector { position: relative; display: grid; place-items: center; width: 100%; height: 72px; flex: none; }
.flow-connector-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%); background: #9ab9e3; }
.flow-connector.is-last .flow-connector-line { bottom: 50%; }
.flow-connector-add { position: relative; z-index: 3; display: grid; place-items: center; width: 29px; height: 29px; border: 1px solid #9cbbe7; border-radius: 9px; background: #fff; color: #2869d7; box-shadow: 0 3px 8px #1b4c921c; }
.flow-connector-add:hover, .flow-connector-add.active { border-color: #2869d7; background: #eaf2ff; }
.flow-connector-add svg { width: 17px; height: 17px; }
.flow-add-menu { position: absolute; z-index: 8; top: 52px; left: calc(50% + 23px); width: 244px; padding: 8px; border: 1px solid #d7e3f4; border-radius: 11px; background: white; box-shadow: 0 15px 35px #183d781f; }
.flow-connector.is-last.after-steps .flow-add-menu { top: auto; bottom: 52px; }
.flow-add-menu > strong { display: block; padding: 7px 9px 8px; color: #7588a4; font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.flow-add-menu > button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 9px; border: 0; border-radius: 7px; background: white; text-align: left; color: #2c65c6; }
.flow-add-menu > button:hover { background: #f1f6ff; }
.flow-add-menu svg { width: 17px; height: 17px; }
.flow-add-menu b, .flow-add-menu small { display: block; }
.flow-add-menu b { color: #3e5577; font-size: 12px; font-weight: 500; }
.flow-add-menu small { color: #92a2b8; font-size: 10px; margin-top: 2px; }
.flow-node { display: flex; align-items: center; min-height: 99px; }
.flow-node.selected { border-color: #5890ef; box-shadow: 0 0 0 3px #e6f0ff, 0 8px 28px #214d8714; }
.flow-node.is-wait { border-color: #d6dceb; }
.flow-node.is-wait.selected { border-color: #738dbd; }
.flow-node-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; min-height: 98px; padding: 17px; border: 0; border-radius: 13px; background: transparent; text-align: left; }
.flow-node-main > svg { width: 15px; height: 15px; color: #a3b1c4; }
.flow-node-main:hover { background: #f9fbff; }
.flow-node-icon { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 11px; color: #2d6dd2; background: #eaf2ff; }
.is-wait .flow-node-icon { color: #6a7ca5; background: #eef1f8; }
.flow-node-icon svg { width: 19px; height: 19px; }
.flow-node-copy { flex: 1; }
.flow-node-tools { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px; border-left: 1px solid #edf1f7; }
.flow-tool-btn { display: grid; place-items: center; width: 25px; height: 24px; border: 0; border-radius: 6px; background: transparent; color: #8a9bb3; }
.flow-tool-btn:hover { background: #edf4ff; color: #2b6bd1; }
.flow-tool-btn.is-danger:hover { background: #fff1f3; color: #c24b5c; }
.flow-tool-btn:disabled { opacity: .32; cursor: not-allowed; }
.flow-tool-btn svg { width: 14px; height: 14px; }
.flow-empty-help { margin: 3px 0 0; color: #8fa0b6; font-size: 11px; text-align: center; }
.flow-builder-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 23px; color: #91a0b5; font-size: 11px; }
.flow-builder-footer > div { display: flex; flex-wrap: wrap; gap: 8px; }
.flow-builder-footer .danger-btn { min-height: 38px; }
.flow-inspector { position: sticky; top: 20px; padding: 23px; }
.flow-inspector-title { padding-bottom: 19px; border-bottom: 1px solid #e9eef5; margin-bottom: 20px; }
.flow-inspector-empty { display: grid; justify-items: center; gap: 8px; padding: 40px 16px; color: #8fa3be; text-align: center; }
.flow-inspector-empty > svg { width: 24px; height: 24px; color: #5283d3; }
.flow-inspector-empty strong { color: #405776; font-size: 13px; font-weight: 500; }
.flow-inspector-empty p { margin: 0; font-size: 11px; line-height: 1.5; }
.flow-inspector-head { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.flow-inspector-icon { display: grid; place-items: center; width: 39px; height: 39px; border-radius: 10px; color: #2d6dd2; background: #eaf2ff; }
.flow-inspector-icon.is-wait { color: #6a7ca5; background: #eef1f8; }
.flow-inspector-icon svg { width: 18px; height: 18px; }
.flow-inspector-head .eyebrow { font-size: 9px; }
.flow-inspector-head h3 { margin: 3px 0 0; color: #334967; font-size: 16px; font-weight: 500; }
.flow-inspector-lead { margin: 0 0 20px; color: #8b9bb1; font-size: 11px; line-height: 1.55; }
.flow-inspector .field-row { gap: 9px; }
.flow-inspector .field-row input { min-width: 0; }
.flow-inspector-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 18px; padding: 11px; border-radius: 8px; background: #f0f6ff; color: #6681aa; font-size: 11px; line-height: 1.5; }
.flow-inspector-note svg { width: 15px; height: 15px; }
.flow-model-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 7px 0 20px; }
.flow-model-actions .text-btn { font-size: 11px; }
.flow-model-actions .text-btn svg { width: 14px; height: 14px; }
.flow-model-preview { border-top: 1px solid #e9eef5; padding-top: 18px; }
.flow-model-preview > div:first-child strong, .flow-model-preview > div:first-child small { display: block; }
.flow-model-preview > div:first-child strong { color: #3b5374; font-size: 12px; font-weight: 500; }
.flow-model-preview > div:first-child small { color: #93a3b9; font-size: 11px; margin-top: 3px; }
.flow-model-preview .message-campaign-preview { padding: 10px; }
.flow-rules { display: flex; align-items: flex-start; gap: 9px; margin: 19px 2px 0; color: #8397b4; font-size: 12px; line-height: 1.5; }
.flow-rules svg { width: 16px; height: 16px; color: #3675db; }
.campaign-canvas-intro { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 19px; padding: 20px 23px; border: 1px solid #dce8f7; border-radius: 15px; background: linear-gradient(105deg, #f7faff, #fff 65%); }
.campaign-canvas-intro .eyebrow { color: #4d83d5; font-size: 10px; }
.campaign-canvas-intro h2 { margin: 5px 0 3px; color: #263851; font-size: 20px; font-weight: 500; }
.campaign-canvas-intro p { margin: 0; color: #8c9db5; font-size: 12px; }
.campaign-canvas-context { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.campaign-canvas-context > span { display: inline-flex; align-items: center; gap: 6px; min-height: 33px; padding: 0 11px; border: 1px solid #dce9fa; border-radius: 9px; background: #edf5ff; color: #5576a4; font-size: 11px; }
.campaign-canvas-context strong { color: #2b62ba; font-weight: 500; }
.campaign-canvas-context svg { width: 14px; height: 14px; }
.campaign-canvas-help { margin: 14px 2px 0; color: #8b9eb8; font-size: 11px; line-height: 1.5; }
.campaign-canvas-notice { margin-bottom: 18px; }
.campaign-canvas-readonly .flow-canvas { min-height: 220px; }
.campaign-canvas-readonly .flow-node-main { cursor: default; }
.campaign-canvas-readonly .flow-node-main:hover { background: transparent; }
.campaign-canvas-empty { padding: 50px 24px; color: #8c9bb0; text-align: center; font-size: 13px; }
.campaign-flow-preview { display: grid; max-height: 310px; overflow-y: auto; margin-top: 18px; padding-left: 8px; border-left: 2px solid #b6cef1; }
.campaign-flow-start { display: flex; align-items: center; gap: 8px; color: #2d6bd1; font-size: 12px; font-weight: 500; padding: 6px 0 9px 12px; }
.campaign-flow-start svg { width: 14px; height: 14px; }
.campaign-flow-step { display: flex; align-items: center; gap: 10px; padding: 8px 0 9px 12px; border-top: 1px solid #e9eef6; }
.campaign-flow-step > span { display: grid; place-items: center; width: 27px; height: 27px; flex: none; border-radius: 7px; background: #edf4ff; color: #3573d5; }
.campaign-flow-step svg { width: 14px; height: 14px; }
.campaign-flow-step small, .campaign-flow-step strong { display: block; }
.campaign-flow-step small { color: #93a3b9; font-size: 10px; }
.campaign-flow-step strong { color: #465c79; font-size: 11px; font-weight: 500; margin-top: 2px; }
.sheet-flow-progress { display: inline-flex; align-items: center; gap: 4px; color: #6286ba; line-height: 1.35; }
.sheet-flow-progress svg { width: 12px; height: 12px; }
.users-grid { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 20px; align-items: start; }

.modal-backdrop { position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; padding: 20px; background: #0e224b7a; backdrop-filter: blur(3px); }
.modal { width: min(100%, 455px); border-radius: 15px; background: white; padding: 27px; box-shadow: 0 24px 70px #0e224b31; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 21px; }
.modal h2 { font-size: 22px; letter-spacing: -.035em; font-weight: 500; margin: 0 0 5px; }
.modal p { font-size: 12px; color: #96a4b8; line-height: 1.5; margin: 0; }
.modal-close { background: none; border: 0; color: #9aa7b8; }
.modal-close svg { width: 19px; height: 19px; }
.flow-test-modal { width: min(100%, 540px); max-height: min(90vh, 760px); overflow-y: auto; }
.flow-test-progress { margin-top: 18px; padding: 15px; border: 1px solid #dce9fb; border-radius: 10px; background: #f7faff; }
.flow-test-progress > strong { display: block; color: #243d66; font-size: 14px; }
.flow-test-progress > small { display: block; margin-top: 4px; color: #6980a1; font-size: 12px; }
.flow-test-progress ol { display: grid; gap: 7px; margin: 13px 0 0; padding-left: 19px; color: #64748b; font-size: 12px; }
.flow-test-progress li.is-sent { color: #16836d; }
.flow-test-progress li.is-error { color: #b94b57; }
.audio-processing-card { max-width: 850px; }
.audio-processing-head { display: flex; align-items: flex-start; gap: 15px; margin-bottom: 26px; }
.audio-processing-head > div { flex: 1; min-width: 0; }
.audio-processing-head h2 { margin: 0 0 5px; font-size: 20px; color: #203556; }
.audio-processing-head p { margin: 0; color: #8293ad; font-size: 13px; line-height: 1.5; }
.audio-processing-icon { display: grid; place-items: center; flex: 0 0 46px; height: 46px; border-radius: 12px; color: #2865e5; background: #eaf1ff; }
.audio-processing-icon svg { width: 22px; height: 22px; }
.audio-processing-toggle { display: flex; align-items: flex-start; gap: 12px; padding: 18px; border: 1px solid #dce7f7; border-radius: 11px; background: #f7faff; cursor: pointer; }
.audio-processing-toggle input { margin-top: 2px; accent-color: #2865e5; }
.audio-processing-toggle span { display: grid; gap: 4px; }
.audio-processing-toggle strong { color: #23395b; font-size: 14px; }
.audio-processing-toggle small { color: #8293ad; font-size: 12px; }
.audio-processing-positions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; border: 0; }
.audio-processing-positions legend { margin-bottom: 10px; color: #526684; font-size: 13px; font-weight: 600; }
.audio-processing-position { display: flex; gap: 10px; padding: 15px; border: 1px solid #dce7f7; border-radius: 10px; cursor: pointer; }
.audio-processing-position:has(input:checked) { border-color: #7ca7fa; background: #f3f7ff; }
.audio-processing-position input { margin-top: 3px; accent-color: #2865e5; }
.audio-processing-position span { display: grid; gap: 5px; }
.audio-processing-position svg { width: 19px; height: 19px; color: #2865e5; }
.audio-processing-position strong { color: #23395b; font-size: 13px; }
.audio-processing-position small { color: #8293ad; font-size: 12px; line-height: 1.4; }
.audio-processing-times { max-width: 610px; }
.toast-area { position: fixed; bottom: 23px; right: 23px; z-index: 60; display: grid; gap: 8px; max-width: min(380px, calc(100vw - 30px)); }
.toast { display: flex; align-items: center; gap: 9px; color: #fff; background: #243e68; padding: 13px 15px; border-radius: 9px; font-size: 12px; box-shadow: 0 9px 25px #223a6340; line-height: 1.4; }
.toast.error { background: #b84754; }
.toast svg { width: 16px; height: 16px; }

@media (max-width: 1150px) {
  .holiday-columns { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .detail-grid, .settings-layout, .users-grid { grid-template-columns: 1fr; }
  .message-workspace { grid-template-columns: 1fr; }
  .message-preview-panel { position: static; }
  .flow-workspace { grid-template-columns: 1fr; }
  .flow-inspector { position: static; }
  .variable-workspace { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .sheet-date-popover { top: 10vh; left: 12px; right: 12px; transform: none; width: auto; max-height: 80vh; }
  .holiday-panel-head { flex-direction: column; }
  .sidebar { position: fixed; transform: translateX(-101%); box-shadow: 12px 0 40px #20365320; transition: transform .2s; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-scrim { position: fixed; inset: 0; background: #0e224b4d; z-index: 24; }
  .mobile-toggle { display: inline-flex; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-art { min-height: 235px; padding: 27px; }
  .auth-story { padding: 12px 0 0; }
  .auth-story h1 { font-size: 29px; margin: 8px 0; }
  .auth-story p, .auth-foot { display: none; }
  .auth-main { min-height: calc(100vh - 235px); align-items: start; padding: 42px 26px; }
  .topbar { height: 63px; }
  .content { padding-top: 28px; }
  .topbar-tag { display: none; }
}
@media (max-width: 600px) {
  .audio-processing-head { flex-wrap: wrap; }
  .audio-processing-head .kirago-state { margin-left: 61px; }
  .audio-processing-positions { grid-template-columns: 1fr; }
  .campaign-instance-list.compact { grid-template-columns: 1fr; }
  .sheet-filter-bar { justify-content: stretch; }
  .sheet-search { width: 100%; }
  .sheet-date-wrap { flex: 1; }
  .sheet-date-toggle { width: 100%; }
  .sheet-date-body { grid-template-columns: 1fr; }
  .sheet-date-presets { grid-template-columns: repeat(3, minmax(0, 1fr)); border-left: 0; border-top: 1px solid #e1e9f2; }
  .sheet-date-presets button { padding: 5px; min-height: 34px; text-align: center; }
  .sheet-calendars { gap: 8px; }
  .sheet-calendar-month + .sheet-calendar-month { padding-left: 8px; }
  .sheet-calendar-grid { gap: 1px; }
  .sheet-calendar-day { min-height: 25px; }
  .campaign-schedule .field-row, .holiday-custom-form { grid-template-columns: 1fr; }
  .holiday-panel { padding: 17px; }
  .holiday-custom-entry { grid-template-columns: 78px minmax(0,1fr) auto auto; }
  .variable-system-grid { grid-template-columns: 1fr; }
  .variable-system-card, .variable-panel-head { padding: 17px; }
  .variable-editor > .field, .variable-token-row, .variable-options-head, .variable-options, .variable-editor-footer { margin-left: 17px; margin-right: 17px; }
  .variable-options-head { align-items: flex-start; flex-direction: column; }
  .variable-editor-footer { flex-wrap: wrap; }
  .variable-editor-footer > span { display: none; }
  .variable-editor-footer-actions { width: 100%; }
  .variable-token-row { align-items: flex-start; flex-direction: column; }
  .variable-token-row .secondary-btn { margin-top: 0; }
  .sheet-column-selects, .sheet-column-selects .field { width: 100%; }
  .kirago-card-head, .kirago-section-head { flex-direction: column; align-items: flex-start; }
  .kirago-instance { grid-template-columns: 1fr; padding: 17px 18px; }
  .kirago-instance-actions { grid-column: 1; }
  .kirago-instance-actions .secondary-btn { white-space: normal; }
  .kirago-event-grid { grid-template-columns: 1fr; }
  .message-editor, .message-preview-panel { padding: 18px; }
  .message-preview-head { flex-wrap: wrap; }
  .message-add-preview { width: 100%; }
  .message-type { font-size: 11px; }
  .message-storage > summary { flex-wrap: wrap; padding: 17px; }
  .message-storage-form { padding: 17px; }
  .message-storage-actions { align-items: stretch; flex-direction: column; }
  .flow-builder-head, .flow-builder-name { padding-left: 17px; padding-right: 17px; }
  .flow-builder-footer { align-items: stretch; flex-direction: column; padding: 15px 17px; }
  .flow-builder-footer > div { justify-content: flex-end; }
  .flow-inspector { padding: 18px; }
  .flow-canvas { min-width: 350px; padding-left: 18px; padding-right: 18px; }
  .flow-add-menu { top: 55px; left: 50%; transform: translateX(-50%); }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 16px; min-height: 121px; }
  .stat-value { font-size: 26px; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .page-actions { width: 100%; }
  .page-actions .primary-btn { flex: 1; }
  .field-row, .run-grid { grid-template-columns: 1fr; }
  .execution-head, .execution-now, .execution-section-head { align-items: flex-start; flex-wrap: wrap; }
  .execution-now-recipient { margin-left: 59px; padding-left: 0; border-left: 0; }
  .execution-now-timer { width: 100%; margin-left: 59px; text-align: left; }
  .form-card, .info-card, .panel-pad { padding: 18px; }
  .auth-card h2 { font-size: 30px; }
  .topbar-right { display: none; }
  .sheet-tools .field { width: 100%; }
  .sheet-toolbar { width: 100%; }
  .sheet-toolbar button { flex: 1; }
  .sheet-page-head { align-items: flex-start; flex-wrap: wrap; }
  .sheet-page-actions { width: 100%; }
  .sheet-page-actions .primary-btn { flex: 1; }
  .sheet-settings-panel { right: 0; left: 0; width: 100%; }
  .sheet-settings-panel .sheet-column-selects { grid-template-columns: 1fr; }
}
