:root {
  --red: #d91c12;
  --red-bright: #f21b23;
  --red-dark: #ab180f;
  --yellow: #ffd400;
  --ink: #202328;
  --muted: #697179;
  --line: #e2e5e7;
  --line-strong: #cbd0d4;
  --surface: #fff;
  --canvas: #f6f7f7;
  --soft: #f1f3f4;
  --shadow: 0 5px 22px rgba(20, 29, 38, .035);
  --radius: 12px;
  --radius-small: 8px;
  font-family: "Segoe UI", Inter, system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-size: 15px; line-height: 1.5; }
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: var(--red-dark); text-decoration: none; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid rgba(217, 28, 18, .35); outline-offset: 2px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.17; letter-spacing: -.045em; margin-bottom: .35rem; }
h2 { font-size: 1.22rem; line-height: 1.25; letter-spacing: -.025em; }
h3 { font-size: 1rem; }
.muted, .page-heading p, .form-section-head p, .help-text { color: var(--muted); }
.eyebrow, .section-kicker { color: var(--red); font-size: .69rem; font-weight: 800; letter-spacing: .115em; }
.section-kicker { color: #8b5450; }
.site-header { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header::before { content: ""; display: block; height: 3px; background: linear-gradient(90deg, var(--red) 0 78%, var(--yellow) 78% 100%); }
.header-inner { max-width: 1440px; min-height: 72px; margin: auto; padding: 0 34px; display: flex; align-items: center; gap: 30px; }
.brand, .login-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand-mark { display: inline-flex; align-items: center; gap: 3px; height: 37px; width: 37px; padding: 7px; background: var(--red); border-radius: 8px 8px 8px 2px; transform: skew(-4deg); }
.brand-mark span { display: block; width: 9px; height: 22px; background: var(--yellow); transform: skew(-13deg); }
.brand-mark span:last-child { height: 14px; margin-top: 8px; }
.brand-copy { display: grid; line-height: 1; gap: 4px; }
.brand-copy strong { font-size: 1.08rem; letter-spacing: .035em; font-weight: 850; }
.brand-copy small { font-size: .57rem; letter-spacing: .13em; font-weight: 750; color: var(--muted); }
.primary-nav { display: flex; align-items: stretch; gap: 4px; align-self: stretch; margin-left: 34px; }
.primary-nav a { display: inline-flex; align-items: center; position: relative; padding: 0 15px; color: #50575d; font-size: .89rem; font-weight: 600; white-space: nowrap; }
.primary-nav a:hover, .primary-nav a[aria-current=page] { color: var(--red-dark); }
.primary-nav a[aria-current=page]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; background: var(--red); border-radius: 3px 3px 0 0; }
.account-menu { margin-left: auto; display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.account-label { display: flex; align-items: center; gap: 9px; }
.account-avatar { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 50%; background: #fff1dc; color: var(--red-dark); font-weight: 800; }
.account-label strong, .account-label small { display: block; line-height: 1.2; }
.account-label strong { font-size: .8rem; }
.account-label small { font-size: .7rem; color: var(--muted); margin-top: 2px; }
.account-link { color: #60666c; font-size: .8rem; font-weight: 600; }
.account-link[aria-current=page] { color: var(--red); }
.account-menu form { margin: 0; }
.site-main { max-width: 1320px; margin: 0 auto; padding: 36px 34px 80px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.page-heading .eyebrow { margin-bottom: 8px; }
.page-heading p { margin: 0; }
.back-link { display: inline-block; font-size: .82rem; font-weight: 650; margin-bottom: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.button, button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 17px; border: 1px solid transparent; border-radius: var(--radius-small); background: var(--red); color: #fff; font-weight: 700; font-size: .84rem; line-height: 1.2; transition: background .15s, border-color .15s, color .15s, transform .15s; }
.button-primary, button.button-primary { color: #fff; background: var(--red); border-color: var(--red); }
.button-primary:hover, button.button-primary:hover { color: #fff; background: var(--red-dark); border-color: var(--red-dark); }
.button-secondary, button.button-secondary { color: #333b41; background: #fff; border-color: var(--line-strong); }
.button-secondary:hover, button.button-secondary:hover { color: var(--red-dark); border-color: var(--red); background: #fffafa; }
.button-danger, button.button-danger { color: var(--red-dark); background: #fff7f6; border-color: #f1c6c2; }
.button-danger:hover, button.button-danger:hover { color: #fff; background: var(--red-dark); }
button.button-ghost { background: transparent; border: 0; padding: 7px 4px; color: #626970; font-size: .8rem; font-weight: 650; }
button.button-ghost:hover { color: var(--red-dark); }
button:active, .button:active { transform: translateY(1px); }
button:disabled, .button:disabled { opacity: .48; cursor: not-allowed; transform: none; }
.button-icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; min-height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font-size: 1.35rem; line-height: 1; }
.button-icon:hover { border-color: var(--red); color: var(--red); background: #fffafa; }
label { display: block; font-weight: 650; color: #333a40; }
label small { display: block; color: var(--muted); font-size: .74rem; font-weight: 400; margin-top: 2px; }
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]), textarea, select { display: block; width: 100%; min-height: 43px; margin-top: 7px; padding: 10px 12px; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-small); color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; }
textarea { resize: vertical; min-height: 100px; }
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]):focus, textarea:focus, select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(217, 28, 18, .10); }
input::placeholder, textarea::placeholder { color: #989ea3; }
input[type=checkbox], input[type=radio] { accent-color: var(--red); width: 17px; height: 17px; flex: none; }
.alert { padding: 12px 15px; border-radius: 8px; border: 1px solid; font-size: .88rem; margin: 15px 0; }
.alert:empty { display: none; }
.alert-error { color: #9c211c; background: #fff4f2; border-color: #f3ccc8; }
.alert-success { color: #17624a; background: #eaf7f0; border-color: #c6e9d6; }
.alert-warning { color: #795715; background: #fff8e0; border-color: #f3e3a4; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; min-height: 25px; padding: 3px 9px; border-radius: 5px; background: #eef1f3; color: #56616a; font-size: .72rem; font-weight: 750; white-space: nowrap; }
.status-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-badge[data-status=connected], .status-badge[data-status=sent], .status-badge[data-status=success], .status-badge[data-status=active] { color: #177257; background: #e8f6ef; }
.status-badge[data-status=failed], .status-badge[data-status=error] { color: #b6372e; background: #fff0ee; }
.status-badge[data-status=missed] { color: #83582a; background: #fff1df; }
.status-badge[data-status=partial], .status-badge[data-status=paused], .status-badge[data-status=waiting_qr] { color: #986c0b; background: #fff6dc; }
.status-badge[data-status=pending], .status-badge[data-status=scheduled], .status-badge[data-status=connecting], .status-badge[data-status=running] { color: #365d9a; background: #edf3fb; }
.status-badge[data-status=cancelled], .status-badge[data-status=disconnected], .status-badge[data-status=archived] { color: #697179; background: #eef0f2; }
.empty-state { display: grid; justify-items: center; align-content: center; text-align: center; min-height: 220px; padding: 30px; color: var(--muted); }
.empty-icon { display: grid; place-items: center; width: 49px; height: 49px; border-radius: 12px; border: 1px solid #e4ded2; background: #fffbea; color: var(--red-dark); font-size: 1.4rem; margin-bottom: 15px; }
.empty-state strong { color: #394047; font-size: .95rem; }
.empty-state p { margin: 5px 0 14px; font-size: .86rem; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; vertical-align: middle; border-bottom: 1px solid #edf0f1; padding: 15px 20px; }
th { background: #fafbfb; color: #7b8389; font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; font-weight: 800; white-space: nowrap; }
tbody tr:hover { background: #fcfcfb; }
tbody tr:last-child td { border-bottom: 0; }
.table-scroll { overflow-x: auto; }
.table-card { overflow: hidden; }
.date-cell { white-space: nowrap; font-weight: 650; }
.date-cell small { display: block; color: var(--muted); font-size: .77rem; font-weight: 450; }
.row-title { color: var(--ink); font-weight: 700; }
.row-title:hover { color: var(--red); }
.row-subtitle { display: block; max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: .75rem; margin-top: 3px; }
.late-note { display: block; margin-top: 4px; color: #a16814; font-size: .73rem; }
.calendar-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, .72fr); gap: 18px; align-items: start; }
.calendar-panel { overflow: hidden; }
.calendar-top { display: flex; align-items: center; justify-content: space-between; padding: 23px 25px 20px; }
.calendar-top h2 { margin: 7px 0 0; font-size: 1.45rem; }
.calendar-controls { display: flex; gap: 7px; }
.calendar-scroll { padding: 0 18px 20px; }
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 5px; }
.weekday { text-align: center; padding: 9px 0 10px; color: #858b8f; font-size: .67rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.day { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-height: 88px; padding: 9px; border: 1px solid #edf0f1; border-radius: 7px; color: #484f54; background: #fff; text-align: left; font-weight: 700; transition: background .15s, border-color .15s; }
.day:hover { background: #fffaf4; border-color: #e8cd9d; }
.day.has-items { background: #fffcf3; border-color: #f2e5b8; }
.day.selected { background: #fff8df; border-color: #e4b625; box-shadow: inset 0 0 0 1px #e4b625; }
.day small { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; margin-top: auto; font-size: .67rem; color: #805f17; font-weight: 650; white-space: nowrap; }
.day .day-dots { display: flex; gap: 3px; margin-top: 7px; }
.day-dot, .legend-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #9ca4a9; }
.dot-scheduled { background: #4b78b6; }.dot-sent { background: #2d9b70; }.dot-failed { background: #d04940; }.dot-missed { background: #a7743d; }.dot-paused { background: #d39b20; }
.status-legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 15px 25px; border-top: 1px solid var(--line); color: var(--muted); font-size: .73rem; }
.status-legend span { display: flex; align-items: center; gap: 6px; }
.day-panel { padding: 23px; min-height: 290px; }
.day-panel h2 { margin: 7px 0 16px; font-size: 1.3rem; }
.day-panel .empty-state { min-height: 180px; }
.day-item { display: block; padding: 14px 0; border-top: 1px solid var(--line); }
.day-item-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.day-item time { color: var(--muted); font-size: .8rem; font-weight: 700; }
.day-item a { display: inline-block; font-weight: 750; color: var(--ink); margin-bottom: 3px; }
.day-item a:hover { color: var(--red); }
.day-item small { display: block; color: var(--muted); }
.calendar-panel { max-width: 1240px; margin: 0 auto; }
.day-dialog { width: min(920px, 96vw); max-width: 96vw; max-height: 90dvh; padding: 0; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 25px 80px rgba(18,24,28,.25); }
.day-dialog-shell { display: flex; flex-direction: column; height: min(760px, 90dvh); min-height: 0; background: #fff; }
.day-dialog-header { display: flex; align-items: center; gap: 16px; flex: none; padding: 19px 23px; border-bottom: 1px solid var(--line); }
.day-dialog-header h2 { margin: 4px 0 0; font-size: 1.35rem; overflow-wrap: anywhere; }
.day-dialog-header #day-close { margin-left: auto; font-size: 1.5rem; }
#day-dialog-error { margin: 12px 20px 0; flex: none; }
.day-dialog-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 23px 25px; overscroll-behavior: contain; }
.day-dialog-footer { display: flex; align-items: center; gap: 12px; flex: none; padding: 14px 23px; border-top: 1px solid var(--line); background: #fff; }
.day-dialog-footer #selected-count { margin-right: auto; }
.day-items { display: grid; gap: 8px; }
.day-items .day-item { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px; border: 1px solid var(--line); border-radius: 9px; }
.day-item-main { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.day-item-main .day-select { margin-top: 5px; flex: none; width: 17px; height: 17px; }
.day-item-main time { min-width: 46px; padding-top: 3px; color: var(--ink); font-size: .93rem; font-weight: 800; }
.day-item-info { min-width: 0; }
.day-item-title { display: block; min-height: 0; padding: 0; border: 0; color: var(--ink); background: none; font: inherit; font-size: .92rem; font-weight: 750; text-align: left; overflow-wrap: anywhere; }
.day-item-title:hover { color: var(--red); text-decoration: underline; }
.day-item-info small { margin-top: 4px; line-height: 1.4; }
.day-item-flags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; flex: none; }
.modal-detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-bottom: 20px; }
.modal-detail-field { padding: 12px; border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
.modal-detail-field strong { display: block; overflow-wrap: anywhere; font-size: .86rem; }
#day-detail-view > h3 { font-size: 1rem; margin: 22px 0 10px; }
.modal-message { padding: 17px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 9px; }
.modal-message h4 { margin: 0 0 8px; font-size: .9rem; }
.modal-message p { margin: 0; }
.modal-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px,1fr)); gap: 10px; margin-top: 12px; }
.modal-media-item { min-width: 0; }
.modal-media-item a, .modal-media-icon { display: grid; place-items: center; height: 90px; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: var(--soft); }
.modal-media-item img { width: 100%; height: 100%; object-fit: contain; }
.modal-media-icon { font-size: 1.5rem; color: var(--red-dark); }
.modal-media-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 5px; }
.modal-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; }
.cancel-dialog { width: min(460px, 92vw); max-width: 92vw; padding: 0; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 25px 80px rgba(18,24,28,.25); }
.cancel-dialog-content { padding: 24px; }
.cancel-dialog-content h2 { margin: 0 0 12px; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }
.history-tabs { display: flex; gap: 7px; margin: 0 0 18px; }
.history-tabs a { padding: 10px 15px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: #fff; font-size: .84rem; font-weight: 700; }
.history-tabs a[aria-current=page] { color: var(--red-dark); border-color: #e5aa80; background: #fff9f2; }
.inline-action { display: inline; margin-left: 8px; }
.inline-action button { padding: 3px 5px; min-height: 0; color: var(--red-dark); }
@media (max-width: 700px) { .day-dialog-shell { height: min(720px, 94dvh); }.day-dialog { max-height: 94dvh; }.day-dialog-header, .day-dialog-scroll, .day-dialog-footer { padding-left: 15px; padding-right: 15px; }.day-items .day-item { align-items: flex-start; flex-direction: column; }.day-item-flags { margin-left: 30px; }.modal-detail-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }.day-dialog-footer { flex-wrap: wrap; }.day-dialog-footer #selected-count { margin-right: 0; }.day-dialog-footer #cancel-selected { margin-left: auto; } }
.post-form { max-width: 1040px; }
.form-section { margin-bottom: 16px; overflow: hidden; }
.form-section-head { display: flex; align-items: flex-start; gap: 15px; padding: 22px 26px; border-bottom: 1px solid var(--line); }
.form-section-head h2 { margin: 1px 0 3px; }
.form-section-head p { margin: 0; font-size: .83rem; }
.step-number { display: grid; place-items: center; flex: none; width: 31px; height: 31px; border-radius: 7px; background: #fff5dc; color: #aa3c0c; font-size: .68rem; font-weight: 850; }
.form-section-body { padding: 24px 26px 27px; }
.form-section-body > label:not(.check-option):not(.radio-option) { margin-bottom: 19px; }
.form-section-body > label:last-child { margin-bottom: 0; }
.media-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.upload-field { display: flex; align-items: center; gap: 12px; flex: 1 1 350px; min-height: 75px; padding: 13px; border: 1px dashed #c7cdd0; border-radius: 9px; background: #fafbfb; cursor: pointer; }
.upload-field:hover { border-color: var(--red); background: #fffafa; }
.upload-symbol { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; background: #fff2ef; color: var(--red); font-size: 1.2rem; }
.upload-field strong, .upload-field small { display: block; }
.upload-field input { width: min(100%, 260px); font-size: .75rem; font-weight: 400; margin-top: 6px; }
.help-text { font-size: .8rem; margin: 12px 0 0; }
.attached-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px; margin: 25px 0 11px; }
.attached-heading h3 { margin: 0; font-size: .87rem; }
.attached-heading span { color: var(--muted); font-size: .77rem; }
.attached-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(165px,1fr)); gap: 12px; list-style: none; padding: 0; margin: 0; }
.attached-grid:empty::after { content: "Nenhuma mídia selecionada."; display: block; grid-column: 1/-1; padding: 16px; border: 1px dashed var(--line-strong); border-radius: 8px; color: var(--muted); font-size: .82rem; }
.message-list { display: grid; gap: 18px; margin-bottom: 18px; }
.message-editor { padding: 22px; border: 1px solid var(--line-strong); border-radius: 12px; background: #fff; }
.message-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.message-editor-head h3 { margin: 0; font-size: 1.1rem; }
.message-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.message-controls .button-ghost { color: var(--red-dark); }
.message-editor > label { display: block; margin-bottom: 5px; }
.paste-hint { margin: 0 0 3px; color: var(--muted); font-size: .8rem; }
.paste-feedback { min-height: 1.2em; margin: 0 0 15px; color: var(--ink); font-size: .8rem; }
.message-editor .attached-heading { margin: 0 0 12px; }
.message-editor .attached-heading h4 { margin: 0; }
.message-editor .message-media { margin-bottom: 16px; }
.message-media-actions { display: flex; gap: 5px; margin-top: auto; }
.message-media-actions button { min-height: 30px; padding: 4px 7px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); cursor: pointer; }
.message-media-actions .media-remove { color: var(--red-dark); background: #fff7f6; }
.message-editor button:disabled { opacity: .42; cursor: not-allowed; }
.batch-messages { display: grid; gap: 16px; margin: 16px 0; }
.batch-message-card .detail-content { padding: 0 24px 12px; }
.batch-message-card .history-media-grid { padding: 0 24px 24px; }
.batch-message-card > .help-text { padding: 0 24px 20px; }
.message-result-list { list-style: none; padding: 8px 0 0; margin: 8px 0 0; display: grid; gap: 7px; }
.message-result-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px; background: #fafbfb; border-radius: 7px; }
.message-result-list li > small { color: var(--muted); }
.message-result-list .delivery-error { flex-basis: 100%; margin: 0; }
.local-grid { margin-top: 13px; }.local-grid:empty { display: none; }.local-grid:empty::after { display: none; }
.attached-card { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 7px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.attached-art, .drive-art { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 4/3; overflow: hidden; background: var(--soft); border-radius: 6px; }
.attached-art img, .attached-art video, .drive-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.attached-fallback, .drive-fallback { font-size: 2rem; }
.attached-play, .drive-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: #fff; background: #17191bba; }
.attached-card strong, .drive-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .77rem; }
.attached-card small, .drive-file small { color: var(--muted); font-size: .72rem; }
.attached-card .remove-drive { margin-top: auto; min-height: 30px !important; padding: 4px 8px !important; color: var(--red-dark); background: #fff7f6; border-color: #f0d1cd !important; font-size: .73rem !important; }
.attached-card .remove-local { margin-top: auto; min-height: 30px; padding: 4px 8px; color: var(--red-dark); background: #fff7f6; border-color: #f0d1cd; font-size: .73rem; }
.check-option, .radio-option { display: flex; align-items: center; gap: 9px; margin: 0; font-weight: 600; cursor: pointer; }
.select-all { padding: 12px 14px; background: #faf8ef; border: 1px solid #f0e6c5; border-radius: 8px; margin-bottom: 18px; }
.group-heading { margin: 18px 0 9px; color: #7c8388; font-size: .69rem; letter-spacing: .1em; font-weight: 850; }
.group-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
.group-list .check-option, .checks .check-option { min-height: 42px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 7px; background: #fff; font-size: .84rem; }
.group-list .check-option:hover, .checks .check-option:hover { border-color: #e9bb9b; background: #fffaf5; }
.group-list .check-option:has(input:checked), .checks .check-option:has(input:checked), .radio-option:has(input:checked) { border-color: #e5aa80; background: #fff9f2; }
.schedule-choices { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.radio-option { align-items: flex-start; padding: 15px; border: 1px solid var(--line); border-radius: 8px; }
.radio-option input { margin-top: 2px; }
.radio-option strong, .radio-option small { display: block; }
.radio-option strong { font-size: .84rem; }
.radio-option small { color: var(--muted); font-size: .74rem; font-weight: 400; margin-top: 3px; }
.schedule-options { padding: 19px; margin-top: 15px; border-radius: 8px; background: #fafbfb; border: 1px solid var(--line); }
.schedule-options > label { max-width: 300px; }
.field-caption { font-size: .8rem; font-weight: 700; margin: 15px 0 8px; }
.checks { display: flex; flex-wrap: wrap; gap: 7px; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 10px 0 30px; color: var(--muted); font-size: .81rem; }
.settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; align-items: start; }
.integration-card { padding: 24px; }
.integration-head { display: flex; align-items: center; gap: 12px; min-height: 51px; }
.integration-head h2 { margin: 2px 0 0; }
.integration-head .status-badge { margin-left: auto; }
.integration-icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 9px; font-weight: 850; font-size: 1.1rem; }
.whatsapp-icon { color: #18815e; background: #e8f7ef; }.drive-icon { color: #b0580a; background: #fff3d4; }
.info-list { margin: 22px 0; border-top: 1px solid var(--line); }
.info-list div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.info-list dt { color: var(--muted); font-size: .79rem; flex: none; }
.info-list dd { margin: 0; text-align: right; font-size: .81rem; font-weight: 650; overflow-wrap: anywhere; }
.integration-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 21px; }
.integration-actions form { margin: 0; }
.technical-note { color: var(--muted); font-size: .76rem; line-height: 1.55; margin: 19px 0 0; }
.qr-panel { padding: 20px; border: 1px solid #f0e2ae; background: #fffdf4; border-radius: 9px; text-align: center; }
.qr-panel p { color: var(--muted); font-size: .82rem; margin: 5px 0 15px; }
#wa-qr { display: block; max-width: 100%; width: 260px; height: auto; margin: auto; padding: 10px; background: #fff; image-rendering: pixelated; }
.narrow { max-width: 540px; }
.form-card { padding: 25px; }.form-card label { margin-bottom: 20px; }
.detail-card { padding: 25px; margin-bottom: 17px; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(170px,1fr)); gap: 17px; padding-bottom: 19px; border-bottom: 1px solid var(--line); }
.detail-grid strong, .detail-label { display: block; }.detail-label { color: var(--muted); font-size: .72rem; margin-bottom: 5px; }.detail-grid strong { font-size: .89rem; }
.detail-content { padding-top: 20px; }.detail-content p { white-space: pre-wrap; margin: 0; }
.message-body { overflow-wrap: anywhere; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; }.group-tag { padding: 5px 9px; border-radius: 5px; background: #f3f4f4; color: #465058; font-size: .75rem; }
.media-history-card { margin-bottom: 17px; overflow: hidden; }
.media-history-card .card-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.media-history-card .card-heading .muted { font-size: .77rem; }
.history-media-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(180px,1fr)); gap: 12px; padding: 0 25px 25px; }
.history-media-item { display: flex; flex-direction: column; gap: 7px; min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 9px; }
.history-media-art { display: grid; place-items: center; width: 100%; aspect-ratio: 4/3; border: 0; border-radius: 6px; background: var(--soft); overflow: hidden; color: var(--red-dark); }
.history-media-art img { width: 100%; height: 100%; object-fit: contain; }
video.history-media-art { display: block; width: 100%; height: auto; max-height: 230px; background: #111; }
.media-type-icon { font-size: 2rem; }.media-unavailable-icon { font-size: 1.8rem; background: #fff8e7; color: #987123; }
.history-media-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; }
.history-media-item small { color: var(--muted); font-size: .72rem; overflow-wrap: anywhere; }
.history-media-item audio { display: block; width: 100%; height: 36px; }
.history-media-item .alert { margin: 0; font-size: .75rem; }
.media-download { margin-top: auto; font-size: .77rem; font-weight: 700; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 9px; padding-top: 22px; }
.detail-actions form { margin: 0; }
.executions-card { overflow: hidden; }.card-heading { padding: 23px 25px 15px; }.card-heading h2 { margin: 4px 0 0; }
.execution-block { border-top: 1px solid var(--line); scroll-margin-top: 90px; }.execution-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 25px; }
.execution-heading small { display: block; color: var(--muted); font-size: .73rem; }
.execution-times { display: flex; flex-wrap: wrap; gap: 22px; padding: 0 25px 16px; }
.execution-times strong { font-size: .82rem; }.execution-times .late-note { display: grid; margin: 0; color: #94670e; font-size: .76rem; }.execution-times .late-note span { color: #94670e; }
.delivery-list { border-top: 1px solid var(--line); }
.delivery-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 13px 25px; border-top: 1px solid #f0f2f2; }
.delivery-row:first-child { border-top: 0; }.delivery-row strong { font-size: .83rem; }.delivery-row small { display: block; margin-top: 3px; color: var(--muted); font-size: .72rem; }.delivery-error { color: #a72b24; font-size: .78rem; margin: 4px 0 0; overflow-wrap: anywhere; }
.execution-empty { padding: 0 25px 18px; color: var(--muted); font-size: .82rem; }
.error-page { max-width: 650px; padding-top: 12vh; }.error-page h1 { margin-top: 9px; }
.login-page { min-height: 100vh; background: #f7f7f5; }
.login-page::before { content: ""; display: block; height: 5px; background: linear-gradient(90deg,var(--red) 0 76%,var(--yellow) 76%); }
.login-layout { min-height: calc(100vh - 5px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 20px; }
.login-brand { margin-bottom: 29px; }.login-brand .brand-mark { width: 45px; height: 45px; padding: 10px; }.login-brand .brand-copy strong { font-size: 1.3rem; }.login-brand .brand-copy small { font-size: .63rem; }
.login-card { width: min(100%, 440px); padding: 36px; background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 15px 50px rgba(23,28,35,.06); }
.login-card h1 { font-size: 1.85rem; margin: 11px 0 7px; }.login-card p.muted { font-size: .87rem; line-height: 1.6; margin-bottom: 27px; }
.login-card label { margin-bottom: 2px; font-size: .82rem; }.login-card input { margin-top: 7px; }.login-submit { width: 100%; margin-top: 19px; min-height: 45px !important; justify-content: space-between !important; }
.login-foot { margin: 25px 0 0; color: #92999d; font-size: .72rem; }
.login-back { margin-top: 20px; color: #626970; font-size: .82rem; font-weight: 650; }
.login-back:hover { color: var(--red-dark); }
.login-back + .login-foot { margin-top: 14px; }
.hub-page { min-height: 100vh; display: flex; flex-direction: column; background: #f7f7f5; }
.hub-header { background: #fff; border-bottom: 1px solid var(--line); }
.hub-header::before { content: ""; display: block; height: 5px; background: linear-gradient(90deg,var(--red) 0 76%,var(--yellow) 76%); }
.hub-header-inner { width: min(100%, 1160px); min-height: 80px; margin: auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hub-header-label { color: #777e83; font-size: .78rem; font-weight: 650; }
.hub-main { width: min(100%, 1160px); flex: 1; margin: 0 auto; padding: clamp(65px, 10vh, 130px) 28px 70px; }
.hub-main .eyebrow { margin-bottom: 13px; }
.hub-main h1 { max-width: 690px; font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.1; }
.hub-intro { color: var(--muted); font-size: 1rem; margin: 16px 0 43px; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr)); gap: 20px; max-width: 1104px; }
.hub-card { min-height: 226px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 26px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(25, 30, 35, .04); transition: border-color .15s, box-shadow .15s, transform .15s; }
.hub-card:hover { color: var(--ink); border-color: #e7a09b; box-shadow: 0 15px 35px rgba(90, 32, 27, .09); transform: translateY(-2px); }
.hub-card-icon { display: grid; place-items: center; width: 53px; height: 53px; border-radius: 12px; background: #fff2ef; color: var(--red); }
.hub-bubble { position: relative; display: grid; place-items: center; width: 29px; height: 25px; border: 2px solid currentColor; border-radius: 8px; font-size: 13px; line-height: 1; }
.hub-bubble::after { content: ""; position: absolute; left: 3px; bottom: -5px; width: 7px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; background: #fff2ef; transform: skewY(-25deg); }
.hub-card-content { display: grid; gap: 7px; }
.hub-card-content strong { font-size: 1.2rem; line-height: 1.25; }
.hub-card-content > span:not(.hub-card-action) { color: var(--muted); font-size: .85rem; }
.hub-card-action { display: inline-flex; align-items: center; gap: 8px; margin-top: 13px; color: var(--red-dark); font-size: .82rem; font-weight: 750; }
.hub-card-action span { font-size: 1.1rem; line-height: 1; }
.hub-footer { width: min(100%, 1160px); margin: 0 auto; padding: 0 28px 25px; color: #92999d; font-size: .72rem; }
@media (max-width: 560px) { .hub-header-inner { min-height: 72px; padding: 0 20px; }.hub-main { padding: 62px 20px 55px; }.hub-intro { margin-bottom: 33px; }.hub-card { min-height: 216px; }.hub-footer { padding: 0 20px 24px; } }
dialog::backdrop { background: rgba(18,24,28,.53); }
#drive-dialog { width: min(1100px,94vw); height: min(850px,92vh); max-height: 92vh; padding: 0; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 25px 80px rgba(18,24,28,.22); }
.drive-shell { display: flex; flex-direction: column; min-height: 0; height: 100%; background: #fff; }
.drive-toolbar { flex: none; padding: 20px 23px 14px; border-bottom: 1px solid var(--line); }
.drive-head, .preview-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.drive-head h2 { font-size: 1.45rem; margin: 2px 0 0; }
.drive-sources { display: flex; flex-wrap: wrap; gap: 19px; border-bottom: 1px solid var(--line); margin: 19px 0 13px; }
.drive-sources button { position: relative; min-height: 0; border: 0; background: none; color: var(--muted); padding: 0 1px 12px; font-size: .82rem; font-weight: 650; }
.drive-sources button[aria-pressed=true] { color: var(--red-dark); }.drive-sources button[aria-pressed=true]::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--red); }
#drive-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 3px; min-height: 30px; color: #a2a8ad; font-size: .8rem; }
#drive-breadcrumb button { min-height: 0; border: 0; background: none; padding: 3px 5px; color: #687279; font-size: .8rem; font-weight: 650; }
#drive-breadcrumb button:hover, #drive-breadcrumb button[aria-current] { color: var(--red-dark); }
.drive-search { display: flex; align-items: center; gap: 8px; margin: 9px 0 13px; }.drive-search input { flex: 1; min-width: 0; margin: 0 !important; }
.drive-filters { display: flex; flex-wrap: wrap; gap: 6px; }.drive-filters button { border: 1px solid var(--line); background: #fff; color: #6c7479; border-radius: 5px; min-height: 28px; padding: 5px 10px; font-size: .75rem; font-weight: 650; }
.drive-filters button[aria-pressed=true] { background: #fff8e4; border-color: #e9cf7c; color: #86551a; }
.drive-content { flex: 1; min-height: 0; overflow: auto; padding: 19px 23px; background: #fcfcfc; }
#drive-error { white-space: pre-line; margin: 0 0 11px; }
.drive-folders { display: grid; grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); gap: 11px; margin-bottom: 14px; }.drive-folders:empty, .drive-files:empty { display: none; }
.drive-folder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 115px; padding: 13px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: #384149; overflow-wrap: anywhere; text-align: center; }
.drive-folder:hover { border-color: #e4c47a; background: #fffdf5; }.drive-folder span { font-size: 1.9rem; }.drive-folder strong { font-size: .8rem; }
.drive-files { display: grid; grid-template-columns: repeat(auto-fill,minmax(170px,1fr)); gap: 11px; }
.drive-file { min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 7px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.drive-file.is-selected { border-color: #e4b625; box-shadow: inset 0 0 0 1px #e4b625; background: #fffdf4; }
.drive-art { border: 0; padding: 0; color: var(--ink); }.drive-art:hover { background: #e9ebec; }
.drive-check { position: absolute; right: 8px; top: 8px; display: grid; place-items: center; width: 19px; height: 19px; border: 1px solid #bfc5c8; border-radius: 4px; background: #fff; color: var(--red-dark); font-weight: 800; }
.drive-card-actions { display: flex; gap: 5px; margin-top: auto; }.drive-card-actions button { flex: 1; min-height: 28px !important; padding: 4px !important; font-size: .71rem !important; color: var(--red-dark); background: #fff5f2; border-color: #f2d9d5 !important; }.drive-card-actions button:last-child { color: #505c63; background: #f4f5f5; border-color: var(--line) !important; }
.drive-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex: none; padding: 14px 23px; border-top: 1px solid var(--line); background: #fff; font-size: .8rem; font-weight: 650; }
#drive-progress { flex: 1; color: #227354; text-align: right; }.drive-loading, .drive-empty { padding: 40px 20px; text-align: center; color: var(--muted); font-size: .87rem; }.drive-loading::before { content: ""; display: block; width: 22px; height: 22px; margin: 0 auto 13px; border: 2px solid #ece2d0; border-top-color: var(--red); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
#drive-more { display: block; margin: 20px auto 0; }
#drive-preview { width: min(820px,92vw); max-height: 92vh; padding: 20px; border: 1px solid var(--line); border-radius: 11px; box-shadow: 0 25px 80px rgba(18,24,28,.22); }.preview-head { margin-bottom: 14px; }.preview-head h2 { margin: 0; font-size: 1.2rem; overflow-wrap: anywhere; }
#drive-preview-content { display: grid; place-items: center; min-height: 160px; max-height: 65vh; overflow: auto; background: var(--soft); border-radius: 7px; }#drive-preview-content img,#drive-preview-content video { display: block; max-width: 100%; max-height: 63vh; object-fit: contain; }#drive-preview-content audio { width: min(500px,90%); }#drive-preview-meta { color: var(--muted); font-size: .81rem; margin: 12px 0; }
@media (max-width: 1120px) { .header-inner { flex-wrap: wrap; gap: 0 22px; padding: 10px 24px 0; }.primary-nav { order: 3; width: 100%; margin: 6px 0 0; height: 42px; }.primary-nav a { padding: 0 12px; }.site-main { padding: 30px 24px 60px; } }
@media (max-width: 850px) { .calendar-layout, .settings-grid { grid-template-columns: 1fr; }.day-panel { min-height: 0; }.group-list { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .header-inner { padding: 9px 16px 0; }.brand-copy strong { font-size: .94rem; }.account-label { display: none; }.account-menu { gap: 11px; }.account-link { font-size: .74rem; }.primary-nav { overflow-x: auto; gap: 0; }.primary-nav a { padding: 0 10px; font-size: .79rem; }.site-main { padding: 25px 15px 55px; }.page-heading { align-items: flex-start; }.page-heading .button { white-space: nowrap; }.calendar-scroll { overflow-x: auto; padding: 0 12px 15px; }.calendar { min-width: 560px; }.day { min-height: 72px; }.status-legend { padding: 13px 16px; }.form-section-head, .form-section-body { padding: 18px; }.schedule-choices { grid-template-columns: 1fr; }.form-footer { align-items: stretch; flex-direction: column; }.form-footer button { width: 100%; }.integration-card { padding: 18px; }.integration-head { flex-wrap: wrap; }.integration-head .status-badge { margin-left: 0; }.drive-toolbar { padding: 14px; }.drive-content { padding: 14px; }.drive-bottom { padding: 12px 14px; flex-wrap: wrap; }.drive-bottom #drive-progress { order: 3; width: 100%; flex: auto; text-align: left; }#drive-dialog { width: 98vw; height: 96vh; max-height: 96vh; }.drive-files,.attached-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }.drive-folders { grid-template-columns: repeat(2,minmax(0,1fr)); }.drive-sources { gap: 11px; }.drive-sources button { font-size: .73rem; }.drive-search button { padding: 8px !important; }.login-card { padding: 27px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }
.profile-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: 16px; margin: 18px 0; }
.profile-grid > .empty-state { grid-column: 1 / -1; min-height: 80px; margin: 0; padding: 15px; border: 1px dashed var(--line); border-radius: 9px; }
.profile-card { padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.import-mode-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: -8px 0 24px; }
.import-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.import-stats .card { padding: 18px 22px; display: flex; flex-direction: column; gap: 3px; }
.import-stats strong { font-size: 1.7rem; color: var(--red-dark); }
.import-stats span { color: var(--muted); font-size: .88rem; }
.import-batch { margin: 18px 0; overflow: hidden; }
.import-batch-content { padding: 4px 22px 22px; }
.import-timing { display: flex; flex-direction: column; gap: 3px; margin: 12px 0 18px; }
.import-timing small { color: var(--muted); }
.import-message { border-top: 1px solid var(--line); padding: 18px 0; }
.import-batch-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.batch-media-list { display: grid; gap: 10px; margin-bottom: 12px; }
.batch-media-row { display: flex; align-items: end; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.batch-media-row label { flex: 1; min-width: 0; }
.batch-media-row input { width: 100%; }
@media (max-width: 620px) { .batch-media-row { align-items: stretch; flex-direction: column; } }
.import-message h3, .import-destinations h3 { font-size: .96rem; margin: 0 0 10px; }
.import-caption { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; margin: 0; }
.import-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: 12px; margin-top: 14px; }
.import-media-item { display: flex; flex-direction: column; gap: 5px; min-width: 0; font-size: .82rem; }
.import-media-item a, .import-media-icon { position: relative; display: grid; place-items: center; height: 105px; border: 1px solid var(--line); border-radius: 8px; background: #f6f7f8; overflow: hidden; }
.import-media-item img { width: 100%; height: 100%; object-fit: cover; }
.import-media-item strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.import-media-item small { color: var(--muted); }
.import-media-icon { font-size: 2rem; color: var(--red-dark); }
.import-play { position: absolute; right: 5px; bottom: 5px; background: #222b; color: white; border-radius: 5px; padding: 2px 5px; }
.import-destinations { border-top: 1px solid var(--line); padding-top: 18px; }
.import-confirm-card { padding: 22px; margin: 22px 0 12px; }
.import-confirm-card h2 { margin: 0 0 10px; }
.import-cancel { margin-bottom: 30px; }
@media (max-width: 620px) { .import-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .import-stats .card { padding: 12px; } .import-batch-content { padding: 4px 15px 18px; } }
.profile-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.profile-card-head h3 { margin: 0; font-size: 1.1rem; }
.profile-card .info-list { margin: 14px 0; }
