/* Partner portal (justivo.app/<lang>/partner) — the same brand as the
   landing page: the fonts, colours and buttons come from app.css; what is
   added here is the workspace itself (header, table, case view, forms).
   Deliberately quiet: a lawyer reads long texts in it, often on a phone. */

@import "app.css";

body {
  background: var(--off-white);
}

/* ===== Frame ===== */
.p-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 20;
}

.p-header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.p-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}

.p-logo img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.p-nav {
  display: flex;
  gap: 4px;
}

.p-nav a {
  padding: 7px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-light);
  transition: all 0.2s ease;
}

.p-nav a:hover {
  background: var(--gray-100);
  color: var(--navy);
}

.p-nav a.is-active {
  background: rgba(26, 35, 126, 0.08);
  color: var(--navy);
}

.p-header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
}

.p-firm {
  color: var(--text-light);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.p-langs {
  display: flex;
  gap: 2px;
}

.p-langs a {
  padding: 4px 9px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-light);
}

.p-langs a:hover {
  background: var(--gray-100);
}

.p-langs a.is-active {
  background: var(--navy);
  color: var(--white);
}

.p-logout {
  color: var(--text-light);
  font-weight: 600;
}

.p-logout:hover {
  color: var(--navy);
}

.p-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 24px 64px;
}

.p-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 4px;
}

.p-sub {
  color: var(--text-light);
  font-size: 0.95rem;
  max-width: 640px;
}

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

/* ===== Card ===== */
.p-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.p-card-body {
  padding: 20px;
}

.p-card-title {
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 10px;
}

/* ===== Table ===== */
.p-table-wrap {
  overflow-x: auto;
}

.p-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}

.p-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-light);
  border-bottom: 1px solid var(--gray-200);
  white-space: nowrap;
}

.p-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--gray-100);
  vertical-align: top;
}

.p-table tr:last-child td {
  border-bottom: 0;
}

.p-table tbody tr:hover {
  background: rgba(26, 35, 126, 0.03);
}

/* the whole row opens the case, not only the number */
.p-row-link {
  cursor: pointer;
}

.p-row-link:hover .p-case-link {
  text-decoration: underline;
}

.p-case-link {
  color: var(--navy);
  font-weight: 700;
}

.p-case-link:hover {
  color: var(--navy-light);
  text-decoration: underline;
}

.p-empty {
  padding: 24px 16px;
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ===== Badges ===== */
.p-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.p-badge-wait {
  background: var(--gold-light);
  color: var(--gold-dark);
}

.p-badge-work {
  background: rgba(26, 35, 126, 0.1);
  color: var(--navy);
}

.p-badge-done {
  background: #DCFCE7;
  color: #166534;
}

.p-badge-off {
  background: var(--gray-100);
  color: var(--text-light);
}

.p-badge-demo {
  background: rgba(57, 73, 171, 0.12);
  color: var(--navy-light);
}

.p-badge-kind {
  background: transparent;
  border: 1px solid var(--gray-200);
  color: var(--text-light);
}

/* ===== Buttons (smaller siblings of the landing's) ===== */
.p-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.p-btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--navy-dark);
  box-shadow: var(--shadow-gold);
}

.p-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212, 168, 67, 0.35);
}

.p-btn-navy {
  background: var(--navy);
  color: var(--white);
}

.p-btn-navy:hover {
  background: var(--navy-light);
}

.p-btn-ghost {
  background: transparent;
  color: var(--text-light);
  border-color: var(--gray-200);
}

.p-btn-ghost:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.p-btn-link {
  background: none;
  border: 0;
  color: var(--navy);
  font-weight: 600;
  cursor: pointer;
  padding: 6px 0;
  font-size: 0.9rem;
}

.p-btn-link:hover {
  text-decoration: underline;
}

.p-back {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--text-light);
  font-weight: 600;
}

.p-back:hover {
  color: var(--navy);
}

/* ===== Tabs ===== */
.p-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 16px;
}

.p-tab {
  padding: 10px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-light);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  background: none;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  font-family: inherit;
}

