/* Tiny “Also here” notice — advisory only, no locks */
.task-presence {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  max-width: 12rem;
  padding: 0.1rem 0.35rem;
  border: 1px solid #e5e7eb;
  border-radius: 0.35rem;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 0.68rem;
  font-weight: 550;
  line-height: 1.15;
  vertical-align: middle;
  white-space: nowrap;
}
.task-presence[hidden] {
  display: none !important;
}
.task-presence-dot {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: #2f6f4e;
  flex: 0 0 auto;
}
.task-presence-label {
  color: var(--muted, #6b7280);
  font-weight: 600;
}
.task-presence-names {
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  color: #374151;
  font-weight: 600;
}

/* Global Processing / Loading overlay */
.app-processing {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(31, 35, 40, 0.38);
}
.app-processing[hidden] {
  display: none !important;
}
html.is-page-loading #app-processing {
  display: flex !important;
}
.app-processing-card {
  background: #fff;
  border: 1px solid var(--line, #d1d5db);
  border-radius: 10px;
  padding: 1.35rem 1.6rem;
  min-width: min(18rem, 100%);
  max-width: 22rem;
  text-align: center;
  box-shadow: 0 10px 28px rgba(31, 41, 55, 0.14);
}
.app-processing-spinner {
  width: 1.85rem;
  height: 1.85rem;
  margin: 0 auto 0.8rem;
  border: 2.5px solid #e5e7eb;
  border-top-color: #4b5563;
  border-radius: 50%;
  animation: app-processing-spin 0.7s linear infinite;
}
.app-processing-msg {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  color: var(--brand-deep, #1f2937);
}
.app-processing-sub {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
}
@keyframes app-processing-spin {
  to { transform: rotate(360deg); }
}
html.is-app-processing,
html.is-app-processing body {
  cursor: progress;
}
html.is-app-processing body {
  overflow: hidden;
}
html.is-page-loading,
html.is-page-loading body {
  cursor: progress;
}

/* In-app confirm / alert — overlay paints colors; this is layout only */
.app-dialog {
  border: none;
  padding: 0;
  margin: auto;
  background: transparent;
  max-width: min(32rem, calc(100vw - 1.5rem));
  color: inherit;
}
.app-dialog::backdrop {
  background: rgba(15, 23, 42, 0.62);
}
.app-dialog[open] {
  z-index: 2400;
}
.app-dialog.is-fallback[open] {
  position: fixed;
  inset: 0;
  width: auto;
  height: auto;
  max-width: none;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.62);
}
.app-dialog-card {
  margin: 0;
  padding: 1.15rem 1.25rem 1.05rem;
  border: 1px solid var(--line, #d1d5db);
  border-radius: 14px;
  background: var(--panel, #fff);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
}
.app-dialog-title {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
}
.app-dialog-body {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.45;
  color: var(--muted, #4b5563);
}
.app-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
}
#swe_status.is-loading {
  color: var(--brand-deep, #1f2937);
  border-color: #cfd4da;
  background: #f3f4f6;
}

.sheet-edit-toolbar {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.sheet-history-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-width: 2.1rem;
  padding-left: 0.55rem;
  padding-right: 0.7rem;
}
.sheet-history-btn .sheet-history-glyph {
  display: block;
  font-size: 1.2rem;
  line-height: 1;
  font-weight: 700;
}
.sheet-history-text {
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}
.sheet-check input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: checkbox;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  accent-color: #374151;
  opacity: 1;
  visibility: visible;
  cursor: pointer;
}
tr.is-sheet-selected td,
li.is-sheet-selected {
  background: #eef2f6;
}
.sheet-history-form {
  display: none;
}
.sheet-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  cursor: pointer;
}
.sheet-check input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: #4b5563;
}
.swe-td-check,
.sheet-td-check {
  text-align: center;
  vertical-align: middle;
  width: 2.1rem;
}
.extracted-plain-item .sheet-check {
  flex: 0 0 auto;
}

:root {
  /* Calm grey theme — no bright blues */
  --bg: #f3f4f6;
  --bg-2: #e8eaed;
  --ink: #1f2328;
  --muted: #6b7280;
  --line: #d1d5db;
  --panel: #ffffff;
  --brand: #4b5563;
  --brand-2: #374151;
  --brand-deep: #1f2937;
  --brand-soft: #f3f4f6;
  --ok: #2f6f4e;
  --ok-soft: #e8f2ec;
  --warn: #9a6700;
  --warn-soft: #f7f0df;
  --bad: #8b2e2e;
  --bad-soft: #f7ecec;
  --shadow: 0 8px 24px rgba(31, 41, 55, 0.08);
  --radius: 12px;
  --font: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --sans: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  --grad-brand: linear-gradient(165deg, #1f2937 0%, #374151 45%, #6b7280 100%);
  --grad-btn: linear-gradient(180deg, #374151 0%, #1f2937 100%);
  --grad-page: linear-gradient(165deg, #e5e7eb 0%, #f3f4f6 40%, #ffffff 70%, #f9fafb 100%);
  --focus-ring: 0 0 0 3px rgba(31, 41, 55, 0.35);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--grad-page);
  background-attachment: fixed;
  min-height: 100vh;
}
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
.shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.mobile-bar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 80;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 4px 14px rgba(31, 41, 55, 0.18);
}
.mobile-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  min-width: 0;
}
.mobile-brand:hover { color: #fff; text-decoration: none; }
.mobile-brand span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mobile-page-title {
  margin-left: auto;
  flex: 1 1 7rem;
  min-width: 0;
  max-width: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  text-align: right;
}
.nav-toggle {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}
.nav-toggle:hover { background: rgba(255,255,255,0.2); }
.sidebar-backdrop {
  display: none;
}
.sidebar {
  background: var(--grad-brand);
  color: #f3f4f6;
  padding: 1.25rem 1rem;
  box-shadow: 4px 0 20px rgba(31, 41, 55, 0.12);
}
.brand-logo {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}
.sidebar .brand {
  font-family: var(--font);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.35rem;
  text-decoration: none;
}
.sidebar .brand:hover { color: #fff; text-decoration: none; }
.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
}
.login-brand .brand-logo {
  width: 56px;
  height: 56px;
}
.login-brand h1 { margin: 0; }
.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 2px;
}
.active-soft {
  background: var(--brand-soft) !important;
  border-color: var(--brand) !important;
  color: var(--brand-deep) !important;
  font-weight: 700;
}
.help-details {
  margin: 0 0 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.help-details > summary {
  cursor: pointer;
  list-style: none;
  padding: 0.85rem 1rem;
  font-weight: 700;
  color: var(--brand-deep);
}
.help-details > summary::-webkit-details-marker { display: none; }
.help-details > summary::after {
  content: 'Show';
  float: right;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}
.help-details[open] > summary::after { content: 'Hide'; }
.help-details-body {
  padding: 0 1rem 1rem;
  border-top: 1px solid var(--line);
}
.help-details-body .glossary.card,
.help-details-body .panel-guide {
  margin: 0.85rem 0 0;
  box-shadow: none;
  border: 1px solid var(--line);
}
.help-details-body .glossary.card:first-child,
.help-details-body .panel-guide:first-child {
  margin-top: 0.85rem;
}
.sidebar-user {
  color: #b9d0c8;
  font-size: 0.85rem;
  margin-bottom: 1.1rem;
  line-height: 1.35;
}
.sidebar-user span {
  display: block;
  color: #8fb3bd;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sidebar nav a {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  color: #e5e7eb;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  margin-bottom: 0.15rem;
  text-decoration: none;
}
.sidebar nav a:hover { background: rgba(255,255,255,0.12); color: #fff; }
.sidebar nav a.active {
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-weight: 700;
}
.sidebar .nav-label { display: block; font-size: 0.95rem; line-height: 1.2; }
.folder-with-info {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.folder-with-info > .folder {
  flex: 1 1 auto;
  height: 100%;
}
.folder-with-info > .info-tip {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 2;
}
.emails-data-folders.folders {
  align-items: stretch;
}
.sidebar .nav-hint {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.25;
  color: #a8c4ce;
  opacity: 0.95;
}
.sidebar nav a.active .nav-hint { color: #d7e8ef; }
.nav-group { margin-bottom: 0.55rem; }
.nav-group-label {
  margin: 0.75rem 0 0.3rem;
  padding: 0 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7fa3ae;
}
.nav-group-end { margin-top: 1rem; }
@media (min-width: 900px) {
  .sidebar .nav-group-end { display: none; }
}
.sidebar-role {
  color: #b9d0c8;
  font-size: 0.85rem;
  margin-bottom: 1.1rem;
  line-height: 1.35;
}
.nav-section {
  margin: 0.95rem 0 0.35rem;
  padding: 0 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7fa3ae;
}
.main { padding: 1.25rem 1.5rem 0; display: flex; flex-direction: column; min-height: 100vh; min-width: 0; }
.app-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 30;
  margin: -1.25rem -1.5rem 1rem;
  padding: 0.55rem 1.5rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.app-bar-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.app-bar-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.app-bar-user {
  color: var(--brand-2);
  font-size: 0.88rem;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-bar-account {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.app-bar-account a {
  color: var(--brand-2);
  font-size: 0.85rem;
  font-weight: 650;
  text-decoration: none;
}
.app-bar-account a:hover {
  color: var(--brand-deep);
  text-decoration: underline;
}
.app-bar-logout {
  color: var(--brand-deep) !important;
}
.project-credit,
.app-footer {
  margin-top: auto;
  margin-left: -1.5rem;
  margin-right: -1.5rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--line, #e5e7eb);
  background: #fff;
  font-size: 0.86rem;
  color: #4b5563;
  text-align: left;
  line-height: 1.4;
}
.app-footer {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.app-footer-primary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.25rem;
  align-items: baseline;
  justify-content: space-between;
}
.app-footer-who {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
  color: #4b5563;
}
.app-footer-who strong {
  color: var(--brand-deep);
  font-weight: 700;
}
.app-footer-sep { opacity: 0.45; }
.app-footer-credit {
  margin: 0;
}
.app-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 0;
}
.app-footer a,
.project-credit a {
  color: #1f2937;
  font-weight: 600;
  text-decoration: none;
}
.app-footer a:hover,
.project-credit a:hover { text-decoration: underline; }
.login-wrap .project-credit,
.login-wrap .app-footer {
  margin: 1.25rem 0 0;
  border-top: none;
  padding: 0;
  background: transparent;
  color: #4b5563;
  width: min(420px, 100%);
}
.login-wrap .app-footer-primary {
  justify-content: center;
  text-align: center;
}
.login-wrap .project-credit a,
.login-wrap .app-footer a { color: #1f2937; }
.draft-status {
  margin: 0 0 0.75rem;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 0.82rem;
}
.draft-restore-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid #d1d5db;
  background: linear-gradient(135deg, #f3f4f6 0%, #f8fafc 60%, #fff 100%);
  box-shadow: 0 6px 16px rgba(31, 41, 55, 0.06);
}
.draft-restore-banner__text {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.draft-restore-banner__text strong {
  color: #1f2937;
  font-size: 0.92rem;
}
.draft-restore-banner__text span {
  color: #4b5563;
  font-size: 0.88rem;
}
.draft-restore-banner__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 0.65rem;
}
.breadcrumbs a { color: var(--brand-2); }
.breadcrumbs .sep { opacity: 0.55; }
.breadcrumbs .current { color: var(--ink); font-weight: 600; }
.glossary { margin-bottom: 1rem; }
.glossary-title {
  font-size: 1rem;
  margin-bottom: 0.55rem;
  color: var(--brand-deep);
}
.glossary-list {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}
.glossary-list > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.65rem;
  align-items: baseline;
}
.glossary-list dt {
  margin: 0;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--brand-deep);
}
.glossary-list dd {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Page / panel help banners */
.page-purpose {
  margin: 0 0 1rem;
  padding: 0;
  border-left: 3px solid var(--brand);
}
.page-purpose > summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.6rem;
}
.page-purpose > summary::after {
  margin-left: auto;
  float: none;
}
.page-purpose-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--brand-2);
  margin-bottom: 0.35rem;
}
.page-purpose-title {
  font-size: 1.05rem;
  margin: 0 0 0.45rem;
  color: var(--brand-deep);
}
.page-purpose-what,
.page-purpose-how {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.45;
}
.page-purpose-steps {
  margin: 0.55rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}
.page-purpose-steps li { margin-bottom: 0.25rem; }

.panel-guide {
  margin: 0 0 1.15rem;
  padding: 1.1rem 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
  box-shadow: var(--shadow);
}
.panel-guide > h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  color: var(--brand-deep);
}
.panel-guide > .muted { margin-bottom: 0.85rem; }
.panel-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}
.panel-guide-card {
  padding: 0.8rem 0.9rem;
  border: 1px solid #d7e6f6;
  border-radius: 12px;
  background: #fff;
}
.panel-guide-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: var(--brand);
}
.panel-guide-card p {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--ink);
}
.panel-guide-card p:last-child { margin-bottom: 0; }
.panel-guide-flow {
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: #f0f6fc;
  border: 1px dashed #b8d0ea;
}
.panel-guide-flow h3 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
  color: var(--brand-deep);
}
.panel-guide-flow ol {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink);
}
.panel-guide-flow li { margin-bottom: 0.3rem; }

