.top-inner{display:grid;grid-template-columns:1fr auto 1fr}
.top-actions{justify-content:flex-end}
.top-actions.hide-save{visibility:hidden}
.studio-nav,.intro-actions{display:flex;align-items:center;gap:5px}
.intro-actions{gap:8px;flex-wrap:wrap}
.studio-nav{padding:3px;border:1px solid var(--border);background:#151519;border-radius:10px}
.studio-nav a{color:var(--muted);font-size:13px;font-weight:700;text-decoration:none;padding:7px 13px;border-radius:7px}
.studio-nav a:hover{color:var(--text);background:#26262d}
.studio-nav a[aria-current="page"]{color:#ffd0c9;background:#433239}
.studio-nav a:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.calendar{overflow:hidden}
.calendar-toolbar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;padding:16px 18px;border-bottom:1px solid var(--border)}
.calendar-toolbar h2{font-size:clamp(16px,2.2vw,24px);letter-spacing:-.04em;text-align:center}
.calendar-controls,.calendar-views{display:flex;align-items:center;gap:4px}
.calendar-controls{justify-self:end}
.calendar-views{width:max-content;border:1px solid var(--border);border-radius:9px;padding:3px;background:#19191d}
.calendar-views button{border:0;border-radius:6px;background:transparent;color:var(--muted);font-size:12px;padding:7px 10px;font-weight:700}
.calendar-views button[aria-pressed="true"]{background:#433239;color:#ffd0c9}
.calendar-views button:hover{color:white}
.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.calendar-weekday{padding:11px 2px;text-align:center;border-bottom:1px solid var(--border);font-weight:700;color:#c2bfc8;font-size:12px;background:#23232a}
.weekday-short{display:none;text-decoration:none}
.calendar-day{isolation:isolate;position:relative;min-width:0;min-height:112px;padding:37px 5px 5px;border-bottom:1px solid #35353e;border-right:1px solid #35353e;background:#202025}
.calendar-day:nth-child(7n){border-right:0}
.calendar-day:nth-last-child(-n+7){border-bottom:0}
.calendar-day.weekend{background:#24242b}
.calendar-day.outside-month{background:#1b1b20}
.calendar-day.is-today{background:#2c252c}
.week-view .calendar-day{min-height:290px}
.calendar-date{position:absolute;inset:0;z-index:0;display:flex;align-items:flex-start;text-align:left;border:0;background:none;color:#d8d6dc;width:100%;padding:7px;font-weight:700;font-size:12px}
.calendar-day:has(.calendar-post) .calendar-date{bottom:auto;height:32px}
.calendar-date:hover{background:#ffffff08}
.calendar-date:focus-visible{outline-offset:-3px}
.calendar-date span{width:24px;height:24px;display:grid;place-items:center;border-radius:8px}
.outside-month .calendar-date{color:#8b8896}
.is-today .calendar-date span{color:#281919;background:var(--accent)}
.calendar-post{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;width:100%;margin-bottom:4px;border:1px solid #65494d;border-left:2px solid #fa9686;border-radius:7px;background:#392d37;color:#ffdedb}
.calendar-post:hover,.calendar-post:focus-within{background:#513842;border-color:#a56965}
.calendar-post-open{display:block;min-width:0;border:0;border-radius:5px;background:none;color:inherit;padding:0;width:100%;font:inherit;text-align:left;line-height:1.25}
.calendar-post-open:focus-visible{outline-offset:-2px}
.calendar-post.has-cover .calendar-post-open{grid-column:1/-1}
.calendar-cover{display:block;width:100%;height:clamp(40px,4.6vw,68px);object-fit:cover;border-radius:5px 5px 0 0;background:#25232d}
.calendar-post-info{width:100%;display:flex;align-items:center;gap:5px;padding:5px;min-height:24px}
.calendar-post time{font-weight:800;font-size:11px;font-variant-numeric:tabular-nums}
.calendar-post-caption{flex:1;min-width:0;color:#dfcdd6;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:11px}
.calendar-post-edit{width:24px;height:24px;margin:2px 3px 2px 0;color:#ffd4ce}
.calendar-post-edit .ico{font-size:17px}
.calendar-post-edit:hover{background:#6c4750}
.calendar-post.has-cover .calendar-post-edit{position:absolute;top:3px;right:3px;margin:0;background:#201b24e8;color:#fff}
.calendar-post.has-cover .calendar-post-edit:hover{background:#4a2939}
.calendar-platforms{display:inline-flex;gap:3px;align-items:center}
.calendar-platforms .instagram-logo,.calendar-platforms .facebook-logo{width:13px;height:13px}
.calendar-platforms .instagram-logo::before{inset:2.5px}
.calendar-platforms .facebook-logo{font-size:14px;line-height:15px}
.calendar-more{position:relative;z-index:1;color:#ffb8ae;background:transparent;border:0;font-weight:700;font-size:11px;padding:2px 5px;border-radius:4px}
.calendar-more:hover{background:#463139}
.planner-note{margin:13px 0 24px;color:var(--muted);font-size:12px}
.planner-dialog{width:min(480px,calc(100% - 32px))}
.planner-dialog fieldset{min-width:0;border:1px solid var(--border);border-radius:9px;margin:15px 0 0;padding:10px}
.planner-dialog legend,.schedule-fields label{font-size:13px;font-weight:700}
.schedule-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.schedule-fields label{display:grid;gap:5px}
.platform-options{display:flex;gap:16px;flex-wrap:wrap}
.platform-options label{display:flex;gap:6px;align-items:center;font-size:13px;font-weight:600}
.platform-options input{accent-color:var(--accent)}
.dialog-summary{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#schedule-error{margin-top:10px}
.calendar-detail-header{display:flex;justify-content:space-between;align-items:flex-start;gap:7px}
.calendar-detail-header form{margin-top:-4px}
.day-post-list{margin-top:7px;max-height:45vh;overflow:auto;padding:3px}
.day-post-list .calendar-post-info{padding:7px 8px}
.entry-info{display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin:5px 0 12px}
.entry-cover{display:block;width:100%;max-height:28vh;object-fit:contain;background:#19191e;border-radius:8px;margin:0 0 12px}
.entry-copy{white-space:pre-wrap;overflow-wrap:anywhere;max-height:42vh;overflow:auto;border-top:1px solid var(--border);padding-top:10px}
#calendar-detail .dialog-actions{flex-wrap:wrap}
@media(max-width:820px){
  .calendar-day .calendar-post-info{justify-content:space-between}
  .calendar-day .calendar-post-caption{display:none}
  .calendar-day{min-height:101px}
}
@media(max-width:650px){
  .top-inner{height:auto;min-height:58px;grid-template-columns:1fr auto;gap:7px 5px;padding-top:7px;padding-bottom:7px}
  .top-actions{grid-area:1/2}
  .studio-nav{grid-column:1/-1;justify-self:start}
  .studio-nav a{font-size:12px;padding:5px 10px}
  .calendar-toolbar{grid-template-columns:1fr 1fr;padding:9px;gap:8px}
  .calendar-toolbar h2{grid-area:1/1/2/-1}
  .calendar-views button{padding:6px 5px;font-size:11px}
  .calendar-controls{gap:1px}
  .calendar-controls .icon-button{width:26px}
  #planner-view{padding-left:12px;padding-right:12px}
  .weekday-full{display:none}
  .weekday-short{display:inline}
  .calendar-day{padding:32px 2px 3px;min-height:92px}
  .calendar-date{padding:4px 2px;justify-content:center}
  .calendar-day .calendar-post{grid-template-columns:1fr;justify-items:center;border-radius:5px}
  .calendar-day .calendar-post-info{justify-content:center;min-height:19px;padding:3px 1px}
  .calendar-day .calendar-post .calendar-platforms{display:none}
  .calendar-day .calendar-post time{font-size:10px}
  .calendar-day .calendar-cover{height:35px;border-radius:4px 4px 0 0}
  .calendar-day .calendar-post-edit{width:22px;height:22px;margin:0 0 2px}
  .calendar-day .calendar-post.has-cover .calendar-post-edit{top:2px;right:2px}
  .calendar-day .calendar-post-edit .ico{font-size:15px}
  .calendar-more{padding:0 3px}
  .week-view .calendar-day{min-height:200px}
}
@media(max-width:360px){
  .planner-dialog .dialog-actions{flex-wrap:wrap}
}

.backup-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:14px}
.backup-draft{margin-top:14px}
#backup-error{margin-top:10px}
.entry-platform{display:block;color:var(--text);margin:0 0 5px}
.entry-copy+.entry-copy{margin-top:8px}

