/* Forms and content layouts. Application shell and design tokens live in app.css. */
label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
}

input:not([type="checkbox"]):not([type="file"]),
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 11px 14px;
  border: 1px solid #d8ebe9;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

input::placeholder,
textarea::placeholder { color: #738981; opacity: 1; }
input:not([type="checkbox"]):not([type="file"]):hover:not(:disabled),
select:hover:not(:disabled),
textarea:hover:not(:disabled) { border-color: #b6dcd8; }
input:not([type="checkbox"]):not([type="file"]):focus,
select:focus,
textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px #24a69910; }
input:disabled,
select:disabled,
textarea:disabled { background: #f4f6f9; color: #87a3a0; cursor: not-allowed; }
textarea { min-height: 132px; resize: vertical; }

:is(input, select, textarea, .filter, .type-option, .row-title, .link-back, .ig-arrow):focus-visible,
.media-controls button:focus-visible,
.simulation-controls summary:focus-visible {
  outline: 3px solid #1b8d83;
  outline-offset: 3px;
}

.field { margin-bottom: 21px; }
.field small { display: block; margin-top: 7px; font-size: 11px; line-height: 1.65; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
  margin: 10px 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  cursor: pointer;
}
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); flex-shrink: 0; }
.checkbox-group { display: grid; gap: 6px; max-height: 260px; overflow-y: auto; scrollbar-width: thin; }
.checkbox-group .check { margin: 0; padding: 10px 12px; border-radius: 9px; background: #f5f7fb; }

.search { position: relative; width: 100%; max-width: 330px; }
.search > .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #89afab; pointer-events: none; }
.search input:not([type="checkbox"]):not([type="file"]) { min-height: 42px; padding-left: 41px; background: #fff; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.filters { display: flex; gap: 3px; max-width: 100%; padding: 4px; border-radius: 11px; background: #f0f5f2; overflow-x: auto; scrollbar-width: thin; }
.filter { flex-shrink: 0; min-height: 34px; padding: 8px 11px; border: 0; border-radius: 8px; background: transparent; color: var(--text-secondary); font-size: 11px; font-weight: 600; line-height: 1.4; white-space: nowrap; transition: background .16s ease, color .16s ease, box-shadow .16s ease; }
.filter:hover:not(:disabled) { color: var(--brand-dark); background: #e3eee8; }
.filter.active { color: var(--brand); background: #fff; box-shadow: 0 1px 4px #15464110; }

.panel.flush { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; text-align: left; }
.data-table th { padding: 14px 24px; border-bottom: 1px solid var(--line); background: #f7faf8; color: #5d776f; font-size: 10px; font-weight: 700; letter-spacing: .07em; line-height: 1.5; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 19px 24px; border-bottom: 1px solid #e9f0ec; color: #476f6b; font-size: 13px; line-height: 1.6; vertical-align: middle; }
.data-table tbody tr { transition: background .16s ease; }
.data-table tbody tr:hover { background: var(--surface-hover); }
.data-table tbody tr:focus-within { background: var(--surface-hover); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table td:last-child { text-align: right; white-space: nowrap; }
.primary-cell { display: flex; align-items: center; gap: 13px; min-width: 170px; }
.primary-cell > span { min-width: 0; }
.primary-cell strong { display: block; margin-bottom: 4px; color: var(--ink); font-size: 13px; font-weight: 650; }
.primary-cell small { display: block; font-size: 11px; line-height: 1.5; }
.user-assignment { display: grid; gap: 5px; min-width: 170px; max-width: 420px; overflow-wrap: anywhere; }
.user-assignment strong { color: var(--ink); font-size: 13px; font-weight: 650; }
.user-assignment span, .user-assignment small { color: var(--muted); font-size: 12px; line-height: 1.6; }
.users-table th:first-child { width: 30%; }
.users-table th:nth-child(2) { width: 43%; }
.publication-delivery { display: grid; gap: 5px; min-width: 190px; max-width: 350px; overflow-wrap: anywhere; }
.publication-delivery + .publication-delivery { margin-top: 14px; }
.publication-delivery strong { color: var(--ink); font-size: 12px; font-weight: 600; }
.publication-delivery small { color: var(--muted); font-size: 11px; line-height: 1.6; }
.row-title { padding: 0; border: 0; background: transparent; color: var(--ink); font-size: 13px; font-weight: 650; line-height: 1.5; text-align: left; overflow-wrap: anywhere; }
.row-title:hover { color: var(--brand); }
.table-thumb,
.table-placeholder { width: 48px; height: 54px; border: 1px solid #e3e9f1; border-radius: 9px; flex-shrink: 0; }
.table-thumb { object-fit: cover; background: #eaf0f7; }
.table-placeholder { display: grid; place-items: center; color: #78b9b2; background: #f0f4fa; }
.table-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.small-date { color: var(--muted); font-size: 11px; }
.panel-title-sub { margin-top: 6px; color: var(--muted); font-size: 12px; line-height: 1.6; }

/* Content preparation and destination selection. */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(288px, 350px); align-items: start; gap: 28px; }
.detail-grid > div,
.detail-grid > aside { min-width: 0; }
.section-title { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 23px; }
.section-title h2 { margin: 0; font-size: 16px; font-weight: 650; letter-spacing: -.25px; }
.section-number { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 10px; border-radius: 9px; background: #edf3fd; color: var(--brand); font-size: 12px; font-weight: 650; }
.type-switch { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 8px 0 24px; }
.type-option { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #6d918d; font-size: 12px; font-weight: 550; transition: border-color .16s ease, color .16s ease, background .16s ease; }
.type-option > .icon { width: 17px; height: 17px; }
.type-option:hover { border-color: #b5e7e2; background: #f7faff; }
.type-option.selected { border-color: #a4cfc2; background: var(--brand-soft); color: var(--brand-dark); font-weight: 650; box-shadow: inset 0 0 0 1px #24a69908; }
.upload-zone { margin-bottom: 14px; padding: 29px 20px; border: 1px dashed #bde6e2; border-radius: 13px; background: #f8faff; text-align: center; transition: background .16s ease, border-color .16s ease; }
.upload-zone:focus-within { border-color: var(--brand); background: #f1f6ff; }
.upload-zone > .icon { width: 37px; height: 37px; margin-bottom: 12px; padding: 8px; border-radius: 11px; color: #54b9af; background: #eafcfa; }
.upload-zone label { margin-bottom: 4px; color: #3c8e86; font-size: 13px; cursor: pointer; }
.upload-zone small { font-size: 11px; line-height: 1.7; }
.upload-zone input[type="file"] { display: block; max-width: 100%; width: 280px; margin: 17px auto 0; color: var(--muted); font-size: 11px; }
.upload-zone input[type="file"]::file-selector-button { margin-right: 10px; padding: 8px 11px; border: 1px solid #ccebe8; border-radius: 7px; color: var(--brand); background: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.media-strip { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 23px; }
.media-strip:empty { margin: 0; }
.media-item { width: 94px; }
.media-item > img { width: 94px; height: 94px; border: 1px solid #e0e7f0; border-radius: 10px; object-fit: cover; }
.media-controls { display: flex; justify-content: space-between; gap: 3px; margin-top: 5px; }
.media-controls button { display: grid; place-items: center; min-width: 28px; min-height: 28px; padding: 3px; border: 1px solid #e5eaf1; border-radius: 6px; color: #6c9c97; background: #fff; font-size: 12px; }
.media-controls button:hover:not(:disabled) { border-color: #b9e4e0; color: var(--brand); background: #f1f5fc; }
.targets { max-height: 420px; margin-top: 10px; padding-right: 5px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #cbe5e2 transparent; }
.target-item { padding: 15px 0; border-bottom: 1px solid var(--line); }
.target-item:last-child { border-bottom: 0; }
.target-item:has(input[data-target]:checked) { margin: 5px 0; padding: 14px; border-color: transparent; border-radius: 12px; background: var(--brand-soft); }
.target-item .check { align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 0; }
.target-left { display: flex; align-items: center; gap: 10px; min-width: 170px; flex: 1; }
.target-left > span { min-width: 0; }
.target-left strong { font-size: 12px; font-weight: 650; overflow-wrap: anywhere; }
.target-item .subline { line-height: 1.5; overflow-wrap: anywhere; }
.target-item .check > .pill { font-size: 10px; }
.target-item textarea { min-height: 82px; margin-top: 12px; background: #fff; font-size: 12px; }
.target-item .optional { justify-content: flex-start; align-items: flex-start; margin-top: 12px; margin-left: 28px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.target-count { color: var(--text-secondary); font-size: 12px; text-align: right; }
.target-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.target-toolbar .actions { gap: 4px; flex-wrap: wrap; }
.target-views { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.target-views .btn[aria-pressed="true"] { color: var(--brand-dark); background: #fff; box-shadow: 0 1px 3px #063b3510; }
.target-results { margin: 10px 0 0; color: var(--text-secondary); font-size: 12px; }
.target-results:empty { display: none; }
.target-caption { margin: 10px 0 0 28px; }
.target-caption summary { color: var(--brand-dark); cursor: pointer; font-size: 12px; padding: 7px 0; }
.target-caption textarea { margin-top: 4px; }
.target-empty { padding: 28px 14px; text-align: center; color: var(--text-secondary); font-size: 13px; }
.target-empty strong { color: var(--ink); font-size: 14px; }
.target-empty p { margin: 8px 0 0; line-height: 1.6; }
.sticky-save { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.link-back { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 20px; padding: 5px 0; border: 0; color: var(--muted); background: none; font-size: 12px; font-weight: 500; }
.link-back:hover { color: var(--brand); }
.link-back > .icon { width: 16px; height: 16px; }

/* A destination remains a compact status row; details stay in secondary dialogs. */
.destination { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.destination:last-child { padding-bottom: 0; border-bottom: 0; }
.destination-main { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.destination-main > div { min-width: 0; }
.destination-name { margin-bottom: 4px; color: var(--ink); font-size: 13px; font-weight: 650; line-height: 1.5; overflow-wrap: anywhere; }
.destination-main .subline { line-height: 1.6; overflow-wrap: anywhere; }
.destination-right { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; max-width: 58%; }
.destination-caption { color: var(--muted); font-size: 12px; line-height: 1.7; white-space: pre-wrap; }
.content-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 17px; padding-bottom: 14px; border-bottom: 1px solid #edf1f6; color: var(--muted); font-size: 11px; line-height: 1.6; }
.caption-text { margin-bottom: 0; color: #476e6a; font-size: 14px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.preview-column { position: sticky; top: 124px; }
.preview-column > .field { margin-bottom: 17px; }
.preview-column > .field label { color: #608a86; font-size: 11px; }
.preview-column select { font-size: 12px; }
.preview-label { margin: 0 0 13px; color: #89aaa7; font-size: 10px; font-weight: 600; letter-spacing: .11em; line-height: 1.5; text-align: center; text-transform: uppercase; }
.instagram-preview { width: 100%; max-width: 370px; margin: auto; overflow: hidden; border: 1px solid #dcedeb; border-radius: 17px; background: #fff; box-shadow: 0 12px 32px #15484310; }
.ig-head { display: flex; align-items: center; gap: 9px; padding: 15px; color: #285450; font-size: 11px; font-weight: 650; }
.ig-avatar { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 2px solid #db9978; border-radius: 50%; background: #f4f6f9; color: #608e89; font-size: 10px; }
.ig-head .more { margin-left: auto; color: #517975; font-size: 19px; letter-spacing: 2px; }
.ig-media { position: relative; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; background: #f0f3f8; }
.ig-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ig-placeholder { padding: 32px; color: #95b9b5; font-size: 12px; line-height: 1.6; text-align: center; }
.ig-placeholder > .icon { display: block; width: 34px; height: 34px; margin: 0 auto 14px; color: #9fcec9; }
.ig-arrow { position: absolute; top: 50%; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid #ffffff80; border-radius: 50%; background: #fffffff0; color: #335e5a; box-shadow: 0 2px 9px #16454015; transform: translateY(-50%); font-size: 23px; line-height: 1; }
.ig-arrow.prev { left: 11px; }
.ig-arrow.next { right: 11px; }
.ig-counter { position: absolute; top: 12px; right: 12px; padding: 5px 9px; border-radius: 20px; color: #fff; background: #143d39bd; font-size: 10px; font-weight: 600; line-height: 1.4; }
.ig-tools { display: flex; align-items: center; gap: 13px; padding: 14px 15px 5px; color: #25534e; }
.ig-tools .icon { width: 20px; height: 20px; }
.ig-tools .bookmark { margin-left: auto; }
.ig-dots { display: flex; justify-content: center; gap: 5px; margin: 6px 0 1px; padding: 3px 0; }
.ig-dots > span { width: 5px; height: 5px; border-radius: 50%; background: #d6ebe9; }
.ig-dots > span.current { background: var(--brand); }
.ig-caption { padding: 11px 15px 18px; color: #4a726e; font-size: 12px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.ig-caption strong { color: #265550; font-weight: 650; }
.story-preview { position: relative; width: min(100%, 292px); margin: auto; overflow: hidden; aspect-ratio: 9 / 16; border: 1px solid #24534e; border-radius: 22px; color: #fff; background: #143f3b; box-shadow: 0 13px 30px #11443f1c; }
.story-preview > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.story-overlay { position: absolute; inset: 0 0 auto; z-index: 1; padding: 14px; background: linear-gradient(#0b332f8a, transparent); }
.story-line { height: 3px; margin-bottom: 14px; border-radius: 4px; background: #ffffffa6; }
.story-user { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 600; }
.story-user .ig-avatar { border-color: #ffffffad; background: #ffffff1f; color: #fff; }
.story-close { margin-left: auto; font-size: 21px; font-weight: 400; }
.story-caption { max-width: 292px; margin: 16px auto 0; padding: 0 0 0 12px; border-left: 2px solid #ccebe8; color: var(--muted); font-size: 12px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.story-caption strong { color: #53807c; font-weight: 600; }

/* Secondary dialogs share the same spacing as the content panels. */
dialog { width: min(560px, calc(100vw - 40px)); max-height: calc(100dvh - 48px); margin: auto; padding: 0; overflow-y: auto; border: 1px solid #dcedeb; border-radius: 18px; color: var(--ink); background: #fff; box-shadow: 0 28px 100px #0d332f43; }
dialog::backdrop { background: #0e353173; backdrop-filter: blur(4px); }
dialog form { margin: 0; min-width: 0; }
.modal-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; border-bottom: 1px solid var(--line); background: #fff; }
.modal-head h2 { margin: 0; font-size: 18px; font-weight: 650; letter-spacing: -.3px; }
.modal-head [data-close] { min-width: 36px; min-height: 36px; padding: 8px; }
.modal-body { padding: 24px 26px; }
.modal-body > p { color: var(--muted); font-size: 13px; line-height: 1.75; }
.modal-body > p:last-child,
.modal-body > .field:last-child { margin-bottom: 0; }
.modal-footer { position: sticky; bottom: 0; z-index: 1; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; padding: 17px 26px; border-top: 1px solid var(--line); background: #fff; }
.modal-error { margin: 0; padding: 0 26px 18px; }
.modal-error:empty { display: none; }
.help-note { margin: 18px 0; padding: 11px 14px; border-left: 3px solid #bad5c9; border-radius: 0 9px 9px 0; color: var(--text-secondary); background: #f4f8f5; font-size: 12px; line-height: 1.75; }
.problem-item { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.65; }
.problem-item:last-child { border-bottom: 0; }
.audit-filters { display:flex; flex-wrap:wrap; align-items:flex-end; gap:14px; margin-bottom:24px; }
.audit-filters .field { margin:0; flex:0 1 220px; min-width:160px; }
.audit-filters label { color:var(--muted); font-size:12px; }
.audit-filters :is(input,select) { min-height:44px; padding-top:10px; padding-bottom:10px; background:#fff; }
.audit-custom { display:flex; flex-wrap:wrap; gap:12px; align-items:flex-end; }
.audit-custom[hidden] { display:none; }
.audit-custom .field { flex-basis:165px; }
.audit-custom .btn { min-height:44px; }
.audit-list-heading { display:flex; justify-content:space-between; gap:12px; padding:17px 24px; font-size:11px; color:var(--muted); border-bottom:1px solid var(--line); }
.audit-table { table-layout:fixed; }
.audit-table th:first-child { width:100px; }
.audit-table th:last-child { width:235px; }
.audit-table .audit-day td { padding:12px 24px; background:#f1f7f6; border-bottom:1px solid var(--line); text-align:left; }
.audit-day h2 { margin:0; font-size:12px; font-weight:700; line-height:1.5; color:var(--ink); }
.audit-table .audit-event td { padding-top:17px; padding-bottom:17px; overflow-wrap:anywhere; }
.audit-time { vertical-align:top!important; color:var(--muted)!important; font-size:12px!important; white-space:nowrap; font-variant-numeric:tabular-nums; }
.audit-description strong { display:block; color:var(--ink); font-size:13px; font-weight:600; }
.audit-description>span { display:block; margin-top:4px; color:var(--muted); font-size:12px; }
.audit-table .audit-event .audit-person { text-align:left; white-space:normal; }
.audit-person>span { vertical-align:middle; }
.audit-avatar { display:inline-flex; align-items:center; justify-content:center; width:29px; height:29px; margin-right:9px; border-radius:50%; background:#e9f3f1; color:var(--brand); font-size:10px; font-weight:700; }
@media(max-width:640px){
  .audit-filters { gap:12px; }
  .audit-filters>.field { flex:1 1 140px; min-width:0; }
  .audit-custom { width:100%; }
  .audit-custom .field { flex:1 1 120px; min-width:0; }
  .audit-list-heading { padding:14px 16px; font-size:10px; }
  .audit-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .audit-table :is(tbody,.audit-day,.audit-day td) { display:block; width:100%; }
  .audit-table .audit-day td { padding:11px 16px; }
  .audit-event { display:grid; grid-template-columns:48px minmax(0,1fr); gap:5px 10px; padding:16px; border-bottom:1px solid var(--line); }
  .audit-table .audit-event td { display:block; padding:0; border:0; }
  .audit-table .audit-person { grid-column:2; font-size:11px; color:var(--muted); }
  .audit-avatar { width:21px; height:21px; margin-right:6px; font-size:8px; }
  .audit-panel .table-foot { flex-wrap:wrap; }
}
.problem-item p { margin: 6px 0; }
.problem-item small { font-size: 11px; }
.summary-line { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1.6; }
.summary-line > :last-child { text-align: right; overflow-wrap: anywhere; }
.confirmation-word { min-height: 50px; background: #fafcff; font-weight: 700; letter-spacing: 4px; text-align: center; }
.simulation-controls { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.simulation-controls summary { color: #6a9f9a; font-size: 12px; font-weight: 600; line-height: 1.6; cursor: pointer; }
.simulation-controls summary::marker { color: #8cc0bb; }
.simulation-controls[open] summary { margin-bottom: 16px; }

@media (min-width: 1500px) {
  .detail-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; }
}

@media (max-width: 1180px) {
  .toolbar { align-items: center; flex-wrap: wrap; gap: 14px; }
  .toolbar > .filters { flex-basis: 100%; width: 100%; }
  .toolbar > .search { max-width: none; flex: 1 1 260px; }
  .data-table th,
  .data-table td { padding-right: 18px; padding-left: 18px; }
}

@media (max-width: 1120px) {
  .detail-grid { grid-template-columns: 1fr; gap: 22px; }
  .preview-column { position: static; width: 100%; max-width: 390px; margin: 7px auto 28px; }
}

@media (max-width: 860px) {
  .data-table .hide-small { display: none; }
  .destination { align-items: flex-start; }
  .destination-right { max-width: 55%; }
}

@media (max-width: 720px) {
  input:not([type="checkbox"]):not([type="file"]), select, textarea { font-size: 16px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .form-grid .full { grid-column: 1; }
  .field { margin-bottom: 19px; }
  .check { min-height: 34px; }
  .toolbar { padding: 16px; }
  .toolbar > .search { flex-basis: 100%; }
  .search { max-width: none; }
  .filters { padding: 4px; }
  .filter { min-height: 36px; padding: 8px 10px; font-size: 11px; }
  .data-table th, .data-table td { padding: 15px 16px; }
  .data-table .hide-mobile { display: none; }
  .data-table td { font-size: 12px; }
  .primary-cell { min-width: 152px; gap: 10px; }
  .table-thumb, .table-placeholder { width: 38px; height: 44px; border-radius: 7px; }
  .row-title { font-size: 12px; }
  .table-foot { padding: 15px 16px; }
  .table-foot .actions { gap: 6px; }
  .detail-grid { gap: 14px; }
  .detail-grid .panel { padding: 20px; }
  .section-title { gap: 10px; margin-bottom: 20px; }
  .section-title h2 { font-size: 15px; }
  .section-number { width: 25px; height: 25px; margin-right: 8px; font-size: 11px; }
  .type-option { min-height: 44px; padding: 10px 7px; gap: 6px; }
  .type-option > .icon { width: 16px; height: 16px; }
  .upload-zone { padding: 24px 15px; }
  .upload-zone input[type="file"] { width: 100%; }
  .media-item { width: 78px; }
  .media-item > img { width: 78px; height: 78px; }
  .media-controls button { min-width: 24px; min-height: 28px; }
  .targets { max-height: 360px; padding-right: 2px; }
  .target-item textarea { font-size: 16px; }
  .target-item .check > .pill { margin-left: 28px; }
  .target-item:has(input[data-target]:checked) { padding: 12px; }
  .target-left { min-width: 160px; }
  .destination { flex-direction: column; align-items: stretch; gap: 12px; padding: 17px 0; }
  .destination-right { justify-content: flex-start; max-width: none; width: 100%; gap: 8px; }
  .destination-right .btn { min-height: 36px; }
  .content-meta { gap: 7px; }
  .caption-text { font-size: 13px; }
  .preview-column { max-width: 360px; min-width: 0; margin-top: 3px; }
  .preview-column select { font-size: 16px; }
  .ig-arrow { width: 38px; height: 38px; }
  .sticky-save { padding-top: 18px; }
  .sticky-save > .btn { width: 100%; min-height: 46px; }
  dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); border-radius: 15px; }
  .modal-head { padding: 18px 20px; }
  .modal-head h2 { font-size: 17px; }
  .modal-body { padding: 21px 20px; }
  .modal-footer { padding: 15px 20px; }
  .modal-footer > .btn { flex: 1; min-height: 44px; }
  .modal-error { padding-right: 20px; padding-left: 20px; }
  .summary-line { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  input, select, textarea, .filter, .type-option, .upload-zone, .data-table tbody tr { transition: none; }
}

/* Overview: one primary action, recent content and a compact agenda. */
.overview-page .page-heading{align-items:center;margin-bottom:26px;gap:20px}
.overview-page .page-heading h1{font-size:32px;letter-spacing:-1px}
.overview-page .page-heading p{margin-top:8px}
.overview-workspace{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr);gap:24px;align-items:start}
.overview-workspace .panel{margin:0;padding:0;overflow:hidden}
.overview-panel-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:25px 26px 21px;border-bottom:1px solid var(--line)}
.overview-panel-heading h2{margin:0;font-size:17px;letter-spacing:-.35px}
.overview-panel-heading>a{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:600;white-space:nowrap;color:var(--brand)}
.overview-panel-heading>a .icon{width:15px;height:15px}
.overview-publication{display:flex;align-items:center;gap:14px;padding:21px 26px;border-bottom:1px solid var(--line);color:var(--ink);transition:background .15s}
.overview-publication:last-child{border-bottom:0}
.overview-publication:hover,.overview-schedule:hover{background:var(--surface-hover)}
.overview-content-icon{display:grid;place-items:center;flex:0 0 42px;height:46px;border-radius:12px;background:var(--brand-soft);color:var(--brand)}
.overview-content-icon .icon{width:20px;height:20px}
.overview-publication-copy{flex:1;min-width:0}
.overview-publication-copy strong{display:block;font-size:14px;line-height:1.5;font-weight:650;overflow-wrap:anywhere}
.overview-publication-copy small{display:block;margin-top:4px;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}
.overview-row-status .pill{font-size:11px;white-space:nowrap}
.overview-row-arrow{display:flex;color:#8fbfba}
.overview-row-arrow .icon{width:17px;height:17px}
.overview-content-empty{padding:47px 25px 49px;text-align:center}
.overview-content-empty>span{display:inline-grid;place-items:center;width:48px;height:48px;border-radius:14px;background:#edf3fd;color:#5aaca4;margin-bottom:17px}
.overview-content-empty h3{margin:0 0 8px;font-size:16px}
.overview-content-empty p{margin:0;color:var(--muted);font-size:13px;line-height:1.7}
.overview-agenda-empty{padding:32px 26px 35px}
.overview-agenda-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:#f0f4fa;color:#85b1ad;margin-bottom:19px}
.overview-agenda-empty strong{font-size:14px;font-weight:600;display:block}
.overview-agenda-empty p{font-size:12px;line-height:1.7;color:var(--muted);margin:8px 0 0}
.overview-schedule{display:block;padding:21px 26px;border-bottom:1px solid var(--line);color:var(--ink)}
.overview-schedule:last-child{border:0}
.overview-schedule time{display:flex;align-items:center;gap:7px;color:var(--brand);font-size:12px;font-weight:600;margin-bottom:10px}
.overview-schedule time .icon{width:15px;height:15px}
.overview-schedule strong{display:block;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
.overview-schedule>span{display:block;font-size:12px;color:var(--muted);margin-top:4px}
.overview-schedule small{display:block;margin-top:9px;font-size:11px;color:var(--muted)}
.overview-page-note{padding:14px 26px;margin:0;font-size:12px;color:var(--muted);border-top:1px solid var(--line)}
@media(max-width:1100px){.overview-workspace{grid-template-columns:minmax(0,1fr)}.overview-agenda-empty{display:grid;grid-template-columns:40px 1fr;column-gap:15px;padding:25px}.overview-agenda-icon{grid-row:span 2;margin:0}.overview-agenda-empty p{margin-top:5px}}
@media(max-width:720px){.overview-page .page-heading{align-items:stretch}.overview-page .page-heading h1{font-size:27px}.overview-page .page-heading .actions .btn{width:100%;justify-content:center}.overview-panel-heading{padding:20px}.overview-publication{padding:18px 20px;flex-wrap:wrap;gap:10px}.overview-content-icon{flex-basis:34px;height:40px;border-radius:10px}.overview-publication-copy{min-width:calc(100% - 55px)}.overview-row-status{margin-left:44px}.overview-row-arrow{margin-left:auto}.overview-workspace{gap:18px}}

.profiles-page .page-heading{margin-bottom:25px}
.profiles-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:23px 25px;border-bottom:1px solid var(--line);flex-wrap:wrap}
.profiles-toolbar .search{flex:1;max-width:390px;min-width:220px}
.profiles-filters{white-space:nowrap}
.profiles-table-scroll{overflow-x:auto}
.profiles-table{min-width:570px}
.profiles-table th:first-child,.profiles-table td:first-child{width:65%}
.profiles-table th:nth-child(2),.profiles-table td:nth-child(2){text-align:left}
.profiles-table td{padding-top:21px;padding-bottom:21px;vertical-align:middle}
.profile-identity{display:flex;align-items:center;gap:15px}
.profile-identity>.avatar{width:43px;height:43px;min-width:43px;border-radius:13px;font-size:12px}
.profile-identity>span:last-child{min-width:0}
.profile-identity strong{display:block;color:var(--ink);font-size:14px;font-weight:650;line-height:1.5;overflow-wrap:anywhere}
.profile-identity small{display:block;font-size:12px;color:var(--muted);margin-top:3px;overflow-wrap:anywhere}
.profile-row-actions{display:flex;gap:9px;justify-content:flex-end}
.profiles-table .pill{white-space:nowrap;font-size:12px;background:transparent;padding:0;color:var(--muted)}
.profiles-table .pill .dot{display:none}
.profiles-table .pill.green{color:#23715d}
.profiles-table .pill.orange{background:#fff3df;color:#875614;padding:5px 9px}
.profiles-table .pill.orange .dot{display:inline-block}
.publication-next-step{display:block;margin-top:7px;max-width:220px;font-size:11px;line-height:1.6;color:var(--muted)}
.workspace-filters .field{margin-bottom:0}
.workspace-filters .workspace-more{border-top:1px solid var(--line);padding-top:4px}
.workspace-more[open] .form-grid{row-gap:14px;padding:8px 0 12px}
.workspace-filters>.actions{justify-content:flex-end;padding-top:4px}
.workspace-table{table-layout:fixed}
.workspace-table th:first-child{width:30%}
.workspace-table th:nth-child(2){width:25%}
.workspace-table th:nth-child(3){width:30%}
.workspace-table td{overflow-wrap:anywhere}
.workspace-title{display:block;color:var(--ink);font-size:14px;font-weight:650;line-height:1.6}
.workspace-state-list{display:flex;align-items:flex-start;flex-direction:column;gap:6px}
.workspace-table .publication-delivery{min-width:0;max-width:100%}
.workspace-table .btn .icon{width:15px;height:15px}
.mobile-cell-label{display:none}
@media(max-width:1000px) and (min-width:641px){.workspace-table{table-layout:auto}.workspace-table td:last-child{padding-left:8px;padding-right:12px}.workspace-table .btn{padding-left:9px;padding-right:9px}.workspace-table .btn .icon{display:none}.workspace-table .pill{white-space:normal}}
@media(max-width:640px){
  .workspace-table,.workspace-table tbody{display:block;width:100%}
  .workspace-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .workspace-table tbody>tr{display:grid;grid-template-columns:minmax(0,1fr);padding:20px;gap:16px;border-bottom:1px solid var(--line)}
  .workspace-table tbody>tr:last-child{border-bottom:0}
  .workspace-table tbody>tr>td{display:block;width:100%;padding:0;border:0;text-align:left;white-space:normal}
  .workspace-table .mobile-cell-label{display:block;margin-bottom:7px;color:var(--text-secondary);font-size:10px;font-weight:650;letter-spacing:.06em;text-transform:uppercase}
  .workspace-table .workspace-title{font-size:14px}
  .workspace-table .publication-next-step{max-width:none}
  .workspace-table .pill{white-space:normal}
  .workspace-table td:last-child .btn{width:100%;min-height:42px;justify-content:space-between}
  .workspace-table .subline{margin-top:6px}
  .workspace-filters>.actions .btn{flex:1;min-height:44px}
  #workspace-results .table-foot{flex-wrap:wrap;gap:12px}
  .overview-panel-heading{gap:12px}
  .overview-panel-heading h2{font-size:16px}
  .overview-publication-copy strong{white-space:normal}
}
.activation-shell{min-height:100dvh;display:grid;place-items:center;padding:28px 20px}
.activation-card{width:100%;max-width:440px;border:1px solid var(--line);border-radius:22px;background:#fff;padding:32px;box-shadow:var(--shadow)}
.activation-brand{display:flex;align-items:center;gap:12px;margin-bottom:30px;color:var(--brand-dark);font-size:18px}
.activation-card h1{font-size:26px;line-height:1.25;margin-bottom:14px}
.activation-card p{font-size:13px;color:var(--muted);overflow-wrap:anywhere}
.activation-card .login-form{max-width:none}
.activation-card .login-form>p{margin-bottom:24px}
.activation-card .btn.text{margin-top:12px}
.activation-complete{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#e8f5ee;color:var(--green);margin-bottom:20px}
@media(max-width:480px){.activation-card{padding:26px 22px}}
.profiles-foot{min-height:65px;color:var(--muted);font-size:12px}
.profiles-empty{padding:34px 20px;text-align:center}
.profiles-empty>.icon{display:block;margin:0 auto 13px;color:#80b1ac;width:26px;height:26px}
.profiles-empty strong{font-size:15px;display:block;color:var(--ink)}
.profiles-empty p{font-size:13px;color:var(--muted);margin-top:8px}
.profiles-environment-note{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:13px;margin:0 0 22px}
.profiles-environment-note .icon{width:17px;height:17px}
.profiles-pagination{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
@media(max-width:720px){.profiles-toolbar{padding:18px;gap:14px}.profiles-toolbar .search{max-width:none;flex-basis:100%;min-width:0}.profiles-filters{width:100%;justify-content:space-between}.profiles-table{min-width:510px}.profile-row-actions{flex-direction:column}.profiles-foot{gap:15px;flex-wrap:wrap}}
.account-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}
.account-data{display:grid;grid-template-columns:90px minmax(0,1fr);gap:12px;margin:24px 0}
.account-data dt{color:var(--muted)}.account-data dd{margin:0;overflow-wrap:anywhere}
.account-button{display:flex;align-items:center;gap:12px;border:0;background:transparent;color:inherit;text-align:left;padding:4px;cursor:pointer;border-radius:8px}
.account-button:hover{background:var(--surface-soft,#f1f7f6)}
.notification-button{position:relative;background:none;border:0;color:var(--muted);padding:10px;cursor:pointer;border-radius:8px}
.notice-count{position:absolute;right:0;top:0;border-radius:10px;background:var(--primary,#007d74);color:white;font-size:10px;min-width:17px;padding:2px 4px}.notice-count[hidden]{display:none}
.notification-item{padding:17px 0;border-bottom:1px solid var(--border)}.notification-item:last-child{border-bottom:0}.notification-item p{margin:8px 0 12px;overflow-wrap:anywhere;color:var(--muted)}
@media(max-width:850px){.account-grid{grid-template-columns:1fr}.account-button .person-name{max-width:100px;overflow:hidden;text-overflow:ellipsis}.account-button{gap:7px}.person{gap:6px}}
