.app-logo{width:42px;height:42px;border-radius:12px;object-fit:cover;box-shadow:0 0 0 1px rgba(233,204,146,.35)}
.login-logo{width:92px;height:92px;border-radius:24px;object-fit:cover;box-shadow:0 14px 34px rgba(0,0,0,.24)}

.app-shell{font-size:17px}
.nav-item{font-size:.95rem}
.creator-form label,.form-panel label,.panel>label,.editor-grid label{font-size:.94rem}
.panel p,.section-head p,.copy-result p{font-size:1rem;line-height:1.6}
.selected-brand small,.schedule-item small{font-size:.82rem}

.library-card img{width:100%;height:360px;aspect-ratio:auto;object-fit:contain;background:#eeeaf0}
.library-card .card-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.library-card .card-actions .btn{min-width:0;padding:11px 8px;white-space:normal}
.library-card{min-width:0}

#create.is-editing{display:grid;grid-template-columns:minmax(520px,1fr) 390px;gap:22px;align-items:start;max-width:none}
#create.is-editing>.section-head{grid-column:1/-1;margin-bottom:0}
#create.is-editing>.creator-layout{display:contents}
#create.is-editing .creator-form{display:none}
#create.is-editing .preview-panel{grid-column:1;position:sticky;top:18px;min-height:calc(100vh - 130px);display:flex;flex-direction:column}
#create.is-editing .preview-panel canvas{width:auto;max-width:100%;max-height:calc(100vh - 235px);object-fit:contain}
#create.is-editing .copy-result{max-height:180px;overflow:auto}
#create.is-editing .editor-panel{grid-column:2;margin-top:0;position:sticky;top:18px;max-height:calc(100vh - 36px);overflow:auto}
#create.is-editing .editor-grid{grid-template-columns:1fr 1fr;gap:14px}
#create.is-editing .editor-grid label:nth-child(2),#create.is-editing .editor-grid label:nth-child(3){grid-column:1/-1}
#create.is-editing .editor-panel .panel-head{display:grid}
#create.is-editing .editor-panel .card-actions{display:grid;grid-template-columns:1fr 1fr;width:100%;flex-wrap:wrap}
#create.is-editing #exitWorkspaceBtn{grid-column:1/-1}
.preview-panel .panel-head>.btn{margin-left:auto}
.preview-panel .panel-head{flex-wrap:wrap;align-items:center}

.settings-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.badge.pending{background:#f7edd8;color:#77591f}
.file-button{position:relative;overflow:hidden;cursor:pointer}
.file-button input{position:absolute;inset:0;opacity:0;cursor:pointer}

.calendar-toolbar{display:flex;align-items:center;justify-content:center;gap:18px;margin-bottom:18px;text-transform:capitalize}
.calendar-toolbar h3{min-width:210px;text-align:center;margin:0}
.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));background:#ded8e2;border:1px solid #ded8e2;gap:1px;margin-bottom:24px;border-radius:16px;overflow:hidden}
.calendar-weekday{background:#2c1942;color:#e9cc92;text-align:center;padding:10px 4px;font-weight:700}
.calendar-day{background:#fff;min-height:118px;padding:9px;display:flex;flex-direction:column;gap:6px;min-width:0}
.calendar-day.muted{background:#f4f1f4}
.calendar-day.today{box-shadow:inset 0 0 0 2px #ceaa71}
.calendar-day>b{font-size:13px;color:#64596a}
.calendar-day button{border:0;border-left:3px solid #ceaa71;background:#f4eff8;color:#1e1030;text-align:left;padding:6px;border-radius:5px;cursor:pointer;overflow:hidden}
.calendar-day button span,.calendar-day button small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.calendar-day button small{opacity:.7}

.schedule-list{display:grid;gap:10px}
.schedule-item{display:grid;grid-template-columns:54px 1fr auto;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid #e5e0e7}
.schedule-item img{width:54px;height:54px;object-fit:cover;border-radius:8px}
.schedule-item small{display:block;color:#746c78}

.frankie-toggle{position:fixed;right:24px;bottom:22px;z-index:40;border:0;border-radius:999px;background:#1e1030;color:#e9cc92;padding:12px 17px;display:flex;gap:8px;align-items:center;box-shadow:0 12px 30px rgba(30,16,48,.3);cursor:pointer}
.frankie-toggle span{font-size:19px}
.frankie-panel{position:fixed;right:22px;top:16px;bottom:auto;width:min(360px,calc(100vw - 28px));background:#fff;color:#1e1030;border:1px solid #ded6e2;border-radius:20px;box-shadow:0 20px 60px rgba(30,16,48,.25);z-index:45;transform:translateY(20px) scale(.97);opacity:0;pointer-events:none;transition:.2s;overflow:hidden}
.frankie-panel.open{transform:none;opacity:1;pointer-events:auto}
.frankie-head{display:flex;justify-content:space-between;align-items:center;background:#1e1030;color:#fff;padding:12px 14px;flex:0 0 auto;position:relative;z-index:2}
.frankie-head>div{display:flex;align-items:center;gap:10px}
.frankie-head small{display:block;color:#e9cc92}
.frankie-avatar{display:grid;place-items:center;width:38px;height:38px;background:#ceaa71;color:#1e1030;border-radius:12px}
.frankie-head .icon-btn{color:#fff;background:#ffffff18;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;flex:0 0 36px}
.frankie-messages{padding:18px}
.frankie-bubble{background:#f3eef6;border-radius:4px 16px 16px 16px;padding:14px}
.frankie-bubble p{margin:6px 0 0}
.frankie-actions{display:flex;gap:8px;flex-wrap:wrap;padding:0 18px 18px}
.frankie-actions button{border:1px solid #ceaa71;background:#fff;color:#1e1030;border-radius:999px;padding:8px 12px;cursor:pointer}

.frankie-command{margin:22px 0}.command-head{display:flex;justify-content:space-between;gap:18px;align-items:center}.command-head h3{margin:5px 0 7px}.command-head p{margin:0;color:#756e78}.command-grid{display:grid;grid-template-columns:1fr 1.25fr 1fr;gap:16px;align-items:end;margin:20px 0}.command-grid label{display:grid;gap:7px;font-size:.8rem;font-weight:750}.route-progress>div{display:flex;justify-content:space-between;margin-bottom:8px;font-size:.8rem}.route-progress progress{width:100%;height:12px;accent-color:#ceaa71}.next-action{display:grid;gap:5px;padding:12px 14px;border-radius:10px;background:#f4eff8}.next-action span{font-size:.72rem;color:#756e78}.route-steps{display:flex;gap:7px;flex-wrap:wrap}.route-steps span{padding:8px 11px;border:1px solid #ded6e2;border-radius:999px;font-size:.72rem;color:#756e78;background:#fff}.route-steps span.complete{background:#e9f6ed;color:#237347;border-color:#b9dec6}.route-steps span.current{background:#fff5df;color:#77591f;border-color:#ceaa71;font-weight:750}
.frankie-panel{width:min(360px,calc(100vw - 28px));height:min(560px,calc(100vh - 32px));max-height:calc(100vh - 32px);display:flex;flex-direction:column}.frankie-messages{overflow:auto;display:grid;gap:10px;min-height:0;max-height:none;flex:1;align-content:start}.chat-message{max-width:88%;padding:11px 13px;border-radius:16px}.chat-message span{display:block;font-size:.65rem;font-weight:800;letter-spacing:.06em;margin-bottom:4px}.chat-message p{margin:0;line-height:1.45}.chat-message.assistant{background:#f3eef6;border-radius:4px 16px 16px 16px}.chat-message.user{background:#1e1030;color:#fff;border-radius:16px 4px 16px 16px;margin-left:auto}.frankie-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;max-height:120px;overflow-y:auto;padding:8px 12px;border-top:1px solid #eee8f0}.frankie-actions button{width:100%;min-width:0;text-align:center;line-height:1.2;padding:7px 9px}.frankie-chat-form{display:grid;grid-template-columns:1fr auto;gap:8px;padding:9px 12px 12px;border-top:1px solid #e8e1ea;background:#fff;flex:0 0 auto}.frankie-chat-form input{min-width:0}.frankie-chat-form .btn{padding:9px 11px}.frankie-actions:empty{display:none}
dialog{border:0;background:transparent;padding:14px}
dialog::backdrop{background:rgba(20,10,30,.6)}
.meta-dialog{max-width:520px;margin:0}
.meta-dialog li{margin:10px 0}

@media(max-width:1180px){#create.is-editing{grid-template-columns:minmax(440px,1fr) 340px}
#create.is-editing .editor-grid{grid-template-columns:1fr}
}

@media(max-width:900px){.settings-grid{grid-template-columns:1fr}
.calendar-day{min-height:86px;padding:5px}
.calendar-day button small{display:none}
#create.is-editing{display:block}
#create.is-editing>.section-head{margin-bottom:20px}
#create.is-editing>.creator-layout{display:block}
#create.is-editing .creator-form{display:none}
#create.is-editing .preview-panel,#create.is-editing .editor-panel{position:static;max-height:none;margin-bottom:18px}
#create.is-editing .preview-panel{min-height:auto}
#create.is-editing .preview-panel canvas{max-height:62vh}
#create.is-editing .editor-grid{grid-template-columns:1fr 1fr}
}

@media(max-width:560px){.app-shell{font-size:16px}
.command-head{display:grid}.command-grid{grid-template-columns:1fr}.frankie-panel{top:8px;right:8px;width:calc(100vw - 16px);height:min(520px,calc(100vh - 16px));max-height:calc(100vh - 16px)}.frankie-messages{max-height:none;flex:1}.frankie-actions{grid-template-columns:1fr;max-height:130px}.frankie-chat-form{grid-template-columns:1fr}.frankie-chat-form .btn{width:100%}
.calendar-grid{overflow-x:auto;grid-template-columns:repeat(7,minmax(72px,1fr))}
.calendar-day{min-height:82px}
.schedule-item{grid-template-columns:44px 1fr}
.schedule-item .btn{grid-column:1/-1}
.frankie-toggle{right:14px;bottom:14px}
.frankie-panel{right:8px;top:8px;bottom:auto}
#create.is-editing .editor-grid{grid-template-columns:1fr}
#create.is-editing .editor-grid label:nth-child(2),#create.is-editing .editor-grid label:nth-child(3){grid-column:auto}
#create.is-editing .preview-panel canvas{max-height:55vh}
.btn{font-size:.95rem;padding:13px 15px}
input,select,textarea{font-size:16px}
.eyebrow{font-size:.78rem}
.library-card img{height:440px}
.library-card .card-actions{grid-template-columns:1fr 1fr}
.library-card .card-actions .btn:last-child{grid-column:1/-1}
}
