/* Marketing HQ additions on top of the shared dashboard styles.css */
main#view { padding: 16px 20px 40px; max-width: 1280px; margin: 0 auto; }
button.primary.small { padding: 5px 12px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 18px 0 8px; }
.section-title h2 { font-size: 16px; margin: 0; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }

/* Forms (drawer) */
.form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.form label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--ink-2); }
.form label.check { flex-direction: row; align-items: center; gap: 6px; }
.form input[type=text], .form input[type=url], .form input[type=date], .form input[type=color],
.form select, .form textarea, .inline-input {
  border: 1px solid var(--border); border-radius: 6px; padding: 7px 9px; background: var(--page); color: var(--ink);
}
.form textarea { min-height: 80px; resize: vertical; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form .actions { display: flex; gap: 8px; justify-content: space-between; margin-top: 6px; }
.form .actions .right { display: flex; gap: 8px; }
button.danger { border: 1px solid var(--critical); color: var(--bad-text); background: none; border-radius: 6px; padding: 4px 10px; cursor: pointer; }

/* Calendar items */
.item { display: flex; gap: 8px; align-items: flex-start; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; }
.item:hover { border-color: var(--accent); }
.item + .item { margin-top: 6px; }
.item .bar { width: 4px; align-self: stretch; border-radius: 2px; flex: none; }
.item .t { font-weight: 550; }
.item .m { font-size: 12px; color: var(--muted); }
.item.done .t { text-decoration: line-through; color: var(--muted); }
.status { font-size: 11px; padding: 1px 7px; border-radius: 999px; border: 1px solid var(--border); color: var(--ink-2); white-space: nowrap; }
.status.idea { border-style: dashed; }
.status.drafted { border-color: var(--warning); }
.status.scheduled { border-color: var(--accent); color: var(--accent); }
.status.done { border-color: var(--good); color: var(--good-text); }
.status.overdue { border-color: var(--critical); color: var(--bad-text); }

.week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.week-day { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 8px; min-height: 120px; }
.week-day.today { border-color: var(--accent); }
.week-day h4 { margin: 0 0 6px; font-size: 12px; color: var(--ink-2); font-weight: 600; display: flex; justify-content: space-between; }
.week-day .item { padding: 5px 7px; font-size: 12px; }
.week-day .item .m { font-size: 11px; }

.month-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.month-head h2 { margin: 0 8px 0 0; font-size: 18px; min-width: 150px; }
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--border); border-left: 1px solid var(--border); background: var(--surface); border-radius: 10px; overflow: hidden; }
.month .dow { font-size: 11px; color: var(--muted); padding: 6px 8px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface-2); }
.month .cell { min-height: 108px; padding: 4px 5px 6px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); cursor: pointer; }
.month .cell.other { background: var(--surface-2); opacity: 0.6; }
.month .cell.today .n { background: var(--accent); color: #fff; border-radius: 999px; padding: 0 6px; }
.month .n { font-size: 12px; color: var(--ink-2); display: inline-block; margin-bottom: 3px; }
.pill { display: block; font-size: 11px; line-height: 1.3; padding: 2px 5px; border-radius: 4px; margin-top: 2px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.pill.done { opacity: 0.45; text-decoration: line-through; }
.pill.idea { background: transparent !important; color: var(--ink-2); border: 1px dashed var(--axis); }

.filterbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.filterbar .chip { cursor: pointer; padding: 3px 9px; font-size: 12px; }

/* Brands */
.brand-layout { display: grid; grid-template-columns: 220px 1fr; gap: 16px; }
.brand-list { display: flex; flex-direction: column; gap: 4px; }
.brand-list button { display: flex; align-items: center; gap: 8px; text-align: left; border: 1px solid transparent; background: none; padding: 7px 10px; border-radius: 8px; cursor: pointer; color: var(--ink-2); }
.brand-list button:hover { background: var(--surface-2); }
.brand-list button.active { background: var(--surface); border-color: var(--border); color: var(--ink); font-weight: 600; }
.brand-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.brand-head h2 { margin: 0; font-size: 20px; }
.kind-tag { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.prop-list { display: flex; flex-direction: column; gap: 6px; }
.prop { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.prop .pl { font-size: 18px; text-align: center; }
.prop .sub { margin-left: 0; display: block; }
.prop a { color: var(--accent); text-decoration: none; }
.prop a:hover { text-decoration: underline; }
.missing { color: var(--bad-text); font-size: 12px; }

.assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.asset { border: 1px solid var(--border); border-radius: 8px; background: var(--surface); overflow: hidden; display: flex; flex-direction: column; }
.asset .thumb { height: 110px; display: grid; place-items: center; background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--surface) 0 50%) 0 0 / 16px 16px; }
.asset .thumb img { max-width: 90%; max-height: 95px; object-fit: contain; }
.asset .cap { padding: 6px 8px; font-size: 12px; display: flex; justify-content: space-between; gap: 6px; align-items: center; }
.asset .cap a { color: var(--accent); text-decoration: none; }
.upload { border: 1px dashed var(--axis); border-radius: 8px; display: grid; place-items: center; min-height: 140px; color: var(--muted); cursor: pointer; text-align: center; padding: 10px; font-size: 12px; }
.upload:hover, .upload.over { border-color: var(--accent); color: var(--accent); }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.sw { width: 110px; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--surface); cursor: pointer; }
.sw .c { height: 54px; }
.sw .l { padding: 5px 7px; font-size: 12px; }
.sw .l code { color: var(--muted); }
.prose { white-space: pre-wrap; color: var(--ink-2); }

/* Social matrix */
.social-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.social-table th, .social-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.social-table tr:last-child td { border-bottom: 0; }
.social-table th { font-size: 12px; color: var(--ink-2); background: var(--surface-2); font-weight: 600; }
.social-table td .h { font-weight: 550; }
.social-table td a { color: var(--accent); text-decoration: none; }
.social-table td .m { font-size: 12px; color: var(--muted); }
.social-table td.none { color: var(--muted); }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--page); padding: 8px 14px; border-radius: 8px; z-index: 80; font-size: 13px; }

@media (max-width: 860px) {
  .week-grid { grid-template-columns: 1fr; }
  .week-day { min-height: 0; }
  .brand-layout { grid-template-columns: 1fr; }
  .brand-list { flex-direction: row; overflow-x: auto; }
  .brand-list button { white-space: nowrap; }
  .month .cell { min-height: 64px; }
  .pill { font-size: 0; height: 6px; padding: 0; }
  .social-wrap { overflow-x: auto; }
  #add-item { display: none; }
}
