/* Advertiser dashboard. Tokens, header, fields and footer come from /contact/contact.css; .state pills from advertise.css. */
.dash-note { margin: 0 0 18px; padding: 14px 18px; border-radius: 14px; font-size: 14px; color: var(--dim); background: var(--panel); border: 1px solid var(--line); }
.dash-note.info { color: #cfe6ff; border-color: rgba(108, 182, 255, 0.4); background: rgba(108, 182, 255, 0.1); }
.dash-note.ok { color: #9dffc4; border-color: rgba(37, 211, 102, 0.4); background: rgba(37, 211, 102, 0.1); }

.dash-card { padding: 24px; border-radius: 20px; background: var(--lg-fill-strong, var(--panel)); border: 1px solid var(--line); }
.dash-card h2 { margin-bottom: 6px; font-family: var(--serif); font-size: 22px; font-weight: 600; }
.dash-card .hint { margin-bottom: 14px; }
.dash-login { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; max-width: 880px; }
.dash-login .field input, .dash-card select, .dash-card textarea { width: 100%; }

.dash-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.dash-bar p { font-size: 14px; color: var(--dim); overflow-wrap: anywhere; }
.dash-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.dash-btn { display: inline-flex; align-items: center; justify-content: center; padding: 9px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--text); border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.06); transition: background 0.2s, transform 0.2s; }
.dash-btn:hover { background: rgba(255, 255, 255, 0.14); }
.dash-btn.primary { color: #fff; border: 0; background: var(--lg-tint, var(--accent)); box-shadow: var(--lg-tint-edge, none); text-shadow: 0 1px 2px rgba(0, 40, 120, 0.4); }
.dash-btn.primary:hover { transform: translateY(-1px); }
.dash-btn.busy, .submit.busy { opacity: 0.6; pointer-events: none; }
.dash-btn[aria-expanded="true"] { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Summary */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 30px; }
.tile { display: grid; gap: 4px; padding: 16px 18px; border-radius: 18px; background: var(--lg-fill-strong, var(--panel)); border: 1px solid var(--line); }
.tile span { font-size: 12.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--mute); }
.tile b { font-family: var(--serif); font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }

.dash-sec { margin-bottom: 36px; }
.dash-sec > h2, .dash-sec-head h2 { margin-bottom: 14px; font-family: var(--serif); font-size: 26px; font-weight: 600; }
.dash-sec-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.dash-sec-head h2 { margin-bottom: 4px; }

/* Campaigns */
.camps { display: grid; gap: 16px; }
.camp { display: grid; gap: 16px; padding: 22px; border-radius: 22px; background: var(--lg-fill-strong, var(--panel)); border: 1px solid var(--line); }
.camp-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; }
.camp-titles { display: grid; gap: 2px; min-width: 0; }
.camp-titles small { font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mute); }
.camp-titles h3 { font-size: 19px; font-weight: 650; overflow-wrap: anywhere; }
.camp-meta { display: grid; gap: 8px; font-size: 13.5px; color: var(--dim); }
.camp-warn { color: var(--bad); }
.meter { height: 8px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, 0.12); }
.meter i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.camp-stats { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: flex-end; }
.stat { display: grid; gap: 2px; }
.stat span { font-size: 12.5px; font-weight: 600; color: var(--mute); }
.stat b { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.camp-chart { display: grid; gap: 2px; margin-left: auto; }
.camp-chart small { font-size: 12.5px; color: var(--mute); }
.spark { width: 168px; height: 44px; }
.spark .bar { fill: rgba(108, 182, 255, 0.55); }
.spark .bar:hover { fill: var(--accent); }
.spark .line { fill: none; stroke: var(--warm, #ffb463); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }

.again { display: grid; gap: 4px; padding: 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-strong); }
.again h4 { font-size: 16px; }
.again .hint { margin-bottom: 8px; }
.again .field { margin-bottom: 8px; }
.again-total { margin: 4px 0; font-size: 16px; font-weight: 700; color: var(--accent); }
.field select, .field input[type="datetime-local"] { width: 100%; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(3, 5, 13, 0.6); color: var(--text); font: inherit; }

/* Tickets */
.tks { display: grid; gap: 12px; }
#tk-form { margin-bottom: 16px; }
.tk { border-radius: 18px; background: var(--lg-fill-strong, var(--panel)); border: 1px solid var(--line); }
.tk > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; cursor: pointer; list-style: none; }
.tk > summary::-webkit-details-marker { display: none; }
.tk-title { display: grid; gap: 2px; min-width: 0; }
.tk-title b { font-size: 15.5px; overflow-wrap: anywhere; }
.tk-title small { font-size: 12.5px; color: var(--mute); }
.pill { flex-shrink: 0; padding: 3px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: rgba(255, 255, 255, 0.12); }
.pill-open { color: #ffc58a; background: rgba(255, 170, 80, 0.14); }
.pill-answered { color: #9fd0ff; background: rgba(108, 182, 255, 0.15); }
.pill-closed { color: var(--dim); }
.thread { display: grid; gap: 10px; padding: 0 20px 6px; }
.msg { max-width: 640px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.07); }
.msg small { display: block; margin-bottom: 2px; font-size: 12.5px; color: var(--mute); }
.msg p { font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg-admin { justify-self: start; background: rgba(108, 182, 255, 0.14); }
.msg-advertiser { justify-self: end; }
.tk-reply { display: grid; gap: 8px; padding: 12px 20px 20px; }
.tk-reply textarea { width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-strong); background: rgba(3, 5, 13, 0.6); color: var(--text); font: inherit; resize: vertical; }

@media (max-width: 640px) {
  .dash-card, .camp { padding: 18px; }
  .camp-chart { margin-left: 0; }
  .msg-advertiser { justify-self: stretch; }
}
