:root {
  --ink: #172321;
  --muted: #5f6f6c;
  --brand: #12645b;
  --brand-dark: #0d4741;
  --brand-soft: #e6f4f1;
  --accent: #e8a11a;
  --surface: #fff;
  --canvas: #f5f7f6;
  --line: #dce4e2;
  --danger: #ad2d2d;
  --success: #237a4b;
  --warning: #8a5b09;
  --shadow: 0 14px 36px rgba(18, 45, 42, .09);
  --radius: 16px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-size: 16px;
}

/* Instagram Direct */
.instagram-header h1{background:linear-gradient(90deg,#833ab4,#e1306c,#f77737);-webkit-background-clip:text;background-clip:text;color:transparent}
.instagram-button{background:linear-gradient(110deg,#833ab4,#c13584 48%,#e1306c);border-color:transparent;color:#fff}
.instagram-button:hover{filter:brightness(1.06)}
.instagram-roadmap,.instagram-connect-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);gap:24px}
.instagram-hero-card{padding:42px;border-radius:24px;color:#fff;background:radial-gradient(circle at 90% 0,#fdc468 0,transparent 28%),linear-gradient(135deg,#4c1d95,#833ab4 34%,#c13584 68%,#e1306c);box-shadow:0 20px 50px rgba(131,58,180,.2)}
.instagram-hero-card h2{font-size:clamp(1.7rem,3vw,2.5rem);margin:18px 0 10px}.instagram-hero-card p{max-width:680px;color:#fff;opacity:.9}
.instagram-brand-icon{display:grid;place-items:center;width:58px;height:58px;border-radius:18px;color:#fff;background:linear-gradient(135deg,#833ab4,#e1306c,#f77737);font-size:30px;font-weight:800}.instagram-brand-icon.large{width:76px;height:76px;border-radius:24px;font-size:42px}
.instagram-connected-head{display:flex;gap:18px;align-items:center;margin-bottom:26px}.instagram-connected-head h2{margin:8px 0 2px}
.instagram-progress{display:grid;grid-template-columns:36px 1fr 36px 1fr 36px;align-items:center;margin:34px 0 12px}.instagram-progress span{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.2);font-weight:800}.instagram-progress span.done{color:#6d28d9;background:#fff}.instagram-progress div{height:3px;background:rgba(255,255,255,.35)}
.instagram-hero-card ol{display:grid;grid-template-columns:repeat(3,1fr);padding:0;margin:0;list-style:none;gap:16px}.instagram-hero-card li{display:flex;flex-direction:column}.instagram-hero-card small{color:#fff;opacity:.75}
.feature-list{display:grid;gap:12px;padding:0;list-style:none}.feature-list li{position:relative;padding-left:28px}.feature-list li::before{content:'✓';position:absolute;left:0;color:#c13584;font-weight:900}
.inbox-avatar.instagram{background:linear-gradient(135deg,#833ab4,#e1306c);color:#fff}.status-pill.instagram,.inbox-window.instagram{color:#8a1b68;background:#fce7f3;border-color:#f9a8d4}
.inbox-avatar.webchat{background:#dff5ef;color:#12645b}.inbox-window.webchat{color:#0d5b50;background:#e7f8f4;border-color:#8ed6c8}
.inbox-avatar.email{background:#e8efff;color:#2556a7}.inbox-window.email{color:#244b91;background:#edf3ff;border-color:#adc5f3}
@media(max-width:850px){.instagram-roadmap,.instagram-connect-grid{grid-template-columns:1fr}.instagram-hero-card{padding:28px}.instagram-hero-card ol{font-size:.85rem}}

/* Chat Web e Central de E-mails */
.channel-config-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(310px,.8fr);gap:24px}.channel-config-grid .panel-body>h2{margin-top:0}.setup-steps{display:grid;gap:13px;padding-left:22px;line-height:1.5}.code-copy{display:grid;gap:12px;margin:22px 0;padding:16px;border:1px solid var(--line);border-radius:12px;background:#102e2b;color:#d9f2ed}.code-copy code{overflow-wrap:anywhere;line-height:1.55}.code-copy .button{justify-self:start}.email-receive{margin:22px 0;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--canvas)}.email-receive summary{cursor:pointer;font-weight:800}.email-receive[open] summary{margin-bottom:12px}.detail-list{display:grid;gap:0;margin:18px 0 26px}.detail-list div{display:grid;grid-template-columns:100px 1fr;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.detail-list dt{color:var(--muted);font-weight:700}.detail-list dd{margin:0;min-width:0;overflow-wrap:anywhere}.detail-list code{font-size:.78rem}
@media(max-width:900px){.channel-config-grid{grid-template-columns:1fr}}
* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid #e8a11a; outline-offset: 3px; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 1000; padding: 12px 16px; background: #fff; border-radius: 8px; }
.skip-link:focus { top: 16px; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border: 1px solid transparent; border-radius: 10px; font-weight: 720; text-decoration: none; cursor: pointer; transition: .16s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--brand); color: #fff; }
.button.primary:hover { background: var(--brand-dark); }
.button.secondary { border-color: #b8c8c5; background: #fff; color: var(--ink); }
.button.ghost { border-color: transparent; background: transparent; color: var(--brand); }
.button.danger { color: var(--danger); border-color: #e7c3c3; background: #fff8f8; }
.button[disabled] { opacity: .55; cursor: wait; transform: none; }
.eyebrow { display: block; margin-bottom: 7px; color: var(--brand); font-size: .76rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* Acesso */
.auth-layout { min-height: 100vh; display: grid; grid-template-columns: minmax(340px, 1fr) minmax(440px, .88fr); }
.auth-story { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(36px, 6vw, 88px); background: linear-gradient(145deg, #0c3835, #12645b 68%, #27887c); color: #fff; }
.auth-story::after { content: ""; position: absolute; width: 440px; height: 440px; right: -180px; bottom: -180px; border: 70px solid rgba(255,255,255,.08); border-radius: 50%; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; font-size: 1.15rem; font-weight: 800; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: #fff; color: var(--brand-dark); font-weight: 900; letter-spacing: -.08em; }
.auth-story-copy { position: relative; z-index: 1; max-width: 630px; }
.auth-story h1 { max-width: 600px; margin: 0 0 20px; font-size: clamp(2.3rem, 4.6vw, 4.7rem); line-height: .98; letter-spacing: -.055em; }
.auth-story p { max-width: 540px; margin: 0; font-size: 1.12rem; line-height: 1.65; color: #d5efeb; }
.auth-benefits { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.auth-benefits span { padding: 9px 12px; border: 1px solid rgba(255,255,255,.23); border-radius: 999px; font-size: .88rem; }
.auth-story footer { position: relative; z-index: 1; color: #bde0da; font-size: .88rem; }
.auth-panel { display: grid; place-items: center; padding: 32px; background: #f8faf9; }
.auth-card { width: min(100%, 470px); padding: clamp(26px, 5vw, 48px); border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.auth-card h2 { margin: 0 0 9px; font-size: 2rem; letter-spacing: -.035em; }
.auth-card > p { margin: 0 0 28px; color: var(--muted); line-height: 1.55; }
.field { display: grid; gap: 7px; margin-bottom: 18px; }
.field label, .field > span:first-child { font-size: .9rem; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 11px 13px; border: 1px solid #adbfbc; border-radius: 9px; background: #fff; color: var(--ink); }
.field textarea { min-height: 100px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(18,100,91,.12); outline: none; }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 92px; }
.password-toggle { position: absolute; right: 6px; top: 6px; min-height: 34px; border: 0; border-radius: 7px; background: transparent; color: var(--brand); cursor: pointer; font-size: .84rem; font-weight: 700; }
.remember { display: flex; align-items: center; gap: 9px; margin: 6px 0 20px; color: var(--muted); font-size: .9rem; }
.remember input { width: 18px; height: 18px; accent-color: var(--brand); }
.auth-card .button.primary { width: 100%; }
.auth-links { display: flex; justify-content: center; gap: 9px; margin-top: 18px; font-size: .9rem; }
.form-message { margin: 16px 0 0; padding: 12px 14px; border-radius: 9px; background: #fff0f0; color: #8c2222; font-size: .9rem; line-height: 1.45; }
.form-message.success { background: #edf8f1; color: #18613b; }
.company-options { display: grid; gap: 10px; margin-top: 18px; }
.company-option { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-align: left; cursor: pointer; }
.company-option:hover { border-color: var(--brand); background: var(--brand-soft); }
.signup-card { width: min(100%, 820px); }
.signup-card fieldset { min-width: 0; margin: 0 0 26px; padding: 0; border: 0; }
.signup-card legend { width: 100%; margin-bottom: 16px; padding-bottom: 9px; border-bottom: 1px solid var(--line); font-size: 1rem; font-weight: 800; }
.signup-services { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.signup-service { display: flex; align-items: start; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.signup-service:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.signup-service input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); }
.signup-service strong, .signup-service small { display: block; }
.signup-service small { margin-top: 4px; color: var(--muted); line-height: 1.4; }
.terms { display: flex; align-items: start; gap: 10px; margin: 4px 0 20px; color: var(--muted); line-height: 1.45; }
.terms input { width: 19px; height: 19px; flex: 0 0 auto; accent-color: var(--brand); }
.field-error { min-height: 1em; color: var(--danger); }
.loading-state.compact { min-height: 180px; padding: 20px; }

/* Estrutura */
.portal-layout { min-height: 100vh; display: grid; grid-template-columns: 264px minmax(0, 1fr); }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: 264px; display: flex; flex-direction: column; padding: 24px 15px; background: #103b37; color: #fff; overflow-y: auto; }
.sidebar .brand { padding: 0 10px 24px; }
.sidebar .brand small { display: block; margin-top: 2px; color: #acd6d0; font-size: .7rem; font-weight: 600; }
.sidebar nav { display: grid; gap: 4px; }
.sidebar nav a { min-height: 44px; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 9px; color: #d8eeea; text-decoration: none; font-size: .92rem; font-weight: 650; }
.sidebar nav a:hover, .sidebar nav a[aria-current="page"] { background: rgba(255,255,255,.12); color: #fff; }
.nav-icon { width: 22px; flex: 0 0 22px; text-align: center; font-size: 1.05rem; }
.sidebar-foot { margin-top: auto; padding: 18px 10px 0; color: #afd2cd; font-size: .75rem; line-height: 1.5; }
.portal-main { grid-column: 2; min-width: 0; }
.env-banner { min-height: 31px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 5px 16px; background: #fff3d2; color: #714c09; font-size: .77rem; font-weight: 700; }
.topbar { min-height: 74px; display: flex; align-items: center; gap: 18px; padding: 12px clamp(18px, 4vw, 54px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 1.2rem; }
.company-heading { min-width: 0; }
.company-heading strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .98rem; }
.company-heading small { display: block; margin-top: 2px; color: var(--muted); font-size: .76rem; }
.topbar-spacer { flex: 1; }
.notification { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; }
.account-menu { position: relative; }
.account-menu summary { list-style: none; display: flex; align-items: center; gap: 9px; cursor: pointer; }
.account-menu summary::-webkit-details-marker { display: none; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 800; }
.account-copy strong, .account-copy small { display: block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-copy small { color: var(--muted); font-size: .72rem; }
.account-popover { position: absolute; z-index: 50; right: 0; top: 52px; width: 220px; padding: 8px; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: var(--shadow); }
.account-popover a, .account-popover button { width: 100%; display: block; padding: 10px 11px; border: 0; border-radius: 7px; background: transparent; color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; }
.account-popover a:hover, .account-popover button:hover { background: var(--canvas); }
.page { padding: clamp(24px, 4vw, 54px); }
.page-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-header h1 { margin: 0 0 8px; font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -.045em; }
.page-header p { max-width: 720px; margin: 0; color: var(--muted); line-height: 1.55; }
.header-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Componentes */
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.metric { min-height: 138px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 4px 16px rgba(18,45,42,.035); }
.metric span { display: block; color: var(--muted); font-size: .84rem; }
.metric strong { display: block; margin: 13px 0 5px; font-size: 1.65rem; letter-spacing: -.035em; }
.metric small { color: var(--muted); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .8fr); gap: 18px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 4px 18px rgba(18,45,42,.035); }
.panel + .panel { margin-top: 18px; }
.panel-header { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.panel-header h2, .panel-header h3 { margin: 0 0 5px; font-size: 1.08rem; }
.panel-header p { margin: 0; color: var(--muted); font-size: .86rem; }
.panel-body { padding: 22px; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid #edf1f0; }
.checklist li:last-child { border-bottom: 0; }
.checkmark { width: 25px; height: 25px; display: grid; place-items: center; border: 2px solid #adbfbc; border-radius: 50%; color: transparent; font-size: .75rem; }
.complete .checkmark { border-color: var(--success); background: var(--success); color: #fff; }
.checklist strong, .checklist small { display: block; }
.checklist small { margin-top: 3px; color: var(--muted); }
.progress { height: 9px; overflow: hidden; border-radius: 999px; background: #e6ecea; }
.progress span { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.quick-actions { display: grid; gap: 9px; }
.quick-actions a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); text-decoration: none; }
.quick-actions a:hover { border-color: var(--brand); background: var(--brand-soft); }
.usage-list { list-style:none; display:grid; gap:18px; margin:0; padding:0; }
.usage-list li { display:grid; gap:8px; }
.usage-list strong,.usage-list small { display:block; }
.usage-list small { margin-top:4px; color:var(--muted); }
.plan-limits { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:0; }
.plan-limits div { padding:12px; border:1px solid var(--line); border-radius:10px; }
.plan-limits dt { color:var(--muted); font-size:.78rem; }
.plan-limits dd { margin:5px 0 0; font-weight:800; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 999px; background: #eef1f0; color: #4f5d5a; font-size: .76rem; font-weight: 750; }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pill.success { background: #e7f5ec; color: var(--success); }
.status-pill.warning { background: #fff3d6; color: var(--warning); }
.status-pill.danger { background: #ffeded; color: var(--danger); }
.hero-state { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 24px; align-items: center; padding: clamp(25px, 5vw, 48px); border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(135deg,#fff,#f3faf8); }
.hero-icon { width: 88px; height: 88px; display: grid; place-items: center; border-radius: 22px; background: var(--brand-soft); color: var(--brand); font-size: 2.2rem; }
.hero-state h2 { margin: 0 0 10px; font-size: clamp(1.45rem, 3vw, 2.2rem); }
.hero-state p { max-width: 680px; margin: 0 0 22px; color: var(--muted); line-height: 1.6; }
.radio-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; margin: 24px 0; }
.radio-card { display: flex; align-items: center; gap: 11px; padding: 15px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.radio-card input { width: 19px; height: 19px; accent-color: var(--brand); }
.cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.service-card { display: flex; flex-direction: column; min-height: 235px; padding: 21px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.service-card h2 { margin: 16px 0 8px; font-size: 1.08rem; }
.service-card p { margin: 0 0 20px; color: var(--muted); line-height: 1.5; font-size: .9rem; }
.service-card dl { margin: auto 0 17px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.service-card dt { color: var(--muted); font-size: .72rem; }
.service-card dd { margin: 3px 0 0; font-weight: 700; }
.service-request-action{display:grid;gap:7px}.service-request-action small{font-size:.72rem;line-height:1.4}.service-request-action .button{width:100%}
#service-request-form{display:grid;gap:12px;padding:28px}#service-request-form h2{margin:0}#service-request-form>p{margin:0 0 5px;color:var(--muted);line-height:1.5}#service-request-form label{font-size:.82rem;font-weight:750}#service-request-form textarea{width:100%;resize:vertical}
.data-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.data-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.data-table th, .data-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.data-table th { background: #f7f9f8; color: #596764; font-size: .76rem; letter-spacing: .03em; text-transform: uppercase; }
.data-table td { font-size: .88rem; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.row-actions { display: flex; gap: 6px; }
.row-actions .button { min-height: 36px; padding: 6px 9px; font-size: .78rem; }
.empty-state, .error-state, .loading-state, .center-state { min-height: 340px; display: grid; place-items: center; align-content: center; padding: 40px; text-align: center; }
.empty-state .state-icon, .error-state .state-icon { width: 70px; height: 70px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 20px; background: var(--brand-soft); font-size: 2rem; }
.empty-state h2, .error-state h2, .center-state h1 { margin: 0 0 9px; }
.empty-state p, .error-state p, .center-state p { max-width: 580px; margin: 0 0 20px; color: var(--muted); line-height: 1.55; }
.spinner { width: 34px; height: 34px; display: inline-block; border: 4px solid #d7e4e1; border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.route-loading { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 14px; color: var(--muted); }

/* Formulários, wizard e modais */
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 18px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.wizard-layout { min-height: 100vh; display: grid; grid-template-columns: 310px minmax(0,1fr); }
.wizard-side { position: sticky; top: 0; height: 100vh; padding: 34px 28px; background: #103b37; color: #fff; }
.wizard-side h1 { margin: 40px 0 10px; font-size: 1.65rem; }
.wizard-side > p { color: #b9dad5; line-height: 1.5; }
.wizard-steps { list-style: none; display: grid; gap: 10px; margin: 32px 0 0; padding: 0; }
.wizard-steps li { display: flex; align-items: center; gap: 11px; padding: 9px; border-radius: 9px; color: #b9dad5; }
.wizard-steps li.active { background: rgba(255,255,255,.12); color: #fff; }
.wizard-step-number { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: .8rem; }
.wizard-content { display: grid; align-content: start; padding: clamp(30px,6vw,74px); }
.wizard-card { width: min(100%, 850px); margin: 0 auto; }
.wizard-card h2 { margin: 0 0 9px; font-size: clamp(1.8rem,4vw,2.5rem); letter-spacing: -.04em; }
.wizard-card > p { margin: 0 0 30px; color: var(--muted); line-height: 1.55; }
.wizard-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.hours-list { display: grid; gap: 8px; }
.hours-row { display: grid; grid-template-columns: 120px 1fr 1fr 1fr 1fr auto; gap: 8px; align-items: center; padding: 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.hours-row input[type="time"] { width: 100%; min-height: 40px; border: 1px solid #b8c5c3; border-radius: 7px; }
.hours-row label { display: flex; align-items: center; gap: 5px; font-size: .8rem; }
dialog { width: min(92vw, 620px); max-height: 90vh; padding: 0; border: 0; border-radius: 18px; box-shadow: 0 28px 90px rgba(0,0,0,.3); }
dialog::backdrop { background: rgba(10,26,24,.62); backdrop-filter: blur(2px); }
.dialog-content { padding: 28px; }
.dialog-content header { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.dialog-content h2 { margin: 0 0 7px; }
.dialog-content header p { margin: 0; color: var(--muted); }
.dialog-close { width: 40px; height: 40px; flex: 0 0 40px; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; font-size: 1.3rem; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }
.meta-checklist { padding-left: 22px; color: var(--muted); line-height: 1.7; }
.tour-dialog { width: min(92vw, 520px); }
.tour-visual { min-height: 150px; display: grid; place-items: center; margin: -28px -28px 24px; border-radius: 18px 18px 0 0; background: linear-gradient(135deg,#dff3ef,#f4faf8); color: var(--brand); font-size: 3rem; }
.settings-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.settings-item { display: flex; gap: 14px; align-items: start; padding: 18px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; background: #fff; }
.settings-item:hover { border-color: var(--brand); }
.settings-item strong, .settings-item small { display: block; }
.settings-item small { margin-top: 5px; color: var(--muted); line-height: 1.4; }
.settings-icon { width: 39px; height: 39px; flex: 0 0 39px; display: grid; place-items: center; border-radius: 10px; background: var(--brand-soft); }
.notice { padding: 14px 16px; border-left: 4px solid var(--accent); border-radius: 8px; background: #fff7df; color: #69480b; line-height: 1.5; }
.meta-welcome { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(280px,.65fr); gap: 24px; padding: clamp(28px,5vw,54px); border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(135deg,#fff 15%,#eff9f6); }
.meta-choice-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; }
.meta-choice { display:flex; flex-direction:column; align-items:flex-start; min-height:360px; padding:28px; border:1px solid var(--line); border-radius:18px; background:#fff; }
.meta-choice.selected { border-color:#91c7bd; background:linear-gradient(145deg,#fff,#edf8f5); box-shadow:0 10px 28px rgba(16,59,55,.07); }
.meta-choice h2 { margin:18px 0 10px; font-size:1.45rem; }
.meta-choice p,.meta-choice li,.meta-choice small { color:var(--muted); line-height:1.55; }
.meta-choice ul { margin:4px 0 24px; padding-left:20px; }
.meta-choice .button { margin-top:auto; }
.meta-choice .header-actions { margin-top:auto; }
.meta-choice .header-actions .button { margin-top:0; }
.meta-choice a,.meta-choice small { margin-top:11px; font-weight:650; }
.meta-welcome h2 { max-width: 720px; margin: 10px 0 14px; font-size: clamp(1.6rem,3vw,2.45rem); letter-spacing: -.04em; }
.meta-welcome-copy > p { max-width: 720px; color: var(--muted); line-height: 1.65; }
.meta-benefits, .meta-prerequisites ul { padding-left: 22px; color: var(--muted); line-height: 1.9; }
.meta-benefits li::marker { color: var(--success); }
.meta-connect-button { margin-top: 8px; }
.meta-help { display: inline-block; margin-left: 14px; color: var(--brand); font-weight: 700; }
.meta-prerequisites { align-self: stretch; padding: 24px; border: 1px solid #cfe2de; border-radius: 15px; background: rgba(255,255,255,.82); }
.meta-prerequisites h3 { margin-top: 0; }
.meta-prerequisites small { color: var(--muted); line-height: 1.5; }
.meta-progress { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; padding: 18px 22px; border-color: #b9d9d2; }
.meta-progress p { margin: 4px 0 0; color: var(--muted); }
.meta-inline-error { margin: 0 0 18px; padding: 14px 16px; border-radius: 9px; }
.simulator-notice { margin-bottom: 18px; border-color: #7a5af8; background: #f1edff; color: #41308c; }
.demo-banner { background: #4b358e; color: #fff; }
.demo-metrics { margin: 20px 0; }
.demo-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.demo-grid > .panel:last-child { grid-column: 1 / -1; }
.demo-campaigns { display: grid; gap: 10px; }
.demo-campaigns article { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; }
.demo-campaigns strong,.demo-campaigns small { display: block; }
.demo-campaigns small { margin-top: 3px; color: var(--muted); }
.meta-connected-head { display: flex; align-items: center; gap: 18px; }
.meta-connected-head h2 { margin: 9px 0 3px; }
.meta-connected-head p { margin: 0; color: var(--muted); }
.meta-brand-icon { width: 64px; height: 64px; display: grid; place-items: center; flex: 0 0 64px; border-radius: 18px; background: #e4f6eb; color: var(--success); font-size: 1.6rem; font-weight: 900; }
.meta-details { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 26px 0; }
.meta-template-panel{margin-top:20px;overflow:hidden}.meta-template-head{display:flex;align-items:flex-start;justify-content:space-between;gap:22px;padding:24px 26px;border-bottom:1px solid var(--line);background:linear-gradient(135deg,#fff,#f3faf8)}.meta-template-head h2{margin:4px 0 6px}.meta-template-head p{margin:0;color:var(--muted)}.meta-template-panel>.form-message{margin:16px 24px 0}.meta-template-list{display:grid}.meta-template-row{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:19px 26px;border-bottom:1px solid #edf1f0}.meta-template-row:last-child{border-bottom:0}.meta-template-main{min-width:0}.meta-template-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.meta-template-title h3{margin:0;font-size:.96rem}.meta-template-main p{max-width:780px;margin:7px 0;color:#405c57;font-size:.82rem;line-height:1.45;white-space:pre-wrap}.meta-template-main small{color:var(--muted)}.button.compact{min-height:34px;padding:7px 11px}.meta-template-dialog{width:min(760px,calc(100vw - 32px));max-width:none;max-height:92dvh;overflow:auto;border-radius:18px}.meta-template-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 18px;padding:22px 26px}.meta-template-form-grid .field{margin:0}.meta-template-preview{margin-top:8px;padding:18px;border:1px solid #c8ded8;border-radius:13px;background:#eef8f4}.meta-template-preview>span{display:block;margin-bottom:10px;color:var(--brand);font-size:.7rem;font-weight:850;text-transform:uppercase}.meta-template-preview strong,.meta-template-preview p,.meta-template-preview small{display:block;white-space:pre-wrap}.meta-template-preview strong:empty,.meta-template-preview small:empty{display:none}.meta-template-preview p{margin:6px 0;line-height:1.45}.meta-template-preview small{color:var(--muted)}
.meta-details div { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #f9fbfa; }
.meta-details dt { color: var(--muted); font-size: .76rem; }
.meta-details dd { margin: 5px 0 0; font-weight: 750; overflow-wrap: anywhere; }
.inbox-shell { min-height: 610px; display:grid; grid-template-columns:370px minmax(0,1fr); overflow:hidden; }
.inbox-list { border-right:1px solid var(--line); background:#fbfcfc; }
.inbox-list-tools { border-bottom:1px solid var(--line); background:#fff; }
.inbox-search { padding:14px 14px 10px; }
.inbox-search input { width:100%; min-height:43px; padding:10px 12px; border:1px solid #b8c8c5; border-radius:9px; }
.inbox-filters { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; padding:0 10px 11px; }
.inbox-filter { display:flex; align-items:center; justify-content:space-between; gap:8px; min-width:0; padding:8px 10px; border:1px solid transparent; border-radius:8px; background:transparent; color:var(--muted); font-size:.69rem; font-weight:750; cursor:pointer; }
.inbox-filter span { min-width:0; }
.inbox-filter:hover { background:#f0f6f4; color:var(--brand-dark); }
.inbox-filter.active { border-color:#b9d9d2; background:var(--brand-soft); color:var(--brand-dark); }
.inbox-filter b { display:grid; place-items:center; flex:0 0 auto; min-width:18px; min-height:18px; padding:2px 5px; border-radius:999px; background:#e8eeec; color:inherit; font-size:.62rem; line-height:1; }
.inbox-filter.active b { background:#fff; }
.inbox-conversation { width:100%; display:grid; grid-template-columns:42px minmax(0,1fr) auto; gap:11px; align-items:center; padding:14px 13px; border:0; border-bottom:1px solid #e8eeec; background:transparent; color:var(--ink); text-align:left; cursor:pointer; }
.inbox-conversation:hover,.inbox-conversation.active { background:var(--brand-soft); }
.inbox-conversation-main,.inbox-conversation strong,.inbox-conversation small,.inbox-conversation em { display:block; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.inbox-conversation-title { display:flex; align-items:baseline; justify-content:space-between; gap:8px; min-width:0; }
.inbox-conversation-title strong { flex:1; }
.inbox-conversation-title time { flex:0 0 auto; color:var(--muted); font-size:.68rem; font-weight:650; }
.inbox-conversation small { margin-top:4px; color:var(--muted); font-size:.76rem; }
.inbox-conversation em { margin-top:4px; color:#536864; font-size:.7rem; font-style:normal; font-weight:700; }
.inbox-conversation em.unassigned { color:#9b6509; }
.inbox-conversation .inbox-unread { min-width:23px; padding:4px 7px; border-radius:999px; background:var(--brand); color:#fff; text-align:center; font-size:.72rem; }
.inbox-avatar { width:42px; height:42px; display:grid; place-items:center; border-radius:50%; background:#d9efea; color:var(--brand-dark); font-weight:800; }
.inbox-list-empty { padding:30px 20px; text-align:center; color:var(--muted); }
.inbox-list-empty strong,.inbox-list-empty small { display:block; }
.inbox-list-empty small { margin-top:6px; }
.inbox-chat { min-width:0; display:grid; grid-template-rows:auto minmax(0,1fr) auto; container-name:inbox-panel; container-type:inline-size; background:#f3f7f5; }
.inbox-chat-empty { grid-row:1/-1; display:grid; place-items:center; align-content:center; padding:35px; text-align:center; }
.inbox-chat-empty .state-icon { font-size:2rem; }
.inbox-chat-empty h2 { margin:14px 0 7px; }
.inbox-chat-empty p { max-width:480px; margin:0; color:var(--muted); line-height:1.55; }
.inbox-chat-head { display:flex; justify-content:space-between; align-items:center; gap:15px; padding:16px 20px; border-bottom:1px solid var(--line); background:#fff; }
.inbox-chat-head strong,.inbox-chat-head small { display:block; }
.inbox-chat-head small { margin-top:3px; color:var(--muted); }
.inbox-chat-controls { display:flex; align-items:center; justify-content:flex-end; gap:12px; }
.inbox-chat-actions { display:flex; align-items:center; gap:7px; }
.inbox-compose-closed { display:flex; justify-content:center; gap:8px; padding:16px; border-top:1px solid var(--line); background:#fff; color:var(--muted); font-size:.84rem; }
.inbox-compose-closed strong { color:var(--ink); }
.inbox-transfer-dialog { width:min(92vw,520px); padding:0; border:0; border-radius:14px; box-shadow:0 24px 70px rgba(18,45,42,.28); }
.inbox-transfer-dialog::backdrop { background:rgba(13,32,30,.48); }
.inbox-transfer-dialog form { display:grid; gap:10px; padding:24px; }
.inbox-transfer-dialog h2 { margin:2px 0 8px; }
.inbox-transfer-dialog label { font-size:.82rem; font-weight:750; }
.inbox-transfer-dialog select,.inbox-transfer-dialog textarea { width:100%; padding:11px 12px; border:1px solid #adbfbc; border-radius:9px; background:#fff; }
.inbox-page-actions { align-items:center; justify-content:flex-end; }
.inbox-sound-choice { display:flex; align-items:center; gap:7px; min-height:42px; padding:5px 7px 5px 11px; border:1px solid #b8c8c5; border-radius:9px; background:#fff; color:var(--muted); font-size:.74rem; font-weight:750; }
.inbox-sound-choice select { min-height:30px; padding:4px 24px 4px 7px; border:0; border-radius:6px; background:#f2f7f5; color:var(--ink); font:inherit; cursor:pointer; }
.inbox-sound-toggle { display:inline-flex; align-items:center; gap:7px; }
.inbox-sound-toggle.active { border-color:#77aa9e; background:#e5f4ef; color:#175b4d; }
.inbox-messages { min-height:390px; max-height:520px; overflow-y:auto; display:flex; flex-direction:column; gap:13px; padding:22px; background:#f7faf9; }
.inbox-bubble { max-width:min(76%,620px); padding:10px 13px 11px; border:1px solid #b6c8dc; border-left:4px solid #527ca9; border-radius:13px 13px 13px 3px; background:#f1f6fc; box-shadow:0 3px 10px rgba(18,45,42,.06); }
.inbox-bubble.sent { align-self:flex-end; border-color:#8fc9ba; border-right:4px solid #197661; border-left-width:1px; border-radius:13px 13px 3px 13px; background:#d9f2e9; }
.inbox-bubble-direction { display:flex; align-items:center; gap:6px; margin-bottom:7px; color:#365e89; font-size:.7rem; letter-spacing:.025em; }
.inbox-bubble.sent .inbox-bubble-direction { justify-content:flex-end; color:#176451; }
.inbox-bubble-direction strong { font-size:inherit; text-transform:uppercase; }
.inbox-message-origin { padding:2px 6px; border-radius:999px; background:#e4ecea; color:#31534d; font-size:.61rem; font-weight:800; letter-spacing:.02em; text-transform:uppercase; }
.inbox-message-origin.whatsapp { background:#d9f5e5; color:#17663d; }
.inbox-message-origin.webchat { background:#dcecff; color:#245d9b; }
.inbox-message-origin.instagram { background:#f1e2fb; color:#7b2e90; }
.inbox-message-origin.email { background:#fff0d8; color:#86551c; }
.inbox-conversation.new-activity { background:#fff9e8; box-shadow:inset 4px 0 #d99518; }
.inbox-bubble p { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.45; }
.inbox-bubble small { display:block; margin-top:6px; color:var(--muted); font-size:.68rem; }
.inbox-reaction { display:table; min-width:31px; margin:7px 0 -4px auto; padding:2px 8px; border:1px solid #b8cbc6; border-radius:999px; background:#fff; box-shadow:0 2px 6px rgba(18,45,42,.1); font-size:1rem; line-height:1.35; }
.inbox-bubble.received .inbox-reaction { margin-right:auto; margin-left:0; }
.inbox-reply-context { display:block; width:100%; margin:0 0 8px; padding:7px 9px; border:0; border-left:3px solid #4f8f80; border-radius:5px; background:rgba(255,255,255,.68); color:inherit; text-align:left; cursor:pointer; }
.inbox-reply-context span { display:block; margin-bottom:2px; color:#287363; font-size:.63rem; font-weight:800; text-transform:uppercase; }
.inbox-reply-context p { max-height:3em; overflow:hidden; font-size:.75rem; opacity:.82; }
.inbox-reply-context.unavailable { cursor:default; opacity:.72; }
.inbox-bubble.reply-highlight { animation:inbox-reply-highlight 1.8s ease-out; }
@keyframes inbox-reply-highlight { 20% { box-shadow:0 0 0 4px rgba(226,154,20,.38); } }
.inbox-email-message { width:min(100%,860px); flex:0 0 auto; align-self:center; overflow:hidden; border:1px solid #c8d5d2; border-top:4px solid #d48b22; border-radius:10px; background:#fff; box-shadow:0 5px 18px rgba(18,45,42,.08); }
.inbox-email-message.sent { border-top-color:#197661; }
.inbox-email-message.selected { border-color:#197661; box-shadow:0 0 0 2px rgba(25,118,97,.14),0 7px 20px rgba(18,45,42,.1); }
.inbox-email-head { display:flex; justify-content:space-between; align-items:flex-start; gap:18px; padding:18px 20px 15px; border-bottom:1px solid #e0e8e6; background:#fbfcfc; }
.inbox-email-head h3 { margin:8px 0 7px; color:var(--ink); font-size:1.02rem; line-height:1.35; }
.inbox-email-head p { margin:0; color:var(--muted); font-size:.76rem; overflow-wrap:anywhere; }
.inbox-email-head time { flex:0 0 auto; color:var(--muted); font-size:.7rem; white-space:nowrap; }
.inbox-email-head-actions { display:flex; flex:0 0 auto; align-items:flex-end; flex-direction:column; gap:12px; }
.inbox-email-body { min-height:105px; padding:22px 20px 26px; color:#263c39; }
.inbox-email-body > p { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.65; }
.inbox-email-message footer { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:9px 20px; border-top:1px solid #e6ecea; color:var(--muted); font-size:.65rem; text-transform:uppercase; }
.inbox-email-reply { text-transform:none; }
.inbox-email-compose { padding:18px 20px; }
.inbox-email-compose-head { display:flex; justify-content:space-between; align-items:flex-end; gap:18px; }
.inbox-email-compose-head div,.inbox-email-compose-head strong { display:block; }
.inbox-email-compose-head strong { margin-top:4px; font-size:.82rem; overflow-wrap:anywhere; }
.inbox-email-compose-head b { display:block; margin-top:5px; color:#175b4d; font-size:.78rem; }
.inbox-email-compose-head > span { color:var(--muted); font-size:.73rem; text-align:right; }
.inbox-email-compose textarea { min-height:112px; max-height:260px; line-height:1.55; }
.inbox-email-compose-actions { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.inbox-media { display:block; margin-bottom:8px; }
.inbox-media.image img,.inbox-media.video video { display:block; width:min(100%,420px); max-height:360px; object-fit:contain; border-radius:9px; background:#e8efed; }
.inbox-media.audio audio { display:block; width:min(100%,360px); }
.inbox-media.document { display:flex; align-items:center; gap:10px; min-width:230px; padding:10px; border:1px solid var(--line); border-radius:9px; background:rgba(255,255,255,.68); color:var(--ink); text-decoration:none; }
.inbox-media.document > span:first-child { display:grid; place-items:center; width:34px; height:34px; border-radius:8px; background:#dcebe7; color:var(--primary); font-size:1.1rem; }
.inbox-media.document strong,.inbox-media.document small { display:block; margin:0; overflow-wrap:anywhere; }
.inbox-media.loading { min-height:42px; color:var(--muted); cursor:wait; }
.inbox-media.loading > span:last-child { display:block; padding:8px 0; font-size:.78rem; }
.inbox-media.failed { color:#9f2f2f; cursor:default; }
.inbox-location { display:flex; align-items:flex-start; gap:10px; min-width:260px; padding:12px; border:1px solid #a9c9c0; border-radius:10px; background:rgba(255,255,255,.78); }
.inbox-location-icon,.inbox-location > span:first-child { display:grid; flex:0 0 auto; place-items:center; width:38px; height:38px; border-radius:50%; background:#dcefe9; color:#176451; font-size:1.25rem; }
.inbox-location div { min-width:0; }
.inbox-location strong,.inbox-location span,.inbox-location small { display:block; overflow-wrap:anywhere; }
.inbox-location span { margin-top:3px; color:#3f5854; font-size:.78rem; }
.inbox-location small { margin-top:4px; color:var(--muted); font-size:.7rem; }
.inbox-location a { display:inline-block; margin-top:8px; color:#126451; font-size:.78rem; font-weight:800; }
.inbox-location.unavailable { color:var(--muted); }
.inbox-shared-contacts { display:grid; gap:8px; }
.inbox-shared-contact { display:flex; align-items:flex-start; gap:10px; min-width:280px; padding:12px; border:1px solid #a9c9c0; border-radius:10px; background:rgba(255,255,255,.78); }
.inbox-contact-icon,.inbox-shared-contact > span:first-child { display:grid; flex:0 0 auto; place-items:center; width:38px; height:38px; border-radius:50%; background:#dcefe9; color:#176451; font-size:1.2rem; }
.inbox-shared-contact > div { min-width:0; }
.inbox-shared-contact strong,.inbox-shared-contact small { display:block; overflow-wrap:anywhere; }
.inbox-shared-contact ul { display:grid; gap:7px; margin:8px 0 0; padding:0; list-style:none; }
.inbox-shared-contact li { display:flex; flex-wrap:wrap; align-items:center; gap:5px 10px; color:#3f5854; font-size:.76rem; }
.inbox-shared-contact a { color:#126451; font-weight:800; }
.inbox-shared-contact.unavailable { color:var(--muted); }
.inbox-compose { display:grid; gap:10px; padding:14px; border-top:1px solid var(--line); background:#fff; }
.inbox-window { display:flex; align-items:center; gap:8px; padding:8px 10px; border-radius:8px; font-size:.76rem; }
.inbox-window.open { background:#e8f6f0; color:#286153; }
.inbox-window.closed { background:#fff4df; color:#79561e; }
.inbox-window.template { background:#edf3ff; color:#244b91; }
.inbox-window span { color:inherit; }
.inbox-compose-main { display:grid; grid-template-columns:auto minmax(0,1fr) auto auto; gap:8px; align-items:end; }
.inbox-compose textarea { width:100%; min-height:47px; max-height:130px; resize:vertical; padding:11px 13px; border:1px solid #adbfbc; border-radius:9px; }
.inbox-template-fields { display:grid; grid-template-columns:minmax(180px,.7fr) minmax(260px,1.5fr) auto; gap:10px; align-items:end; }
.inbox-template-fields label { display:grid; gap:5px; color:var(--muted); font-size:.76rem; font-weight:700; }
.inbox-template-fields select,.inbox-template-fields textarea { width:100%; min-height:45px; padding:9px 11px; border:1px solid #adbfbc; border-radius:9px; background:#fff; }
.inbox-template-fields textarea { max-height:100px; resize:vertical; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:.76rem; }
.inbox-tool { width:45px; height:45px; display:grid; place-items:center; border:1px solid #adbfbc; border-radius:9px; background:#f7faf9; color:var(--primary); cursor:pointer; font-size:1.05rem; }
.inbox-tool:hover { background:var(--brand-soft); }
.inbox-tool:disabled { opacity:.55; cursor:wait; }
.inbox-tool.recording { border-color:#c93636; background:#fff0f0; color:#b32626; }
.inbox-pending { display:flex; align-items:center; gap:11px; min-width:0; padding:10px 12px; border:1px solid #c7d8d4; border-radius:9px; background:#f4f9f7; }
.inbox-pending > span:not(.inbox-record-dot) { min-width:0; flex:1; }
.inbox-pending strong,.inbox-pending small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.inbox-pending small { margin-top:3px; color:var(--muted); }
.inbox-pending img { width:54px; height:54px; border-radius:7px; object-fit:cover; }
.inbox-pending audio { width:min(100%,280px); height:38px; }
.inbox-file-icon { width:38px; height:38px; display:grid; place-items:center; flex:0 0 38px!important; border-radius:7px; background:#dcebe7; }
.inbox-record-dot { width:11px; height:11px; flex:0 0 11px; border-radius:50%; background:#c93636; animation:inbox-record-pulse 1s infinite; }
.button.compact { min-height:34px; padding:6px 10px; }
@keyframes inbox-record-pulse { 50% { opacity:.35; } }
.inbox-enter-option { grid-column:1/-1; display:inline-flex; align-items:center; gap:7px; width:max-content; color:var(--muted); font-size:.78rem; cursor:pointer; user-select:none; }
.inbox-enter-option input { width:16px; height:16px; margin:0; accent-color:var(--primary); }
@container inbox-panel (max-width:620px) {
  .inbox-compose-main { grid-template-columns:auto auto minmax(0,1fr); }
  .inbox-compose-main textarea { grid-column:1/-1; grid-row:1; }
  .inbox-compose-main #inbox-attach { grid-column:1; grid-row:2; }
  .inbox-compose-main #inbox-record { grid-column:2; grid-row:2; }
  .inbox-compose-main > .button[type="submit"] { grid-column:3; grid-row:2; justify-self:end; min-width:100px; }
}
.erp-operations-panel .data-table small { display:block; margin-top:3px; color:var(--muted); }
.erp-operation-url { max-width:360px; overflow-wrap:anywhere; }
.erp-operation-test { display:grid; gap:12px; border-top:1px solid var(--line); background:#f7faf9; }
.erp-operation-test label { display:grid; gap:6px; color:var(--muted); font-size:.8rem; font-weight:700; }
.erp-operation-test textarea { width:100%; padding:11px; border:1px solid #adbfbc; border-radius:9px; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; }
.erp-operation-test pre { max-height:320px; overflow:auto; margin:0; padding:14px; border-radius:9px; background:#152724; color:#d8ece7; white-space:pre-wrap; overflow-wrap:anywhere; }
.erp-sandbox-panel { margin-top:20px; border-color:#dccb8d; background:linear-gradient(135deg,#fffdf5,#fff); }
.erp-sandbox-progress { padding:14px; border:1px solid var(--line); border-radius:10px; background:#fff; }
.erp-sandbox-progress ol { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin:0 0 14px; padding:0; list-style:none; counter-reset:sandbox-stage; }
.erp-sandbox-progress li { padding:9px; border-radius:8px; background:#edf2f1; color:var(--muted); font-size:.78rem; }
.erp-sandbox-progress li.active { background:#fff2c8; color:#725600; }
.context-help{display:grid;place-items:center;width:38px;height:38px;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--primary);font-weight:850;text-decoration:none}.context-help:hover{border-color:var(--primary);background:#eef8f6}
.help-client-hero{position:relative;display:grid;grid-template-columns:minmax(0,1fr) 180px;align-items:center;gap:30px;margin:-2px 0 18px;padding:clamp(30px,5vw,56px);overflow:hidden;border-radius:24px;background:linear-gradient(125deg,#103b37 0%,#17685e 70%,#218577 100%);color:#fff;box-shadow:0 18px 45px rgba(16,59,55,.16)}
.help-client-hero::after{content:"";position:absolute;right:-90px;bottom:-150px;width:330px;height:330px;border:1px solid rgba(255,255,255,.18);border-radius:50%;box-shadow:0 0 0 45px rgba(255,255,255,.035),0 0 0 90px rgba(255,255,255,.025)}
.help-client-hero .eyebrow{color:#9ee5da}.help-client-hero h1{margin:8px 0 9px;font-size:clamp(2rem,4vw,3.2rem);letter-spacing:-.05em}.help-client-hero p{max-width:650px;margin:0;color:#d5efeb;line-height:1.6}
.help-hero-search{position:relative;z-index:2;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;max-width:720px;margin-top:25px;padding:7px 9px 7px 16px;border:1px solid rgba(255,255,255,.35);border-radius:13px;background:#fff;color:var(--ink);box-shadow:0 12px 28px rgba(3,28,25,.2)}.help-hero-search>span{font-size:1.45rem;color:var(--brand)}.help-hero-search input{min-width:0;min-height:43px;border:0;outline:0;background:transparent}.help-hero-search kbd{padding:5px 9px;border:1px solid var(--line);border-radius:6px;background:#f4f7f6;color:var(--muted);font:700 .75rem ui-monospace,monospace}
.help-hero-orbit{position:relative;z-index:1;display:grid;place-items:center;align-content:center;width:150px;height:150px;border:1px solid rgba(255,255,255,.35);border-radius:50%;background:rgba(255,255,255,.08);text-align:center;backdrop-filter:blur(6px)}.help-hero-orbit strong{font-size:2.5rem;line-height:1}.help-hero-orbit span{margin-top:7px;color:#c5e9e3;font-size:.75rem;text-transform:uppercase;letter-spacing:.08em}
.help-journeys{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:18px}.help-journeys button{position:relative;display:grid;gap:4px;min-height:118px;padding:17px;border:1px solid var(--line);border-radius:13px;background:#fff;color:var(--ink);text-align:left;transition:transform .18s,border-color .18s,box-shadow .18s}.help-journeys button:hover{transform:translateY(-3px);border-color:#82bbb2;box-shadow:0 10px 24px rgba(16,59,55,.09)}.help-journeys span{color:var(--brand);font-size:.72rem;font-weight:850}.help-journeys strong{font-size:.95rem}.help-journeys small{color:var(--muted);line-height:1.35}
.help-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:22px 0 14px}.help-categories{display:flex;gap:7px;overflow-x:auto;padding:3px;scrollbar-width:thin}.help-categories button{flex:0 0 auto;padding:8px 12px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--muted);font-size:.76rem;font-weight:750}.help-categories button:hover,.help-categories button.active{border-color:var(--brand);background:var(--brand);color:#fff}
.help-results-head{display:flex;justify-content:space-between;gap:14px;margin:0 0 10px;color:var(--muted);font-size:.78rem}.help-results-head strong{color:var(--ink)}.help-client-layout{display:grid;grid-template-columns:minmax(260px,340px) minmax(0,1fr);gap:20px;align-items:start}.help-client-topics{position:sticky;top:18px;display:grid;gap:8px;max-height:78vh;overflow:auto;padding-right:5px;scrollbar-width:thin}.help-client-topics>button{position:relative;display:grid;grid-template-columns:34px minmax(0,1fr);gap:3px 10px;padding:14px;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);text-align:left}.help-client-topics>button:hover,.help-client-topics>button:focus,.help-client-topics>button.active{border-color:#79b7ad;background:#f2faf8}.help-client-topics>button.active::after{content:"";position:absolute;top:12px;bottom:12px;right:0;width:3px;border-radius:5px;background:var(--brand)}.help-client-topics i{grid-row:1/5;display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:var(--brand-soft);color:var(--brand);font-size:1rem;font-style:normal;font-weight:900}.help-client-topics span{color:var(--brand);font-size:.65rem;font-weight:850;text-transform:uppercase;letter-spacing:.04em}.help-client-topics strong,.help-client-topics small,.help-client-topics em{grid-column:2}.help-client-topics small{color:var(--muted);line-height:1.35}.help-client-topics em{margin-top:3px;color:#52716c;font-size:.68rem;font-style:normal;font-weight:700}.help-empty{padding:25px;border:1px dashed var(--line);border-radius:12px;background:#fff;text-align:center}.help-empty p{color:var(--muted);line-height:1.5}
.help-manual-detail{overflow:hidden}.help-detail-hero{display:grid;grid-template-columns:56px minmax(0,1fr) auto;align-items:center;gap:16px;padding:24px;background:linear-gradient(135deg,#fff,#f1faf8);border-bottom:1px solid var(--line)}.help-detail-hero h2{margin:4px 0 4px;font-size:clamp(1.25rem,2vw,1.7rem)}.help-detail-hero p{margin:0;color:var(--muted);line-height:1.45}.help-topic-icon{display:grid;place-items:center;width:56px;height:56px;border-radius:15px;background:#dff3ef;color:var(--brand);font-size:1.35rem;font-weight:900}.help-detail-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}
.help-progress-box{display:grid;grid-template-columns:auto minmax(120px,1fr) auto;align-items:center;gap:15px;padding:13px 24px;border-bottom:1px solid var(--line);background:#fbfdfc}.help-progress-box div:first-child{display:grid}.help-progress-box span{color:var(--muted);font-size:.7rem}.help-progress-box b{color:var(--brand);font-size:.82rem}.help-detail-body{display:grid;gap:22px}.help-prerequisite{padding:15px 17px;border:1px solid #cfe5e0;border-radius:11px;background:#f5fbf9}.help-prerequisite>span{color:var(--brand);font-size:.7rem;font-weight:850;text-transform:uppercase}.help-prerequisite p{margin:7px 0 0;color:#365b55;font-size:.84rem;line-height:1.45}.help-guided-steps h3{margin:0 0 12px}.help-step{display:grid;grid-template-columns:auto auto minmax(0,1fr);align-items:center;gap:12px;margin-top:8px;padding:14px;border:1px solid var(--line);border-radius:11px;background:#fff;cursor:pointer;transition:.15s}.help-step:hover{border-color:#8cbeb6;box-shadow:0 4px 14px rgba(16,59,55,.06)}.help-step>input{position:absolute;opacity:0;pointer-events:none}.help-step-number{display:grid;place-items:center;width:34px;height:34px;border:2px solid #b6c9c5;border-radius:50%;color:#607b76;font-weight:850}.help-step strong,.help-step small{display:block}.help-step small{margin-top:4px;color:var(--muted);font-size:.72rem}.help-step.complete{border-color:#a9d8ce;background:#f3fbf8}.help-step.complete .help-step-number{border-color:var(--success);background:var(--success);color:#fff}.help-step.complete strong{text-decoration:line-through;color:#56706b}.help-tip{display:flex;gap:13px;padding:16px;border-radius:11px;background:#fff6dd;color:#684a10}.help-tip>span{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:50%;background:#f1c35f;font-weight:900}.help-tip strong,.help-tip p{display:block;margin:0}.help-tip p{margin-top:5px;font-size:.82rem;line-height:1.45}.help-guide-nav{display:flex;justify-content:space-between;gap:10px;padding-top:4px}
.help-official-links{display:grid;grid-template-columns:minmax(180px,.7fr) minmax(0,1.3fr);gap:18px;padding:18px;border:1px solid #d6e6f5;border-radius:13px;background:#f7fbff}.help-official-links h3{margin:5px 0}.help-official-links p{margin:0;color:var(--muted);font-size:.8rem;line-height:1.45}.help-link-list{display:grid;gap:8px}.help-link-list a{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;border:1px solid #cbddec;border-radius:10px;background:#fff;color:var(--ink);text-decoration:none;transition:.15s}.help-link-list a:hover,.help-link-list a:focus{border-color:#4b91c4;box-shadow:0 4px 14px rgba(40,100,145,.1);transform:translateY(-1px)}.help-link-list strong,.help-link-list small{display:block}.help-link-list small{margin-top:3px;color:var(--muted);font-size:.72rem;line-height:1.35}.help-link-list b{color:#2874a6;font-size:1.1rem}
.help-support{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:22px;padding:22px;border-radius:15px;background:#143d39;color:#fff}.help-support>div{display:flex;align-items:center;gap:14px}.help-support-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:rgba(255,255,255,.12);font-size:1.3rem;font-weight:900}.help-support strong{font-size:1rem}.help-support p{margin:4px 0 0;color:#c9e2de;font-size:.8rem}.help-support .button{flex:0 0 auto}
@media(max-width:1050px){.help-journeys{grid-template-columns:repeat(2,minmax(0,1fr))}.help-detail-hero{grid-template-columns:50px 1fr}.help-detail-actions{grid-column:1/-1;justify-content:flex-start}}
@media(max-width:800px){.help-client-hero{grid-template-columns:1fr;padding:28px 20px}.help-hero-orbit{display:none}.help-journeys{grid-template-columns:1fr 1fr}.help-toolbar{width:100%;align-items:flex-start;flex-direction:column}.help-categories{width:100%;max-width:100%}.help-client-layout{grid-template-columns:1fr}.help-client-topics{position:static;max-height:330px}.help-detail-hero{grid-template-columns:42px 1fr;padding:19px}.help-topic-icon{width:42px;height:42px}.help-progress-box{grid-template-columns:1fr auto}.help-progress-box .progress{grid-column:1/-1;grid-row:2}.help-official-links{grid-template-columns:1fr}.help-support{align-items:flex-start;flex-direction:column}}
@media(max-width:520px){.help-journeys{grid-template-columns:1fr}.help-results-head span{display:none}.help-detail-actions .button{width:100%}.help-guide-nav{display:grid;grid-template-columns:1fr}.help-support .button{width:100%}}
.help-step{grid-template-columns:auto minmax(0,1fr)}
.erp-sandbox-progress li.success { background:#daf3e8; color:#176044; }
.erp-sandbox-progress pre { max-height:380px; overflow:auto; margin:0; padding:14px; border-radius:9px; background:#152724; color:#d8ece7; white-space:pre-wrap; overflow-wrap:anywhere; }

.automation-hero{align-items:center;padding:clamp(22px,3vw,34px);border:1px solid #d8e7e3;border-radius:18px;background:linear-gradient(125deg,#effaf7 0%,#fff 58%,#fff4d5 100%);box-shadow:0 10px 30px rgba(18,61,56,.06)}
.automation-hero .header-actions{flex:0 0 auto}.automation-blocker{margin:-8px 0 20px}.automation-blocker a{font-weight:800;color:var(--primary)}
.automation-metrics{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));margin:20px 0}.automation-metrics .metric{min-height:110px;padding:17px}.automation-metrics .metric strong{margin:8px 0 3px;font-size:1.45rem}
.automation-guide{display:grid;grid-template-columns:minmax(250px,.72fr) minmax(540px,1.28fr);gap:26px;align-items:center;margin:0 0 18px;padding:25px;border:1px solid #cfe3df;border-radius:16px;background:#f7fbfa}.automation-guide h2{margin:5px 0 8px;font-size:clamp(1.25rem,2vw,1.65rem)}.automation-guide-copy p{margin:0;color:var(--muted);line-height:1.55}.automation-guide ol{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:0;padding:0;list-style:none;counter-reset:none}.automation-guide li{display:grid;grid-template-columns:31px minmax(0,1fr);gap:9px;align-items:start;padding:12px;border:1px solid var(--line);border-radius:11px;background:#fff}.automation-guide li>span{display:grid;place-items:center;width:31px;height:31px;border-radius:50%;background:var(--brand);color:#fff;font-size:.75rem;font-weight:850}.automation-guide li strong,.automation-guide li small{display:block}.automation-guide li strong{font-size:.8rem}.automation-guide li small{margin-top:4px;color:var(--muted);font-size:.7rem;line-height:1.35}
.automation-use-cases{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0 0 20px}.automation-use-cases article{display:grid;grid-template-columns:38px minmax(0,1fr);gap:2px 11px;padding:17px;border:1px solid var(--line);border-radius:13px;background:#fff}.automation-use-cases article>span{grid-row:1/3;display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:var(--brand-soft);color:var(--brand);font-size:1.05rem;font-weight:850}.automation-use-cases strong{font-size:.9rem}.automation-use-cases p{margin:5px 0 0;color:var(--muted);font-size:.76rem;line-height:1.45}
.automation-workflows{overflow:hidden}.automation-workflows-head{align-items:center}.automation-toolbar{display:flex;gap:8px;min-width:min(100%,390px)}.automation-toolbar label{flex:1}.automation-toolbar input,.automation-toolbar select{width:100%;min-height:42px;padding:9px 11px;border:1px solid #adbfbc;border-radius:9px;background:#fff}.automation-toolbar select{width:auto;min-width:112px}
.automation-flow-list{display:grid;gap:0}.automation-flow-card{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 22px;border-bottom:1px solid #edf1f0}.automation-flow-card:last-child{border-bottom:0}.automation-flow-card[hidden]{display:none}.automation-flow-main{display:grid;grid-template-columns:44px minmax(0,1fr);gap:13px;min-width:0}.automation-flow-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:#e5f3ef;color:var(--brand);font-size:.9rem;font-weight:900}.automation-flow-title{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.automation-flow-title h3{margin:0;font-size:.96rem}.automation-flow-main p{margin:5px 0;color:var(--muted);font-size:.8rem}.automation-flow-main small{color:#72847f;font-size:.7rem}.automation-flow-actions{display:flex;justify-content:flex-end;gap:7px;flex-wrap:wrap;flex:0 0 auto}.automation-empty{display:flex;align-items:center;justify-content:center;gap:16px;padding:34px}.automation-empty>span{font-size:2rem;color:var(--brand)}.automation-empty h3,.automation-empty p{margin:0}.automation-empty p{margin-top:4px;color:var(--muted)}.automation-empty.compact{justify-content:flex-start;padding:20px;background:#f7faf9;border-radius:10px}.automation-no-results{padding:25px;text-align:center;color:var(--muted)}
.automation-dialog{width:min(720px,calc(100vw - 32px));max-width:none;max-height:min(92dvh,820px);overflow:hidden;border-radius:18px}.automation-dialog-surface{width:100%;max-width:100%;max-height:min(92dvh,820px);display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:#fff}.automation-dialog-header{position:relative;display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin:0;padding:24px 26px 19px;border-bottom:1px solid var(--line);background:#fff}.automation-dialog-header h2{margin:0 0 5px;font-size:1.42rem;letter-spacing:-.025em}.automation-dialog-header p{margin:0;color:var(--muted);line-height:1.45}.automation-dialog-header .eyebrow{margin-bottom:5px}.automation-dialog-body,.automation-detail-body{min-width:0;display:grid;gap:17px;padding:22px 26px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}.automation-dialog-body .field{min-width:0;margin:0}.automation-dialog-body .field small{display:block;margin-top:1px;color:var(--muted);font-size:.76rem;line-height:1.4}.automation-dialog-body textarea{max-height:180px}.automation-dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin:0;padding:16px 26px;border-top:1px solid var(--line);background:#fafcfb}.automation-dialog-actions .button{min-width:132px}.automation-form-progress{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin:0 0 2px;padding:0;list-style:none}.automation-form-progress li{position:relative;display:flex;align-items:center;gap:8px;min-width:0;color:#778783}.automation-form-progress li:not(:last-child)::after{content:"";position:absolute;z-index:0;left:30px;right:7px;top:14px;height:2px;background:#dce6e4}.automation-form-progress span{position:relative;z-index:1;display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border:1px solid #bdcbc8;border-radius:50%;background:#fff;font-size:.73rem;font-weight:850}.automation-form-progress small{position:relative;z-index:1;overflow:hidden;padding-right:8px;background:#fff;font-size:.72rem;font-weight:750;text-overflow:ellipsis;white-space:nowrap}.automation-form-progress .current{color:var(--brand)}.automation-form-progress .current span{border-color:var(--brand);background:var(--brand);color:#fff}.automation-activation{display:grid;grid-template-columns:auto minmax(0,1fr);gap:11px;align-items:start;padding:14px;border:1px solid var(--line);border-radius:10px;background:#fafcfb;cursor:pointer}.automation-activation:has(input:checked){border-color:#7db8ad;background:var(--brand-soft)}.automation-activation input{width:19px;height:19px;margin:2px 0 0;accent-color:var(--brand)}.automation-activation strong,.automation-activation small{display:block}.automation-activation small{margin-top:4px;color:var(--muted);line-height:1.4}.automation-session-note{display:grid;gap:4px;margin:0;padding:13px 15px;font-size:.79rem;line-height:1.45}.automation-session-note span{color:#6c500f}
.automation-builder{overflow:hidden;margin:0 0 20px;padding:0;border-color:#b9d5cf;box-shadow:0 12px 30px rgba(18,61,56,.08);scroll-margin-top:18px}.automation-builder[hidden]{display:none}.automation-builder .automation-dialog-surface{min-height:auto;max-height:none}.automation-builder .automation-dialog-header{background:linear-gradient(110deg,#f2faf8,#fff 58%,#fff8e5)}.automation-builder .automation-dialog-body{overflow:visible}
.automation-sequence{display:grid;gap:11px;padding:14px;border:1px solid #cedddb;border-radius:12px;background:#f8fbfa}.automation-sequence>header{display:flex;align-items:center;justify-content:space-between;gap:12px}.automation-sequence>header strong,.automation-sequence>header small{display:block}.automation-sequence>header small,.automation-sequence-limit{margin-top:3px;color:var(--muted);font-size:.73rem;line-height:1.4}.automation-action-list{display:grid;gap:10px}.automation-action-card{display:grid;grid-template-columns:34px minmax(0,1fr) 34px;gap:10px;align-items:start;padding:12px;border:1px solid #cbd9d6;border-radius:11px;background:#fff;box-shadow:0 3px 10px rgba(18,61,56,.04)}.automation-action-order{display:grid;place-items:center;width:30px;height:30px;margin-top:22px;border-radius:50%;background:var(--brand);color:#fff;font-size:.75rem;font-weight:850}.automation-action-content{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(220px,1.2fr);gap:10px;min-width:0}.automation-action-config textarea{min-height:76px;resize:vertical}.automation-action-controls{display:grid;gap:5px;margin-top:20px}.automation-action-controls button{display:grid;place-items:center;width:32px;height:30px;border:1px solid #b8c9c6;border-radius:8px;background:#fff;color:#4a625d;font:inherit;font-weight:850;cursor:pointer}.automation-action-controls button:hover:not(:disabled){border-color:var(--brand);background:var(--brand-soft);color:var(--brand)}.automation-action-controls button:last-child{color:#a23e3e}.automation-action-controls button:disabled{opacity:.35;cursor:not-allowed}.automation-sequence-limit{margin:0}
.automation-safe{padding:14px 16px;border:1px solid #b9dfd1;border-radius:11px;background:#eef9f5;color:#265c50}.automation-safe p{margin:5px 0 0;font-size:.8rem}.automation-step-list{display:grid;gap:8px;margin:0;padding:0;list-style:none}.automation-step-list li{display:grid;grid-template-columns:32px minmax(0,1fr);align-items:center;gap:10px;padding:11px;border:1px solid var(--line);border-radius:9px}.automation-step-list li>span{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--brand-soft);color:var(--brand);font-weight:850}.automation-step-list strong,.automation-step-list small{display:block}.automation-step-list small{margin-top:3px;color:var(--muted);font-size:.7rem}.automation-executions{display:grid;gap:9px}.automation-execution{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px;border:1px solid var(--line);border-radius:10px}.automation-execution strong,.automation-execution small{display:block}.automation-execution small{margin-top:4px;color:var(--muted);font-size:.7rem}.automation-log-list{margin:-4px 0 2px;padding:12px 12px 12px 31px;border-radius:9px;background:#f4f8f7;color:var(--muted);font-size:.76rem}

@media(max-width:1100px){.automation-guide{grid-template-columns:1fr}.automation-guide ol{grid-template-columns:repeat(2,minmax(0,1fr))}.automation-flow-card{align-items:flex-start;flex-direction:column}.automation-flow-actions{justify-content:flex-start;padding-left:57px}}
@media(max-width:700px){.automation-hero .header-actions,.automation-hero .button{width:100%}.automation-guide{padding:19px}.automation-guide ol,.automation-use-cases{grid-template-columns:1fr}.automation-workflows-head{align-items:stretch;flex-direction:column}.automation-toolbar{width:100%;min-width:0}.automation-flow-card{padding:17px}.automation-flow-actions{display:grid;grid-template-columns:1fr 1fr;width:100%;padding-left:0}.automation-flow-actions .button:last-child{grid-column:1/-1}.automation-empty{align-items:flex-start;flex-direction:column}.automation-empty .button{width:100%}.automation-execution{align-items:flex-start;flex-direction:column}.automation-execution .button{width:100%}.automation-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:14px}.automation-dialog-surface{max-height:calc(100dvh - 20px)}.automation-dialog-header{padding:19px 18px 16px}.automation-dialog-header h2{font-size:1.22rem}.automation-dialog-header p{font-size:.82rem}.automation-dialog-body,.automation-detail-body{padding:18px;gap:15px}.automation-dialog-actions{padding:13px 18px}.automation-dialog-actions .button{flex:1;min-width:0}.automation-form-progress small{font-size:.66rem}.automation-action-content{grid-template-columns:1fr}.automation-action-order{margin-top:22px}.automation-sequence>header{align-items:stretch;flex-direction:column}.automation-sequence>header .button{width:100%}}
@media(max-width:430px){.automation-toolbar{display:grid;grid-template-columns:1fr}.automation-toolbar select{width:100%}.automation-flow-main{grid-template-columns:36px minmax(0,1fr)}.automation-flow-icon{width:36px;height:36px}.automation-flow-actions{grid-template-columns:1fr}.automation-flow-actions .button:last-child{grid-column:auto}.automation-dialog{width:100vw;max-height:100dvh;border-radius:0}.automation-dialog-surface{min-height:100dvh;max-height:100dvh}.automation-dialog-header{padding:17px 15px 14px}.automation-dialog-body,.automation-detail-body{padding:16px 15px}.automation-dialog-actions{display:grid;grid-template-columns:1fr 1fr;padding:12px 15px max(12px,env(safe-area-inset-bottom))}.automation-form-progress{gap:4px}.automation-form-progress li{gap:5px}.automation-form-progress small{padding-right:4px;font-size:.58rem}.automation-form-progress li:not(:last-child)::after{right:5px}.automation-activation{padding:12px}.automation-session-note{padding:12px}}

@media (max-width: 1180px) {
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .inbox-template-fields { grid-template-columns:1fr; }
  .inbox-window { align-items:flex-start; flex-direction:column; }
}
@media (max-width: 900px) {
  .inbox-shell { grid-template-columns:270px minmax(0,1fr); }
  .inbox-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .inbox-chat-head { align-items:flex-start; }
  .inbox-chat-controls { align-items:flex-end; flex-direction:column; }
  .meta-choice-grid { grid-template-columns:1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .demo-grid > .panel:last-child { grid-column: auto; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-story { min-height: 300px; padding: 34px; }
  .auth-story h1 { font-size: 2.5rem; }
  .auth-story footer { display: none; }
  .signup-services { grid-template-columns: 1fr; }
  .portal-layout { grid-template-columns: 1fr; }
  .portal-main { grid-column: 1; }
  .sidebar { transform: translateX(-105%); transition: transform .2s ease; box-shadow: 10px 0 30px rgba(0,0,0,.25); }
  body.nav-open .sidebar { transform: translateX(0); }
  body.nav-open::after { content: ""; position: fixed; z-index: 20; inset: 0; background: rgba(0,0,0,.48); }
  .menu-toggle { display: block; }
  .wizard-layout { grid-template-columns: 1fr; }
  .wizard-side { position: static; height: auto; padding: 22px; }
  .wizard-side h1, .wizard-side > p { display: none; }
  .wizard-steps { grid-template-columns: repeat(6,1fr); margin-top: 20px; }
  .wizard-steps li { justify-content: center; padding: 4px; }
  .wizard-steps li span:last-child { display: none; }
  .hours-row { grid-template-columns: 100px 1fr 1fr auto; }
  .hours-row .break-time { display: none; }
  .meta-welcome { grid-template-columns: 1fr; }
  .meta-details { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .meta-template-head{align-items:stretch;flex-direction:column}.meta-template-head .header-actions{justify-content:flex-start}
}
@media (max-width: 640px) {
  :root { font-size: 15px; }
  .auth-story { min-height: 240px; }
  .auth-story h1 { font-size: 2rem; }
  .auth-story p { font-size: .96rem; }
  .auth-benefits { display: none; }
  .auth-panel { padding: 18px; }
  .auth-card { padding: 25px 21px; }
  .topbar { padding: 10px 14px; }
  .account-copy, .notification { display: none; }
  .page { padding: 24px 16px 44px; }
  .page-header { align-items: start; flex-direction: column; }
  .header-actions, .header-actions .button { width: 100%; }
  .metric-grid, .cards, .settings-list, .form-grid, .radio-cards { grid-template-columns: 1fr; }
  .metric { min-height: 116px; }
  .hero-state { grid-template-columns: 1fr; text-align: center; }
  .hero-icon { margin: 0 auto; }
  .checklist li { grid-template-columns: 28px minmax(0,1fr); }
  .checklist li .button { grid-column: 2; justify-self: start; }
  .wizard-content { padding: 30px 16px; }
  .wizard-actions { flex-wrap: wrap; }
  .wizard-actions .button { flex: 1 1 130px; }
  .hours-row { grid-template-columns: 1fr 1fr; }
  .hours-row strong { grid-column: 1 / -1; }
  .hours-row label { justify-self: end; }
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions .button { width: 100%; }
  .meta-help { display: block; margin: 14px 0 0; }
  .meta-details { grid-template-columns: 1fr; }
  .meta-template-form-grid{grid-template-columns:1fr;padding:18px}.meta-template-form-grid .span-2{grid-column:auto}.meta-template-row{align-items:flex-start;flex-direction:column}.meta-template-row .button{width:100%}
  .inbox-shell { min-height:0; grid-template-columns:1fr; }
  .inbox-list { max-height:260px; overflow-y:auto; border-right:0; border-bottom:1px solid var(--line); }
  .inbox-chat { min-height:520px; }
  .inbox-bubble { max-width:88%; }
  .inbox-email-head,.inbox-email-compose-head { align-items:flex-start; flex-direction:column; }
  .inbox-email-head time,.inbox-email-compose-head > span { text-align:left; white-space:normal; }
  .inbox-email-head-actions { width:100%; align-items:stretch; }
  .inbox-email-compose-actions { align-items:stretch; flex-direction:column-reverse; }
  .inbox-email-compose-actions .button { width:100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media (forced-colors: active) { .status-pill, .checkmark { border: 1px solid currentColor; } }
.marketing-hero{align-items:center;padding:clamp(22px,3vw,34px);border:1px solid #d8e7e3;border-radius:18px;background:linear-gradient(125deg,#f0faf7 0%,#fff 58%,#fff5da 100%);box-shadow:0 10px 30px rgba(18,61,56,.06)}
.marketing-hero-actions{display:flex;flex-wrap:wrap;gap:10px;flex:0 0 auto}
.marketing-metrics{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));margin-bottom:8px}
.marketing-metrics .metric{min-height:112px;padding:17px}
.marketing-metrics .metric strong{margin:8px 0 3px;font-size:1.45rem}
.marketing-tabs{position:sticky;z-index:9;top:0;max-width:100%;display:flex;gap:6px;overflow-x:auto;margin:18px 0 22px;padding:8px;border:1px solid var(--line);border-radius:13px;background:rgba(255,255,255,.96);box-shadow:0 7px 22px rgba(18,61,56,.06);scrollbar-width:thin}
.marketing-tabs button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;flex:1 0 auto;border:0;border-radius:9px;background:transparent;padding:9px 14px;font:inherit;font-weight:750;color:#52635f;cursor:pointer;white-space:nowrap}
.marketing-tabs button span{width:23px;height:23px;display:grid;place-items:center;border-radius:50%;background:#edf3f1;color:#52635f;font-size:.72rem}
.marketing-tabs button:hover{background:#f3f7f6;color:var(--brand)}
.marketing-tabs button:focus-visible{outline:3px solid rgba(12,102,91,.2);outline-offset:1px}
.marketing-tabs button.active{background:var(--brand);color:#fff;box-shadow:0 5px 12px rgba(12,102,91,.18)}
.marketing-tabs button.active span{background:#fff3ce;color:#805600}
.marketing-section[hidden]{display:none}
.marketing-grid{display:grid;grid-template-columns:minmax(320px,.8fr) minmax(420px,1.2fr);gap:18px;align-items:start}
.marketing-grid,.marketing-grid>*{min-width:0}
.marketing-crm-grid{grid-template-columns:minmax(390px,.9fr) minmax(480px,1.1fr)}
.marketing-panel-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}
.marketing-panel-heading>div{min-width:0}
.marketing-panel-heading h2{margin:4px 0 6px}
.marketing-panel-heading p{max-width:590px;margin:0;color:var(--muted);line-height:1.5}
.marketing-download{flex:0 0 auto}
.marketing-csv-rules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:0 0 16px}
.marketing-csv-rules div{min-width:0;padding:11px 12px;border:1px solid #e0e9e7;border-radius:10px;background:#f8fbfa}
.marketing-csv-rules strong,.marketing-csv-rules span{display:block}
.marketing-csv-rules strong{margin-bottom:4px;color:#173f3a;font-size:.77rem}
.marketing-csv-rules span{color:var(--muted);font-size:.76rem;line-height:1.35}
.marketing-csv-rules code{padding:1px 4px;border-radius:4px;background:#e8f1ef;color:#174f48;font-size:.72rem}
.marketing-file-drop{position:relative;min-height:112px;display:grid;place-items:center;align-content:center;gap:3px;padding:16px;border:2px dashed #9fbeb8;border-radius:12px;background:#f6fbfa;color:var(--brand);text-align:center;cursor:pointer;transition:border-color .18s,background .18s}
.marketing-file-drop:hover,.marketing-file-drop:focus-within{border-color:var(--brand);background:#eaf6f3}
.marketing-file-drop>span{font-size:1.55rem;line-height:1}
.marketing-file-drop small{color:var(--muted);font-weight:500}
.marketing-file-drop input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.marketing-csv-editor{max-width:100%;overflow:hidden;margin-top:13px;border:1px solid var(--line);border-radius:10px;background:#fff}
.marketing-csv-editor summary{padding:12px 14px;color:#27504b;font-weight:700;cursor:pointer}
.marketing-csv-editor .field{margin:0;padding:0 14px 14px}
.marketing-csv-editor textarea{width:100%;max-width:100%;min-height:170px;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.77rem;line-height:1.5;white-space:pre;resize:vertical}
.marketing-csv-status{display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px;align-items:center;margin:13px 0;padding:11px 13px;border:1px solid #dae5e2;border-radius:10px;background:#f7faf9}
.marketing-csv-status>span{width:31px;height:31px;display:grid;place-items:center;border-radius:50%;background:#dfeae7;color:#345b55;font-weight:850}
.marketing-csv-status strong,.marketing-csv-status small{display:block}
.marketing-csv-status small{margin-top:2px;color:var(--muted)}
.marketing-csv-status.loading>span{animation:marketing-pulse 1s infinite alternate}
.marketing-csv-status.valid{border-color:#a8d7ba;background:#edf9f1}.marketing-csv-status.valid>span{background:var(--success);color:#fff}
.marketing-csv-status.error{border-color:#efbbb5;background:#fff3f1}.marketing-csv-status.error>span{background:#b53b31;color:#fff}
.marketing-csv-status.selected{border-color:#b6d3cd;background:#f1f9f7}
.marketing-import-actions{display:flex;justify-content:flex-end;gap:10px}
.marketing-import-actions .button{min-width:150px}
.marketing-import-actions .button:disabled{cursor:not-allowed;opacity:.48}
.marketing-contacts-panel .panel-header p{margin:0;color:var(--muted);font-size:.82rem}
.marketing-empty{display:grid;gap:4px;padding:30px 10px;color:var(--muted);text-align:center}
@keyframes marketing-pulse{to{opacity:.4;transform:scale(.9)}}
.marketing-cards{display:grid;gap:12px}
.marketing-cards>article{border:1px solid #dbe5e2;border-radius:10px;padding:14px;background:#fff}
.marketing-card-title{display:flex;align-items:center;justify-content:space-between;gap:12px}
.marketing-cards code{display:block;max-width:100%;overflow:auto;font-size:11px;color:#52635f;white-space:nowrap}
.marketing-cards small,.data-table small{display:block;color:#667872;margin-top:4px}
.marketing-event-grid{display:flex;gap:12px;flex-wrap:wrap;margin-top:12px}
.marketing-event-grid span{display:grid;min-width:120px;padding:14px;border:1px solid #dbe5e2;border-radius:10px;color:#667872}
.marketing-event-grid strong{font-size:22px;color:#123d38}
.marketing-guide{margin-top:20px}
.marketing-conversion{margin-top:18px}
.marketing-schedule{margin-top:12px;padding-top:10px;border-top:1px solid #e5ecea}
.marketing-schedule summary{cursor:pointer;font-weight:700;color:#0c665b}
.marketing-schedule form{margin-top:12px}
.table-scroll{overflow:auto}
@media(max-width:1100px){.marketing-grid,.marketing-crm-grid{grid-template-columns:1fr}.marketing-contacts-panel{margin-top:0!important}.marketing-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){
  .marketing-hero{align-items:flex-start;padding:22px 18px}.marketing-hero-actions,.marketing-hero-actions .button{width:100%}
  .marketing-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.marketing-metrics .metric{min-height:96px;padding:14px}
  .marketing-tabs{margin-inline:-4px}.marketing-tabs button{flex:0 0 auto;padding-inline:12px}
  .marketing-panel-heading{display:grid}.marketing-download{width:100%}
  .marketing-csv-rules{grid-template-columns:1fr}.marketing-import-actions{display:grid}.marketing-import-actions .button{width:100%}
  .marketing-contacts-table thead{display:none}.marketing-contacts-table,.marketing-contacts-table tbody,.marketing-contacts-table tr,.marketing-contacts-table td{display:block;width:100%}
  .marketing-contacts-table tr{margin-bottom:12px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#fff}
  .marketing-contacts-table td{display:grid;grid-template-columns:112px minmax(0,1fr);gap:10px;padding:8px 0!important;border:0!important;text-align:left}
  .marketing-contacts-table td::before{content:attr(data-label);color:var(--muted);font-size:.73rem;font-weight:750}
  .marketing-contacts-table td[colspan]{display:block}.marketing-contacts-table td[colspan]::before{display:none}
  .marketing-contacts-table .button{width:100%}
}
