:root {
  --paper: #f4f6fb;
  --card: rgba(255,255,255,.88);
  --ink: #172033;
  --muted: #697287;
  --line: #dfe3ec;
  --green: #4f46e5;
  --lime: #a7f3d0;
  --peach: #fed7aa;
  --red: #c34c3e;
  --shadow: 0 18px 50px rgba(40,48,74,.08);
}
* { box-sizing: border-box; }
body {
  margin: 0; color: var(--ink); background: var(--paper);
  font-family: "DM Sans", sans-serif; min-height: 100vh;
}
.ambient { position: fixed; border-radius: 50%; filter: blur(1px); z-index: -1; opacity: .45; }
.ambient.one { width: 520px; height: 520px; background: #dcd9ff; top: -240px; right: -90px; }
.ambient.two { width: 430px; height: 430px; background: #d9f7ee; bottom: -220px; left: -120px; }
.shell { width: min(1180px, calc(100% - 40px)); margin: auto; padding-bottom: 80px; }
.topbar { position: sticky; top: 0; z-index: 10; min-height: 76px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(23,32,51,.09); background: rgba(244,246,251,.82); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font: 800 19px Manrope; }
.brand-mark { display: grid; place-items: center; color: white; background: linear-gradient(135deg, #4f46e5, #7c3aed); width: 36px; height: 36px; border-radius: 11px; font-size: 12px; box-shadow: 0 8px 20px rgba(79,70,229,.24); }
.top-actions { display: flex; align-items: center; gap: 25px; }
.view-tabs { display: flex; align-items: center; gap: 3px; padding: 4px; background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: 12px; }
.view-tabs button { border: 0; background: transparent; color: var(--muted); padding: 8px 12px; border-radius: 9px; cursor: pointer; font: 700 11px Manrope; }
.view-tabs button.active { background: #272a3d; color: white; }
.view-tabs span { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 4px; border-radius: 9px; background: rgba(255,255,255,.13); font-size: 9px; }
.connection { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 13px; }
.status-dot { width: 8px; height: 8px; background: #c4c6c3; border-radius: 50%; }
.connection.online .status-dot { background: #55a979; box-shadow: 0 0 0 5px rgba(85,169,121,.12); }
.status-dot.online { background: #55a979; box-shadow: 0 0 0 5px rgba(85,169,121,.12); }
.profile-trigger { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: white; border-radius: 12px; padding: 5px 10px 5px 5px; color: var(--ink); cursor: pointer; }
.profile-trigger span,.profile-dialog-head > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: white; background: linear-gradient(135deg, #4f46e5, #7c3aed); font: 700 12px Manrope; }
.profile-trigger b { font: 700 11px Manrope; }
.hero { display: flex; justify-content: space-between; align-items: end; padding: 58px 0 34px; }
.eyebrow,.step { font: 700 11px Manrope; letter-spacing: .15em; color: var(--green); }
h1 { font: 800 clamp(40px, 5.4vw, 64px)/1.02 Manrope; letter-spacing: -.052em; margin: 14px 0 18px; max-width: 820px; }
.hero p { font-size: 17px; color: var(--muted); max-width: 610px; line-height: 1.6; margin: 0; }
.hero-stat { text-align: right; padding: 0 12px 7px 30px; }
.hero-stat span { display: block; font: 800 58px/1 Manrope; }
.hero-stat small { color: var(--muted); }
.workflow-progress { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; color: var(--muted); font: 700 11px Manrope; }
.workflow-progress span { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.workflow-progress b { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: white; border: 1px solid var(--line); color: var(--green); }
.workflow-progress i { height: 1px; flex: 1; background: var(--line); }
.step-grid,.queue-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 18px; margin-bottom: 18px; }
.rhythm-panel { grid-column: 1 / -1; }
.panel { background: var(--card); border: 1px solid rgba(255,255,255,.92); box-shadow: var(--shadow); border-radius: 20px; padding: 26px; backdrop-filter: blur(16px); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.panel-heading > div { display: flex; align-items: baseline; gap: 13px; }
h2 { font: 750 22px Manrope; letter-spacing: -.03em; margin: 0; }
h3 { font: 700 17px Manrope; margin: 15px 0 6px; }
.hint { color: var(--muted); font-size: 12px; }
input,select,textarea { width: 100%; border: 1px solid var(--line); background: rgba(255,255,255,.8); color: var(--ink); border-radius: 12px; padding: 12px 13px; font: inherit; outline: none; }
input:focus,select:focus,textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(47,107,79,.1); }
.folder-row { display: flex; gap: 9px; }
.button { border: 0; border-radius: 12px; padding: 12px 17px; font: 700 13px Manrope; cursor: pointer; transition: transform .15s, opacity .15s; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .42; cursor: not-allowed; transform: none; }
.button.secondary { background: #e7ebe5; color: var(--ink); white-space: nowrap; }
.button.primary { color: white; background: linear-gradient(135deg, #4f46e5, #6d5ce7); box-shadow: 0 8px 18px rgba(79,70,229,.18); }
.button.ink { color: white; background: var(--ink); }
.button.danger { color: white; background: var(--red); }
.full { width: 100%; margin-top: 18px; }
.text-button { border: 0; background: transparent; color: var(--green); font: 700 12px Manrope; cursor: pointer; padding: 4px; }
.divider { display: flex; align-items: center; gap: 12px; color: #9a9e99; font-size: 11px; margin: 17px 0; }
.divider:before,.divider:after { content: ""; height: 1px; background: var(--line); flex: 1; }
.dropzone { border: 1px dashed #b8bdb7; border-radius: 15px; padding: 23px; display: grid; place-items: center; text-align: center; cursor: pointer; }
.dropzone:hover { border-color: var(--green); background: rgba(79,70,229,.05); }
.dropzone small { color: var(--muted); margin-top: 4px; }
.drop-icon { font-size: 22px; color: var(--green); }
.segmented { background: #eceee8; border-radius: 12px; padding: 4px; display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 18px; }
.segmented button { border: 0; background: transparent; border-radius: 9px; padding: 9px; color: var(--muted); cursor: pointer; font: 600 12px Manrope; }
.segmented button.active { background: white; color: var(--green); box-shadow: 0 3px 12px rgba(0,0,0,.05); }
.schedule-form { display: grid; grid-template-columns: 1.2fr 1fr .7fr; gap: 10px; }
.rhythm-panel .schedule-form { grid-template-columns: 1fr 1fr; }
label { font-size: 11px; font-weight: 700; color: var(--muted); }
label input,label select { margin-top: 7px; color: var(--ink); }
.timezone-label { display: block; margin-top: 14px; }
.planner-start-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.date-quick-actions { display: flex; gap: 5px; }
.date-quick-actions button { border: 1px solid #d8d5ff; border-radius: 8px; padding: 5px 8px; background: #f3f2ff; color: #4f46e5; font: 700 9px Manrope; cursor: pointer; }
.date-quick-actions button:disabled { opacity: .42; cursor: not-allowed; }
.planner-start > input { margin-top: 7px; }
.overlap-option { display: flex; align-items: flex-start; gap: 10px; margin-top: 15px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.58); cursor: pointer; }
.overlap-option input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: #5b50d6; flex: 0 0 auto; }
.overlap-option span { display: grid; gap: 3px; }
.overlap-option strong { color: var(--ink); font: 750 11px Manrope; }
.overlap-option small { color: var(--muted); font-weight: 500; line-height: 1.4; }
.post-defaults { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 15px; }
.post-defaults summary { cursor: pointer; color: var(--green); font: 700 12px Manrope; }
.post-settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 15px; }
.wide-setting { grid-column: 1 / -1; }
.input-suffix { display: flex; align-items: center; gap: 9px; }
.input-suffix span { white-space: nowrap; font-size: 10px; }
.post-checks { display: flex; flex-wrap: wrap; gap: 11px 18px; margin-top: 15px; }
.post-checks label { display: flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 500; }
.post-checks input { width: auto; margin: 0; accent-color: var(--green); }
.post-checks.stacked { display: grid; }
.member-note { color: #76512f; background: #f8ead9; border-radius: 10px; padding: 10px; font-size: 11px; line-height: 1.45; }
.weekday-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.weekday-strip button { position: relative; border: 1px solid var(--line); background: rgba(255,255,255,.7); color: var(--muted); border-radius: 10px; padding: 10px 3px; cursor: pointer; font: 700 10px Manrope; }
.weekday-strip button.active { border-color: var(--green); background: var(--green); color: white; }
.weekday-strip button small { position: absolute; right: -3px; top: -6px; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--lime); color: #24462f; font-size: 8px; }
.day-times-head { display: flex; justify-content: space-between; align-items: center; margin: 17px 2px 9px; }
.day-times-head strong { font: 700 12px Manrope; color: var(--ink); }
.day-times { min-height: 47px; display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.time-pill { display: flex; align-items: center; border: 1px solid var(--line); background: white; border-radius: 11px; padding: 2px 4px 2px 9px; }
.time-pill input { width: 92px; border: 0; padding: 7px 2px; margin: 0; box-shadow: none; }
.time-pill button { border: 0; background: transparent; color: var(--red); font-size: 17px; cursor: pointer; padding: 2px 5px; }
.no-times { color: var(--muted); font-size: 11px; padding: 9px 1px; }
.naming-panel > label { display: block; margin-top: 12px; }
.template-description textarea { margin-top: 7px; resize: vertical; min-height: 112px; }
.template-help { display: flex; align-items: center; gap: 7px; margin-top: 7px; color: var(--muted); font-size: 10px; }
.template-help button { border: 1px solid #d9d5ff; background: #f0efff; color: var(--green); border-radius: 7px; padding: 4px 7px; font: 700 10px Manrope; cursor: pointer; }
.template-preview { margin-top: 16px; border: 1px solid var(--line); border-radius: 13px; padding: 13px; background: rgba(247,248,252,.82); }
.template-preview small,.template-preview strong { display: block; }
.template-preview small { color: var(--muted); margin-bottom: 6px; }
.template-preview strong { font: 700 12px Manrope; }
.template-preview p { margin: 6px 0 0; color: var(--muted); font-size: 10px; white-space: pre-wrap; max-height: 64px; overflow: hidden; }
.hidden { display: none !important; }
.candidates-panel { margin-bottom: 18px; }
.empty-state { text-align: center; padding: 30px 12px 36px; color: var(--muted); }
.empty-state p { margin: 0; }
.empty-art { display: flex; justify-content: center; }
.empty-art span { background: white; border: 1px solid var(--line); padding: 14px 11px; border-radius: 10px; font: 700 10px Manrope; margin: 0 -2px; transform: rotate(-5deg); box-shadow: 0 8px 18px rgba(0,0,0,.05); color: var(--green); }
.empty-art span:nth-child(2) { transform: rotate(5deg) translateY(-5px); color: #a4603a; }
.empty-art span:nth-child(3) { transform: rotate(-2deg); color: #555; }
.candidate-list { display: grid; gap: 10px; }
.candidate { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; border: 1px solid var(--line); border-radius: 15px; padding: 15px; }
.candidate.invalid { opacity: .65; }
.candidate input[type=checkbox] { width: 18px; margin-top: 3px; accent-color: var(--green); }
.candidate-main { min-width: 0; }
.candidate input.title { font: 700 14px Manrope; padding: 0; border: 0; background: transparent; box-shadow: none; }
.candidate textarea { margin-top: 8px; min-height: 58px; resize: vertical; font-size: 12px; }
.file-chips { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.chip { background: #eef0eb; border-radius: 20px; padding: 4px 8px; font-size: 10px; color: var(--muted); }
.chip.missing { background: #f8dfd9; color: var(--red); }
.schedule-preview { max-height: 420px; overflow: auto; }
.queue-list { display: grid; gap: 10px; }
.timeline-item { display: grid; grid-template-columns: 46px 1fr; gap: 12px; position: relative; padding-bottom: 17px; }
.timeline-item:not(:last-child):before { content: ""; position: absolute; left: 22px; top: 39px; bottom: 0; width: 1px; background: var(--line); }
.timeline-number { width: 44px; height: 34px; background: #ecf3dc; color: var(--green); border-radius: 10px; display: grid; place-items: center; font: 700 12px Manrope; }
.timeline-item strong { font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.timeline-item small { color: var(--muted); }
.empty-small { color: var(--muted); font-size: 13px; padding: 18px 0; }
.queue-item { padding: 13px 0; border-bottom: 1px solid var(--line); }
.queue-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.queue-title { font: 700 13px Manrope; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { border-radius: 20px; padding: 4px 8px; font: 700 9px Manrope; text-transform: uppercase; letter-spacing: .06em; background: #ebece9; color: #6d716d; }
.badge.uploading { background: #e5efd7; color: var(--green); }
.badge.scheduled { background: #dceee5; color: #327153; }
.badge.uploaded_private { background: #ece9f8; color: #594a91; }
.badge.failed { background: #f7ddd8; color: var(--red); }
.badge.planned { background: #eee9dc; color: #77684c; }
.badge.queued { background: #e8f4ca; color: #426124; }
.badge.membership_action { background: #f6e3c5; color: #8a5b20; }
.badge.published { background: #dfeaf4; color: #315f7e; }
.queue-meta { color: var(--muted); font-size: 11px; margin-top: 4px; }
.progress { height: 4px; border-radius: 3px; background: #e5e7e2; margin-top: 9px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--green); transition: width .3s; }
.queue-error { font-size: 10px; color: var(--red); margin-top: 7px; }
.queue-actions button,.queue-actions a { border: 0; background: none; color: var(--green); cursor: pointer; padding: 5px 0 0 10px; font-size: 10px; text-decoration: none; }
.queue-actions .ready-action { padding-left: 0; font-weight: 700; }
.calendar-hero { display: flex; align-items: end; justify-content: space-between; gap: 30px; padding: 67px 0 34px; }
.calendar-hero h1 { margin-bottom: 10px; }
.calendar-hero p { color: var(--muted); max-width: 640px; margin: 0; line-height: 1.55; }
.calendar-actions { display: flex; gap: 9px; padding-bottom: 7px; white-space: nowrap; }
.block-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin: 16px 0 7px; }
.block-weekdays label { display: grid; place-items: center; gap: 5px; padding: 10px 4px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.72); cursor: pointer; color: var(--ink); }
.block-weekdays input { width: auto; margin: 0; accent-color: var(--green); }
.calendar-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(390px, .85fr); gap: 18px; align-items: start; }
.upload-panel { position: sticky; top: 94px; }
.calendar-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 18px; }
.calendar-stats button { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.72); border-radius: 14px; padding: 13px 15px; cursor: pointer; color: var(--ink); text-align: left; }
.calendar-stats button.active { border-color: #bcb6ff; background: #eeedff; box-shadow: 0 0 0 3px rgba(79,70,229,.08); }
.calendar-stats span { font: 800 22px Manrope; }
.calendar-stats small { color: var(--muted); }
.selection-bar { display: grid; grid-template-columns: minmax(180px,1fr) auto auto; align-items: center; gap: 14px; margin: -5px 0 18px; padding: 12px 14px; border: 1px solid #d8d5ff; border-radius: 14px; background: linear-gradient(135deg, #f7f6ff, #f1f5ff); box-shadow: 0 7px 22px rgba(79,70,229,.06); }
.selection-summary { display: grid; gap: 2px; }
.selection-summary strong { font: 800 13px Manrope; color: #4038b5; }
.selection-summary small { color: var(--muted); font-size: 10px; }
.selection-shortcuts,.selection-actions { display: flex; align-items: center; gap: 6px; }
.selection-bar button { min-height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; background: white; color: var(--ink); font: 700 9px Manrope; cursor: pointer; white-space: nowrap; }
.selection-bar button:disabled { opacity: .4; cursor: not-allowed; }
.selection-bar .selection-ready { color: #276749; border-color: #bce4cf; background: #edf9f2; }
.selection-bar .selection-planned { color: #765828; border-color: #ead9b8; background: #fbf5e9; }
.selection-bar .selection-remove { color: var(--red); border-color: #f0cbc5; background: #fff5f3; }
.calendar-toolbar { display: flex; justify-content: center; align-items: center; gap: 20px; margin-bottom: 22px; }
.month-arrow { border: 1px solid var(--line); background: rgba(255,255,255,.7); width: 34px; height: 34px; border-radius: 10px; cursor: pointer; color: var(--ink); }
.calendar-weekdays,.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.calendar-weekdays { border-bottom: 1px solid var(--line); }
.calendar-weekdays span { text-align: center; color: var(--muted); font: 700 9px Manrope; text-transform: uppercase; letter-spacing: .08em; padding-bottom: 9px; }
.calendar-grid { border-left: 1px solid var(--line); }
.calendar-day { min-height: 108px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px 6px; background: rgba(255,255,255,.33); overflow: hidden; }
.calendar-day.outside { background: rgba(228,229,223,.28); }
.calendar-day.has-items { background: rgba(255,255,255,.72); }
.calendar-help { color: var(--muted); font-size: 11px; text-align: center; margin: -12px 0 15px; }
.day-number { display: flex; align-items: center; gap: 5px; color: var(--muted); font: 700 10px Manrope; margin: 0 0 6px 0; padding: 2px 3px; border: 0; background: transparent; cursor: pointer; }
.day-number span { font-size: 8px; color: var(--red); text-transform: uppercase; letter-spacing: .05em; }
.calendar-day.blocked { background: repeating-linear-gradient(135deg, rgba(195,76,62,.06), rgba(195,76,62,.06) 6px, rgba(195,76,62,.11) 6px, rgba(195,76,62,.11) 12px); }
.calendar-day.blocked .day-events { opacity: .72; }
.day-events { display: grid; gap: 4px; }
.calendar-event { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 4px; border: 0; border-left: 3px solid #a99f84; background: #eeebe2; color: #594f3d; border-radius: 5px; padding: 4px; text-align: left; font: 600 9px/1.25 "DM Sans"; white-space: nowrap; overflow: hidden; }
.calendar-event.selected { box-shadow: 0 0 0 2px #6d5ce7; }
.calendar-event > input { width: 12px; height: 12px; margin: 0; accent-color: #5b50d6; cursor: pointer; }
.calendar-event-open { min-width: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.calendar-event span { display: block; font-size: 8px; opacity: .65; }
.calendar-event.queued { border-color: #83a542; background: #e9f3d1; color: #425626; }
.calendar-event.uploading { border-color: #4e9871; background: #dfeee5; color: #2d684b; }
.calendar-event.scheduled { border-color: #3879a0; background: #dfedf4; color: #285d7c; }
.calendar-event.uploaded_private { border-color: #7566a8; background: #ece9f8; color: #4f427c; }
.calendar-event.failed { border-color: var(--red); background: #f5e0db; color: #8c3d32; }
.calendar-event.membership_action { border-color: #b97a2d; background: #f6e7cf; color: #7d531f; }
.calendar-event.published { border-color: #3879a0; background: #dfedf4; color: #285d7c; }
.agenda-overview { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0 14px; margin-top: -10px; border-bottom: 1px solid var(--line); }
.agenda-overview > div { display: flex; gap: 7px; }
.agenda-count { display: inline-flex; align-items: center; gap: 4px; border-radius: 99px; padding: 6px 9px; font-size: 10px; }
.agenda-count b { font: 800 12px Manrope; }
.agenda-count.planned { color: #765828; background: #fbf5e9; }
.agenda-count.ready { color: #276749; background: #edf9f2; }
.agenda-more { padding: 12px 0 2px; text-align: center; color: var(--muted); font-size: 10px; border-top: 1px solid var(--line); }
.content-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 13px; padding: 12px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.74); }
.content-card.selected { border-color: #7a70e8; box-shadow: 0 0 0 3px rgba(79,70,229,.1); }
.content-thumb { width: 112px; aspect-ratio: 16/9; border-radius: 10px; object-fit: cover; background: #e7e9f0; }
.content-card-body { min-width: 0; }
.queue-title-with-select { min-width: 0; display: grid; gap: 3px; }
.agenda-select { display: inline-flex; align-items: center; gap: 5px; width: max-content; color: #5b50d6; font: 700 9px Manrope; cursor: pointer; }
.agenda-select input { width: 13px; height: 13px; margin: 0; accent-color: #5b50d6; }
.content-card .queue-meta { display: flex; flex-wrap: wrap; gap: 5px; }
.content-card .queue-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.content-card .queue-actions .queue-action { display: inline-flex; align-items: center; justify-content: center; min-height: 31px; width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 6px 7px; background: white; color: var(--ink); font: 700 9px Manrope; cursor: pointer; text-decoration: none; text-align: center; }
.content-card .queue-action.edit { color: #4f46e5; border-color: #d8d5ff; background: #f3f2ff; }
.content-card .queue-action.ready { color: #276749; border-color: #bce4cf; background: #edf9f2; }
.content-card .queue-action.planned { color: #765828; border-color: #ead9b8; background: #fbf5e9; }
.content-card .queue-action.retry { color: #8b5b19; border-color: #efd7af; background: #fff7e8; }
.content-card .queue-action.external { color: #315f7e; border-color: #c8dce9; background: #eff7fb; }
.content-card .queue-action.remove { color: var(--red); border-color: #f0cbc5; background: #fff5f3; }
.profile-dialog-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.profile-dialog-head > span { width: 44px; height: 44px; border-radius: 13px; font-size: 16px; }
.profile-dialog-head small,.profile-channel-row small { display: block; color: var(--muted); margin-bottom: 3px; }
.profile-channel-row { display: flex; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 13px; padding: 14px; background: #f8f9fc; }
.profile-actions-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.profile-actions-grid .button { text-align: center; text-decoration: none; }
.delete-profile-zone { margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--line); }
.delete-profile-zone summary { color: var(--red); cursor: pointer; font: 700 11px Manrope; }
.delete-profile-zone p { color: var(--muted); font-size: 11px; line-height: 1.45; }
.wide-dialog { width: min(900px, calc(100% - 30px)); }
.edit-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(230px, .55fr); gap: 24px; margin-top: 20px; }
.edit-main,.edit-settings { display: grid; gap: 12px; align-content: start; }
.edit-row { display: grid; grid-template-columns: 1fr .8fr 1.2fr; gap: 9px; }
.edit-main textarea { margin-top: 7px; resize: vertical; }
.thumbnail-preview { display: grid; gap: 7px; width: 100%; }
.thumbnail-preview img { width: 100%; aspect-ratio: 16/9; object-fit: contain; border-radius: 12px; border: 1px solid var(--line); background: #111827; }
.thumbnail-preview small { color: var(--muted); }
dialog { border: 0; padding: 0; border-radius: 24px; width: min(480px, calc(100% - 30px)); box-shadow: 0 30px 100px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(19,29,24,.55); backdrop-filter: blur(5px); }
.dialog-card { padding: 32px; position: relative; }
.dialog-card h2 { font-size: 28px; margin: 9px 0; }
.dialog-card p { color: var(--muted); line-height: 1.55; }
.dialog-card > a { color: var(--green); font-size: 12px; display: inline-block; margin-top: 16px; }
.dialog-close { position: absolute; right: 18px; top: 15px; border: 0; background: transparent; font-size: 24px; cursor: pointer; }
.file-card { display: block; border: 1px dashed var(--line); padding: 16px; border-radius: 13px; cursor: pointer; margin-top: 20px; }
.file-card strong,.file-card small { display: block; }
.file-card strong { color: var(--ink); }
.file-card small { margin-top: 4px; }
.setup-note { display: block; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: white; padding: 12px 17px; border-radius: 12px; opacity: 0; pointer-events: none; transition: .25s; font-size: 13px; z-index: 20; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.auth-body { min-height: 100vh; background: #eef1f8; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 1.1fr) minmax(420px, .9fr); }
.auth-story { position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(34px, 5vw, 72px); color: white; background: linear-gradient(145deg, #171a2c 0%, #302b68 58%, #4f46e5 100%); }
.auth-story:after { content: ""; position: absolute; width: 420px; height: 420px; right: -150px; bottom: -170px; border-radius: 50%; background: rgba(167,243,208,.12); }
.auth-brand { color: white; position: relative; z-index: 1; }
.auth-story .eyebrow { color: #b8f3d6; }
.auth-story h1 { font-size: clamp(40px, 5vw, 67px); max-width: 760px; }
.auth-story p { color: rgba(255,255,255,.72); max-width: 590px; font-size: 16px; line-height: 1.6; }
.auth-features { display: flex; flex-wrap: wrap; gap: 9px; position: relative; z-index: 1; }
.auth-features span { border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); border-radius: 99px; padding: 8px 12px; font-size: 11px; }
.auth-form-wrap { display: grid; place-items: center; padding: 34px; }
.auth-card { width: min(440px, 100%); }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 13px; background: #e2e5ee; margin-bottom: 25px; }
.auth-tabs button { border: 0; background: transparent; padding: 10px; border-radius: 10px; color: var(--muted); cursor: pointer; font: 700 12px Manrope; }
.auth-tabs button.active { background: white; color: var(--ink); box-shadow: 0 4px 12px rgba(28,34,55,.08); }
.auth-form { display: grid; gap: 15px; padding: 30px; background: white; border: 1px solid white; border-radius: 22px; box-shadow: var(--shadow); }
.auth-form h2 { font-size: 26px; margin-top: 6px; }
.auth-form label { display: block; }
.auth-copy { color: var(--muted); margin: -7px 0 2px; font-size: 12px; line-height: 1.5; }
.remember-row { display: flex !important; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; }
.remember-row input { width: auto; margin: 0; accent-color: var(--green); }
@media (max-width: 850px) {
  .step-grid,.queue-layout,.calendar-layout { grid-template-columns: 1fr; }
  .hero { align-items: start; }
  .hero-stat { display: none; }
  .calendar-hero { align-items: start; flex-direction: column; }
  .edit-layout { grid-template-columns: 1fr; }
  .workflow-progress { overflow: hidden; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-story { min-height: 340px; }
  .upload-panel { position: static; }
  .selection-bar { grid-template-columns: 1fr; }
  .selection-shortcuts,.selection-actions { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .shell { width: min(100% - 22px, 1180px); }
  .hero { padding: 50px 0 35px; }
  h1 { font-size: 42px; }
  .panel { padding: 20px; border-radius: 19px; }
  .folder-row { flex-direction: column; }
  .schedule-form { grid-template-columns: 1fr 1fr; }
  .schedule-form label:last-child { grid-column: 1 / -1; }
  .planner-start-head { align-items: flex-start; flex-direction: column; }
  .connection #connectionText,.connection .status-dot { display: none; }
  .top-actions { gap: 5px; }
  .view-tabs button { padding: 8px; }
  .view-tabs span { display: none; }
  .calendar-actions { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .calendar-actions .button:first-child { grid-column: 1 / -1; }
  .calendar-stats { grid-template-columns: 1fr 1fr; }
  .content-card { grid-template-columns: 82px minmax(0,1fr); }
  .content-thumb { width: 82px; }
  .profile-trigger b { display: none; }
  .profile-actions-grid { grid-template-columns: 1fr; }
  .agenda-overview { align-items: flex-start; flex-direction: column; }
  .calendar-day { min-height: 78px; padding: 5px 3px; }
  .calendar-event { font-size: 0; padding: 5px 3px; }
  .calendar-event span { font-size: 7px; }
  .post-settings-grid,.edit-row { grid-template-columns: 1fr; }
  .wide-setting { grid-column: auto; }
  .workflow-progress i { display: none; }
  .workflow-progress { justify-content: space-between; }
  .workflow-progress span { display: grid; justify-items: center; gap: 4px; }
  .block-weekdays { grid-template-columns: repeat(4, 1fr); }
}
