
body[data-view="planejar"] .shell{background:var(--brand-wine);color:var(--brand-cream)}
.planner-page{max-width:1120px;margin:auto;padding:20px 0 35px}
.planner-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:28px}
.planner-heading h1{font:600 clamp(34px,4vw,58px)/1.12 var(--serif);letter-spacing:-.03em;margin:0 0 10px}
.planner-heading p,.plan-daily p,.plan-reminder-settings p{color:#d8c4b6;line-height:1.65;margin:6px 0;font-size:14px}
.planner-heading .primary{gap:9px;white-space:nowrap}
.plan-daily{display:grid;grid-template-columns:minmax(0,1fr) 220px;align-items:center;gap:26px;background:#ede3d609;border:1px solid #ede3d633;padding:26px;border-radius:10px;margin-bottom:30px}
.plan-daily h2{font:500 clamp(24px,2.7vw,32px)/1.2 var(--serif);margin:8px 0 12px}
.plan-daily .plan-small,.plan-small{font-size:12px;color:#d8c4b6;margin:0}
.plan-daily-art{display:grid;place-items:center;min-width:0;background:#000;border:0;border-radius:7px;height:140px;padding:18px;color:var(--brand-cream)}
.plan-daily-art img{width:100%;height:100%;object-fit:contain}
.plan-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin-top:18px}
.plan-text-button,.plan-icon-button,.plan-row-open,.plan-tabs button{background:none;border:0;color:inherit;font:inherit}
.plan-text-button{font-size:13px;text-align:left;min-height:44px;padding:8px 0;text-decoration:underline;text-underline-offset:4px}
.plan-icon-button{display:inline-grid;place-items:center;width:44px;height:44px;padding:8px;border-radius:5px;font-size:26px;flex-shrink:0}
.plan-icon-button svg,.plan-refresh svg{width:20px;height:20px}
.plan-tabs{display:flex;align-items:center;gap:24px;border-bottom:1px solid #ede3d633}
.plan-tabs button{min-height:48px;font-size:14px;padding:10px 0;border-bottom:2px solid transparent}
.plan-tabs button[aria-selected="true"]{border-bottom-color:var(--brand-cream);font-weight:600}
.plan-tabs span{font-size:11px;margin-left:4px}
.plan-tabs .plan-refresh{margin-left:auto;padding-inline:12px}
.plan-week-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-top:20px}
.plan-week-heading h2{font-size:18px;font-weight:500;margin:0}
.plan-week-heading>div{display:flex;align-items:center}
.plan-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin:14px 0 22px}
.plan-week button{display:grid;justify-items:center;gap:6px;padding:12px 4px;border:1px solid #ede3d633;background:none;border-radius:7px;color:var(--brand-cream);font:inherit}
.plan-week button[aria-pressed="true"]{background:var(--brand-cream);color:var(--brand-wine);border-color:var(--brand-cream)}
.plan-week span{font-size:12px}
.plan-week strong{font-size:21px;font-weight:500}
.plan-week i{width:4px;height:4px;background:transparent;border-radius:50%}
.plan-week i.has-plans{background:currentColor}
.plan-list{min-height:120px}
.plan-row{display:flex;align-items:center;gap:20px;padding:21px 0;border-bottom:1px solid #ede3d633}
.plan-row-time{font-variant-numeric:tabular-nums;font-weight:500;min-width:80px;font-size:16px}
.plan-row-time small{display:block;font-size:11px;font-weight:400;color:#d8c4b6;margin-top:5px}
.plan-row-open{flex:1;text-align:left;min-width:0;padding:4px 0}
.plan-row-open strong{display:block;font-weight:500;overflow-wrap:anywhere;font-size:16px}
.plan-row-open span{display:block;font-size:12px;color:#d8c4b6;margin-top:7px}
.plan-empty{padding:34px 0}
.plan-empty h3{font:500 24px/1.2 var(--serif);margin:0 0 12px}
.plan-empty p{font-size:14px;color:#d8c4b6;margin:0 0 18px}
.plan-reminder-settings{display:flex;align-items:flex-start;justify-content:space-between;gap:28px;padding:24px 0;margin-top:20px;border-top:1px solid #ede3d633}
.plan-reminder-settings h2{font-size:16px;font-weight:500;margin:0 0 8px}
.plan-reminder-settings p{font-size:12px;max-width:550px}
.plan-reminder-settings .secondary{flex-shrink:0;font-size:12px}
.planner-page :is(button,input,select):focus-visible,#plan-dialog :is(button,input,textarea,select):focus-visible{outline:2px solid #d5b8a0;outline-offset:3px}
.planner-page button:hover:not(:disabled){filter:brightness(1.15)}
#plan-dialog{width:min(820px,calc(100% - 32px));max-width:820px;max-height:90svh;padding:0;border:0;border-radius:16px;background:#3b0a10;color:var(--brand-cream);box-shadow:0 24px 80px #0007;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none;color-scheme:dark}
#plan-dialog::-webkit-scrollbar,#plan-dialog textarea::-webkit-scrollbar{display:none;width:0;height:0}
body:has(#plan-dialog[open]){overflow:hidden}
#plan-dialog::backdrop{background:#130306dd}
.plan-editor{padding:28px 32px 32px}
.plan-editor>header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:24px}
.plan-editor h2{font:500 clamp(25px,3vw,32px)/1.2 var(--serif);letter-spacing:-.025em;margin:0;text-wrap:balance}
.plan-editor label{display:block;font-size:14px;font-weight:400;color:#e2d0c3}
.plan-editor :is(input:not([type=checkbox]),textarea,select){width:100%;min-width:0;min-height:48px;background:#ede3d606;border:1px solid #b69c8f66;color:var(--brand-cream);border-radius:9px;padding:12px 14px;font:400 15px/1.5 var(--sans);margin-top:8px;box-sizing:border-box}
.plan-editor textarea{resize:vertical;min-height:130px}
.plan-brief{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:end}
.plan-brief>label:first-child{grid-column:1/-1}
.plan-brief .secondary{min-height:44px;justify-content:center}
.plan-editor-note{font-size:13px;color:#cdb5a8;line-height:1.65;margin:20px 0 26px;max-width:60ch}
.plan-scene{border-top:1px solid #ede3d62b;margin-top:30px;padding-top:24px}
.plan-scene-header{display:flex;align-items:center;justify-content:space-between}
.plan-scene h3{font-size:16px;font-weight:500;margin:0}
.plan-scene-header button{font-size:11px;color:#d8c4b6}
.plan-scene-fields{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:22px}
.plan-scene-fields label+label{margin-top:12px}
.plan-sticker-preview{display:grid;place-items:center;height:118px;padding:15px;background:#000;border-radius:6px;margin:12px 0}
.plan-sticker-preview img{width:100%;height:100%;object-fit:contain;min-height:0}
.plan-sticker-preview span{font-size:11px;color:#d8c4b6}
.plan-scene-sticker .secondary{min-height:44px;font-size:12px}
.plan-schedule{display:grid;grid-template-columns:1fr 1fr;gap:16px;border:0;border-top:1px solid #ede3d644;padding:18px 0;margin:20px 0 0}
.plan-schedule legend{font-size:16px;padding:0 12px 0 0}
.plan-schedule p{grid-column:1/-1;color:#d8c4b6;font-size:12px;line-height:1.6;margin:0}
.plan-editor-footer{display:flex;gap:12px 18px;align-items:center;flex-wrap:wrap;border-top:1px solid #ede3d633;padding-top:18px}
#plan-save-feedback{font-size:13px;line-height:1.65}
#plan-save-feedback:empty{display:none}
.plan-editor :disabled{opacity:.55}
#plan-reminder{position:fixed;bottom:24px;right:24px;z-index:200;display:flex;align-items:center;gap:18px;width:min(520px,calc(100% - 36px));padding:18px;background:#ede3d6;color:#3b0a10;border-radius:9px;box-shadow:0 4px 32px #0006}
#plan-reminder p{font-size:13px;margin:5px 0 0}
#plan-reminder button{min-height:44px;background:transparent;color:inherit;border:0;font:inherit;text-decoration:underline}
#plan-reminder>div{flex:1;min-width:0;overflow-wrap:anywhere}
@media(max-width:760px){
 .planner-page{padding-top:14px}
 .planner-heading{align-items:flex-start;flex-direction:column;gap:18px}
 .plan-daily{grid-template-columns:minmax(0,1fr) 110px;padding:18px;gap:14px}
 .plan-daily-art{height:110px;padding:10px}
 .plan-daily h2{font-size:25px}
 .plan-daily p{font-size:12px}
 .plan-actions{grid-column:1/-1}
 .plan-actions .secondary{font-size:12px}
 .plan-week{gap:4px}
 .plan-week button{padding:12px 2px}
 .plan-week span{font-size:11px}
 .plan-row{gap:12px;padding:17px 0}
 .plan-row-time{min-width:64px;font-size:14px}
 .plan-row-open strong{font-size:14px}
 .plan-reminder-settings{flex-direction:column;gap:12px}
 .plan-scene-fields{grid-template-columns:1fr}
 .plan-scene-sticker{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:center}
 .plan-scene-sticker label{grid-column:1/-1}
 .plan-sticker-preview{margin:0;height:92px}
 .plan-brief,.plan-schedule{grid-template-columns:1fr}
 .plan-schedule p{grid-column:1}
 .plan-editor :is(input:not([type=checkbox]),textarea,select){font-size:16px}
 #plan-reminder{bottom:90px;right:18px;gap:10px;padding:14px}
}
@media(max-width:380px){.plan-daily{grid-template-columns:1fr}.plan-daily-art{height:110px}.plan-week-heading h2{font-size:16px}.plan-week-heading .plan-icon-button{width:36px}}
@media(prefers-reduced-motion:no-preference){#plan-dialog[open]{animation:plan-appear .18s ease-out}@keyframes plan-appear{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}}


.planner-heading,.plan-editor>header{
 height:auto;min-height:0;padding:0;background:transparent;border:0;color:inherit;position:static;
}

.plan-scene-header>div{display:flex;gap:16px;align-items:center}
.plan-calendar-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:18px;padding:23px 0 16px}
.plan-calendar-toolbar h2{font:500 24px/1.2 var(--serif);margin:0}
.plan-calendar-toolbar h2:first-letter{text-transform:uppercase}
.plan-calendar-mode{display:flex;gap:3px;padding:3px;border:1px solid #ede3d644;border-radius:7px}
.plan-calendar-mode button{font:400 13px var(--sans);padding:9px 13px;min-height:40px;border:0;border-radius:4px;background:transparent;color:var(--brand-cream)}
.plan-calendar-mode button[aria-pressed="true"]{background:var(--brand-cream);color:var(--brand-wine)}
.plan-calendar-navigation{display:flex;align-items:center}
.plan-month-labels,.plan-month{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.plan-month-labels{padding:10px 0;font-size:12px;text-align:center;color:#d8c4b6}
.plan-month{gap:1px;padding:1px;background:#ede3d633;border-radius:8px;overflow:hidden}
.plan-month>button{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0;min-height:112px;padding:10px;background:#3b0a10;color:var(--brand-cream);border:0;text-align:left;font:inherit}
.plan-month>button[aria-pressed="true"]{background:var(--brand-cream);color:var(--brand-wine)}
.plan-month>button strong{display:grid;place-items:center;width:28px;height:28px;font-size:14px;font-weight:500;border-radius:50%}
.plan-month>button[aria-current="date"] strong{box-shadow:inset 0 0 0 1px currentColor}
.plan-month>button.plan-outside-month:not([aria-pressed="true"]){background:#30090e}
.plan-month>button.plan-outside-month:not([aria-pressed="true"]) strong{color:#bea59e}
.plan-day-count{font-size:10px;font-weight:500}
.plan-calendar-preview{display:flex;flex-direction:column;gap:4px;width:100%;font-size:10px}
.plan-calendar-preview span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.plan-selected-day{font-size:17px;font-weight:500;margin:24px 0 0}
.planner-page>.plan-daily{margin-top:28px}
@media(max-width:760px){
 .plan-calendar-toolbar{grid-template-columns:minmax(0,1fr) auto;gap:14px 8px;padding:20px 0 12px}
 .plan-calendar-toolbar h2{grid-column:1/-1;font-size:25px}
 .plan-calendar-mode{justify-self:start}
 .plan-calendar-mode button{min-height:40px;padding:8px 12px;font-size:12px}
 .plan-calendar-navigation{justify-self:end}
 .plan-calendar-navigation .plan-icon-button{width:36px}
 .plan-calendar-navigation .plan-text-button{font-size:12px}
 .plan-month>button{min-height:68px;align-items:center;gap:3px;padding:7px 2px}
 .plan-month-labels{font-size:11px}
 .plan-calendar-preview,.plan-calendar-count-label{display:none}
 .plan-day-count{display:grid;place-items:center;width:17px;height:17px;border-radius:50%;background:#ede3d619;font-size:10px}
 .plan-month>button[aria-pressed="true"] .plan-day-count{background:#3b0a1018}
 .plan-month>button strong{font-size:13px;width:27px;height:27px}
}

/* Content colors remain secondary to the MEDCREATE burgundy and cream. */
[data-content-type="bastidores"]{--plan-type:#d5b8a0}
[data-content-type="educativo"]{--plan-type:#adc4ac}
[data-content-type="divulgacao"]{--plan-type:#e7a7b7}
[data-content-type="outro"]{--plan-type:#ede3d6}
.plan-type-legend{display:flex;flex-wrap:wrap;gap:10px 18px;margin-top:15px;font-size:12px}
.plan-type-legend span{display:flex;align-items:center;gap:7px}
.plan-type-legend span:before{content:"";width:8px;height:8px;border-radius:2px;background:var(--plan-type)}
.plan-day-types{display:flex;gap:3px;min-height:5px}
.plan-day-types i{display:block;width:5px;height:5px;border-radius:1px;background:var(--plan-type)}
.plan-drag-hint{font-size:12px;color:#d8c4b6;margin:12px 0 22px}
.plan-row{border-left:3px solid var(--plan-type);padding-left:14px}
.plan-row-open .plan-type-label{color:var(--plan-type);font-size:13px}
.plan-calendar-preview [data-content-type]{border-left:3px solid var(--plan-type);padding-left:5px;cursor:grab;background:#0003;border-radius:2px}
.plan-month>button[aria-pressed="true"] .plan-calendar-preview [data-content-type]{background:#3b0a10;color:#ede3d6}
.plan-preparation{margin:6px 0 22px;max-width:330px}
.plan-reschedule{flex-shrink:0;font-size:12px}
[data-plan-drag]{cursor:grab}
.plan-dragging{opacity:.45;cursor:grabbing}
:is(.plan-month,.plan-week)>button.plan-drop-target{box-shadow:inset 0 0 0 3px #d5b8a0;background:#63333a}
@media(max-width:760px){.plan-row{gap:10px;padding-left:10px;flex-wrap:wrap}.plan-row-time{min-width:68px}.plan-row-open{flex-basis:calc(100% - 85px)}.plan-reschedule{margin-left:78px}.plan-type-legend{gap:8px 12px;font-size:11px}}

/* Quiet editor finish, confined to the script dialog. */
.plan-editor>header{position:sticky;top:-28px;z-index:2;align-items:center;gap:16px;margin:-28px -32px 28px;padding:24px 32px 20px;background:#3b0a10;border-bottom:1px solid #ede3d625}
.plan-editor [data-plan-close]{width:44px;height:44px;min-width:44px;border:1px solid #ede3d633;border-radius:50%;color:#ede3d6}
.plan-editor [data-plan-close]:hover{background:#ede3d60c}
.plan-editor :is(input,textarea){caret-color:#ede3d6}
.plan-editor :is(input,textarea)::placeholder{color:#c5ab9d;opacity:1}
.plan-editor ::selection{background:#ede3d6;color:#3b0a10}
.plan-editor textarea{scrollbar-width:none}
#plan-dialog select{appearance:none;padding-right:38px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23EDE3D6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;text-overflow:ellipsis}
.plan-editor select option{background:#3b0a10;color:#ede3d6}
#plan-dialog :is(input,textarea,select):focus-visible{outline:2px solid #d5b8a0;outline-offset:3px;border-color:#d5b8a0}
.plan-editor .plan-text-button{font-size:13px;color:#d8c4b6}
.plan-editor-footer{padding-top:24px;border-color:#ede3d62b;gap:12px}
.plan-editor-footer .primary,.plan-editor-footer .secondary{min-height:48px;border-radius:9px;padding-inline:20px;font-size:14px}
.plan-editor-footer [data-plan-remove]{margin-left:auto}
@media(max-width:760px){
 .plan-editor{padding:22px 22px 26px}
 .plan-editor>header{top:-22px;margin:-22px -22px 24px;padding:20px 22px 17px}
 .plan-editor h2{font-size:27px;max-width:19ch}
 .plan-brief{gap:20px}
 .plan-scene-header{align-items:flex-start;gap:12px}
 .plan-scene-header>div{gap:12px;flex-wrap:wrap;justify-content:flex-end}
 .plan-editor-footer{display:grid;grid-template-columns:1fr}
 .plan-editor-footer .primary,.plan-editor-footer .secondary{justify-content:center;width:100%}
 .plan-editor-footer [data-plan-remove]{margin:0;text-align:center}
}
@media(prefers-reduced-motion:no-preference){.plan-editor :is(input,textarea,select,button){transition:background-color .16s ease,border-color .16s ease}}
