﻿
/* DREAM MOB PLATFORM — light skin over the canonical Dream Office core */
html.dream-platform-mode {
  --dm-bg:#f6f3ed; --dm-paper:#ffffff; --dm-paper-2:#fbfaf7; --dm-ink:#26231f;
  --dm-muted:#756f66; --dm-line:#e5dfd4; --dm-gold:#b59a6d; --dm-gold-2:#9f8355;
  --dm-danger:#b74646; --dm-shadow:0 12px 35px rgba(49,43,35,.08);
  --color-bg-dark:#f6f3ed; --color-surface:#ffffff; --color-surface-hover:#faf7f1;
  --color-gold:#b59a6d; --color-gold-hover:#9f8355; --color-text:#26231f; --color-danger:#b74646;
  --neon-gold:0 0 0 3px rgba(181,154,109,.12); --neon-card:0 10px 30px rgba(49,43,35,.07); --neon-danger:0 0 0 3px rgba(183,70,70,.10);
}
html.dream-platform-mode body { background:var(--dm-bg)!important; color:var(--dm-ink)!important; }
html.dream-platform-mode #loginContainer { background:linear-gradient(135deg,#f7f4ed 0%,#fff 55%,#eee8dc 100%)!important; }
html.dream-platform-mode .login-card { background:rgba(255,255,255,.96)!important; border:1px solid #d8cfbf!important; box-shadow:0 24px 80px rgba(53,43,28,.13)!important; }
html.dream-platform-mode .login-card img { content:url('logoDreamMob_preto_transp.png'); }
html.dream-platform-mode input, html.dream-platform-mode select, html.dream-platform-mode textarea { background:#fff!important; color:var(--dm-ink)!important; border-color:#ddd5c8!important; box-shadow:none!important; }
html.dream-platform-mode input:focus, html.dream-platform-mode select:focus, html.dream-platform-mode textarea:focus { border-color:var(--dm-gold)!important; box-shadow:0 0 0 3px rgba(181,154,109,.12)!important; }
html.dream-platform-mode .sidebar { background:#fff!important; border-right:1px solid var(--dm-line)!important; box-shadow:5px 0 28px rgba(45,39,30,.035)!important; }
html.dream-platform-mode .brand-zone { border-bottom:1px solid var(--dm-line)!important; background:#fff!important; }
html.dream-platform-mode .brand-zone img { content:url('logoDreamMob_preto_transp.png'); max-width:150px!important; }
html.dream-platform-mode .menu-item { color:#6f695f!important; border-left-color:transparent!important; }
html.dream-platform-mode .menu-item i { color:#9c9489!important; }
html.dream-platform-mode .menu-item:hover { background:#faf8f3!important; color:var(--dm-ink)!important; }
html.dream-platform-mode .menu-item.active { background:#f4efe5!important; color:var(--dm-gold-2)!important; border-left-color:var(--dm-gold)!important; text-shadow:none!important; }
html.dream-platform-mode .menu-item.active i { color:var(--dm-gold-2)!important; }
html.dream-platform-mode .platform-nav-label { display:block; padding:20px 20px 7px; font-size:10px; font-weight:700; letter-spacing:1.5px; color:#aaa297; text-transform:uppercase; }
html:not(.dream-platform-mode) .platform-only { display:none!important; }
html.dream-platform-mode .top-header { background:rgba(255,255,255,.95)!important; color:var(--dm-ink)!important; border-bottom:1px solid var(--dm-line)!important; box-shadow:0 3px 20px rgba(40,34,25,.035)!important; }
html.dream-platform-mode .tab-content { background:var(--dm-bg)!important; }
html.dream-platform-mode .metric-card, html.dream-platform-mode .chart-card, html.dream-platform-mode .kanban-column, html.dream-platform-mode .kanban-card,
html.dream-platform-mode .split-controls, html.dream-platform-mode .audit-dashboard-card, html.dream-platform-mode .chat-sidebar, html.dream-platform-mode .chat-main { background:#fff!important; color:var(--dm-ink)!important; border-color:var(--dm-line)!important; box-shadow:var(--dm-shadow)!important; }
html.dream-platform-mode .metric-card:hover, html.dream-platform-mode .metric-card.active-filter { background:#fff!important; box-shadow:0 16px 38px rgba(65,55,40,.12)!important; }
html.dream-platform-mode .metric-card h3, html.dream-platform-mode .metric-card p, html.dream-platform-mode .k-meta { color:var(--dm-muted)!important; }
html.dream-platform-mode .metric-card .value, html.dream-platform-mode .k-title { color:var(--dm-ink)!important; text-shadow:none!important; }
html.dream-platform-mode .chart-card, html.dream-platform-mode .dash-details-table td { border-color:var(--dm-line)!important; }
html.dream-platform-mode .dash-details-table th { color:var(--dm-gold-2)!important; border-bottom-color:var(--dm-gold)!important; }
html.dream-platform-mode .kanban-column { background:#f9f7f2!important; }
html.dream-platform-mode .kanban-header { background:#fff!important; color:#4f4942!important; text-shadow:none!important; border-bottom-color:#ded7ca!important; }
html.dream-platform-mode .kanban-card { background:#fff!important; }
html.dream-platform-mode .modal-overlay { background:rgba(35,31,25,.48)!important; }
html.dream-platform-mode .modal-card { background:#fff!important; color:var(--dm-ink)!important; border-color:#d9d1c4!important; box-shadow:0 28px 90px rgba(31,26,20,.2)!important; }
html.dream-platform-mode .modal-header, html.dream-platform-mode .modal-footer { background:#fbfaf7!important; border-color:var(--dm-line)!important; }
html.dream-platform-mode .modal-body, html.dream-platform-mode .modal-body p, html.dream-platform-mode .modal-body label { color:var(--dm-ink)!important; }
html.dream-platform-mode .form-section-title { color:var(--dm-gold-2)!important; border-color:var(--dm-line)!important; }
html.dream-platform-mode .btn-primary-gold { background:var(--dm-gold)!important; color:#fff!important; box-shadow:none!important; }
html.dream-platform-mode .btn-primary-gold:hover { background:var(--dm-gold-2)!important; transform:translateY(-1px)!important; box-shadow:0 9px 20px rgba(159,131,85,.2)!important; }
html.dream-platform-mode .btn-secondary { background:#eeeae2!important; color:#49443e!important; }
html.dream-platform-mode .btn-secondary:hover { background:#e3ded4!important; }
html.dream-platform-mode .btn-icon-link { color:#8a8379!important; }
html.dream-platform-mode .search-results { background:#fff!important; border-color:var(--dm-gold)!important; box-shadow:var(--dm-shadow)!important; }
html.dream-platform-mode .search-item { color:#605a52!important; border-color:var(--dm-line)!important; }
html.dream-platform-mode .search-item:hover { background:#f3eee5!important; color:#5a4930!important; }
html.dream-platform-mode .perm-check-container { background:#fff!important; color:#5d574f!important; border-color:var(--dm-line)!important; }
html.dream-platform-mode .track-order-section { display:block!important; border-top:1px solid #ded7cb!important; margin-top:18px!important; padding-top:16px!important; }
html.dream-platform-mode .track-order-title { color:var(--dm-gold-2)!important; }
html.dream-platform-mode #customAlertModal .modal-body p, html.dream-platform-mode #customPromptModal .modal-body p, html.dream-platform-mode #customConfirmModal .modal-body p { color:var(--dm-ink)!important; }
html.dream-platform-mode #cPromptInput { background:#fff!important;color:var(--dm-ink)!important;border-color:#d8d1c5!important; }

/* CMS */
.platform-cms-shell{max-width:1480px;margin:0 auto}.platform-cms-toolbar{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;margin-bottom:20px;flex-wrap:wrap}.platform-cms-title small{display:block;color:var(--dm-muted);font-size:.78rem;letter-spacing:.04em;margin-top:5px;font-weight:400}.platform-cms-actions{display:flex;gap:8px;flex-wrap:wrap}.dm-btn{border:1px solid #d8d0c3;background:#fff;color:#514b43;padding:10px 14px;border-radius:7px;cursor:pointer;font-size:.8rem;font-weight:600;transition:.2s}.dm-btn:hover{border-color:var(--dm-gold);color:var(--dm-gold-2)}.dm-btn.gold{background:var(--dm-gold);border-color:var(--dm-gold);color:#fff}.dm-btn.gold:hover{background:var(--dm-gold-2)}.dm-btn.dark{background:#2c2925;border-color:#2c2925;color:#fff}.dm-btn.danger{color:#a13e3e;border-color:#e5b8b8}.cms-grid{display:grid;grid-template-columns:minmax(320px,430px) minmax(0,1fr);gap:18px;align-items:start}.cms-list,.cms-editor,.cms-preview-card,.site-settings-card{background:#fff;border:1px solid var(--dm-line);border-radius:10px;box-shadow:var(--dm-shadow)}.cms-list{overflow:hidden}.cms-list-head{padding:16px 18px;border-bottom:1px solid var(--dm-line);display:flex;align-items:center;justify-content:space-between}.cms-search{max-width:190px!important;margin:0!important;padding:9px 11px!important}.cms-items{max-height:calc(100vh - 220px);overflow:auto}.cms-row{padding:14px 16px;border-bottom:1px solid #eee9df;cursor:pointer;display:grid;grid-template-columns:64px minmax(0,1fr) auto;gap:11px;align-items:center}.cms-row:hover,.cms-row.active{background:#faf7f1}.cms-thumb{width:64px;height:48px;border-radius:6px;object-fit:cover;background:#eee8dd}.cms-row-title{font-weight:650;font-size:.86rem;color:#302d29;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.cms-row-meta{color:#898278;font-size:.7rem;margin-top:4px}.cms-status{font-size:.65rem;padding:4px 7px;border-radius:999px;background:#eee8dd;color:#715e40}.cms-status.hidden{background:#eee;color:#777}.cms-editor{padding:20px}.cms-editor-empty{padding:50px 20px;text-align:center;color:#8a8378}.cms-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.cms-field.full{grid-column:1/-1}.cms-field label{display:flex;align-items:center;font-size:.75rem;font-weight:650;color:#625c54;margin-bottom:6px}.cms-help{display:inline-flex;width:16px;height:16px;border:1px solid #cbbca4;color:#9e865e;border-radius:50%;align-items:center;justify-content:center;margin-left:6px;font-size:10px;cursor:help;position:relative}.cms-help:hover:after{content:attr(data-help);position:absolute;z-index:999;left:20px;top:-6px;width:240px;background:#302c27;color:#fff;padding:8px 10px;border-radius:6px;font-size:11px;line-height:1.35;font-weight:400;box-shadow:0 8px 30px rgba(0,0,0,.2)}.cms-field input,.cms-field textarea,.cms-field select{margin:0!important}.cms-field textarea{min-height:96px;resize:vertical}.cms-image-zone{display:grid;grid-template-columns:1fr 140px;gap:12px;align-items:center}.cms-image-preview{width:140px;height:92px;object-fit:cover;border-radius:7px;background:#ede7dc;border:1px solid #ddd3c4}.cms-editor-footer{display:flex;justify-content:space-between;gap:10px;margin-top:18px;padding-top:16px;border-top:1px solid var(--dm-line)}.cms-live-preview{margin-top:18px;padding:0;overflow:hidden}.cms-preview-label{font-size:.7rem;text-transform:uppercase;letter-spacing:1.4px;color:#a08965;margin:0 0 7px}.preview-browser{background:#fff;border:1px solid var(--dm-line);border-radius:10px;overflow:hidden}.preview-browser-bar{height:31px;background:#f0ece5;display:flex;align-items:center;gap:6px;padding:0 11px}.preview-dot{width:7px;height:7px;border-radius:50%;background:#c9c0b3}.preview-content{display:grid;grid-template-columns:1.15fr .85fr;min-height:265px}.preview-content img{width:100%;height:100%;min-height:265px;object-fit:cover}.preview-copy{padding:28px;align-self:center}.preview-kicker{font-size:.65rem;color:#aa8c5d;letter-spacing:1.5px;text-transform:uppercase}.preview-copy h3{font-family:Georgia,'Times New Roman',serif;font-size:1.65rem;font-weight:400;margin:8px 0 10px;color:#292621}.preview-copy p{color:#746d63!important;line-height:1.6;font-size:.8rem}.cms-empty-list{padding:42px 18px;text-align:center;color:#8c857b;font-size:.82rem}.cms-upload-label{display:inline-flex;align-items:center;gap:7px}.platform-dashboard-note{background:linear-gradient(120deg,#fff,#f7f1e7);border:1px solid #ded4c5;border-left:4px solid var(--dm-gold);padding:14px 18px;border-radius:8px;margin:0 0 18px;color:#5a534a;font-size:.8rem}.site-settings-card{padding:22px;max-width:1000px}.settings-section-title{font-family:Georgia,serif;font-size:1.25rem;font-weight:400;margin:4px 0 16px;color:#302d29}.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.settings-grid .full{grid-column:1/-1}.settings-grid label{font-size:.74rem;font-weight:650;color:#625c54;display:block;margin-bottom:6px}.settings-grid input,.settings-grid textarea,.settings-grid select{margin:0!important}.settings-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px;padding-top:15px;border-top:1px solid var(--dm-line)}.reauth-card{max-width:420px!important}.reauth-copy{font-size:.83rem;line-height:1.55;color:#6f675d!important}.cms-toast{position:fixed;right:22px;bottom:22px;background:#2e2a25;color:#fff;padding:12px 16px;border-radius:8px;z-index:12000;box-shadow:0 12px 35px rgba(0,0,0,.18);font-size:.8rem;animation:cmsToastIn .22s ease}@keyframes cmsToastIn{from{transform:translateY(12px);opacity:0}to{transform:none;opacity:1}}
@media(max-width:1000px){.cms-grid{grid-template-columns:1fr}.cms-items{max-height:350px}.preview-content{grid-template-columns:1fr}.preview-content img{height:260px}.settings-grid{grid-template-columns:1fr}.settings-grid .full{grid-column:1}}
@media(max-width:720px){html.dream-platform-mode .tab-content{padding:16px!important}.platform-cms-toolbar{align-items:stretch}.platform-cms-actions{width:100%}.platform-cms-actions .dm-btn{flex:1;min-width:120px}.cms-form-grid{grid-template-columns:1fr}.cms-field.full{grid-column:1}.cms-image-zone{grid-template-columns:1fr}.cms-image-preview{width:100%;height:160px}.cms-row{grid-template-columns:55px minmax(0,1fr) auto}.cms-thumb{width:55px;height:44px}.preview-copy{padding:22px}.preview-copy h3{font-size:1.4rem}.site-settings-card{padding:16px}}

html.dream-platform-mode input,html.dream-platform-mode select,html.dream-platform-mode textarea{color-scheme:light!important}
html.dream-platform-mode [style*="background: #111"],html.dream-platform-mode [style*="background:#111"],html.dream-platform-mode [style*="background: #101010"],html.dream-platform-mode [style*="background:#101010"],html.dream-platform-mode [style*="background: #050505"],html.dream-platform-mode [style*="background:#050505"]{background:#fbfaf7!important;border-color:#ded6ca!important}
html.dream-platform-mode [style*="color:#ccc"],html.dream-platform-mode [style*="color: #ccc"],html.dream-platform-mode [style*="color:#bbb"],html.dream-platform-mode [style*="color: #bbb"],html.dream-platform-mode [style*="color:#aaa"],html.dream-platform-mode [style*="color: #aaa"]{color:#746d63!important}
html.dream-platform-mode [style*="border:1px solid #333"],html.dream-platform-mode [style*="border: 1px solid #333"]{border-color:#ded6ca!important}
html.dream-platform-mode .chat-container,html.dream-platform-mode .chat-messages,html.dream-platform-mode .chat-input-area{background:#f4f0e8!important;color:#2d2924!important}
html.dream-platform-mode .msg-bubble{box-shadow:0 1px 3px rgba(40,34,27,.08)!important}
html.dream-platform-mode .wa-chat-row{border-color:#ece5da!important}
html.dream-platform-mode .audit-dashboard-copy,html.dream-platform-mode .audit-dashboard-copy b,html.dream-platform-mode .audit-dashboard-copy span{color:#4f4942!important;text-shadow:none!important}\n
/* CADU 02 — fluxo de rascunho/publicação + Dream Social */
.cms-workflow-note{margin-top:16px;padding:11px 13px;border:1px solid #e3dbcf;background:#fbf8f2;border-radius:7px;color:#746b61;font-size:.74rem;line-height:1.55}.cms-workflow-note strong{color:#4a443d}.cms-editor-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.cms-save-state{font-size:.67rem;color:#8a8176;margin-right:3px;white-space:nowrap}.cms-save-state.dirty{color:#a05b39}.cms-save-state.saved{color:#617352}.cms-save-state.published{color:#8a6d3f;font-weight:700}.dm-btn:disabled{opacity:.45;cursor:not-allowed}.dm-btn:disabled:hover{border-color:#d8d0c3;color:#514b43}.cms-toast.error{background:#8b3636}.instagram-admin-panel{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:14px;align-items:center;background:linear-gradient(120deg,#fff,#fbf7f0);border:1px solid #ded5c8;border-radius:10px;padding:15px 17px;margin-bottom:18px;box-shadow:0 8px 28px rgba(57,48,38,.04)}.instagram-admin-icon{width:44px;height:44px;border:1px solid #d8c9b3;border-radius:50%;display:grid;place-items:center;color:#9b7d54;font-size:1.15rem}.instagram-admin-top{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.instagram-admin-copy strong{font-size:.86rem;color:#39342f}.instagram-admin-copy p{margin:5px 0 0!important;color:#7b7368!important;font-size:.72rem!important;line-height:1.5}.integration-badge{display:inline-flex;padding:4px 7px;border-radius:999px;font-size:.61rem;font-weight:700;letter-spacing:.03em}.integration-badge.pending{background:#f0eadf;color:#8b7351}.instagram-connection-note{margin-top:22px;display:grid;grid-template-columns:auto 1fr;gap:13px;border:1px solid #ded5c8;background:#faf7f1;padding:16px;border-radius:9px}.instagram-connection-note>i{font-size:1.2rem;color:#9b7d54;margin-top:2px}.instagram-connection-note strong{font-size:.82rem}.instagram-connection-note p{margin:5px 0 0!important;color:#756d63!important;font-size:.74rem!important;line-height:1.55}.settings-check{display:flex;align-items:end;padding-bottom:6px}.settings-check label{display:flex!important;align-items:center;gap:8px;margin:0!important;font-size:.76rem!important}.settings-check input{width:auto!important;margin:0!important}.preview-instagram-link{display:inline-flex;margin-top:12px;align-items:center;gap:6px;color:#9a7f59;font-size:.7rem;font-weight:650}.settings-actions{align-items:center;flex-wrap:wrap}
@media(max-width:820px){.instagram-admin-panel{grid-template-columns:auto 1fr}.instagram-admin-panel>.dm-btn{grid-column:1/-1}.cms-editor-footer{flex-direction:column;align-items:stretch}.cms-editor-actions{justify-content:stretch}.cms-editor-actions .dm-btn{flex:1}.cms-save-state{width:100%;margin:0 0 4px}.settings-actions .cms-save-state{width:100%}.settings-actions .dm-btn{flex:1}}

/* CADU 02 — preview realmente visível no desktop */
.cms-grid{grid-template-columns:minmax(290px,360px) minmax(0,1fr)}
.cms-editor-workspace{display:grid;grid-template-columns:minmax(430px,1.08fr) minmax(340px,.92fr);gap:20px;align-items:start;padding:20px}
.cms-editor-form{min-width:0}.cms-preview-pane{min-width:0;border-left:1px solid var(--dm-line);padding-left:20px}.cms-preview-sticky{position:sticky;top:82px}.cms-preview-hint{margin:10px 2px 0!important;color:#8a8176!important;font-size:.69rem!important;line-height:1.5}.cms-preview-pane .preview-content{grid-template-columns:1fr}.cms-preview-pane .preview-content img{height:270px;min-height:270px}.cms-preview-pane .preview-copy{padding:24px}.cms-preview-pane .preview-copy h3{font-size:1.55rem}.cms-live-preview{margin-top:0}
@media(max-width:1380px){.cms-editor-workspace{grid-template-columns:1fr}.cms-preview-pane{border-left:0;border-top:1px solid var(--dm-line);padding:18px 0 0}.cms-preview-sticky{position:static}.cms-preview-pane .preview-content{grid-template-columns:1.05fr .95fr}.cms-preview-pane .preview-content img{height:auto;min-height:260px}}
@media(max-width:1000px){.cms-grid{grid-template-columns:1fr}.cms-editor-workspace{grid-template-columns:1fr}.cms-preview-pane .preview-content{grid-template-columns:1fr}}

/* CADU 03 — Instagram oficial */
.instagram-admin-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap}.integration-badge.ready{background:#f4ead8;color:#8a6d3f}.integration-badge.connected{background:#e8f0e5;color:#5c7355}.instagram-admin-actions .dm-btn{white-space:nowrap}@media(max-width:760px){.instagram-admin-panel{grid-template-columns:auto 1fr}.instagram-admin-actions{grid-column:1/-1;justify-content:stretch}.instagram-admin-actions .dm-btn{flex:1}}

/* ===== CMS GALERIA COMPLETA v940 ===== */
.cms-gallery-editor{margin-top:4px}.cms-gallery-toolbar{display:grid;grid-template-columns:minmax(200px,1fr) auto auto;gap:8px;align-items:center;margin-bottom:10px}.cms-gallery-list{display:flex;flex-direction:column;gap:9px;max-height:480px;overflow:auto;padding-right:4px}.cms-gallery-row{display:grid;grid-template-columns:92px 1fr;gap:10px;border:1px solid #ddd3c5;background:#fff;border-radius:9px;padding:9px}.cms-gallery-row>img{width:92px;height:72px;object-fit:cover;border-radius:6px;background:#eee}.cms-gallery-row-main{min-width:0}.cms-gallery-row-main>input{margin:0 0 7px!important;background:#fff!important;color:#2b241c!important}.cms-gallery-row-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.cms-gallery-row-actions .dm-btn{padding:6px 9px!important;font-size:.72rem!important}.cms-gallery-file{cursor:pointer}.cms-gallery-empty{padding:20px;border:1px dashed #cfc3b2;border-radius:8px;text-align:center;color:#726758;background:#faf7f1}@media(max-width:720px){.cms-gallery-toolbar{grid-template-columns:1fr}.cms-gallery-toolbar .dm-btn{width:100%}.cms-gallery-row{grid-template-columns:72px 1fr}.cms-gallery-row>img{width:72px;height:66px}.cms-gallery-row-actions .dm-btn{flex:1 1 auto}.cms-gallery-list{max-height:none}}

/* ===== CMS ENQUADRAMENTO INDIVIDUAL v941 ===== */
.cms-frame-wrap{min-width:0}.cms-frame-stage{position:relative;overflow:hidden;background:#eee7dc;border:1px solid #d7cbb8;border-radius:9px;aspect-ratio:16/10;cursor:grab;touch-action:none;user-select:none}.cms-frame-stage.dragging{cursor:grabbing}.cms-frame-stage img{width:100%!important;height:100%!important;object-fit:cover!important;display:block;pointer-events:none;will-change:transform,object-position;transition:none!important}.cms-frame-wrap.main{width:min(390px,100%)}.cms-frame-wrap.small{width:210px;flex:0 0 210px}.cms-frame-wrap.small .cms-frame-stage{aspect-ratio:4/3}
.cms-frame-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:8px;font-size:.72rem;color:#6f6558}.cms-frame-controls label{display:flex;align-items:center;gap:7px;margin:0!important}.cms-frame-controls input[type=range]{width:125px}.cms-frame-controls [data-frame-pos]{font-variant-numeric:tabular-nums;min-width:62px}.cms-frame-controls .dm-btn{padding:6px 8px!important;font-size:.68rem!important}.cms-frame-help{font-size:.72rem;color:#776c5f;margin:8px 0;line-height:1.4}.preview-framed-image{overflow:hidden;min-height:220px;background:#eee7dc}.preview-framed-image img{width:100%;height:100%;min-height:220px;object-fit:cover;display:block}.cms-gallery-row{align-items:flex-start!important}.cms-gallery-row>.cms-frame-wrap+ .cms-gallery-row-main{min-width:0;flex:1}
@media(max-width:760px){.cms-image-zone{grid-template-columns:1fr!important}.cms-frame-wrap.main,.cms-frame-wrap.small{width:100%;flex-basis:auto}.cms-gallery-row{display:grid!important;grid-template-columns:1fr!important}.cms-frame-controls input[type=range]{flex:1;min-width:120px}.preview-framed-image{min-height:180px}.preview-framed-image img{min-height:180px}}

/* ===== FINAL v944: CMS sem sobreposicao ===== */
html.dream-platform-mode .platform-cms-shell{max-width:none!important;width:100%}.cms-grid{grid-template-columns:minmax(250px,320px) minmax(0,1fr)!important;gap:16px!important}.cms-editor,.cms-editor-form,.cms-preview-pane,.cms-field,.cms-image-zone{min-width:0!important}.cms-editor-workspace{grid-template-columns:minmax(380px,1.05fr) minmax(320px,.95fr)!important;gap:18px!important;padding:18px!important}.cms-workflow-note{position:static!important;inset:auto!important;z-index:auto!important;max-width:100%;overflow-wrap:anywhere}.cms-preview-sticky{top:72px!important}.cms-editor-actions{max-width:100%}.cms-editor-actions .dm-btn{white-space:nowrap}.cms-gallery-row-main{overflow:hidden}.cms-gallery-row-main input{width:100%}.cms-frame-wrap.main{max-width:100%}.platform-cms-toolbar{position:relative!important;inset:auto!important}
@media(max-width:1500px){.cms-editor-workspace{grid-template-columns:1fr!important}.cms-preview-pane{border-left:0!important;border-top:1px solid var(--dm-line)!important;padding:18px 0 0!important}.cms-preview-sticky{position:static!important}.cms-preview-pane .preview-content{grid-template-columns:minmax(0,1fr) minmax(260px,.8fr)!important}}
@media(max-width:1050px){.cms-grid{grid-template-columns:1fr!important}.cms-items{max-height:300px!important}.cms-preview-pane .preview-content{grid-template-columns:1fr!important}.cms-preview-pane .preview-content img{height:auto!important;min-height:220px!important}.cms-editor-workspace{padding:14px!important}}
@media(max-width:600px){html.dream-platform-mode .tab-content{padding:10px!important}.platform-cms-actions{display:grid!important;grid-template-columns:1fr 1fr!important}.platform-cms-actions .dm-btn{min-width:0!important;width:100%!important}.cms-editor{border-radius:8px!important}.cms-editor-workspace{padding:11px!important}.cms-form-grid{gap:10px!important}.cms-editor-footer{gap:8px!important}.cms-editor-actions{display:grid!important;grid-template-columns:1fr 1fr!important}.cms-editor-actions .cms-save-state{grid-column:1/-1}.cms-gallery-row-actions{display:grid!important;grid-template-columns:1fr 1fr!important}.cms-gallery-row-actions .dm-btn{width:100%!important}.cms-preview-pane .preview-content img{min-height:180px!important}.preview-copy{padding:18px!important}}

/* ===== REFINO FINAL v945 ===== */
html.dream-platform-mode #printCosts{background:#fff!important;color:var(--dm-ink)!important;border:1px solid var(--dm-line)!important;box-shadow:var(--dm-shadow)!important}html.dream-platform-mode #printCosts>div{color:#756f66!important}html.dream-platform-mode .pie-legend-row{color:#4f4942!important}html.dream-platform-mode .pie-legend-row b{color:#26231f!important}html.dream-platform-mode .pie-graphic::after{background:#fff!important}
.cms-gallery-row{grid-template-columns:minmax(210px,230px) minmax(0,1fr)!important;gap:14px!important;padding:12px!important}.cms-gallery-row>.cms-frame-wrap.small{width:100%!important;max-width:230px!important;flex:0 0 auto!important}.cms-gallery-row-main{overflow:visible!important}.cms-gallery-row-actions{align-items:stretch!important}.cms-gallery-row-actions .dm-btn{white-space:nowrap!important;min-height:34px!important}.cms-gallery-row-main>input{min-width:0!important}.cms-frame-controls{align-items:center!important}.cms-frame-controls [data-frame-pos]{white-space:nowrap!important}
html.dream-platform-mode .office-klyon-credit{background:#fff!important;border-top-color:var(--dm-line)!important;color:#16cfee!important}html.dream-platform-mode .office-klyon-credit img{background:#050505;border-radius:6px;padding:2px}
@media(max-width:900px){html.dream-platform-mode .top-header{background:#fff!important}.cms-gallery-row{grid-template-columns:1fr!important}.cms-gallery-row>.cms-frame-wrap.small{max-width:none!important}.cms-gallery-row-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}.cms-gallery-row-actions .dm-btn{width:100%!important}.cms-frame-controls{display:grid!important;grid-template-columns:auto minmax(120px,1fr)!important}.cms-frame-controls .dm-btn{grid-column:1/-1!important;width:max-content!important}.platform-cms-actions{grid-template-columns:1fr 1fr!important}}
@media(orientation:landscape) and (max-height:560px) and (min-width:640px) and (max-width:1200px){html.dream-platform-mode .top-header{background:#fff!important}.cms-grid{grid-template-columns:1fr!important}.cms-editor-workspace{grid-template-columns:1fr!important}.cms-preview-pane{position:static!important}}

/* ===== PORTAL + MOBILE HEADER v947 ===== */
.platform-login-grid{display:contents}
html.dream-platform-mode #loginContainer{background:#f6f3ed!important;padding:34px 20px!important;overflow:auto!important;align-items:center!important}
html.dream-platform-mode .platform-login-grid{display:grid!important;grid-template-columns:repeat(2,minmax(320px,380px));gap:28px;align-items:stretch;justify-content:center;width:100%;max-width:820px;margin:auto}
html.dream-platform-mode .login-card{width:100%!important;height:100%!important;min-height:0!important;padding:34px!important;border-radius:8px!important;box-sizing:border-box!important;box-shadow:0 24px 80px rgba(53,43,28,.10)!important}
html.dream-platform-mode .dream-login-card>img{max-width:180px!important;height:96px!important;object-fit:contain!important;margin:0 auto 8px!important;display:block!important}
html.dream-platform-mode .login-card h2{font-family:Inter,"Segoe UI",Arial,sans-serif!important;font-size:20px!important;font-weight:700!important;letter-spacing:.08em!important;color:var(--dm-gold)!important;margin:0 0 22px!important}
html.dream-platform-mode .login-card label{color:#6f675d!important;font-weight:400!important}
html.dream-platform-mode .login-card input{border-radius:6px!important;padding:10px!important}
html.dream-platform-mode .tds-portal-logo{content:normal!important;display:block;width:180px!important;height:96px!important;object-fit:contain!important;margin:0 auto 8px!important;transform:translateX(5px)!important}
html.dream-platform-mode .tds-portal-form{text-align:left}.tds-portal-form>label:not(.tds-remember){display:block;font-size:.85rem;margin:0 0 4px}.tds-portal-form>input,.tds-pass-wrap input{height:38px!important;margin:0 0 13px!important}.tds-pass-wrap{position:relative}.tds-pass-wrap input{padding-right:42px!important}.tds-pass-wrap button{position:absolute;right:3px;top:2px;width:36px;height:34px;border:0;background:transparent;color:#8a8379}.tds-remember{display:flex!important;align-items:center;gap:7px;font-size:.82rem;margin:2px 0 14px}.tds-remember input{width:auto!important;margin:0!important}.tds-portal-error{min-height:2px;color:var(--dm-danger);font-size:.72rem;text-align:center;margin-bottom:4px}.tds-portal-form .btn-primary-gold{width:100%;height:39px!important}.tds-portal-track{width:100%;height:190px;border:0;margin:16px 0 0;background:transparent}
html.dream-platform-mode .track-order-form{display:grid!important;grid-template-columns:1fr 42px!important;gap:7px!important}.track-order-form input{min-width:0!important}.track-order-form button{width:42px!important;min-width:42px!important;padding:0!important}.track-order-result{margin-top:10px!important}.track-error{color:var(--dm-danger)}.track-pending{color:#91713e}.track-loading{color:var(--dm-muted)}.public-track-card{border:1px solid var(--dm-line);border-radius:8px;padding:12px;background:#fbfaf7;text-align:left}.public-track-head{display:flex;justify-content:space-between;gap:8px;align-items:flex-start;flex-wrap:wrap;font-size:.72rem}.public-track-head span{color:var(--dm-muted)}.public-track-head b{color:var(--dm-ink)}.track-timeline{display:grid;grid-template-columns:repeat(6,1fr);gap:2px;margin-top:12px}.track-step{position:relative;text-align:center;color:#aaa;font-size:8px}.track-step:before{content:'';position:absolute;top:9px;left:-50%;right:50%;height:2px;background:#ddd7cd;z-index:0}.track-step:first-child:before{display:none}.track-step i{position:relative;z-index:1;width:19px;height:19px;border-radius:50%;display:grid;place-items:center;margin:0 auto 5px;background:#eee9df;color:#8d857a;font-style:normal;font-size:8px;font-weight:800}.track-step.done:before,.track-step.current:before{background:#b59a6d}.track-step.done i{background:#b59a6d;color:#fff}.track-step.current i{background:#292621;color:#fff;box-shadow:0 0 0 3px rgba(181,154,109,.2)}.track-step.done span,.track-step.current span{color:#514b43;font-weight:650}
@media(max-width:900px){html.dream-platform-mode .platform-login-grid{grid-template-columns:1fr;max-width:390px;gap:20px}html.dream-platform-mode #loginContainer{align-items:flex-start!important;padding:22px 14px!important}html.dream-platform-mode .login-card{padding:28px 24px!important}.top-header{box-sizing:border-box}html.dream-platform-mode .top-header{height:68px!important;min-height:68px!important;padding:0 max(14px,env(safe-area-inset-left))!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:9px!important;flex-wrap:nowrap!important;overflow:visible!important}.top-header>.mobile-menu-btn:first-child{margin:0 2px 0 0!important;flex:0 0 40px!important;width:40px!important;height:40px!important}.top-header #dreamScoreHeader{margin:0!important;flex:0 0 auto!important;white-space:nowrap!important}.top-header #viewAsBtn{margin:0!important;width:42px!important;height:40px!important;min-width:42px!important;padding:0!important;display:grid!important;place-items:center!important;flex:0 0 42px!important}.top-header #viewAsBtn span{display:none!important}.top-header .notif-btn{margin:0!important;width:40px!important;height:40px!important;flex:0 0 40px!important}.top-header>div[onclick*="openMyProfile"]{margin:0 0 0 auto!important;gap:0!important;flex:0 0 auto!important}.top-header>div[onclick*="openMyProfile"]>div:last-child{display:none!important}.top-header>.mobile-menu-btn:last-child{margin:0!important;width:40px!important;height:40px!important;flex:0 0 40px!important}.notif-panel{right:12px!important;top:64px!important;max-width:calc(100vw - 24px)!important}.platform-dashboard-note{margin-top:0!important}}
@media(max-width:520px){html.dream-platform-mode .top-header{gap:6px!important}.top-header #dreamScoreHeader .score-head-label{display:none!important}.top-header>div[onclick*="openMyProfile"]{display:none!important}.top-header #dreamScoreHeader{padding-left:10px!important;padding-right:10px!important}.track-timeline{gap:0}.track-step span{font-size:7px}}
@media(orientation:landscape) and (max-height:560px) and (min-width:640px) and (max-width:1200px){html.dream-platform-mode .top-header{height:60px!important;min-height:60px!important;padding:0 18px!important;gap:10px!important}.top-header>div[onclick*="openMyProfile"]>div:last-child{display:none!important}.top-header #viewAsBtn span{display:none!important}.top-header #viewAsBtn{width:42px!important;min-width:42px!important}.top-header .notif-btn{margin:0!important}.top-header>.mobile-menu-btn:first-child{margin-right:2px!important}}
