/* Shared spacing and typography for the publishing workspace. */
.app-body {
  font-size: 13px;
  line-height: 1.45;
}

.app-body button,
.app-body select,
.app-body input,
.app-body textarea {
  font-family: inherit;
}

/* A quiet, consistent motion system across navigation, menus and forms. */
.app-body button,
.app-body a,
.app-body select,
.app-body input,
.app-body textarea,
.app-body .account-pick,
.app-body .upload-tile {
  transition: background-color .18s ease, border-color .18s ease, color .18s ease,
    box-shadow .18s ease, opacity .18s ease, transform .18s cubic-bezier(.2,.8,.2,1);
}
.app-body button:active:not(:disabled) { transform: scale(.985); }
.app-body button:disabled { cursor: not-allowed; opacity: .58; }
.app-body .nav-item:hover,
.app-body .workspace-switch:hover,
.app-body .sidebar-channel:hover { transform: translateX(2px); }
.app-body .new-post:hover,
.app-body .dark-button:hover,
.app-body .outline-button:hover,
.app-body .provider-card:hover { transform: translateY(-1px); }
.app-body .app-dialog[open] { animation: smartpost-dialog-in .22s cubic-bezier(.2,.8,.2,1) both; }
.app-body .app-dialog[open]::backdrop { animation: smartpost-backdrop-in .22s ease-out both; }
.app-body .workspace-menu:not(.hidden) { animation: smartpost-menu-in .18s cubic-bezier(.2,.8,.2,1) both; transform-origin: top left; }
.app-body .account-menu:not(.hidden) { animation: smartpost-menu-in .18s cubic-bezier(.2,.8,.2,1) both; transform-origin: bottom left; }
.app-body .view-panel:not(.hidden) { animation: smartpost-view-in .2s ease-out both; }
.app-body .toast:not(.hidden) { animation: smartpost-toast-in .2s cubic-bezier(.2,.8,.2,1) both; }
@keyframes smartpost-dialog-in { from { opacity: 0; transform: translateY(9px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes smartpost-backdrop-in { from { background: #1c2c1a00; } to { background: #1c2c1a99; } }
@keyframes smartpost-menu-in { from { opacity: 0; transform: translateY(-5px) scale(.985); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes smartpost-view-in { from { opacity: .72; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@keyframes smartpost-toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.sidebar {
  width: 264px;
  flex-basis: 264px;
  padding: 24px 16px 18px;
}

.app-brand {
  margin-bottom: 29px;
  font-size: 19px;
}

.workspace-switch {
  min-height: 55px;
  padding: 9px 10px;
  gap: 10px;
}

.workspace-text strong { font-size: 13px; }
.workspace-text small { font-size: 11px; }
.workspace-switch .chevron { margin-left: auto; font-size: 16px; line-height: 1; }
.workspace-menu { width: 286px; right: auto; padding: 7px; box-shadow: 0 18px 45px #1e33222d; }
.workspace-menu-account { display: flex; align-items: center; gap: 9px; padding: 9px 10px 12px; border-bottom: 1px solid #eaede7; margin-bottom: 9px; }
.workspace-menu-account > span:last-child { display: grid; min-width: 0; }
.workspace-menu-account strong { font-size: 12px; color: #29352b; }
.workspace-menu-account small { color: #818b80; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-menu .menu-label { padding: 3px 10px 7px; }
.workspace-menu #workspace-options > button { display: flex; align-items: center; gap: 9px; min-height: 43px; font-size: 12px; }
.workspace-menu #workspace-options > button[aria-current="true"] { background: #edf5e9; color: #315c3a; font-weight: 750; }
.workspace-menu-avatar { flex: 0 0 27px; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 6px; background: #e5eee1; color: #52715a; font-weight: 750; }
.workspace-option-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-check { display: inline-grid; place-items: center; width: 15px; flex: 0 0 15px; }
.workspace-menu .workspace-menu-create { display: flex; align-items: center; gap: 10px; min-height: 39px; color: #52664f; }
.workspace-menu-create span { width: 27px; text-align: center; font-size: 17px; line-height: 1; }
.workspace-menu-divider { border-top: 1px solid #eaede7; margin: 7px 3px; }
.workspace-menu .workspace-menu-manage { display: flex; align-items: center; gap: 9px; min-height: 39px; }
.menu-icon-settings { width: 18px; height: 18px; display: inline-block; background: url('/static/icon-settings-2.svg') center / 17px no-repeat; }
.workspace-action-dialog .subtle { margin: 11px 0 4px; font-size: 12px; }
.workspace-action-footer { display: flex; gap: 9px; justify-content: flex-end; margin-top: 15px; }
.workspace-action-dialog .danger-button { background: #a84135; border-color: #a84135; }
.workspace-action-dialog .danger-button:hover { background: #8d3329; }
.settings-dialog h2 { padding-right: 28px; }
.settings-dialog > .subtle { margin: 10px 0 0; }
.settings-section { padding: 20px 0 0; margin-top: 17px; border-top: 1px solid #e9ece7; }
.settings-section h3 { margin: 0 0 13px; font-size: 12px; color: #6d766d; }
.settings-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.settings-item > div { display: grid; min-width: 0; gap: 5px; }
.settings-item strong, .disconnect-confirm strong { font-size: 12px; }
.settings-item small { color: #8b948a; font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.invite-form { display: flex; gap: 8px; margin: 12px 0 8px; }
.invite-form input { flex: 1; min-width: 0; }
.invite-form button { flex: none; }
#invite-list .settings-item { border-top: 1px solid #eef0eb; padding: 10px 0; }
#invite-list .settings-item strong { overflow-wrap: anywhere; }
@media (max-width: 520px) { .invite-form { flex-direction: column; } }
.settings-danger { margin-top: 23px; }
.settings-danger h3 { color: #a45348; }
.settings-danger .subtle { font-size: 11px; margin: 0 0 13px; }
.settings-dialog .danger-outline { border-color: #dfb6b0; color: #a84135; flex: 0 0 auto; }
.settings-dialog .danger-outline:hover { background: #fff4f1; }
.settings-dialog .danger-outline:disabled { opacity: .45; cursor: not-allowed; }
.managed-account { display: flex; align-items: center; gap: 10px; padding: 14px 0 4px; }
.managed-account .brand-icon { width: 30px; height: 30px; }
.managed-account > div { display: grid; flex: 1; min-width: 0; }
.managed-account strong { font-size: 13px; }
.managed-account small { color: #899388; font-size: 11px; }
.disconnect-confirm { padding: 14px; margin-top: 13px; border: 1px solid #efcfca; background: #fff7f5; border-radius: 8px; }
.disconnect-confirm > div { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.disconnect-confirm .danger-button { background: #a84135; border-color: #a84135; }
.account-row .account-manage-button { background: #fff; border: 1px solid #e0e4db; color: #41483f; min-height: 34px; font-size: 11px; }
.account-row .account-manage-button:hover { background: #f6f8f4; }
.account-row .account-post-button { background: #eaf4e8; border: 1px solid #d4e6d0; color: #28643c; min-height: 34px; font-size: 11px; white-space: nowrap; }
.account-row .account-post-button:hover { background: #ddedda; }
@media (max-width: 600px) { .account-row { flex-wrap: wrap; } .account-row .status-pill { margin-left: auto; } .account-row .account-post-button { margin-left: 38px; } }
.sidebar-channel { width: 100%; border: 0; background: transparent; text-align: left; cursor: pointer; }
.sidebar-channel:hover { background: #e8eee5; }
.sidebar-channel span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-channel-more { display: inline-block; width: 15px; height: 15px; opacity: .55; background: url('/static/icon-ellipsis.svg') center / 15px no-repeat; }
.sidebar-foot .owner-badge small { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-foot .owner-badge { width: 100%; padding: 7px 4px; border: 0; border-radius: 8px; background: transparent; color: inherit; text-align: left; }
.sidebar-foot .owner-badge:hover { background: #e8eee5; }
.account-menu-chevron { width: 16px; height: 16px; margin-left: auto; background: url('/static/icon-chevron-down.svg') center / 15px no-repeat; }
.account-menu { position: absolute; z-index: 30; bottom: 72px; left: 15px; width: 286px; padding: 7px; border: 1px solid #e4e8e0; border-radius: 10px; background: #fff; box-shadow: 0 18px 45px #1e33222d; }
.account-menu-identity { display: flex; align-items: center; gap: 9px; padding: 10px 9px 12px; border-bottom: 1px solid #eaede7; }
.account-menu-identity > span:last-child { display: grid; min-width: 0; }
.account-menu-identity strong { font-size: 12px; }
.account-menu-identity small { color: #818b80; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-menu .account-menu-logout { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 39px; margin-top: 6px; padding: 8px 10px; border: 0; border-radius: 6px; background: transparent; color: #4b544b; text-align: left; font-size: 12px; }
.account-menu .account-menu-logout:hover { background: #eef4ec; }
.account-menu-logout-icon { width: 18px; height: 18px; background: url('/static/icon-log-out.svg') center / 17px no-repeat; }

.new-post {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  height: 46px;
  margin-top: 20px;
  padding: 0 14px;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.new-post .plus-icon {
  display: block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 0;
  background-size: 18px 18px;
  vertical-align: initial;
}

.main-nav { gap: 4px; margin-top: 20px; }
.nav-item { min-height: 42px; padding: 10px 12px; font-size: 13px; }
.nav-item .nav-glyph { flex: 0 0 20px; }
.side-heading { font-size: 11px; }
.sidebar-channel { font-size: 12px; }
.sidebar-channel-row { display: flex; align-items: center; gap: 2px; min-width: 0; border-radius: 8px; }
.sidebar-channel-row:hover { background: #e8eee5; }
.sidebar-channel-row .sidebar-channel { flex: 1; min-width: 0; padding-right: 2px; }
.sidebar-channel.active { background: #e1ecdd; color: #315e3a; font-weight: 750; }
.sidebar-channel-settings { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 7px; background: transparent; cursor: pointer; }
.sidebar-channel-settings:hover { background: #d8e5d3; }
.connect-link { display: inline-flex; align-items: center; min-height: 34px; font-size: 12px; }
.empty-small { font-size: 12px; line-height: 1.5; }

.content { padding: 38px 40px 40px; }
.topbar { align-items: flex-end; gap: 24px; }
.topbar h1 { font-size: 28px; letter-spacing: -.045em; }
.page-subtitle { font-size: 12px; }
.top-actions { gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.ghost-button,
.outline-button,
.dark-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  height: auto;
  padding: 0 15px;
  font-size: 12px;
  line-height: 1.2;
}

.calendar-toolbar { min-height: 70px; height: auto; padding: 12px 20px; }
.date-nav { gap: 12px; }
.date-nav button { display: grid; place-items: center; width: 30px; height: 34px; line-height: 1; }
.date-nav strong { font-size: 15px; margin-inline: 4px; }
.week-pill,
.timezone-tag { font-size: 11px; padding: 7px 11px; }
.toolbar-right { gap: 11px; }
.toolbar-right .timezone-tag { display: none; }

/* Month overview keeps several posts scannable without expanding each day. */
.calendar-grid { grid-template-columns: repeat(7, minmax(104px, 1fr)); grid-template-rows: 38px repeat(var(--calendar-weeks, 6), minmax(110px, 1fr)); min-width: 728px; }
.month-weekday { display: grid; place-items: center; border-right: 1px solid #e9ebe6; border-bottom: 1px solid #e9ebe6; background: #fafbf8; color: #697468; font-size: 11px; font-weight: 750; }
.month-weekday:last-of-type { border-right: 0; }
.month-weekday.sunday { color: #be665c; }
.month-weekday.saturday { color: #5e80ae; }
.calendar-day { min-height: 110px; height: 100%; padding: 7px 8px; border-right: 1px solid #e9ebe6; border-bottom: 1px solid #e9ebe6; background: #fff; }
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day.outside-month { background: #f8f9f6; }
.calendar-day.outside-month .day-head { color: #a7ada4; }
.calendar-day .day-head { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 25px; padding: 0 2px; border: 0; background: transparent; color: #414a40; text-align: left; cursor: pointer; }
.calendar-day .day-head strong { font-size: 12px; line-height: 23px; }
.calendar-day .day-head span { color: #8b978a; font-size: 9px; }
.calendar-day .day-head.today strong { width: 25px; height: 25px; border-radius: 50%; background: #2f6541; color: #fff; text-align: center; }
.calendar-day .day-content { min-height: 0; padding: 5px 0 0; background: none; }
.calendar-day .calendar-card { display: flex; align-items: center; gap: 6px; width: 100%; height: 27px; margin: 0 0 4px; padding: 3px 5px; border-radius: 6px; text-align: left; cursor: pointer; }
.calendar-day .calendar-card img { flex: 0 0 13px; width: 13px; height: 13px; }
.calendar-day .calendar-card span { min-width: 0; display: flex; align-items: baseline; gap: 5px; }
.calendar-day .calendar-card small { flex: 0 0 auto; color: #73806f; font-size: 9px; }
.calendar-day .calendar-card strong { display: block; min-width: 0; margin: 0; color: #334234; font-size: 10px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.calendar-day .calendar-card.published { border-color: #dbe6f7; background: #f0f5fd; }
.calendar-day .calendar-more { padding: 0 4px; border: 0; background: transparent; color: #4d7554; font-size: 10px; font-weight: 750; cursor: pointer; }
.calendar-detail-dialog { width: min(540px, calc(100% - 24px)); padding: 28px; }
.calendar-detail-dialog h2 { margin: 0 30px 3px 0; font-size: 20px; }
.calendar-detail-dialog .subtle { margin: 0 0 14px; }
.calendar-detail-list { display: grid; gap: 5px; max-height: 45vh; overflow: auto; }
.calendar-detail-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 53px; padding: 9px; border: 1px solid #e5ebe3; border-radius: 8px; background: #fff; text-align: left; cursor: pointer; }
.calendar-detail-row:hover { background: #f4f8f2; }
.calendar-detail-row img { flex: 0 0 20px; width: 20px; height: 20px; }
.calendar-detail-row span:nth-child(2) { min-width: 0; flex: 1; }
.calendar-detail-row small { display: block; color: #819080; font-size: 10px; }
.calendar-detail-row strong { display: block; margin-top: 2px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; }
.calendar-detail-view { margin-top: 17px; padding: 16px; border-radius: 9px; background: #f5f8f3; }
.calendar-detail-view h3 { margin: 0 0 5px; font-size: 15px; }
.calendar-detail-view p:last-child { margin: 12px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.calendar-detail-empty { padding: 15px; color: #8b9589; text-align: center; }

.toolbar-right select,
.app-dialog select {
  -webkit-appearance: none;
  appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b665a' stroke-width='2' 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 12px center;
  background-size: 16px 16px;
  padding-right: 38px;
}

.toolbar-right select {
  min-width: 195px;
  height: 38px;
  padding-left: 12px;
  border-color: #dfe6dc;
  font-size: 12px;
  text-overflow: ellipsis;
}

.app-dialog h2 { font-size: 22px; }
.app-dialog .field-label { font-size: 12px; margin-top: 20px; }
.app-dialog input:not([type=checkbox]):not([type=file]),
.app-dialog textarea,
.app-dialog select { font-size: 13px; line-height: 1.45; }
.app-dialog select { padding-right: 38px; }

/* App-owned selection menus replace platform-native popups without changing form values. */
.smart-select { position: relative; width: 100%; min-width: 0; }
.toolbar-right .smart-select { width: 218px; }
.smart-select .smart-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}
.app-body .smart-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  padding: 9px 12px 9px 14px;
  border: 1px solid #dfe6dc;
  border-radius: 9px;
  background: #fff;
  color: #344238;
  text-align: left;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
  box-shadow: 0 1px 2px #263b2908;
}
.app-body .smart-select-trigger:hover,
.app-body .smart-select.is-open .smart-select-trigger { border-color: #a8c5a8; background: #fcfefa; }
.app-body .smart-select.is-open .smart-select-trigger { box-shadow: 0 0 0 3px #dceede; }
.smart-select-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.smart-select-chevron {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  background: url('/static/icon-chevron-down.svg') center / 16px no-repeat;
  opacity: .72;
  transition: transform .18s ease;
}
.smart-select.is-open .smart-select-chevron { transform: rotate(180deg); }
.smart-select-menu {
  position: absolute;
  z-index: 80;
  top: calc(100% + 7px);
  right: 0;
  width: max(100%, 235px);
  max-width: min(320px, calc(100vw - 36px));
  max-height: 264px;
  overflow: auto;
  padding: 5px;
  border: 1px solid #e2e8df;
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 18px 46px #243c2730, 0 2px 7px #243c2710;
  animation: smartpost-menu-in .16s cubic-bezier(.2,.8,.2,1) both;
}
.smart-select-menu[hidden] { display: none; }
.app-body .smart-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 38px;
  padding: 9px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #3d4a3d;
  text-align: left;
  font-size: 12px;
  line-height: 1.4;
  white-space: normal;
}
.app-body .smart-select-option:hover,
.app-body .smart-select-option:focus-visible { background: #f0f5ee; outline: 0; }
.app-body .smart-select-option[aria-selected="true"] { background: #edf5eb; color: #285c36; font-weight: 750; }
.smart-select-option[aria-selected="true"]::after { content: '✓'; flex: 0 0 auto; color: #468356; font-size: 14px; }
.app-dialog .field-note,
.app-dialog .note-box,
.app-dialog .check-row { font-size: 11px; }
.app-dialog .check-row { align-items: center; gap: 9px; }
.upload-tile strong { font-size: 12px; }
.upload-tile small { font-size: 10px; }
.upload-tile .upload-icon {
  display: block;
  width: 22px;
  height: 22px;
  font-size: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 21px 21px;
}
.upload-tile[for="post-video"] .upload-icon { background-image: url('/static/icon-play.svg'); }
.upload-tile[for="post-photos"] .upload-icon { background-image: url('/static/icon-images.svg'); }
.dialog-footer { flex-wrap: wrap; gap: 10px; }

.app-body button:focus-visible,
.app-body select:focus-visible,
.app-body input:focus-visible,
.app-body textarea:focus-visible {
  outline: 2px solid #4b8c59;
  outline-offset: 2px;
}

@media (max-width: 850px) {
  .sidebar { width: 72px; flex-basis: 72px; padding: 16px 10px; }
  .sidebar .app-brand { justify-content: center; margin: 0 0 22px; }
  .sidebar .app-brand span:last-child,
  .sidebar .workspace-text,
  .sidebar .workspace-switch .chevron,
  .sidebar .side-heading,
  .sidebar .channel-list,
  .sidebar .connect-link,
  .sidebar .owner-badge > span:nth-child(2),
  .sidebar .owner-badge .account-menu-chevron { display: none; }
  .sidebar-foot .owner-badge { justify-content: center; }
  .sidebar .workspace-switch { justify-content: center; width: 52px; min-height: 52px; padding: 8px; }
  .sidebar .workspace-menu { left: 10px; right: auto; width: min(286px, calc(100vw - 20px)); top: 99px; }
  .sidebar .account-menu { left: 10px; width: min(286px, calc(100vw - 20px)); }
  .sidebar .main-nav .nav-item { justify-content: center; padding: 11px; font-size: 0; }
  .sidebar .main-nav .nav-glyph { flex-basis: 20px; }
  .sidebar-foot { padding-inline: 0; }
  .new-post { width: 46px; height: 46px; padding: 0; margin-inline: auto; font-size: 0; }
  .new-post .plus-icon { flex-basis: 20px; width: 20px; height: 20px; background-size: 20px 20px; }
  .content { padding: 25px 20px; }
  .topbar { align-items: flex-start; flex-wrap: wrap; }
  .top-actions { width: 100%; justify-content: flex-start; }
  .top-actions .dark-button { min-height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .app-body *,
  .app-body *::before,
  .app-body *::after,
  .app-body .app-dialog::backdrop { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media (max-width: 600px) {
  .content { padding: 18px 12px; }
  .topbar { gap: 12px; }
  .topbar h1 { font-size: 22px; }
  .top-actions .dark-button { padding-inline: 10px; font-size: 11px; }
  .calendar-toolbar { align-items: flex-start; flex-direction: column; gap: 10px; }
  .toolbar-right { width: 100%; }
  .toolbar-right .smart-select { flex: 1; min-width: 0; max-width: 100%; }
  .composer-main,
  .composer-side { padding: 18px; }
}

/* Shared Smart Post identity across the application and sign-in. */
img.brand-mark { display: block; flex: 0 0 auto; object-fit: cover; padding: 0; border-radius: 9px; }

/* Composer: only relevant platform settings, media previews and date/time controls. */
.composer-dialog { width: min(1040px, calc(100% - 24px)); }
.composer-body { grid-template-columns: minmax(0, 1fr) 310px; }
.composer-intro { margin: 5px 0 0; font-size: 12px; color: #7b8579; }
.composer-side { padding: 22px; }
.composer-side section { margin-top: 22px; }
.composer-side section.hidden, .composer-main .hidden { display: none !important; }
.composer-section-title { font-size: 12px; margin: 0 0 10px; color: #4c594b; }
.composer-side .consent-row { margin-top: 24px; padding-top: 16px; border-top: 1px solid #e5e9e1; }
.composer-dialog .dialog-footer { position: sticky; bottom: 0; background: #fff; z-index: 3; }
.composer-dialog .field-label { font-size: 12px; }
.composer-dialog .file-row:has(.upload-tile.hidden) { grid-template-columns: 1fr; }
.media-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin: 14px 0; }
.media-preview-card { position: relative; min-width: 0; border: 1px solid #e2e8df; border-radius: 12px; overflow: hidden; background: #f6f8f3; }
.media-open { display: block; padding: 0; border: 0; width: 100%; background: transparent; cursor: zoom-in; }
.media-preview-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.media-preview-card.video-card { grid-column: 1 / -1; }
.media-preview-card video { display: block; width: 100%; max-height: 330px; background: #172019; object-fit: contain; }
.media-file-name { display: block; padding: 9px 10px; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.media-remove { position: absolute; top: 7px; right: 7px; display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid #e5e8e1; border-radius: 50%; color: #29332b; background: #fffffff2; font-size: 21px; box-shadow: 0 2px 8px #0002; }
.media-remove:hover { background: #fff0ec; color: #a33a31; }
.media-order { position: absolute; top: 8px; left: 8px; border-radius: 7px; background: #243328c9; color: white; padding: 3px 7px; font-size: 11px; pointer-events: none; }
.media-lightbox { width: min(920px, calc(100% - 30px)); padding: 42px 16px 16px; background: #f8faf6; }
.media-lightbox img { display: block; width: 100%; max-height: 76vh; object-fit: contain; }
.schedule-picker { background: #fff; border: 1px solid #e0e7db; border-radius: 12px; padding: 12px; }
.schedule-shortcuts, .schedule-time-presets { display: flex; gap: 5px; }
.schedule-shortcuts button, .schedule-time-presets button { flex: 1; border: 1px solid #e4e9df; background: #f9fbf7; border-radius: 6px; padding: 7px 2px; font-size: 11px; color: #53674f; }
.schedule-shortcuts button:hover, .schedule-time-presets button:hover { background: #eaf4e5; border-color: #a9c5a2; }
.schedule-month-nav { display: flex; justify-content: space-between; align-items: center; margin: 12px 0 8px; }
.schedule-month-nav strong { font-size: 13px; }
.schedule-month-nav button { width: 28px; height: 28px; border: 0; border-radius: 6px; background: #f4f7f1; display: grid; place-items: center; }
.schedule-month-nav img { width: 16px; height: 16px; }
.schedule-weekdays, .schedule-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; }
.schedule-weekdays { color: #8a9385; font-size: 10px; margin-bottom: 5px; }
.schedule-days button { aspect-ratio: 1; min-height: 27px; border: 0; border-radius: 7px; padding: 0; background: #fff; color: #3a4637; font-size: 12px; }
.schedule-days button:hover { background: #edf5e8; }
.schedule-days button.is-today { box-shadow: inset 0 0 0 1px #b6cdb1; }
.schedule-days button[aria-pressed="true"] { background: #2e5d3b; color: #fff; font-weight: 700; }
.schedule-picker button:disabled { color: #c3c9bf; cursor: not-allowed; background: transparent; }
.schedule-time-label { display: flex; justify-content: space-between; margin: 14px 0 7px; font-size: 11px; font-weight: 600; }
.schedule-time-label small { color: #8b9585; font-weight: 400; }
.schedule-time { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.schedule-time .smart-select-trigger { min-height: 38px; padding: 8px 10px; font-size: 13px; }
.schedule-time .smart-select-menu { max-height: 180px; }
.schedule-time-presets { margin-top: 8px; }
.schedule-summary { margin: 12px -12px -12px; padding: 11px 8px; border-radius: 0 0 12px 12px; background: #edf5e9; color: #38603c; font-size: 11px; font-weight: 650; text-align: center; }
.schedule-summary.invalid { color: #a14436; background: #fff2ed; }
.composer-dialog button:focus-visible { outline: 2px solid #709d72; outline-offset: 2px; }
@media(max-width: 850px) { .composer-body { grid-template-columns: 1fr; } .schedule-picker { max-width: 380px; } .composer-side { border-left: 0; } }
@media(prefers-reduced-motion: no-preference) { .media-preview-card { animation: smartpost-view-in .18s ease-out; } }

.calendar-detail-media{display:flex;gap:12px;overflow-x:auto;margin:16px 0;padding-bottom:6px}.calendar-detail-media img,.calendar-detail-media video{width:180px;max-height:260px;object-fit:contain;flex-shrink:0;border-radius:12px;background:#f3f5f2}#calendar-detail-caption{white-space:pre-wrap;overflow-wrap:anywhere}#calendar-detail-cancel{color:#a33e36;border-color:#e4bab5}#calendar-detail-cancel[hidden]{display:none}

.youtube-title-section{margin:20px 0}.youtube-title-section .field-label{font-size:18px;color:#26352b}.youtube-title-section input{font-size:21px;font-weight:650;min-height:60px}.workspace-avatar,.workspace-menu-avatar{overflow:hidden}.workspace-avatar img,.workspace-menu-avatar img{width:100%;height:100%;object-fit:cover}.workspace-icon-preview{width:56px;height:56px;object-fit:cover;border-radius:12px}.workspace-icon-tools{display:flex;gap:12px;align-items:center;margin:16px 0}
#youtube-title{font-size:20px;font-weight:650;min-height:60px}
@media(max-width:640px){#youtube-title{font-size:18px}}
