:root {
  --bg: #f5f6f8;
  --panel: #ffffff;
  --text: #17191d;
  --muted: #737984;
  --line: #e7e9ed;
  --accent: #09aeca;
  --accent-soft: #e9f9fc;
  --danger: #c84242;
  --warn: #a36b0e;
  --success: #167755;
  --shadow: 0 8px 28px rgba(28, 34, 42, 0.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.video-thumbnail { width: 100%; height: 100%; display: block; object-fit: cover; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 225px 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 24px 16px; background: #111317; color: white; display: flex; flex-direction: column; }
.brand { padding: 0 12px 26px; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 850; background: var(--accent); color: #06262b; margin-bottom: 13px; }
.brand strong { display: block; font-size: 16px; }
.brand span { color: #8f96a3; font-size: 12px; }
.nav { display: grid; gap: 5px; }
.nav button { border: 0; background: transparent; color: #aeb4bf; text-align: left; padding: 11px 12px; border-radius: 10px; display: flex; align-items: center; gap: 10px; }
.nav button:hover { background: #1b1e24; color: white; }
.nav button.active { background: #232831; color: white; }
.nav .dot { width: 8px; height: 8px; border-radius: 99px; background: currentColor; opacity: .7; }
.sidebar-footer { margin-top: auto; padding: 14px 12px 0; border-top: 1px solid #252930; color: #858c98; font-size: 11px; line-height: 1.5; }
.main { min-width: 0; padding: 30px 36px 50px; }
.topbar { max-width: 1320px; margin: 0 auto 24px; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.eyebrow { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 5px 0 0; font-size: 27px; letter-spacing: -.035em; }
h2 { margin: 0; font-size: 17px; letter-spacing: -.02em; }
h3 { margin: 0; font-size: 14px; }
p { color: var(--muted); }
.content { max-width: 1320px; margin: 0 auto; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn { min-height: 38px; border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 10px; padding: 8px 13px; font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.btn:hover { border-color: #cfd3da; background: #fbfbfc; }
.btn.primary { background: var(--accent); color: #042f35; border-color: var(--accent); }
.btn.primary:hover { background: #0bb9d7; }
.btn.danger { color: var(--danger); }
.btn.small { min-height: 32px; padding: 6px 10px; font-size: 12px; }
.btn.icon { width: 36px; padding: 0; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.panel-head { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.panel-body { padding: 20px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stat { padding: 16px 17px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; }
.stat span { color: var(--muted); font-size: 12px; }
.stat strong { display: block; font-size: 24px; margin-top: 4px; letter-spacing: -.03em; }
.setup { border: 1px dashed #b9dfe5; background: var(--accent-soft); padding: 18px; border-radius: 14px; margin-bottom: 18px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.setup p { margin: 5px 0 0; font-size: 13px; }
.folder-row { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 10px; margin-top: 10px; }
.folder-path { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: rgba(255,255,255,.7); border: 1px solid #cbe8ed; border-radius: 9px; padding: 9px 11px; font-size: 12px; color: #4f6265; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.filters { display: flex; gap: 7px; }
.filter { border: 1px solid var(--line); background: white; color: var(--muted); border-radius: 99px; padding: 7px 11px; font-size: 12px; font-weight: 700; }
.filter.active { background: #17191d; color: white; border-color: #17191d; }
.search { width: min(320px, 100%); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; outline: none; }
.search:focus, .input:focus, .select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(9,174,202,.12); }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 13px; }
.video-card { min-width: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: white; }
.thumb { aspect-ratio: 9/12; background: #e9ebef; position: relative; overflow: hidden; display: grid; place-items: center; color: #9ca2ad; }
.thumb video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.thumb .play { position: absolute; width: 40px; height: 40px; border-radius: 50%; background: rgba(16,18,22,.72); color: white; display: grid; place-items: center; font-size: 15px; }
.video-info { padding: 11px; }
.video-name { font-size: 13px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.video-path { margin-top: 4px; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.video-actions { display: flex; gap: 6px; margin-top: 10px; }
.video-actions .btn { flex: 1; }
.status { display: inline-flex; align-items: center; gap: 6px; border-radius: 99px; font-size: 11px; font-weight: 800; padding: 5px 8px; margin-top: 8px; }
.status.pending { color: #805b11; background: #fff5d9; }
.status.ready { color: var(--success); background: #e6f7ef; }
.empty { padding: 54px 24px; text-align: center; color: var(--muted); }
.empty .symbol { width: 50px; height: 50px; border: 1px solid var(--line); background: #fafbfc; border-radius: 14px; display: grid; place-items: center; margin: 0 auto 12px; font-size: 21px; }
.empty p { max-width: 440px; margin: 6px auto 0; font-size: 13px; }
.calendar-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.date-control { display: flex; align-items: center; gap: 8px; }
.date-control input { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.day-list { display: grid; gap: 12px; }
.day { background: white; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.day-head { padding: 13px 15px; background: #fafbfc; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.day-head strong { font-size: 13px; }
.day-head span { color: var(--muted); font-size: 11px; }
.account-row { display: grid; grid-template-columns: 190px 1fr; border-bottom: 1px solid var(--line); min-height: 90px; }
.account-row:last-child { border-bottom: 0; }
.account-label { padding: 14px; border-right: 1px solid var(--line); }
.account-label strong { display: block; font-size: 13px; }
.account-label span { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.post-list { padding: 11px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.post { border: 1px solid var(--line); border-radius: 11px; padding: 9px; display: grid; grid-template-columns: 40px 1fr auto; gap: 9px; align-items: center; min-width: 0; }
.post-preview { width: 40px; height: 54px; background: #eceef1; border-radius: 7px; overflow: hidden; }
.post-preview video { width: 100%; height: 100%; object-fit: cover; }
.post-name { min-width: 0; }
.post-name strong { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-name span { color: var(--muted); font-size: 10px; }
.post.done { background: #f0faf5; border-color: #cdebdc; }
.note { padding: 9px 12px; margin: 8px 11px 11px; border-radius: 9px; background: #fff8e7; color: #7d5d19; font-size: 11px; }
.accounts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.account-card { padding: 17px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.account-card-top { display: flex; justify-content: space-between; gap: 12px; }
.account-card p { margin: 6px 0 0; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-card-actions { display: flex; gap: 7px; margin-top: 15px; }
.pill { display: inline-flex; padding: 5px 8px; border-radius: 99px; background: #eef0f3; color: #626873; font-size: 10px; font-weight: 800; }
.pill.active { background: #e4f7ef; color: var(--success); }
.pill.paused { background: #fff1d7; color: var(--warn); }
.modal-backdrop { position: fixed; inset: 0; background: rgba(12,14,18,.45); display: grid; place-items: center; padding: 24px; z-index: 30; }
.modal { width: min(620px, 100%); max-height: calc(100vh - 48px); overflow: auto; background: white; border-radius: 18px; box-shadow: 0 22px 70px rgba(0,0,0,.22); }
.modal-head { padding: 20px 22px 14px; border-bottom: 1px solid var(--line); }
.modal-head p { margin: 6px 0 0; font-size: 12px; }
.modal-body { padding: 20px 22px; }
.modal-footer { padding: 14px 22px 20px; display: flex; justify-content: flex-end; gap: 8px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 11px; font-weight: 800; color: #565c66; }
.input, .select { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; outline: none; background: white; }
.file-picker { max-height: 330px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; }
.file-option { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.file-option:last-child { border-bottom: 0; }
.file-option strong { display: block; font-size: 12px; }
.file-option span { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; }
.code-badge { display: inline-flex; margin-left: 6px; padding: 2px 6px; border-radius: 99px; background: var(--accent-soft); color: #087f93; font-size: 9px; font-style: normal; vertical-align: middle; }
.toast { position: fixed; right: 24px; bottom: 24px; padding: 11px 14px; background: #17191d; color: white; border-radius: 10px; font-size: 12px; font-weight: 700; opacity: 0; transform: translateY(8px); pointer-events: none; transition: .2s ease; z-index: 50; }
.toast.show { opacity: 1; transform: translateY(0); }
.settings-grid { display: grid; gap: 12px; }
.settings-card { padding: 17px; border: 1px solid var(--line); border-radius: 13px; display: flex; justify-content: space-between; gap: 18px; align-items: center; }
.settings-card p { margin: 5px 0 0; font-size: 12px; }
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .post-list { grid-template-columns: 1fr; }
  .accounts-grid { grid-template-columns: 1fr; }
}
@media (max-width: 780px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; padding: 14px; }
  .brand, .sidebar-footer { display: none; }
  .nav { grid-template-columns: repeat(5, 1fr); }
  .nav button { justify-content: center; font-size: 0; }
  .main { padding: 20px 14px 40px; }
  .account-row { grid-template-columns: 1fr; }
  .account-label { border-right: 0; border-bottom: 1px solid var(--line); }
  .setup { display: block; }
  .folder-row { grid-template-columns: 1fr; }
}

/* Layout superior inspirado no painel web */
.app-shell.top-layout { display: block; min-height: 100vh; }
.app-header { height: 84px; padding: 0 34px; background: white; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 20; }
.brand.horizontal { padding: 0; display: flex; align-items: center; gap: 14px; color: var(--text); }
.brand.horizontal .brand-mark { margin: 0; width: 44px; height: 44px; border-radius: 13px; background: #12bdd7; color: #071b22; font-size: 16px; }
.brand.horizontal div:last-child { display: grid; gap: 2px; }
.brand.horizontal span { color: #088da3; font-size: 11px; letter-spacing: .22em; font-weight: 800; }
.brand.horizontal strong { font-size: 19px; letter-spacing: -.03em; }
.top-main { padding: 34px 36px 54px; }
.page-heading { max-width: 1320px; margin: 0 auto 20px; display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.page-heading p { margin: 6px 0 0; font-size: 13px; }
.top-nav { max-width: 1320px; margin: 0 auto 20px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.top-nav button { min-height: 54px; border: 1px solid var(--line); background: transparent; color: #667085; border-radius: 13px; padding: 10px 14px; display: flex; justify-content: center; align-items: center; gap: 9px; font-weight: 750; }
.top-nav button:hover { background: white; color: var(--text); border-color: #d9dde4; }
.top-nav button.active { background: white; color: var(--text); border-color: #cbd1da; box-shadow: 0 3px 10px rgba(22,29,37,.04); position: relative; }
.top-nav button.active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -8px; height: 3px; border-radius: 4px; background: #151a21; }
.overview-title { display: flex; align-items: end; justify-content: space-between; margin: 25px 0 14px; }
.overview-title h2 { font-size: 24px; }
.overview-title p { margin: 5px 0 0; font-size: 13px; }
.counter { min-width: 48px; text-align: center; padding: 6px 10px; border: 1px solid var(--line); border-radius: 99px; background: #fff; color: #657083; font-size: 12px; font-weight: 750; }
.day-switcher { background: white; border: 1px solid var(--line); border-radius: 15px; padding: 13px 16px; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; box-shadow: var(--shadow); }
.day-switcher div { display: grid; gap: 2px; min-width: 180px; }
.day-switcher strong { font-size: 13px; text-transform: capitalize; }
.day-switcher span { font-size: 10px; color: var(--muted); }
.day-switcher.seven-days { gap: 8px; overflow-x: auto; }
.day-buttons { display: grid; grid-template-columns: repeat(7, minmax(72px, 1fr)); gap: 6px; flex: 1; min-width: 560px; }
.day-button { border: 1px solid var(--line); background: #fafbfc; border-radius: 10px; min-height: 48px; padding: 6px 8px; color: #667085; }
.day-button span { display: block; font-size: 9px; }
.day-button strong { display: block; margin-top: 2px; font-size: 12px; }
.day-button:hover { border-color: #9edce5; background: #f2fbfc; }
.day-button.active { border-color: var(--accent); background: var(--accent); color: #052d34; }
.day-button.active span { color: #09505c; }
.calendar-picker { width: 42px; height: 38px; border: 1px solid var(--line); border-radius: 10px; padding: 7px; color: transparent; background: white; }
.calendar-picker::-webkit-calendar-picker-indicator { opacity: 1; cursor: pointer; }
.overview-accounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.overview-account { background: white; border: 1px solid var(--line); border-radius: 17px; padding: 18px; box-shadow: 0 4px 18px rgba(24,30,38,.035); }
.archived-account { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:14px 0; border-bottom:1px solid var(--line); }
.header-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; justify-content:flex-end; }
.header-actions small { color:var(--muted); margin-left:5px; }
.updates-backdrop { z-index:200; }
.update-modal { max-width:480px; }
.update-modal p { font-size:14px; line-height:1.6; }
.update-notes { white-space:pre-line; color:var(--muted); }
.update-progress { display:block; width:100%; height:12px; accent-color:var(--primary); }
@media(max-width:650px){ .header-actions { gap:6px; } .header-actions .btn { padding:8px; font-size:12px; } .header-actions small { display:none; } }
.archived-account > div { min-width:0; display:flex; flex-direction:column; gap:5px; }
.archived-account strong { font-size:14px; overflow-wrap:anywhere; }
.archived-account span { color:var(--muted); font-size:13px; }
.account-card-actions { flex-wrap:wrap; }
.overview-account-head { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 10px; margin-bottom: 13px; }
.account-index { width: 42px; height: 42px; border-radius: 12px; background: #eef7f9; color: #09899f; display: grid; place-items: center; font-weight: 850; font-size: 12px; }
.overview-account-head h2 { font-size: 15px; }
.overview-account-head p { margin: 3px 0 0; font-size: 11px; }
.overview-posts { display: grid; gap: 8px; }
.overview-post { width: 100%; border: 1px solid var(--line); background: #f9fafb; border-radius: 12px; padding: 8px; display: grid; grid-template-columns: 1fr 30px; align-items: center; gap: 6px; text-align: left; }
.overview-post:hover { border-color: #b9dfe5; background: #f5fcfd; }
.overview-post.done { background: #effaf5; border-color: #cdebdc; }
.overview-post-main { border: 0; background: transparent; padding: 0; display: grid; grid-template-columns: 42px 1fr 27px; align-items: center; gap: 10px; text-align: left; min-width: 0; }
.overview-post-main > div:nth-child(2) { min-width: 0; }
.overview-post strong { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.overview-post span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.overview-post i { width: 27px; height: 27px; border: 1px solid var(--line); background: white; border-radius: 7px; display: grid; place-items: center; color: var(--success); font-style: normal; }
.remove-post { width: 30px; height: 30px; border: 1px solid #f0d5d5; border-radius: 8px; background: #fff; color: var(--danger); font-size: 18px; line-height: 1; }
.remove-post:hover { background: #fff2f2; border-color: #e5aaaa; }
.post-mini { width: 42px; height: 52px; border-radius: 8px; background: #edf0f4; overflow: hidden; display: grid; place-items: center; color: #657083; }
.post-mini video { width: 100%; height: 100%; object-fit: cover; }
.overview-empty { border: 1px dashed var(--line); border-radius: 11px; padding: 23px 12px; color: var(--muted); font-size: 11px; text-align: center; }
.edit-pagination { display: flex; justify-content: center; align-items: center; gap: 14px; padding: 22px 0 2px; }
.edit-pagination span { color: var(--muted); font-size: 12px; }
.edit-pagination button:disabled { opacity: .45; cursor: default; }
.map-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.map-toolbar p { margin: 5px 0 0; font-size: 12px; }
.video-map { position: relative; min-width: 100%; overflow-x: auto; background: #f1f3f6; border: 1px solid var(--line); border-radius: 17px; padding: 16px; box-shadow: var(--shadow); }
.map-lines { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: visible; }
.map-lines marker path { fill: #09aeca; }
.map-edge { fill: none; stroke: #09aeca; stroke-width: 2.25; opacity: .72; }
.map-columns { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 72px; min-width: max-content; align-items: start; }
.map-column { width: 270px; background: rgba(255,255,255,.74); border: 1px solid #dfe3e8; border-radius: 15px; padding: 12px; backdrop-filter: blur(5px); }
.map-column > header { padding: 3px 3px 12px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.map-column > header strong { display: block; font-size: 14px; }
.map-column > header span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.map-cards { display: grid; gap: 10px; }
.map-card { position: relative; z-index: 3; display: grid; grid-template-columns: 54px minmax(0, 1fr) 31px; align-items: center; gap: 9px; min-height: 76px; padding: 8px; background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 3px 10px rgba(25,31,39,.04); }
.map-card.link-source { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(9,174,202,.14); }
.map-thumb { width: 54px; height: 62px; overflow: hidden; background: #eceff2; border-radius: 8px; }
.map-thumb video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.map-card-info { min-width: 0; }
.map-card-info strong { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; }
.map-status { display: block; max-width: 100%; margin: 5px 0 0; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 9px; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.map-status.posted { color: var(--success); font-weight: 800; }
.map-card-actions { display: grid; gap: 4px; }
.map-link-button { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #c9e7ec; background: #f1fbfc; color: #07859a; border-radius: 9px; font-weight: 850; }
.map-link-button:hover { background: var(--accent); color: #052f36; border-color: var(--accent); }
.map-unlink-button { width: 30px; height: 22px; border: 1px solid #f0d5d5; background: #fff; color: var(--danger); border-radius: 7px; line-height: 1; }
.map-empty { padding: 28px 10px; border: 1px dashed #d9dde3; border-radius: 10px; color: var(--muted); text-align: center; font-size: 11px; }
.distribution-wrap { overflow-x: auto; background: white; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.distribution-grid { display: grid; grid-template-columns: 250px repeat(var(--account-count), minmax(205px, 1fr)); min-width: max-content; }
.distribution-head { position: sticky; top: 84px; z-index: 4; padding: 14px; background: #f7f8fa; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); font-size: 12px; font-weight: 850; }
.distribution-head.video-head { left: 0; border-left: 0; z-index: 5; }
.distribution-video { position: sticky; left: 0; z-index: 3; min-height: 88px; padding: 10px 12px; display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: center; gap: 10px; background: white; border-bottom: 1px solid var(--line); }
.distribution-thumb { width: 52px; height: 66px; overflow: hidden; border-radius: 8px; background: #edf0f3; }
.distribution-thumb video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.distribution-video strong { display: block; font-size: 12px; }
.distribution-video span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.distribution-cell { min-height: 88px; padding: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.distribution-cell strong { display: block; font-size: 11px; }
.distribution-cell span { display: block; margin-top: 4px; font-size: 9px; color: var(--muted); }
.distribution-cell > div > button { display: block; margin: 5px 0 0; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 9px; }
.distribution-cell.posted { background: #f0faf5; color: var(--success); }
.distribution-cell.planned { background: #eefafe; color: #087f93; }
.distribution-cell.missing { background: #fff5f5; color: #b53a3a; display: grid; align-content: center; }
.distribution-cell.missing span { color: #a96a6a; }
.distribution-cell.selected { box-shadow: inset 0 0 0 2px var(--accent); }
.group-button { min-height: 28px; padding: 5px 8px; border: 1px solid #c9e7ec; background: white; color: #07859a; border-radius: 8px; font-size: 9px; font-weight: 800; }
.distribution-empty { padding: 50px 20px; color: var(--muted); text-align: center; }
.today-plan { margin-bottom: 24px; padding: 20px; background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.today-plan-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.today-plan-head h2 { margin-top: 5px; font-size: 22px; }
.today-plan-head p { margin: 5px 0 0; font-size: 12px; }
.today-plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.today-account { border: 1px solid var(--line); border-radius: 14px; padding: 13px; background: #fafbfc; }
.today-account > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.today-account header strong { display: block; font-size: 13px; }
.today-account header span { display: block; margin-top: 2px; color: var(--muted); font-size: 9px; }
.plan-item { display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: center; gap: 9px; padding: 8px 0; border-top: 1px solid var(--line); }
.plan-thumb { width: 46px; height: 55px; overflow: hidden; border-radius: 8px; background: #e9edf1; }
.plan-thumb video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.plan-item strong { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; }
.plan-item span { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.plan-empty { padding: 23px 8px; border-top: 1px solid var(--line); color: var(--success); font-size: 11px; text-align: center; }
.pending-accounts { display: grid; gap: 16px; }
.pending-account { padding: 17px; background: white; border: 1px solid var(--line); border-radius: 17px; box-shadow: var(--shadow); }
.pending-account > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.pending-account > header h3 { font-size: 16px; }
.pending-account > header span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.pending-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 9px; }
.pending-card { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfd; }
.pending-thumb { width: 52px; height: 64px; overflow: hidden; border-radius: 8px; background: #e9edf1; }
.pending-thumb video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.pending-info { min-width: 0; }
.pending-info strong { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 11px; }
.pending-info span { display: block; margin-top: 5px; color: #a25916; font-size: 9px; }
.pending-info span.planned { color: #087f93; font-weight: 800; }
.pending-actions { display: grid; gap: 5px; }
.pending-actions .btn { min-height: 28px; padding: 5px 8px; font-size: 9px; }
.pending-clear { padding: 30px 12px; border: 1px dashed #cdebdc; border-radius: 12px; background: #f4fbf7; color: var(--success); text-align: center; font-size: 11px; }
.completed-block { margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line); }
.completed-block h4 { margin: 0 0 10px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.completed-card { background: #f4fbf7; border-color: #d5ebdf; }
.pending-info span.posted { color: var(--success); font-weight: 800; }
.completed-empty { padding: 18px; color: var(--muted); text-align: center; font-size: 11px; }
@media (max-width: 900px) {
  .app-header { padding: 0 18px; }
  .top-main { padding: 24px 18px 44px; }
  .top-nav { grid-template-columns: repeat(6, minmax(92px, 1fr)); overflow-x: auto; }
  .overview-accounts { grid-template-columns: 1fr; }
}