.p-tab:hover {
  color: var(--navy);
}

.p-tab.is-active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

/* ===== Case view ===== */
.p-case-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.p-case-head h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  color: var(--navy-dark);
}

.p-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .p-grid {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }
}

.p-note {
  background: var(--gold-light);
  border: 1px solid rgba(212, 168, 67, 0.4);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.93rem;
  margin-bottom: 16px;
}

.p-text {
  white-space: pre-wrap;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--text);
  overflow-wrap: break-word;
}

.p-doc {
  margin-bottom: 28px;
}

.p-doc h3 {
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 8px;
}

.p-ai-note {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* Conversation */
.p-msg {
  margin-bottom: 14px;
  max-width: 85%;
}

.p-msg-role {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-bottom: 3px;
}

.p-bubble {
  padding: 12px 16px;
  border-radius: 14px;
  white-space: pre-wrap;
  font-size: 0.92rem;
  line-height: 1.65;
}

.p-msg-client .p-bubble {
  background: var(--gray-100);
  color: var(--text);
  border-top-left-radius: 4px;
}

.p-msg-ours {
  margin-left: auto;
}

.p-msg-ours .p-bubble {
  background: var(--navy);
  color: var(--white);
  border-top-right-radius: 4px;
}

.p-msg-ours .p-msg-role {
  text-align: right;
}

/* ===== Forms ===== */
.p-form {
  display: grid;
  gap: 14px;
}

@media (min-width: 640px) {
  .p-form-2 {
    grid-template-columns: 1fr 1fr;
  }

  .p-form-2 .p-span-2 {
    grid-column: span 2;
  }
}

.p-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}

.p-field {
  margin-bottom: 4px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
select,
textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.93rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.12);
}

textarea {
  line-height: 1.6;
  resize: vertical;
}

.p-meta {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.6;
}

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

.p-stack > * + * {
  margin-top: 16px;
}

/* ===== Flash ===== */
/* the look comes from app.css; here it only moves below the sticky header,
   so it never covers "log out" */
.flash-info,
.flash-error {
  top: 76px;
  z-index: 50;
  box-shadow: var(--shadow-md);
}

/* ===== The firm's tools on a case ===== */
.p-deadline {
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.9rem;
}

.p-deadline:last-child {
  border-bottom: 0;
}

.p-overdue {
  color: #B91C1C;
  font-weight: 600;
}

.p-note-item {
  border-top: 1px solid var(--gray-100);
  padding: 10px 0;
}

.p-time-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.p-time-item {
  border-top: 1px solid var(--gray-100);
  padding: 7px 0;
}

.p-total {
  margin-top: 12px;
  font-weight: 700;
  color: var(--navy-dark);
}

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

@media (min-width: 640px) {
  .p-stats {
    grid-template-columns: repeat(5, 1fr);
  }
}

.p-stat-value {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  color: var(--navy-dark);
}

.p-stat-label {
  font-size: 0.78rem;
  color: var(--text-light);
}

.p-seat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--gray-100);
  padding: 9px 0;
  font-size: 0.9rem;
}

/* Files on a case: the client's own uploads and what the firm sends back */
.p-file {
  border-top: 1px solid var(--gray-100);
  padding: 9px 0;
  font-size: 0.9rem;
  word-break: break-word;
}

.p-file:first-of-type {
  border-top: 0;
}

.p-upload {
  display: block;
  border: 1px dashed var(--gray-200);
  border-radius: 10px;
  padding: 12px;
  background: var(--gray-100);
  font-size: 0.88rem;
}

.p-upload input[type='file'] {
  width: 100%;
  font-size: 0.88rem;
  color: var(--text-light);
}

/* ===== Assistant, sources, research ===== */
.p-assistant .p-msg-ours {
  max-width: 100%;
  margin-left: 0;
}

/* the answer is a document to read, with links: light, not the navy bubble */
.p-assistant .p-msg-ours .p-bubble {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--gray-200);
  border-top-left-radius: 4px;
  border-top-right-radius: 14px;
}

