@charset "UTF-8";

@font-face {
    font-family: "Manrope";
    src: url("fonts/manrope-variable.ttf") format("truetype");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

/* Shared Callweb palette, type, surfaces, and controls. */
:root {
    color-scheme: light;
    --font-heading: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --ink: #30343b;
    --muted: #717984;
    --line: #e7e9ec;
    --paper: #ffffff;
    --canvas: #f7f8fa;
    --lime: #99cc33;
    --gray: #808080;
    --radius: 16px;
    --shadow: 0 2px 4px #18233402, 0 12px 36px #18233405;
}

* { box-sizing: border-box; }
html { min-width: 0; background: var(--canvas); }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: var(--canvas);
    font: 14px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .6; }
a { color: #50565f; text-decoration: none; }
a:hover { color: #30343b; }
svg { display: block; flex-shrink: 0; }
button svg, a svg { width: 18px; height: 18px; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid #7caa22;
    outline-offset: 4px;
}
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
    color: #343b43;
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: -.65px;
    line-height: 1.35;
    text-wrap: balance;
    overflow-wrap: anywhere;
}
h1 { font-size: 32px; letter-spacing: -1px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
small { font-size: 12px; }
.muted { color: var(--muted); }
.eyebrow {
    color: #78806e;
    font: 600 11px/1.5 var(--font-heading);
    letter-spacing: .06em;
    text-transform: uppercase;
}
.brand {
    display: inline-flex;
    align-items: center;
    color: var(--gray);
    text-decoration: none;
    white-space: nowrap;
}
.brand-name {
    display: inline-block;
    color: var(--gray);
    font-family: var(--font-heading);
    font-size: 46px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -2.4px;
    font-feature-settings: "kern";
}
.brand-name em { color: var(--lime); font-style: normal; font-weight: 700; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 7px;
    font: 550 13px/1.5 var(--font-heading);
    text-decoration: none;
    transition: background .15s, border-color .15s, box-shadow .15s;
}
.button-primary { color: #293713; background: var(--lime); border-color: var(--lime); }
.button-primary:hover, .button-primary:focus-visible {
    color: #23300e;
    background: #8fbe30;
    border-color: #8fbe30;
    box-shadow: 0 2px 5px #6e901b1a;
}
.button-secondary { color: #717782; background: #fff; border-color: #e0e3e7; }
.button-secondary:hover { color: var(--ink); background: #f5f6f8; border-color: #ccd1d8; }
.button-quiet {
    min-height: 34px;
    padding: 7px 11px;
    color: #5b7137;
    background: #f7faf1;
    border-color: #e5eadf;
    font-size: 12px;
}
.button-quiet:hover { color: #414a35; background: #f0f6e6; border-color: #b4cf7f; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.field { margin-bottom: 24px; }
.field-label, .field-header label {
    display: block;
    margin: 0 0 8px;
    color: #747a83;
    font: 500 13px/1.65 var(--font-heading);
}
.input, input[type="text"], input[type="password"], textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    padding: 10px 13px;
    border: 1px solid #dce0e5;
    border-radius: 7px;
    color: var(--ink);
    background: #fff;
    box-shadow: 0 1px 2px #18233403;
    transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; font-size: 13px; line-height: 1.8; }
input::placeholder, textarea::placeholder { color: #a0a5ad; opacity: 1; }
.input:focus, input[type="text"]:focus, input[type="password"]:focus, textarea:focus {
    outline: none;
    border-color: var(--lime);
    box-shadow: 0 0 0 3px #99cc331a;
}
.panel {
    max-width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
}
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.panel-heading h2 { margin: 0; }
.alert { margin-bottom: 20px; padding: 12px 15px; border: 1px solid; border-radius: 7px; font-size: 13px; overflow-wrap: anywhere; }
.alert-error { color: #a05d55; border-color: #efdbd8; background: #fcf6f5; }
.alert-success { color: #526e2c; border-color: #dfeacb; background: #f5f9ee; }
.alert-info { color: #53606c; border-color: #dce3e9; background: #f3f6f9; }
.page-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 16px 24px 22px;
    color: var(--muted);
    font-size: 11px;
    text-align: center;
}
.novatel-brand { display: block; flex: 0 0 96px; width: 96px; margin: 0; }
.novatel-brand:hover { opacity: .85; }
.novatel-logo, .page-footer img { display: block; width: 96px; max-width: 100%; height: auto; }
.custom-footer { width: min(100% - 64px, 1184px); margin: 12px auto 0; color: var(--muted); font-size: 11px; text-align: center; overflow-wrap: anywhere; }
.custom-footer img { max-width: 100%; height: auto; }

/* Shared full-width header, with the same content bounds as Callweb. */
.app-header, .workspace-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner, .workspace-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: min(100% - 64px, 1184px);
    min-height: 84px;
    margin: 0 auto;
    padding: 16px 0;
}
.header-account { display: flex; align-items: center; justify-content: flex-end; gap: 14px; min-width: 0; }
.account-pill { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: #777d85; font-size: 13px; }
.account-pill span:last-child { overflow-wrap: anywhere; }
.user-dot { width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: var(--lime); }
.header-logout { min-height: 30px; padding: 4px 10px; border-radius: 6px; font: 12px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; white-space: nowrap; }
.header-logout:hover { color: #465039; background: #f7faf1; border-color: #b5cf87; }
.app-shell { min-height: 100vh; }
.workspace { width: 100%; min-width: 0; }
.workspace-content { width: min(100% - 64px, 1184px); margin: 32px auto 0; }
.page-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.page-intro h1 { margin: 0; font-size: clamp(25px, 2.6vw, 32px); }
.page-intro h1::after, .auth-panel h1::after, .upload-card h1::after {
    content: "";
    display: block;
    width: 28px;
    height: 3px;
    margin-top: 15px;
    border-radius: 2px;
    background: var(--lime);
}
.page-intro .eyebrow { display: inline-block; margin-bottom: 8px; }
.page-intro p { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.intro-banner { position: relative; overflow: hidden; gap: 32px; min-height: 176px; padding: 30px 34px; border: 1px solid #e5eadd; border-radius: 20px; background: linear-gradient(110deg, #ffffff 35%, #f3f8e9 100%); }
.intro-right { display: flex; align-items: center; justify-content: flex-end; gap: 24px; flex: 1; min-width: 0; }
.intro-banner .intro-copy { margin: 0; max-width: 430px; color: #454d43; font: 500 clamp(23px, 2.3vw, 28px)/1.4 var(--font-heading); letter-spacing: -.8px; text-align: right; }
.intro-copy span { display: block; color: #718f36; }
.intro-banner .intro-title { flex-shrink: 0; margin: 0; color: #6c6c6e; font-size: 30px; font-weight: 500; line-height: 1.2; letter-spacing: -.75px; text-align: left; }
.intro-title span { display: inline-block; margin-left: .12em; color: inherit; }
.intro-banner .intro-title::after { display: none; }
.intro-visual { width: 156px; flex: 0 0 156px; }
.intro-visual svg { width: 100%; height: auto; }
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border: 1px solid #e5eadf;
    border-radius: 20px;
    color: #6e813f;
    background: #f8faf5;
    font-size: 11px;
    white-space: nowrap;
}
.status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); }

/* Message composer: preserve the existing form, import, and counter hooks. */
.compose-grid { display: grid; grid-template-columns: minmax(0, 1fr) 292px; align-items: start; gap: 24px; }
.compose-fields { display: grid; gap: 20px; min-width: 0; }
.compose-panel { padding: 26px 28px; }
.compose-panel .panel-heading { margin-bottom: 20px; }
.section-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.section-title h2 { font-size: 19px; letter-spacing: -.55px; }
.step-number {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border: 1px solid #e5eadf;
    border-radius: 7px;
    color: #6e922b;
    background: #f3f8e9;
    font: 600 12px/1 var(--font-heading);
}
.section-description { margin: 0 0 16px; color: var(--muted); font-size: 13px; }
.field-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.field-header label { margin: 0; }
.field-header .muted { font-size: 11px; }
.recipient-input { min-height: 108px; background: #fcfcfd; }
.message-input { min-height: 150px; }
.field-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; color: #848a93; font-size: 11px; }
.count-tag { padding: 2px 7px; border-radius: 5px; color: #737c87; background: #f4f5f7; font-size: 11px; }
.character-counter { display: flex; align-items: baseline; gap: 3px; }
.character-counter input[type="text"] {
    width: 30px;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    outline: none;
    color: #5b7137;
    background: transparent;
    box-shadow: none;
    font-size: 11px;
    text-align: right;
}
.progress-track { height: 3px; margin-top: 13px; border-radius: 3px; background: #edf2e5; overflow: hidden; }
.progress-fill { width: 0; height: 100%; background: var(--lime); transition: width .12s; }
.compose-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.compose-actions p { display: flex; align-items: center; gap: 7px; margin: 0; color: #848a93; font-size: 11px; }
.compose-actions p svg { width: 14px; height: 14px; }
.compose-actions .button { min-height: 44px; }
.compose-summary { display: grid; gap: 20px; position: sticky; top: 24px; }
.summary-panel, .account-panel { padding: 26px 24px; }
.account-panel { display: grid; grid-template-columns: 180px 240px minmax(0, 1fr); align-items: center; gap: 24px; margin-bottom: 24px; padding: 20px 24px; }
.account-panel-no-package { grid-template-columns: 180px minmax(0, 1fr); }
.account-panel-heading { display: flex; align-items: center; gap: 10px; }
.account-panel-heading h2 { margin: 0; color: #59616a; font-size: 16px; font-weight: 600; }
.account-panel-icon { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 8px; color: #858d96; background: #f5f6f8; }
.account-panel-icon svg { width: 17px; height: 17px; }
.account-panel .balance-block { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 0; padding: 14px 16px; }
.account-panel .balance-number { margin-top: 0; white-space: nowrap; }
.account-panel .account-limits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; margin: 0; padding: 0; border: 0; }
.account-panel .account-limits h3 { grid-column: 1 / -1; margin: 0; }
.account-panel .account-limit + .account-limit { margin-top: 0; }
.account-panel .account-limits-unavailable { grid-column: 1 / -1; }
.summary-icon { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 16px; border-radius: 8px; color: #6e922b; background: #f3f8e9; }
.summary-icon svg { width: 19px; height: 19px; }
.summary-panel h2 { margin: 0 0 7px; font-size: 18px; }
.summary-panel > p { margin-bottom: 20px; color: var(--muted); font-size: 12px; }
.summary-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; color: #848a93; font-size: 12px; }
.summary-row strong { color: #3b424c; font: 600 16px/1.5 var(--font-heading); font-variant-numeric: tabular-nums; }
.summary-sender-row strong { min-width: 0; max-width: 65%; overflow-wrap: anywhere; text-align: right; font-size: 14px; }
.summary-total-row { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--line); color: #59624f; font-weight: 600; }
.summary-total-row strong { color: #526e2c; font-size: 23px; }
.summary-rule { margin: 12px 0; border: 0; border-top: 1px solid var(--line); }
.balance-block { margin-top: 8px; padding: 16px; border: 1px solid #dfeacb; border-radius: 9px; background: #f5f9ee; }
.balance-label { display: flex; align-items: center; gap: 7px; color: #78806e; font-size: 11px; }
.balance-label svg { width: 14px; height: 14px; }
.balance-number { margin-top: 7px; color: #526e2c; font: 600 30px/1.3 var(--font-heading); letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.balance-number small { margin-left: 6px; color: #78806e; font-size: 12px; font-weight: 400; letter-spacing: 0; }
.summary-note { display: flex; gap: 8px; margin-top: 18px; color: #848a93; font-size: 11px; line-height: 1.8; }
.summary-note svg { width: 14px; height: 14px; margin-top: 3px; }
.account-limits { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.account-limits h3 { margin: 0 0 17px; color: #59616a; font-size: 12px; font-weight: 600; }
.account-limit + .account-limit { margin-top: 20px; }
.account-limit-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; color: #7d848c; font-size: 11px; }
.account-limit-count { white-space: nowrap; font-variant-numeric: tabular-nums; }
.account-limit-count strong { color: #59624f; font-weight: 600; }
.account-limit-track { height: 4px; margin-top: 9px; overflow: hidden; border-radius: 3px; background: #edf0e9; }
.account-limit-track span { display: block; height: 100%; border-radius: inherit; background: #99cc33; }
.account-limit p { margin: 7px 0 0; color: #969ca3; font-size: 10px; }
.account-limit p strong { color: #768268; font-weight: 600; font-variant-numeric: tabular-nums; }
.account-limit.is-exhausted .account-limit-track span { background: #c68c7e; }
.account-limit.is-exhausted p strong { color: #a05d55; }
.account-limits-unavailable { margin: 0; color: #a05d55; font-size: 11px; line-height: 1.8; }
.send-limit-feedback { margin: 0; }
.workspace .page-footer { margin-top: 24px; }
.send-result:empty { display: none; }
.send-result { margin-bottom: 24px; }

/* Message editor with automatic šumniki correction and global character limit. */
.message-editor { overflow: hidden; border: 1px solid #dce0e5; border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.message-editor:focus-within { border-color: var(--lime); box-shadow: 0 0 0 3px #99cc331a; }
.message-editor-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 17px; border-bottom: 1px solid #edf0f2; background: #fafbfc; }
.message-editor-toolbar label { margin: 0; color: #66717c; font: 500 12px/1.5 var(--font-heading); }
.message-editor-toolbar > span { color: #9299a1; font-size: 11px; white-space: nowrap; }
.message-editor textarea.message-input { min-height: 204px; margin: 0; padding: 19px 20px; border: 0; border-radius: 0; background: #fff; box-shadow: none; color: #39414b; font-size: 15px; line-height: 1.85; }
.message-editor textarea.message-input:focus { box-shadow: none; }
.message-editor-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; padding: 11px 16px; border-top: 1px solid #edf0f2; background: #fbfcfd; font-size: 11px; }
.message-counts { display: flex; align-items: center; justify-content: space-between; gap: 13px; width: 100%; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.message-sms-count { padding-left: 13px; border-left: 1px solid #dfe5d8; color: #59664a; white-space: nowrap; }
.message-sms-count strong { font-weight: 600; }
.message-character-count { color: #747d87; font-variant-numeric: tabular-nums; }
.message-character-count strong { color: #66717c; font-weight: 500; }
.message-editor .progress-track { height: 3px; margin: 0; border-radius: 0; }
.message-writing-area { position: relative; background: #fff; }
.message-editor .message-writing-area textarea.message-input {
    margin: 0;
    padding: 19px 20px;
    border: 0;
    font: 15px/1.85 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: normal;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-break: normal;
    tab-size: 8;
    text-align: left;
}
.message-editor .message-writing-area textarea.message-input { position: relative; z-index: 1; background: transparent; }
.message-info { display: flex; align-items: flex-start; gap: 9px; margin: 16px 0 0; padding: 13px 14px; border: 1px solid #e5eadf; border-radius: 9px; color: #75806a; background: #f8faf5; font-size: 12px; line-height: 1.8; }
.message-info svg { width: 16px; height: 16px; margin-top: 3px; flex-shrink: 0; }
.message-limit-feedback { margin: 10px 0 0; color: #9b6550; font-size: 12px; }
.send-confirmation { width: min(100%, 480px); margin: clamp(32px, 8vh, 80px) auto; padding: 40px 36px 32px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 36px #18233406; text-align: center; }
.send-confirmation-icon { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 24px; border: 1px solid #dcebbb; border-radius: 50%; background: #f3f8e9; color: #7ba124; }
.send-confirmation-icon svg { width: 28px; height: 28px; }
.send-confirmation h1 { margin: 0 0 14px; font-size: 29px; letter-spacing: -.9px; line-height: 1.3; }
.send-confirmation-account { margin: 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.send-confirmation-account span { margin-left: 6px; color: #505862; font-weight: 500; font-variant-numeric: tabular-nums; }
.send-confirmation-count { margin: 12px 0 0; color: #6b755e; font-size: 13px; }
.send-confirmation-return { margin: 28px 0 14px; color: var(--muted); font-size: 12px; }
.send-confirmation-progress { width: 120px; height: 3px; margin: 0 auto; overflow: hidden; border-radius: 3px; background: #edf2e5; }
.send-confirmation-progress::after { content: ""; display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--lime); transform: scaleX(0); transform-origin: left; animation: send-confirmation-return 2s linear forwards; }
@keyframes send-confirmation-return { to { transform: scaleX(1); } }
.send-confirmation noscript .button { margin-top: 22px; }
.send-result.send-success-notice { display: flex; align-items: center; gap: 12px; }
.send-success-check { display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; color: #5d8b1e; background: #edf6df; }
.send-success-check svg { width: 18px; height: 18px; }
.send-success-copy { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; }
.send-success-count { color: #64754f; font-size: 12px; font-variant-numeric: tabular-nums; }

/* Imports open over the current draft and keep keyboard focus inside the dialog. */
body.import-modal-open, body:has(.import-dialog[open]) { overflow: hidden; }
.import-dialog { position: fixed; width: min(720px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 40px); margin: auto; padding: 0; overflow: hidden; border: 1px solid #e1e5e9; border-radius: 18px; background: #fff; box-shadow: 0 24px 96px #1e283b33; }
.import-dialog::backdrop { background: #242e3f66; backdrop-filter: blur(4px); }
.import-dialog iframe { display: block; width: 100%; height: min(780px, calc(100dvh - 64px)); min-height: 260px; border: 0; background: #fff; }
.import-dialog-close { position: absolute; z-index: 3; top: 18px; right: 18px; display: grid; place-items: center; width: 34px; height: 34px; padding: 8px; border: 1px solid #e5e8ec; border-radius: 50%; color: #727b85; background: #fff; }
.import-dialog-close:hover { color: var(--ink); border-color: #ccd2d9; background: #f6f7f9; }
.import-dialog-close svg { width: 17px; height: 17px; }
.upload-page.is-embedded { background: #fff; }
.upload-page.is-embedded > .app-header, .upload-page.is-embedded > .page-footer, .upload-page.is-embedded > .custom-footer { display: none; }
.upload-page.is-embedded .upload-shell { width: 100%; margin: 0; }
.upload-page.is-embedded .upload-card { padding: 32px; border: 0; border-radius: 0; box-shadow: none; }
.upload-page.is-embedded .upload-heading { padding-right: 38px; }
.upload-page.is-embedded .upload-dropzone { min-height: 190px; padding: 22px 20px; }
.template-download { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding: 14px 16px; border: 1px solid #e7eaee; border-radius: 10px; background: #fafbfc; }
.template-download-icon { display: grid; place-items: center; width: 36px; height: 40px; flex-shrink: 0; border: 1px solid #e3e7dc; border-radius: 7px; color: #749345; background: #f4f8ec; }
.template-download-icon svg { width: 19px; height: 19px; }
.template-download-copy { flex: 1; min-width: 0; }
.template-download-copy strong { display: block; color: #5d6771; font-size: 12px; font-weight: 500; }
.template-download-copy small { display: block; margin-top: 2px; color: #8b939c; font-size: 11px; }
.template-download-link { color: #688438; font: 600 11px/1.5 var(--font-heading); white-space: nowrap; }
.template-download-link:hover { color: #405521; text-decoration: underline; }

/* Compact login screen follows Callweb's login form. */
.auth-page { display: flex; flex-direction: column; }
.auth-page .header-inner { justify-content: center; }
.auth-layout { width: min(100% - 64px, 404px); margin: clamp(48px, 11vh, 110px) auto 6px; }
.auth-panel { padding: 38px; }
.auth-panel .panel-heading { display: block; margin-bottom: 30px; }
.auth-panel h1 { margin: 0; font-size: 28px; letter-spacing: -.85px; }
.auth-panel .button-primary { width: 100%; margin-top: 6px; }
.auth-panel .field input { height: 44px; }
.auth-panel .alert { margin-bottom: 18px; padding: 12px; }

/* Format-aware file import, shared by recipient and message windows. */
.upload-page .header-inner { width: min(100% - 64px, 680px); min-height: 76px; }
.upload-page .brand-name { font-size: 38px; letter-spacing: -1.9px; }
.upload-shell { width: min(100% - 64px, 680px); margin: 28px auto 6px; }
.upload-card { padding: 32px; }
.upload-heading { margin-bottom: 26px; }
.upload-card .panel-heading { display: block; }
.upload-card .eyebrow { margin-bottom: 8px; }
.upload-card h1 { margin: 0 0 17px; font-size: 28px; letter-spacing: -.85px; }
.upload-description { margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.import-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 26px;
    padding: 0 0 22px;
    border-bottom: 1px solid var(--line);
    list-style: none;
    counter-reset: import-step;
}
.import-steps li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #9298a0;
    font: 500 11px/1.5 var(--font-heading);
    counter-increment: import-step;
}
.import-steps li::before {
    content: counter(import-step);
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    flex-shrink: 0;
    border: 1px solid #e7e9ec;
    border-radius: 50%;
    color: #8b9199;
    background: #f9fafb;
    font-size: 10px;
}
.import-steps .is-current { color: #505e40; }
.import-steps strong { display: block; font-weight: 600; }
.import-steps small { display: block; margin-top: 2px; color: #9298a0; font: 400 10px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.import-steps .is-current::before { color: #4c641f; border-color: #bcd68d; background: #eff6e2; }
.import-steps .is-complete { color: #6b7d4c; }
.import-steps .is-complete::before { content: "✓"; color: #526e2c; border-color: #dce9c4; background: #f3f8e9; }
.upload-dropzone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 236px;
    padding: 28px 20px;
    border: 1px dashed #cbd6bb;
    border-radius: 10px;
    color: var(--ink);
    background: #fafcf7;
    text-align: center;
    cursor: pointer;
    transition: background .15s, border-color .15s, box-shadow .15s;
}
.upload-dropzone:hover, .upload-dropzone.is-dragging { border-color: #91b94f; background: #f4f9eb; }
.upload-dropzone:focus-within { border-color: #7caa22; box-shadow: 0 0 0 3px #99cc331a; }
.upload-dropzone.is-dragging { box-shadow: inset 0 0 0 1px #91b94f; }
.upload-dropzone-icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 6px;
    border: 1px solid #e3ebd7;
    border-radius: 12px;
    color: #73983c;
    background: #f0f6e6;
}
.upload-dropzone-icon svg { width: 23px; height: 23px; }
.upload-dropzone-title { font: 600 15px/1.5 var(--font-heading); letter-spacing: -.3px; }
.upload-dropzone-copy { color: #848b91; font-size: 12px; }
.upload-dropzone .button { display: none; min-height: 36px; margin-top: 5px; padding: 7px 13px; font-size: 11px; }
.upload-dropzone.is-enhanced .button { display: inline-flex; }
.upload-dropzone .upload-file-input {
    display: block;
    max-width: 100%;
    margin-top: 10px;
    color: #747a83;
    font-size: 11px;
}
.upload-dropzone .upload-file-input::file-selector-button {
    margin-right: 10px;
    padding: 7px 12px;
    border: 1px solid #e0e3e7;
    border-radius: 6px;
    color: #5b626d;
    background: #fff;
    font: inherit;
    cursor: pointer;
}
.upload-dropzone.is-enhanced .upload-file-input {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    opacity: 0;
    cursor: pointer;
}
.upload-help { margin: 10px 0 20px; color: var(--muted); font-size: 11px; }
.import-supported { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 3px 15px; margin: 11px 0 20px; color: #9299a0; font-size: 10px; }
.import-supported p { margin: 0; }
.import-supported strong { margin-left: 4px; color: #7a866e; font-weight: 500; }
.selection-panel { margin-top: 22px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.selection-heading { display: flex; align-items: center; gap: 8px; padding: 12px 15px; border-bottom: 1px solid var(--line); background: #fafbfc; }
.selection-heading h2, .selection-heading h3 { margin: 0; font-size: 12px; letter-spacing: -.15px; }
#file-count { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 21px; padding: 0 6px; border-radius: 5px; color: #668a2d; background: #edf4e2; font-size: 10px; font-variant-numeric: tabular-nums; }
#clear-files { margin-left: auto; padding: 3px 0 3px 8px; border: 0; color: #868d94; background: transparent; font-size: 11px; }
#clear-files:hover { color: #465039; }
.file-list { max-height: 235px; margin: 0; padding: 0; list-style: none; overflow-y: auto; }
.file-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; }
.file-row + .file-row { border-top: 1px solid #f0f1f3; }
.file-name { min-width: 0; color: #59616a; font-size: 12px; overflow-wrap: anywhere; }
.file-row .file-name { flex: 1; }
.file-meta, .file-size { flex-shrink: 0; color: #9298a0; font-size: 10px; font-variant-numeric: tabular-nums; }
.file-remove { display: grid; place-items: center; width: 25px; height: 25px; flex-shrink: 0; padding: 0; border: 1px solid transparent; border-radius: 5px; color: #9a9fa5; background: transparent; font: 21px/1 sans-serif; }
.file-remove:hover { color: #9d6157; border-color: #efdbd8; background: #fcf6f5; }
.file-row-invalid { background: #fdf9f8; }
.file-row-invalid .file-meta { color: #a05d55; }
.upload-selection-footer { padding: 10px 15px; border-top: 1px solid var(--line); color: var(--muted); background: #fafbfc; font-size: 10px; }
.import-note { margin: 16px 0 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.upload-card .field > p { margin: 8px 0 0; font-size: 12px; }
.upload-actions { margin-top: 22px; }
.upload-actions .button-primary { gap: 10px; }
.upload-status { margin-top: 16px; }
.import-success { margin: 0 0 18px; padding: 13px 15px; border: 1px solid #dfeacb; border-radius: 8px; color: #526e2c; background: #f5f9ee; font-size: 12px; }
.import-success p { margin: 0; }
.import-file-summary { display: grid; gap: 7px; margin: 10px 0 0; padding: 0; list-style: none; }
.imported-file { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.imported-file .file-name { color: #6c795a; font-size: 11px; }
.imported-file .file-size { color: #8a967c; }
.preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0 9px; }
.preview-heading h2, .preview-heading label { margin: 0; color: #59616a; font: 600 13px/1.5 var(--font-heading); letter-spacing: -.2px; }
.preview-heading .muted { color: #8b929a; font-size: 10px; }
.upload-preview { min-height: 225px; margin: 0; padding: 15px 16px; border-color: #dce2d4; background: #fdfefb; font-size: 12px; line-height: 1.9; }
.preview-hint { margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.8; }

@media (max-width: 1000px) {
    .intro-right { gap: 14px; }
    .intro-visual { width: 112px; flex-basis: 112px; }
    .intro-banner .intro-title { font-size: 28px; }
    .compose-grid { grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; }
    .compose-panel { padding: 24px; }
    .summary-panel, .account-panel { padding: 24px 20px; }
    .account-panel { grid-template-columns: 160px 210px minmax(0, 1fr); gap: 20px; padding: 20px; }
    .account-panel-no-package { grid-template-columns: 160px minmax(0, 1fr); }
    .account-panel .account-limits { column-gap: 18px; }
    .panel-heading { gap: 10px; }
    .button-quiet { padding: 7px 9px; font-size: 11px; }
    .field-meta { font-size: 10px; }
    .character-counter input[type="text"] { font-size: 10px; }
}

@media (max-width: 850px) {
    .compose-grid { grid-template-columns: minmax(0, 1fr); }
    .compose-summary { position: static; }
    .account-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 16px 24px; }
    .account-panel-heading { grid-column: 1 / -1; }
    .account-panel-no-package .account-limits { grid-column: 1 / -1; }
    .summary-panel .summary-icon { display: none; }
    .summary-panel > p { margin-bottom: 12px; }
    .summary-panel .summary-row { display: inline-flex; width: 48%; padding-right: 20px; }
    .summary-panel .summary-total-row { display: flex; width: 100%; padding-right: 0; }
    .balance-block { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
    .balance-number { margin-top: 0; font-size: 26px; }
    .summary-note { margin-top: 14px; }
    .status-pill { display: none; }
}

@media (max-width: 700px) {
    .header-inner, .workspace-header-inner { width: calc(100% - 36px); min-height: 70px; padding: 16px 0; gap: 14px; }
    .brand-name { font-size: 34px; letter-spacing: -1.8px; }
    .header-account { flex-wrap: wrap; gap: 5px 10px; }
    .account-pill { gap: 6px; font-size: 11px; }
    .workspace-content { width: calc(100% - 36px); margin-top: 30px; }
    .account-panel { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .page-intro { margin-bottom: 24px; }
    .page-intro h1 { font-size: 26px; letter-spacing: -.8px; }
    .page-intro p { font-size: 12px; }
    .intro-banner { flex-direction: column; align-items: stretch; gap: 22px; padding: 26px 24px; }
    .intro-right { width: 100%; gap: 14px; padding-top: 20px; border-top: 1px solid #dfe8d1; }
    .intro-banner .intro-copy { font-size: 21px; letter-spacing: -.5px; }
    .intro-visual { width: 88px; flex-basis: 88px; }
    .intro-banner .intro-title { font-size: 26px; letter-spacing: -.7px; }
    .compose-panel { padding: 24px; border-radius: 10px; }
    .section-title { gap: 9px; }
    .section-title h2 { font-size: 18px; }
    .step-number { width: 27px; height: 27px; }
    .button-quiet { gap: 6px; font-size: 10px; }
    .button-quiet svg { width: 14px; height: 14px; }
    .field-header .muted { font-size: 10px; }
    .compose-actions { align-items: flex-start; }
    .compose-actions p { max-width: 160px; margin-top: 5px; line-height: 1.7; }
    .compose-actions .button { padding: 10px 15px; }
    .auth-layout { width: min(100% - 36px, 404px); }
    .auth-panel { padding: 30px; }
    .auth-panel h1 { font-size: 26px; }
    .upload-shell { width: calc(100% - 36px); margin-top: 30px; }
    .upload-page .header-inner { width: calc(100% - 36px); }
    .upload-card { padding: 26px 24px; }
    .upload-card h1 { font-size: 26px; }
}

@media (max-width: 420px) {
    .brand-name { font-size: 31px; }
    .account-pill { max-width: 126px; }
    .compose-panel { padding: 22px 18px; }
    .compose-panel .panel-heading { align-items: flex-start; flex-wrap: wrap; }
    .field-header, .field-meta { align-items: flex-start; flex-wrap: wrap; gap: 5px 12px; }
    .compose-actions { flex-direction: column; align-items: stretch; gap: 12px; }
    .compose-actions p { max-width: none; }
    .compose-actions .button { width: 100%; }
    .summary-panel .summary-row { width: 100%; padding-right: 0; }
    .message-editor-toolbar, .message-editor-footer { padding-right: 12px; padding-left: 12px; }
    .intro-banner { padding: 24px 20px; }
    .intro-banner .intro-title { font-size: 25px; }
    .intro-banner .intro-copy { font-size: 20px; }
    .intro-visual { width: 76px; flex-basis: 76px; }
    .message-editor-footer { flex-direction: column; align-items: stretch; gap: 9px; }
    .message-counts { justify-content: space-between; }
    .message-sms-count { padding-left: 0; border: 0; }
    .message-editor .message-writing-area textarea.message-input { padding: 13px 14px; }
    .send-confirmation { margin: 28px auto; padding: 30px 22px 26px; border-radius: 12px; }
    .send-confirmation h1 { font-size: 25px; letter-spacing: -.7px; }
    .import-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); border-radius: 14px; }
    .import-dialog iframe { height: calc(100dvh - 24px); }
    .import-dialog-close { top: 14px; right: 14px; }
    .upload-page.is-embedded .upload-card { padding: 26px 20px; }
    .template-download { flex-wrap: wrap; gap: 10px; padding: 12px; }
    .template-download-link { margin-left: 46px; }
    .balance-block { flex-wrap: wrap; gap: 8px; }
    .upload-page .brand-name { font-size: 31px; }
    .upload-shell { margin-top: 20px; }
    .upload-card { padding: 23px 18px; }
    .upload-card h1 { font-size: 24px; }
    .upload-heading { margin-bottom: 22px; }
    .import-steps { gap: 7px; margin-bottom: 22px; padding-bottom: 18px; }
    .import-steps li { align-items: flex-start; gap: 5px; font-size: 9px; line-height: 1.5; }
    .import-steps li::before { width: 21px; height: 21px; font-size: 9px; }
    .upload-dropzone { min-height: 224px; padding: 23px 13px; }
    .upload-dropzone-title { font-size: 13px; }
    .upload-dropzone-copy { font-size: 11px; }
    .selection-heading { gap: 6px; padding-right: 11px; padding-left: 11px; }
    .selection-heading h2, .selection-heading h3 { font-size: 11px; }
    #clear-files { font-size: 10px; }
    .file-row { flex-wrap: wrap; gap: 4px 8px; padding: 10px 11px; }
    .file-row .file-name { flex-basis: calc(100% - 34px); order: 0; }
    .file-row .file-remove { order: 1; }
    .file-row .file-meta { width: 100%; order: 2; }
    .upload-actions { align-items: stretch; flex-direction: column; gap: 10px; }
    .upload-actions .button { width: 100%; }
    .preview-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
    .send-confirmation-progress::after { animation: none; transform: none; }
    * { transition: none !important; scroll-behavior: auto !important; }
}