.workflow {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.65rem;
}
.workflow li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border: 1px solid #d1d5db;
  border-radius: var(--radius);
  padding: 0.75rem 0.85rem;
  box-shadow: var(--shadow);
}
.workflow-n {
  flex: 0 0 auto;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--grad-btn);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
  box-shadow: 0 3px 8px rgba(31, 41, 55, 0.25);
}
.workflow-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.workflow-body a, .workflow-body strong {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
}
.workflow-body a:hover { color: var(--brand-2); text-decoration: underline; }
.workflow-body .muted { font-size: 0.82rem; }
.form-section {
  margin: 0 0 1rem;
  padding: 0 0 0.4rem;
  border: none;
  border-bottom: 1px solid var(--line);
}
.form-section:last-of-type { border-bottom: none; margin-bottom: 0; }
.form-section legend {
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--brand);
  padding: 0;
  margin-bottom: 0.35rem;
}
.form-section .section-help {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.tld-warn {
  border: 1px solid #e8c27a;
  background: #fff8e8;
  margin-bottom: 1rem;
}
.tld-confirm {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-weight: 600;
  margin: 0.85rem 0 0.4rem;
  padding: 0.65rem 0.75rem;
  border: 1px dashed #e8c27a;
  border-radius: 10px;
  background: #fffaf0;
}
.tld-confirm input { width: auto; margin-top: 0.2rem; }
.badge.new, .badge.contacting { background: var(--brand-soft); color: var(--brand-deep); }
.badge.replied { background: #d9efe3; color: var(--ok); }
.badge.skipped, .badge.paused, .badge.archived, .badge.on_hold, .badge.cancelled { background: #e4e6eb; color: var(--muted); }
.more-actions { position: relative; display: inline-block; }
.more-actions > summary {
  list-style: none;
  cursor: pointer;
}
.more-actions > summary::-webkit-details-marker { display: none; }
.more-actions-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  min-width: 200px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 0.4rem;
  z-index: 20;
  display: grid;
  gap: 0.15rem;
}
.more-actions-menu a {
  display: block;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
}
.more-actions-menu a:hover { background: var(--bg-2); }
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
}
.topbar > div:first-child {
  min-width: min(100%, 16rem);
  flex: 1 1 18rem;
}
.topbar h1 {
  color: var(--brand-deep);
  font-size: clamp(1.28rem, 2.1vw, 1.65rem);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0 0 0.3rem;
}
.topbar .muted {
  font-size: 0.92rem;
  line-height: 1.4;
  margin: 0;
}
.topbar .actions {
  justify-content: flex-end;
  align-items: center;
  row-gap: 0.45rem;
  flex: 0 1 auto;
  max-width: 100%;
}
h1,h2,h3 { font-family: var(--font); margin: 0 0 0.4rem; color: var(--ink); }
h1 { color: var(--brand-deep); }
h2 {
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.muted { color: var(--muted); }
.card {
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.05rem 1.15rem;
  margin-bottom: 1rem;
}
.card > h2:first-child {
  margin-bottom: 0.35rem;
}
.grid { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat strong { display: block; font-size: 1.5rem; font-family: var(--font); color: var(--brand-deep); }
.btn, button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: var(--grad-btn);
  color: #fff !important;
  border: 1px solid #1f2937;
  border-radius: 10px;
  padding: 0.55rem 0.95rem;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-decoration: none !important;
  box-shadow: 0 3px 10px rgba(31, 41, 55, 0.22);
  transition: background 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease, color 0.12s ease;
}
.btn:hover {
  background: #111827;
  border-color: #111827;
}
.btn:focus-visible,
button.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 5px rgba(31, 41, 55, 0.7), 0 3px 10px rgba(31, 41, 55, 0.22);
}
.btn.secondary:focus-visible,
button.btn.secondary:focus-visible {
  box-shadow: var(--focus-ring);
}
.btn:disabled,
button.btn:disabled {
  background: #9ca3af;
  border-color: #9ca3af;
  box-shadow: none;
  color: #fff !important;
  cursor: not-allowed;
  pointer-events: none;
}
.btn.secondary {
  background: linear-gradient(180deg, #ffffff 0%, #f6f7f9 100%);
  color: var(--brand-2) !important;
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn.secondary:hover {
  background: #fff;
  border-color: #9ca3af;
}
.btn.secondary:disabled,
button.btn.secondary:disabled {
  background: #f3f4f6;
  border-color: #e5e7eb;
  color: #9ca3af !important;
}
.btn.small { padding: 0.32rem 0.65rem; font-size: 0.84rem; font-weight: 650; }
.btn.large { padding: 0.75rem 1.25rem; font-size: 1.05rem; }
.btn.block { width: 100%; text-align: center; }
.actions { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.actions-sticky {
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, rgba(243, 244, 246, 0) 0%, var(--bg-2) 28%);
  padding: 0.95rem 0 0.35rem;
  margin-top: 0.65rem;
  z-index: 2;
  border-top: 1px solid transparent;
}
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
  list-style: none;
  padding: 0;
}
.step {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}
.step .num {
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--ink);
  font-size: 0.78rem;
}
.step.active {
  border-color: var(--brand);
  color: var(--brand-deep);
  background: #eef0f3;
}
.step.done { border-color: #b7dcc8; color: var(--ok); background: var(--ok-soft); }
.panel-ok { border-color: #b7dcc8; background: #f3faf6; }
.panel-muted { border-color: var(--line); background: #f7f8fa; }
.launch-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.9rem; margin-bottom: 1rem; }
.launch-card {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.15rem;
  color: inherit;
  text-decoration: none;
  min-height: 120px;
}
.launch-card:hover { border-color: var(--brand-2); text-decoration: none; }
.launch-card h2 { font-size: 1.25rem; margin-bottom: 0.35rem; }
.launch-card p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.om-folder-cards .om-folder-count { font-size: 1.45rem; color: var(--text); font-weight: 700; }
.workflow-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0.8rem 0 0;
}
.workflow-strip .arrow { color: var(--muted); font-weight: 700; }
.empty-state {
  text-align: center;
  padding: 1.75rem 1rem;
}
.empty-state > p:first-child {
  margin: 0 0 0.45rem;
  color: var(--ink);
  font-weight: 650;
  font-size: 1.02rem;
}
.empty-state p { margin: 0 0 0.55rem; color: var(--muted); }
.empty-state .muted { font-weight: 400; }
.empty-state .actions {
  justify-content: center;
  margin-top: 0.85rem;
}
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.55rem 0.4rem; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 0.94rem; }
th { color: var(--muted); font-size: 0.82rem; }
label { display: block; font-weight: 600; margin: 0.7rem 0 0.25rem; }
input, select, textarea {
  width: 100%;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
}
input[type=checkbox], input[type=radio] { width: auto; display: inline-block; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4rem 0.9rem; }
.form-grid .full { grid-column: 1 / -1; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.7rem; align-items: end; }
.super-search label { margin-top: 0; }
.super-search-row { display: flex; gap: 0.55rem; flex-wrap: wrap; align-items: center; margin-top: 0.35rem; }
.super-search-row input {
  flex: 1 1 240px;
  font-size: 1.05rem;
  padding: 0.7rem 0.85rem;
  border: 2px solid var(--brand);
}
.grid.two-box { grid-template-columns: 1fr 1fr; }
.box-panel h2 { font-size: 1.15rem; }
.inventory-box {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.35;
  min-height: 280px;
  white-space: pre;
}
.unique-sites-preview {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.35;
  min-height: 0;
  white-space: pre;
  resize: vertical;
}
.tld-separate-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin: 0.65rem 0 0.35rem;
}
.tld-separate-status {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  flex: 1 1 100%;
}
.tld-separate-status.is-error {
  color: var(--danger, #b42318);
}
.tld-separate-workspace {
  display: grid;
  grid-template-columns: minmax(9rem, 11.5rem) minmax(0, 1fr);
  gap: 0.85rem 1rem;
  margin-top: 0.75rem;
  align-items: start;
}
@media (max-width: 720px) {
  .tld-separate-workspace {
    grid-template-columns: 1fr;
  }
}
.tld-separate-rail {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: sticky;
  top: 0.5rem;
}
.tld-rail-item {
  display: flex;
  align-items: stretch;
  gap: 0.2rem;
}
.tld-rail-item .tld-rail-btn {
  flex: 1 1 auto;
  min-width: 0;
}
.tld-rail-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius, 10px);
  padding: 0.45rem 0.65rem;
  text-align: left;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  color: inherit;
}
.tld-rail-btn:hover {
  border-color: var(--brand, #2563eb);
}
.tld-rail-btn.is-active {
  border-color: var(--brand, #2563eb);
  background: var(--brand-soft, rgba(37, 99, 235, 0.1));
  color: var(--brand, #2563eb);
}
.tld-rail-drop {
  flex: 0 0 auto;
  width: 1.7rem;
  min-height: 1.7rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line, #d1d5db);
  border-radius: 8px;
  background: #fff;
  color: #6b7280;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.tld-rail-drop:hover,
.tld-rail-drop:focus-visible {
  background: #fee2e2;
  border-color: #fecaca;
  color: #b42318;
}
.tld-separate-panel {
  min-width: 0;
}
.tld-workspace-active {
  border: 1px solid var(--line);
  border-radius: var(--radius, 12px);
  padding: 0.75rem 0.85rem 0.9rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.tld-workspace-title {
  margin: 0;
  font-size: 1.05rem;
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.tld-workspace-title .tld-count {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}
.tld-workspace-list {
  width: 100%;
  min-height: 12rem;
  /* No max-height scroll cage — page scrolls; full list stays in one place */
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.86rem;
  line-height: 1.4;
  box-sizing: border-box;
  border: 1px solid var(--line, #d1d5db);
  border-radius: 10px;
  background: #fff;
  padding: 0.2rem 0.15rem;
}
.tld-site-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.12rem 0.4rem 0.12rem 0.5rem;
  border-radius: 6px;
}
.tld-site-row:hover {
  background: #f3f4f6;
}
.tld-site-name {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tld-site-drop {
  flex: 0 0 auto;
  width: 1.7rem;
  height: 1.7rem;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.tld-site-drop:hover,
.tld-site-drop:focus-visible {
  background: #fee2e2;
  color: #b42318;
}
.tld-col-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.tld-col-actions .tld-send-form {
  display: inline-flex;
  margin: 0;
}
.tld-col-actions .btn {
  flex: 0 1 auto;
}
/* Legacy multi-column grid (unused by new workspace; keep harmless) */
.tld-separate-grid {
  display: none;
}
.tld-separate-col {
  display: none;
}
.sites-list-shell {
  outline: none;
}
.sites-list-shell.is-active .sites-list-box {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand-soft, rgba(37, 99, 235, 0.15));
}
.sites-list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-bottom: 0.65rem;
}
.sites-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-left: auto;
  align-items: center;
}
.sites-list-edit-group {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.sites-list-actions .swe-open-group {
  flex-wrap: wrap;
}
.sites-list-box {
  max-height: 22rem;
  min-height: 12rem;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.35;
  user-select: none;
}
.sites-list-row {
  padding: 0.38rem 0.7rem;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  word-break: break-all;
}
.sites-list-row:last-child { border-bottom: none; }
.sites-list-row:hover { background: var(--bg-2, #f8fafc); }
.sites-list-row.is-selected {
  background: #eef0f3;
  color: var(--brand-deep);
  font-weight: 650;
  box-shadow: inset 3px 0 0 var(--brand-2);
}
.sites-list-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
}
.sites-list-status { margin: 0.5rem 0 0; }
.sites-list-status.is-error { color: var(--bad); }
.sites-open-panel {
  margin-top: 0.65rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2, #f8fafc);
}
.sites-open-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.sites-open-panel-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  max-height: 10rem;
  overflow: auto;
}
.sites-open-link {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.88rem;
  word-break: break-all;
}
.extracted-edit-form { margin: 0; }
.extracted-edit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}
.extracted-edit-row input {
  flex: 1 1 180px;
  min-width: 140px;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.9rem;
}
.extracted-sites-table td form { margin: 0; }
.extracted-country-table td { vertical-align: middle; }
.extracted-country-table th.num,
.extracted-country-table td.num {
  text-align: right;
  width: 5.5rem;
  white-space: nowrap;
}
.extracted-country-link {
  font-weight: 650;
  color: inherit;
  text-decoration: none;
}
.extracted-country-link:hover { text-decoration: underline; }
#swe-country-table tbody tr[data-swe-country-row] {
  cursor: pointer;
}
#swe-country-table tbody tr[data-swe-country-row]:hover td {
  background: #f8fafc;
}
.swe-country-search input[type="search"],
#swe-country-search {
  width: 18rem;
  max-width: min(100%, 22rem);
}
.extracted-country-count {
  display: inline-block;
  min-width: 2rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--bg-2, #eef2ff);
  color: inherit;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
  text-decoration: none;
}
.extracted-country-count:hover { filter: brightness(0.97); }
.extracted-country-search input[type="search"] {
  width: 9.5rem;
  max-width: 38vw;
}
.extracted-country-table tr.sheet-search-hit td {
  background: #f3f4f6 !important;
}
.extracted-country-table tr.sheet-search-hit {
  outline: 2px solid #4b5563;
  outline-offset: -2px;
}
.extracted-url-search input[type="search"] {
  width: 11rem;
  max-width: 42vw;
}
.extracted-plain-list {
  list-style: decimal;
  margin: 0;
  padding: 0 0 0 2rem;
  max-height: min(70vh, 40rem);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.extracted-plain-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  padding: 0.4rem 0.75rem 0.4rem 0.25rem;
  border-bottom: 1px solid var(--line);
}
.extracted-plain-item:last-child { border-bottom: none; }
.extracted-plain-domain {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.9rem;
  word-break: break-all;
  flex: 1 1 auto;
  min-width: 0;
}
.extracted-plain-remove { margin: 0; flex: 0 0 auto; }
.extracted-plain-item.sheet-search-hit {
  background: #f3f4f6 !important;
  outline: 2px solid #4b5563;
  outline-offset: -2px;
}
.extracted-tools-form .inventory-box { min-height: 160px; }
#extracted_copy_status.is-error { color: var(--bad); }

/* Sites with emails — aligned sheet table (Site · Language · Emails · Status · Actions) */
.swe-sheet-wrap {
  margin: 0 -0.15rem;
}
.card > .swe-sheet-wrap,
.card .swe-sheet-wrap {
  margin: 0;
}
.swe-table {
  width: 100%;
  border-collapse: collapse;
}
.swe-table thead th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: #6b7280;
  padding: 0.85rem 1rem 0.7rem;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
  background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
}
.swe-table tbody td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #eef0f3;
  vertical-align: middle;
}
.swe-table tbody tr:last-child td { border-bottom: none; }
.swe-sheet-table .swe-col-site { min-width: 10rem; width: 16%; }
.swe-sheet-table .swe-col-check,
.sheet-col-check {
  width: 2.1rem;
  min-width: 2.1rem;
  max-width: 2.4rem;
  text-align: center;
  padding-left: 0.45rem;
  padding-right: 0.25rem;
}
.swe-sheet-table .swe-col-num { min-width: 2.25rem; width: 2.5rem; text-align: right; }
.swe-sheet-table .swe-col-lang { min-width: 5.5rem; width: 8%; }
.swe-sheet-table .swe-col-email { min-width: 9rem; width: 14%; }
.swe-sheet-table .swe-col-status { min-width: 6.5rem; width: 8%; }
.swe-sheet-table .swe-col-actions { min-width: 7rem; width: 10%; }
.swe-col-site { width: 28%; }
.swe-col-emails { width: auto; }
.swe-row-form { margin: 0; display: contents; }
.swe-td-site .swe-row-form { display: none; } /* hiddens live in form; keep out of layout */
.swe-td-site form.swe-row-form {
  display: block;
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 0;
}
.swe-td-site { position: relative; }
.swe-site-cell {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}
.swe-site-cell .swe-domain {
  flex: 1 1 auto;
  min-width: 0;
}
.swe-open-site {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.55rem;
  border-radius: 0.35rem;
  border: 1px solid #d1d5db;
  background: #f8fafc;
  color: #1f2937;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
}
.swe-open-site:hover,
.swe-open-site:focus {
  background: #fff;
  border-color: #9ca3af;
  color: #111827;
  outline: none;
}
.swe-open-site.is-disabled,
.swe-open-site[aria-disabled="true"] {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}
.swe-site-cell.is-invalid-site .swe-domain {
  border-color: #f0c4c0;
  background: #fff8f7;
}
.swe-open-group {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  vertical-align: middle;
}
.open-site-cell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}
.open-site-cell .cell-input,
.open-site-cell .swe-domain {
  flex: 1 1 auto;
  min-width: 0;
}
.extracted-plain-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.extracted-plain-domain {
  flex: 1 1 auto;
  min-width: 0;
}
.order-live-cell {
  flex-wrap: nowrap;
  min-width: 14rem;
}
.order-live-cell .cell-input {
  flex: 1 1 auto;
  min-width: 10rem;
}
.order-live-cell .order-open-site {
  flex: 0 0 auto;
}
.order-doc-cell {
  flex-wrap: nowrap;
  min-width: 14rem;
}
.order-doc-cell .cell-input {
  flex: 1 1 auto;
  min-width: 10rem;
}
.order-doc-cell .order-open-site {
  flex: 0 0 auto;
}
.swe-open-count {
  min-width: 6.5rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.4rem;
  background: #fff;
  font-size: 0.85rem;
  color: #111827;
}
.swe-cell-text {
  display: inline-block;
  color: #1f2937;
  font-size: 0.92rem;
  line-height: 1.35;
}
.swe-status-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 0.24rem 0.6rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid transparent;
  background: #eef0f3;
  color: #374151;
}
.swe-status-badge.is-emailed {
  background: var(--ok-soft);
  color: #2f4f35;
  border-color: #c5d9bd;
}
.swe-status-badge.is-no-email {
  background: #f4efe6;
  color: #6b4f2a;
  border-color: #e4d2a8;
}
.swe-status-badge.is-open {
  background: var(--warn-soft);
  color: #7a5c2e;
  border-color: #e5d7b8;
}
.swe-status-badge.is-archive {
  background: #f3f4f6;
  color: #6b7280;
  border-color: #e5e7eb;
}
.swe-row-grid {
  display: grid;
  grid-template-columns: minmax(10rem, 1.1fr) minmax(14rem, 2.4fr) auto;
  gap: 0.55rem 0.75rem;
  align-items: start;
  padding: 0.55rem 0.35rem;
}
.swe-site-block input,
.swe-domain {
  width: 100%;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.9rem;
  font-weight: 700;
  color: #111827;
  border: 1px solid transparent;
  background: transparent;
  padding: 0.35rem 0.4rem;
  border-radius: 0.35rem;
}
.swe-domain:hover,
.swe-domain:focus {
  border-color: #d1d5db;
  background: #fff;
  outline: none;
}
.swe-td-email .email-field input,
.swe-td-email .swe-email-field input {
  border: 1px solid transparent;
  background: transparent;
  padding: 0.35rem 1.7rem 0.35rem 0.4rem;
  border-radius: 0.35rem;
}
.swe-td-email .email-field input:hover,
.swe-td-email .email-field input:focus,
.swe-td-email .swe-email-field input:hover,
.swe-td-email .swe-email-field input:focus {
  border-color: #d1d5db;
  background: #fff;
  outline: none;
}
.swe-emails {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
}
/* Clearable email boxes (Sites with emails + Email campaign sheets) */
.email-field,
.swe-email-field {
  position: relative;
  min-width: 0;
}
.swe-emails input,
.email-field input,
.swe-email-field input,
.camp-sheet-table .email-field .camp-cell {
  width: 100%;
  font-size: 0.9rem;
  min-width: 0;
  padding-right: 1.7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.email-field-clear,
.swe-email-clear {
  position: absolute;
  top: 50%;
  right: 0.28rem;
  transform: translateY(-50%);
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  margin: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted, #6b7280);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.email-field-clear:hover,
.email-field-clear:focus-visible,
.swe-email-clear:hover,
.swe-email-clear:focus-visible {
  background: #f3f4f6;
  color: var(--bad, #b42318);
  outline: none;
}
.email-field:not(.has-value) .email-field-clear,
.email-field:not(.has-value) .swe-email-clear,
.swe-email-field:not(.has-value) .email-field-clear,
.swe-email-field:not(.has-value) .swe-email-clear,
.email-field-clear[hidden],
.swe-email-clear[hidden] {
  display: none;
}
.camp-sheet-table .email-field {
  width: 100%;
}
.swe-row-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.32rem;
  align-items: center;
  min-width: 0;
}
.swe-sheet-table .swe-row-actions .btn {
  width: auto;
  justify-content: center;
  border-radius: 8px;
  white-space: nowrap;
}
/* Checkpoint controls stay quiet; Mark emailed stays primary when unmarked. */
.swe-row-actions button[data-sheet-action="upto"],
.swe-row-actions button[data-sheet-action="clear-upto"],
.swe-row-actions button[form*="-upto-"],
.swe-row-actions button[form*="-clear-upto-"] {
  font-weight: 600;
}
/* Remove is always the destructive action — visually separated. */
.swe-row-actions button[data-sheet-action="remove"],
.swe-row-actions button[form*="-remove-"],
.swe-row-actions button[form*="remove"] {
  margin-top: 0.2rem;
  color: var(--bad) !important;
  border-color: #e5c5c5 !important;
  background: #fff !important;
  box-shadow: none;
}
.swe-row-actions button[data-sheet-action="remove"]:hover,
.swe-row-actions button[form*="-remove-"]:hover,
.swe-row-actions button[form*="remove"]:hover {
  filter: none;
  background: var(--bad-soft) !important;
  border-color: #d4a0a0 !important;
}
/* Admin campaign progress: light tint (Final has no sent state). */
.swe-table tr.swe-row-emailed > td {
  background: #f6faf7;
}
.swe-td-num {
  vertical-align: middle;
  text-align: right;
  color: #6b7280;
  font-variant-numeric: tabular-nums;
  padding-right: 0.35rem !important;
}
.swe-row-num {
  display: inline-block;
  min-width: 1.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
}
/* Team: opened via Open until an email is entered */
.swe-table tr.swe-row-opened > td {
  background: #e8f3f8;
}
.swe-table tr.swe-row-opened .swe-row-num {
  color: #0f4c5c;
}
.swe-table tr.swe-row-opened.sheet-search-hit td {
  background: #d9ebf3 !important;
}
.swe-site-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
  min-width: 0;
}
.swe-emailed-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #35553a;
  background: #d9e5db;
  padding: 0.12rem 0.4rem;
  border-radius: 3px;
  line-height: 1.2;
}
.swe-sent-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-top: 0.65rem;
}
.swe-sent-filters .btn {
  border-radius: 999px;
  box-shadow: none;
  font-weight: 650;
  padding: 0.28rem 0.78rem;
}
.swe-sent-filters .btn.secondary {
  background: #fff;
  color: var(--muted) !important;
  border-color: var(--line);
}
.swe-sent-filters .btn.secondary:hover {
  color: var(--brand-deep) !important;
  border-color: #9ca3af;
}
.swe-sent-filters a.btn:not(.secondary) {
  background: var(--brand-2);
  border-color: var(--brand-2);
  box-shadow: none;
}
.swe-sent-filters a.btn:not(.secondary):hover {
  filter: brightness(1.08);
}
.swe-clear-all-emailed {
  display: inline;
  margin: 0;
}
.swe-copy-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.swe-fetch-stamps {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
}
.swe-fetch-stamps li {
  font-size: 0.86rem;
  line-height: 1.4;
}
.swe-fetch-stamps li + li {
  margin-top: 0.15rem;
}
.swe-fetch-stamps-inline {
  display: block;
  font-size: 0.8rem;
  margin-top: 0.15rem;
}
.swe-fetch-stamps-help {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
}