.p-assistant .p-msg-ours .p-msg-role {
  text-align: left;
}

.p-as-thread {
  margin: 14px 0;
}

.p-as-working {
  font-style: italic;
}

.p-as-modes {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.p-sources {
  margin-top: 8px;
  border-left: 3px solid var(--gold);
  padding-left: 12px;
}

.p-sources-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-light);
  margin-bottom: 4px;
}

.p-source {
  padding: 6px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.9rem;
}

.p-source summary {
  cursor: pointer;
  list-style: none;
}

.p-source summary::-webkit-details-marker {
  display: none;
}

.p-source-mark {
  display: inline-block;
  width: 1.2em;
  color: #2e7d32;
  font-weight: 700;
}

.p-source.is-missing .p-source-mark {
  color: #c62828;
}

.p-source blockquote {
  margin: 8px 0;
  padding: 8px 12px;
  background: var(--gray-100);
  border-radius: 8px;
  font-size: 0.86rem;
}

.p-result .p-text {
  margin: 8px 0;
  font-size: 0.88rem;
}

.p-search-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 640px) {
  .p-search-row {
    grid-template-columns: 1fr auto auto;
  }
}

.p-workup ol,
.p-workup ul {
  margin: 6px 0 14px 20px;
}

.p-workup .p-table td {
  vertical-align: top;
}

.p-terms section {
  margin-bottom: 14px;
}

/* ===== Beta, hints, journal ===== */
.p-beta {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy);
  background: var(--gold-light);
  border: 1px solid rgba(212, 168, 67, 0.5);
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}

.p-beta-note {
  font-size: 0.8rem;
  color: var(--text-light);
  margin: 0 0 12px;
}

.p-hints {
  border-left: 3px solid #c62828;
  background: var(--white);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
}

.p-hint {
  font-size: 0.9rem;
  padding: 3px 0;
}

.p-hint-next,
.p-hint-unknowns {
  color: var(--text-light);
}

.p-journal-h {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-light);
  margin: 14px 0 6px;
}

.p-journal-list {
  margin: 0 0 4px 18px;
  font-size: 0.9rem;
}

.p-task {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 0;
  font-size: 0.9rem;
}

.p-task-title {
  flex: 1;
}

.p-task.is-done .p-task-title {
  text-decoration: line-through;
  color: var(--text-light);
}

.p-task-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-top: 8px;
}

@media (min-width: 640px) {
  .p-task-form {
    grid-template-columns: 1fr auto auto;
  }
}

/* ===== Grid review ===== */
.p-grid-table td {
  vertical-align: top;
  font-size: 0.85rem;
  min-width: 120px;
}

.p-grid-table td[title] {
  cursor: help;
}

/* ===== "How it works" button in the header ===== */
.p-how {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy-dark);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  box-shadow: var(--shadow-gold);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.p-how:hover,
.p-how.is-active {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(212, 168, 67, 0.4);
}

.p-how-q {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 800;
}

/* ===== Guide (/partner/guide) — drawings in HTML and CSS ===== */
.g-hero {
  display: grid;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  color: var(--white);
  border-radius: 20px;
  padding: 28px 22px;
  margin-bottom: 18px;
  overflow: hidden;
}

.g-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.9rem;
  line-height: 1.2;
  margin: 10px 0 10px;
}

.g-hero p {
  color: rgba(255, 255, 255, 0.82);
  margin: 0 0 18px;
  max-width: 560px;
}

.g-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid rgba(245, 230, 200, 0.4);
  border-radius: 999px;
  padding: 3px 10px;
}

.g-hero-art {
  display: none;
  position: relative;
  height: 190px;
}

.g-hero-card {
  position: absolute;
  inset: 10px 40px 40px 0;
  background: var(--white);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  transform: rotate(-2deg);
}

.g-hero-card-2 {
  inset: 95px 0 0 120px;
  transform: rotate(3deg);
  background: var(--gold-light);
}

.g-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
}

