:root {
  color-scheme: light;
  --ink: #18243a;
  --muted: #69758a;
  --line: #e5eaf1;
  --surface: #fff;
  --canvas: #f5f7fb;
  --navy: #102540;
  --blue: #3569d4;
  --blue-dark: #2452b5;
  --green: #18794e;
  --red: #b42318;
  --amber: #95620b;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background: var(--canvas);
  color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); font-size: 14px; line-height: 1.55; }
a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea, select { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #9ab9ff; outline-offset: 2px; }
.shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 5; width: 252px; display: flex; flex-direction: column; padding: 22px 15px; color: #d4deeb; background: var(--navy); }
.brand { display: flex; align-items: center; gap: 11px; color: #fff; font-size: 18px; font-weight: 700; letter-spacing: -.3px; padding: 0 11px 23px; }
.brand:hover { color: #fff; text-decoration: none; }
.brand small { margin-left: 4px; color: #8fa8ce; font-size: 9px; letter-spacing: 1.2px; }
.brand-mark { display: grid; width: 35px; height: 35px; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(135deg,#6da2ff,#3867d5); box-shadow: 0 6px 18px #07182f55; }
.sidebar nav { display: grid; gap: 4px; }
.sidebar nav a { padding: 10px 12px; border-radius: 8px; color: #c4d0df; font-size: 13px; transition: background .15s,color .15s; }
.sidebar nav a:hover,.sidebar nav a.active { color: #fff; background: #ffffff15; text-decoration: none; }
.sidebar nav a.active { box-shadow: inset 3px 0 #74a2ff; }
.sidebar-foot { margin-top: auto; border-top: 1px solid #ffffff20; padding: 15px 10px 0; color: #91a2b8; font-size: 11px; }
.workspace { min-height: 100vh; margin-left: 252px; display: flex; flex-direction: column; }
.topbar { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 34px; border-bottom: 1px solid var(--line); background: #ffffffdd; }
.topbar-title { color: #78859a; font-size: 12px; }
.user-box { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.user-box form { display: inline; }
.avatar { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #eaf0ff; color: #315bb6; font-weight: 700; }
.link-button { border: 0; padding: 4px; background: transparent; color: var(--muted); cursor: pointer; }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--ink); font-size: 20px; cursor: pointer; }
.main-content { width: 100%; max-width: 1500px; margin: 0 auto; padding: 30px 34px 45px; flex: 1; }
.footer { padding: 14px 34px; border-top: 1px solid var(--line); color: #8a95a6; font-size: 11px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
h1,h2,h3,p { margin-top: 0; }
h1 { margin-bottom: 4px; font-size: clamp(24px,3vw,31px); line-height: 1.2; letter-spacing: -.8px; }
h2 { margin-bottom: 13px; font-size: 16px; letter-spacing: -.2px; }
.page-heading p { margin-bottom: 0; }
.eyebrow { margin-bottom: 7px!important; color: #6279a3; font-size: 10px; font-weight: 750; letter-spacing: 1.4px; }
.muted { color: var(--muted); }
.tiny { font-size: 11px; }
.hint { display: block; color: var(--muted); font-size: 11px; font-weight: 400; }
.panel,.stat-card { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: 0 4px 16px #1e35530a; }
.panel { margin-bottom: 18px; padding: 21px; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.panel-heading h2 { margin: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 13px; margin-bottom: 18px; }
.stat-card { min-height: 106px; display: flex; flex-direction: column; justify-content: center; padding: 17px 19px; }
.stat-label { margin-bottom: 5px; color: var(--muted); font-size: 12px; }
.stat-card strong { color: #233753; font-size: 27px; line-height: 1.15; }
.stat-card strong small { color: var(--muted); font-size: 12px; }
.content-grid { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(270px,1fr); gap: 18px; }
.table-wrap { width: 100%; overflow: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { color: #738097; font-size: 10px; font-weight: 700; letter-spacing: .55px; text-transform: uppercase; }
th,td { padding: 12px 11px; border-bottom: 1px solid #edf0f5; vertical-align: middle; }
td { color: #3c4b61; font-size: 12px; }
tbody tr:last-child td { border-bottom: 0; }
.table-sub { display: block; max-width: 300px; overflow-wrap: anywhere; color: #8792a2; font-size: 10px; }
.badge { display: inline-flex; max-width: 160px; padding: 3px 8px; border-radius: 99px; background: #edf1f6; color: #536175; font-size: 10px; overflow-wrap: anywhere; }
.badge.success { background: #e8f6ee; color: var(--green); }
.badge.danger { background: #fff0ef; color: var(--red); }
.button { min-height: 37px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border: 1px solid transparent; border-radius: 7px; cursor: pointer; font-weight: 650; font-size: 12px; text-decoration: none; transition: background .15s,border .15s; }
.button:hover { text-decoration: none; }
.button:disabled { opacity: .5; cursor: not-allowed; }
.primary { color: #fff; background: var(--blue); }
.primary:hover { background: var(--blue-dark); }
.secondary { border-color: #d9e0eb; color: #3b4c65; background: #fff; }
.secondary:hover { background: #f5f7fa; }
.danger-outline { border-color: #efd0cc; color: var(--red); background: #fff; }
.tiny-button { min-height: 29px; padding: 5px 9px; font-size: 10px; }
.actions { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.actions form { margin: 0; }
.alert { margin-bottom: 16px; padding: 12px 14px; border: 1px solid transparent; border-radius: 8px; font-size: 12px; }
.alert-error { border-color: #f0cfca; background: #fff4f2; color: #9d2c24; }
.alert-warning { border-color: #f0dfbd; background: #fff9ea; color: #775312; }
.alert-success { border-color: #cbe9d7; background: #effaf3; color: #1e7049; }
.alert a { text-decoration: underline; }
.empty-state { min-height: 175px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px; text-align: center; }
.empty-state strong { color: #30415a; font-size: 14px; }
.empty-state p { max-width: 480px; margin: 6px 0 15px; color: var(--muted); font-size: 12px; }
.empty-state.compact { min-height: 135px; }
.alert-list,.plain-list { margin: 0; padding: 0; list-style: none; }
.alert-list li { display: grid; gap: 3px; padding: 12px 0; border-bottom: 1px solid #edf0f5; }
.alert-list li:last-child { border-bottom: 0; }
.alert-list span { color: var(--muted); font-size: 11px; }
.notice-line { color: #7c8798; font-size: 11px; }
.stack { display: grid; gap: 15px; }
.compact-stack { gap: 9px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
label { display: grid; gap: 5px; color: #39495f; font-size: 12px; font-weight: 650; }
input,textarea,select { width: 100%; min-height: 39px; padding: 9px 11px; border: 1px solid #d8e0eb; border-radius: 7px; background: #fff; color: #25354b; font-size: 13px; }
textarea { resize: vertical; line-height: 1.6; }
input::placeholder,textarea::placeholder { color: #9aa5b4; }
.full { grid-column: 1 / -1; }
.full-width { width: 100%; }
.checkbox { display: flex; align-items: flex-start; gap: 8px; font-weight: 500; }
.checkbox input { width: 16px; min-height: 16px; height: 16px; margin: 2px 0 0; }
.button-row,.filter-row { display: flex; align-items: center; gap: 9px; }
.filter-row { margin-bottom: 15px; }
.filter-row label { min-width: 240px; }
.form-section { grid-column: 1 / -1; margin: 5px 0 -5px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; }
.check-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin: 18px 0; }
.check-item { display: flex; align-items: center; gap: 8px; padding: 9px; border-radius: 7px; background: #f6f8fb; font-size: 11px; }
.check-ok,.check-fail { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; background: #e5f5eb; color: #19784c; font-weight: 700; }
.check-fail { background: #fff0ef; color: #b42318; }
.auth-shell { min-height: 100vh; display: grid; place-content: center; justify-items: center; padding: 24px; }
.auth-shell > .alert { width: min(100%,520px); }
.auth-card { width: min(100%,430px); padding: 32px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 18px 60px #243d5b14; }
.auth-card.wide { width: min(100%,690px); }
.auth-brand { padding: 0 0 24px; color: var(--ink); }
.auth-brand:hover { color: var(--ink); }
.auth-card h1 { margin-bottom: 8px; font-size: 25px; }
.auth-card > .muted { margin-bottom: 22px; }
.auth-card .tiny { margin: 20px 0 0; line-height: 1.6; }
.narrow-panel { max-width: 760px; }
.editor-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; align-items: start; gap: 17px; }
.side-panel { position: sticky; top: 15px; }
.side-panel h2:not(:first-child) { margin-top: 23px; }
.check-list { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.check-list li { display: flex; gap: 8px; font-size: 11px; }
.check-list li span { font-weight: 800; }
.passed span { color: var(--green); }
.unpassed span { color: var(--amber); }
.word-count { color: var(--muted); font-size: 11px; }
.preview { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px; }
.preview summary { cursor: pointer; color: var(--blue-dark); font-weight: 650; font-size: 12px; }
.preview-body { padding: 14px 4px; overflow-wrap: anywhere; }
.preview-body h2,.preview-body h3 { margin: 16px 0 6px; }
.preview-body p,.preview-body li { font-size: 13px; }
.plain-list li { padding: 6px 0; color: var(--muted); font-size: 11px; }
.data-list { margin: 0; padding: 0; list-style: none; }
.data-list li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid #edf0f5; }
.data-list li:last-child { border-bottom: 0; }
.data-list span { color: var(--muted); }
.auth-card code,code { overflow-wrap: anywhere; color: #536175; font-size: 10px; }
@media (max-width: 1100px) {
  .sidebar { width: 220px; }
  .workspace { margin-left: 220px; }
  .main-content { padding: 25px 22px 35px; }
  .topbar { padding: 0 22px; }
  .stat-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .editor-layout { grid-template-columns: minmax(0,1fr) 260px; }
}
@media (max-width: 760px) {
  .sidebar { width: 270px; transform: translateX(-100%); transition: transform .2s ease; box-shadow: 10px 0 35px #10254020; }
  .sidebar.open { transform: translateX(0); }
  .workspace { margin-left: 0; }
  .topbar { min-height: 58px; padding: 0 15px; }
  .menu-toggle { display: block; }
  .topbar-title { margin-right: auto; }
  .user-box { gap: 6px; }
  .user-box > span:not(.avatar) { display: none; }
  .main-content { padding: 22px 14px 30px; }
  .footer { padding: 12px 14px; }
  .page-heading { align-items: flex-start; }
  .page-heading .button { flex-shrink: 0; }
  .content-grid,.editor-layout { grid-template-columns: 1fr; }
  .side-panel { position: static; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid > .full,.form-section { grid-column: 1; }
  .check-grid { grid-template-columns: 1fr; }
  .panel { padding: 16px 13px; }
  .actions { flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .stat-card { min-height: 92px; padding: 12px; }
  .stat-card strong { font-size: 22px; }
  .page-heading { display: grid; }
  .auth-card { padding: 23px 19px; }
  .filter-row { align-items: flex-end; }
  .filter-row label { min-width: 0; flex: 1; }
}

/* Dashboard layout inspired by the supplied MakaleBot Pro reference. */
:root { --navy: #10243d; --blue: #2671ee; --blue-dark: #155bd0; --canvas: #f3f6fa; --line: #e1e8f1; }
body { background: #f3f6fa; }
.sidebar { width: 248px; padding: 14px 9px 12px; background: linear-gradient(180deg,#10243d 0%,#112a47 100%); }
.brand { gap: 9px; padding: 0 7px 16px; font-size: 16px; }
.brand-mark { width: 32px; height: 32px; border: 1px solid #79a7ff75; border-radius: 9px; }
.brand-name { display: block; line-height: 1.2; }
.brand-name small { color: #6fa0ff; }
.brand-tagline { display: block; margin-top: 4px; color: #9eb0c7; font-size: 9px; font-weight: 400; letter-spacing: 0; }
.sidebar nav { gap: 2px; }
.sidebar nav { min-height: 0; flex: 1 1 auto; overflow-y: auto; align-content: start; scrollbar-color: #526783 transparent; scrollbar-width: thin; }
.sidebar nav a { min-height: 33px; display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 6px; color: #c8d4e3; font-size: 11px; }
.sidebar nav a:hover,.sidebar nav a.active { background: #ffffff14; }
.sidebar nav a.active { background: linear-gradient(90deg,#287cf4,#2366df); box-shadow: none; }
.nav-icon { width: 17px; flex: 0 0 17px; color: #b6c9e4; font-size: 14px; text-align: center; }
.active .nav-icon { color: #fff; }
.nav-count { min-width: 16px; height: 16px; display: grid; place-items: center; margin-left: auto; border-radius: 99px; color: #fff; background: #ed5662; font-size: 9px; }
.sidebar-cost { display: grid; gap: 4px; margin-top: 10px; padding: 12px 9px; border-top: 1px solid #ffffff22; color: #a9bad0; font-size: 10px; }
.sidebar-cost strong { color: #fff; font-size: 19px; font-weight: 650; }
.sidebar-cost > span:last-child { color: #8b9fb9; font-size: 9px; }
.sidebar-foot { margin-top: 0; padding: 8px 9px 0; font-size: 9px; }
.workspace { margin-left: 248px; }
.topbar { min-height: 48px; justify-content: flex-start; gap: 20px; padding: 0 20px; border-bottom-color: #233750; background: #152943; color: #fff; }
.topbar-title { display: none; }
.global-search { width: min(100%,360px); height: 32px; display: flex; align-items: center; gap: 8px; padding: 0 9px; border: 1px solid #ffffff12; border-radius: 6px; background: #ffffff18; color: #a9bad0; }
.global-search > span { font-size: 17px; }
.global-search input[type="search"] { min-width: 0; min-height: 28px; padding: 2px 0; border: 0; outline: none; color: #fff; background: transparent; font-size: 10px; box-shadow: none; }
.global-search input[type="search"]::placeholder { color: #bdc9d8; }
.global-search button { padding: 3px 8px; border: 0; border-radius: 4px; color: #fff; background: #ffffff22; font-size: 10px; cursor: pointer; }
.topbar-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.icon-button { position: relative; width: 26px; height: 28px; display: grid; place-items: center; color: #d5deeb; font-size: 16px; }
.icon-button:hover { color: #fff; text-decoration: none; }
.icon-button b { position: absolute; top: -2px; right: -3px; min-width: 13px; height: 13px; display: grid; place-items: center; border: 1px solid #152943; border-radius: 50%; color: #fff; background: #e24e59; font-size: 8px; }
.topbar-divider { width: 1px; height: 18px; background: #ffffff25; }
.locale-mark { font-size: 12px; }
.user-box { gap: 7px; color: #fff; font-size: 10px; }
.user-box .avatar { width: 25px; height: 25px; color: #315b93; background: #dce8f8; }
.user-name small { display: block; color: #a7b7cb; font-size: 8px; }
.link-button { color: #d8e1ed; font-size: 10px; }
.main-content { max-width: 1800px; padding: 18px 20px 28px; }
.footer { padding: 10px 20px; background: #fff; }
.dashboard-heading { margin-bottom: 14px; }
.dashboard-heading h1 { font-size: 22px; letter-spacing: -.5px; }
.dashboard-heading .muted { font-size: 10px; }
.heading-actions { display: flex; align-items: center; gap: 9px; }
.date-chip { padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: #53647a; font-size: 10px; }
.dashboard-heading .button { min-height: 32px; font-size: 10px; }
.dashboard-stats { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 9px; margin-bottom: 9px; }
.metric-card { min-width: 0; min-height: 70px; display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid #e7edf5; border-radius: 7px; background: #fff; box-shadow: 0 2px 7px #1d3a5708; }
.metric-card:hover { border-color: #b8cff4; text-decoration: none; box-shadow: 0 5px 15px #1d3a5712; }
.metric-icon,.mini-metric-icon { width: 33px; height: 33px; flex: 0 0 33px; display: grid; place-items: center; border-radius: 8px; font-size: 16px; }
.metric-icon.blue,.mini-metric-icon.blue { color: #2574ea; background: #e8f0ff; }
.metric-icon.purple { color: #a43bd7; background: #f5eaff; }
.metric-icon.amber { color: #d48b12; background: #fff5dd; }
.metric-icon.rose,.mini-metric-icon.rose { color: #df4b48; background: #ffeded; }
.metric-icon.green,.mini-metric-icon.green { color: #14a275; background: #e1f7ef; }
.metric-copy { min-width: 0; display: grid; gap: 1px; color: #66758a; font-size: 9px; }
.metric-copy strong { color: #1b2e48; font-size: 20px; line-height: 1.15; }
.dashboard-secondary-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin-bottom: 11px; }
.mini-metric { min-height: 58px; display: flex; align-items: center; gap: 10px; padding: 8px 11px; border: 1px solid #e7edf5; border-radius: 7px; background: #fff; }
.mini-metric:hover { border-color: #b8cff4; text-decoration: none; }
.mini-metric-icon { width: 30px; height: 30px; flex-basis: 30px; font-size: 15px; }
.mini-metric > span:last-child { display: grid; color: #708097; font-size: 9px; }
.mini-metric strong { color: #233751; font-size: 15px; line-height: 1.2; }
.mini-metric strong small { color: #7d8ca0; font-size: 9px; font-weight: 500; }
.dashboard-overview-grid { display: grid; grid-template-columns: 1fr 1.08fr .93fr; align-items: stretch; gap: 9px; }
.dashboard-panel { min-width: 0; margin-bottom: 0; padding: 12px; border-radius: 8px; box-shadow: 0 2px 8px #1e355308; }
.panel-heading { min-height: 27px; gap: 7px; }
.panel-heading h2 { margin: 1px 0 0; color: #253954; font-size: 12px; }
.section-kicker { display: block; color: #8290a3; font-size: 8px; font-weight: 750; letter-spacing: .8px; }
.section-link { flex: 0 0 auto; color: #3976d2; font-size: 9px; }
.panel-subtitle { margin: 3px 0 10px; color: #8290a3; font-size: 9px; }
.activity-list,.recent-article-list,.connection-alert-list,.keyword-list,.job-list { display: grid; margin: 5px 0 0; padding: 0; list-style: none; }
.activity-list li { min-width: 0; display: flex; align-items: center; gap: 7px; padding: 7px 0; border-bottom: 1px solid #eff2f6; }
.activity-list li:last-child,.recent-article-list li:last-child,.connection-alert-list li:last-child,.keyword-list li:last-child,.job-list li:last-child { border-bottom: 0; }
.activity-dot,.connection-dot,.job-status { width: 8px; height: 8px; flex: 0 0 8px; border: 1px solid #c6d5e7; border-radius: 50%; background: #fff; }
.activity-dot.success,.connection-dot.ok,.job-status.success { border-color: #3abd85; background: #32b87d; }
.activity-dot.error,.connection-dot.error,.job-status.error { border-color: #ef6464; background: #e65052; }
.activity-copy { min-width: 0; display: grid; flex: 1; }
.activity-copy strong,.recent-article-list strong,.connection-alert-list strong { overflow: hidden; color: #334762; font-size: 9px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.activity-copy small,.recent-article-list small,.connection-alert-list small { overflow: hidden; color: #8592a5; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.activity-list time { flex: 0 0 auto; color: #8290a3; font-size: 8px; }
.recent-article-list li { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 7px 0; border-bottom: 1px solid #eff2f6; }
.recent-article-list li > a { min-width: 0; display: grid; }
.recent-article-list .badge { flex: 0 0 auto; max-width: 90px; font-size: 8px; }
.connection-alert-list li { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid #eff2f6; }
.connection-alert-list li > span:nth-child(2) { min-width: 0; display: grid; flex: 1; }
.icon-action { width: 25px; height: 25px; display: grid; flex: 0 0 25px; place-items: center; border: 1px solid #e5ebf3; border-radius: 5px; color: #487cc8; background: #fff; }
.dashboard-section-heading { display: flex; align-items: end; justify-content: space-between; margin: 17px 0 8px; }
.dashboard-section-heading h2 { margin: 1px 0 0; font-size: 15px; }
.dashboard-section-heading > .muted { font-size: 9px; }
.dashboard-workspace-grid { display: grid; grid-template-columns: 1.05fr .93fr 1.1fr; align-items: start; gap: 9px; }
.dashboard-workspace-grid > .panel { scroll-margin-top: 60px; }
.dashboard-quick-form,.dashboard-editor-form,.keyword-quick-form { display: grid; gap: 8px; }
.dashboard-quick-form label,.dashboard-editor-form label,.keyword-quick-form label { gap: 3px; font-size: 9px; }
.dashboard-quick-form input,.dashboard-quick-form select,.dashboard-editor-form input,.dashboard-editor-form select,.dashboard-editor-form textarea,.keyword-quick-form input,.keyword-quick-form select { min-height: 30px; padding: 6px 8px; border-radius: 5px; font-size: 10px; }
.dashboard-quick-form textarea,.dashboard-editor-form textarea { min-height: auto; line-height: 1.45; }
.dashboard-quick-form .button,.dashboard-editor-form .button,.keyword-quick-form .button { min-height: 30px; padding: 6px 9px; font-size: 9px; }
.compact-form-grid { gap: 7px; }
.dashboard-editor-panel { min-width: 0; }
.editor-context { display: flex; align-items: center; gap: 7px; margin: 6px 0; }
.editor-context small { color: #78869b; font-size: 9px; }
.dashboard-editor-form textarea[data-word-counter] { min-height: 180px; font-size: 10px; }
.dashboard-editor-form .word-count { font-size: 8px; }
.dashboard-editor-footer { display: flex; align-items: center; justify-content: space-between; }
.dashboard-editor-footer > a { font-size: 9px; }
.inline-seo { margin-top: 11px; padding: 9px; border: 1px solid #e7edf5; border-radius: 6px; background: #f9fbfd; }
.inline-seo-heading { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; color: #40536e; font-size: 9px; }
.inline-seo-heading span { color: #7c899a; }
.inline-seo ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.inline-seo li { display: flex; gap: 5px; color: #66758a; font-size: 8px; }
.inline-seo .passed span { color: #188758; }
.inline-seo .unpassed span { color: #b27a18; }
.inline-seo > p { margin: 7px 0 0; font-size: 8px; }
.dashboard-operations-grid { display: grid; grid-template-columns: 1.2fr 1.2fr .95fr 1fr; align-items: start; gap: 9px; }
.dashboard-operations-grid > .panel { scroll-margin-top: 60px; }
.compact-table th { padding: 7px 5px; font-size: 8px; }
.compact-table td { padding: 8px 5px; font-size: 9px; }
.compact-table .table-sub { max-width: 140px; font-size: 8px; }
.compact-table .actions { gap: 4px; }
.compact-table .tiny-button { min-height: 24px; padding: 3px 6px; font-size: 8px; }
.connection-state { display: inline-flex; align-items: center; gap: 4px; color: #738197; font-size: 8px; }
.connection-state i { width: 6px; height: 6px; border-radius: 50%; background: #a7b2c2; }
.connection-state.ok { color: #168351; }
.connection-state.ok i { background: #23b575; }
.connection-state.bad { color: #c53f45; }
.connection-state.bad i { background: #e15359; }
.panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin-top: 8px; padding-top: 8px; border-top: 1px solid #edf1f6; color: #8995a5; font-size: 8px; }
.panel-foot a { color: #3976d2; }
.keyword-quick-form { grid-template-columns: 1fr 1fr; margin-top: 8px; }
.keyword-quick-form .button { grid-column: 1 / -1; }
.keyword-list { margin-top: 8px; }
.keyword-list li,.job-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px solid #eff2f6; }
.keyword-list li > span:first-child,.job-list li > span:nth-child(2) { min-width: 0; display: grid; }
.keyword-list strong,.job-list strong { overflow: hidden; color: #3d506b; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.keyword-list small,.job-list small { color: #8793a4; font-size: 8px; }
.keyword-date { flex: 0 0 auto; color: #7d8a9c; font-size: 8px; }
.api-provider { display: flex; align-items: center; gap: 7px; margin: 10px 0; }
.api-provider-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 6px; color: #3871da; background: #ecf2ff; }
.api-provider > span:nth-child(2) { min-width: 0; display: grid; flex: 1; }
.api-provider strong { overflow: hidden; color: #354a66; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.api-provider small { overflow: hidden; color: #8995a5; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.api-provider .badge { font-size: 7px; }
.api-usage-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0; }
.api-usage-stats > div { display: grid; gap: 2px; padding: 8px; border: 1px solid #edf1f6; border-radius: 5px; }
.api-usage-stats small { color: #8390a2; font-size: 8px; }
.api-usage-stats strong { color: #344967; font-size: 11px; }
.budget-meter { margin: 10px 0; }
.budget-meter > div:first-child { display: flex; justify-content: space-between; color: #65758b; font-size: 8px; }
.budget-meter > div:first-child strong { color: #315278; }
.budget-track { height: 5px; overflow: hidden; margin: 5px 0; border-radius: 9px; background: #e8edf4; }
.budget-track span { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg,#36a3e6,#2671ee); }
.budget-meter > small,.budget-note { color: #8491a2; font-size: 8px; }
.budget-note { min-height: 34px; margin: 10px 0; line-height: 1.5; }
.dashboard-disclaimer { margin: 12px 0 0; color: #8290a1; font-size: 9px; }
.search-summary { margin: -8px 0 14px; color: #758298; font-size: 12px; }
.search-summary strong { color: #283d59; }
.search-result-panel { max-width: 980px; }
.search-result-panel .panel-heading { margin-bottom: 10px; }
.result-count { display: inline-grid; min-width: 18px; height: 18px; place-items: center; margin-left: 3px; border-radius: 99px; color: #496991; background: #edf3fc; font-size: 9px; vertical-align: middle; }
.search-results { display: grid; margin: 0; padding: 0; list-style: none; }
.search-results li { border-top: 1px solid #edf1f6; }
.search-results a { display: grid; gap: 2px; padding: 10px 2px; }
.search-results strong { color: #344a67; font-size: 12px; }
.search-results small { color: #8491a3; font-size: 10px; }
.budget-width-0 { width: 0; }.budget-width-10 { width: 10%; }.budget-width-20 { width: 20%; }.budget-width-30 { width: 30%; }.budget-width-40 { width: 40%; }.budget-width-50 { width: 50%; }.budget-width-60 { width: 60%; }.budget-width-70 { width: 70%; }.budget-width-80 { width: 80%; }.budget-width-90 { width: 90%; }.budget-width-100 { width: 100%; }
@media (max-width: 1450px) {
  .dashboard-workspace-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-editor-panel { grid-column: 1 / -1; }
  .dashboard-operations-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 1120px) {
  .dashboard-overview-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-overview-grid > :last-child { grid-column: 1 / -1; }
  .dashboard-stats { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .sidebar { z-index: 11; width: min(290px,86vw); padding-top: 14px; transform: translateX(-105%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-scrim { display: none; }
  .sidebar.open + .sidebar-scrim { position: fixed; inset: 0; z-index: 10; display: block; border: 0; background: #07162988; }
  .workspace { margin-left: 0; }
  .topbar { min-height: 54px; gap: 9px; padding: 0 12px; }
  .global-search { width: min(100%,420px); }
  .global-search button { display: none; }
  .topbar-actions { gap: 7px; }
  .topbar-actions .topbar-divider,.locale-mark { display: none; }
  .user-name { display: none; }
  .user-box form { display: inline; }
  .user-box .link-button { padding: 3px 0; font-size: 9px; }
  .main-content { padding: 14px 12px 22px; }
  .dashboard-heading { display: flex; }
  .dashboard-heading h1 { font-size: 20px; }
  .dashboard-heading .muted { max-width: 350px; }
  .dashboard-stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
  .dashboard-secondary-stats { gap: 7px; }
  .metric-card { min-height: 64px; padding: 8px; }
  .metric-icon { width: 29px; height: 29px; flex-basis: 29px; }
  .metric-copy strong { font-size: 18px; }
  .dashboard-overview-grid,.dashboard-workspace-grid,.dashboard-operations-grid { grid-template-columns: 1fr; }
  .dashboard-overview-grid > :last-child,.dashboard-editor-panel { grid-column: auto; }
  .dashboard-panel { padding: 13px; }
  .dashboard-quick-form,.dashboard-editor-form,.keyword-quick-form { gap: 10px; }
  .dashboard-quick-form input,.dashboard-quick-form select,.dashboard-editor-form input,.dashboard-editor-form select,.dashboard-editor-form textarea,.keyword-quick-form input,.keyword-quick-form select { min-height: 38px; padding: 8px 9px; font-size: 12px; }
  .dashboard-editor-form textarea[data-word-counter] { min-height: 220px; }
  .compact-table table { min-width: 560px; }
  .dashboard-section-heading { margin-top: 15px; }
}
@media (max-width: 480px) {
  .dashboard-heading { gap: 9px; }
  .dashboard-heading .page-heading { display: flex; }
  .heading-actions { align-items: flex-end; flex-direction: column; gap: 5px; }
  .date-chip { display: none; }
  .dashboard-heading .button { min-height: 31px; padding: 6px 8px; font-size: 9px; white-space: nowrap; }
  .dashboard-secondary-stats { grid-template-columns: 1fr 1fr; }
  .dashboard-secondary-stats .mini-metric:last-child { grid-column: 1 / -1; }
  .mini-metric { min-height: 53px; padding: 7px; }
  .mini-metric-icon { width: 26px; height: 26px; flex-basis: 26px; }
  .mini-metric strong { font-size: 13px; }
  .dashboard-section-heading > .muted { display: none; }
  .keyword-quick-form,.compact-form-grid { grid-template-columns: 1fr; }
  .keyword-quick-form .button { grid-column: auto; }
  .page-heading { flex-wrap: wrap; }
}

.settings-heading { margin-bottom: 13px; }
.settings-heading h1 { font-size: clamp(23px,2.7vw,30px); }
.settings-heading > .button { flex: 0 0 auto; }
.settings-status-row { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-bottom: 12px; }
.settings-status-card { min-width: 0; min-height: 79px; display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 3px 12px #1e355308; }
.settings-status-icon { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 9px; color: #19784e; background: #e6f6ed; font-size: 16px; font-weight: 750; }
.settings-status-icon.is-missing { color: #a86609; background: #fff3dd; }
.settings-status-icon.is-budget { color: #2772db; background: #eaf1ff; }
.settings-status-copy { min-width: 0; display: grid; flex: 1; gap: 2px; }
.settings-status-copy > small { color: #78869a; font-size: 9px; }
.settings-status-copy > strong { overflow: hidden; color: #2b405c; font-size: 15px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.settings-status-copy > span { overflow: hidden; color: #8591a2; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.settings-status-copy .status-unit { color: #728096; font-size: 10px; font-weight: 550; }
.settings-status-card > .badge { flex: 0 0 auto; }
.settings-tabs { display: flex; gap: 5px; overflow-x: auto; margin: 0 0 12px; padding: 0 0 5px; scrollbar-width: thin; }
.settings-tabs a { flex: 0 0 auto; padding: 6px 10px; border: 1px solid #e3eaf3; border-radius: 99px; color: #526781; background: #fff; font-size: 9px; }
.settings-tabs a:hover { border-color: #adc6ef; color: #225fb7; text-decoration: none; }
.settings-layout { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(275px,.78fr); align-items: start; gap: 12px; }
.settings-form-panel { min-width: 0; padding: 19px; }
.settings-section-heading { display: flex; align-items: flex-start; gap: 10px; scroll-margin-top: 16px; }
.settings-section-icon { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 8px; color: #286eda; background: #eaf1ff; font-size: 14px; }
.settings-section-icon.lavender { color: #8744c1; background: #f3eaff; }
.settings-section-icon.mint { color: #158563; background: #e4f7f0; }
.settings-section-heading h2 { margin: 0 0 2px; color: #263b56; font-size: 13px; }
.settings-section-heading p { margin: 0; color: #8491a2; font-size: 9px; }
.settings-form { display: grid; gap: 13px; margin-top: 14px; }
.settings-form > label,.settings-inline-fields > label { min-width: 0; gap: 5px; color: #394a62; font-size: 10px; }
.settings-form input:not([type=checkbox]),.settings-form select { min-height: 36px; padding: 7px 10px; border-radius: 6px; font-size: 11px; }
.field-help { color: #8592a3; font-size: 8px; font-weight: 400; line-height: 1.45; }
.settings-inline-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
.secret-input-wrap { position: relative; display: flex; }
.secret-input-wrap input { min-width: 0; padding-right: 60px!important; }
.secret-toggle { position: absolute; inset: 4px 5px 4px auto; padding: 0 7px; border: 0; border-radius: 4px; color: #3a67a2; background: #f0f4fa; font-size: 9px; cursor: pointer; }
.security-note { display: flex; align-items: flex-start; gap: 9px; padding: 10px; border: 1px solid #dbe8fa; border-radius: 7px; color: #3772c6; background: #f5f9ff; }
.security-note > span:first-child { font-size: 15px; }
.security-note > span:last-child { display: grid; gap: 2px; }
.security-note strong { color: #355983; font-size: 9px; }
.security-note small { color: #75869d; font-size: 8px; line-height: 1.5; }
.subsection-heading { margin-top: 5px; padding-top: 14px; border-top: 1px solid #edf1f5; }
.generation-fields { grid-template-columns: repeat(3,minmax(0,1fr)); }
.field-suffix { margin-left: 3px; color: #8c97a7; font-size: 8px; font-weight: 400; }
.settings-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 11px; border-top: 1px solid #edf1f5; }
.settings-form-footer > span { max-width: 360px; color: #8591a2; font-size: 9px; }
.settings-form-footer > span strong { color: #586b83; }
.settings-form-footer .button { flex: 0 0 auto; min-height: 35px; }
.settings-aside { display: grid; gap: 11px; }
.settings-aside .panel { margin: 0; padding: 14px; }
.period-chip { padding: 4px 7px; border-radius: 99px; color: #75839a; background: #f1f4f8; font-size: 8px; }
.usage-big-number { margin: 15px 0 10px; color: #253b58; font-size: 28px; font-weight: 750; letter-spacing: -.7px; line-height: 1.1; }
.usage-big-number small { color: #718097; font-size: 10px; font-weight: 500; letter-spacing: 0; }
.usage-cost-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-top: 1px solid #edf1f6; color: #77859a; font-size: 9px; }
.usage-cost-row strong { color: #304b6c; font-size: 11px; }
.usage-token-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin: 0 0 9px; }
.usage-token-grid > div { display: grid; gap: 3px; padding: 8px; border: 1px solid #edf1f6; border-radius: 6px; }
.usage-token-grid small { color: #8490a2; font-size: 8px; }
.usage-token-grid strong { color: #405773; font-size: 11px; }
.limit-meter { margin: 12px 0; }
.limit-meter > div:first-child { display: flex; justify-content: space-between; gap: 8px; color: #718097; font-size: 8px; }
.limit-meter > div:first-child strong { color: #435a78; }
.limit-track { height: 6px; overflow: hidden; margin: 6px 0 4px; border-radius: 99px; background: #e9eef5; }
.limit-track span { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg,#55a8ec,#3272e4); }
.limit-meter > small { color: #8592a3; font-size: 8px; }
.limit-unset { margin: 10px 0; padding: 8px; border-radius: 6px; color: #7b889b; background: #f6f8fb; font-size: 8px; }
.usage-disclaimer { margin: 10px 0 0; padding-top: 9px; border-top: 1px solid #edf1f6; color: #8995a5; font-size: 8px; line-height: 1.5; }
.recent-usage-list { display: grid; margin: 8px 0 10px; padding: 0; list-style: none; }
.recent-usage-list li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid #eff2f6; }
.recent-usage-list li:last-child { border-bottom: 0; }
.recent-usage-list li > span { min-width: 0; display: grid; gap: 2px; }
.recent-usage-list li > span:last-child { flex: 0 0 auto; text-align: right; }
.recent-usage-list strong { overflow: hidden; color: #475c77; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.recent-usage-list small { color: #8592a3; font-size: 8px; }
.recent-usage-panel > .section-link { font-size: 9px; }
.setup-checklist { display: grid; gap: 9px; margin: 12px 0; padding: 0; list-style: none; }
.setup-checklist li { display: flex; align-items: flex-start; gap: 8px; }
.setup-checklist li > span { width: 18px; height: 18px; flex: 0 0 18px; display: grid; place-items: center; border: 1px solid #dfe6ef; border-radius: 50%; color: #8592a3; font-size: 8px; }
.setup-checklist li.done > span { border-color: #bce5d1; color: #188353; background: #eaf8f0; }
.setup-checklist li > div { min-width: 0; display: grid; gap: 1px; }
.setup-checklist strong { color: #4a5e78; font-size: 9px; }
.setup-checklist small { overflow: hidden; color: #8491a2; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.help-note { margin: 10px 0 0; padding: 9px; border-radius: 6px; color: #7d899b; background: #f5f7fa; font-size: 8px; line-height: 1.6; }
.limit-width-0 { width: 0; }.limit-width-10 { width: 10%; }.limit-width-20 { width: 20%; }.limit-width-30 { width: 30%; }.limit-width-40 { width: 40%; }.limit-width-50 { width: 50%; }.limit-width-60 { width: 60%; }.limit-width-70 { width: 70%; }.limit-width-80 { width: 80%; }.limit-width-90 { width: 90%; }.limit-width-100 { width: 100%; }
@media (max-width: 1120px) {
  .settings-layout { grid-template-columns: minmax(0,1.35fr) minmax(250px,.8fr); }
  .settings-status-row { gap: 7px; }
  .settings-status-card { padding: 9px; }
}
@media (max-width: 850px) {
  .settings-layout { grid-template-columns: 1fr; }
  .settings-aside { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .setup-help-panel { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .settings-status-row { grid-template-columns: 1fr 1fr; }
  .settings-status-card:first-child { grid-column: 1 / -1; }
  .settings-layout { gap: 10px; }
  .settings-form-panel { padding: 15px; }
  .settings-aside { grid-template-columns: 1fr; }
  .setup-help-panel { grid-column: auto; }
}
@media (max-width: 480px) {
  .settings-heading { display: flex; align-items: flex-start; }
  .settings-heading > .button { padding: 6px 8px; font-size: 9px; }
  .settings-status-row { grid-template-columns: 1fr; }
  .settings-status-card:first-child { grid-column: auto; }
  .settings-inline-fields,.generation-fields { grid-template-columns: 1fr; gap: 10px; }
  .settings-form-footer { align-items: stretch; flex-direction: column; }
  .settings-form-footer .button { width: 100%; }
  .settings-tabs a { padding: 6px 8px; }
}