/* Admin emailed checkpoint — rule card + full-width action bar per row */
.swe-checkpoint-rule {
  border-left: 3px solid #2f6f4e;
}
.swe-checkpoint-steps {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text, #1f2937);
  font-size: 0.92rem;
  line-height: 1.45;
}
.swe-checkpoint-steps li + li {
  margin-top: 0.28rem;
}
.swe-table.is-admin-checkpoint .swe-col-actions {
  min-width: 8rem;
  width: 11%;
}
.swe-checkpoint-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin: 0 0.35rem 0.55rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid #d5e0d8;
  border-radius: 0.4rem;
  background: #f4f7f5;
}
.swe-table tr.swe-row-emailed .swe-checkpoint-bar {
  background: #e7efe9;
  border-color: #c5d6c9;
}
.swe-checkpoint-status {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
  padding: 0.18rem 0.45rem;
  border-radius: 0.3rem;
  background: #e5e7eb;
}
.swe-checkpoint-status.is-done {
  color: #2f4f35;
  background: #cfe0d3;
}
.swe-checkpoint-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}
.swe-checkpoint-actions .btn {
  width: auto;
  white-space: nowrap;
}
.swe-table tr.sheet-search-hit {
  outline: 2px solid #4b5563;
  outline-offset: -2px;
}
.swe-table tr.sheet-search-hit td {
  background: #f3f4f6 !important;
}
.swe-table tr.swe-row-emailed.sheet-search-hit td {
  background: #e4ebe6 !important;
}
#swe_status {
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f3f4f6;
  color: var(--brand-deep);
  font-size: 0.9rem;
  font-weight: 600;
}
#swe_status.is-error {
  color: var(--bad);
  border-color: #e5b4b4;
  background: #fdf2f2;
}
#swe_status.is-ok {
  color: var(--ok);
  border-color: #b7d4c4;
  background: #f1f8f4;
}
.swe-add-form .form-grid {
  grid-template-columns: 1.2fr 1fr;
}
.swe-emails-add {
  margin-top: 0.35rem;
}
.swe-list-toolbar {
  align-items: flex-start;
  gap: 0.75rem 1rem;
  margin-bottom: 0.85rem;
}
.swe-row-search-wrap input[type="search"] {
  width: 14rem;
  max-width: 48vw;
}
.swe-push-note {
  margin: 0.35rem 0 0.85rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid #f0c36d;
  border-radius: var(--radius, 8px);
  background: #fff8e8;
  color: #7a4e00;
}
.swe-push-note.swe-push-blocked {
  border-color: #f0b4b0;
  background: #fff1f0;
  color: #8a1f17;
}
.swe-site-block {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.swe-no-email-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 650;
  color: #8a1f17;
  background: #fff1f0;
  border: 1px solid #f0b4b0;
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  width: fit-content;
}
.swe-row-no-email .swe-domain {
  border-color: #f0b4b0;
}
.swe-col-actions { width: 7.5rem; }
.swe-row-actions .btn[data-swe-push-btn]:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Departments */
.dept-task-table td { vertical-align: top; }
.dept-task-table .inline-form { margin: 0; display: inline; }
.dept-task-table .inline-form select,
.inline-form select[name="status"] {
  font: inherit;
  font-size: 0.88rem;
  font-weight: 650;
  padding: 0.28rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  min-height: 2.05rem;
  max-width: 100%;
}
.dept-task-mine td { background: #f7faf7; }
.dept-task-overdue td { background: #fdf2f2; }
.dept-task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.7rem;
  align-items: center;
}
.dept-task-actions .btn { margin: 0; }
.dept-task-notes {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  margin-top: 0.2rem;
}
.dept-task-created {
  font-size: 0.82rem;
  margin-top: 0.15rem;
}
.dept-due-overdue { color: var(--bad); font-weight: 650; }
.dept-add-member select { min-width: 16rem; max-width: 100%; }
.dept-task-form textarea { width: 100%; min-height: 4.5rem; }

/* Team → Delete from Sites with emails - Admin */
.swe-admin-delete-label {
  display: block;
  font-weight: 650;
  margin-bottom: 0.4rem;
}
.swe-admin-delete-search {
  position: relative;
  max-width: 40rem;
}
.swe-admin-delete-input {
  width: 100%;
  font-size: 1rem;
  padding: 0.55rem 0.7rem;
}
.swe-admin-delete-suggest {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0.25rem 0;
  position: absolute;
  left: 0;
  right: 0;
  z-index: 20;
  max-height: 18rem;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius, 8px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
.swe-admin-delete-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 0.75rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
}
.swe-admin-delete-item:hover,
.swe-admin-delete-item.is-active {
  background: #f3f4f6;
}
.swe-admin-delete-item-main {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-weight: 650;
  grid-column: 1;
}
.swe-admin-delete-item-meta {
  grid-column: 1;
  font-size: 0.85rem;
  color: var(--muted, #6b7280);
  word-break: break-word;
}
.swe-admin-delete-match {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #1d4ed8;
  background: #dbeafe;
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
}
.swe-admin-delete-panel {
  display: grid;
  grid-template-columns: minmax(10rem, 1fr) minmax(14rem, 1.4fr);
  gap: 1rem;
  margin-top: 0.5rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius, 8px);
  background: var(--bg-2, #f8fafc);
}
.swe-admin-delete-domain {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 1.05rem;
  font-weight: 700;
  word-break: break-all;
}
.swe-admin-delete-emails {
  list-style: none;
  margin: 0;
  padding: 0;
}
.swe-admin-delete-email-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
  word-break: break-all;
}
.swe-admin-delete-email-row:last-child { border-bottom: none; }
#swe-admin-delete-status.is-error { color: var(--bad); }
.camp-status.is-error { color: var(--bad); }
.camp-action-fieldset {
  margin: 0.85rem 0 0;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius, 8px);
  width: max-content;
  max-width: 100%;
  min-inline-size: 0;
  box-sizing: border-box;
}
.camp-action-choice {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.35rem 0;
  font-weight: 550;
  cursor: pointer;
}
.camp-email-pick { margin-top: 0.55rem; }
.camp-email-pick select { max-width: 100%; min-width: 14rem; }
.camp-rename-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.camp-rename-row input { flex: 1 1 14rem; min-width: 12rem; }
.camp-sheet-table {
  width: 100%;
  border-collapse: collapse;
}
.camp-sheet-table th,
.camp-sheet-table td {
  padding: 0.35rem 0.35rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}
.camp-sheet-table th {
  text-align: left;
  font-size: 0.82rem;
  color: var(--muted, #6b7280);
  font-weight: 650;
}
.camp-sheet-table .camp-cell {
  width: 100%;
  min-width: 7rem;
  font-size: 0.92rem;
  padding: 0.4rem 0.45rem;
}
.camp-sheet-table .camp-col-site { min-width: 10rem; }
.camp-sheet-table .camp-col-actions { width: 5.5rem; white-space: nowrap; }
/* Admin Email Sheet: inline (+) add row + bulk paste/import */
.camp-add-row > td {
  background: #f8fafc;
  border-bottom: 1px solid #eef0f3;
}
.camp-bulk-paste {
  min-height: 14rem;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.88rem;
  line-height: 1.45;
}
.camp-bulk-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.25rem 0;
}

/* Email campaign data hub — clearer list + create */
.camp-hub-steps {
  list-style: none;
  margin: 0 0 1.15rem;
  padding: 0.85rem 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.camp-hub-steps > li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 0;
}
.camp-hub-steps strong {
  display: block;
  font-size: 0.92rem;
  color: var(--brand-deep);
  margin-bottom: 0.15rem;
}
.camp-hub-steps span:not(.camp-hub-step-num) {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.35;
}
.camp-hub-step-num {
  flex: 0 0 auto;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: #4b5563;
  margin-top: 0.1rem;
}
.camp-hub-section-head {
  margin-bottom: 0.85rem;
}
.camp-hub-toolbar {
  margin-bottom: 0.75rem;
}
.camp-hub-empty {
  padding: 1.25rem 0.5rem;
}
.camp-hub-table td {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}
.camp-hub-project {
  font-weight: 650;
  font-size: 0.98rem;
}
.camp-hub-country {
  color: var(--muted);
  font-size: 0.92rem;
}
.camp-hub-count {
  display: inline-block;
  min-width: 1.75rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: #f3f4f6;
  border: 1px solid var(--line);
  font-weight: 650;
  font-size: 0.88rem;
  text-align: center;
}
.camp-hub-team-form {
  margin: 0;
  display: inline;
}
.camp-hub-team-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.32rem 0.78rem;
  font-size: 0.8rem;
  font-weight: 650;
  cursor: pointer;
  line-height: 1.2;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
