:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --panel-soft: #f9fafb;
  --line: #d9e2ee;
  --line-strong: #b9c7d8;
  --text: #111827;
  --muted: #667085;
  --brand: #087f73;
  --brand-strong: #0b5f58;
  --accent: #2563eb;
  --accent-soft: #eff6ff;
  --danger: #b42318;
  --warn: #b54708;
  --ok: #047857;
  --shadow: 0 12px 28px rgba(16, 24, 40, 0.08);
  --shadow-soft: 0 1px 2px rgba(16, 24, 40, 0.04);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Malgun Gothic", "Apple SD Gothic Neo", Arial, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 700;
  white-space: nowrap;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

button.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

button.primary:hover {
  background: var(--brand-strong);
}

button.ghost {
  background: #f8fafc;
}

button.danger {
  border-color: #fecaca;
  color: var(--danger);
}

.link-button {
  min-height: auto;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--brand-strong);
  font-weight: 800;
  text-align: left;
}

.link-button:hover {
  color: var(--brand);
  text-decoration: underline;
}

button.compact {
  min-height: 26px;
  padding: 3px 9px;
  font-size: 12px;
  line-height: 1;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 8px 10px;
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  border-color: #7dd3c7;
  box-shadow: 0 0 0 3px rgba(8, 127, 115, 0.12);
  outline: 0;
}

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

label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 9px 10px;
  text-align: left;
  vertical-align: middle;
  font-size: 13px;
}

th {
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
}

tbody tr:hover td {
  background: #fbfdff;
}

.shell {
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(8, 127, 115, 0.14), rgba(37, 99, 235, 0.1)),
    var(--bg);
}

.auth-card {
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.auth-card--blogger,
.auth-card--admin,
.auth-card--advertiser {
  width: min(420px, 100%);
  display: block;
  border-radius: 16px;
}

.auth-screen--blogger {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 16%, rgba(45, 212, 191, 0.22), transparent 29%),
    radial-gradient(circle at 90% 82%, rgba(96, 165, 250, 0.18), transparent 31%),
    linear-gradient(135deg, #f4fbfa 0%, #edf8f6 48%, #f5f9ff 100%);
}

.auth-screen--blogger::before,
.auth-screen--blogger::after {
  position: absolute;
  z-index: -1;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(8, 127, 115, 0.08);
  border-radius: 50%;
  content: "";
}

.auth-screen--blogger::before {
  top: -170px;
  right: 8%;
  box-shadow: 0 0 0 70px rgba(8, 127, 115, 0.025), 0 0 0 140px rgba(8, 127, 115, 0.018);
}

.auth-screen--blogger::after {
  bottom: -220px;
  left: 5%;
  box-shadow: 0 0 0 80px rgba(45, 212, 191, 0.055);
}

.auth-card--blogger {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  border: 1px solid #d8e8e5;
  border-radius: 26px;
  box-shadow: 0 30px 80px rgba(15, 64, 70, 0.16);
}

.auth-screen--blogger .auth-side--blogger {
  position: relative;
  align-content: center;
  justify-items: center;
  min-height: 520px;
  padding: 52px;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.95), transparent 30%),
    linear-gradient(145deg, #e7f8f4, #cceee7 62%, #dceffc);
}

.auth-side-branding {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 18px;
  width: 100%;
}

