.ops { --ops-border: #e1e8f1; --ops-muted: #62728a; display: grid; gap: 16px; color: #192841; animation: rise .22s ease-out; }
.ops-heading, .ops-toolbar, .ops-section-head, .ops-post, .ops-post-actions, .ops-week-nav, .ops-material-filters { display: flex; align-items: center; gap: 10px; }
.ops-heading, .ops-section-head, .ops-post { justify-content: space-between; }
.ops-heading h1 { font-size: clamp(25px, 3vw, 34px); margin: 0; line-height: 1.25; }
.ops-heading p { margin: 7px 0 0; color: var(--ops-muted); }
.ops-heading > button { flex: none; }
.ops-tabs { display: flex; flex-wrap: wrap; gap: 5px; padding: 5px; background: #e8eef8; border-radius: 12px; width: fit-content; }
.ops-tabs button { border: 0; border-radius: 8px; padding: 8px 13px; background: transparent; color: #465d7c; font-weight: 650; transition: color .16s, background .16s, box-shadow .16s; }
.ops-tabs button:hover, .ops-tabs button[aria-pressed="true"] { background: #fff; color: #254ea3; }
.ops-tabs button[aria-pressed="true"] { box-shadow: 0 1px 4px #1d38651c; }
.ops-toolbar { flex-wrap: wrap; }
.ops-toolbar label, .ops-section-head label { display: flex; align-items: center; gap: 7px; color: var(--ops-muted); font-size: 13px; }
.ops [hidden] { display: none !important; }
.ops-toolbar .control[type=search] { flex: 1; min-width: min(100%, 220px); }
.ops-toolbar select, .ops-section-head select { width: auto; }
.ops-zone { margin-left: auto; color: var(--ops-muted); font-size: 12px; }
.ops-content { display: grid; gap: 14px; min-width: 0; }
.ops-panel { min-width: 0; padding: clamp(12px, 2vw, 21px); border: 1px solid var(--ops-border); border-radius: 14px; background: #fff; animation: ops-appear .18s ease-out; }
.ops-section-head { margin: 0 0 12px; flex-wrap: wrap; }
.ops-section-head h2 { margin: 0; font-size: 17px; }
.ops-section-head small, .ops-section-head > span { color: var(--ops-muted); font-size: 12px; }
.ops-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.ops-week button { display: grid; justify-items: center; gap: 4px; min-width: 0; border: 1px solid var(--ops-border); border-radius: 9px; padding: 9px 3px; background: #f8faff; color: #425474; transition: border-color .16s, background .16s, color .16s; }
.ops-week button:hover, .ops-week button[aria-pressed="true"] { background: #e9f0ff; color: #214da8; border-color: #b8cdfa; }
.ops-week button.today strong { color: #315ed4; }
.ops-week button strong { font-size: clamp(16px, 3vw, 22px); line-height: 1.2; }
.ops-week button small { font-size: 11px; color: inherit; }
.ops-week button span { font-size: 12px; }
.ops-day h3 { margin: 15px 0 5px; font-size: 13px; color: var(--ops-muted); }
.ops-post { padding: 12px 0; border-bottom: 1px solid #eef2f7; }
.ops-post:last-child { border-bottom: 0; }
.ops-post-main { display: grid; min-width: 0; gap: 3px; }
.ops-post-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-size: 12px; color: var(--ops-muted); }
.ops-badge { width: fit-content; border-radius: 99px; padding: 2px 8px; font-size: 11px; font-weight: 700; background: #edf0f6; color: #455673; }
.ops-badge.drafting { color: #68539d; background: #f1ebff; }
.ops-badge.scheduled { color: #2955a1; background: #e7efff; }
.ops-badge.published { color: #19624e; background: #e3f5ed; }
.ops-badge.overdue { color: #963b3b; background: #fce9e7; }
.ops-title { width: fit-content; max-width: 100%; padding: 0; border: 0; background: none; text-align: left; overflow-wrap: anywhere; color: inherit; font-size: 15px; font-weight: 720; }
.ops-title:hover { color: #315ed4; text-decoration: underline; }
.ops-post-meta { color: var(--ops-muted); font-size: 12px; overflow-wrap: anywhere; }
.ops-post-actions, .ops-material-filters { justify-content: flex-end; flex-wrap: wrap; }
.ops-post-actions .btn, .ops-material .btn { font-size: 12px; padding: 6px 8px; }
.ops-original { display: inline-block; margin: 0 0 9px; color: #3153a0; font-size: 13px; }
.ops-empty { padding: 27px 10px; text-align: center; color: var(--ops-muted); }
.ops-empty strong { color: #455674; }
.ops-empty p { margin: 4px 0 0; font-size: 13px; }
.ops-metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.ops-metrics > div { display: grid; gap: 3px; border-radius: 9px; padding: 10px; background: #f2f6ff; }
.ops-metrics span, .ops-chart small, .ops-table small { color: var(--ops-muted); font-size: 12px; }
.ops-metrics strong { font-size: clamp(15px, 2vw, 23px); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ops-chart { display: grid; gap: 10px; }
.ops-chart > div { display: grid; align-items: center; grid-template-columns: minmax(92px, 1fr) minmax(60px, 4fr) minmax(50px, auto); gap: 10px; }
.ops-chart small { margin-left: 6px; white-space: nowrap; }
.ops-chart strong { text-align: right; font-variant-numeric: tabular-nums; }
.ops-bar { height: 7px; border-radius: 99px; overflow: hidden; background: #eef2f9; }
.ops-bar i { display: block; height: 100%; border-radius: inherit; background: #5981e5; animation: ops-bar-in .25s ease-out; transform-origin: left; }
.ops-table-wrap { overflow-x: auto; }
.ops-table { width: 100%; border-collapse: collapse; white-space: nowrap; }
.ops-table th, .ops-table td { text-align: left; padding: 8px; border-bottom: 1px solid var(--ops-border); }
.ops-table th { color: var(--ops-muted); font-size: 12px; }
.ops-table small { display: block; }
.ops-material-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.ops-dropzone { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 15px; border: 1px dashed #a9bcdf; border-radius: 11px; background: #f5f8ff; color: #294a83; transition: background .18s, border-color .18s, box-shadow .18s; }
.ops-dropzone.is-dragging { border-color: #3868f6; background: #e8efff; box-shadow: 0 0 0 3px #3868f618; }
.ops-dropzone small { display: block; margin-top: 3px; color: var(--ops-muted); }
.ops-pastezone { display: grid; gap: 5px; min-width: 0; padding: 12px; border: 1px solid var(--ops-border); border-radius: 11px; color: #294a83; background: #f8faff; transition: background .18s, border-color .18s, box-shadow .18s; }
.ops-pastezone:focus-within { border-color: #a5bef5; background: #edf3ff; box-shadow: 0 0 0 3px #3868f618; }
.ops-pastezone textarea { min-width: 0; resize: none; }
.ops-drop-message { margin: 0 0 10px; color: #19624e; font-size: 13px; }
.ops-drop-message:empty { display: none; }
.ops-drop-message.error { color: #a13939; }
.ops-material-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 195px), 1fr)); gap: 10px; }
.ops-material { min-width: 0; overflow: hidden; border: 1px solid var(--ops-border); border-radius: 10px; }
.ops-thumbnail { aspect-ratio: 16 / 8; background: #eef3fb; display: grid; align-items: center; justify-items: center; overflow: hidden; color: #576e97; font-weight: 700; }
.ops-thumbnail img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.ops-material-body { padding: 9px; }
.ops-material-body strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ops-material-body small, .ops-material-body p { color: var(--ops-muted); font-size: 12px; }
.ops-material-body p { margin: 5px 0; overflow-wrap: anywhere; }
.ops-material-body > div { display: flex; justify-content: space-between; align-items: center; }
.ops-material-body a { color: #3153a0; }
.ops-dialog { width: min(660px, calc(100% - 24px)); max-height: 90dvh; padding: 0; overflow: hidden; border: 0; border-radius: 15px; color: inherit; box-shadow: 0 22px 60px #10254244; }
.ops-dialog[open] { animation: ops-appear .2s ease-out; }
.ops-dialog::backdrop { background: #12243d77; }
.ops-dialog form { display: flex; flex-direction: column; max-height: 90dvh; }
.ops-dialog header, .ops-dialog footer { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 17px; }
.ops-dialog header { border-bottom: 1px solid var(--ops-border); }
.ops-dialog footer { justify-content: flex-end; border-top: 1px solid var(--ops-border); }
.ops-dialog footer .danger { margin-right: auto; }
.ops-dialog header h2 { margin: 0; font-size: 18px; }
.ops-dialog header button { border: 0; background: transparent; color: var(--ops-muted); font-size: 23px; }
.ops-dialog-body { min-height: 0; overflow: auto; padding: 14px 17px; }
.ops-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ops-form-grid label { display: grid; gap: 5px; min-width: 0; }
.ops-form-grid input { min-width: 0; }
.ops-full { grid-column: 1 / -1; }
.ops-dialog textarea { min-height: 68px; resize: vertical; }
.ops-metric-fields { border: 1px solid var(--ops-border); border-radius: 9px; min-width: 0; margin: 0; }
.ops-metric-fields p { margin: 0 0 7px; color: var(--ops-muted); font-size: 12px; }
.ops-form-error { margin: 5px 0 0; color: #a13939; }
.ops-form-error:empty { display: none; }
.ops button:disabled { opacity: .65; cursor: wait; }
@keyframes ops-appear { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ops-bar-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 760px) { .ops-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .ops-heading { align-items: flex-start; flex-direction: column; }
  .ops-post { align-items: flex-start; flex-direction: column; }
  .ops-tabs { width: 100%; }
  .ops-tabs button { padding-inline: 8px; }
  .ops-dialog-body { padding-inline: 11px; }
  .ops-form-grid { grid-template-columns: minmax(0, 1fr); }
  .ops-material-inputs { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .ops, .ops-panel, .ops-dialog[open], .ops-bar i { animation: none; } }