.camp-hub-team-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}
.camp-hub-team-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #9ca3af;
  box-shadow: 0 0 0 3px rgba(156, 163, 175, 0.18);
}
.camp-hub-team-btn.is-on {
  border-color: #b7d4c4;
  background: var(--ok-soft);
  color: var(--ok);
}
.camp-hub-team-btn.is-on .camp-hub-team-dot {
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(47, 111, 78, 0.15);
}
.camp-hub-team-btn.is-off {
  border-color: #e5e7eb;
  color: var(--muted);
}
.camp-hub-row-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
  align-items: center;
}
.camp-hub-row-actions form {
  display: inline;
  margin: 0;
}
.camp-hub-create-form {
  margin-top: 0.35rem;
}
.camp-hub-field {
  margin-top: 1rem;
}
.camp-hub-field:first-of-type {
  margin-top: 0.35rem;
}
.camp-hub-field > label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 650;
  margin-bottom: 0.25rem;
}
.camp-hub-field-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: #eef0f2;
  color: var(--brand-deep);
  font-size: 0.72rem;
  font-weight: 700;
}
.camp-hub-field-hint {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.35;
  font-weight: 400;
}
.camp-hub-field select,
.camp-hub-field input[type="text"],
.camp-hub-field input:not([type]),
.camp-hub-field #new_camp_project {
  width: 100%;
}
.camp-hub-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafbfc;
  cursor: pointer;
}
.camp-hub-check input {
  margin-top: 0.2rem;
}
.camp-hub-check strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.15rem;
}
.camp-hub-check .camp-hub-field-hint {
  margin: 0;
}
.camp-hub-create-actions {
  margin-top: 1.15rem;
}
.camp-country-jump,
.sheet-country-jump {
  margin: 0 0 0.3rem;
}
.camp-country-jump .camp-sheet-title,
.sheet-country-jump .camp-sheet-title {
  margin: 0;
}
.camp-country-jump-label {
  gap: 0.4rem;
}
.camp-country-jump-select,
.camp-country-jump select,
.sheet-country-jump select {
  font: inherit;
  font-size: inherit;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--brand-deep);
  line-height: 1.25;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0.15rem 2.1rem 0.15rem 0.55rem;
  max-width: min(100%, 22rem);
  min-width: 8.5rem;
  cursor: pointer;
}
.camp-country-jump noscript {
  margin-left: 0.35rem;
}
@media (max-width: 900px) {
  .camp-hub-steps {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .camp-sheet-table .camp-cell { min-width: 6rem; }
}
@media (max-width: 700px) {
  .swe-admin-delete-panel { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .swe-row-grid {
    grid-template-columns: 1fr;
  }
  .swe-table.is-admin-checkpoint .swe-row-grid {
    grid-template-columns: 1fr;
  }
  .swe-row-actions {
    flex-direction: row;
    min-width: 0;
  }
  .swe-row-actions .btn { width: auto; }
  .swe-emails { grid-template-columns: 1fr; }
  .swe-add-form .form-grid { grid-template-columns: 1fr; }
  .swe-row-search-wrap input[type="search"] {
    width: 100%;
    max-width: none;
  }
  .swe-checkpoint-bar {
    margin-left: 0;
    margin-right: 0;
  }
  .swe-checkpoint-actions .btn {
    flex: 1 1 auto;
  }
}
.btn.danger {
  background: var(--bad);
  border-color: var(--bad);
  color: #fff !important;
  box-shadow: 0 3px 10px rgba(139, 46, 46, 0.18);
}
.btn.danger:hover {
  background: #7a2626;
  border-color: #7a2626;
}
.btn.secondary.danger {
  background: #fff;
  color: var(--bad) !important;
  border-color: #e5c5c5;
  box-shadow: none;
}
.btn.secondary.danger:hover {
  filter: none;
  background: var(--bad-soft);
  border-color: #d4a0a0;
}
.sites-list-shell kbd,
.box-panel kbd {
  display: inline-block;
  padding: 0.05rem 0.35rem;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--bg-2, #f3f4f6);
  font-size: 0.78em;
  font-family: inherit;
}
@media (max-width: 900px) {
  .grid.two-box { grid-template-columns: 1fr; }
  .sites-list-actions { margin-left: 0; width: 100%; }
}
.admin-new-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.08rem 0.4rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
  color: #9a3412;
  background: #ffedd5;
  border: 1px solid #fdba74;
}
.launch-card.has-admin-new,
.folder.has-admin-new {
  border-color: #fdba74;
}
.launch-card .admin-new-badge,
.folder .admin-new-badge {
  margin-left: 0.4rem;
}
.swe-country-new {
  display: inline-block;
  margin-left: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #9a3412;
  white-space: nowrap;
}
.swe-row-chip {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.06rem 0.35rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  vertical-align: middle;
  white-space: nowrap;
}
.swe-row-chip.is-new {
  color: #9a3412;
  background: #ffedd5;
  border: 1px solid #fdba74;
}
.swe-row-chip.is-updated {
  color: #1e3a5f;
  background: #e0effe;
  border: 1px solid #93c5fd;
}
tr.swe-row-new {
  animation: swe-row-flash 1.4s ease-out 1;
}
tr.swe-row-updated {
  animation: swe-row-flash-soft 1.2s ease-out 1;
}
@keyframes swe-row-flash {
  0% { background-color: #ffedd5; }
  100% { background-color: transparent; }
}
@keyframes swe-row-flash-soft {
  0% { background-color: #e0effe; }
  100% { background-color: transparent; }
}
.swe-filter-sep {
  margin: 0 0.15rem;
}
.badge {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  background: var(--bg-2);
}
.badge.agreed, .badge.completed, .badge.active { background: #d9efe3; color: var(--ok); }
.badge.sent, .badge.processing { background: #fff1cc; color: var(--warn); }
.badge.rejected, .badge.blocked { background: #f3d6d6; color: var(--bad); }
.badge.draft, .badge.negotiating { background: #e5e7eb; color: var(--brand-deep); }
.extract-hub-cues { display: inline-flex; flex-wrap: wrap; gap: 0.28rem; align-items: center; }
.badge.extract-large { background: var(--brand-soft); color: var(--brand-deep); }
#extract-country-search-empty { margin: 0.65rem 0 0; }
.folders { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.9rem; }
.folder {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow);
  color: inherit;
  text-decoration: none;
}
.folder:hover {
  border-color: #6b7280;
  box-shadow: 0 8px 22px rgba(31, 41, 55, 0.12);
  text-decoration: none;
}
.folder-open {
  display: inline-block;
  margin-top: auto;
  padding-top: 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-deep);
  letter-spacing: 0.01em;
}
.folder:hover .folder-open,
.folder:focus-visible .folder-open {
  text-decoration: underline;
}
.folder:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring), 0 8px 22px rgba(31, 41, 55, 0.12);
  border-color: #6b7280;
}

/* Our database — expandable markets */
.prospect-markets-toolbar { margin-bottom: 0.85rem; }
.prospect-market { padding: 0; overflow: hidden; }
.prospect-market-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 0.95rem 1.1rem;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.prospect-market.is-open .prospect-market-toggle {
  border-bottom-color: var(--line);
}
.prospect-market-toggle:hover { background: #f8fafc; }
.prospect-market-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  flex: 1 1 auto;
}
.prospect-market-meta {
  font-size: 0.9rem;
}
.prospect-market-chevron {
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.15s ease;
  opacity: 0.65;
  margin-left: 0.25rem;
}
.prospect-market.is-open .prospect-market-chevron {
  transform: rotate(45deg);
}
.prospect-market-body {
  padding: 0 1.1rem 1.1rem;
}
.prospect-folder-count {
  display: inline-block;
  min-width: 1.4rem;
  margin-right: 0.25rem;
  padding: 0.05rem 0.35rem;
  border-radius: 6px;
  background: var(--bg-2, #e8eaed);
  color: var(--brand-deep, #1f2937);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 0.88rem;
}
.prospect-folder-label {
  font-weight: 700;
}
.prospect-show-empty {
  display: inline;
  font: inherit;
  color: inherit;
  cursor: pointer;
  white-space: nowrap;
}
.prospect-show-empty input {
  margin-right: 0.2rem;
  vertical-align: -0.1em;
}
.prospect-market-body .folder {
  position: relative;
}
.prospect-market-body .folder.is-empty {
  opacity: 0.72;
  background: #f3f4f6;
}
.prospect-market-body .folder-open {
  opacity: 0.45;
  font-weight: 650;
  transition: opacity 0.12s ease;
}
.prospect-market-body .folder:hover .folder-open,
.prospect-market-body .folder:focus-visible .folder-open {
  opacity: 1;
}
.prospect-domain-td .open-site-link,
.super-search-table .open-site-link {
  margin-left: 0.4rem;
  font-weight: 650;
  white-space: nowrap;
}
#prospect-site-table tr.is-just-added td {
  background: #ecfdf3;
}
#prospect-site-table tr.is-just-added td:first-child {
  box-shadow: inset 3px 0 0 #059669;
}
.folder.sheet-search-hit {
  outline: 2px solid #4b5563;
  outline-offset: 2px;
  background: #f3f4f6;
}
#prospect-site-table tr.sheet-search-hit {
  outline: 2px solid #4b5563;
  outline-offset: -2px;
}
#prospect-site-table tr.sheet-search-hit td {
  background: #f3f4f6 !important;
}
#prospect_copy_status {
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f3f4f6;
  color: var(--brand-deep);
  font-size: 0.9rem;
  font-weight: 600;
}
#prospect_copy_status.is-error {
  color: var(--bad);
  border-color: #e5b4b4;
  background: #fdf2f2;
}

/* Our database — super search */
.super-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.45rem;
}
.super-search-row input[type="search"] {
  flex: 1 1 16rem;
  min-width: 12rem;
  font-size: 1rem;
  padding: 0.55rem 0.7rem;
}
.super-search-table td { vertical-align: middle; }
.super-search-table .inline-form { display: inline; margin: 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.9rem 0; }
.tabs a {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  background: #fff;
}
.tabs a.active {
  background: var(--grad-btn);
  color: #fff;
  border-color: transparent;
}
.sheet-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
}
.sheet-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}
.sheet-tabs a:hover { border-color: #9ca3af; text-decoration: none; }
.sheet-tabs a.active {
  background: var(--grad-btn);
  color: #fff;
  border-color: transparent;
}
.sheet-count {
  display: inline-block;
  min-width: 1.4rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.08);
  font-size: 0.78rem;
  text-align: center;
}
.sheet-tabs a.active .sheet-count { background: rgba(255,255,255,0.22); }
.comment-badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.35rem 0 0.6rem; }
.messages { list-style: none; padding: 0; }
.messages li { padding: 0.7rem 0.9rem; border-radius: 10px; margin-bottom: 0.7rem; background: #e7f5ef; border: 1px solid #b7dcc8; }
.messages li.error { background: #f8e4e4; border-color: #e0b1b1; }

/* Flash / alert message boxes */
.alert-box {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 0 0 0.9rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid transparent;
  box-shadow: 0 6px 18px rgba(31, 41, 55, 0.08);
  animation: alert-in 0.28s ease;
}
@keyframes alert-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.alert-box.alert-ok {
  background: linear-gradient(135deg, #eefaf3 0%, #f7fcf9 55%, #ffffff 100%);
  border-color: #b7dcc8;
  color: #1f4d35;
}
.alert-box.alert-fade {
  font-size: 0.92rem;
  padding: 0.55rem 0.85rem;
  box-shadow: 0 4px 12px rgba(31, 41, 55, 0.06);
}
.alert-box.alert-fade .alert-title {
  font-size: 0.72rem;
}
.alert-box.alert-fade.is-fading {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}
.alert-box.alert-error {
  background: linear-gradient(135deg, #fdf1f1 0%, #fff7f7 55%, #ffffff 100%);
  border-color: #e0b1b1;
  color: #6b2a2a;
}
.alert-icon {
  flex: 0 0 auto;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
  color: #fff;
}
.alert-ok .alert-icon { background: linear-gradient(180deg, #4a9b6e 0%, #2f6f4e 100%); }
.alert-error .alert-icon { background: linear-gradient(180deg, #c45a5a 0%, #8b2e2e 100%); }
.alert-body { min-width: 0; }
.alert-title {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}
.alert-ok .alert-title { color: #2f6f4e; }
.alert-error .alert-title { color: #8b2e2e; }
.alert-text {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.4;
  color: var(--ink);
}
.login-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background:
    radial-gradient(ellipse at 20% 15%, rgba(107, 114, 128, 0.16), transparent 45%),
    radial-gradient(ellipse at 85% 85%, rgba(55, 65, 81, 0.1), transparent 40%),
    var(--grad-page);
}
.login-card {
  width: min(420px, 100%);
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 14px 36px rgba(31, 41, 55, 0.12);
  padding: 1.8rem;
  position: relative;
  overflow: hidden;
}
.login-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--grad-brand);
}
.login-card h1 { font-size: 2rem; color: var(--brand-deep); }
.help { font-size: 0.88rem; color: var(--muted); }
.with-info,
.with-info-heading .with-info {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
  max-width: 100%;
}
.with-info-label {
  display: inline;
  min-width: 0;
}
.info-tip {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 1.05rem;
  height: 1.05rem;
  padding: 0;
  margin: 0;
  border: 1px solid #9ca3af;
  border-radius: 999px;
  background: #fff;
  color: #374151;
  font: 700 0.68rem/1 Arial, Helvetica, sans-serif;
  cursor: help;
  vertical-align: middle;
  flex: 0 0 auto;
  z-index: 1;
}
.info-tip:hover,
.info-tip:focus-visible,
.info-tip.is-open {
  border-color: #1e3a5f;
  color: #0f2744;
  background: #eef2ff;
  outline: none;
  z-index: 80;
}
.info-tip-mark { text-transform: lowercase; }
.info-tip-bubble {
  position: absolute;
  z-index: 90;
  left: 50%;
  bottom: calc(100% + 0.45rem);
  transform: translateX(-50%);
  width: max-content;
  max-width: min(16rem, 70vw);
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  background: #111827;
  color: #f9fafb;
  font: 500 0.78rem/1.35 Arial, Helvetica, sans-serif;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s ease;
  white-space: normal;
}
.info-tip-bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border: 5px solid transparent;
  border-top-color: #111827;
}
.info-tip:hover .info-tip-bubble,
.info-tip:focus-visible .info-tip-bubble,
.info-tip.is-open .info-tip-bubble {
  opacity: 1;
  visibility: visible;
}
.order-sheet th .with-info {
  flex-wrap: nowrap;
  gap: 0.28rem;
  align-items: flex-start;
}
.order-sheet th .with-info-label {
  white-space: normal;
  line-height: 1.2;
  word-break: break-word;
}
.order-sheet th.col-price .with-info-label,
.order-sheet th.col-profit .with-info-label,
.order-sheet th.col-live .with-info-label,
.order-sheet th.col-doc .with-info-label,
.order-sheet th.col-placement .with-info-label {
  white-space: nowrap;
  word-break: normal;
}
.order-sheet th .info-tip {
  width: 0.95rem;
  height: 0.95rem;
  font-size: 0.62rem;
  margin-top: 0.12rem;
}
.order-sheet thead th {
  overflow: visible;
}
.order-sheet thead th:has(.info-tip:hover),
.order-sheet thead th:has(.info-tip:focus-visible),
.order-sheet thead th:has(.info-tip.is-open) {
  z-index: 60;
}
.orders-summary-item .with-info {
  justify-content: center;
  text-align: center;
  flex-wrap: wrap;
  row-gap: 0.25rem;
}
.orders-summary-item .info-tip {
  margin-left: 0.15rem;
}
.history-item { border-left: 3px solid var(--brand-2); padding-left: 0.7rem; margin-bottom: 0.7rem; }
.checkbox-list { max-height: 380px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 0.5rem; }
.checkbox-list label { font-weight: 500; display: flex; gap: 0.5rem; align-items: flex-start; }
.checkbox-list input { width: auto; margin-top: 0.2rem; }


/* Searchable country / language fields */
.typeahead { position: relative; }
.typeahead-control { position: relative; }
.typeahead-input { width: 100%; }
.typeahead-list {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  margin: 0;
  padding: 0.25rem 0;
  list-style: none;
  max-height: 240px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(31, 35, 40, 0.12);
}
.typeahead-option {
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  font-size: 0.95rem;
}
.typeahead-option:hover,
.typeahead-option.is-active {
  background: var(--bg-2);
}
.typeahead-help { margin: 0.35rem 0 0; }

/* Our database — multi-niche chip box */
.niche-chip-box {
  position: relative;
  min-width: 9.5rem;
}
.niche-chip-control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.28rem;
  min-height: 2.15rem;
  padding: 0.22rem 0.4rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.niche-chip-box.is-compact .niche-chip-control {
  min-height: 1.85rem;
  padding: 0.14rem 0.32rem;
  border-radius: 8px;
}
.niche-chip-box:focus-within .niche-chip-control {
  border-color: #9ca3af;
  box-shadow: 0 0 0 3px rgba(31, 41, 55, 0.08);
}
.niche-chip-list {
  display: contents;
}
.niche-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
  max-width: 100%;
  padding: 0.08rem 0.18rem 0.08rem 0.45rem;
  border-radius: 999px;
  background: #eef2f6;
  border: 1px solid #d5dbe3;
  color: var(--brand-deep);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  cursor: text;
}
.niche-chip-label {
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: text;
}
.niche-chip-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
}
.niche-chip-x:hover,
.niche-chip-x:focus-visible {
  background: #dbe3ec;
  color: var(--brand-deep);
}
.niche-chip-input {
  flex: 1 1 5.5rem;
  min-width: 4.5rem;
  width: auto;
  margin: 0;
  padding: 0.12rem 0.15rem;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent;
  font: inherit;
  font-size: 0.86rem;
}
.niche-chip-suggest {
  z-index: 50;
}
.prospect-niche-td {
  min-width: 11rem;
  vertical-align: middle;
}
.prospect-niche-filters {
  margin: 0 !important;
}
.niche-filter-menu > .sheet-tool-menu-panel {
  min-width: 18.5rem;
  max-height: 22rem;
  overflow: auto;
  right: 0;
  left: auto;
}
.niche-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  margin-bottom: 0.45rem;
}
.niche-filter-group-label {
  flex: 1 0 100%;
  margin: 0.15rem 0 0.05rem;
  font-weight: 700;
}
.niche-filter-item.sheet-search-hit {
  outline: 2px solid #4b5563;
  outline-offset: 1px;
}
.super-search-table .niche-chip-box.is-compact .niche-chip-control {
  border: 0;
  background: transparent;
  padding: 0;
  min-height: 0;
}
.super-search-table .niche-chip-x,
.super-search-table .niche-chip-input {
  display: none;
}

.domains-paste-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}
.domains-paste-head label { margin: 0; }
.domains-paste-warn { color: #8a1f1f !important; font-weight: 600; }
.domains-paste-attention {
  margin-top: 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #f0c2c2;
  border-radius: var(--radius, 10px);
  background: #fff8f8;
}
.domains-paste-attention label {
  display: block;
  font-weight: 700;
  color: #8a1f1f;
  margin: 0 0 0.35rem;
}
.domains-attention-box {
  width: 100%;
  box-sizing: border-box;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.84rem;
  line-height: 1.35;
  white-space: pre;
}
.btn-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--brand-2);
  cursor: pointer;
  text-decoration: underline;
}
.btn-link.danger { color: var(--bad); }

/* —— Order management —— */
.orders-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  align-items: start;
}
.invoice-generate-form .orders-layout > .card {
  min-width: 0;
}
.invoice-generate-form .form-grid {
  align-items: start;
}
.orders-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0 0 1rem;
}
.orders-summary-6 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.orders-summary-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.orders-summary-done {
  border-color: #b7dcc8;
  background: linear-gradient(180deg, #f3faf6 0%, #ffffff 100%);
}
.order-meta-done { color: var(--ok); font-weight: 600; }
.orders-summary-item {
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  box-shadow: var(--shadow);
}
.orders-summary-item strong {
  display: block;
  font-size: 1.35rem;
  font-family: var(--font);
  color: var(--brand-deep);
  line-height: 1.15;
}
.orders-summary-item span {
  color: var(--muted);
  font-size: 0.85rem;
}
.order-client-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.order-client-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.order-client-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--brand-deep);
  text-decoration: none;
}
.order-client-name:hover { text-decoration: underline; }
.order-client-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.85rem;
  margin-top: 0.2rem;
  font-size: 0.88rem;
}
.order-client-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.order-client-actions form { margin: 0; }
.order-client-edit summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--brand-deep);
}
.order-sheet-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}
.order-sheet-toolbar-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.9rem;
  min-width: 0;
}
.om-folder-tabs {
  margin: 0 0 0.85rem;
  gap: 0.45rem;
}
.om-folder-tabs .btn {
  min-width: 10.5rem;
  justify-content: center;
}
.om-origin-tabs,
.om-status-tabs {
  margin: 0 0 0.85rem;
}
.order-filter-bar {
  margin-bottom: 1rem;
  padding: 0.75rem 0.9rem;
}
.order-filter-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.55rem;
  align-items: center;
}
.order-filter-field {
  margin: 0;
}
.order-filter-field select,
.order-filter-field input[type="date"] {
  margin: 0;
  min-width: 13rem;
}
.order-filter-bar .sheet-search input[type="search"] {
  width: 16rem;
  max-width: 70vw;
}
.order-filter-bar-completed .sheet-search {
  flex: 1 1 22rem;
  min-width: 18rem;
}
.order-filter-bar-completed .sheet-search input[type="search"] {
  width: 100%;
  min-width: 18rem;
  max-width: none;
}
.order-filter-actions {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
.sheet-search {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  min-width: 0;
}
.sheet-search input[type="search"] {
  width: 11.5rem;
  max-width: 42vw;
  margin: 0;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  font-size: 0.9rem;
}
.prospect-markets-toolbar .sheet-search input[type="search"] {
  width: 16rem;
  max-width: min(42vw, 22rem);
  min-width: 12rem;
  padding: 0.42rem 0.85rem;
  line-height: 1.25;
}
.sheet-search-meta {
  font-size: 0.82rem;
  white-space: nowrap;
}
.sheet-search-hit {
  outline: 2px solid #4b5563 !important;
  outline-offset: 1px;
  background: #f3f4f6 !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}
.invoice-list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 1rem;
  margin-bottom: 0.85rem;
}
.invoice-list-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.invoice-list-search {
  display: flex;
  flex: 1 1 100%;
  gap: 0.4rem;
  align-items: center;
  margin: 0;
  flex-wrap: nowrap;
}
.invoice-list-search input[type="search"] {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  max-width: none;
}
@media (max-width: 640px) {
  .invoice-list-search {
    flex-wrap: wrap;
  }
  .invoice-list-search input[type="search"] {
    flex: 1 1 12rem;
    min-width: 12rem;
  }
}
.invoice-empty-reasons {
  margin: 0.35rem 0 0.85rem;
  padding-left: 1.25rem;
}
.dashboard-search input[type="search"] {
  width: 11rem;
  max-width: 40vw;
}
.grid.dashboard-stats {
  margin-bottom: 1rem;
}
.grid.dashboard-stats .card.stat {
  margin-bottom: 0;
}
a.card.stat {
  text-decoration: none;
  color: inherit;
  display: block;
}
a.card.stat:hover {
  border-color: var(--brand-2);
  text-decoration: none;
}
a.card.stat:hover * {
  text-decoration: none;
}
a.card.stat:focus-visible {
  outline: 2px solid #4b5563;
  outline-offset: 2px;
}
#dashboard-launch-cards {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}
.dashboard-stat-sub {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  font-weight: 650;
}
.dashboard-attention {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1rem;
}
.dashboard-attention a {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 650;
}
.dashboard-attention a:hover {
  border-color: var(--brand-2);
  text-decoration: none;
}
.launch-card.sheet-search-hit {
  outline: 2px solid #4b5563;
  outline-offset: 2px;
  background: #f3f4f6;
}
.invoice-list-table tr.sheet-search-hit td {
  background: #f3f4f6 !important;
}
.invoice-list-table tr.sheet-search-hit {
  outline: 2px solid #4b5563;
  outline-offset: -2px;
}
.invoice-manual-tag {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #9a3412;
  background: #ffedd5;
  border: 1px solid #fdba74;
  border-radius: 999px;
  padding: 0.05rem 0.45rem;
  vertical-align: middle;
  white-space: nowrap;
}
.invoice-manual-tag.is-kind {
  color: #4b5563;
  background: #f3f4f6;
  border-color: #d1d5db;
}
.invoice-list-note {
  margin-top: 0.2rem;
  font-size: 0.8rem;
  max-width: 16rem;
  line-height: 1.3;
}
.invoice-note-box {
  margin-top: 0.15rem;
  width: 11.5rem;
  max-width: 100%;
}
.invoice-note-preview {
  display: block;
  width: 100%;
  min-height: 1.5rem;
  max-height: 1.7rem;
  margin: 0;
  padding: 0.1rem 0.4rem;
  text-align: left;
  font: inherit;
  font-size: 0.76rem;
  line-height: 1.3;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: none;
}
.invoice-note-preview:hover,
.invoice-note-preview:focus-visible {
  border-color: #9ca3af;
  outline: none;
}
.invoice-note-preview-text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  word-break: break-word;
}
.invoice-note-preview-empty {
  color: var(--muted);
}
.invoice-note-box.is-open .invoice-note-preview {
  display: none;
}
.invoice-list-note-form {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
  padding: 0.45rem;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(31, 35, 40, 0.1);
}
.invoice-list-note-form[hidden] {
  display: none !important;
}
.invoice-list-note-form textarea,
.invoice-doc-note-box textarea {
  display: block;
  width: 100%;
  min-height: 4.5rem;
  max-height: 12rem;
  margin: 0;
  padding: 0.45rem 0.5rem;
  resize: vertical;
  font: inherit;
  font-size: 0.84rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fffef8;
  box-sizing: border-box;
  overflow: auto;
}
.invoice-note-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
}
.invoice-note-actions .btn {
  flex: 0 0 auto;
  padding: 0.28rem 0.55rem;
  font-size: 0.78rem;
}
.invoice-doc-note-box {
  width: min(18rem, 100%);
  margin-top: 0.35rem;
}
.invoice-doc-note-box textarea.invoice-edit-note {
  min-height: 3.5rem;
}
.invoice-note-field-label {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.85rem;
}
.invoice-doc-admin-note {
  margin-top: 0.35rem;
  padding: 0.45rem 0.55rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  color: #4b5563;
  max-width: 18rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}