.auth-side-logo {
  display: grid;
  width: 176px;
  height: 176px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(8, 127, 115, 0.12);
  border-radius: 38px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 22px 54px rgba(8, 98, 90, 0.14);
  color: var(--brand-strong);
  font-size: 48px;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.auth-side-logo img {
  width: 84%;
  height: 84%;
  object-fit: contain;
}

.auth-side-branding strong {
  color: #063f3a;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.auth-screen--blogger .auth-side--blogger::after {
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(8, 127, 115, 0.1);
  border-radius: 20px;
  pointer-events: none;
  content: "";
}

.auth-eyebrow {
  display: inline-flex;
  margin-bottom: 20px;
  color: #99f6e4;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.auth-screen--blogger .auth-side--blogger h1 {
  max-width: 390px;
  font-size: clamp(30px, 3.2vw, 43px);
  line-height: 1.22;
  letter-spacing: -0.04em;
}

.auth-screen--blogger .auth-side--blogger p {
  max-width: 410px;
  margin-top: 20px;
  color: rgba(236, 254, 255, 0.78);
  font-size: 15px;
  line-height: 1.8;
}

.auth-bridge-visual {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr 58px;
  align-items: center;
  width: min(370px, 100%);
  margin: 44px 0 0;
}

.bridge-node {
  z-index: 1;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(8, 127, 115, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 14px 32px rgba(8, 98, 90, 0.12);
  color: #0b5f58;
  font-size: 18px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.bridge-node--right {
  background: #2dd4bf;
  color: #073b3a;
}

.bridge-line {
  position: relative;
  height: 26px;
  border-top: 3px solid rgba(8, 127, 115, 0.52);
  border-radius: 50% 50% 0 0;
  transform: translateY(12px);
}

.auth-side-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-side-points span {
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
}

.auth-screen--blogger .auth-card--blogger .auth-main {
  display: grid;
  align-content: center;
  padding: 54px 46px;
  background: rgba(255, 255, 255, 0.97);
}

.auth-card--blogger .auth-brand {
  display: none;
}

.auth-card--blogger .auth-main h2 {
  margin-bottom: 28px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.auth-card--blogger .auth-submit {
  min-height: 50px;
  border-radius: 9px;
  box-shadow: 0 12px 22px rgba(8, 127, 115, 0.18);
}

.auth-card--blogger .auth-foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #e8eef5;
}

@media (max-width: 800px) {
  .auth-card--blogger {
    width: min(480px, 100%);
    grid-template-columns: 1fr;
  }

  .auth-screen--blogger .auth-side--blogger {
    min-height: auto;
    padding: 34px;
  }

  .auth-bridge-visual {
    display: none;
  }

  .auth-side-logo {
    width: 96px;
    height: 96px;
    border-radius: 24px;
  }

  .auth-side-branding {
    gap: 12px;
  }

  .auth-side-branding strong {
    font-size: 25px;
  }

  .auth-screen--blogger .auth-side--blogger h1 {
    font-size: 28px;
  }

  .auth-screen--blogger .auth-card--blogger .auth-main {
    padding: 34px;
  }
}

@media (max-width: 520px) {
  .auth-screen--blogger {
    padding: 14px;
  }

  .auth-screen--blogger .auth-side--blogger {
    padding: 28px;
  }

  .auth-screen--blogger .auth-card--blogger .auth-main {
    padding: 30px 24px;
  }
}

.auth-side {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 34px;
  background: linear-gradient(150deg, #0b5f58 0%, #0f766e 54%, #1d4ed8 140%);
  color: #fff;
}

.auth-side h1 {
  margin: 0;
  font-size: 30px;
}

.auth-side p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
}

.auth-brand h1 {
  margin: 0;
  color: #10213d;
  font-size: 22px;
}

.auth-main {
  padding: 30px;
  background: #fff;
}

.auth-card--blogger .auth-main,
.auth-card--admin .auth-main,
.auth-card--advertiser .auth-main {
  padding: 36px;
}

.auth-main h2 {
  margin: 0 0 22px;
  color: #10213d;
  font-size: 24px;
}

.auth-submit {
  min-height: 46px;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 800;
}

/* 로그인 화면별 배경과 버튼 색상 */
.auth-screen--admin {
  background:
    radial-gradient(circle at 12% 16%, rgba(45, 212, 191, 0.17), transparent 30%),
    radial-gradient(circle at 88% 86%, rgba(59, 130, 246, 0.18), transparent 32%),
    #09111f;
}

.auth-card--admin {
  width: min(420px, 100%);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 16px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.auth-card--admin .auth-submit {
  background: #132a46;
}
.auth-card--admin .auth-submit:hover { background: #1e3a5f; }

.auth-screen--advertiser {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 18%, rgba(167, 139, 250, 0.2), transparent 28%),
    radial-gradient(circle at 90% 82%, rgba(96, 165, 250, 0.17), transparent 30%),
    linear-gradient(135deg, #faf8ff 0%, #f5f2ff 48%, #f6f9ff 100%);
}

.auth-card--advertiser {
  border: 1px solid #e4dcf5;
  box-shadow: 0 30px 80px rgba(76, 29, 149, 0.15);
}

.auth-card--account {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  overflow: hidden;
  border-radius: 26px;
}

.auth-card--account .auth-main {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: 48px 46px;
}

.auth-card--account .auth-main h2 {
  margin-bottom: 28px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.auth-card--account .auth-form {
  gap: 16px;
}

.auth-card--account .auth-foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid #e8eef5;
}

.auth-side--advertiser {
  position: relative;
  align-content: center;
  justify-items: center;
  min-height: 520px;
  padding: 52px;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.94), transparent 30%),
    linear-gradient(145deg, #f0eaff, #ddd1fb 62%, #dce8ff);
}

.auth-side--advertiser::after {
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(109, 40, 217, 0.1);
  border-radius: 20px;
  pointer-events: none;
  content: "";
}

.auth-side--advertiser .auth-side-logo {
  border-color: rgba(109, 40, 217, 0.13);
  box-shadow: 0 22px 54px rgba(76, 29, 149, 0.14);
  color: #5b21b6;
}

.auth-side--advertiser .auth-side-branding strong {
  color: #37156f;
}

.auth-side--advertiser .bridge-node {
  border-color: rgba(109, 40, 217, 0.17);
  color: #6d28d9;
}

.auth-side--advertiser .bridge-node--right {
  background: #8b5cf6;
  color: #fff;
}

.auth-side--advertiser .bridge-line {
  border-top-color: rgba(109, 40, 217, 0.48);
}
.auth-card--advertiser .auth-submit {
  background: #6d28d9;
}
.auth-card--advertiser .auth-submit:hover { background: #5b21b6; }

.blogon-auth-shell {
  width: min(1040px, 100%);
  min-height: 600px;
  display: grid;
  grid-template-columns: minmax(380px, 0.86fr) minmax(0, 1.14fr);
  overflow: hidden;
  border: 1px solid #e4def2;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 32px 90px rgba(44, 26, 86, 0.18);
}

.blogon-auth-panel {
  display: grid;
  align-content: center;
  min-width: 0;
  padding: 56px 54px;
  background: #fff;
}

.blogon-auth-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 68px;
}

.blogon-auth-brand .brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: #f0e9ff;
}

.blogon-auth-brand strong {
  color: #2f1b55;
  font-size: 23px;
  letter-spacing: -0.04em;
}

.blogon-auth-panel h2 {
  margin: 0 0 30px;
  color: #17122a;
  font-size: 31px;
  letter-spacing: -0.045em;
}

.blogon-auth-panel .auth-form {
  gap: 18px;
}

.blogon-auth-panel .auth-submit {
  min-height: 52px;
  margin-top: 6px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  box-shadow: 0 14px 30px rgba(109, 40, 217, 0.24);
}

.blogon-auth-panel .auth-submit:hover {
  background: linear-gradient(135deg, #6d28d9, #4c1d95);
}

.blogon-auth-visual {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 20%, rgba(196, 181, 253, 0.36), transparent 26%),
    radial-gradient(circle at 18% 86%, rgba(96, 165, 250, 0.24), transparent 31%),
    linear-gradient(145deg, #21143c 0%, #4c1d95 54%, #6d28d9 100%);
}

.blogon-auth-visual::before,
.blogon-auth-visual::after {
  position: absolute;
  width: 330px;
  height: 330px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  content: "";
}

.blogon-auth-visual::before {
  top: -190px;
  right: -80px;
  box-shadow: 0 0 0 65px rgba(255, 255, 255, 0.025), 0 0 0 130px rgba(255, 255, 255, 0.018);
}

.blogon-auth-visual::after {
  bottom: -220px;
  left: -90px;
  box-shadow: 0 0 0 72px rgba(96, 165, 250, 0.05);
}

.blogon-visual-mark {
  position: absolute;
  z-index: 2;
  top: 64px;
  left: 64px;
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 48px rgba(15, 8, 35, 0.28);
  color: #6d28d9;
  font-size: 26px;
  font-weight: 900;
}

.blogon-visual-mark img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}

.blogon-visual-board {
  position: relative;
  z-index: 1;
  width: min(360px, 70%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 25px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 28px 70px rgba(20, 8, 48, 0.3);
  backdrop-filter: blur(14px);
}

.blogon-board-bar {
  grid-column: 1 / -1;
  width: 72%;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

.blogon-board-bar--long {
  width: 92%;
  height: 13px;
  background: rgba(255, 255, 255, 0.78);
}

.blogon-board-bar--short {
  width: 48%;
  margin-bottom: 20px;
}

.blogon-visual-board i {
  height: 108px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
}

.blogon-visual-card {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 38px rgba(19, 8, 42, 0.3);
  color: #6d28d9;
  font-size: 21px;
  font-weight: 900;
}

.blogon-visual-card--top {
  top: 125px;
  right: 58px;
}

.blogon-visual-card--bottom {
  right: 84px;
  bottom: 75px;
  color: #2563eb;
}

.auth-code-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.auth-code-grid button {
  min-width: 132px;
  min-height: 42px;
  white-space: nowrap;
}

.auth-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 13px;
  color: #334155;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.auth-link-button:hover {
  border-color: #9fd4cd;
  color: var(--brand-strong);
  background: #f4fbfa;
}

@media (max-width: 720px) {
  .auth-main { padding: 28px; }

  .auth-card--account {
    width: min(480px, 100%);
    grid-template-columns: 1fr;
  }

  .auth-card--account .auth-side {
    min-height: auto;
    padding: 28px;
  }

  .auth-card--account .auth-main {
    padding: 32px 28px;
  }

  .auth-card--account .auth-bridge-visual {
    display: none;
  }

  .blogon-auth-shell {
    width: min(460px, 100%);
    min-height: auto;
    display: block;
    border-radius: 24px;
  }

  .blogon-auth-panel {
    padding: 34px 28px 38px;
  }

  .blogon-auth-brand {
    margin-bottom: 42px;
  }

  .blogon-auth-visual {
    display: none;
  }
}

@media (max-width: 420px) {
  .auth-code-grid {
    grid-template-columns: 1fr;
  }

  .auth-code-grid button {
    width: 100%;
  }

  .naver-email-suffix {
    padding-inline: 10px;
    font-size: 13px;
  }
}

.auth-card--gathering .auth-side {
  background: linear-gradient(150deg, #082f49 0%, #0f766e 62%, #0d9488 140%);
}


.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.auth-tabs button.active {
  border-color: var(--brand);
  background: #ccfbf1;
  color: #134e4a;
}

.auth-form {
  display: none;
  gap: 12px;
}

.auth-form.active {
  display: grid;
}

.naver-email-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.naver-email-input:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.naver-email-input input {
  min-width: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.naver-email-input input:focus {
  box-shadow: none;
}

.naver-email-suffix {
  align-self: stretch;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-left: 1px solid var(--line);
  background: #f8fafc;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
}

.auth-email-status {
  margin: -2px 0 2px;
  padding: 11px 13px;
  border: 1px solid #99f6e4;
  border-radius: 8px;
  background: #f0fdfa;
  color: #0f766e;
  font-size: 13px;
  line-height: 1.55;
}

.auth-email-status.error {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.advertiser-order-context {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid #c4b5fd;
  border-radius: 12px;
  background: rgba(245, 243, 255, 0.94);
  color: #4c1d95;
}

.advertiser-order-context div {
  display: grid;
  gap: 4px;
}

.advertiser-order-context span {
  color: #6d5a91;
  font-size: 12px;
}

.advertiser-order-context button,
.account-order-button {
  border-color: #c4b5fd;
  background: #fff;
  color: #6d28d9;
}

.auth-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.auth-foot a {
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(190px, auto) minmax(360px, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 74px;
  padding: 10px 28px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
}

.brand-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.brand-link:hover h1 {
  color: var(--brand-strong);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  font-weight: 800;
  overflow: hidden;
  flex: 0 0 auto;
}

.brand-mark.has-logo {
  border: 1px solid var(--line);
  background: #fff;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand h1 {
  margin: 0;
  font-size: 18px;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.top-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  flex-wrap: wrap;
  gap: 8px;
}

.account-select {
  width: 260px;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 7px 12px;
  color: #334155;
  white-space: nowrap;
}

.nav {
  display: inline-flex;
  align-items: center;
  justify-self: center;
  max-width: 100%;
  gap: 4px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
  padding: 4px;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav button {
  min-height: 38px;
  border-color: transparent;
  background: transparent;
  padding: 8px 14px;
  color: #475467;
}

.nav button:hover {
  background: #fff;
  color: var(--brand-strong);
}

.nav button.active {
  border-color: #99f6e4;
  background: #ccfbf1;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
  color: #134e4a;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 24px 56px;
}

.admin-setting-divider {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 6px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.admin-setting-divider span,
.admin-setting-field small {
  color: var(--muted);
  font-size: 12px;
}

.admin-setting-field {
  gap: 7px;
}

.setting-input-unit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.setting-input-unit input {
  border: 0;
  border-radius: 0;
}

.setting-input-unit input:focus {
  box-shadow: none;
}

.setting-input-unit span {
  border-left: 1px solid var(--line);
  background: #f8fafc;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.section {
  display: none;
}

.section.active {
  display: block;
}

.headline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.headline h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
}

.headline p {
  margin: 6px 0 0;
  color: var(--muted);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.summary {
  min-height: 88px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  padding: 15px 16px;
  box-shadow: var(--shadow-soft);
}

.summary span {
  color: var(--muted);
  font-size: 13px;
}

.summary strong {
  display: block;
  margin-top: 7px;
  font-size: 24px;
  line-height: 1.15;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(210px, 260px) 150px auto;
  gap: 10px;
  margin: 10px 0 14px;
  align-items: stretch;
}

.admin-toolbar {
  grid-template-columns: 180px 150px 150px auto;
}

.inline-field {
  gap: 4px;
}

.toolbar-select {
  height: 40px;
  display: grid;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 4px 10px 3px;
}

.toolbar-select span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.1;
}

.toolbar-select select {
  min-height: 18px;
  height: 18px;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: var(--brand-strong);
  font-weight: 800;
}

.quota-pill {
  display: grid;
  align-content: center;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 4px 10px 3px;
}

.quota-pill span {
  color: var(--muted);
  font-size: 11px;
}

.quota-pill strong {
  color: var(--brand-strong);
  font-size: 15px;
  line-height: 1.1;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.panel-head h3 {
  margin: 0;
  font-size: 16px;
}

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

.selection-summary {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 6px 11px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.month-filter {
  display: flex;
  align-items: center;
  grid-auto-flow: column;
  gap: 8px;
  min-height: 34px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.month-filter input,
.month-filter select {
  width: 150px;
  min-height: 34px;
  padding: 6px 9px;
}

.panel-body {
  padding: 16px;
}

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

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

.stack-panels {
  display: grid;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.checkbox-line input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 auto;
}

.settlement-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
  border-left: 3px solid var(--brand);
  border-radius: 6px;
  background: #f2faf8;
  padding: 11px 13px;
  color: #183b36;
}

.settlement-section-heading span {
  color: var(--muted);
  font-size: 12px;
}

.settlement-privacy-note {
  margin: 0;
  border-radius: 8px;
  background: #f8fafc;
  padding: 11px 12px;
  font-size: 12px;
  line-height: 1.55;
}

.exchange-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.exchange-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  margin-top: 14px;
}

.exchange-overview-panel {
  overflow: hidden;
}

.exchange-overview-body {
  padding: 16px;
}

.exchange-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.exchange-metric {
  display: grid;
  gap: 7px;
  min-width: 0;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 15px;
  background: #f8fafc;
}

.exchange-metric span {
  color: var(--muted);
  font-size: 12px;
}

.exchange-metric strong {
  color: #0f172a;
  font-size: 21px;
  line-height: 1.15;
}

.exchange-metric--accent {
  border-color: #b8e4dd;
  background: #effaf8;
}

.exchange-metric--accent strong {
  color: #047b70;
}

.exchange-overview-form {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.exchange-request-panel,
.exchange-history-panel {
  min-width: 0;
  overflow: hidden;
}

.exchange-history-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  border-radius: 999px;
  padding: 5px 9px;
  color: #0f766e;
  background: #e6f7f4;
  font-size: 12px;
  font-weight: 800;
}

.exchange-history-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.exchange-history-tools .month-filter {
  white-space: nowrap;
}

.exchange-history-tools input {
  width: 148px;
}

.exchange-history-list {
  display: grid;
  max-height: 380px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.exchange-history-item {
  display: grid;
  grid-template-columns: minmax(150px, .8fr) minmax(190px, 1.2fr);
  align-items: center;
  gap: 18px;
  min-height: 76px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.exchange-history-item:last-child {
  border-bottom: 0;
}

.exchange-history-item:hover {
  background: #fbfefd;
}

.exchange-history-meta,
.exchange-history-amount {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.exchange-history-meta time,
.exchange-history-amount span {
  color: var(--muted);
  font-size: 12px;
}

.exchange-history-amount strong {
  color: #065f5b;
  font-size: 15px;
}

.exchange-status {
  justify-self: start;
  border-radius: 999px;
  padding: 4px 8px;
  color: #475569;
  background: #eef2f7;
  font-size: 11px;
  font-weight: 800;
}

.exchange-status--requested {
  color: #a16207;
  background: #fef3c7;
}

.exchange-status--processed {
  color: #047857;
  background: #d1fae5;
}

.exchange-status--rejected {
  color: #b91c1c;
  background: #fee2e2;
}

.exchange-history-empty {
  display: grid;
  min-height: 160px;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.point-history-panel {
  overflow: hidden;
}

.point-history-panel .table-wrap {
  max-height: 420px;
  overflow: auto;
}

.point-history-panel thead th {
  position: sticky;
  z-index: 1;
  top: 0;
}

.brand-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(8, 127, 115, 0.08), rgba(37, 99, 235, 0.08)),
    #fff;
  padding: 14px;
}

.brand-preview strong,
.brand-preview span {
  display: block;
}

.brand-preview strong {
  font-size: 16px;
}

.brand-preview span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.sticky-filters {
  position: sticky;
  top: 64px;
  z-index: 8;
  margin: 0 -4px 14px;
  padding: 10px 4px 4px;
  background: rgba(245, 247, 251, 0.97);
  border-bottom: 1px solid rgba(217, 224, 234, 0.85);
  backdrop-filter: blur(12px);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 6px 11px;
  color: #334155;
}

.chip.active {
  border-color: var(--brand);
  background: #ecfdf5;
  color: var(--brand-strong);
}

.chip strong {
  font-size: 13px;
}

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

.manuscript-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 238px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.manuscript-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.06);
}

.manuscript-card .cover {
  height: 5px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.manuscript-card .content {
  padding: 15px;
}

.manuscript-card h3 {
  min-height: 44px;
  margin: 10px 0 8px;
  font-size: 16px;
  line-height: 1.35;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  padding: 3px 8px;
  font-size: 12px;
}

.badge.ok {
  background: #d1fae5;
  color: var(--ok);
}

.badge.warn {
  background: #fef3c7;
  color: var(--warn);
}

.badge.danger {
  background: #fee2e2;
  color: var(--danger);
}

.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 15px 15px;
  border-top: 1px solid var(--line);
}

.mypage-grid {
  align-items: start;
}

.blog-account-panel {
  overflow: hidden;
}

.blog-panel-head > div,
.blog-item-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.blog-panel-head h3 {
  margin: 0;
}

.blog-count-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  background: #eef5f4;
  padding: 3px 9px;
  color: var(--brand-strong);
  font-size: 11px;
  font-weight: 800;
}

.blog-list {
  display: grid;
  gap: 12px;
}

.blog-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-width: 0;
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg, #fff 0%, #fbfefd 100%);
  padding: 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.blog-item:hover {
  border-color: #9fd4cd;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.08);
  transform: translateY(-1px);
}

.blog-avatar {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  background: #e5f7f3;
  color: var(--brand-strong);
  font-size: 17px;
  font-weight: 900;
}

.blog-item-content {
  min-width: 0;
}

.blog-item-title strong {
  min-width: 0;
  overflow: hidden;
  color: #10213d;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blog-status {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 20px;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 700;
}

.blog-status.status-approved {
  background: #d1fae5;
  color: var(--ok);
}

.blog-status.status-pending {
  background: #fef3c7;
  color: var(--warn);
}

.blog-status.status-rejected,
.blog-status.status-blocked {
  background: #fee2e2;
  color: var(--danger);
}

.blog-item-url {
  display: block;
  margin-top: 6px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blog-item-url:hover {
  color: var(--brand-strong);
  text-decoration: underline;
}

.blog-open-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 34px;
  border: 1px solid #cce4e0;
  border-radius: 9px;
  padding: 7px 10px;
  color: var(--brand-strong);
  background: #f3fbf9;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}

.blog-open-button:hover {
  border-color: var(--brand);
  background: #e9f8f5;
}

.application-status-flow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px;
  border: 1px solid #d9e8e5;
  border-radius: 12px;
  background: #f7fbfa;
  padding: 14px 16px;
}

.application-status-flow span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #34504c;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.application-status-flow b {
  display: inline-grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
}

.application-status-flow i {
  flex: 1 1 36px;
  height: 1px;
  background: #b8d6d1;
}

.application-url-cell {
  min-width: 170px;
}

.application-inline-url-form {
  display: flex;
  align-items: center;
  gap: 7px;
}

.application-inline-url-form input {
  min-width: 250px;
  height: 36px;
  padding: 7px 10px;
  font-size: 12px;
}

.application-url-value {
  display: flex;
  align-items: center;
  gap: 8px;
}

.application-url-value a {
  color: var(--brand-strong);
  font-weight: 800;
  text-decoration: none;
}

.application-url-value a:hover {
  text-decoration: underline;
}

.blog-empty {
  padding: 32px 18px;
  border: 1px dashed var(--line);
  border-radius: 12px;
}

@media (max-width: 620px) {
  .blog-panel-head { align-items: flex-start; }
  .blog-panel-head > div { align-items: flex-start; flex-direction: column; gap: 6px; }
  .blog-item { grid-template-columns: 40px minmax(0, 1fr); }
  .blog-avatar { width: 40px; height: 40px; }
  .blog-open-button { grid-column: 2; justify-self: start; }
  .application-status-flow { align-items: flex-start; flex-direction: column; }
  .application-status-flow i { width: 1px; min-height: 14px; margin-left: 12px; }
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(8px);
}

.modal {
  width: min(560px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(16, 24, 40, 0.22);
  overflow: hidden;
}

.wide-modal {
  width: min(1180px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fbfdff);
  padding: 14px 16px;
}

.modal-head h3 {
  margin: 0;
  font-size: 17px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 34px;
  min-height: 34px;
  padding: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}

.modal-form {
  padding: 16px;
}

.application-success-modal {
  width: min(500px, 100%);
  border-radius: 14px;
}

.application-success-body {
  display: grid;
  justify-items: center;
  padding: 28px 24px 24px;
  text-align: center;
}

.application-success-icon {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
  font-size: 25px;
  font-weight: 900;
}

.application-success-body > strong {
  color: #0f172a;
  font-size: 18px;
  line-height: 1.45;
}

.application-deadline-box {
  display: grid;
  gap: 7px;
  width: 100%;
  margin-top: 20px;
  border: 1px solid #b8e4dd;
  border-radius: 12px;
  padding: 15px 18px;
  background: #effaf8;
}

.application-deadline-box span {
  color: #64748b;
  font-size: 12px;
}

.application-deadline-box time {
  color: #047b70;
  font-size: 18px;
  font-weight: 900;
}

.application-success-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
  margin-top: 22px;
}

.application-success-actions .primary {
  flex: 1;
}

.ad-intake-panel-head {
  gap: 16px;
  align-items: center;
}

.panel-description {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.ad-intake-actions {
  display: grid;
  grid-template-columns: 150px 160px minmax(240px, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: min(780px, 100%);
}

.ad-log-panel-head { align-items: flex-end; }
.ad-log-panel-head > div:first-child { display: grid; gap: 4px; }
.ad-log-filters { flex-wrap: wrap; justify-content: flex-end; }
.ad-log-filters select { width: 130px; }
.ad-log-filters input[type="date"] { width: 145px; }
.ad-log-filters input[type="search"] { width: 230px; }
.ad-log-table { min-width: 1120px; table-layout: fixed; }

.ad-intake-actions input {
  width: 100%;
  min-width: 0;
}

.ad-submission-modal {
  display: flex;
  flex-direction: column;
  width: min(1040px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: hidden;
}

.ad-submission-form {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 24px 24px;
}

.ad-form-section {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.ad-form-section:last-of-type {
  border-bottom: 0;
}

.ad-form-section-head {
  margin-bottom: 16px;
}

.ad-form-section-head h4 {
  margin: 0 0 5px;
  font-size: 17px;
}

.ad-form-section-head p,
.field-hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.form-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ad-field-full {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  font-weight: 700;
}

.ad-field-full:first-of-type {
  margin-top: 0;
}

.ad-submission-footer {
  position: sticky;
  bottom: -24px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px -24px -24px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  background: var(--surface, #fff);
}

.footer-spacer {
  flex: 1;
}

.row-actions {
  white-space: nowrap;
}

@media (max-width: 900px) {
  .form-grid-3 {
    grid-template-columns: 1fr;
  }

  .ad-intake-actions,
  .ad-intake-actions input,
  .ad-intake-actions select,
  .ad-intake-actions button {
    width: 100%;
  }

  .ad-intake-actions {
    grid-template-columns: 1fr;
  }

  .ad-submission-footer {
    flex-wrap: wrap;
  }
}

.advertise-page {
  min-height: 100vh;
  background: #f4f6f9;
}

body[data-site-template="advertise_2"] {
  --brand: #1e3a8a;
  --brand-strong: #172554;
  --primary: #1d4ed8;
  background: linear-gradient(180deg, #e8eef9 0, #f6f8fc 420px);
}

body[data-site-template="advertise_2"] .advertise-topbar { color: #fff; background: #0f2147; border-color: #213968; }
body[data-site-template="advertise_2"] .advertise-topbar .brand span,
body[data-site-template="advertise_2"] .advertise-nav a { color: #cbd5e1; }
body[data-site-template="advertise_2"] .advertise-nav a.active { color: #fff; background: rgba(255,255,255,.12); }
body[data-site-template="advertise_2"] .advertise-hero { padding: 34px; border-radius: 22px; color: #fff; background: linear-gradient(135deg, #142b59, #2857a7); box-shadow: 0 22px 50px rgba(15,33,71,.22); }
body[data-site-template="advertise_2"] .advertise-hero p,
body[data-site-template="advertise_2"] .advertise-flow span { color: #dbeafe; }

body[data-site-template="advertise_3"] {
  --brand: #111827;
  --brand-strong: #000;
  --primary: #111827;
  background: #fff;
}

body[data-site-template="advertise_3"] .advertise-topbar { box-shadow: none; border-bottom: 1px solid #111827; }
body[data-site-template="advertise_3"] .advertise-hero { text-align: left; }
body[data-site-template="advertise_3"] .advertise-hero h2 { max-width: 640px; font-size: clamp(34px, 6vw, 64px); letter-spacing: -.04em; }
body[data-site-template="advertise_3"] .advertise-flow { justify-content: flex-start; }
body[data-site-template="advertise_3"] .panel { box-shadow: none; border-color: #c9ced6; }
body[data-site-template="advertise_3"] .place-url-guide { color: #111827; background: #f3f4f6; }

.advertise-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
}

.advertise-nav {
  margin-left: auto;
}

.advertise-nav a {
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.advertise-nav a.active {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, white);
}

.advertise-container {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0 80px;
}

.advertise-hero {
  margin-bottom: 28px;
  text-align: center;
}

.advertise-hero .eyebrow {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}

.advertise-hero h2 {
  margin: 10px 0 8px;
  font-size: clamp(28px, 4vw, 42px);
}

.advertise-hero p {
  margin: 0;
  color: var(--muted);
}

.advertise-flow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.advertise-flow span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #394150;
  font-size: 13px;
  font-weight: 700;
}

.advertise-flow strong,
.section-number {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  font-size: 12px;
}

.advertise-flow i {
  width: 40px;
  height: 1px;
  background: var(--line);
}

.advertise-form-card {
  padding: 0 32px;
  overflow: visible;
}

.advertise-form-card .ad-form-section {
  padding: 32px 0;
}

.advertise-form-card .ad-form-section-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.advertise-form-card .ad-form-section-head h3 {
  margin: 0 0 5px;
}

.place-url-guide {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 10px;
  color: #27533f;
  background: #edf8f2;
  font-size: 13px;
}

.place-url-guide code {
  padding: 3px 7px;
  border-radius: 6px;
  background: #fff;
}

.extension-url-locked input {
  border-color: #d7dce6;
  color: #667085;
  background: #f1f3f7;
  cursor: not-allowed;
}

.extension-url-locked::after {
  content: "연장 접수에서는 기존 공유 URL이 유지됩니다.";
  margin-top: 6px;
  color: #7c3aed;
  font-size: 11px;
  font-weight: 700;
}

.advertise-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 20px;
  padding: 14px;
  border-radius: 10px;
  background: #f8f9fb;
  font-size: 13px;
}

.advertise-consent input {
  width: auto;
  margin-top: 2px;
}

.advertise-submit-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 -32px;
  padding: 22px 32px;
  border-top: 1px solid var(--line);
}

.advertise-lookup-card { margin-top: 22px; padding: 28px; }
.advertise-lookup-form { display: grid; grid-template-columns: minmax(180px, 360px) auto; gap: 12px; align-items: end; margin-top: 20px; }
.advertise-lookup-form label { display: grid; gap: 7px; font-size: 13px; font-weight: 700; color: var(--ink); }
.advertise-lookup-form button { min-height: 44px; }
.advertise-lookup-result { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 22px; }
.lookup-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.lookup-summary div { display: grid; gap: 6px; padding: 14px; border-radius: 12px; background: var(--soft); }
.lookup-summary span { color: var(--muted); font-size: 12px; }
.lookup-summary strong { overflow-wrap: anywhere; }
.lookup-project-title { display: flex; gap: 10px; align-items: baseline; margin: 20px 0 12px; }
.lookup-project-title span { color: var(--muted); }
.lookup-url-list { display: grid; gap: 9px; padding: 0; list-style: none; }
.lookup-url-list li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.lookup-url-list li > span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: white; background: var(--brand); font-size: 12px; font-weight: 800; flex: 0 0 auto; }
.lookup-url-list a { color: var(--brand); overflow-wrap: anywhere; }
.lookup-empty { margin: 0; padding: 18px; border-radius: 12px; background: var(--soft); color: var(--muted); }

@media (max-width: 760px) {
  .advertise-lookup-form, .lookup-summary { grid-template-columns: 1fr; }
}

/* Advertiser Blog CMS layout */
.advertiser-app-shell { min-height: 100vh; background: #f4f6fa; }
.advertiser-app-shell:not(.hidden) { display: grid; grid-template-columns: 244px minmax(0, 1fr); }
.advertiser-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 22px 16px; color: #dbe3f2; background: #172033; box-shadow: 12px 0 40px rgba(15,23,42,.12); z-index: 20; }
.advertiser-sidebar-brand { display: flex; gap: 12px; align-items: center; padding: 4px 8px 22px; color: #fff; text-decoration: none; }
.advertiser-sidebar-brand .brand-mark { width: 42px; height: 42px; border-radius: 13px; background: linear-gradient(135deg,#7c3aed,#2563eb); }
.advertiser-sidebar-brand h1 { margin: 0; font-size: 19px; color: #fff; }
.advertiser-sidebar-brand span { display: block; margin-top: 2px; color: #94a3b8; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.advertiser-sidebar-nav { display: grid; gap: 5px; }
.advertiser-sidebar-nav button,.advertiser-sidebar-footer button { width: 100%; min-height: 46px; display: flex; gap: 12px; align-items: center; border: 0; border-radius: 11px; padding: 0 14px; color: #bdc7da; background: transparent; font-weight: 700; text-align: left; cursor: pointer; }
.advertiser-sidebar-nav button > span,.advertiser-sidebar-footer button > span { width: 20px; color: #8190aa; font-size: 18px; text-align: center; }
.advertiser-sidebar-nav button:hover,.advertiser-sidebar-nav button.active { color: #fff; background: rgba(124,58,237,.28); }
.advertiser-sidebar-nav button.active > span { color: #c4b5fd; }
.advertiser-sidebar-nav button em { margin-left: auto; min-width: 24px; height: 22px; display: inline-grid; place-items: center; border-radius: 999px; color: #fff; background: #ef4444; font-size: 11px; font-style: normal; }
.advertiser-sidebar-footer { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(148,163,184,.18); }
.advertiser-sidebar-footer button:hover { color: #fff; background: rgba(255,255,255,.07); }
.advertiser-app-main { min-width: 0; }
.advertise-workspace-header { min-height: 74px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 13px 32px; border-bottom: 1px solid #e3e8f1; background: rgba(255,255,255,.9); backdrop-filter: blur(16px); }
.advertise-workspace-header > div { display: grid; gap: 3px; }
.advertise-workspace-header strong { font-size: 18px; color: #162033; }
.advertise-workspace-header > div span { color: #7a8699; font-size: 12px; }
.advertiser-section { display: none; }
.advertiser-section.active { display: block; }
.advertiser-page-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 20px; }
.advertiser-page-heading > div > span { color: #7c3aed; font-size: 11px; font-weight: 900; letter-spacing: .13em; }
.advertiser-page-heading h2 { margin: 6px 0 5px; color: #172033; font-size: 30px; }
.advertiser-page-heading p { margin: 0; color: #728096; }
.advertiser-page-heading button,.ad-table-action { border: 1px solid #d7deea; border-radius: 9px; padding: 9px 13px; color: #445066; background: #fff; font-weight: 700; cursor: pointer; }
.advertiser-page-actions { display: flex; align-items: flex-end; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.advertiser-page-actions .month-filter { white-space: nowrap; }
.advertiser-page-actions .month-filter input { width: 148px; }
.advertiser-submission-search { display: grid; gap: 5px; color: #69758a; font-size: 12px; font-weight: 700; }
.advertiser-submission-search input { width: clamp(190px, 28vw, 280px); min-height: 38px; }
.ad-table-actions { display: flex; gap: 7px; white-space: nowrap; }
.ad-table-action--extend { color: #fff; border-color: #7c3aed; background: #7c3aed; }
.advertiser-list-card { padding: 0; overflow: hidden; }
.advertiser-table-wrap { overflow-x: auto; }
.advertiser-table { width: 100%; border-collapse: collapse; }
.advertiser-table th { padding: 14px 16px; color: #69758a; background: #f7f9fc; font-size: 12px; text-align: left; white-space: nowrap; }
.advertiser-table td { padding: 15px 16px; border-top: 1px solid #edf0f5; color: #3e495d; font-size: 13px; vertical-align: middle; }
.advertiser-table td strong,.advertiser-table td small { display: block; }
.advertiser-table td small { margin-top: 4px; color: #8b95a6; }
.advertiser-table a { color: #4f46e5; }
.ad-table-status { display: inline-flex; border-radius: 999px; padding: 5px 9px; color: #475569; background: #eef2f7; font-size: 11px; font-weight: 800; }
.ad-table-status--approved { color: #047857; background: #d1fae5; }
.ad-table-status--requested { color: #a16207; background: #fef3c7; }
.ad-table-status--rejected { color: #b91c1c; background: #fee2e2; }
.advertiser-account-heading-actions { display: flex; align-items: center; gap: 12px; }
.advertiser-heading-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.advertiser-log-card { overflow: hidden; border-color: #dfe4ee; border-radius: 16px; box-shadow: 0 10px 30px rgba(30, 41, 59, .06); }
.advertiser-log-toolbar { display: grid; gap: 12px; padding: 18px 20px; border-bottom: 1px solid #dfe5ef; background: linear-gradient(180deg, #fff, #fbfcff); }
.advertiser-log-toolbar-row { display: grid; grid-template-columns: 150px 150px minmax(220px, 1fr) 180px; align-items: end; gap: 10px; }
.advertiser-log-toolbar-row label { display: grid; gap: 6px; color: #64748b; font-size: 11px; font-weight: 900; letter-spacing: .02em; }
.advertiser-log-toolbar input,.advertiser-log-toolbar select,.advertiser-log-toolbar button { width: 100%; min-height: 42px; box-sizing: border-box; border: 1px solid #d8dfeb; border-radius: 10px; padding: 0 13px; background: #fff; color: #253044; font-size: 13px; font-weight: 750; }
.advertiser-log-toolbar input:focus,.advertiser-log-toolbar select:focus { outline: 0; border-color: #8b5cf6; box-shadow: 0 0 0 3px rgba(124, 58, 237, .1); }
.advertiser-log-toolbar-row--search { grid-template-columns: minmax(320px, 1fr) 82px 82px 124px; }
.advertiser-log-toolbar button { cursor: pointer; transition: transform .15s ease, border-color .15s ease, background .15s ease; }
.advertiser-log-toolbar button:hover { border-color: #a78bfa; transform: translateY(-1px); }
.advertiser-log-toolbar button.primary { border-color: #6d28d9; color: #fff; background: linear-gradient(135deg, #7c3aed, #5b21b6); box-shadow: 0 6px 14px rgba(109, 40, 217, .2); }
.advertiser-log-table { min-width: 1280px; table-layout: fixed; }
.advertiser-log-table thead th { border-bottom-color: #dbe2ec; padding-block: 13px; color: #596579; background: #f6f8fc; font-size: 11px; font-weight: 900; letter-spacing: .015em; }
.advertiser-log-table tbody td { padding-block: 14px; color: #273449; vertical-align: middle; }
.advertiser-log-table tbody tr { transition: background .15s ease; }
.advertiser-log-table tbody tr:hover { background: #faf9ff; }
.advertiser-log-table tbody tr:not(:last-child) td { border-bottom-color: #e7ebf2; }
.advertiser-log-table th:first-child,.advertiser-log-table td:first-child { width: 58px; text-align: center; }
.advertiser-log-table th:nth-child(2),.advertiser-log-table td:nth-child(2),.advertiser-log-table th:nth-child(3),.advertiser-log-table td:nth-child(3) { width: 116px; }
.advertiser-log-table th:nth-child(4),.advertiser-log-table td:nth-child(4) { width: 160px; }
.advertiser-log-table th:nth-child(5),.advertiser-log-table td:nth-child(5) { width: 86px; text-align: center; }
.advertiser-log-table th:nth-child(6),.advertiser-log-table td:nth-child(6) { width: 120px; }
.advertiser-log-table th:nth-child(7),.advertiser-log-table td:nth-child(7) { width: 250px; }
.advertiser-log-table th:nth-child(8),.advertiser-log-table td:nth-child(8) { width: 116px; }
.advertiser-log-table th:nth-child(9),.advertiser-log-table td:nth-child(9) { width: 88px; text-align: center; }
.advertiser-log-table th:last-child,.advertiser-log-table td:last-child { width: 145px; white-space: nowrap; }
.advertiser-log-table td:nth-child(2),.advertiser-log-table td:nth-child(3),.advertiser-log-table td:nth-child(4),.advertiser-log-table td:nth-child(7),.advertiser-log-table td:nth-child(8) { overflow-wrap: anywhere; line-height: 1.45; }
.advertiser-log-table td:nth-child(5),.advertiser-log-table td:nth-child(6) { color: #596579; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.advertiser-log-action { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 27px; border-radius: 999px; padding: 0 10px; color: #5b21b6; background: #ede9fe; font-size: 11px; font-weight: 900; line-height: 1; white-space: nowrap; }
.advertiser-log-action--receive { color: #047857; background: #d1fae5; }
.advertiser-log-action--extend { color: #6d28d9; background: #ede9fe; }
.advertiser-log-action--update { color: #b45309; background: #fef3c7; }
.advertiser-log-action--delete { color: #b91c1c; background: #fee2e2; }
.advertiser-log-action--create { color: #1d4ed8; background: #dbeafe; }
.advertiser-log-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid #dfe5ef; color: #64748b; background: #fbfcfe; font-size: 12px; font-weight: 800; }
.advertiser-log-pagination > div { display: flex; flex: 0 0 auto; align-items: center; gap: 9px; white-space: nowrap; }
.advertiser-log-pagination button,.advertiser-log-pagination select { min-height: 36px; border: 1px solid #d7deea; border-radius: 9px; padding: 0 11px; background: #fff; color: #445066; font-size: 12px; font-weight: 800; }
.advertiser-log-pagination button { min-width: 52px; flex: 0 0 auto; }
.advertiser-log-pagination select { width: 106px; flex: 0 0 106px; }
.advertiser-log-pagination #advertiserLogPage { display: inline-flex; width: 58px; min-width: 58px; height: 36px; align-items: center; justify-content: center; border: 1px solid #e1e6ef; border-radius: 9px; color: #374151; background: #fff; line-height: 1; white-space: nowrap; }
.advertiser-log-pagination button:disabled { opacity: .4; cursor: default; }
.advertiser-account-heading-actions span { color: #7a8699; font-size: 13px; font-weight: 700; }
.advertiser-account-heading-actions button { min-height: 40px; border: 1px solid #c4b5fd; border-radius: 9px; padding: 0 16px; color: #5b21b6; background: #fff; box-shadow: none; font-size: 13px; font-weight: 800; }
.advertiser-account-heading-actions button:hover { border-color: #7c3aed; color: #fff; background: #7c3aed; }
.advertiser-profile-card span { color: #788499; font-size: 12px; }
.advertiser-account-modal { width: min(720px, calc(100vw - 32px)); }
.advertiser-account-modal .modal-head > div { display: grid; gap: 3px; }
.advertiser-account-modal .modal-head span { color: #7c8799; font-size: 12px; }
.advertiser-account-form { padding: 22px; }
.advertiser-account-form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.advertiser-account-list-card { margin-top: 0; }
.advertiser-account-grade-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 16px 18px; border-bottom: 1px solid #e4e8f0; background: #fafbfe; }
.advertiser-account-grade-filters > strong { margin-right: 4px; color: #455267; font-size: 12px; }
.advertiser-account-grade-filters > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.advertiser-account-grade-filters button { display: inline-flex; min-height: 36px; align-items: center; gap: 8px; border: 1px solid #dce2ec; border-radius: 999px; padding: 0 13px; color: #5f6b7f; background: #fff; font-size: 12px; font-weight: 850; cursor: pointer; }
.advertiser-account-grade-filters button:hover { border-color: #a78bfa; color: #6d28d9; }
.advertiser-account-grade-filters button.active { border-color: #6d28d9; color: #fff; background: #6d28d9; }
.advertiser-account-grade-filters em { display: inline-flex; min-width: 20px; height: 20px; align-items: center; justify-content: center; border-radius: 999px; padding: 0 6px; color: #6b7280; background: #eef1f6; font-size: 10px; font-style: normal; }
.advertiser-account-grade-filters button.active em { color: #5b21b6; background: #fff; }
.advertiser-profile-card { padding: 28px; overflow: hidden; }
.advertiser-profile-form { max-width: 820px; }
.advertiser-profile-form input:disabled { color: #6b7280; background: #f4f6f9; }
.advertiser-profile-actions { display: flex; justify-content: flex-end; margin-top: 20px; border-top: 1px solid #e8ecf3; padding-top: 20px; }
.advertiser-url-modal { width: min(920px, calc(100vw - 32px)); max-height: calc(100vh - 32px); }
.advertiser-url-modal-body { max-height: calc(100vh - 110px); overflow-y: auto; padding: 24px; }
.url-timeline { display: grid; gap: 16px; }
.url-timeline-segment { overflow: hidden; border: 1px solid #e0e5ee; border-radius: 13px; }
.url-timeline-segment > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; background: #f8f7ff; }
.url-timeline-segment > header > div { display: flex; align-items: center; gap: 10px; }
.url-timeline-segment > header span { border-radius: 999px; padding: 4px 8px; color: #5b21b6; background: #ede9fe; font-size: 11px; font-weight: 800; }
.url-timeline-segment > header strong { color: #263248; font-size: 14px; }
.url-timeline-segment > header em { color: #7c3aed; font-size: 13px; font-style: normal; font-weight: 900; }
.url-timeline-days { display: grid; }
.url-timeline-day { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 18px; align-items: center; min-height: 64px; border-top: 1px solid #edf0f5; padding: 12px 18px; }
.url-timeline-day time { display: grid; gap: 4px; }
.url-timeline-day time b { color: #29364d; font-size: 13px; }
.url-timeline-day time span { color: #8a95a7; font-size: 12px; }
.url-timeline-day > div { display: grid; gap: 6px; min-width: 0; }
.url-timeline-day a { overflow-wrap: anywhere; color: #4f46e5; font-size: 13px; }
.url-waiting { color: #9aa4b3; font-size: 12px; }
.url-submission { display: grid; gap: 4px; }
.url-submission small { color: #7c8799; font-size: 11px; }

@media (max-width: 900px) {
  .advertiser-app-shell:not(.hidden) { grid-template-columns: 78px minmax(0,1fr); }
  .advertiser-sidebar { padding: 18px 10px; }
  .advertiser-sidebar-brand { justify-content: center; padding-inline: 0; }
  .advertiser-sidebar-brand > div:last-child,.advertiser-sidebar-nav button:not(.active)::after { display: none; }
  .advertiser-sidebar-nav button,.advertiser-sidebar-footer button { justify-content: center; padding: 0; font-size: 0; }
  .advertiser-sidebar-nav button > span,.advertiser-sidebar-footer button > span { width: auto; }
  .advertiser-sidebar-nav button em { position: absolute; margin: -28px 0 0 28px; font-size: 9px; }
  .advertise-workspace-header { padding-inline: 20px; }
}

@media (max-width: 620px) {
  .advertiser-app-shell:not(.hidden) { display: block; }
  .advertiser-sidebar { position: static; width: 100%; height: auto; padding: 12px; }
  .advertiser-sidebar-brand { justify-content: flex-start; padding: 0 4px 12px; }
  .advertiser-sidebar-brand > div:last-child { display: block; }
  .advertiser-sidebar-nav { display: flex; overflow-x: auto; padding-bottom: 4px; }
  .advertiser-sidebar-nav button { min-width: max-content; padding: 0 13px; font-size: 12px; }
  .advertiser-sidebar-nav button > span { display: none; }
  .advertiser-sidebar-footer { display: none; }
  .advertise-workspace-header { min-height: 64px; padding: 10px 16px; }
  .advertise-workspace-header > div span { display: none; }
  .advertiser-page-heading { align-items: stretch; flex-direction: column; }
  .advertiser-account-heading-actions { justify-content: flex-end; }
  .url-timeline-day { grid-template-columns: 1fr; gap: 8px; }
  .url-timeline-segment > header { align-items: flex-start; }
  .url-timeline-segment > header > div { align-items: flex-start; flex-direction: column; }
}

.advertise-submit-bar div {
  display: grid;
  gap: 3px;
}

.advertise-submit-bar span {
  color: var(--muted);
  font-size: 12px;
}

.advertise-submit-bar button {
  min-width: 170px;
  margin-left: auto;
}

.advertise-result-modal {
  width: min(460px, calc(100vw - 32px));
  padding: 32px;
  text-align: center;
}

.result-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  font-size: 25px;
  font-weight: 900;
}

.advertise-result-modal h3 {
  margin: 0 0 8px;
}

.advertise-result-modal p {
  margin: 0 0 20px;
  color: var(--muted);
}

.advertise-result-modal dl {
  margin: 0 0 20px;
  padding: 14px;
  border-radius: 10px;
  background: #f8f9fb;
  text-align: left;
}

.advertise-result-modal dl div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  padding: 6px 0;
}

.advertise-result-modal dt {
  color: var(--muted);
}

.advertise-result-modal dd {
  margin: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  .advertise-topbar {
    flex-wrap: wrap;
  }

  .advertise-nav {
    width: 100%;
    overflow-x: auto;
  }

  .advertise-container {
    padding-top: 32px;
  }

  .advertise-flow i {
    display: none;
  }

  .advertise-flow {
    align-items: flex-start;
    gap: 10px;
  }

  .advertise-flow span {
    flex-direction: column;
  }

  .advertise-form-card {
    padding: 0 20px;
  }

  .advertise-submit-bar {
    align-items: stretch;
    flex-direction: column;
    margin: 0 -20px;
    padding: 20px;
  }

  .advertise-submit-bar button {
    width: 100%;
    margin-left: 0;
  }
}

/* Upblog signed-in workspace refresh */
.shell {
  --workspace-border: #dce8e6;
  --workspace-shadow: 0 14px 38px rgba(20, 70, 72, 0.07);
  background:
    radial-gradient(circle at 4% 8%, rgba(45, 212, 191, 0.08), transparent 24%),
    radial-gradient(circle at 96% 26%, rgba(96, 165, 250, 0.07), transparent 27%),
    #f4f7f8;
}

.shell .topbar {
  grid-template-columns: minmax(185px, auto) minmax(480px, 1fr) auto;
  gap: 22px;
  min-height: 86px;
  padding: 13px max(28px, calc((100vw - 1240px) / 2 + 24px));
  border-bottom: 1px solid rgba(207, 224, 222, 0.9);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 28px rgba(24, 66, 70, 0.055);
  backdrop-filter: blur(18px);
}

.shell .brand {
  gap: 11px;
  min-width: 0;
}

.shell .brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  box-shadow: 0 8px 18px rgba(8, 127, 115, 0.11);
}

.shell .brand h1 {
  color: #102a2a;
  font-size: 19px;
  letter-spacing: -0.035em;
}

.shell .brand span {
  color: #839392;
  font-size: 10px;
  letter-spacing: 0.03em;
}

.shell .nav {
  gap: 5px;
  border: 0;
  border-radius: 14px;
  background: #f1f5f5;
  padding: 6px 7px;
  box-shadow: inset 0 0 0 1px #e5eceb;
}

.shell .nav button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  padding: 8px 15px;
  color: #536362;
  font-size: 13px;
  font-weight: 800;
  transition: color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.shell .nav .nav-icon {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 6px;
  color: #728380;
  background: rgba(255, 255, 255, 0.65);
  font-size: 10px;
  font-weight: 900;
}

.shell .nav .nav-icon--dot { font-size: 7px; }

.shell .nav button.active .nav-icon {
  color: #087f73;
  background: rgba(255, 255, 255, 0.92);
}

.shell .sticky-filters {
  top: 96px;
  margin: 0 0 22px;
  border: 1px solid var(--workspace-border);
  border-radius: 17px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--workspace-shadow);
}

.shell .sticky-filters .category-strip {
  margin: 0 0 10px;
}

.shell .sticky-filters .toolbar {
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.shell .nav button:hover {
  color: #0b5f58;
  background: rgba(255, 255, 255, 0.82);
}

.shell .nav button.active {
  color: #fff;
  background: linear-gradient(135deg, #0d9488, #087f73);
  box-shadow: 0 7px 16px rgba(8, 127, 115, 0.21);
  transform: translateY(-1px);
}

.shell .nav button:focus {
  outline: 0;
}

.shell .nav button:focus-visible {
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.19);
}

/* The admin workspace has more destinations than the user workspace.
   Keep every destination visible instead of hiding the last items in a
   horizontal, scrollbar-free navigation row. */
.admin-page .shell .topbar {
  grid-template-columns: minmax(160px, auto) minmax(0, 1fr) auto;
  gap: 16px;
  padding-inline: max(28px, calc((100vw - 1640px) / 2 + 24px));
}

.admin-page .shell .nav {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-wrap: nowrap;
  justify-self: stretch;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
}

.admin-page .shell .nav::-webkit-scrollbar { display: none; }
.admin-page .shell .nav button { flex: 0 0 auto; padding-inline: 12px; }

.admin-page .shell .top-actions {
  grid-column: 3;
  grid-row: 1;
}

.admin-page #users th:first-child,
.admin-page #users td:first-child {
  width: 58px;
  text-align: center;
}

.admin-page #users input[type="checkbox"] {
  display: inline-block;
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  border-radius: 4px;
  padding: 0;
  accent-color: var(--brand);
  vertical-align: middle;
}

.url-review-log-panel { margin-top: 18px; }
.admin-list-filterbar {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}
.admin-list-filterbar input[type="search"] { flex: 1 1 320px; width: auto; min-width: 220px; }
.admin-list-filterbar input[type="month"],
.admin-list-filterbar select { flex: 0 0 160px; width: 160px; min-height: 36px; }
.admin-list-filterbar button { flex: 0 0 auto; min-height: 36px; }
.url-review-note {
  max-width: 320px;
  min-width: 180px;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.url-review-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 142px;
}
.url-review-actions .compact { flex: 1 1 0; }
.exposure-start-date { display: grid; gap: 3px; min-width: 92px; }
.exposure-start-date strong { color: #1f3835; font-variant-numeric: tabular-nums; }
.exposure-start-date span { color: #087f73; font-size: 11px; font-weight: 700; }

.user-point-history-modal {
  display: grid;
  width: min(1380px, calc(100vw - 48px));
  max-height: calc(100vh - 40px);
  gap: 0;
  overflow: auto;
  border: 1px solid #d8e8e5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(15, 55, 50, .22);
}

.user-point-history-modal .modal-head {
  min-height: 72px;
  padding: 16px 20px;
  background: linear-gradient(180deg, #fff, #f8fcfb);
}

.user-point-history-modal .modal-head > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.user-point-history-modal .modal-head h3 {
  color: #172b29;
  font-size: 18px;
  letter-spacing: -.025em;
}

.user-point-history-modal .modal-head .muted {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-point-history-modal .icon-button {
  flex: 0 0 auto;
  border-color: #d9e6e4;
  border-radius: 10px;
  background: #fff;
}

.user-point-history-modal .icon-button:hover {
  border-color: #a8d4ce;
  background: #f1faf8;
  color: var(--brand-strong);
}

.user-point-history-modal .user-point-history-actions {
  margin: 0;
  padding: 12px 20px 0;
}

.user-point-history-modal .user-point-history-actions button {
  min-height: 40px;
  border-radius: 10px;
  padding-inline: 18px;
}

.user-point-history-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 12px 20px 16px;
}

.user-point-history-stats > div {
  display: grid;
  gap: 5px;
  position: relative;
  overflow: hidden;
  border: 1px solid #dce8e6;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff, #f8fbfb);
  padding: 15px 16px;
  box-shadow: 0 6px 18px rgba(34, 85, 78, .045);
}

.user-point-history-stats > div::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #9ed6cf;
  content: "";
}

.user-point-history-stats > div:nth-child(2)::before { background: #73b6ea; }
.user-point-history-stats > div:nth-child(3)::before { background: #f39a9a; }
.user-point-history-stats > div:nth-child(4)::before { background: #b39be8; }

.user-point-history-modal .modal-filterbar {
  margin: 0;
  border-color: #e1ebe9;
  padding: 12px 20px;
  background: #f8fbfb;
}

.user-point-history-modal .table-wrap {
  margin: 16px 20px 0;
  border: 1px solid #dfe8e7;
  border-radius: 12px;
  background: #fff;
  overflow: auto;
}

.user-point-history-table {
  min-width: 1080px !important;
  table-layout: fixed;
}

.user-point-history-table th {
  position: sticky;
  z-index: 1;
  top: 0;
  height: 42px;
  background: #f5f8f8;
  color: #425553;
  font-size: 12px;
}

.user-point-history-table th:nth-child(1) { width: 170px; }
.user-point-history-table th:nth-child(2) { width: 140px; }
.user-point-history-table th:nth-child(3) { width: 120px; }
.user-point-history-table th:nth-child(4) { width: 34%; }
.user-point-history-table th:nth-child(5) { width: 24%; }
.user-point-history-table th:nth-child(6) { width: 100px; }

.user-point-history-table td {
  height: 54px;
  color: #293b39;
}

.user-point-history-table td:nth-child(4),
.user-point-history-table td:nth-child(5) {
  overflow-wrap: anywhere;
  white-space: normal;
  line-height: 1.5;
}

.user-point-history-table tbody tr:last-child td {
  border-bottom: 0;
}

.user-point-history-modal .table-pagination {
  margin-top: 16px;
  padding: 12px 20px;
  background: #fbfcfc;
}

.ad-generation-status-modal {
  width: min(720px, calc(100vw - 32px));
  border-radius: 16px;
}

.ad-generation-status-body {
  display: grid;
  gap: 16px;
  padding: 20px;
  background: #f7faf9;
}

.generation-progress {
  display: grid;
  gap: 12px;
  border: 1px solid #dce8e6;
  border-radius: 14px;
  background: #fff;
  padding: 16px;
}

.generation-progress > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.generation-progress strong { color: #173b37; font-size: 16px; }
.generation-progress span { color: #71817f; font-size: 12px; }
.generation-progress-track { height: 9px; overflow: hidden; border-radius: 999px; background: #e8efee; }
.generation-progress-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0f8b80, #38b8aa); transition: width .2s ease; }

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

.generation-stage {
  display: grid;
  gap: 5px;
  border: 1px solid #e0e8e7;
  border-radius: 12px;
  background: #fff;
  padding: 13px 14px;
}

.generation-stage span { color: #6e7d7b; font-size: 11px; }
.generation-stage strong { color: #223936; font-size: 18px; }
.generation-stage--running { border-color: #b9d8f1; background: #f6fbff; }
.generation-stage--script_ready { border-color: #d8c9f1; background: #fbf9ff; }
.generation-stage--image_running { border-color: #f0d09e; background: #fffaf2; }
.generation-stage--complete { border-color: #a9ded5; background: #f3fbf9; }
.generation-stage--failed { border-color: #f1bcbc; background: #fff7f7; }

@media (max-width: 620px) {
  .generation-stage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .generation-progress > div:first-child { align-items: flex-start; flex-direction: column; }
}

.user-point-history-stats span { color: var(--muted); font-size: 12px; }
.user-point-history-stats strong { font-size: 19px; }
.point-positive { color: var(--brand-strong); }
.point-negative { color: var(--danger); }
.point-deduction-inline { margin-top: 16px; }

.admin-workflow-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
  padding: 6px;
  border: 1px solid #dce6ea;
  border-radius: 14px;
  background: #edf3f4;
}

.admin-workflow-tabs button {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #667085;
  padding: 8px 12px;
  text-align: left;
}

.admin-workflow-tabs button span,
.admin-workflow-tabs button em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.admin-workflow-tabs button.active {
  border-color: #b9ded9;
  background: #fff;
  color: #075e56;
  box-shadow: 0 7px 18px rgba(15, 105, 95, .1);
}

.admin-workflow-tabs button.active span { background: var(--brand); color: #fff; }
.admin-workflow-tabs button.active em { background: #e3f7f3; color: #08776d; }

.ad-exposure-status-list {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.ad-exposure-status-card {
  overflow: hidden;
  border: 1px solid #dce6e5;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(16, 62, 58, .05);
}

.ad-exposure-status-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px 14px;
}

.ad-exposure-status-card > header > div { min-width: 0; }
.ad-exposure-status-card > header span:first-child { color: #087f73; font-size: 12px; font-weight: 800; }
.ad-exposure-status-card h4 { margin: 5px 0 4px; color: #172b29; font-size: 18px; }
.ad-exposure-status-card header p { margin: 0; color: var(--muted); font-size: 12px; }
.ad-exposure-status-card > header > .badge { flex: 0 0 auto; }

.ad-exposure-progress-summary {
  display: grid;
  gap: 9px;
  margin: 0 20px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f2f8f7;
}

.ad-exposure-progress-summary > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ad-exposure-progress-summary strong { color: #173b37; font-size: 14px; }
.ad-exposure-progress-summary span { color: #53706d; font-size: 12px; font-weight: 700; }

.ad-exposure-stage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 20px;
}

.ad-exposure-stage-grid > span {
  display: grid;
  gap: 4px;
  padding: 11px 13px;
  border: 1px solid #e2e9e9;
  border-radius: 10px;
  background: #fbfcfc;
}

.ad-exposure-stage-grid small { color: var(--muted); font-size: 11px; }
.ad-exposure-stage-grid strong { color: #243b39; font-size: 15px; }

.ad-exposure-url-details { border-top: 1px solid #e7edec; }
.ad-exposure-url-details summary { padding: 14px 20px; color: #344b49; cursor: pointer; font-size: 13px; font-weight: 800; }
.ad-exposure-url-details summary strong { margin-left: 4px; color: #087f73; }
.ad-exposure-url-details ul { display: grid; gap: 0; margin: 0; padding: 0 20px 12px; list-style: none; }
.ad-exposure-url-details li { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(320px, 1.2fr); gap: 18px; align-items: center; padding: 11px 0; border-top: 1px solid #edf1f1; }
.ad-exposure-url-details li > div { display: grid; gap: 3px; min-width: 0; }
.ad-exposure-url-details li strong { overflow: hidden; color: #263d3a; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.ad-exposure-url-details li span { color: var(--muted); font-size: 11px; }
.ad-exposure-url-details li a { overflow: hidden; color: #087f73; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.ad-exposure-url-details .ad-exposure-url-empty { display: block; color: var(--muted); font-size: 13px; }
.ad-exposure-status-card > footer { display: flex; justify-content: flex-end; gap: 7px; padding: 12px 20px 16px; }
.ad-exposure-empty { display: grid; justify-items: center; gap: 5px; padding: 44px 20px; color: var(--muted); text-align: center; }
.ad-exposure-empty strong { color: #344b49; font-size: 16px; }

.table-wrap .admin-ad-submission-table { min-width: 980px; table-layout: fixed; }
.admin-ad-submission-table th:nth-child(1) { width: 150px; }
.admin-ad-submission-table th:nth-child(2) { width: 170px; }
.admin-ad-submission-table th:nth-child(3) { width: auto; }
.admin-ad-submission-table th:nth-child(4) { width: 105px; }
.admin-ad-submission-table th:nth-child(5) { width: 140px; }
.admin-ad-submission-table th:nth-child(6) { width: 210px; }
.admin-ad-submission-table td { padding-top: 14px; padding-bottom: 14px; vertical-align: top; }
.admin-ad-submission-row:nth-child(even) { background: #fbfcfd; }
.admin-ad-submission-row:hover { background: #f2faf9; }
.ad-status-stack { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 7px; }
.ad-table-date { color: #475467; font-variant-numeric: tabular-nums; line-height: 1.55; overflow-wrap: anywhere; }
.ad-table-primary { display: grid; gap: 5px; min-width: 0; }
.ad-table-primary strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-table-primary span { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.ad-table-campaign { gap: 6px; }
.ad-table-campaign .ad-table-title { display: -webkit-box; overflow: hidden; color: #344054; font-size: 13px; white-space: normal; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.45; }
.ad-generation-request { display: grid; gap: 4px; }
.ad-generation-request strong { color: #087f73; font-size: 15px; }
.ad-generation-request span { color: var(--muted); font-size: 12px; }
.ad-project-link { display: block; max-width: 100%; overflow-wrap: anywhere; text-align: left; white-space: normal; }
.admin-ad-submission-table .row-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 6px; white-space: normal; }
.admin-ad-submission-table .row-actions .compact { width: 100%; min-height: 34px; padding: 6px 8px; white-space: normal; line-height: 1.25; }

.ad-log-table th:nth-child(1) { width: 50px; }
.ad-log-table th:nth-child(2),
.ad-log-table th:nth-child(3) { width: 100px; }
.ad-log-table th:nth-child(4) { width: 145px; }
.ad-log-table th:nth-child(5) { width: 78px; }
.ad-log-table th:nth-child(6) { width: 130px; }
.ad-log-table th:nth-child(7) { width: 185px; }
.ad-log-table th:nth-child(8) { width: 100px; }
.ad-log-table th:nth-child(9) { width: 100px; }
.ad-log-table th:nth-child(10) { width: 130px; }
.ad-log-table td { vertical-align: top; }
.ad-log-account { display: grid; gap: 4px; min-width: 0; }
.ad-log-account strong,
.ad-log-account span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-log-account span { color: var(--muted); font-size: 11px; }
.ad-log-title { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.45; }

.project-list-toolbar.admin-list-filterbar {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) 170px auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}
.project-list-toolbar.user-list-filterbar { grid-template-columns: minmax(300px, 1fr) 160px 170px auto; }
.project-list-toolbar.point-list-filterbar { grid-template-columns: minmax(260px, 1fr) 160px 160px auto auto auto; }
.project-list-toolbar.blog-approval-filterbar { grid-template-columns: minmax(300px, 1fr) 170px 170px auto; }
.project-list-toolbar.url-review-filterbar,
.project-list-toolbar.modal-filterbar { grid-template-columns: minmax(300px, 1fr) 170px auto; }
.project-list-toolbar.ad-intake-filterbar { grid-template-columns: minmax(320px, 1fr) 170px 190px auto; }
.project-list-toolbar.ad-log-filterbar { grid-template-columns: minmax(240px, 1fr) 145px 145px 155px auto auto; }
.project-list-toolbar.settlement-filterbar { grid-template-columns: minmax(300px, 1fr) 170px 170px auto; }
.project-list-toolbar.admin-list-filterbar input,
.project-list-toolbar.admin-list-filterbar select {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 42px;
  border-color: #d6e2e1;
  border-radius: 10px;
  background-color: #fff;
}
.project-list-toolbar.admin-list-filterbar button {
  min-height: 42px;
  border-radius: 10px;
  padding-inline: 16px;
  white-space: nowrap;
}
.project-list-toolbar.admin-list-filterbar input:focus,
.project-list-toolbar.admin-list-filterbar select:focus {
  outline: 0;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 139, 128, 0.1);
}

.user-point-row-actions { flex-wrap: nowrap; }
.user-point-history-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: -6px; }

@media (max-width: 1040px) {
  .admin-workflow-tabs { grid-template-columns: 1fr; }
  .project-list-toolbar.admin-list-filterbar { grid-template-columns: 1fr 1fr; }
  .project-list-toolbar.admin-list-filterbar input[type="search"] { grid-column: 1 / -1; }
  .ad-exposure-url-details li { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 620px) {
  .project-list-toolbar.admin-list-filterbar { grid-template-columns: 1fr; }
  .project-list-toolbar.admin-list-filterbar input[type="search"] { grid-column: auto; }
  .user-point-history-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .ad-exposure-stage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ad-exposure-status-card > header { flex-direction: column; }
}

.generated-manuscript-editor {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}
.generated-manuscript-editor label { display: grid; gap: 7px; color: #475467; font-size: 12px; font-weight: 800; }
.generated-manuscript-editor input,
.generated-manuscript-editor textarea { width: 100%; border-color: #d6e1e8; background: #fbfdff; line-height: 1.65; }
.generated-manuscript-editor textarea { min-height: 260px; resize: vertical; }
.generated-manuscript-actions { display: flex; justify-content: flex-end; gap: 8px; }

@media (max-width: 720px) {
  .user-point-history-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.shell .top-actions {
  flex-wrap: nowrap;
  gap: 7px;
}

.shell .user-pill {
  min-height: 40px;
  align-items: center;
  border: 1px solid #dce7e6;
  border-radius: 12px;
  padding: 8px 12px;
  background: #f8fbfb;
  box-shadow: none;
  color: #405251;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.shell .top-actions button {
  min-height: 40px;
  border-color: #dce7e6;
  border-radius: 11px;
  background: #fff;
  color: #506260;
  font-size: 12px;
  font-weight: 800;
}

.shell .top-actions button:hover {
  border-color: #9bcfc8;
  color: #087f73;
  background: #f2faf8;
}

.shell .notification-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.shell .notification-button em {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  padding: 0 5px;
  color: #fff;
  background: #ef4444;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  box-shadow: 0 3px 8px rgba(239, 68, 68, .25);
}

.notification-modal { width: min(620px, calc(100vw - 28px)); }
.notification-modal-actions { display: flex; align-items: center; gap: 8px; }
.notification-delete-all { min-height: 34px; border: 1px solid #fecaca; border-radius: 9px; padding: 0 11px; color: #b91c1c; background: #fff; font-size: 11px; font-weight: 850; cursor: pointer; }
.notification-delete-all:hover { border-color: #ef4444; color: #fff; background: #ef4444; }
.notification-list { max-height: min(620px, 70vh); overflow-y: auto; padding: 8px 20px 20px; }
.notification-item {
  position: relative;
  width: 100%;
  border-bottom: 1px solid #e8eeed;
  background: transparent;
}
.notification-item-main { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 12px; width: 100%; border: 0; padding: 16px 64px 16px 4px; color: inherit; background: transparent; font: inherit; text-align: left; cursor: pointer; }
.notification-item-content { min-width: 0; }
.notification-item-delete { position: absolute; top: 14px; right: 4px; min-height: 30px; border: 1px solid #e0e7e5; border-radius: 8px; padding: 0 9px; color: #7b8987; background: #fff; font-size: 10px; font-weight: 850; cursor: pointer; }
.notification-item-delete:hover { border-color: #fca5a5; color: #b91c1c; background: #fff7f7; }
.notification-item:hover { background: #f6faf9; }
.notification-item.unread { background: #f3fbf9; }
.notification-item-mark { width: 8px; height: 8px; margin-top: 6px; border-radius: 999px; background: #cbd5d3; }
.notification-item.unread .notification-item-mark { background: #0d9488; box-shadow: 0 0 0 4px rgba(13, 148, 136, .11); }
.notification-item strong { color: #203b38; font-size: 14px; }
.notification-item p { margin: 5px 0 7px; color: #526865; font-size: 13px; font-weight: 400; line-height: 1.55; }
.notification-item time { color: #899895; font-size: 11px; }
.notification-empty { display: grid; justify-items: center; gap: 5px; padding: 58px 16px; color: #7a8b89; text-align: center; }
.notification-empty strong { color: #344b49; font-size: 16px; }

.shell .container {
  max-width: 1440px;
  padding: 34px 24px 72px;
}

.admin-page .shell .container { max-width: 1640px; }

.admin-dashboard-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.admin-dashboard-tabs button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 62px;
  border: 1px solid #dce7e6;
  border-radius: 15px;
  padding: 11px 14px;
  color: #536866;
  background: rgba(255, 255, 255, .88);
  text-align: left;
  box-shadow: 0 8px 22px rgba(20, 70, 72, .045);
}

.admin-dashboard-tabs button > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  color: #087f73;
  background: #e9f7f4;
  font-size: 12px;
  font-weight: 900;
}

.admin-dashboard-tabs button strong { font-size: 14px; }
.admin-dashboard-tabs button em {
  min-width: 28px;
  border-radius: 999px;
  padding: 4px 8px;
  color: #667977;
  background: #edf2f1;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.admin-dashboard-tabs button.active {
  border-color: #0d9488;
  color: #fff;
  background: linear-gradient(135deg, #0d9488, #087f73);
  box-shadow: 0 12px 28px rgba(8, 127, 115, .18);
}

.admin-dashboard-tabs button.active > span,
.admin-dashboard-tabs button.active em { color: #087f73; background: #fff; }
.admin-dashboard-panel { display: none; }
.admin-dashboard-panel.active { display: block; }

.dashboard-progress-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
}

.dashboard-progress-card {
  overflow: hidden;
  border: 1px solid #dfe9e7;
  border-radius: 16px;
  background: #fff;
}

.dashboard-progress-card header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 18px 12px;
}

.dashboard-progress-card header span { color: #087f73; font-size: 11px; font-weight: 900; }
.dashboard-progress-card h4 { margin: 4px 0; color: #1d3633; font-size: 17px; }
.dashboard-progress-card header p { margin: 0; color: #7a8b89; font-size: 12px; }
.dashboard-progress-card header > strong { color: #087f73; font-size: 24px; }
.dashboard-progress-bar { height: 7px; margin: 0 18px; overflow: hidden; border-radius: 999px; background: #e9efee; }
.dashboard-progress-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #14b8a6, #087f73); }
.dashboard-progress-stages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding: 14px 18px; }
.dashboard-progress-stages span { display: grid; gap: 3px; border-radius: 11px; padding: 10px; background: #f5f8f7; }
.dashboard-progress-stages small { color: #7a8b89; font-size: 10px; }
.dashboard-progress-stages b { color: #29413e; font-size: 14px; }
.dashboard-progress-card footer { display: flex; justify-content: flex-end; padding: 0 18px 16px; }
.dashboard-progress-empty { display: grid; justify-items: center; gap: 5px; padding: 54px 20px; color: #7a8b89; text-align: center; }
.dashboard-progress-empty strong { color: #344b49; font-size: 16px; }

.shell .headline {
  align-items: center;
  margin-bottom: 22px;
  padding: 0 4px;
}

.shell .headline h2 {
  color: #142827;
  font-size: 30px;
  letter-spacing: -0.045em;
}

.shell .headline p {
  margin-top: 8px;
  color: #768886;
  font-size: 14px;
  line-height: 1.55;
}

.shell .summary-grid {
  gap: 14px;
  margin-bottom: 22px;
}

.shell .summary {
  position: relative;
  min-height: 112px;
  overflow: hidden;
  border: 1px solid var(--workspace-border);
  border-radius: 17px;
  padding: 20px;
  background: linear-gradient(145deg, #fff, #f7fbfa);
  box-shadow: var(--workspace-shadow);
}

.shell .summary::after {
  position: absolute;
  top: -34px;
  right: -28px;
  width: 98px;
  height: 98px;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.075);
  content: "";
}

.shell .summary:nth-child(2)::after { background: rgba(59, 130, 246, 0.07); }
.shell .summary:nth-child(3)::after { background: rgba(139, 92, 246, 0.07); }
.shell .summary:nth-child(4)::after { background: rgba(245, 158, 11, 0.075); }

.shell .summary span {
  color: #778785;
  font-size: 12px;
  font-weight: 750;
}

.shell .summary strong {
  position: relative;
  z-index: 1;
  margin-top: 12px;
  color: #142827;
  font-size: 28px;
  letter-spacing: -0.035em;
}

.shell .toolbar {
  gap: 10px;
  margin: 12px 0 20px;
  border: 1px solid var(--workspace-border);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 9px 26px rgba(20, 70, 72, 0.05);
}

.shell .toolbar > input,
.shell .toolbar-select,
.shell .quota-pill {
  min-height: 46px;
  height: 46px;
  border-color: #d9e5e4;
  border-radius: 11px;
  background: #f9fbfb;
}

.shell .toolbar > button {
  min-height: 46px;
  border-radius: 11px;
  padding-inline: 18px;
}

.shell input,
.shell select,
.shell textarea {
  border-color: #d9e4e3;
  border-radius: 10px;
}

.shell input:focus,
.shell select:focus,
.shell textarea:focus {
  border-color: #55b8ad;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.11);
}

.shell button.primary {
  border-color: #087f73;
  border-radius: 10px;
  background: linear-gradient(135deg, #0d9488, #087f73);
  box-shadow: 0 8px 18px rgba(8, 127, 115, 0.16);
}

.shell button.primary:hover {
  background: linear-gradient(135deg, #087f73, #0b5f58);
  transform: translateY(-1px);
}

.shell .category-strip {
  gap: 8px;
  margin-bottom: 14px;
}

.shell .category-strip button {
  min-height: 38px;
  border-color: #d8e6e4;
  border-radius: 999px;
  padding-inline: 14px;
  background: rgba(255, 255, 255, 0.9);
  color: #526563;
  font-weight: 800;
}

.shell .category-strip button.active {
  border-color: #87ccc4;
  color: #087f73;
  background: #e9f8f5;
  box-shadow: 0 5px 14px rgba(8, 127, 115, 0.09);
}

.shell .panel {
  border-color: var(--workspace-border);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--workspace-shadow);
}

.shell .panel-head {
  min-height: 62px;
  padding: 15px 19px;
  border-bottom-color: #e7eeed;
  background: linear-gradient(180deg, #fff, #fbfdfd);
}

.shell .panel-head h3 {
  color: #1b302f;
  font-size: 16px;
  letter-spacing: -0.025em;
}

.shell .panel-body {
  padding: 20px;
}

.shell .empty,
.shell .exchange-history-empty,
.shell td[colspan] {
  color: #879694;
}

.shell .empty {
  min-height: 120px;
  border: 1px dashed #cfdfdd;
  border-radius: 14px;
  background: linear-gradient(145deg, #fbfdfd, #f6faf9);
}

.shell table thead th {
  border-bottom-color: #dfe9e8;
  padding: 13px 14px;
  color: #637573;
  background: #f5f8f8;
  font-size: 11px;
  font-weight: 850;
}

.shell table tbody td {
  border-bottom-color: #e9efee;
  padding: 14px;
  color: #334745;
}

.shell table tbody tr:hover td {
  background: #f7fbfa;
}

.shell .application-status-flow {
  margin: 18px;
  border-color: #d2e6e3;
  border-radius: 14px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #f2faf8, #f8fbfb);
}

.shell .application-status-flow span b {
  box-shadow: 0 5px 12px rgba(8, 127, 115, 0.16);
}

.shell .exchange-overview-body {
  padding: 20px;
}

.shell .exchange-summary-grid {
  gap: 12px;
}

.shell .exchange-metric {
  min-height: 94px;
  border-color: #dfe9e8;
  border-radius: 14px;
  padding: 17px;
  background: linear-gradient(145deg, #fbfdfd, #f4f8f8);
}

.shell .exchange-metric--accent {
  border-color: #b9ded8;
  background: linear-gradient(145deg, #effaf8, #e5f6f3);
}

.shell .exchange-metric strong {
  font-size: 23px;
}

.shell .exchange-history-panel,
.shell .point-history-panel {
  margin-top: 18px;
}

.shell .mypage-grid {
  gap: 20px;
}

.shell .checkbox-line {
  border-color: #dfe8e7;
  border-radius: 12px;
  background: #f7faf9;
  padding: 13px 14px;
}

.shell .blog-item,
.shell .my-manuscript-item {
  border-color: #dbe7e5;
  border-radius: 15px;
  box-shadow: 0 7px 18px rgba(20, 70, 72, 0.045);
}

.shell .manuscript-card {
  border-color: #dce7e6;
  border-radius: 17px;
  box-shadow: 0 12px 28px rgba(20, 70, 72, 0.07);
}

.shell .manuscript-card:hover {
  border-color: #8ccfc7;
  box-shadow: 0 18px 38px rgba(8, 127, 115, 0.12);
  transform: translateY(-3px);
}

@media (max-width: 1080px) {
  .admin-dashboard-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-progress-list { grid-template-columns: 1fr; }

  .shell .topbar {
    grid-template-columns: minmax(170px, 1fr) auto;
    gap: 10px 16px;
    padding-inline: 22px;
  }

  .shell .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: stretch;
  }

  .shell .top-actions {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 760px) {
  .shell .topbar {
    min-height: auto;
    padding: 10px 14px 12px;
  }

  .shell .brand-mark {
    width: 38px;
    height: 38px;
  }

  .shell .brand span,
  .shell .user-pill {
    display: none;
  }

  .shell .top-actions button {
    min-height: 36px;
  }

  .shell .nav {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .shell .nav button {
    flex: 0 0 auto;
    min-height: 38px;
    padding-inline: 13px;
    font-size: 12px;
  }

  .shell .container {
    padding: 24px 14px 56px;
  }

  .admin-dashboard-tabs {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .admin-dashboard-tabs button { flex: 0 0 220px; }
  .dashboard-progress-list { padding: 12px; }
  .dashboard-progress-stages { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .shell .headline {
    margin-bottom: 18px;
  }

  .shell .headline h2 {
    font-size: 26px;
  }

  .shell .summary-grid,
  .shell .exchange-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shell .summary {
    min-height: 98px;
    padding: 16px;
  }

  .shell .summary strong {
    font-size: 24px;
  }

  .shell .toolbar {
    grid-template-columns: 1fr;
  }

  .shell .grid-2,
  .shell .mypage-grid,
  .shell .my-manuscript-layout {
    grid-template-columns: 1fr;
  }

  .shell .panel-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .shell .exchange-history-tools,
  .shell .panel-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .shell .application-status-flow {
    overflow-x: auto;
  }
}

@media (max-width: 440px) {
  .shell .summary-grid,
  .shell .exchange-summary-grid {
    grid-template-columns: 1fr;
  }

  .shell .form-grid,
  .shell .exchange-form {
    grid-template-columns: 1fr;
  }

  .shell .panel-body,
  .shell .exchange-overview-body {
    padding: 15px;
  }
}

.gathering-admin-page {
  min-height: 100vh;
  background: #f1f4f8;
}

.gathering-shell {
  width: min(1380px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 70px;
}

.gathering-header {
  display: flex;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 24px;
}

.gathering-header .eyebrow {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}

.gathering-header h1 {
  margin: 7px 0;
}

.gathering-header p {
  margin: 0;
  color: var(--muted);
}

.gathering-header-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.gathering-panel {
  overflow: hidden;
}

.gathering-panel .panel-head h2 {
  margin: 0 0 4px;
  font-size: 18px;
}

.gathering-panel .panel-head p {
  margin: 0;
}

.gathering-table {
  min-width: 1050px;
}

.logo-url-cell {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.logo-url-cell { display: flex; gap: 8px; align-items: center; }
.gathering-logo-thumb { width: 54px; height: 34px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.gathering-logo-preview { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel-soft); }
.gathering-logo-preview img { width: 110px; height: 64px; object-fit: contain; border-radius: 8px; background: #fff; }
.gathering-logo-preview div { display: grid; gap: 4px; min-width: 0; }
.gathering-logo-preview span { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gathering-logo-preview button { margin-left: auto; }

.gathering-cache-panel {
  margin-top: 16px;
  padding: 18px;
}

.gathering-cache-panel summary {
  cursor: pointer;
  font-weight: 800;
}

.gathering-cache-panel pre {
  max-height: 380px;
  overflow: auto;
  margin: 16px 0 0;
  padding: 16px;
  border-radius: 10px;
  color: #dbeafe;
  background: #111827;
  font-size: 12px;
}

.gathering-modal {
  width: min(620px, calc(100vw - 32px));
}

@media (max-width: 700px) {
  .gathering-header {
    align-items: stretch;
    flex-direction: column;
  }

  .gathering-header-actions {
    width: 100%;
    margin-left: 0;
  }

  .gathering-header-actions > * {
    flex: 1;
  }
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.project-detail-body {
  display: grid;
  gap: 18px;
  padding: 20px;
  background: #f6f8fb;
}

.project-detail-modal {
  width: min(1480px, calc(100vw - 32px));
}

.project-detail-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(620px, 1.2fr);
  align-items: stretch;
  gap: 14px;
}

.project-review-overview,
.project-publish-panel {
  border: 1px solid #dce5e4;
  border-radius: 14px;
  background: #fff;
  padding: 14px 16px;
}

.project-review-overview {
  display: grid;
  align-content: center;
  gap: 9px;
}

.project-review-overview p {
  margin: 0;
  color: #73817f;
  font-size: 12px;
}

.project-publish-panel {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 100px 140px auto auto;
  align-items: end;
  gap: 10px;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.project-publish-panel.is-ready {
  border-color: #91d2c9;
  box-shadow: 0 8px 22px rgba(15, 139, 128, .08);
}

.project-publish-heading {
  display: grid;
  align-self: center;
  gap: 4px;
}

.project-publish-heading strong {
  color: #183b37;
  font-size: 14px;
}

.project-publish-heading span {
  color: #72817f;
  font-size: 11px;
  line-height: 1.45;
}

.detail-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.stat-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 6px 10px;
  color: #475467;
  font-size: 12px;
}

.stat-chip strong {
  color: var(--text);
}

.project-item-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

.project-item-card {
  display: grid;
  min-width: 0;
  gap: 14px;
  border: 1px solid #dbe3ed;
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  padding: 17px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.project-item-card .muted {
  color: #718096;
}

.project-item-card h4 {
  display: -webkit-box;
  overflow: hidden;
  margin: 4px 0 0;
  font-size: 16px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.45;
}

.project-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.project-card-head > .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.project-card-head > .badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 14%, transparent);
}

.project-detail-modal .modal-head {
  position: sticky;
  top: 0;
  z-index: 6;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
}

.project-card-head p {
  margin: 5px 0 0;
  color: #667085;
  font-size: 13px;
}

.project-card-index {
  color: #0f8b80;
  font-size: 12px;
  font-weight: 800;
}

.project-card-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  font-size: 12px;
}

.project-card-meta span {
  display: grid;
  gap: 4px;
  border: 1px solid #e5eaf1;
  border-radius: 10px;
  background: #f8fafc;
  padding: 10px 12px;
  min-width: 0;
}

.project-card-meta small {
  color: #7a8699;
  font-size: 11px;
  font-weight: 600;
}

.project-field {
  border: 1px solid #24415f;
  border-radius: 8px;
  background: #0b1728;
  padding: 9px 10px;
  color: #fff;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-image-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 180px));
  gap: 10px;
  min-height: 120px;
}

.project-image-strip img,
.project-image-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  border: 1px solid #dbe3ed;
  border-radius: 12px;
  background: #f4f7fa;
  object-fit: cover;
}

.project-image-placeholder {
  display: grid;
  place-items: center;
  color: #7a8699;
  font-size: 11px;
}

.project-location-row,
.project-assets-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.project-item-card .project-location-row,
.project-item-card .project-assets-layout {
  align-items: stretch;
  flex-direction: column;
}

.project-item-card .project-location-row > a {
  align-self: flex-start;
}

.project-item-card .project-image-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
}

.project-item-card .project-asset-summary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
}

.project-item-card .project-asset-summary span {
  display: grid;
  justify-items: center;
  gap: 3px;
  border: 1px solid #e8edef;
  border-radius: 9px;
  padding: 8px 5px;
}

.project-item-pagination {
  border: 1px solid #dce5e4;
  border-radius: 12px;
  background: #fff;
}

@media (max-width: 1200px) {
  .project-detail-toolbar { grid-template-columns: 1fr; }
  .project-item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .project-publish-panel { grid-template-columns: 1fr 1fr; }
  .project-publish-heading { grid-column: 1 / -1; }
}

.project-location-row > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.project-location-row strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.project-assets-layout {
  align-items: flex-start;
}

.project-assets-layout .project-image-strip {
  flex: 1;
}

.project-asset-summary {
  display: grid;
  gap: 8px;
  min-width: 100px;
}

.project-asset-summary span {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #edf1f5;
  padding: 7px 0;
  color: #667085;
  font-size: 12px;
}

.project-script-details {
  border-top: 1px solid #e8edf3;
  padding-top: 14px;
}

.project-script-details summary {
  cursor: pointer;
  color: #0f6f68;
  font-size: 13px;
  font-weight: 800;
}

.project-script-preview {
  max-height: 420px;
  overflow: auto;
  border: 1px solid #e1e7ef;
  border-radius: 12px;
  background: #fbfcfe;
  padding: 16px;
  white-space: pre-wrap;
  color: #263445;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.75;
}

.clickable-project-row {
  cursor: pointer;
  transition: background-color .16s ease, box-shadow .16s ease;
}

.clickable-project-row:hover,
.clickable-project-row:focus-visible {
  outline: none;
  background: #f0fbf9;
  box-shadow: inset 3px 0 #0f8b80;
}

.panel-hint {
  color: #667085;
  font-size: 12px;
}

.project-list-toolbar,
.table-pagination,
.table-pagination > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.project-list-toolbar label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #667085;
  font-size: 12px;
}

.project-list-toolbar input {
  width: 150px;
  min-height: 36px;
}

.table-pagination {
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 12px 16px;
  color: #667085;
  font-size: 12px;
}

.table-pagination button,
.table-pagination select {
  min-height: 34px;
}

.table-pagination strong {
  min-width: 54px;
  text-align: center;
  color: var(--text);
}

.detail-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.detail-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.detail-table-head h4 {
  margin: 0;
  font-size: 15px;
}

.money {
  color: var(--brand-strong);
  font-weight: 800;
}

.negative-money {
  color: var(--danger);
}

.empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  padding: 36px;
  text-align: center;
}

.notice {
  display: none;
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  max-width: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 14px 16px;
}

.notice.active {
  display: block;
}

.notice.error {
  border-color: #fecaca;
  color: var(--danger);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 16px;
}

.table-wrap {
  overflow-x: auto;
}

.table-wrap table {
  min-width: 720px;
}

.table-wrap th,
.table-wrap td {
  white-space: nowrap;
}

.table-wrap td {
  height: 48px;
}

.table-wrap input,
.table-wrap select {
  min-width: 120px;
}

#applications table {
  min-width: 980px;
}

.applications-table th:nth-child(2),
.applications-table td:nth-child(2) {
  width: 28%;
}

.applications-table th:nth-child(3),
.applications-table th:nth-child(4),
.applications-table td:nth-child(3),
.applications-table td:nth-child(4) {
  min-width: 178px;
}

.applications-table th:last-child,
.applications-table td:last-child {
  min-width: 142px;
}

.application-cell-stack {
  display: grid;
  gap: 5px;
  line-height: 1.35;
}

.application-cell-stack small {
  color: var(--muted);
  font-size: 11px;
}

.application-cell-stack em {
  display: inline-block;
  min-width: 34px;
  margin-right: 5px;
  color: #7b8a9e;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.application-title-cell {
  white-space: normal;
}

.application-title-cell strong {
  overflow-wrap: anywhere;
}

.my-manuscript-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
  width: 100%;
  min-width: 0;
}

.my-manuscript-list-panel,
.my-manuscript-detail {
  min-height: 520px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.my-manuscript-list {
  display: grid;
  gap: 10px;
  padding: 14px;
  min-width: 0;
  max-height: calc(100vh - 250px);
  overflow-y: auto;
}

.my-manuscript-list-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 10px;
}

.my-manuscript-list-head > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.my-manuscript-list-head h3 {
  margin: 0;
  font-size: 15px;
  white-space: nowrap;
}

.my-manuscript-list-head #myManuscriptCount {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #eef5f4;
  padding: 3px 8px;
  color: var(--brand-strong);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.my-manuscript-list-head select {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 6px 30px 6px 10px;
  font-size: 12px;
}

.my-manuscript-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  min-width: 0;
  padding: 0;
  background: #fff;
  border: 1px solid #dbe5ef;
  border-radius: 12px;
  overflow: hidden;
}

.my-manuscript-item:hover {
  border-color: #0f9688;
  background: #f4fbfa;
}

.my-manuscript-select {
  display: grid;
  gap: 7px;
  width: 100%;
  min-width: 0;
  border: 0;
  border-radius: 0;
  padding: 16px 16px 8px;
  text-align: left;
  background: transparent;
}

.my-manuscript-select strong,
.my-manuscript-select small {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.my-manuscript-item strong { color: #10213d; }
.my-manuscript-item small { color: #70809a; }
.my-manuscript-rejection-summary {
  color: #b42318 !important;
  font-weight: 700;
}
.my-manuscript-review-summary {
  color: #087f73 !important;
  font-weight: 700;
}
.my-manuscript-item-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 12px 12px;
}

.my-manuscript-cancel { margin-left: auto; }

.url-entry-button {
  border-color: #a7d8d1;
  background: #eefaf8;
  color: var(--brand-strong);
  font-weight: 800;
}

.my-manuscript-url-link {
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.my-manuscript-url-link:hover { text-decoration: underline; }
.my-manuscript-url-missing { color: var(--muted); font-size: 12px; }

.my-manuscript-detail { width: 100%; padding: 22px; }

.my-manuscript-detail-head,
.my-manuscript-actions,
.manuscript-photo-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.my-manuscript-detail-head h3 { margin: 10px 0 0; font-size: 24px; }
.my-manuscript-detail-head > div:first-child { flex: 1 1 320px; min-width: 0; }
.my-manuscript-detail-head h3 { overflow-wrap: anywhere; }
.my-manuscript-actions { flex-wrap: wrap; justify-content: flex-end; }

.application-url-card {
  display: grid;
  gap: 14px;
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #bfe3dc;
  border-radius: 14px;
  background: #f0fdfa;
}

.application-url-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.application-url-card h4 { margin: 0 0 5px; }
.url-review-rejection {
  display: grid;
  gap: 5px;
  border: 1px solid #fecaca;
  border-radius: 11px;
  background: #fff7f7;
  padding: 13px 15px;
  color: #991b1b;
}
.url-review-rejection strong { font-size: 13px; }
.url-review-rejection p { margin: 0; color: #7f1d1d; line-height: 1.55; }
.url-review-rejection small { color: #b45353; }
.url-review-approved {
  display: grid;
  gap: 5px;
  border: 1px solid #b9ded9;
  border-radius: 11px;
  background: #f1faf8;
  padding: 13px 15px;
  color: #075e56;
}
.url-review-approved strong { font-size: 13px; }
.url-review-approved p { margin: 0; color: #164e48; line-height: 1.55; }
.url-review-approved small { color: #4f7e78; }
.application-url-card--missing { border-color: #e2e8f0; background: #f8fafc; }
.application-url-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.application-url-form input { width: 100%; min-width: 0; }
.field-help { margin: 0; color: #64748b; font-size: 13px; line-height: 1.55; }
.submitted-blog-url { min-width: 0; overflow-wrap: anywhere; color: var(--brand-strong); font-weight: 700; }

.manuscript-body-card,
.manuscript-photo-card {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #e1e8f0;
  border-radius: 14px;
  background: #f9fbfd;
}

.manuscript-place-card,
.manuscript-tag-card {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  border: 1px solid #c9ddd9;
  border-radius: 14px;
  padding: 18px 20px;
  background: #f2faf8;
}

.manuscript-place-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.manuscript-place-card h4,
.manuscript-tag-card h4 { margin: 3px 0 0; }
.manuscript-place-card span { color: var(--muted); font-size: 11px; font-weight: 800; }
.manuscript-place-card a { overflow-wrap: anywhere; color: var(--brand-strong); font-size: 14px; font-weight: 800; }
.manuscript-place-card p { margin: 0; color: var(--muted); font-size: 12px; }
.copy-place-button { border-color: #9fd4cc; color: var(--brand-strong); background: #fff; }
.copy-place-button:hover { border-color: var(--brand); background: #e7f7f4; }
.manuscript-tag-card { border-color: #e1e8f0; background: #f9fbfd; }
.manuscript-tag-card > div { display: flex; flex-wrap: wrap; gap: 7px; }
.manuscript-tag-card span { border-radius: 999px; padding: 6px 9px; color: var(--brand-strong); background: #e8f7f4; font-size: 12px; font-weight: 800; }

.manuscript-body-card h4,
.manuscript-photo-card h4 { margin: 0 0 12px; }

.manuscript-body-card pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font: inherit;
  line-height: 1.85;
  color: #263750;
  max-width: 100%;
  overflow-x: auto;
}

.manuscript-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.manuscript-photo-grid figure { margin: 0; }
.manuscript-photo-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  background: #e8eef5;
}
.manuscript-photo-grid figcaption { margin-top: 6px; color: #70809a; font-size: 12px; }
.my-manuscript-meta { margin-top: 18px; color: #7b8799; font-size: 13px; }

@media (max-width: 1100px) {
  .my-manuscript-layout { grid-template-columns: 1fr; }
  .my-manuscript-list-panel { min-height: auto; }
  .my-manuscript-list { max-height: 380px; }
  .manuscript-photo-grid { grid-template-columns: 1fr; }
  .my-manuscript-detail-head { align-items: flex-start; flex-direction: column; }
  .application-url-form { grid-template-columns: 1fr; }
}

#applicationRows td {
  height: 48px;
}

.blog-cell {
  min-width: 150px;
}

.blog-cell strong,
.blog-cell span {
  display: block;
}

.blog-cell span {
  max-width: 210px;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.action-cell {
  width: auto;
  min-width: 142px;
  text-align: right;
}

.table-action-slot {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-width: 132px;
  min-height: 26px;
}

.table-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  white-space: nowrap;
}

.admin-note-input {
  min-width: 160px;
}

.status-accepted {
  color: var(--warn);
  font-weight: 700;
}

.status-submitted {
  color: #7c3aed;
  font-weight: 700;
}

.status-completed,
.status-processed {
  color: var(--ok);
  font-weight: 700;
}

.status-expired,
.status-cancelled,
.status-rejected {
  color: var(--danger);
  font-weight: 700;
}

.status-requested {
  color: var(--warn);
  font-weight: 700;
}

.muted {
  color: var(--muted);
}

.right {
  text-align: right;
}

@media (max-width: 980px) {
  .auth-card {
    grid-template-columns: 1fr;
  }

  .topbar,
  .headline {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .brand,
  .top-actions,
  .nav {
    width: 100%;
  }

  .nav {
    justify-self: stretch;
  }

  .top-actions {
    justify-content: space-between;
    justify-self: stretch;
  }

  .account-select {
    width: 100%;
  }

  .top-actions button {
    flex: 0 0 auto;
  }

  .summary-grid,
  .manuscript-grid,
  .project-item-grid,
  .grid-2,
  .grid-3,
  .exchange-workspace,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .exchange-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbar,
  .admin-toolbar,
  .project-detail-toolbar,
  .form-grid,
  .exchange-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 18px 14px 42px;
  }

  .sticky-filters {
    position: static;
    margin: 0 0 16px;
    padding: 0;
    border-bottom: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .topbar {
    padding: 14px;
  }

  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .panel-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .month-filter input {
    width: 132px;
  }

  .exchange-form .right {
    text-align: left;
  }

  .exchange-form button {
    width: 100%;
  }

  .exchange-history-panel .panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .exchange-history-tools {
    justify-content: space-between;
    width: 100%;
  }

  .point-history-panel .exchange-history-tools {
    justify-content: space-between;
    width: 100%;
  }

  .exchange-history-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .exchange-history-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

}

/* Advertiser portal visual system */
.advertise-page {
  --ad-purple: #6d28d9;
  --ad-purple-dark: #5b21b6;
  --ad-purple-soft: #f5f3ff;
  --ad-navy: #172033;
  --ad-line: #dde3ed;
  --ad-muted: #69758a;
  --brand: #6d28d9;
  --brand-strong: #5b21b6;
  --primary: #6d28d9;
  background: #f4f6fa;
}

.advertise-page button,
.advertise-page input,
.advertise-page select,
.advertise-page textarea {
  border-radius: 9px;
}

.advertise-page input,
.advertise-page select {
  min-height: 44px;
}

.advertise-page textarea {
  border-color: var(--ad-line);
  line-height: 1.6;
}

.advertise-page input:focus,
.advertise-page select:focus,
.advertise-page textarea:focus {
  border-color: #a78bfa;
  box-shadow: 0 0 0 3px rgba(109, 40, 217, 0.11);
}

.advertise-page button.primary {
  border-color: var(--ad-purple);
  background: var(--ad-purple);
}

.advertise-page button.primary:hover {
  border-color: var(--ad-purple-dark);
  background: var(--ad-purple-dark);
}

.advertise-page .panel {
  border-color: var(--ad-line);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(23, 32, 51, 0.035);
}

.advertise-page .advertiser-app-shell:not(.hidden) {
  grid-template-columns: 224px minmax(0, 1fr);
}

.advertise-page .advertiser-sidebar {
  padding: 20px 14px;
  background: #182238;
  box-shadow: 8px 0 28px rgba(15, 23, 42, 0.09);
}

.advertise-page .advertiser-sidebar-brand {
  margin-bottom: 8px;
  padding: 4px 8px 20px;
}

.advertise-page .advertiser-sidebar-nav {
  gap: 7px;
}

.advertise-page .advertiser-sidebar-nav button,
.advertise-page .advertiser-sidebar-footer button {
  min-height: 44px;
  border-radius: 9px;
  padding-inline: 13px;
}

.advertise-page .advertiser-sidebar-nav button:hover {
  background: rgba(124, 58, 237, 0.16);
}

.advertise-page .advertiser-sidebar-nav button.active {
  background: linear-gradient(90deg, rgba(109, 40, 217, 0.52), rgba(109, 40, 217, 0.3));
  box-shadow: inset 3px 0 #a78bfa;
}

.advertise-page .advertise-workspace-header {
  position: sticky;
  z-index: 15;
  top: 0;
  min-height: 68px;
  padding: 11px clamp(20px, 3vw, 38px);
  background: rgba(255, 255, 255, 0.94);
}

.advertise-page .advertise-workspace-header .user-pill {
  border: 1px solid #e0e5ee;
  border-radius: 999px;
  padding: 8px 13px;
  color: #445066;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.advertise-page .advertise-container {
  width: min(1240px, calc(100% - 48px));
  padding: 42px 0 72px;
}

.advertise-page .advertise-hero {
  margin-bottom: 22px;
  text-align: left;
}

.advertise-page .advertise-hero h2 {
  margin: 7px 0 6px;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.25;
}

.advertise-page .advertise-hero .eyebrow,
.advertise-page .advertiser-page-heading > div > span {
  color: var(--ad-purple);
}

.advertise-page .advertise-flow {
  justify-content: flex-start;
  margin-top: 22px;
  border: 1px solid #e4e1f2;
  border-radius: 12px;
  padding: 13px 16px;
  background: #faf9ff;
}

.advertise-page .advertise-flow strong,
.advertise-page .section-number {
  background: var(--ad-purple);
}

.advertise-page .advertise-form-card {
  padding: 0 clamp(22px, 3vw, 38px);
}

.advertise-page .advertise-form-card .ad-form-section {
  padding: 30px 0;
}

.advertise-page .advertise-form-card .ad-form-section + .ad-form-section {
  border-top: 1px solid #e8ecf3;
}

.advertise-page .advertise-form-card .ad-form-section-head {
  margin-bottom: 20px;
}

.advertise-page .advertise-form-card label,
.advertise-page .advertiser-account-form label,
.advertise-page .advertiser-profile-form label {
  gap: 8px;
  color: #536176;
  font-size: 12px;
  font-weight: 800;
}

.advertise-page .place-url-guide {
  flex-wrap: wrap;
  border: 1px solid #ddd6fe;
  color: #514568;
  background: #f8f7ff;
}

.advertise-page .place-url-guide code {
  color: #5b21b6;
  background: #fff;
}

.advertise-daily-plan {
  display: grid;
  gap: 5px;
  border: 1px solid #c7ddd9;
  border-radius: 12px;
  padding: 15px 17px;
  color: #42605c;
  background: #f2faf8;
}

.advertise-daily-plan strong { color: #087f73; font-size: 14px; }
.advertise-daily-plan span { font-size: 12px; line-height: 1.55; }
.advertise-daily-plan.error { border-color: #fecaca; color: #991b1b; background: #fff7f7; }
.advertise-daily-plan.error strong { color: #b91c1c; }

.advertise-page .advertise-consent {
  min-height: 58px;
  align-items: center;
  border: 1px solid #e3e7ef;
  border-radius: 11px;
  padding: 15px 17px;
  color: #536176;
  background: #f8fafc;
  line-height: 1.55;
}

.advertise-page .advertise-consent input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: var(--ad-purple);
  flex: 0 0 auto;
}

.advertise-page .advertise-submit-bar {
  margin-inline: clamp(-38px, -3vw, -22px);
  padding: 20px clamp(22px, 3vw, 38px);
  border-radius: 0 0 14px 14px;
  background: #fbfcfe;
}

.advertise-page .advertise-submit-bar button {
  min-width: 160px;
  min-height: 44px;
}

.advertise-page .advertiser-page-heading {
  min-height: 68px;
  align-items: flex-end;
  margin-bottom: 18px;
}

.advertise-page .advertiser-page-heading h2 {
  margin: 4px 0 4px;
  font-size: clamp(26px, 3vw, 32px);
}

.advertise-page .advertiser-page-heading p {
  font-size: 13px;
  line-height: 1.55;
}

.advertise-page .advertiser-page-actions {
  gap: 8px;
}

.advertise-page .advertiser-page-actions label {
  gap: 6px;
}

.advertise-page .advertiser-page-actions button {
  min-height: 44px;
}

.advertise-page .advertiser-list-card {
  border-radius: 13px;
}

.advertise-page .advertiser-table {
  table-layout: auto;
}

.advertise-page .advertiser-table th {
  height: 46px;
  padding: 12px 15px;
  color: #59667a;
  background: #f7f8fb;
  font-weight: 800;
}

.advertise-page .advertiser-table td {
  height: 58px;
  padding: 13px 15px;
  color: #374256;
}

.advertise-page .advertiser-table tbody tr:hover td {
  background: #faf9ff;
}

.advertise-page #advertiserSectionReceived .advertiser-table,
.advertise-page #advertiserSectionUsers .advertiser-table {
  min-width: 940px;
}

.advertise-page #advertiserSectionReceived .advertiser-table {
  min-width: 1180px;
}

.advertise-page #advertiserSectionLogs .advertiser-table,
.advertise-page #advertiserSectionReview .advertiser-table {
  min-width: 820px;
}

.advertise-page .ad-table-action {
  min-height: 34px;
  border-color: #d6ddea;
  padding: 6px 10px;
  font-size: 12px;
}

.advertise-page .ad-table-action:hover {
  border-color: #c4b5fd;
  color: #5b21b6;
  background: #f8f7ff;
}

.advertise-page .ad-table-action--extend {
  border-color: var(--ad-purple);
  color: #fff;
  background: var(--ad-purple);
}

.advertise-page .ad-table-action--extend:hover {
  border-color: var(--ad-purple-dark);
  color: #fff;
  background: var(--ad-purple-dark);
}

.advertise-page .ad-table-action--edit {
  border-color: #93c5fd;
  color: #1d4ed8;
  background: #eff6ff;
}

.advertise-page .ad-table-action--edit:hover {
  border-color: #3b82f6;
  color: #fff;
  background: #2563eb;
}

.advertise-page .ad-table-action--assets {
  border-color: #c4b5fd;
  color: #5b21b6;
  background: #f5f3ff;
}

.advertise-page .ad-table-action--assets:hover {
  border-color: #7c3aed;
  color: #fff;
  background: #7c3aed;
}

.advertise-page .ad-table-status--waiting {
  color: #a16207;
  background: #fef3c7;
}

.advertise-page .ad-table-status--processing {
  color: #6d28d9;
  background: #ede9fe;
}

.advertise-page .ad-table-status--review_pending {
  color: #9a3412;
  background: #ffedd5;
}

.advertise-page .ad-table-status--completed {
  color: #047857;
  background: #d1fae5;
}

.advertise-page .ad-table-status--failed {
  color: #b91c1c;
  background: #fee2e2;
}

.advertise-page .advertiser-account-heading-actions button {
  min-height: 40px;
  border-color: #c4b5fd;
  color: #5b21b6;
  background: #fff;
}

.advertise-page .advertiser-account-heading-actions > span {
  color: #7a8699;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.advertise-page .advertiser-account-heading-actions button:hover {
  color: #fff;
  background: var(--ad-purple);
}

.advertise-page .advertiser-profile-card {
  width: 100%;
  max-width: none;
  padding: 30px;
}

.advertise-page .advertiser-profile-form {
  max-width: none;
}

.advertise-page .modal {
  border: 0;
  border-radius: 15px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.24);
}

.advertise-page .modal-head {
  min-height: 64px;
  padding: 15px 20px;
}

.advertise-page .modal-head > button {
  display: grid;
  width: 34px;
  min-height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  padding: 0;
  color: #738096;
  background: #f3f5f8;
  font-size: 20px;
}

.advertise-page .advertiser-account-form {
  padding: 24px;
}

.advertise-page .advertiser-account-form-actions,
.advertise-page .advertiser-profile-actions {
  gap: 8px;
}

.advertise-page .lookup-summary div {
  border: 1px solid #e8eaf1;
  background: #fafbfc;
}

.submission-kind {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
}

.submission-kind--new {
  color: #1d4ed8;
  background: #dbeafe;
}

.submission-kind--extension {
  color: #6d28d9;
  background: #ede9fe;
}

.advertiser-submission-detail-modal {
  width: min(980px, calc(100vw - 32px));
}

.advertiser-submission-detail-body {
  display: grid;
  gap: 16px;
  background: #f7f8fb;
}

.submission-detail-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.submission-detail-summary > div {
  display: grid;
  align-content: start;
  gap: 5px;
  min-height: 82px;
  border: 1px solid #e2e6ee;
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}

.submission-detail-summary span,
.submission-detail-summary small {
  color: #7a8698;
  font-size: 11px;
}

.submission-detail-summary strong {
  overflow-wrap: anywhere;
  color: #263248;
  font-size: 14px;
}

.submission-detail-section {
  border: 1px solid #e2e6ee;
  border-radius: 14px;
  padding: 20px;
  background: #fff;
}

.submission-detail-section h4 {
  margin: 0 0 16px;
  color: #222d40;
  font-size: 15px;
}

.submission-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border-top: 1px solid #eef0f4;
  border-left: 1px solid #eef0f4;
}

.submission-detail-grid > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  min-height: 64px;
  border-right: 1px solid #eef0f4;
  border-bottom: 1px solid #eef0f4;
}

.submission-detail-grid dt,
.submission-detail-grid dd {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 11px 13px;
}

.submission-detail-grid dt {
  color: #69758a;
  background: #f8f9fb;
  font-size: 12px;
  font-weight: 800;
}

.submission-detail-grid dd {
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  overflow-wrap: anywhere;
  color: #303b4e;
  font-size: 13px;
}

.submission-detail-grid dd span {
  margin-top: 3px;
  color: #8893a4;
  font-size: 11px;
}

.submission-detail-block,
.submission-detail-link {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid #eef0f4;
}

.submission-detail-block > span,
.submission-detail-link > span {
  color: #69758a;
  font-size: 12px;
  font-weight: 800;
}

.submission-detail-block p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #344054;
  font-size: 13px;
  line-height: 1.65;
}

.submission-detail-required {
  margin-top: 4px;
  border: 1px solid #ddd6fe;
  border-radius: 10px;
  padding: 14px;
  background: #faf9ff;
}

.submission-detail-tokens {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.submission-detail-tokens span {
  border-radius: 999px;
  padding: 5px 9px;
  color: #5b21b6;
  background: #ede9fe;
  font-size: 11px;
  font-weight: 800;
}

.submission-detail-link a {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #4f46e5;
  font-size: 13px;
}

.submission-detail-empty {
  color: #9aa4b3;
}

.advertiser-generated-assets-modal {
  width: min(1440px, calc(100vw - 32px));
}

.advertiser-generated-assets-modal .modal-head > div {
  display: grid;
  gap: 3px;
}

.advertiser-generated-assets-modal .modal-head span {
  color: #7a8698;
  font-size: 11px;
}

.advertiser-generated-assets-body {
  display: grid;
  gap: 18px;
  background: #f5f6fa;
}

.generated-assets-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

.generated-assets-grid .generated-asset-card {
  min-width: 0;
}

.generated-assets-grid .generated-asset-card > header {
  gap: 10px;
  padding: 16px;
}

.generated-assets-grid .generated-asset-card > header strong {
  font-size: 14px;
}

.generated-assets-grid .generated-asset-script {
  max-height: 360px;
  padding: 18px;
  font-size: 12px;
  line-height: 1.75;
}

.generated-assets-grid .generated-asset-images {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 14px;
}

.generated-assets-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid #dde2eb;
  padding-top: 16px;
  color: #69758a;
  font-size: 12px;
  font-weight: 800;
}

.generated-assets-pagination > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.generated-assets-pagination button,
.generated-assets-pagination strong {
  display: inline-flex;
  min-width: 54px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d7deea;
  border-radius: 9px;
  padding: 0 11px;
  color: #445066;
  background: #fff;
  font-size: 12px;
  font-weight: 850;
}

.generated-assets-pagination button { cursor: pointer; }
.generated-assets-pagination button:disabled { opacity: .4; cursor: default; }

.generated-asset-card {
  overflow: hidden;
  border: 1px solid #e0e4ec;
  border-radius: 16px;
  background: #fff;
}

.generated-asset-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #eceef3;
  padding: 18px 20px;
}

.generated-asset-card > header > div {
  display: grid;
  gap: 5px;
}

.generated-asset-card > header span {
  color: #7c3aed;
  font-size: 11px;
  font-weight: 900;
}

.generated-asset-card > header strong {
  color: #1f2937;
  font-size: 17px;
  line-height: 1.4;
}

.generated-asset-status {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 10px;
  color: #6d28d9;
  background: #ede9fe;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.generated-asset-status--ready,
.generated-asset-status--done,
.generated-asset-status--finish {
  color: #047857;
  background: #d1fae5;
}

.generated-asset-status--failed {
  color: #b91c1c;
  background: #fee2e2;
}

.generated-asset-script {
  max-height: 480px;
  overflow-y: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 24px;
  color: #344054;
  font-size: 14px;
  line-height: 1.85;
}

.generated-asset-images {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  border-top: 1px solid #eceef3;
  padding: 20px;
  background: #fafbfc;
}

.generated-asset-images a {
  display: grid;
  gap: 7px;
  color: #596579;
  font-size: 11px;
  font-weight: 800;
}

.generated-asset-images img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid #e2e6ee;
  border-radius: 11px;
  background: #eef1f5;
}

.generated-asset-card > footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  border-top: 1px solid #eceef3;
  padding: 14px 20px;
  color: #69758a;
  background: #fafbfc;
  font-size: 12px;
}

.generated-asset-card > footer strong {
  color: #354052;
}

.generated-asset-waiting,
.generated-asset-empty,
.generated-asset-image-empty {
  display: grid;
  place-items: center;
  gap: 7px;
  min-height: 150px;
  padding: 24px;
  color: #8a94a5;
  text-align: center;
}

.generated-asset-waiting strong,
.generated-asset-empty strong {
  color: #4b5565;
}

.generated-asset-image-empty {
  min-height: 72px;
  border-top: 1px solid #eceef3;
  background: #fafbfc;
}

.generated-asset-empty--error strong {
  color: #b91c1c;
}

@media (max-width: 1100px) {
  .generated-assets-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .generated-assets-grid {
    grid-template-columns: 1fr;
  }

  .generated-asset-images {
    grid-template-columns: 1fr;
  }

  .generated-asset-card > header {
    align-items: stretch;
    flex-direction: column;
  }

  .generated-asset-status {
    justify-self: start;
  }
}

/* Advertiser intake — focused request flow */
.advertise-page #advertiserSectionIntake {
  max-width: 1120px;
  margin: 0 auto;
}

.advertise-page #advertiserSectionIntake .advertise-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 44px);
  color: #fff;
  background:
    radial-gradient(circle at 88% 12%, rgba(167, 139, 250, 0.38), transparent 26%),
    radial-gradient(circle at 72% 112%, rgba(59, 130, 246, 0.28), transparent 34%),
    linear-gradient(135deg, #172033 0%, #312e81 58%, #5b21b6 115%);
  box-shadow: 0 22px 56px rgba(35, 31, 86, 0.2);
}

.advertise-page #advertiserSectionIntake .advertise-hero::after {
  position: absolute;
  right: -54px;
  bottom: -96px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(255, 255, 255, 0.035), 0 0 0 72px rgba(255, 255, 255, 0.025);
  content: "";
  pointer-events: none;
}

.advertise-page #advertiserSectionIntake .eyebrow {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 5px 11px;
  color: #ede9fe;
  background: rgba(255, 255, 255, 0.09);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.advertise-page #advertiserSectionIntake .advertise-hero h2 {
  position: relative;
  z-index: 1;
  margin: 14px 0 7px;
  color: #fff;
  font-size: clamp(28px, 3.5vw, 42px);
  letter-spacing: -0.04em;
}

.advertise-page #advertiserSectionIntake .advertise-hero > p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #d9d8ed;
  font-size: 14px;
}

.advertise-page #advertiserSectionIntake .advertise-flow {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: 100%;
  max-width: none;
  gap: 10px;
  margin-top: 28px;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(10, 16, 35, 0.24);
  backdrop-filter: blur(10px);
}

.advertise-page #advertiserSectionIntake .advertise-flow span {
  display: grid;
  grid-template-columns: 28px minmax(0, auto);
  grid-template-rows: auto auto;
  column-gap: 8px;
  row-gap: 2px;
  align-items: center;
  color: #f4f2ff;
  font-size: 12px;
  font-weight: 800;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 11px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.06);
}

.advertise-page #advertiserSectionIntake .advertise-flow span strong { grid-row: 1 / 3; }
.advertise-page #advertiserSectionIntake .advertise-flow span b { color: #fff; font-size: 12px; line-height: 1.35; }
.advertise-page #advertiserSectionIntake .advertise-flow span small { color: #c9c8e2; font-size: 10px; font-weight: 650; line-height: 1.35; }

.advertise-page #advertiserSectionIntake .advertise-flow strong {
  color: #fff;
  background: #7c3aed;
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.13);
}

.advertise-page #advertiserSectionIntake .advertise-flow i {
  display: none;
}

.advertise-page #advertiserSectionIntake .advertiser-order-context {
  max-width: 760px;
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.advertise-page #advertiserSectionIntake .advertiser-order-context span {
  color: #ddd6fe;
}

.advertise-page #advertiserSectionIntake .advertiser-order-context button {
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.advertise-page #advertiserSectionIntake .advertise-form-card {
  display: grid;
  gap: 16px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.advertise-page #advertiserSectionIntake .advertise-form-card .ad-form-section {
  border: 1px solid #e1e5ee;
  border-radius: 18px;
  padding: clamp(24px, 3vw, 34px);
  background: #fff;
  box-shadow: 0 7px 24px rgba(31, 41, 55, 0.045);
}

.advertise-page #advertiserSectionIntake .advertise-form-card .ad-form-section + .ad-form-section {
  border-top: 1px solid #e1e5ee;
}

.advertise-page #advertiserSectionIntake .ad-form-section-head {
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.advertise-page #advertiserSectionIntake .section-number {
  display: grid;
  width: 40px;
  height: 40px;
  min-width: 40px;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #7c3aed, #5b21b6);
  box-shadow: 0 8px 18px rgba(109, 40, 217, 0.22);
}

.advertise-page #advertiserSectionIntake .ad-form-section-head h3 {
  margin-bottom: 4px;
  color: #1d2738;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.advertise-page #advertiserSectionIntake .ad-form-section-head p {
  color: #7b8799;
  font-size: 12px;
}

.advertise-page #advertiserSectionIntake .place-url-guide {
  margin-bottom: 18px;
  border: 0;
  border-radius: 11px;
  padding: 11px 14px;
  color: #5b21b6;
  background: #f5f3ff;
}

.advertise-page #advertiserSectionIntake .place-url-guide code {
  border: 1px solid #e9e3ff;
  border-radius: 7px;
  padding: 5px 9px;
  box-shadow: 0 1px 2px rgba(51, 38, 97, 0.05);
}

.advertise-page #advertiserSectionIntake .ad-project-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 12px;
}

.advertise-page #advertiserSectionIntake .ad-project-grid .full {
  grid-column: 1 / -1;
}

.advertise-page #advertiserSectionIntake .project-primary-row {
  display: grid;
  grid-template-columns: minmax(190px, .7fr) minmax(210px, .75fr) minmax(300px, 1.25fr);
  gap: 16px;
  border: 1px solid #e4def8;
  border-radius: 14px;
  padding: 16px;
  background: linear-gradient(135deg, #faf9ff, #f7f8ff);
}

.advertise-page #advertiserSectionIntake .project-primary-row label {
  margin: 0;
  color: #43386b;
}

.advertise-page #advertiserSectionIntake .category-priority-field {
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
}

.advertise-page #advertiserSectionIntake .category-priority-field select {
  max-width: none;
  border-color: #cfc5f1;
  background-color: #fff;
}

.advertise-page #advertiserSectionIntake .ad-project-grid input,
.advertise-page #advertiserSectionIntake .ad-project-grid select {
  width: 100%;
  height: 48px;
  min-height: 48px;
  box-sizing: border-box;
}

.advertise-page #advertiserSectionIntake input,
.advertise-page #advertiserSectionIntake select,
.advertise-page #advertiserSectionIntake textarea {
  border-color: #dce2eb;
  background: #fcfdff;
}

.advertise-page #advertiserSectionIntake input:hover,
.advertise-page #advertiserSectionIntake select:hover,
.advertise-page #advertiserSectionIntake textarea:hover {
  border-color: #c5cddd;
}

.advertise-page #advertiserSectionIntake .advertise-consent {
  margin-top: 20px;
  border-color: #e5e7ef;
  background: #fafbfc;
}

.advertise-page #advertiserSectionIntake .advertise-submit-bar {
  position: sticky;
  z-index: 8;
  bottom: 14px;
  margin: 0;
  border: 1px solid #dfe4ed;
  border-radius: 16px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 44px rgba(26, 32, 49, 0.15);
  backdrop-filter: blur(14px);
}

.advertise-page #advertiserSectionIntake .advertise-submit-bar strong {
  color: #222c3d;
}

.advertise-page #advertiserSectionIntake .advertise-submit-bar button {
  min-width: 180px;
  border: 0;
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  box-shadow: 0 9px 20px rgba(109, 40, 217, 0.24);
}

@media (max-width: 1180px) {
  .advertise-page .advertise-container {
    width: min(1100px, calc(100% - 36px));
  }

  .advertise-page .advertise-form-card .form-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .project-card-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-assets-layout { align-items: stretch; flex-direction: column; }
  .project-asset-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .advertiser-log-toolbar-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .advertiser-log-toolbar-row--search { grid-template-columns: minmax(0, 1fr) repeat(3, auto); }

  .advertise-page .advertiser-app-shell:not(.hidden) {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .advertise-page .advertise-container {
    width: calc(100% - 32px);
    padding-top: 32px;
  }

  .advertise-page .advertiser-page-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .advertise-page .advertiser-page-actions {
    justify-content: flex-start;
  }

  .advertise-page #advertiserSectionIntake .ad-project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .advertise-page #advertiserSectionIntake .ad-project-grid .full {
    grid-column: 1 / -1;
  }

}

@media (max-width: 720px) {
  .project-list-toolbar,
  .table-pagination { align-items: stretch; flex-direction: column; }
  .project-list-toolbar input { width: 100%; }
  .project-card-meta { grid-template-columns: 1fr; }
  .project-image-strip { grid-template-columns: 1fr; }
  .project-asset-summary { grid-template-columns: 1fr; }
  .project-location-row { align-items: flex-start; flex-direction: column; }
  .advertise-page #advertiserSectionIntake .project-primary-row { grid-template-columns: 1fr; }
  .advertiser-log-toolbar-row,.advertiser-log-toolbar-row--search { grid-template-columns: 1fr 1fr; }
  .advertiser-log-toolbar-row--search > input { grid-column: 1 / -1; }
  .advertiser-log-pagination { align-items: flex-start; flex-direction: column; }
  .advertiser-log-pagination > div { width: 100%; justify-content: flex-end; }

  .advertise-page .advertise-form-card .form-grid-3,
  .advertise-page .advertiser-account-form .form-grid,
  .advertise-page .advertiser-profile-form .form-grid {
    grid-template-columns: 1fr;
  }

  .advertise-page .advertise-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .advertise-page .advertise-flow span {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  .advertise-page .advertise-flow i {
    display: none;
  }

  .advertise-page #advertiserSectionIntake .advertise-hero {
    border-radius: 18px;
    padding: 26px 20px;
  }

  .advertise-page #advertiserSectionIntake .advertise-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: none;
    padding: 10px;
  }

  .advertise-page #advertiserSectionIntake .advertise-form-card .ad-form-section {
    border-radius: 15px;
    padding: 24px 18px;
  }

  .advertise-page #advertiserSectionIntake .advertise-submit-bar {
    position: static;
    align-items: stretch;
    flex-direction: column;
  }

  .advertise-page #advertiserSectionIntake .advertise-submit-bar button {
    width: 100%;
  }

  .advertise-page #advertiserSectionIntake .ad-project-grid {
    grid-template-columns: 1fr;
  }

  .advertise-page #advertiserSectionIntake .ad-project-grid .project-main-field,
  .advertise-page #advertiserSectionIntake .ad-project-grid .full {
    grid-column: 1;
  }

  .submission-detail-summary,
  .submission-detail-grid {
    grid-template-columns: 1fr;
  }

  .submission-detail-grid > div {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .submission-detail-block,
  .submission-detail-link {
    grid-template-columns: 1fr;
    gap: 7px;
  }

}

@media (max-width: 620px) {
  .advertise-page #advertiserSectionIntake .advertise-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .advertise-page #advertiserSectionIntake .advertise-flow span:last-of-type {
    grid-column: 1 / -1;
  }

  .advertise-page .advertiser-sidebar {
    position: sticky;
    z-index: 25;
    top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .advertise-page .advertiser-sidebar-brand {
    display: none;
  }

  .advertise-page .advertiser-sidebar-nav {
    gap: 4px;
  }

  .advertise-page .advertiser-sidebar-nav button {
    min-height: 40px;
  }

  .advertise-page .advertise-workspace-header {
    position: static;
  }

  .advertise-page .advertise-container {
    width: calc(100% - 24px);
    padding: 24px 0 48px;
  }

  .advertise-page .advertise-hero p,
  .advertise-page .advertiser-page-heading p {
    font-size: 12px;
  }

  .advertise-page .advertise-form-card {
    padding-inline: 16px;
  }

  .advertise-page .advertise-form-card .ad-form-section {
    padding: 24px 0;
  }

  .advertise-page .advertise-submit-bar {
    margin-inline: -16px;
    padding: 18px 16px;
  }

  .advertise-page .advertiser-page-actions,
  .advertise-page .advertiser-account-heading-actions {
    width: 100%;
  }

  .advertise-page .advertiser-submission-search,
  .advertise-page .advertiser-submission-search input {
    width: 100%;
  }

  .advertise-page .advertiser-page-actions .month-filter {
    flex: 1;
  }

  .advertise-page .advertiser-page-actions .month-filter input {
    width: 100%;
  }

  .advertise-page .advertiser-profile-card {
    padding: 20px;
  }

  .advertise-page .advertiser-url-modal-body {
    padding: 16px;
  }

  .advertise-page .lookup-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Advertiser work log — compact template_blog layout */
.advertise-page .advertiser-list-card.advertiser-log-card {
  overflow: hidden;
  border-color: #dfe4ee;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(30, 41, 59, .06);
}

.advertise-page .advertiser-log-table thead th {
  height: 44px;
  border-bottom-color: #dbe2ec;
  padding: 11px 13px;
  color: #596579;
  background: #f6f8fc;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .015em;
}

.advertise-page .advertiser-log-table tbody td {
  height: 54px;
  padding: 12px 13px;
  color: #273449;
  vertical-align: middle;
}

.advertise-page .advertiser-log-table tbody tr:not(:last-child) td {
  border-bottom-color: #e7ebf2;
}

/* Advertiser inner pages — shared polished header */
.advertise-page .advertiser-section:not(#advertiserSectionIntake) > .advertiser-page-heading {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 112px;
  align-items: center;
  margin-bottom: 16px;
  border: 1px solid #dfe4ee;
  border-radius: 17px;
  padding: 22px 24px;
  background:
    radial-gradient(circle at 92% -20%, rgba(124, 58, 237, .12), transparent 35%),
    linear-gradient(135deg, #fff 0%, #fbfbff 70%, #f7f5ff 100%);
  box-shadow: 0 10px 30px rgba(30, 41, 59, .055);
}

.advertise-page .advertiser-section:not(#advertiserSectionIntake) > .advertiser-page-heading::before {
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, #8b5cf6, #5b21b6);
  content: "";
}

.advertise-page .advertiser-section:not(#advertiserSectionIntake) > .advertiser-page-heading > div:first-child {
  min-width: 250px;
}

.advertise-page .advertiser-section:not(#advertiserSectionIntake) > .advertiser-page-heading > div:first-child > span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  color: #6d28d9;
  background: #ede9fe;
  font-size: 9px;
  letter-spacing: .14em;
}

.advertise-page .advertiser-section:not(#advertiserSectionIntake) > .advertiser-page-heading h2 {
  margin: 8px 0 4px;
  color: #192338;
  font-size: 30px;
  letter-spacing: -.035em;
}

.advertise-page .advertiser-section:not(#advertiserSectionIntake) > .advertiser-page-heading p {
  max-width: 610px;
  color: #748095;
}

.advertise-page .advertiser-page-actions {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) 174px auto;
  align-items: end;
  gap: 10px;
  width: min(610px, 55%);
}

.advertise-page .advertiser-page-actions label {
  display: grid;
  gap: 6px;
  color: #6b778b;
  font-size: 11px;
  font-weight: 900;
}

.advertise-page .advertiser-page-actions input,
.advertise-page .advertiser-page-actions button {
  min-height: 42px;
  border-color: #d7deea;
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
}

.advertise-page .advertiser-page-actions input:focus {
  outline: 0;
  border-color: #8b5cf6;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, .1);
}

.advertise-page .advertiser-page-actions button {
  min-width: 92px;
  color: #5b21b6;
  font-weight: 900;
}

.advertise-page .advertiser-section:not(#advertiserSectionIntake) .advertiser-account-heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.advertise-page .advertiser-section:not(#advertiserSectionIntake) .advertiser-account-heading-actions > span {
  display: inline-flex;
  min-width: 0;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #e0e5ee;
  border-radius: 10px;
  padding: 0 13px;
  color: #5f6b7f;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.advertise-page .advertiser-section:not(#advertiserSectionIntake) .advertiser-account-heading-actions > span small { color: #7a8699; font-size: 10px; font-weight: 750; }
.advertise-page .advertiser-section:not(#advertiserSectionIntake) .advertiser-account-heading-actions > span strong { color: #4c1d95; font-size: 13px; }

.advertise-page .advertiser-section:not(#advertiserSectionIntake) .advertiser-account-heading-actions button {
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  padding: 0 16px;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  box-shadow: 0 7px 16px rgba(109, 40, 217, .2);
  font-weight: 900;
}

.advertise-page .advertiser-list-card:not(.advertiser-log-card) {
  overflow: hidden;
  border-color: #dfe4ee;
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(30, 41, 59, .045);
}

/* Keep pagination controls on one line. */
.advertise-page .advertiser-log-pagination > div {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.advertise-page .advertiser-log-pagination #advertiserLogPage {
  display: inline-flex;
  width: 58px;
  min-width: 58px;
  height: 36px;
  flex: 0 0 58px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e1e6ef;
  border-radius: 9px;
  color: #374151;
  background: #fff;
  line-height: 1;
  white-space: nowrap;
}

.advertise-page .advertiser-log-pagination button {
  width: 52px;
  min-width: 52px;
  flex: 0 0 52px;
}

.advertise-page .advertiser-log-pagination select {
  width: 106px;
  min-width: 106px;
  flex: 0 0 106px;
}

@media (max-width: 980px) {
  .advertise-page .advertiser-section:not(#advertiserSectionIntake) > .advertiser-page-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .advertise-page .advertiser-page-actions {
    width: 100%;
  }
}

@media (max-width: 680px) {
  .advertise-page .advertiser-section:not(#advertiserSectionIntake) > .advertiser-page-heading {
    min-height: 0;
    border-radius: 14px;
    padding: 20px 18px;
  }

  .advertise-page .advertiser-page-actions {
    grid-template-columns: 1fr;
  }

  .advertise-page .advertiser-log-pagination > div {
    width: 100%;
    justify-content: flex-end;
  }
}

/* Admin actions use borders and color only; keep every button free of drop shadows. */
.admin-page button,
.admin-page button:hover,
.admin-page button:focus,
.admin-page button:focus-visible,
.admin-page .button-like,
.admin-page .button-like:hover,
.admin-page .button-like:focus,
.admin-page .button-like:focus-visible {
  box-shadow: none !important;
}

/* Public company information and privacy policy */
.company-settings-panel .panel-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.company-settings-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #f2d28a;
  border-radius: 10px;
  padding: 13px 15px;
  color: #7c5200;
  background: #fff9e8;
}

.company-settings-notice span {
  color: #806c43;
  font-size: 13px;
}

.legal-footer {
  border-top: 1px solid #dce6e7;
  color: #617073;
  background: #f7faf9;
}

.legal-footer-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 4px 30px;
}

.legal-footer-company {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.legal-footer-title,
.legal-footer-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 16px;
}

.legal-footer-title strong {
  color: #203336;
  font-size: 15px;
}

.legal-footer-meta {
  font-size: 12px;
  line-height: 1.6;
}

.legal-footer-meta a {
  color: inherit;
  text-decoration: none;
}

.legal-footer-meta a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.legal-sample-badge {
  border-radius: 999px;
  padding: 3px 7px;
  color: #8a5a00;
  background: #fff0bd;
  font-size: 11px;
  font-weight: 800;
}

.legal-footer-links button {
  border: 0;
  padding: 5px 0;
  color: #314c50;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.legal-policy-modal {
  width: min(760px, 100%);
  max-height: calc(100vh - 40px);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
}

.privacy-policy-content {
  overflow-y: auto;
  padding: 22px 24px 10px;
  color: #45565a;
  font-size: 14px;
  line-height: 1.7;
}

.privacy-policy-content > p {
  margin: 0 0 22px;
}

.privacy-policy-content section {
  margin-bottom: 22px;
}

.privacy-policy-content h4 {
  margin: 0 0 6px;
  color: #172e32;
  font-size: 15px;
}

.privacy-policy-content section p {
  margin: 0;
}

.privacy-policy-content section p + p {
  margin-top: 10px;
}

.privacy-policy-note {
  border-left: 3px solid #8acdc6;
  padding: 9px 11px;
  color: #49666a;
  background: #f2faf8;
}

.privacy-policy-content a {
  color: var(--primary);
}

.privacy-sample-notice {
  margin-bottom: 20px;
  border: 1px solid #f2d28a;
  border-radius: 9px;
  padding: 11px 13px;
  color: #7c5200;
  background: #fff9e8;
  font-weight: 700;
}

.legal-policy-actions {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  padding: 14px 18px;
  background: #fff;
}

.settlement-privacy-link {
  min-height: auto;
  margin-left: auto;
  border: 0;
  padding: 2px 0;
  color: var(--primary);
  background: transparent;
  font-size: 12px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 680px) {
  .company-settings-notice,
  .legal-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-footer-inner {
    gap: 16px;
    padding: 24px 0;
  }

  .legal-policy-backdrop {
    padding: 10px;
  }

  .privacy-policy-content {
    padding: 18px 17px 8px;
  }
}
