.planner-app { width: min(1600px, calc(100% - 24px)); margin: 12px auto; }
.planner-app .ds-shell { min-height: calc(100vh - 24px); grid-template-columns: 258px minmax(0, 1fr); background: var(--ds-color-bg); }
.planner-sidebar { display: flex; flex-direction: column; gap: 0; padding: 28px 18px; }
.planner-sidebar .ds-brand { margin-bottom: 34px; font-size: 17px; }
.sidebar-caption, .sidebar-section-head, .sidebar-foot-label { color: var(--ds-color-text-muted); font-size: 10px; font-weight: 900; letter-spacing: .11em; }
.sidebar-caption { padding: 0 14px; margin-bottom: 10px; }
.planner-nav { display: grid; gap: 4px; }
.planner-nav .ds-nav-item { width: 100%; border: 0; cursor: pointer; text-align: left; background: transparent; }
.planner-nav .ds-nav-item:hover, .channel-link:hover { background: var(--ds-color-control-surface); }
.planner-nav .ds-nav-item.is-active { background: var(--ds-color-primary-soft); }
.nav-count { margin-left: auto; color: var(--ds-color-text-muted); font-size: 12px; }
.sidebar-section-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 30px 10px 9px; }
.sidebar-add { width: 26px; height: 26px; border: 1px solid var(--ds-color-border); border-radius: 7px; color: var(--ds-color-primary); background: var(--ds-color-control-surface); font-size: 19px; line-height: 1; }
.channel-nav { display: grid; gap: 2px; }
.channel-link { display: flex; align-items: center; gap: 10px; min-height: 40px; width: 100%; padding: 0 11px; border: 1px solid transparent; border-radius: var(--ds-radius-md); color: var(--ds-color-text-soft); background: transparent; font-size: 13px; font-weight: 700; text-align: left; }
.channel-link.is-active { border-color: var(--ds-color-border-strong); color: var(--ds-color-text); background: var(--ds-color-primary-soft); }
.channel-link span:nth-child(2) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channel-dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; background: var(--ds-color-primary); box-shadow: 0 0 12px color-mix(in srgb, var(--ds-color-primary) 55%, transparent); }
.channel-link .channel-amount { margin-left: auto; color: var(--ds-color-text-muted); font-size: 11px; }
.sidebar-spacer { flex: 1; min-height: 28px; }
.sidebar-foot { padding: 15px; border: 1px solid var(--ds-color-border); border-radius: var(--ds-radius-md); background: var(--ds-color-control-surface-soft); }
.sidebar-foot p { margin: 8px 0 14px; color: var(--ds-color-text-soft); font-size: 12px; line-height: 1.5; }
.sidebar-links { display: flex; gap: 16px; }
.sidebar-links a { color: var(--ds-color-primary); font-size: 12px; font-weight: 800; text-decoration: none; }
.planner-main { padding: 29px clamp(20px, 3vw, 42px); }
.planner-topbar { align-items: start; margin-bottom: 25px; }
.page-title { margin: 6px 0 0; font-size: clamp(26px, 3vw, 35px); letter-spacing: -.04em; line-height: 1.1; }
.planner-topbar .ds-actions { align-items: center; }
.view-intro { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 22px; }
.view-intro p { margin: 0; color: var(--ds-color-text-soft); font-size: 14px; line-height: 1.5; }
.view-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.view-tools .ds-input { width: 220px; min-width: 190px; flex: 0 1 220px; }
.summary-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.summary-tile { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 86px; padding: 17px 19px; border: 1px solid var(--ds-color-border); border-radius: var(--ds-radius-md); background: var(--ds-card-surface); }
.summary-tile span { color: var(--ds-color-text-soft); font-size: 12px; font-weight: 800; }
.summary-tile strong { color: var(--ds-color-primary); font-size: 28px; line-height: 1; }
.summary-tile.is-success strong { color: var(--ds-color-success); }
.summary-tile.is-info strong { color: var(--ds-color-secondary); }
.filter-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 4px 0 17px; }
.channel-filter-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 18px; }
.filter-chip { min-height: 34px; padding: 0 13px; border: 1px solid var(--ds-color-border); border-radius: 999px; color: var(--ds-color-text-soft); background: var(--ds-color-control-surface); font-size: 12px; font-weight: 800; }
.filter-chip.is-active { border-color: var(--ds-color-border-strong); color: var(--ds-color-primary); background: var(--ds-color-primary-soft); }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); align-items: start; gap: 14px; }
.post-card { display: flex; flex-direction: column; min-height: 230px; padding: 19px; border: 1px solid var(--ds-color-border); border-radius: var(--ds-radius-md); background: var(--ds-card-surface); box-shadow: var(--ds-shadow-card); }
.post-card:hover { border-color: var(--ds-color-border-strong); }
.post-card-top, .post-card-foot, .post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.post-card-top { justify-content: space-between; }
.post-card h3 { margin: 14px 0 7px; color: var(--ds-color-text); font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }
.post-card p { margin: 0; color: var(--ds-color-text-soft); font-size: 13px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-wrap; }
.post-meta { margin-top: auto; padding-top: 15px; color: var(--ds-color-text-muted); font-size: 11px; font-weight: 700; }
.destination-link { display: inline-flex; align-items: center; width: fit-content; max-width: 100%; margin-top: 7px; color: var(--ds-color-primary); font-size: 12px; font-weight: 800; text-decoration: none; }
.destination-link:hover { text-decoration: underline; }
.post-card-foot { justify-content: space-between; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--ds-color-border); }
.text-button { padding: 4px 0; border: 0; color: var(--ds-color-primary); background: transparent; font-size: 12px; font-weight: 900; }
.text-button:hover { text-decoration: underline; }
.mini-button { min-height: 29px; padding: 0 9px; border: 1px solid var(--ds-color-border); border-radius: 6px; color: var(--ds-color-text-soft); background: var(--ds-color-control-surface); font-size: 11px; font-weight: 800; }
.mini-button:hover { border-color: var(--ds-color-border-strong); color: var(--ds-color-primary); }
.empty-state { display: grid; justify-items: center; gap: 12px; padding: 58px 24px; border: 1px dashed var(--ds-color-border-strong); border-radius: var(--ds-radius-lg); background: var(--ds-color-control-surface-soft); text-align: center; }
.empty-symbol { display: grid; place-items: center; width: 54px; height: 54px; border: 1px solid var(--ds-color-border-strong); border-radius: 16px; color: var(--ds-color-primary); background: var(--ds-color-primary-soft); font-size: 28px; }
.empty-state h2 { margin: 0; font-size: 19px; }
.empty-state p { max-width: 380px; margin: 0 0 7px; color: var(--ds-color-text-soft); font-size: 13px; line-height: 1.55; }
.calendar-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; align-items: start; gap: 16px; }
.calendar-panel, .queue-panel { min-width: 0; padding: 17px; border: 1px solid var(--ds-color-border); border-radius: var(--ds-radius-md); background: var(--ds-card-surface); }
.calendar-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.calendar-head h2 { margin: 0; font-size: 19px; text-transform: capitalize; }
.calendar-nav { display: flex; align-items: center; gap: 6px; }
.calendar-nav .ds-calendar-nav { width: 34px; height: 34px; }
.calendar-weekdays, .month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.calendar-weekdays { margin-bottom: 5px; }
.calendar-weekdays span { padding: 5px; color: var(--ds-color-text-muted); font-size: 11px; font-weight: 900; text-align: center; }
.day-cell { min-width: 0; min-height: 125px; padding: 7px; border: 1px solid var(--ds-color-border); border-radius: 8px; background: var(--ds-color-control-surface-soft); text-align: left; }
.day-cell.is-outside { opacity: .42; }
.day-cell.is-today { border-color: var(--ds-color-border-strong); box-shadow: inset 0 0 0 1px var(--ds-color-primary-soft); }
.day-cell.is-selected { border-color: var(--ds-color-primary); }
.day-cell.is-drop-target, .day-cell.is-move-target:hover { border-color: var(--ds-color-primary); background: var(--ds-color-primary-soft); }
.day-number { display: block; margin: 0 0 5px; color: var(--ds-color-text-soft); font-size: 12px; font-weight: 900; }
.day-cell.is-today .day-number { color: var(--ds-color-primary); }
.calendar-post { display: block; width: 100%; margin: 3px 0; padding: 5px 6px; border: 0; border-left: 3px solid var(--ds-color-primary); border-radius: 4px; color: var(--ds-color-text); background: var(--ds-color-control-surface); font-size: 10px; font-weight: 800; line-height: 1.3; overflow: hidden; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.calendar-post.is-published { border-left-color: var(--ds-color-success); color: var(--ds-color-success); }
.calendar-post:hover { background: var(--ds-color-primary-soft); }
.queue-panel h3 { margin: 0 0 4px; font-size: 15px; }
.day-agenda { display: grid; gap: 7px; margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--ds-color-border); }
.day-agenda-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.day-agenda-head h3 { margin: 4px 0 0; font-size: 15px; }
.agenda-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px; border: 1px solid var(--ds-color-border); border-radius: 7px; color: var(--ds-color-text); background: var(--ds-color-control-surface); text-align: left; }
.agenda-item:hover { border-color: var(--ds-color-border-strong); }
.agenda-item span:last-child { display: grid; min-width: 0; gap: 3px; }
.agenda-item strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.agenda-item small { color: var(--ds-color-text-muted); font-size: 10px; }
.agenda-status { flex: 0 0 auto; width: 7px; height: 26px; border-radius: 4px; background: var(--ds-color-primary); }
.agenda-status.is-published { background: var(--ds-color-success); }
.queue-panel > p { margin: 0 0 14px; color: var(--ds-color-text-muted); font-size: 12px; line-height: 1.5; }
.queue-item { display: grid; gap: 5px; width: 100%; margin: 0 0 8px; padding: 10px; border: 1px solid var(--ds-color-border); border-radius: var(--ds-radius-md); color: var(--ds-color-text); background: var(--ds-color-control-surface); text-align: left; }
.queue-item:hover { border-color: var(--ds-color-border-strong); }
.queue-item strong { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.queue-item span { color: var(--ds-color-text-muted); font-size: 10px; }
.queue-empty { padding: 16px 10px; color: var(--ds-color-text-muted); font-size: 12px; line-height: 1.5; text-align: center; }
.move-banner { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; padding: 11px 13px; border: 1px solid var(--ds-color-border-strong); border-radius: var(--ds-radius-md); color: var(--ds-color-text-soft); background: var(--ds-color-primary-soft); font-size: 12px; }
.channel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 13px; }
.channel-card { min-height: 178px; padding: 19px; border: 1px solid var(--ds-color-border); border-radius: var(--ds-radius-md); background: var(--ds-card-surface); }
.channel-card h3 { margin: 14px 0 7px; font-size: 17px; }
.channel-card p { margin: 0 0 16px; color: var(--ds-color-text-muted); font-size: 12px; }
.channel-card .channel-dot { width: 14px; height: 14px; }
.channel-card .destination-link { margin: 0 0 15px; }
.channel-card-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.modal-backdrop { position: fixed; z-index: 30; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(2, 7, 16, .72); backdrop-filter: blur(7px); }
.modal { width: min(100%, 800px); max-height: min(94vh, 920px); overflow: auto; border: 1px solid var(--ds-color-border-strong); border-radius: var(--ds-radius-lg); background: var(--ds-color-bg); box-shadow: var(--ds-shadow-app); }
.modal.is-small { width: min(100%, 470px); }
.modal-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; padding: 22px 24px 16px; border-bottom: 1px solid var(--ds-color-border); }
.modal-head h2 { margin: 2px 0 0; font-size: 22px; }
.modal-kicker { color: var(--ds-color-primary); font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.modal-close { width: 32px; height: 32px; border: 1px solid var(--ds-color-border); border-radius: 50%; color: var(--ds-color-text-soft); background: var(--ds-color-control-surface); font-size: 20px; line-height: 1; }
.modal-body { display: grid; gap: 17px; padding: 22px 24px; }
.modal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal-body .ds-textarea { min-height: 154px; line-height: 1.55; }
.modal-body .prompt-area { min-height: 100px; }
.modal-body .ds-label { display: block; margin-bottom: 8px; }
.modal-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 17px 24px 22px; border-top: 1px solid var(--ds-color-border); }
.modal-foot-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.confirm-inline { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 12px 24px; border-top: 1px solid var(--ds-color-border); color: var(--ds-color-text-soft); background: var(--ds-color-control-surface-soft); font-size: 12px; }
.mini-button.is-danger { border-color: var(--ds-color-danger); color: var(--ds-color-danger); }
.field-help { margin: 6px 0 0; color: var(--ds-color-text-muted); font-size: 11px; line-height: 1.45; }
.custom-field { position: relative; }
.custom-field .ds-select-menu { position: absolute; z-index: 10; top: calc(100% + 4px); left: 0; right: 0; max-height: 220px; overflow: auto; }
.custom-field .ds-select-menu[hidden], .date-popover[hidden] { display: none; }
.date-popover { position: absolute; z-index: 11; top: calc(100% + 4px); left: 0; width: 280px; }
.date-popover .ds-calendar-day { border: 0; }
.date-popover .ds-calendar-day:disabled { cursor: default; opacity: .3; }
.date-popover .ds-calendar-day.is-selected { color: var(--ds-color-primary-contrast); }
.image-box { display: flex; align-items: center; gap: 15px; min-height: 115px; padding: 12px; border: 1px dashed var(--ds-color-border-strong); border-radius: var(--ds-radius-md); background: var(--ds-color-control-surface-soft); }
.image-box img { width: 96px; height: 88px; border-radius: 7px; object-fit: cover; }
.image-box-copy { display: grid; gap: 8px; min-width: 0; }
.image-box-copy strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.image-box-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.image-placeholder { display: grid; place-items: center; width: 96px; height: 88px; border: 1px solid var(--ds-color-border); border-radius: 7px; color: var(--ds-color-primary); font-size: 29px; }
.login-screen { display: grid; place-items: center; min-height: calc(100vh - 25px); padding: 30px; }
.login-card { width: min(100%, 440px); padding: 32px; border: 1px solid var(--ds-color-border); border-radius: var(--ds-radius-lg); background: var(--ds-card-surface); text-align: center; }
.login-card .ds-brand { justify-content: center; margin-bottom: 24px; }
.login-card h1 { margin: 0 0 9px; font-size: 26px; }
.login-card p { margin: 0 0 23px; color: var(--ds-color-text-soft); font-size: 13px; line-height: 1.6; }
.toast { position: fixed; z-index: 50; right: 22px; bottom: 22px; max-width: min(420px, calc(100% - 44px)); padding: 12px 17px; border: 1px solid var(--ds-color-border-strong); border-radius: var(--ds-radius-md); color: var(--ds-color-text); background: var(--ds-color-overlay-surface); box-shadow: var(--ds-shadow-card); font-size: 13px; font-weight: 700; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.toast.is-error { border-color: var(--ds-color-danger); }
@media (max-width: 1000px) { .calendar-layout { grid-template-columns: 1fr; } .queue-panel { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px; } .queue-panel h3, .queue-panel > p { grid-column: 1 / -1; } .queue-item { margin: 0; } }
@media (max-width: 760px) { .planner-app { width: 100%; margin: 0; border: 0; border-radius: 0; } .planner-app .ds-shell { grid-template-columns: 1fr; } .planner-sidebar { padding: 14px 16px; border-right: 0; border-bottom: 1px solid var(--ds-color-border); } .planner-sidebar .ds-brand { margin-bottom: 12px; } .sidebar-caption, .sidebar-section-head, .channel-nav, .sidebar-spacer, .sidebar-foot { display: none; } .planner-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); } .planner-nav .ds-nav-item { justify-content: center; min-height: 38px; gap: 5px; padding: 0 5px; font-size: 11px; } .planner-nav .ds-nav-icon { width: auto; font-size: 15px; } .planner-nav .nav-count { display: none; } .planner-main { padding: 20px 15px 32px; } .planner-topbar { margin-bottom: 20px; } .summary-strip { gap: 7px; } .summary-tile { display: grid; min-height: 78px; padding: 12px; } .summary-tile strong { font-size: 23px; } .calendar-panel { padding: 10px; } .day-cell { min-height: 90px; padding: 4px; } .calendar-post { font-size: 9px; padding: 3px; } .modal-row { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .planner-topbar .ds-actions { width: 100%; justify-content: space-between; } .planner-topbar .ds-theme-toggle { grid-template-columns: repeat(2, minmax(48px, 1fr)); } .planner-topbar .ds-theme-toggle button { padding: 0 6px; } .calendar-weekdays, .month-grid { gap: 2px; } .day-cell { min-height: 75px; border-radius: 5px; } .day-number { font-size: 10px; } .calendar-post { font-size: 8px; } .modal-head, .modal-body, .modal-foot { padding-left: 16px; padding-right: 16px; } .post-grid { grid-template-columns: 1fr; } }