.invoice-manual-items-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
}
.invoice-manual-items input[type="text"],
.invoice-manual-items input[type="number"] {
  width: 100%;
  margin: 0;
}
.invoice-manual-items th.num,
.invoice-manual-items td.num {
  width: 6.5rem;
}
.invoice-doc-editable .invoice-edit-note,
.invoice-doc-editable .invoice-edit-date,
.invoice-doc-editable .invoice-edit-input,
.invoice-doc-editable .invoice-edit-textarea,
.invoice-doc-editable .invoice-edit-party-lines input,
.invoice-doc-editable .invoice-edit-desc,
.invoice-doc-editable .invoice-edit-amount,
.invoice-doc-editable .invoice-edit-qty {
  width: 100%;
  margin: 0.2rem 0 0;
  font: inherit;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  background: #fffef8;
  padding: 0.35rem 0.45rem;
  box-sizing: border-box;
}
.invoice-doc-editable .invoice-edit-note {
  margin-top: 0;
  min-height: 3.5rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  color: #4b5563;
  white-space: pre-wrap;
  word-break: break-word;
  resize: vertical;
}
.invoice-doc-editable .invoice-edit-date {
  display: block;
  width: auto;
  min-width: 10rem;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
}
.invoice-doc-editable .invoice-edit-strong {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}
.invoice-doc-editable .invoice-edit-textarea {
  min-height: 3rem;
  resize: vertical;
  margin-bottom: 0.4rem;
}
.invoice-doc-editable .invoice-edit-party-lines div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.35rem;
  align-items: center;
  margin-bottom: 0.35rem;
}
.invoice-doc-editable .invoice-edit-party-lines span {
  font-size: 0.78rem;
  color: #6b7280;
}
.invoice-doc-editable .invoice-edit-vat {
  margin-top: 0.45rem;
  font-size: 0.85rem;
}
.invoice-edit-table .invoice-edit-amount,
.invoice-edit-table .invoice-edit-qty {
  text-align: right;
  max-width: 6.5rem;
  margin-left: auto;
}
.invoice-edit-table .invoice-edit-desc {
  min-height: 2.6rem;
  resize: vertical;
}
.invoice-edit-table .col-edit-actions {
  width: 2.5rem;
  text-align: center;
}
.invoice-edit-add-row {
  padding: 0.55rem 1.25rem 0.15rem;
}
.invoice-blank-edit-form {
  margin: 0;
}
.invoice-pay-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: #f3f4f6;
  color: #4b5563;
  border: 1px solid #e5e7eb;
}
.invoice-pay-badge.is-paid {
  background: #e8f7ee;
  color: #1f4d35;
  border-color: #b7dcc8;
}
.invoice-pay-badge.is-draft {
  background: #fff7ed;
  color: #9a3412;
  border-color: #fdba74;
}
.invoice-pay-badge.is-done {
  background: #eef2ff;
  color: #3730a3;
  border-color: #c7d2fe;
}
.invoice-list-pay-btn {
  min-width: 3.6rem;
}
.invoice-list-table .invoice-pay-badge,
.invoice-list-table .invoice-list-pay-btn {
  vertical-align: middle;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* Form controls ignore clip/1px height (rows + global textarea width/padding). */
textarea.visually-hidden,
input.visually-hidden,
textarea[hidden],
.camp-draft-textarea-sync {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}
.order-sheet-card {
  max-width: 100%;
  min-width: 0;
}
.order-sheet-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}
.order-sheet {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
  border-collapse: separate;
  border-spacing: 0;
}
.order-sheet th {
  position: sticky;
  top: 0;
  background: #f3f4f6;
  z-index: 2;
  overflow: visible;
}
.order-sheet th,
.order-sheet td {
  padding: 0.4rem 0.35rem;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}
.order-sheet .col-num { width: 2.2rem; text-align: center; }
.order-sheet .col-check { width: 5.2rem; text-align: center; }
.order-check-heads,
.order-check-pair { display: flex; gap: 0.45rem; align-items: flex-end; justify-content: center; }
.order-check-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  margin: 0;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.01em;
  color: #4b5563;
  line-height: 1.1;
}
.order-check-hint { font-size: 0.82rem; }
.order-check-hint-bill {
  color: #1f2937;
  font-size: 0.88rem;
}
.order-check-hint-bill strong {
  color: var(--brand-deep);
}
.order-wp-open {
  font-size: 0.75rem;
  line-height: 1.2;
}
.order-wp-mismatch {
  display: block;
  font-size: 0.72rem;
  color: #92400e;
  line-height: 1.25;
}
.order-sheet .col-month { min-width: 188px; width: 188px; }
.order-sheet .col-country { min-width: 168px; width: 180px; }
.order-sheet .col-date { min-width: 150px; width: 154px; }
.order-sheet .col-admin { min-width: 196px; width: 212px; }
.order-sheet .col-client { min-width: 200px; }
.order-sheet .col-site { min-width: 188px; }
.order-sheet .col-placement { min-width: 148px; width: 152px; }
.site-cell {
  display: grid;
  gap: 0.28rem;
}
.site-cell .cell-note {
  font-size: 0.8rem;
  padding: 0.28rem 0.45rem;
  color: #4b5563;
  background: #f9fafb;
  border-style: dashed;
}
.site-cell .cell-note::placeholder {
  color: #9ca3af;
  font-style: italic;
}
.site-cell .cell-note:focus {
  background: #fff;
  border-style: solid;
}
.order-sheet .col-price { width: 7.5rem; min-width: 7.2rem; white-space: nowrap; }
.order-sheet tfoot .col-price,
.order-sheet tfoot .col-profit {
  text-align: right;
}
.order-sheet .col-profit { min-width: 6.5rem; width: 6.5rem; text-align: right; white-space: nowrap; }
.order-sheet .col-del { width: 4.8rem; min-width: 4.8rem; text-align: center; white-space: nowrap; }
.order-sheet .col-live { min-width: 16rem; }
.order-sheet .col-doc { min-width: 16rem; }
.order-sheet .col-paid { min-width: 9.5rem; width: 9.5rem; text-align: center; }
.btn-paid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.4rem;
  padding: 0.35rem 0.55rem;
  border: 1px solid #9ca3af;
  border-radius: 999px;
  background: #fff;
  color: #374151;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  line-height: 1.1;
}
.btn-paid.btn-paid-mark {
  text-transform: none;
  letter-spacing: 0;
  min-width: 5.6rem;
  font-weight: 650;
}
.btn-paid:hover {
  border-color: #4a9b6e;
  color: #2f6f4e;
}
.btn-paid.is-paid,
.order-row.is-paid .btn-paid.is-paid {
  background: linear-gradient(180deg, #4a9b6e 0%, #2f6f4e 100%);
  border-color: #2f6f4e;
  color: #fff;
}
.order-row.is-paid .col-paid .btn-paid.is-paid:hover {
  filter: brightness(1.05);
}
.order-on-invoice {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.order-download-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: space-between;
  align-items: center;
}
.month-year-cell {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.3rem;
}
.month-year-cell .cell-end-month {
  grid-column: 1 / -1;
}
.order-row.is-placement .col-live .cell-input {
  border-color: #93c5fd;
  background: #f3f4f6;
}
.cell-input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
}
.cell-select { padding-right: 0.35rem; }
.cell-year { width: 4.6rem; min-width: 4.6rem; color: var(--muted); }
.cell-hint::placeholder {
  color: #b0b6bf;
  opacity: 1;
}
.cell-input:focus {
  outline: none;
  border-color: #9ca3af;
  box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.15);
}
.cell-money { text-align: right; font-variant-numeric: tabular-nums; }
.profit-cell {
  display: inline-block;
  min-width: 4.5rem;
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.profit-pos { color: var(--ok); }
.profit-neg { color: var(--bad); }
.order-row.is-completed .col-live .cell-input {
  border-color: #b7dcc8;
  background: #f3faf6;
}
.order-year-end-row td {
  padding: 0;
  border-bottom: none;
  background: transparent;
}
.order-year-end-banner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  align-items: center;
  justify-content: center;
  margin: 0.55rem 0;
  padding: 0.85rem 1.1rem;
  border: 1px solid rgba(31, 41, 55, 0.18);
  border-radius: 12px;
  background: linear-gradient(110deg, #1f2937 0%, #374151 42%, #6b7280 78%, #9ca3af 100%);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.9rem;
  box-shadow: 0 8px 20px rgba(31, 41, 55, 0.18);
}
.order-year-end-sep { color: rgba(255, 255, 255, 0.7); font-weight: 500; }
.order-year-end-remove {
  margin-left: 0.5rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  color: #fff !important;
  text-decoration: underline;
}
.year-end-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
}
.year-end-select {
  width: auto;
  min-width: 5rem;
  padding: 0.35rem 0.5rem;
  margin: 0;
}
.order-sheet tfoot td {
  border-bottom: none;
  padding-top: 0.75rem;
  background: #f9fafb;
}

/* Invoices */
.invoice-list-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}
.invoice-list-table .num { text-align: right; white-space: nowrap; }
.invoice-list-table th,
.invoice-list-table td {
  vertical-align: top;
  border-bottom: 1px solid var(--line, #e5e7eb);
  padding: 0.7rem 0.65rem;
}
.invoice-list-table td:nth-child(3) {
  word-break: break-word;
  overflow-wrap: anywhere;
}
.invoice-list-table tbody tr:last-child td {
  border-bottom: 1px solid var(--line, #e5e7eb);
}
.invoice-list-table form {
  margin: 0;
}
.invoice-list-actions {
  text-align: right;
  white-space: nowrap;
  vertical-align: middle;
}
.invoice-pay-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
}
.invoice-list-actions-row {
  display: inline-flex;
  gap: 0.45rem;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}
.invoice-list-actions form.inline { display: inline; margin: 0; }
.invoice-list-delete {
  background: none;
  border: 0;
  padding: 0.15rem 0.1rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
}
.invoice-list-delete:hover,
.invoice-list-delete:focus-visible {
  color: var(--bad);
  text-decoration: underline;
  outline: none;
}
.invoice-list-delete.is-paid {
  color: #9a3412;
}
.invoice-list-table tbody tr.is-incomplete td {
  background: #fafafa;
  color: #6b7280;
}
.invoice-list-table tbody tr.is-incomplete strong {
  font-weight: 600;
  color: #6b7280;
}
.invoice-pick-client .invoice-pick-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.invoice-pick-client select { margin: 0; }
.ss-wrap {
  position: relative;
  flex: 1 1 16rem;
  min-width: 12rem;
}
.ss-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.ss-input { width: 100%; }
.ss-list {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  margin: 0;
  padding: 0.25rem 0;
  max-height: 16rem;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(31, 35, 40, 0.12);
}
.ss-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.45rem 0.75rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 0.95rem;
}
.ss-option:hover,
.ss-option.is-active {
  background: var(--bg-2, #f3f4f6);
}
.ss-option.is-selected { font-weight: 600; }
.ss-empty,
.ss-group {
  padding: 0.4rem 0.75rem;
  color: var(--muted, #6b7280);
  font-size: 0.85rem;
}
.invoice-check-all,
.invoice-group-opt {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin: 0.5rem 0 0.75rem;
  font-size: 0.95rem;
}
.invoice-pick-search {
  width: 100%;
}
.invoice-pick-search input[type="search"] {
  width: 100%;
  max-width: 100%;
}
.invoice-item-pick {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 12px;
  max-height: 22rem;
  overflow: auto;
}
.invoice-item-pick li[hidden],
.invoice-item-pick li[style*="display: none"] {
  display: none;
}
.invoice-item-pick li {
  display: flex;
  align-items: flex-start;
  border-bottom: 1px solid var(--line, #e5e7eb);
}
.invoice-item-pick li:last-child { border-bottom: none; }
.invoice-item-pick label {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: start;
  padding: 0.7rem 0.8rem;
  margin: 0;
  cursor: pointer;
  flex: 1 1 auto;
  min-width: 0;
}
.invoice-item-pick input { margin-top: 0.2rem; }
.invoice-pick-main { display: grid; gap: 0.15rem; min-width: 0; }
.invoice-pick-url {
  font-size: 0.85rem;
  word-break: break-all;
}
.invoice-pick-price {
  font-weight: 700;
  white-space: nowrap;
}
.invoice-pick-doc {
  flex: 0 0 auto;
  padding: 0.7rem 0.85rem 0.7rem 0;
  font-size: 0.85rem;
  white-space: nowrap;
}
.invoice-dest-mode {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  margin: 0 0 1rem;
  border: 0;
  padding: 0;
}
.invoice-dest-mode label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 650;
  cursor: pointer;
}
#invoice-dest-existing input[type="search"] {
  width: 100%;
  max-width: 100%;
  margin: 0.35rem 0 0;
}
#invoice-dest-existing select {
  width: 100%;
  margin-top: 0.4rem;
}
#invoice-append-preview,
#invoice-sent-hint {
  margin-top: 0.5rem;
}

