:root {
  --blue: #0d375b;
  --blue-2: #166b9f;
  --ink: #10243a;
  --muted: #5d6c7b;
  --cream: #f1e7d9;
  --paper: rgba(255, 255, 255, 0.74);
  --line: rgba(13, 55, 91, 0.16);
  --shadow: 0 28px 70px rgba(16, 36, 58, 0.16);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 78% 10%, rgba(22, 107, 159, 0.22), transparent 32rem),
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.92), transparent 30rem),
    linear-gradient(135deg, #f7f3ec 0%, #eadfce 100%);
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.topbar form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(13,55,91,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.54);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.notice-box {
  margin: 0 0 18px;
  padding: 14px 18px;
  border: 1px solid rgba(20,125,82,.22);
  border-radius: 18px;
  background: rgba(20,125,82,.1);
  color: #0f6a45;
  font-weight: 900;
}

.brand-pill {
  width: min(360px, 100%);
  min-height: 76px;
  padding: 14px 28px;
  border: 1px solid rgba(13, 55, 91, 0.14);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(255,255,255,0.45));
  box-shadow: 0 18px 45px rgba(13, 55, 91, 0.12), inset 0 1px 0 rgba(255,255,255,0.9);
  text-align: center;
  display: grid;
  place-items: center;
}

.brand-main {
  display: block;
  color: var(--blue);
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1;
  letter-spacing: 0.34em;
  margin-right: -0.34em;
}

.brand-sub {
  display: block;
  margin-top: 6px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.28em;
}

.ghost-btn,
button,
.result-link {
  border: 1px solid rgba(255,255,255,0.76);
  border-radius: 18px;
  color: white;
  background: linear-gradient(135deg, var(--blue-2), var(--blue));
  box-shadow: 0 15px 32px rgba(13, 55, 91, 0.2), inset 0 1px 0 rgba(255,255,255,0.45);
  padding: 14px 22px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}

.ghost-btn {
  color: var(--blue);
  background: rgba(255,255,255,0.55);
}

button:hover,
.ghost-btn:hover,
.result-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(13, 55, 91, 0.26), inset 0 1px 0 rgba(255,255,255,0.55);
}

.login-card,
.hero,
.panel {
  border: 1px solid rgba(255,255,255,0.72);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,0.76), rgba(255,255,255,0.42));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,0.8);
  backdrop-filter: blur(18px);
}

.login-card {
  width: min(560px, 100%);
  margin: 70px auto 0;
  padding: clamp(28px, 6vw, 54px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 760px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 7vw, 82px);
  line-height: .94;
  letter-spacing: 0;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(22px, 3vw, 34px);
  margin-bottom: 8px;
}

.lead {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
  margin-bottom: 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 34px;
  align-items: end;
  padding: clamp(30px, 5vw, 58px);
  margin-bottom: 28px;
}

.status-card {
  min-height: 170px;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(13, 55, 91, 0.95), rgba(22, 107, 159, 0.78));
  color: white;
  padding: 24px;
  display: grid;
  align-content: end;
  gap: 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28);
}

.pulse {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #a9e9ff;
  box-shadow: 0 0 0 8px rgba(169, 233, 255, 0.17);
}

.workspace,
.pipeline-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  gap: 24px;
  align-items: start;
}

.panel {
  padding: clamp(22px, 4vw, 34px);
}

label {
  display: grid;
  gap: 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(13, 55, 91, 0.18);
  border-radius: 18px;
  background: rgba(255,255,255,0.72);
  color: var(--ink);
  font: inherit;
  letter-spacing: 0;
  padding: 15px 16px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
}

textarea { resize: vertical; min-height: 130px; }

input[type="file"] {
  padding: 14px;
  background: rgba(255, 255, 255, 0.66);
  cursor: pointer;
}

.form-panel,
.login-form {
  display: grid;
  gap: 18px;
}

.field-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.inline-fields {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: end;
}

.publish-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.draft-btn {
  color: var(--blue);
  background: rgba(255,255,255,.62);
}

.pipeline-card {
  position: relative;
  overflow: hidden;
}

.pipeline-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--blue-2), rgba(13,55,91,.08));
}

