#whatsapp-status-view { max-width: 1320px; margin-inline: auto; --status-muted: #675a55; }
.dark #whatsapp-status-view { --status-muted: #c5b5b0; }
#whatsapp-status-view [hidden] { display: none !important; }
.whatsapp-menu-alert { margin-left: auto; font-size: 11px; font-weight: 700; background: #fbe8e5; color: #85372f; padding: 3px 6px; border-radius: 6px; }
.status-toolbar, .status-editor-heading, .status-pagination, .status-row-heading, .status-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.status-toolbar { justify-content: space-between; margin-block: 20px 12px; }
.status-toolbar label { display: flex; align-items: center; gap: 12px; }
.status-help, .status-fields small { color: var(--status-muted); font-size: 13px; line-height: 1.5; max-width: 75ch; }
.status-compose { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 40px; margin-top: 24px; align-items: start; }
.status-fields { display: grid; gap: 20px; }
.status-fields label { display: grid; gap: 7px; font-weight: 600; }
.status-fields .check-row { display: flex; align-items: center; gap: 8px; }
.status-fields input:not([type=checkbox]), .status-fields select, .status-fields textarea { width: 100%; }
.status-fields fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin: 0; display: grid; gap: 14px; min-width: 0; }
.status-fields legend { font-weight: 700; padding-inline: 6px; }
.status-fields small { font-weight: 400; }
.status-weekdays { display: flex; gap: 10px; flex-wrap: wrap; }
.status-weekdays label { display: flex; flex-direction: row; align-items: center; gap: 5px; }
.status-preview-area { position: sticky; top: 24px; }
.status-preview-area h3 { margin-top: 0; }
.status-preview { width: 100%; aspect-ratio: 9/16; border-radius: 16px; background: #185c43; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; overflow: hidden; }
.status-preview p { white-space: pre-wrap; overflow-wrap: anywhere; text-align: center; margin: 0; font-size: 18px; max-height: 100%; overflow-y: auto; }
.status-preview img, .status-preview video { width: 100%; max-height: 80%; object-fit: contain; }
.status-preview img + p, .status-preview video + p { font-size: 14px; padding-top: 12px; }
.status-editor-heading { justify-content: space-between; margin-top: 24px; }
.status-contacts { max-height: 240px; overflow-y: auto; margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
.status-contacts label { padding: 9px 4px; font-weight: 400; }
.status-row { padding-block: 20px; border-bottom: 1px solid var(--line); }
.status-row-heading { justify-content: space-between; }
.status-row h2 { font-size: 17px; margin: 0; overflow-wrap: anywhere; }
.status-row p { line-height: 1.5; }
.status-row details { margin-block: 12px; }
.status-row summary { cursor: pointer; font-weight: 600; color: var(--admin-ink); }
.status-detail { padding-top: 12px; max-width: 640px; }
.status-detail p { white-space: pre-wrap; overflow-wrap: anywhere; }
.status-detail img, .status-detail video { display: block; max-width: 280px; max-height: 360px; }
.status-badge { font-size: 13px; font-weight: 600; background: #edf1ee; color: #34463b; padding: 5px 10px; border-radius: 6px; }
.status-badge[data-state=SENT] { background: #deeee3; color: #185c43; }
.status-badge[data-state=FAILED], .status-badge[data-state=UNCERTAIN] { background: #fbe8e5; color: #85372f; }
.status-pagination { justify-content: flex-end; margin-top: 20px; font-variant-numeric: tabular-nums; }
.status-empty { padding: 40px 0; color: var(--status-muted); }
#whatsapp-status-view :focus-visible { outline: 3px solid #397551; outline-offset: 3px; }
@media (max-width: 850px) { .status-compose { grid-template-columns: minmax(0,1fr); gap: 24px; } .status-preview-area { position: static; max-width: 280px; } }

.status-fields input:not([type=checkbox]), .status-fields select, .status-fields textarea, .status-toolbar select { font: inherit; color: var(--admin-ink); background: var(--admin-surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; min-height: 42px; }
.status-fields input::placeholder, .status-fields textarea::placeholder { color: var(--status-muted); opacity: 1; }
.status-fields input[type=checkbox] { accent-color: var(--wine); }
.status-preview ::selection { background: #fff; color: #185c43; }