.invoice-number-auto {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: #f8fafc;
  color: #0f172a;
  cursor: default;
}

.invoice-subhead {
  margin: 1.1rem 0 0.5rem;
  font-size: 1rem;
}
.invoice-company-details {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--line, #e5e7eb);
}
.invoice-preview-wrap {
  background: #eef1f5;
  border-radius: 16px;
  padding: 1.25rem;
  overflow: auto;
}
.invoice-doc {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  color: #111827;
  border: 1px solid #c5ced9;
  box-shadow: 0 14px 36px rgba(15, 39, 68, 0.12);
  padding: 0;
  font-family: Georgia, "Times New Roman", Times, serif;
  font-size: 14px;
  line-height: 1.45;
  overflow: hidden;
}
/* Shared by sheet + blank invoices: logo only, no gradient header bar. */
.invoice-doc-logohead {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 0.9rem 1.35rem 0.45rem;
  background: #fff;
  border: 0;
  box-shadow: none;
  overflow: visible;
}
.invoice-list-table thead th {
  position: relative;
  z-index: 2;
  background: #fff;
  overflow: visible;
  white-space: nowrap;
}
.invoice-list-table thead th .info-tip {
  position: relative;
  z-index: 3;
}
.invoice-list-table tbody td {
  position: relative;
  z-index: 0;
}
.invoice-list-table .invoice-pay-badge,
.invoice-list-table .invoice-list-pay-btn {
  position: relative;
  z-index: 0;
}
.invoice-doc-logo {
  height: 52px;
  width: auto;
  max-width: 280px;
  display: block;
  object-fit: contain;
  object-position: left center;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.invoice-doc-ids {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.85rem 1.35rem;
  border-bottom: 1px solid #dbe3ec;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.92rem;
  background: #fff;
}
.invoice-doc-ids .invoice-k {
  display: block;
  color: #6b7280;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
}
.invoice-doc-ids strong {
  font-size: 1.05rem;
  color: #111827;
}
.invoice-doc-parties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1px solid #dbe3ec;
}
.invoice-party {
  padding: 1.1rem 1.35rem 1.2rem;
}
.invoice-party-from {
  background: #f8fafc;
  border-right: 1px solid #dbe3ec;
}
.invoice-party-to {
  background: #fff;
}
.invoice-party-label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1e3a5f;
  margin-bottom: 0.45rem;
}
.invoice-doc-strong {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: #0f2744;
}
.invoice-party-lines {
  display: grid;
  gap: 0.28rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.88rem;
  color: #374151;
}
.invoice-party-lines span {
  display: inline-block;
  min-width: 7.2rem;
  color: #6b7280;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.invoice-doc-vat {
  margin-top: 0.7rem;
  font-style: italic;
  color: #4b5563;
  font-size: 0.86rem;
}
.invoice-doc-address { white-space: pre-line; }
.invoice-doc-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  margin: 0;
}
.invoice-doc-table th,
.invoice-doc-table td {
  border-bottom: 1px solid #e5e7eb;
  padding: 0.7rem 0.85rem;
  vertical-align: top;
  background: #fff;
}
.invoice-doc-table th {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  text-align: left;
  background: #0f2744;
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: none;
}
.invoice-doc-table tbody tr:nth-child(even) td { background: #f8fafc; }
.invoice-doc-table .num {
  text-align: right;
  width: 5.6rem;
  font-variant-numeric: tabular-nums;
  font-family: Arial, Helvetica, sans-serif;
}
.invoice-doc-table .col-line {
  width: 2.4rem;
  text-align: center;
  font-family: Arial, Helvetica, sans-serif;
}
.invoice-desc {
  word-break: break-word;
  font-size: 0.92rem;
}
.invoice-doc-summary {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  padding: 1.1rem 1.35rem 0.4rem;
  align-items: start;
}
.invoice-doc-paybox {
  border: 1px dashed #c5ced9;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.88rem;
  color: #374151;
}
.invoice-doc-totals {
  border: 1px solid #dbe3ec;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.invoice-total-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.95rem;
  font-family: Arial, Helvetica, sans-serif;
  border-bottom: 1px solid #eef2f7;
}
.invoice-total-row:last-child { border-bottom: none; }
.invoice-total-grand {
  background: #0f2744;
  color: #fff;
  font-size: 1.05rem;
}
.invoice-doc-footer {
  margin: 0.4rem 1.35rem 1.2rem;
  padding-top: 0.85rem;
  border-top: 1px solid #e5e7eb;
  text-align: center;
  color: #6b7280;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
}
.invoice-print-body {
  background: #fff !important;
  margin: 0;
  padding: 0.75rem;
  color: #111827;
}
.invoice-print-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin: 0 0 0.85rem;
}
.invoice-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.invoice-history-item {
  border-left: 3px solid var(--brand-2);
  padding: 0 0 0.75rem 0.7rem;
  margin: 0 0 0.7rem;
}
.invoice-history-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
}
.invoice-history-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.invoice-history-who,
.invoice-history-type {
  color: #111827;
  font-weight: 600;
}
.invoice-history-summary {
  margin: 0.25rem 0 0;
}
.invoice-history-sites {
  margin-top: 0.35rem;
}
.invoice-history-sites ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
}
.invoice-print-body .invoice-doc {
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  box-shadow: none;
  border: 1px solid #d1d5db;
  overflow: visible;
}
/* Keep the full invoice grid on the Print/PDF page (ignore narrow popup width). */
.invoice-print-body .invoice-doc-logohead {
  display: flex !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  padding: 0.9rem 1.35rem 0.45rem !important;
  overflow: visible !important;
}
.invoice-print-body .invoice-doc-ids {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 1.25rem 2rem !important;
}
.invoice-print-body .invoice-doc-parties {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
}
.invoice-print-body .invoice-party-from {
  border-right: 1px solid #dbe3ec !important;
  border-bottom: none !important;
}
.invoice-print-body .invoice-doc-summary {
  display: grid !important;
  grid-template-columns: 1.2fr 0.8fr !important;
  gap: 1rem !important;
  align-items: start !important;
}
.invoice-print-body .invoice-doc-table {
  table-layout: fixed !important;
  width: 100% !important;
}
.invoice-print-body .invoice-doc-logo {
  height: 52px !important;
  width: auto !important;
  max-width: 280px !important;
  border-radius: 0 !important;
  object-fit: contain !important;
  object-position: left center !important;
}
.invoice-print-body .invoice-doc-admin-note {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0.2rem 0 0;
  margin-top: 0.25rem;
  max-width: 22rem;
  color: #4b5563;
}
.invoice-print-body .invoice-doc-footer {
  page-break-inside: avoid;
}
@media print {
  @page {
    size: A4;
    margin: 12mm;
  }
  .shell, .sidebar, .topbar, .breadcrumbs, .alert-box, .no-print, .project-credit, .app-footer, .app-bar, .mobile-bar, .draft-restore-banner { display: none !important; }
  .main { padding: 0 !important; }
  .invoice-preview-wrap { background: none; padding: 0; border-radius: 0; }
  body.invoice-print-body {
    background: #fff !important;
    padding: 0 !important;
  }
  .invoice-doc,
  .invoice-print-body .invoice-doc {
    box-shadow: none !important;
    border: none !important;
    max-width: none !important;
    width: 100% !important;
    overflow: visible !important;
  }
  .invoice-print-toolbar { display: none !important; }
  .invoice-doc-logohead {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
    padding: 0.9rem 1.35rem 0.45rem !important;
  }
  .invoice-doc-ids {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
  }
  .invoice-doc-parties {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
  }
  .invoice-party-from {
    border-right: 1px solid #dbe3ec !important;
    border-bottom: none !important;
  }
  .invoice-doc-summary {
    display: grid !important;
    grid-template-columns: 1.2fr 0.8fr !important;
    page-break-inside: avoid;
  }
  .invoice-doc-table {
    table-layout: fixed !important;
    width: 100% !important;
  }
  .invoice-doc-table thead { display: table-header-group; }
  .invoice-doc-table tr { page-break-inside: avoid; }
  .invoice-doc-admin-note {
    background: transparent !important;
    border: none !important;
    padding: 0.2rem 0 0 !important;
  }
  .invoice-doc-logo {
    height: 52px !important;
    width: auto !important;
    max-width: 280px !important;
    border-radius: 0 !important;
    object-fit: contain !important;
    object-position: left center !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .invoice-doc-table th,
  .invoice-total-grand {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .mobile-bar { display: flex; }
  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(17, 24, 39, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }
  body.nav-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(280px, 88vw);
    z-index: 100;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    overflow-y: auto;
  }
  body.nav-open .sidebar { transform: translateX(0); }
  body.nav-open { overflow: hidden; }
  .sidebar .nav-hint { display: none; }
  .main { padding: 1rem 0.9rem 0; }
  .app-bar { display: none; }
  .app-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    margin-left: -0.9rem;
    margin-right: -0.9rem;
    padding: 1rem 0.9rem;
  }
  .app-footer-primary {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
  .mobile-brand span {
    max-width: 6.5rem;
  }
  .form-grid { grid-template-columns: 1fr; }
  .glossary-list > div { grid-template-columns: 1fr; gap: 0.15rem; }
  .panel-guide-grid { grid-template-columns: 1fr; }
  .orders-layout { grid-template-columns: 1fr; }
  .orders-summary,
  .orders-summary-6,
  .orders-summary-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .month-year-cell { grid-template-columns: 1fr; }
  /* Screen edit/preview only — never collapse the Print/PDF page */
  body:not(.invoice-print-body) .invoice-doc-parties,
  body:not(.invoice-print-body) .invoice-doc-summary { grid-template-columns: 1fr; }
  body:not(.invoice-print-body) .invoice-party-from { border-right: none; border-bottom: 1px solid #dbe3ec; }
  body:not(.invoice-print-body) .invoice-doc-ids { flex-direction: column; gap: 0.65rem; }
  body:not(.invoice-print-body) .invoice-doc-table { table-layout: auto; }
}

/* =========================================================
   Sitewide UI clarity — views, actions, buttons
   Visual hierarchy only; no form/JS behavior changes.
   ========================================================= */

.card > .help:first-of-type,
.invoice-list-toolbar > div > .help:first-of-type {
  margin-top: 0.2rem;
}

/* List / hub tables: clearer column headers */
.extracted-country-table thead th,
.camp-hub-table thead th,
.invoice-list-table thead th,
.dept-task-table thead th,
.order-clients-table thead th,
table.extracted-country-table th {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: var(--muted);
  background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
  border-bottom: 1px solid #e5e7eb;
  padding-top: 0.7rem;
  padding-bottom: 0.6rem;
}

.extracted-country-table tbody tr:hover td,
.camp-hub-table tbody tr:hover td,
.invoice-list-table tbody tr:hover td {
  background: #fafbfc;
}

/* Launch cards & folders: clearer click targets */
.launch-card,
.folder {
  transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}
.launch-card:hover,
.folder:hover {
  border-color: #6b7280;
  box-shadow: 0 10px 24px rgba(31, 41, 55, 0.12);
  transform: translateY(-1px);
}
.launch-card h2,
.folder h2,
.folder strong {
  letter-spacing: -0.01em;
}

/* Topbar tool clusters */
.swe-copy-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.topbar .actions > a.btn.secondary,
.topbar .actions > button.btn.secondary {
  font-weight: 650;
}

/* Semrush Research comments */
.semrush-comment-list {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.semrush-comment-list li {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 0.7rem 0.85rem;
}
.semrush-comment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  align-items: baseline;
  margin-bottom: 0.35rem;
}
.semrush-comment-body {
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.45;
  font-size: 0.92rem;
}
.semrush-comment-delete {
  margin: 0.45rem 0 0;
}

/* Rows-per-page filter (sitewide sheet lists) */
.sheet-per-page-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.sheet-per-page-filter label {
  margin: 0;
  font-weight: 650;
  color: var(--ink);
  font-size: 0.86rem;
}
.sheet-per-page-filter select {
  min-width: 5.5rem;
  padding: 0.28rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-weight: 650;
}

/* Pagination / sheet footers */
.pagination,
.card .pagination {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 0.35rem;
  border-top: 1px solid #eef0f3;
  margin-top: 0.85rem;
}
.pagination a,
.card .pagination a {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--brand-2);
  font-weight: 650;
  font-size: 0.88rem;
  text-decoration: none;
}
.pagination a:hover,
.card .pagination a:hover {
  border-color: #9ca3af;
  background: #f9fafb;
  text-decoration: none;
}
.pagination .is-current {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border: 1px solid #9ca3af;
  border-radius: 8px;
  background: #f3f4f6;
  color: var(--ink);
  font-weight: 700;
  font-size: 0.88rem;
}
.pagination-gap {
  color: var(--muted);
  padding: 0 0.1rem;
}

/* Communication search cards */
.camp-search-card {
  border-left: 3px solid var(--brand);
}
.camp-search-card > h2 {
  margin-bottom: 0.25rem;
}
.camp-action-fieldset {
  background: #fafbfc;
}
.camp-action-choice {
  padding: 0.2rem 0.15rem;
  border-radius: 6px;
}
.camp-action-choice:hover {
  background: #f3f4f6;
}
.swe-admin-delete-selected {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--line, #e5e7eb);
}
.swe-admin-delete-domain {
  color: var(--brand-deep);
}
.camp-status {
  margin: 0.55rem 0 0;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 0.88rem;
  font-weight: 600;
}
.camp-status:not([hidden]) {
  border-color: var(--line);
  background: #f3f4f6;
  color: var(--brand-deep);
}
.camp-status.is-error {
  color: var(--bad);
  border-color: #e5b4b4;
  background: #fdf2f2;
}

/* Checkpoint rule cards */
.swe-checkpoint-rule {
  background: linear-gradient(180deg, #ffffff 0%, #f6faf7 100%);
}
.swe-checkpoint-rule > h2 {
  color: #2f4f35;
}

/* Sheet toolbars */
.swe-list-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem 1rem;
}
.swe-list-toolbar > div:first-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.5rem;
  min-width: 0;
  flex: 1 1 16rem;
}
.swe-list-toolbar > div:first-child > h2,
.swe-list-toolbar > div:first-child > .swe-sent-filters {
  flex: 1 0 100%;
  margin-top: 0;
}
.swe-list-toolbar .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
}
.invoice-list-toolbar h2,
.swe-list-toolbar h2 {
  margin: 0;
}

/* Form labels & inputs — quieter focus */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: #9ca3af;
  box-shadow: var(--focus-ring);
}

/* Sticky save bars */
.actions-sticky .btn {
  min-width: 7rem;
}

.breadcrumbs a:hover {
  color: var(--brand-deep);
}

