* { box-sizing: border-box; }
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; margin: 0; background: #f6f7f9; color: #1d2330; }
header { background: #fff; padding: 16px 28px; border-bottom: 1px solid #e3e6eb; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
header h1 { font-size: 18px; margin: 0; flex: 1; min-width: 220px; }
.sub { color: #6b7385; font-size: 13px; }
main { padding: 24px 28px; max-width: 1150px; margin: 0 auto; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 20px; }
.card { background: #fff; border: 1px solid #e3e6eb; border-radius: 10px; padding: 16px; }
.label { font-size: 12px; color: #6b7385; text-transform: uppercase; letter-spacing: .03em; }
.value { font-size: 24px; font-weight: 600; margin-top: 6px; }
.note { font-size: 12px; color: #6b7385; margin-top: 4px; }
.panel { background: #fff; border: 1px solid #e3e6eb; border-radius: 10px; padding: 16px; margin-bottom: 20px; }
.panel h2 { font-size: 14px; margin: 0 0 12px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px 12px; font-size: 14px; border-bottom: 1px solid #eef0f3; }
th { font-size: 12px; color: #6b7385; text-transform: uppercase; letter-spacing: .03em; }
td.n, th.n { text-align: right; }
.table-wrap { overflow-x: auto; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; background: #eef0f3; color: #444; }
.badge.ACTIVE { background: #dff5e3; color: #17692a; }
.badge.PAUSED, .badge.CAMPAIGN_PAUSED, .badge.ADSET_PAUSED { background: #fff4d6; color: #8a6100; }
.badge.IN_PROCESS, .badge.PENDING_REVIEW { background: #e3eefc; color: #1d4f91; }
.badge.DISAPPROVED, .badge.WITH_ISSUES { background: #fde2e2; color: #9b1c1c; }
.bar { height: 8px; background: #e8ebf0; border-radius: 99px; overflow: hidden; margin-top: 8px; }
.bar > span { display: block; height: 100%; background: #2f6fed; }
.alert { background: #fde2e2; color: #9b1c1c; border-radius: 8px; padding: 10px 14px; margin-bottom: 16px; font-size: 14px; }
.alert.info { background: #e3eefc; color: #1d4f91; }
button, select { font: inherit; padding: 7px 12px; border: 1px solid #cfd4dc; border-radius: 8px; background: #fff; cursor: pointer; }
button.primary { background: #2f6fed; color: #fff; border-color: #2f6fed; }
button:disabled { opacity: .6; cursor: default; }
.chart { width: 100%; height: 190px; }
.legend { font-size: 12px; color: #6b7385; margin-top: 6px; }
.login { max-width: 340px; margin: 12vh auto; background: #fff; border: 1px solid #e3e6eb; border-radius: 12px; padding: 28px; }
.login h1 { font-size: 18px; margin: 0 0 16px; }
.login input { width: 100%; padding: 10px 12px; font: inherit; border: 1px solid #cfd4dc; border-radius: 8px; margin-bottom: 12px; }
.login button { width: 100%; }
form.inline { display: inline; }
[hidden] { display: none !important; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 7px 12px; border-radius: 8px; color: #1d4f91; text-decoration: none; font-size: 14px; }
.nav a:hover { background: #f0f4fb; }
.nav a.active { background: #e3eefc; font-weight: 600; }
.form .grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 18px; margin-bottom: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: #444; }
.form label.check { flex-direction: row; align-items: center; gap: 8px; padding-top: 22px; font-size: 14px; }
.form input[type=text], .form select { font: inherit; padding: 8px 10px; border: 1px solid #cfd4dc; border-radius: 8px; background: #fff; }
.pwrow { display: flex; gap: 8px; }
.pwrow input { flex: 1; min-width: 0; }
.hint { color: #6b7385; font-size: 12px; font-weight: normal; }
fieldset { border: 1px solid #e3e6eb; border-radius: 8px; padding: 10px 16px 14px; margin: 0 0 14px; }
legend { font-size: 13px; color: #6b7385; padding: 0 6px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 14px; }
label.check { display: flex; gap: 8px; align-items: center; font-size: 14px; color: #1d2330; }
.actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.error-text { color: #9b1c1c; font-size: 14px; }
.actions-cell button { margin: 2px 6px 2px 0; padding: 4px 9px; font-size: 13px; }
button.danger { color: #9b1c1c; border-color: #f0b4b4; }
.meta-line { margin-bottom: 14px; }
.bar > span.w0 { width: 0%; }
.bar > span.w5 { width: 5%; }
.bar > span.w10 { width: 10%; }
.bar > span.w15 { width: 15%; }
.bar > span.w20 { width: 20%; }
.bar > span.w25 { width: 25%; }
.bar > span.w30 { width: 30%; }
.bar > span.w35 { width: 35%; }
.bar > span.w40 { width: 40%; }
.bar > span.w45 { width: 45%; }
.bar > span.w50 { width: 50%; }
.bar > span.w55 { width: 55%; }
.bar > span.w60 { width: 60%; }
.bar > span.w65 { width: 65%; }
.bar > span.w70 { width: 70%; }
.bar > span.w75 { width: 75%; }
.bar > span.w80 { width: 80%; }
.bar > span.w85 { width: 85%; }
.bar > span.w90 { width: 90%; }
.bar > span.w95 { width: 95%; }
.bar > span.w100 { width: 100%; }
.link-cell { max-width: 260px; }
.link-text { font-size: 12px; word-break: break-all; }