.g-line {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: var(--gray-200);
}

.g-w40 { width: 40%; }
.g-w50 { width: 50%; }
.g-w60 { width: 60%; }
.g-w70 { width: 70%; }
.g-w80 { width: 80%; }
.g-w90 { width: 90%; }

.g-chip {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 6px;
  padding: 3px 8px;
  white-space: nowrap;
}

.g-chip-ok { background: #e6f4ea; color: #1e6b34; }
.g-chip-bad { background: #fdecea; color: #b3261e; }
.g-chip-old { background: var(--gray-200); color: #374151; }
.g-chip-amend { background: #fff4e0; color: #8a5300; }
.g-chip-gold { background: var(--navy); color: var(--gold-light); }

.g-toc {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 12px;
  margin-bottom: 6px;
  scrollbar-width: thin;
}

.g-toc a {
  flex: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 6px 12px;
}

.g-toc a:hover {
  border-color: var(--gold);
}

.g-section {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 18px;
  padding: 22px 18px;
  margin-bottom: 18px;
  scroll-margin-top: 80px;
}

.g-h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.35rem;
  color: var(--navy-dark);
  margin: 0 0 8px;
}

.g-num {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
}

.g-h3 {
  font-size: 1.02rem;
  color: var(--navy-dark);
  margin: 22px 0 10px;
}

.g-lead {
  color: var(--text-light);
  margin: 0 0 18px;
  max-width: 760px;
}

.g-note {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 10px 0 0;
}

/* the way of a case */
.g-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  counter-reset: none;
}

.g-step {
  position: relative;
  background: var(--off-white);
  border-radius: 14px;
  padding: 16px 16px 14px;
  border-top: 3px solid var(--gold);
}

.g-step h3 {
  font-size: 0.98rem;
  color: var(--navy-dark);
  margin: 10px 0 6px;
}

.g-step p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin: 0;
}

.g-step-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--white);
  color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.g-step-n {
  position: absolute;
  top: 12px;
  right: 14px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.6;
}

.g-statuses {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.g-statuses-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-light);
}

.g-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.g-arrow,
.g-or {
  color: var(--text-light);
  font-size: 0.85rem;
}

/* the case page, drawn */
.g-shot {
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--off-white);
}

.g-shot-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
}

.g-shot-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-200);
}

.g-shot-bar em {
  font-style: normal;
  font-size: 0.75rem;
  color: var(--text-light);
  margin-left: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.g-shot-body {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.g-shot-main,
.g-shot-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.g-marker {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-dark);
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.25);
}

.g-mk-row,
.g-mk-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.g-mk-btn {
  font-size: 0.72rem;
  color: var(--text-light);
  border: 1px solid var(--gray-200);
  background: var(--white);
  border-radius: 8px;
  padding: 3px 8px;
}

.g-mk-hints {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border-left: 3px solid #c62828;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.8rem;
}

.g-mk-hints .g-line {
  flex: 1;
}

.g-mk-tab {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-light);
  border-radius: 8px;
  padding: 4px 8px;
  background: var(--white);
  border: 1px solid var(--gray-200);
}

.g-mk-tab.is-active {
  color: var(--navy);
  border-color: var(--navy);
}

.g-mk-content {
  background: var(--white);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.g-mk-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy-dark);
}

.g-mk-card-main {
  border-color: var(--gold);
}

.g-mk-gold {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--navy-dark);
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  border-radius: 8px;
  padding: 3px 9px;
}

.g-legend {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
}

.g-legend-item dt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--navy-dark);
  margin-bottom: 4px;
}

.g-legend-item dd {
  margin: 0 0 0 32px;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* tabs, rules */
.g-cards,
.g-rules {
  display: grid;
  gap: 12px;
}

.g-card {
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 16px;
}

.g-card h3,
.g-rule h3 {
  font-size: 0.98rem;
  color: var(--navy-dark);
  margin: 10px 0 6px;
}

.g-card p,
.g-rule p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin: 0;
}