/* Mobile: keep row-action roles readable when stacked horizontally */
@media (max-width: 900px) {
  .swe-row-actions {
    gap: 0.35rem;
  }
  .swe-row-actions button[data-sheet-action="remove"],
  .swe-row-actions button[form*="-remove-"],
  .swe-row-actions button[form*="remove"] {
    margin-top: 0;
    margin-left: auto;
  }
  .topbar {
    align-items: stretch;
  }
  .topbar .actions {
    justify-content: flex-start;
  }
  .camp-hub-steps {
    grid-template-columns: 1fr;
  }
}

/* Communication Team · campaign drafts (per project) */
.camp-drafts-layout {
  display: grid;
  grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.camp-drafts-project-list {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.camp-drafts-project-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  font-weight: 650;
}
.camp-drafts-project-link:hover {
  border-color: #9ca3af;
  background: #f9fafb;
  text-decoration: none;
}
.camp-drafts-project-link.is-active {
  border-color: var(--brand-2);
  background: #eef0f3;
  box-shadow: inset 3px 0 0 var(--brand-2);
}
.camp-drafts-project-name {
  min-width: 0;
  word-break: break-word;
}
.camp-drafts-project-count {
  flex: 0 0 auto;
  min-width: 1.5rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: #f3f4f6;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  text-align: center;
  color: var(--muted);
}
.camp-drafts-filters {
  margin-top: 0.65rem;
}
.camp-drafts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.85rem;
  margin-top: 0.85rem;
}
.camp-draft-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f9fafb 100%);
  padding: 0.85rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-height: 12rem;
}
.camp-draft-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.4rem 0.65rem;
}
.camp-draft-title {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--brand-deep);
}
.camp-draft-preview {
  margin: 0;
  flex: 1 1 auto;
  word-break: break-word;
  font-family: inherit;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--ink);
  background: #fff;
  border: 1px solid #eef0f3;
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  max-height: 10rem;
  overflow: auto;
}
.camp-draft-rich p,
.camp-draft-surface p {
  margin: 0 0 0.55rem;
}
.camp-draft-rich p:last-child,
.camp-draft-surface p:last-child {
  margin-bottom: 0;
}
.camp-draft-rich h1,
.camp-draft-rich h2,
.camp-draft-rich h3,
.camp-draft-surface h1,
.camp-draft-surface h2,
.camp-draft-surface h3 {
  margin: 0 0 0.45rem;
  line-height: 1.25;
  color: var(--brand-deep);
  font-weight: 750;
}
.camp-draft-rich h1,
.camp-draft-surface h1 { font-size: 1.2rem; }
.camp-draft-rich h2,
.camp-draft-surface h2 { font-size: 1.08rem; }
.camp-draft-rich h3,
.camp-draft-surface h3 { font-size: 0.98rem; }
.camp-draft-card-actions {
  margin-top: auto;
}
.camp-draft-delete-form {
  display: inline;
  margin: 0;
}
.camp-draft-copy-status {
  margin: 0;
}
.camp-draft-copy-status.is-error {
  color: var(--bad);
}
.camp-draft-editor {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.camp-draft-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.45rem 0.55rem;
  border-bottom: 1px solid var(--line);
  background: #f9fafb;
}
.camp-draft-toolbar-sep {
  width: 1px;
  align-self: stretch;
  background: var(--line);
  margin: 0 0.15rem;
}
.camp-draft-surface {
  min-height: 14rem;
  padding: 0.75rem 0.85rem;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  outline: none;
  overflow: auto;
}
.camp-draft-surface.is-empty:before {
  content: attr(data-placeholder);
  white-space: pre-wrap;
  color: var(--muted);
  pointer-events: none;
}
.camp-draft-surface.is-invalid {
  box-shadow: inset 0 0 0 1px var(--bad);
}
.camp-draft-surface.is-drop-target {
  box-shadow: inset 0 0 0 2px var(--brand-2);
  background: #f3f4f6;
}
.camp-draft-surface:focus {
  box-shadow: inset 0 0 0 1px var(--brand-2);
}
.camp-draft-rich img,
.camp-draft-surface img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0.45rem 0;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}
.camp-draft-image-hint {
  color: var(--muted);
}
.camp-draft-textarea-sync {
  display: none !important;
}
.camp-admin-drafts-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.camp-admin-drafts-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.camp-admin-draft-meta {
  min-width: 0;
}
.camp-admin-draft-meta strong {
  display: block;
  color: var(--brand-deep);
}
@media (max-width: 900px) {
  .camp-drafts-layout {
    grid-template-columns: 1fr;
  }
}

