/* Visitor account page. Tokens, header, fields and cards come from contact.css, advertise.css and dashboard.css. */
.acct-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.acct-nav a { padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--dim); border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.05); }
.acct-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.14); }
.dash-sec > .hint { margin-bottom: 14px; max-width: 720px; }
.dash-sec .dash-card { margin-bottom: 14px; }
.dash-card h3 { margin-bottom: 10px; font-size: 16px; font-weight: 650; }

.dash-note.bad { color: #ffd0d0; border-color: rgba(255, 138, 138, 0.45); background: rgba(255, 138, 138, 0.1); }
.ac-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; margin-top: 6px; padding: 6px 12px; border-radius: 999px; font-size: 14px; color: var(--text); background: rgba(108, 182, 255, 0.14); border: 1px solid rgba(108, 182, 255, 0.3); overflow-wrap: anywhere; }
.ac-chip a { color: inherit; text-decoration: none; font-weight: 600; }
.ac-chip a:hover { text-decoration: underline; }
.ac-chip button, .x { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 14px; line-height: 1; color: var(--dim); background: rgba(255, 255, 255, 0.12); }
.ac-chip button:hover, .x:hover { color: #fff; background: rgba(255, 255, 255, 0.28); }

.rows { display: grid; gap: 10px; }
.item { display: grid; gap: 8px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.item-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; }
.item-title { display: grid; gap: 2px; min-width: 0; }
.item-title b, .item-title a { font-size: 15px; font-weight: 650; color: var(--text); overflow-wrap: anywhere; }
.item-title small { font-size: 12.5px; color: var(--mute); }
.item p { font-size: 14px; line-height: 1.5; color: var(--dim); white-space: pre-wrap; overflow-wrap: anywhere; }
.item .dash-btn { padding: 6px 14px; font-size: 13px; }
.item-body { display: flex; gap: 14px; align-items: flex-start; }
.item-body > div { min-width: 0; flex: 1; display: grid; gap: 8px; }
.thumb { flex-shrink: 0; width: 96px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.3); }
.latest { display: grid; gap: 8px; margin-top: 6px; }
.latest .item { background: rgba(255, 255, 255, 0.03); }
.sub { margin-top: 4px; }
.sub > summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--accent); }

.prov { display: grid; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); }
.prov:first-child { padding-top: 0; border-top: 0; }
.prov-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.prov-head b { font-size: 16px; }
.acc { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); font-size: 14px; }
.acc b { overflow-wrap: anywhere; }

.inline { display: flex; gap: 8px; }
.inline input { flex: 1; min-width: 0; }
.field select, .field textarea { width: 100%; }
fieldset.field { border: 0; padding: 0; min-width: 0; }
fieldset.field legend { margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--dim); }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.ac-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 10px; }

.preview { display: grid; gap: 10px; margin-bottom: 14px; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-strong); }
.preview h3 { margin: 0; }
.ac-pv { display: grid; gap: 6px; }
.ac-pv-head { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 600; color: var(--dim); }
.ac-pv-head .over { color: var(--bad); }
.ac-pv-text { font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); }
.ac-pv-lock { display: inline-block; margin-top: 4px; padding: 2px 10px; border-radius: 999px; font-weight: 600; color: #cfe6ff; background: rgba(108, 182, 255, 0.16); border: 1px dashed rgba(108, 182, 255, 0.5); user-select: none; }
.preview img { max-width: 100%; max-height: 320px; width: auto; justify-self: start; border-radius: 12px; border: 1px solid var(--line); }

.pill-ok, .pill-done { color: #9dffc4; background: rgba(37, 211, 102, 0.14); }
.pill-failed { color: var(--bad); background: rgba(255, 138, 138, 0.14); }
.pill-publishing, .pill-scheduled, .pill-pending, .pill-sending { color: #9fd0ff; background: rgba(108, 182, 255, 0.15); }
.pill-partial { color: #ffc58a; background: rgba(255, 170, 80, 0.14); }
.pill-canceled { color: var(--dim); }
.res { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--dim); }
.res a { color: var(--accent); }
.res .res-err { color: var(--bad); overflow-wrap: anywhere; }
.qh { margin: 14px 0 4px; font-size: 14px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--mute); }

@media (max-width: 640px) {
  .item-body { flex-direction: column; }
  .thumb { width: 100%; height: 140px; }
  .inline { flex-direction: column; }
}

#w-file::file-selector-button { margin-right: 12px; padding: 6px 14px; border: 0; border-radius: 999px; font: inherit; font-weight: 600; color: var(--text); background: rgba(255, 255, 255, 0.16); cursor: pointer; }
#w-file::file-selector-button:hover { background: rgba(255, 255, 255, 0.26); }