.g-card-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(26, 35, 126, 0.07);
  color: var(--navy);
  flex: none;
}

.g-rule {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.g-rule h3 {
  margin-top: 2px;
}

/* the assistant */
.g-library {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: var(--off-white);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 16px;
}

.g-lib-src {
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 5px 10px;
  color: var(--navy-dark);
}

.g-lib-arrow {
  color: var(--gold-dark);
  font-weight: 800;
}

.g-lib-ai {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  font-weight: 800;
  font-size: 0.85rem;
}

.g-lib-check {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e6b34;
  background: #e6f4ea;
  border-radius: 8px;
  padding: 5px 10px;
}

.g-modes {
  display: grid;
  gap: 12px;
}

.g-mode {
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 14px;
}

.g-mode-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.g-mode p {
  font-size: 0.88rem;
  color: var(--text-light);
  margin: 10px 0 0;
}

.g-time {
  font-size: 0.78rem;
  color: var(--text-light);
  white-space: nowrap;
}

.g-marks {
  display: grid;
  gap: 8px;
}

.g-mark {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text);
}

.g-mark .g-chip {
  flex: none;
  min-width: 120px;
  text-align: center;
}

.g-cycle {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.g-cycle li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--gold-light);
  border-radius: 14px;
  padding: 14px 14px 14px 52px;
  font-size: 0.88rem;
}

.g-cycle li b {
  color: var(--navy-dark);
}

.g-cycle-n {
  position: absolute;
  left: 14px;
  top: 14px;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  font-weight: 800;
  font-size: 0.8rem;
}

/* Live: what the client sees */
.g-split {
  display: grid;
  gap: 12px;
}

.g-split-col {
  border-radius: 14px;
  padding: 16px;
}

.g-split-col h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  margin: 0 0 10px;
}

.g-split-col ul {
  margin: 0;
  padding-left: 20px;
  font-size: 0.9rem;
  display: grid;
  gap: 6px;
}

.g-split-sees {
  background: #e6f4ea;
  color: #14432a;
}

.g-split-private {
  background: rgba(26, 35, 126, 0.06);
  color: var(--navy-dark);
}

.g-two {
  display: grid;
  gap: 0 18px;
}

.g-list {
  list-style: none;
  margin: 8px 0 16px;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.g-list b {
  color: var(--navy-dark);
}

.g-help {
  margin: 18px 0 0;
  font-size: 0.9rem;
  color: var(--text-light);
}

.g-help a {
  color: var(--navy);
  font-weight: 600;
}

@media (min-width: 640px) {
  .g-hero {
    padding: 36px 34px;
  }

  .g-section {
    padding: 26px 26px;
  }

  .g-flow,
  .g-cards,
  .g-modes,
  .g-split,
  .g-legend {
    grid-template-columns: 1fr 1fr;
  }

  .g-legend {
    gap: 14px 24px;
  }
}

@media (min-width: 1024px) {
  .g-hero {
    grid-template-columns: 1.4fr 1fr;
  }

  .g-hero-art {
    display: block;
  }

  .g-flow {
    grid-template-columns: repeat(3, 1fr);
  }

  .g-cards {
    grid-template-columns: repeat(4, 1fr);
  }

  .g-modes {
    grid-template-columns: repeat(4, 1fr);
  }

  .g-cycle {
    grid-template-columns: repeat(3, 1fr);
  }

  .g-rules {
    grid-template-columns: repeat(3, 1fr);
  }

  .g-shot-body {
    grid-template-columns: 2fr 1fr;
  }

  .g-two {
    grid-template-columns: 1fr 1fr;
  }
}

.g-mode-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  background: rgba(26, 35, 126, 0.07);
  border-radius: 8px;
  padding: 5px 10px;
}

.g-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* on a phone the header's right side wraps instead of running off the screen */
@media (max-width: 639px) {
  .p-header-right {
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .p-nav {
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .p-nav a {
    white-space: nowrap;
  }
}

/* guide: step by step */
.g-recipe-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.g-recipe-toc a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  background: rgba(26, 35, 126, 0.06);
  border-radius: 8px;
  padding: 5px 10px;
}

.g-recipes {
  display: grid;
  gap: 14px;
}

.g-recipe {
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--gold);
  border-radius: 14px;
  padding: 16px 18px;
  scroll-margin-top: 80px;
}