/* Password show/hide (password-toggle.js) */
.password-field {
  position: relative;
  display: block;
}
.password-field input[type="password"],
.password-field input[type="text"] {
  width: 100%;
  padding-right: 4.5rem;
  box-sizing: border-box;
}
.password-toggle {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid var(--line, #d0d5dd);
  background: #fff;
  color: var(--brand-deep, #1a3a4a);
  font-size: 0.8rem;
  line-height: 1;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  cursor: pointer;
}
.password-toggle:hover {
  background: #f5f7fa;
}
.password-caps-hint {
  margin: 0.3rem 0 0;
  color: var(--warn, #9a6700);
}

.users-office {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(16rem, 1fr);
  align-items: start;
}
.users-table tr.is-editing td {
  background: #fff8e1;
}
@media (max-width: 899px) {
  .users-office {
    grid-template-columns: 1fr;
  }
}

.actions.is-spread {
  justify-content: space-between;
  margin-top: 0.85rem;
}
.actions.actions-compact {
  margin: 0;
  gap: 0.65rem;
}
.swe-checkpoint-rule h2 {
  margin: 0 0 0.45rem;
}
.swe-checkpoint-foot {
  margin: 0.55rem 0 0;
}

.sheet-tool-menu,
.sheet-row-more {
  position: relative;
  display: inline-block;
}
.sheet-tool-menu > summary,
.sheet-row-more > summary {
  list-style: none;
  cursor: pointer;
}
.sheet-tool-menu > summary::marker,
.sheet-row-more > summary::marker {
  content: none;
}
.sheet-tool-menu > summary::-webkit-details-marker,
.sheet-row-more > summary::-webkit-details-marker {
  display: none;
}
.sheet-tool-menu-panel,
.sheet-row-more-panel {
  position: absolute;
  z-index: 40;
  top: calc(100% + 0.3rem);
  left: 0;
  min-width: 18.5rem;
  max-height: min(70vh, 32rem);
  overflow: auto;
  padding: 0.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.sheet-row-more-panel {
  left: auto;
  right: 0;
  min-width: 9.5rem;
  width: max-content;
  max-width: min(14rem, calc(100vw - 1.25rem));
  z-index: 45;
}
.swe-sheet-table .swe-td-actions {
  position: relative;
  z-index: 2;
  overflow: visible;
}
.swe-sheet-table tbody tr:has(.sheet-row-more[open]) .swe-td-actions {
  z-index: 8;
}
.sheet-row-more-panel .btn,
.sheet-tool-menu-panel .btn {
  width: 100%;
  justify-content: center;
}
.sheet-tool-menu-label {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.sheet-tool-menu-label:first-child {
  margin-top: 0;
}
.sheet-row-more-btn {
  min-width: 2.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

@media (max-width: 899px) {
  table.sheet-cards-mobile thead {
    display: none;
  }
  table.sheet-cards-mobile,
  table.sheet-cards-mobile tbody,
  table.sheet-cards-mobile tr,
  table.sheet-cards-mobile td {
    display: block;
    width: 100%;
  }
  table.sheet-cards-mobile tr {
    border: 1px solid var(--line);
    border-radius: 12px;
    margin: 0 0 0.75rem;
    padding: 0.55rem 0.7rem;
    background: #fff;
  }
  table.sheet-cards-mobile td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
    padding: 0.32rem 0;
    border: 0;
  }
  table.sheet-cards-mobile td::before {
    content: attr(data-label);
    flex: 0 0 5.4rem;
    font-size: 0.78rem;
    font-weight: 650;
    color: var(--muted);
    padding-top: 0.3rem;
  }
  table.sheet-cards-mobile td.swe-td-actions {
    flex-direction: column;
    align-items: stretch;
  }
  table.sheet-cards-mobile td.swe-td-actions::before {
    display: none;
  }
  table.sheet-cards-mobile .swe-row-actions {
    width: 100%;
  }
  table.sheet-cards-mobile td[data-label="Open"]::before {
    display: none;
  }
  table.sheet-cards-mobile td[data-label="Open"] .dept-task-actions {
    width: 100%;
  }
  .swe-sheet-wrap {
    overflow: visible;
  }
}

/* Dense sheet rows — desktop only. Mobile stacked cards keep their padding. */
@media (min-width: 900px) {
  .swe-sheet-table.is-dense thead th {
    padding: 0.38rem 0.5rem;
  }
  .swe-sheet-table.is-dense tbody td {
    padding: 0.2rem 0.5rem;
    white-space: nowrap;
    min-width: 0;
  }
  .swe-sheet-table.is-dense .swe-td-actions {
    overflow: visible;
  }
  .swe-sheet-table.is-dense .swe-email-field,
  .swe-sheet-table.is-dense .swe-email-field input {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .swe-sheet-table.is-dense .swe-col-site {
    min-width: 12rem;
    width: 24%;
  }
  .swe-sheet-table.is-dense .swe-col-email {
    min-width: 7.25rem;
    width: 12%;
  }
  .swe-sheet-table.is-dense .swe-col-actions {
    min-width: 6.25rem;
    width: 8%;
  }
  .swe-sheet-table.is-dense .swe-col-status {
    min-width: 5.5rem;
    width: 7%;
  }
  .swe-sheet-table.is-dense .swe-domain,
  .swe-sheet-table.is-dense .swe-email-field input,
  .swe-sheet-table.is-dense .swe-td-email .swe-email-field input {
    font-size: 0.8rem;
    padding: 0.1rem 0.28rem;
    line-height: 1.25;
  }
  .swe-sheet-table.is-dense .swe-td-email .swe-email-field input,
  .swe-sheet-table.is-dense .swe-email-field input {
    padding-right: 1.3rem;
  }
  .swe-sheet-table.is-dense .swe-domain {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .swe-sheet-table.is-dense .swe-email-clear {
    width: 1.05rem;
    height: 1.05rem;
    font-size: 0.88rem;
    right: 0.12rem;
  }
  .swe-sheet-table.is-dense .swe-open-site {
    padding: 0.1rem 0.36rem;
    font-size: 0.66rem;
  }
  .swe-sheet-table.is-dense .swe-site-cell {
    flex-wrap: nowrap;
    gap: 0.25rem;
  }
  .swe-sheet-table.is-dense .swe-row-chip {
    margin-left: 0;
    padding: 0.02rem 0.26rem;
    font-size: 0.6rem;
  }
  .swe-sheet-table.is-dense .swe-row-actions {
    flex-wrap: nowrap;
    gap: 0.2rem;
  }
  .swe-sheet-table.is-dense .swe-row-actions .btn {
    padding: 0.14rem 0.42rem;
    font-size: 0.74rem;
    border-radius: 6px;
  }
  .swe-sheet-table.is-dense .sheet-row-more-btn {
    min-width: 1.8rem;
    padding: 0.14rem 0.28rem;
  }
  .swe-sheet-table.is-dense .swe-status-badge {
    padding: 0.08rem 0.4rem;
    font-size: 0.66rem;
  }
  .swe-sheet-table.is-dense .swe-cell-text {
    font-size: 0.8rem;
    line-height: 1.2;
  }
}

.swe-email-field:not(.has-value) input::placeholder {
  color: #c5cad3;
  font-weight: 600;
}

.swe-checkpoint-compact {
  margin: 0 0 0.55rem;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 0.82rem;
  color: #4b5563;
  line-height: 1.3;
}
.swe-checkpoint-compact .with-info {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}
.swe-checkpoint-compact .with-info-label {
  font-weight: 600;
  color: #1f2937;
}

.main.is-sheet-app > .alert-box {
  margin: 0 0 0.5rem;
  padding: 0.38rem 0.75rem;
  box-shadow: none;
  align-items: center;
  border-radius: 8px;
}
.main.is-sheet-app > .alert-box.alert-ok .alert-title {
  display: none;
}
.main.is-sheet-app > .alert-box .alert-text {
  font-size: 0.9rem;
  line-height: 1.3;
}
.main.is-sheet-app > .alert-box .alert-icon {
  width: 1.3rem;
  height: 1.3rem;
  font-size: 0.72rem;
}

.swe-list-toolbar .swe-sent-filters {
  margin-top: 0.4rem;
}

/* Author display:flex/block rules beat the UA [hidden] stylesheet, so search
   filters that set el.hidden would otherwise leave cards and rows visible. */
[hidden] {
  display: none !important;
}

/* Website prices — add row + locked identity cells */
.site-price-sheet {
  table-layout: fixed;
  min-width: 96rem;
}
.site-price-sheet .sp-col-check { width: 2.2rem; }
.site-price-sheet .sp-col-site { width: 11.5rem; }
.site-price-sheet .sp-col-niche { width: 12.5rem; }
.site-price-sheet .sp-col-metric { width: 4.4rem; }
.site-price-sheet .sp-col-price { width: 6.5rem; }
.site-price-sheet .sp-col-status { width: 9.2rem; }
.site-price-sheet .sp-col-note { width: 16rem; }
.site-price-sheet .sp-col-email { width: 13rem; }
.site-price-sheet .sp-col-people { width: 13rem; }
.site-price-sheet .sp-col-actions { width: 8.6rem; }
.site-price-sheet td {
  padding: 0.28rem 0.4rem;
  vertical-align: middle;
  overflow: hidden;
}
.site-price-sheet td.site-price-actions-td,
.site-price-sheet td.site-price-add-commit,
.site-price-sheet td.prospect-niche-td,
.site-price-sheet td.site-price-note-td,
.site-price-sheet td.site-price-email-td {
  overflow: visible;
}
.site-price-sheet td.prospect-niche-td {
  position: relative;
  z-index: 1;
}
.site-price-sheet tr:focus-within td.prospect-niche-td {
  z-index: 8;
}
.site-price-sheet .site-price-input,
.site-price-sheet .site-price-status {
  width: 100%;
  min-width: 0;
  padding: 0.28rem 0.4rem;
  font-size: 0.88rem;
}
.site-price-sheet input.site-price-input,
.site-price-sheet .site-price-status {
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-price-sheet textarea.site-price-note {
  display: block;
  box-sizing: border-box;
  overflow: visible;
  text-overflow: clip;
  white-space: pre-wrap !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  resize: vertical;
  min-height: 8rem;
  height: 8rem;
  max-height: none;
  padding: 0.5rem 0.6rem;
  line-height: 1.45;
}
.site-price-sheet textarea.site-price-email {
  display: block;
  box-sizing: border-box;
  overflow: visible;
  text-overflow: clip;
  white-space: pre-wrap !important;
  overflow-wrap: anywhere;
  word-break: break-word;
  resize: vertical;
  min-height: 3rem;
  height: 3rem;
  max-height: none;
  padding: 0.4rem 0.5rem;
  line-height: 1.35;
}
.site-price-sheet .site-price-status {
  min-width: 0;
  appearance: none;
  -webkit-appearance: none;
  font-weight: 700;
  border-radius: 7px;
  border: 1px solid #c5ccd6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23374151' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.45rem center;
  padding-right: 1.35rem;
}
.site-price-sheet .prospect-niche-td .niche-chip-box {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}
.site-price-sheet .prospect-niche-td .niche-chip-input {
  flex: 1 1 3.2rem;
  min-width: 2.8rem;
}
.site-price-sheet .prospect-niche-td .niche-chip-suggest {
  min-width: 100%;
  max-width: 16rem;
  z-index: 70;
}
.site-price-id.is-locked {
  display: inline-block;
  padding: 0.22rem 0.4rem;
  border-radius: 6px;
  background: #eef1f4;
  color: #4b5563;
  font-weight: 650;
}
.is-copy-lock {
  -webkit-user-select: none;
  user-select: none;
}
.site-price-add td {
  background: #f8fafc;
}
.site-price-status-msg.is-error {
  color: #b42318;
  font-weight: 650;
}
.site-price-actions {
  white-space: normal;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.site-price-lane td {
  background: #eef2f6;
  font-weight: 750;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
  padding: 0.4rem 0.65rem;
  border-bottom: 1px solid var(--line);
}
.site-price-lane-title {
  color: var(--brand-deep, #1f2937);
}
.site-price-lane-hint {
  font-weight: 500;
}
.site-price-drag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4rem;
  padding: 0.1rem 0.2rem;
  cursor: grab;
  color: #6b7280;
  font-size: 0.95rem;
  letter-spacing: -0.12em;
  user-select: none;
  line-height: 1;
}
.site-price-drag:active {
  cursor: grabbing;
}
.site-price-row.is-dragging {
  opacity: 0.45;
}
.site-price-row[data-tint="yellow"] td,
.site-price-add[data-tint="yellow"] td {
  background: #fff8e1;
  box-shadow: inset 0 1px 0 #ead7a0, inset 0 -1px 0 #ead7a0;
}
.site-price-row[data-tint="pink"] td,
.site-price-add[data-tint="pink"] td {
  background: #fff1f3;
  box-shadow: inset 0 1px 0 #f4b6c2, inset 0 -1px 0 #f4b6c2;
}
.site-price-row[data-tint="blue"] td,
.site-price-add[data-tint="blue"] td {
  background: #eef5ff;
  box-shadow: inset 0 1px 0 #93c5fd, inset 0 -1px 0 #93c5fd;
}
.site-price-row[data-tint="green"] td,
.site-price-add[data-tint="green"] td {
  background: #eefbf3;
  box-shadow: inset 0 1px 0 #86efac, inset 0 -1px 0 #86efac;
}
.site-price-row[data-tint="yellow"] td:first-child,
.site-price-add[data-tint="yellow"] td:first-child {
  box-shadow: inset 2px 1px 0 #ead7a0, inset 0 -1px 0 #ead7a0;
  border-radius: 10px 0 0 10px;
}
.site-price-row[data-tint="pink"] td:first-child,
.site-price-add[data-tint="pink"] td:first-child {
  box-shadow: inset 2px 1px 0 #f4b6c2, inset 0 -1px 0 #f4b6c2;
  border-radius: 10px 0 0 10px;
}
.site-price-row[data-tint="blue"] td:first-child,
.site-price-add[data-tint="blue"] td:first-child {
  box-shadow: inset 2px 1px 0 #93c5fd, inset 0 -1px 0 #93c5fd;
  border-radius: 10px 0 0 10px;
}
.site-price-row[data-tint="green"] td:first-child,
.site-price-add[data-tint="green"] td:first-child {
  box-shadow: inset 2px 1px 0 #86efac, inset 0 -1px 0 #86efac;
  border-radius: 10px 0 0 10px;
}
.site-price-row[data-tint="yellow"] td:last-child,
.site-price-add[data-tint="yellow"] td:last-child {
  box-shadow: inset -2px 1px 0 #ead7a0, inset 0 -1px 0 #ead7a0;
  border-radius: 0 10px 10px 0;
}
.site-price-row[data-tint="pink"] td:last-child,
.site-price-add[data-tint="pink"] td:last-child {
  box-shadow: inset -2px 1px 0 #f4b6c2, inset 0 -1px 0 #f4b6c2;
  border-radius: 0 10px 10px 0;
}
.site-price-row[data-tint="blue"] td:last-child,
.site-price-add[data-tint="blue"] td:last-child {
  box-shadow: inset -2px 1px 0 #93c5fd, inset 0 -1px 0 #93c5fd;
  border-radius: 0 10px 10px 0;
}
.site-price-row[data-tint="green"] td:last-child,
.site-price-add[data-tint="green"] td:last-child {
  box-shadow: inset -2px 1px 0 #86efac, inset 0 -1px 0 #86efac;
  border-radius: 0 10px 10px 0;
}
.site-price-row[data-tint="yellow"] .site-price-input,
.site-price-row[data-tint="yellow"] textarea,
.site-price-row[data-tint="yellow"] .niche-chip-box,
.site-price-row[data-tint="yellow"] .site-price-id.is-locked,
.site-price-add[data-tint="yellow"] .site-price-input,
.site-price-add[data-tint="yellow"] textarea,
.site-price-add[data-tint="yellow"] .niche-chip-box {
  background: rgba(255, 255, 255, 0.42);
}
.site-price-row[data-tint="pink"] .site-price-input,
.site-price-row[data-tint="pink"] textarea,
.site-price-row[data-tint="pink"] .niche-chip-box,
.site-price-row[data-tint="pink"] .site-price-id.is-locked,
.site-price-add[data-tint="pink"] .site-price-input,
.site-price-add[data-tint="pink"] textarea,
.site-price-add[data-tint="pink"] .niche-chip-box {
  background: rgba(255, 255, 255, 0.42);
}
.site-price-row[data-tint="blue"] .site-price-input,
.site-price-row[data-tint="blue"] textarea,
.site-price-row[data-tint="blue"] .niche-chip-box,
.site-price-row[data-tint="blue"] .site-price-id.is-locked,
.site-price-add[data-tint="blue"] .site-price-input,
.site-price-add[data-tint="blue"] textarea,
.site-price-add[data-tint="blue"] .niche-chip-box {
  background: rgba(255, 255, 255, 0.42);
}
.site-price-row[data-tint="green"] .site-price-input,
.site-price-row[data-tint="green"] textarea,
.site-price-row[data-tint="green"] .niche-chip-box,
.site-price-row[data-tint="green"] .site-price-id.is-locked,
.site-price-add[data-tint="green"] .site-price-input,
.site-price-add[data-tint="green"] textarea,
.site-price-add[data-tint="green"] .niche-chip-box {
  background: rgba(255, 255, 255, 0.42);
}
.site-price-row.is-drop-before td {
  box-shadow: inset 0 2px 0 #2563eb;
}
.site-price-row.is-drop-after td {
  box-shadow: inset 0 -2px 0 #2563eb;
}
.site-price-sheet tr.sheet-search-hit td {
  outline: 2px solid #4b5563;
  outline-offset: -2px;
}
.site-price-check-th,
.site-price-check-td {
  width: 2.1rem;
  text-align: center;
  vertical-align: middle;
}
.site-price-tints {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}
.site-price-tint {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 999px;
  border: 1px solid #c5ccd6;
  padding: 0;
  cursor: pointer;
  background: #fff;
  flex: 0 0 auto;
}
.site-price-tint.is-none { background: #fff; }
.site-price-tint.is-yellow { background: #fde68a; }
.site-price-tint.is-pink { background: #fecdd3; }
.site-price-tint.is-blue { background: #bfdbfe; }
.site-price-tint.is-green { background: #bbf7d0; }
.site-price-tint.is-on {
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px #2563eb;
}
.site-price-add-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  min-width: 0;
}
.site-price-add-status .site-price-status {
  flex: 1 1 7rem;
}
.site-price-add-commit {
  vertical-align: middle;
  white-space: nowrap;
}
.site-price-add-commit .btn {
  white-space: nowrap;
}
.site-price-color-panel {
  min-width: 9.5rem;
}
.site-price-color-panel .site-price-tint {
  width: auto;
  min-width: 100%;
  height: auto;
  border-radius: 8px;
  padding: 0.28rem 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  justify-content: flex-start;
  background: #fff;
  box-sizing: border-box;
}
.site-price-color-panel .site-price-tint.is-none { background: #fff; }
.site-price-color-panel .site-price-tint.is-yellow { background: #fef3c7; }
.site-price-color-panel .site-price-tint.is-pink { background: #ffe4e6; }
.site-price-color-panel .site-price-tint.is-blue { background: #dbeafe; }
.site-price-color-panel .site-price-tint.is-green { background: #dcfce7; }
.site-price-color-panel .site-price-tint span {
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--ink);
}
.site-price-tint-chips {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}
.site-price-tint-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.55rem;
  border-radius: 999px;
  border: 1px solid #d5dbe3;
  background: #fff;
  font-size: 0.8rem;
  font-weight: 650;
  text-decoration: none;
  color: inherit;
}
.site-price-tint-chip.is-yellow { background: #fde68a; }
.site-price-tint-chip.is-pink { background: #fecdd3; }
.site-price-tint-chip.is-blue { background: #bfdbfe; }
.site-price-tint-chip.is-green { background: #bbf7d0; }
.site-price-tint-chip.is-on {
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px #2563eb;
}
.site-price-match-count {
  align-self: center;
}
.site-price-sheet[data-admin="0"] [data-site-price-row],
.site-price-sheet[data-admin="0"] [data-site-price-row] input,
.site-price-sheet[data-admin="0"] [data-site-price-row] select,
.site-price-sheet[data-admin="0"] [data-site-price-row] textarea {
  -webkit-user-select: none;
  user-select: none;
}
.site-price-sheet[data-admin="0"] [data-site-price-add],
.site-price-sheet[data-admin="0"] [data-site-price-add] input,
.site-price-sheet[data-admin="0"] [data-site-price-add] textarea {
  -webkit-user-select: text;
  user-select: text;
}
.site-price-jump-wrap {
  margin: 0 0 0.65rem;
}
.site-price-jump-wrap.site-price-jump-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
}
.site-price-jump-copy {
  flex: 1 1 100%;
  margin: 0;
}
.site-price-jump-heading {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 750;
}
.site-price-jump-hint {
  margin: 0.1rem 0 0;
  font-size: 0.8rem;
}
.site-price-jump-wrap > summary {
  cursor: pointer;
  width: fit-content;
}
.site-price-jump {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin: 0.45rem 0 0;
}
.site-price-jump .sheet-search input[type="search"],
.site-price-jump-top .sheet-search input[type="search"] {
  width: 18rem;
  max-width: 100%;
}
.site-price-jump-status {
  min-width: 5rem;
  font-weight: 650;
}
.site-price-jump-results {
  list-style: none;
  width: 100%;
  margin: 0.15rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.2rem;
  max-height: 14rem;
  overflow: auto;
}
.site-price-jump-results[hidden] {
  display: none;
}
.site-price-jump-results a {
  display: block;
  padding: 0.28rem 0.45rem;
  border-radius: 6px;
  background: #f3f4f6;
  color: inherit;
  text-decoration: none;
}
.site-price-jump-results a.is-on,
.site-price-jump-results a:hover {
  background: #e5e7eb;
}
.site-price-switcher {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 0.85rem;
  margin: 0 0 0.65rem;
}
.site-price-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin: 0 0 0.65rem;
}
.site-price-pager {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.75rem 0 0.25rem;
}
.site-price-status.is-color-green {
  background-color: #d1fae5;
  border-color: #2f6f4e;
  color: #14532d;
}
.site-price-status.is-color-blue {
  background-color: #dbeafe;
  border-color: #2563eb;
  color: #1e3a8a;
}
.site-price-status.is-color-rose {
  background-color: #ffe4e6;
  border-color: #be123c;
  color: #9f1239;
}
.site-price-status.is-color-teal {
  background-color: #ccfbf1;
  border-color: #0f766e;
  color: #115e59;
}
.site-price-status.is-color-brown {
  background-color: #fde68a;
  border-color: #92400e;
  color: #78350f;
}
.site-price-status.is-color-grey {
  background-color: #e5e7eb;
  border-color: #6b7280;
  color: #1f2937;
}
.site-price-status option {
  background: #fff;
  color: #111827;
}
.site-price-status-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
}
.site-price-status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.18rem 0.5rem;
  border: 1px solid #d5dbe3;
  border-radius: 999px;
  background: #f8fafc;
  font-size: 0.82rem;
  font-weight: 650;
}
.site-price-status-chip.is-color-green { border-color: #2f6f4e; color: #2f6f4e; }
.site-price-status-chip.is-color-blue { border-color: #2563eb; color: #1d4ed8; }
.site-price-status-chip.is-color-rose { border-color: #be123c; color: #9f1239; }
.site-price-status-chip.is-color-teal { border-color: #0f766e; color: #0f766e; }
.site-price-status-chip.is-color-brown { border-color: #92400e; color: #92400e; }
.site-price-status-del {
  display: inline;
  margin: 0;
}
.site-price-status-x {
  border: 0;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 0.05rem;
}
.site-price-status-add {
  max-width: 28rem;
}
.site-price-people {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  max-width: 100%;
  font-size: 0.82rem;
  line-height: 1.25;
}
.site-price-people-line {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  min-width: 0;
  white-space: nowrap;
}
.site-price-people-line .muted {
  flex: 0 0 auto;
}
.site-price-people-assign {
  flex-wrap: wrap;
  white-space: normal;
}
.site-price-assign {
  flex: 1 1 7rem;
  min-width: 0;
  max-width: 100%;
  font-size: 0.82rem;
  font-weight: 600;
}
.site-price-people-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-price-people-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.1rem;
}
.site-price-history {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
}
.site-price-history li + li {
  margin-top: 0.2rem;
}
.site-price-history-row td {
  background: #f6f8fb;
  padding: 0.55rem 0.75rem;
}
.site-price-country-tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: 0;
  padding: 0.45rem 0.15rem 0.35rem;
  background: #fff;
  flex: 1 1 16rem;
}
.site-price-country-more {
  display: inline-block;
  position: relative;
}
.site-price-country-more summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  list-style: none;
}
.site-price-country-more summary::-webkit-details-marker { display: none; }
.site-price-country-more-list {
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 8;
  min-width: 12rem;
  max-height: 16rem;
  overflow: auto;
  padding: 0.35rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.site-price-list-toolbar.site-price-filters {
  align-items: flex-end;
}
.site-price-list-toolbar .site-price-filter {
  margin: 0;
}
.site-price-filters .sheet-search input[type="search"] {
  width: 16rem;
  max-width: 100%;
}
.site-price-people-cell {
  min-width: 0;
  vertical-align: top;
}
.site-price-sheet td.site-price-note-td,
.site-price-sheet td.site-price-email-td {
  overflow: visible !important;
  height: auto;
  vertical-align: top;
}
.site-price-filter {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.82rem;
  color: var(--muted, #6b7280);
  font-weight: 650;
}
.site-price-filter select {
  min-width: 8.5rem;
  font-weight: 600;
  color: var(--ink);
}
@media (max-width: 899px) {
  table.sheet-cards-mobile tr.site-price-lane {
    padding: 0.4rem 0.7rem;
    background: #eef2f6;
  }
  table.sheet-cards-mobile tr.site-price-lane td {
    display: block;
    justify-content: flex-start;
  }
  table.sheet-cards-mobile tr.site-price-lane td::before {
    content: none;
  }
  table.sheet-cards-mobile tr.site-price-history-row td {
    display: block;
  }
  table.sheet-cards-mobile tr.site-price-history-row td::before {
    content: none;
  }
  table.sheet-cards-mobile td.site-price-add-commit::before {
    content: none;
    flex: 0;
  }
  table.sheet-cards-mobile .site-price-add-status {
    flex: 1;
  }
  table.sheet-cards-mobile td.site-price-people-cell,
  table.sheet-cards-mobile td.site-price-note-td,
  table.sheet-cards-mobile td.site-price-email-td,
  table.sheet-cards-mobile td.prospect-niche-td,
  table.sheet-cards-mobile td[data-label="Email"],
  table.sheet-cards-mobile td[data-label="Status"] {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  table.sheet-cards-mobile td.site-price-people-cell .site-price-people,
  table.sheet-cards-mobile td.site-price-note-td .site-price-input,
  table.sheet-cards-mobile td.site-price-email-td .site-price-input,
  table.sheet-cards-mobile td.prospect-niche-td .niche-chip-box,
  table.sheet-cards-mobile td[data-label="Email"] .site-price-input,
  table.sheet-cards-mobile td[data-label="Status"] .site-price-status {
    flex: 1 1 12rem;
    min-width: 0;
  }
  table.sheet-cards-mobile td.site-price-people-cell .site-price-people-line,
  table.sheet-cards-mobile td.site-price-people-cell .site-price-people-name {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
  table.sheet-cards-mobile tr.site-price-row[data-tint="yellow"],
  table.sheet-cards-mobile tr.site-price-add[data-tint="yellow"] {
    background: #fff8e1;
    border-color: #ead7a0;
  }
  table.sheet-cards-mobile tr.site-price-row[data-tint="pink"],
  table.sheet-cards-mobile tr.site-price-add[data-tint="pink"] {
    background: #fff1f3;
    border-color: #f4b6c2;
  }
  table.sheet-cards-mobile tr.site-price-row[data-tint="blue"],
  table.sheet-cards-mobile tr.site-price-add[data-tint="blue"] {
    background: #eef5ff;
    border-color: #93c5fd;
  }
  table.sheet-cards-mobile tr.site-price-row[data-tint="green"],
  table.sheet-cards-mobile tr.site-price-add[data-tint="green"] {
    background: #eefbf3;
    border-color: #86efac;
  }
  table.sheet-cards-mobile tr.site-price-row[data-tint="yellow"] td,
  table.sheet-cards-mobile tr.site-price-row[data-tint="pink"] td,
  table.sheet-cards-mobile tr.site-price-row[data-tint="blue"] td,
  table.sheet-cards-mobile tr.site-price-row[data-tint="green"] td,
  table.sheet-cards-mobile tr.site-price-add[data-tint="yellow"] td,
  table.sheet-cards-mobile tr.site-price-add[data-tint="pink"] td,
  table.sheet-cards-mobile tr.site-price-add[data-tint="blue"] td,
  table.sheet-cards-mobile tr.site-price-add[data-tint="green"] td {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
  }
}