.pipeline-card--manual::before {
  background: linear-gradient(90deg, #8f2443, rgba(143,36,67,.08));
}

.pipeline-card__head {
  margin-bottom: 18px;
}

.credit-warning {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid rgba(160,43,75,.25);
  border-radius: 18px;
  background: rgba(160,43,75,.08);
  color: #7c243f;
  font-weight: 900;
}

.inline-delete-form {
  margin-top: 10px;
}

.danger-btn {
  color: #fff;
  background: linear-gradient(135deg, #b84260, #7c243f);
}

.monitor--wide {
  margin-top: 24px;
}

.small-note {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 0;
}

.monitor-head,
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(13, 55, 91, .08);
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.state.running { background: rgba(22,107,159,.13); }
.state.complete { background: rgba(20,125,82,.15); color: #0f6a45; }
.state.failed { background: rgba(160,43,75,.12); color: #a02b4b; }
.state.admin { background: rgba(13,55,91,.13); color: var(--blue); }
.state.site_manager { background: rgba(22,107,159,.12); color: var(--blue-2); }

.progress-shell {
  height: 12px;
  border-radius: 999px;
  background: rgba(13, 55, 91, 0.1);
  overflow: hidden;
  margin-bottom: 22px;
}

.progress-shell span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue-2), var(--blue));
  transition: width .35s ease;
}

.logs {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 330px;
  overflow: auto;
}

.logs li {
  border: 1px solid rgba(13,55,91,.1);
  border-radius: 16px;
  background: rgba(255,255,255,.42);
  padding: 12px 14px;
  color: var(--muted);
  font-size: 14px;
}

.result-link {
  display: inline-flex;
  margin-top: 18px;
}

.recent { margin-top: 28px; }

.job-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.job-card {
  position: relative;
  border: 1px solid rgba(13,55,91,.11);
  border-radius: 20px;
  background: rgba(255,255,255,.46);
  padding: 18px;
}

.job-card__badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.job-check {
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 0;
  padding: 8px 10px;
  border: 1px solid rgba(13,55,91,.13);
  border-radius: 999px;
  background: rgba(255,255,255,.54);
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.job-check input {
  width: 14px;
  height: 14px;
  box-shadow: none;
  padding: 0;
}

.pipeline-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 8px 12px;
  border: 1px solid rgba(13,55,91,.13);
  border-radius: 999px;
  background: rgba(255,255,255,.58);
  color: var(--blue);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .08em;
}

.pipeline-badge--manual {
  border-color: rgba(119, 67, 142, .2);
  background: rgba(119, 67, 142, .1);
  color: #57326f;
}

.pipeline-badge--url {
  border-color: rgba(16, 103, 148, .18);
  background: rgba(16, 103, 148, .1);
}

.job-card h3 {
  font-size: 17px;
  margin: 12px 0 8px;
}

.job-meta {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
}

.job-card a {
  color: var(--blue);
  font-weight: 900;
}

.job-error {
  margin: 10px 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(156, 48, 86, .2);
  border-radius: 12px;
  background: rgba(156, 48, 86, .08);
  color: #7d2845;
  font-size: 12px;
  font-weight: 750;
}

.archive-form {
  display: grid;
  gap: 18px;
}

.archive-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.archive-actions button {
  padding: 12px 18px;
}

.archive-count {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(13,55,91,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.5);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.library {
  margin-top: 28px;
}

.library-table {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.library-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 120px minmax(280px, 1.2fr);
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(13,55,91,.1);
  border-radius: 18px;
  background: rgba(255,255,255,.42);
  padding: 13px 14px;
}

.library-row--head {
  background: rgba(13,55,91,.08);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.library-row strong,
.library-row small {
  display: block;
}

.library-row small {
  margin-top: 5px;
  color: var(--muted);
}

.url-cell {
  min-width: 0;
}

.url-cell a {
  display: block;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}

.pager a,
.pager span {
  border: 1px solid rgba(13,55,91,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.52);
  color: var(--blue);
  padding: 10px 14px;
  font-weight: 900;
  text-decoration: none;
}

.error-box {
  border: 1px solid rgba(160,43,75,.28);
  border-radius: 16px;
  background: rgba(160,43,75,.08);
  color: #8f2443;
  padding: 14px;
  margin: 16px 0;
  font-weight: 800;
}

@media (max-width: 860px) {
  .topbar,
  .hero,
  .workspace,
  .pipeline-grid,
  .inline-fields,
  .library-row {
    grid-template-columns: 1fr;
  }

  .topbar { display: grid; }
  .brand-pill { margin: 0 auto; }
  .status-card { min-height: 140px; }
  .job-grid { grid-template-columns: 1fr; }
}
/* 2026-07-01 Jason admin clean brand polish */
.brand-pill--logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: left;
}
.brand-pill--logo img {
  width: min(230px, 72%);
  max-height: 58px;
  object-fit: contain;
}
.brand-pill--logo span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.logs li {
  color: var(--ink);
  background: rgba(255,255,255,.58);
}
/* 2026-07-01 publish refresh state */
.publish-refresh-note {
  margin-top: 16px;
  padding: 13px 15px;
  border: 1px solid rgba(20,125,82,.22);
  border-radius: 16px;
  background: rgba(20,125,82,.1);
  color: #0f6a45;
  font-weight: 900;
}