.g-recipe h3 {
  font-size: 1.02rem;
  color: var(--navy-dark);
  margin: 0 0 10px;
}

.g-recipe ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: g-step;
  display: grid;
  gap: 8px;
}

.g-recipe ol li {
  counter-increment: g-step;
  position: relative;
  padding-left: 34px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.g-recipe ol li::before {
  content: counter(g-step);
  position: absolute;
  left: 0;
  top: 0;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 800;
}

.g-examples {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.g-example {
  background: var(--off-white);
  border-radius: 12px;
  padding: 10px 12px;
}

.g-example p {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: var(--text);
  font-style: italic;
}

.g-tip {
  margin: 12px 0 0;
  font-size: 0.88rem;
  color: var(--text-light);
}

.p-howto {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

@media (min-width: 1024px) {
  .g-recipes {
    grid-template-columns: 1fr 1fr;
  }

  .g-examples {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== Partner front door (/partner/welcome, /partner/enter) ===== */
.w-main {
  max-width: 1120px;
}

.w-hero h1 {
  font-size: 2.1rem;
}

.w-grid {
  display: grid;
  gap: 0 18px;
}

.w-grid .g-num svg,
.g-section .g-num svg {
  display: block;
}

.w-login .p-form,
.w-apply {
  display: grid;
  gap: 12px;
}

.w-login input[type="email"] {
  width: 100%;
}

.w-done {
  background: #e6f4ea;
  color: #14432a;
  border-radius: 14px;
  padding: 16px 18px;
}

.w-done p {
  margin: 6px 0 0;
}

.w-error {
  color: #b3261e;
  font-size: 0.9rem;
  margin: 0;
}

.w-small {
  font-size: 0.85rem;
  margin: 14px 0 0;
}

.w-benefit-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.w-benefit-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.93rem;
  color: var(--text);
}

.w-fields {
  display: grid;
  gap: 12px;
}

.w-field {
  display: grid;
  gap: 5px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-dark);
}

.w-field input,
.w-field textarea {
  font-weight: 400;
}

.w-langs {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.w-langs legend {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-dark);
  margin-bottom: 6px;
}

.w-chip-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--gray-200);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.w-chip-check:has(input:checked) {
  border-color: var(--navy);
  background: rgba(26, 35, 126, 0.07);
  color: var(--navy);
}

.w-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.9rem;
}

.w-check input {
  margin-top: 3px;
}

.w-check a {
  color: var(--navy);
  font-weight: 600;
}

/* honeypot: off screen, not display:none (some bots skip hidden fields) */
.w-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* the button waits for the browser's proof of work */
[data-pow-submit][disabled] {
  opacity: 0.6;
  cursor: progress;
}

[data-pow-submit][disabled] [data-pow-ready],
[data-pow-submit]:not([disabled]) [data-pow-wait] {
  display: none;
}

.w-foot {
  text-align: center;
}

.w-enter {
  display: grid;
  place-items: center;
  min-height: 70vh;
}

.w-enter-card {
  max-width: 460px;
  width: 100%;
  text-align: center;
}

.w-enter-card .p-logo {
  justify-content: center;
  margin-bottom: 14px;
}

.w-enter-card .g-h2 {
  justify-content: center;
}

@media (min-width: 640px) {
  .w-fields {
    grid-template-columns: 1fr 1fr;
  }

  .w-wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1024px) {
  .w-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.w-warn {
  background: #fff4e0;
  color: #6b4100;
  border: 1px solid rgba(212, 168, 67, 0.6);
  border-radius: 14px;
  padding: 14px 16px;
  display: grid;
  gap: 8px;
  justify-items: start;
}

.w-warn p {
  margin: 0;
  font-size: 0.9rem;
}
