/* Accounts, company claims and the Verified mark. Uses the tokens and components of styles.css (navy, sky, coral; Source Serif 4 / Source Sans 3). */

/* ---------- header ---------- */
.account-control { display: flex; align-items: center; flex: none; }
.account-signin { min-height: 40px; padding: 8px 16px; font-size: .95rem; text-decoration: none; white-space: nowrap; }
.account-menu { position: relative; }
.account-menu summary { display: flex; align-items: center; gap: 9px; list-style: none; cursor: pointer; padding: 6px 4px; color: var(--navy); font-weight: 600; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 5px; }
.account-avatar { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: .95rem; }
.account-name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-dropdown { left: auto; right: 0; width: 200px; }
[dir="rtl"] .account-dropdown { right: auto; left: 0; }
.account-dropdown a, .account-dropdown button { display: block; width: 100%; padding: 12px 14px; border: 0; background: none; color: var(--navy); font-size: 1rem; font-weight: 600; text-align: start; text-decoration: none; }
.account-dropdown a:hover, .account-dropdown button:hover { background: var(--surface-soft); }
.account-dropdown button { border-top: 1px solid var(--line); }
.account-control-mobile > a { display: block; }
.account-control-mobile .nav-dropdown button { display: block; width: 100%; padding: 12px; border: 0; background: none; color: inherit; font-weight: 500; text-align: start; }
@media (max-width: 1180px) { .account-control { margin-inline-start: auto; } .account-name, .account-plan { display: none; } .account-signin { padding: 7px 12px; font-size: .88rem; min-height: 36px; } }
@media (max-width: 480px) { .header-inner > .account-control { display: none; } }

/* ---------- forms ---------- */
.auth-section { padding: 56px 0 72px; background: var(--surface-alt); min-height: 60vh; }
.auth-shell { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 0; max-width: 980px; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: #fff; }
.auth-narrow { max-width: 520px; }
.auth-panel { background: var(--navy); color: #fff; padding: 44px 38px; }
.auth-panel .eyebrow { color: var(--sky); }
.auth-panel h1 { font-family: 'Source Serif 4', Georgia, serif; font-weight: 600; font-size: clamp(2rem, 3.4vw, 2.7rem); line-height: 1.12; letter-spacing: -.02em; margin: 12px 0 26px; }
.auth-points { list-style: none; margin: 0; padding: 0; }
.auth-points li { padding: 12px 0; border-top: 1px solid rgba(255,255,255,.16); font-size: 1.02rem; }
.auth-form { padding: 40px 38px; background: #fff; }
.auth-narrow .auth-form { border: 1px solid var(--line); border-radius: 7px; }
.auth-form h1 { font-family: 'Source Serif 4', Georgia, serif; font-weight: 600; font-size: 1.9rem; color: var(--navy); margin: 0 0 18px; line-height: 1.15; }
.auth-status { text-align: center; }
.auth-status p { color: #42566a; }
.auth-status .btn { text-decoration: none; margin-top: 8px; }
.auth-email { font-weight: 700; color: var(--navy); overflow-wrap: anywhere; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 18px; font-size: .95rem; }
.auth-links a { color: var(--navy); font-weight: 700; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 14px; }
.form-field select { width: 100%; border: 1px solid #cbd7e2; border-radius: 10px; padding: 11px 12px; background: #fff; color: var(--ink); }
.form-field select:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(8,52,99,.08); outline: none; }
.form-field input:disabled { background: var(--surface-alt); color: var(--muted); }
.field-error input, .field-error select, .field-error textarea { border-color: var(--danger); }
.check.field-error span { color: var(--danger); }
.form-notice { margin: 0 0 16px; padding: 11px 13px; border-radius: 5px; font-size: .94rem; }
.form-notice[hidden] { display: none; }
.form-notice-error { background: var(--danger-bg); color: var(--danger); }
.form-notice-ok { background: var(--success-bg); color: var(--success); }
.password-wrap { position: relative; }
.password-wrap input { padding-inline-end: 74px; }
.password-toggle { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--navy); font-weight: 700; font-size: .84rem; padding: 6px 8px; }
.password-rules { list-style: none; margin: -4px 0 14px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 14px; font-size: .84rem; color: var(--muted); }
.password-rules li::before { content: "○"; margin-inline-end: 6px; }
.password-rules .rule-ok { color: var(--success); }
.password-rules .rule-ok::before { content: "✓"; }
.password-rules .rule-bad { color: var(--danger); }
.segmented { border: 0; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.segmented legend { font-weight: 750; color: #42566a; font-size: .85rem; margin-bottom: 5px; padding: 0; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; }
.segmented span { display: block; text-align: center; padding: 11px 10px; border: 1px solid #cbd7e2; font-weight: 700; color: var(--navy); background: #fff; cursor: pointer; }
.segmented label:first-of-type span { border-radius: 5px 0 0 5px; }
.segmented label:last-of-type span { border-radius: 0 5px 5px 0; border-inline-start: 0; }
[dir="rtl"] .segmented label:first-of-type span { border-radius: 0 5px 5px 0; }
[dir="rtl"] .segmented label:last-of-type span { border-radius: 5px 0 0 5px; }
.segmented input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.segmented input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; font-size: .95rem; color: #27394b; }
.check input { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 3px; accent-color: var(--navy); }
.consent-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: -6px 0 14px; padding-inline-start: 28px; font-size: .88rem; }
.consent-links a { color: var(--navy); font-weight: 700; }
.btn-block { width: 100%; justify-content: center; }
.btn-danger { background: #fff; border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger-bg); }
.enterprise-fields { padding: 16px 16px 4px; margin-bottom: 16px; background: var(--surface-alt); border: 1px solid var(--line); border-radius: 5px; }
.enterprise-fields[hidden] { display: none; }

/* ---------- account and admin ---------- */
.account-hero { padding: 38px 0 30px; background: var(--surface-alt); border-bottom: 1px solid var(--line); }
.account-hero h1 { font-family: 'Source Serif 4', Georgia, serif; font-weight: 600; font-size: clamp(1.8rem, 3.2vw, 2.5rem); color: var(--navy); margin: 6px 0 4px; line-height: 1.15; }
.account-sub { margin: 0; color: var(--muted); }
.account-section { padding: 34px 0 72px; }
.account-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 34px; align-items: start; }
.account-tabs { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; position: sticky; top: 16px; }
.account-tabs a { padding: 12px 16px; text-decoration: none; color: var(--navy); font-weight: 600; border-bottom: 1px solid var(--line); }
.account-tabs a:last-child { border-bottom: 0; }
.account-tabs a:hover { background: var(--surface-soft); }
.account-tabs a[aria-current="page"] { background: var(--navy); color: #fff; }
.account-body { min-width: 0; display: grid; gap: 20px; }
.panel { border: 1px solid var(--line); border-radius: 5px; padding: 24px; background: #fff; min-width: 0; }
.panel h2 { margin: 0 0 16px; font-size: 1.2rem; font-weight: 600; color: var(--navy-900); }
.panel h3 { margin: 22px 0 6px; font-size: 1rem; color: var(--navy); }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; }
.panel-head h2 { margin: 0; }
.panel-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.panel-tools input, .panel-tools select { border: 1px solid #cbd7e2; border-radius: 5px; padding: 8px 10px; background: #fff; min-width: 0; }
.panel-tools input[type="search"] { flex: 1 1 220px; }
.panel-note { margin: 0 0 12px; color: var(--muted); font-size: .92rem; }
.panel-danger { border-color: #f0c7c2; }
.panel form { max-width: 620px; }
.shortcut-row, .modal-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.shortcut-row .btn { text-decoration: none; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.data-table th { text-align: start; padding: 9px 10px; border-bottom: 2px solid var(--line); color: #42566a; font-size: .78rem; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table td small { display: block; color: var(--muted); font-size: .82rem; overflow-wrap: break-word; }
.data-table td .btn { margin: 0 6px 4px 0; }
.badge-state { background: #f0f2f5; color: #44576a; white-space: nowrap; }
.badge-active, .badge-approved, .badge-paid, .badge-done { background: var(--success-bg); color: var(--success); }
.badge-suspended, .badge-rejected, .badge-failed { background: var(--danger-bg); color: var(--danger); }
.badge-new, .badge-pending, .badge-scheduled, .badge-paused, .badge-pending_verification, .badge-contacted { background: var(--warning-bg); color: var(--warning); }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.stat-tile { padding: 18px 20px; text-decoration: none; border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.stat-tile:hover { background: var(--surface-soft); }
.stat-tile strong { display: block; font-size: 1.8rem; font-weight: 600; color: var(--navy); }
.stat-tile span { color: var(--muted); font-size: .88rem; }
.settings-row { display: grid; grid-template-columns: 90px repeat(auto-fit, minmax(130px, 1fr)); gap: 0 12px; align-items: end; }
.settings-row > strong { padding-bottom: 26px; color: var(--navy); }
.settings-row:has(> .form-field:first-child) { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.inline-form { display: flex; flex-wrap: wrap; gap: 0 12px; align-items: end; margin: 18px 0; padding: 16px 16px 2px; background: var(--surface-alt); border-radius: 5px; }
.inline-form .form-field { flex: 1 1 140px; }
.inline-form .btn { margin-bottom: 14px; }


/* ---------- legal and demo inbox ---------- */
.legal-copy { max-width: 820px; }
.legal-copy h2 { margin: 30px 0 8px; font-size: 1.2rem; color: var(--navy); }
.legal-copy p { margin: 0 0 12px; line-height: 1.7; color: #27394b; }

@media (max-width: 900px) {
  .auth-shell, .checkout-shell, .account-shell, .inbox-shell { grid-template-columns: minmax(0, 1fr); }
  .auth-panel { padding: 28px 24px; }
  .auth-panel h1 { margin-bottom: 14px; }
  .auth-points { display: none; }
  .auth-form { padding: 28px 22px; }
  .account-shell { gap: 18px; }
  .account-tabs { position: static; flex-direction: row; overflow-x: auto; }
  .account-tabs a { border-bottom: 0; border-inline-end: 1px solid var(--line); white-space: nowrap; padding: 11px 14px; }
  .panel { padding: 18px; }
}
@media (max-width: 700px) {
  .auth-section { padding: 28px 0 44px; }
  .password-rules { grid-template-columns: minmax(0, 1fr); }
  .data-table thead { display: none; }
  .data-table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .data-table td { display: block; padding: 4px 0; border: 0; }
  .data-table td::before { content: attr(data-label); display: block; color: var(--muted); font-size: .74rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
  .data-table td[data-label=""]::before { display: none; }
  .data-table td:empty { display: none; }
  .stat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-tile { padding: 12px 14px; }
  .stat-tile strong { font-size: 1.4rem; }
  .settings-row { grid-template-columns: minmax(0, 1fr); }
  .settings-row > strong { padding-bottom: 4px; }
}

/* ---------- sign-in extras ---------- */
.auth-lead { margin: 0 0 2px; color: #42566a; }
.auth-form .auth-email { margin: 0 0 16px; }
.btn-google { display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn-google svg { width: 18px; height: 18px; flex: 0 0 18px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--muted); font-size: .85rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.code-input { font-size: 1.5rem; letter-spacing: .32em; text-align: center; font-variant-numeric: tabular-nums; }
.link-button { border: 0; background: none; padding: 0; color: var(--navy); font-weight: 700; font-size: inherit; cursor: pointer; }
.link-button:hover, .auth-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-button:disabled { color: var(--muted); cursor: default; }
.consent-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: -4px 0 14px 28px; font-size: .9rem; }
.consent-links a { color: var(--navy); font-weight: 700; }
.btn-sm { min-height: 36px; padding: 7px 14px; font-size: .9rem; }
.form-field textarea { width: 100%; border: 1px solid #cbd7e2; border-radius: 10px; padding: 11px 12px; background: #fff; color: var(--ink); font: inherit; resize: vertical; }
.form-field textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(8,52,99,.08); outline: none; }
.field-count { margin: -8px 0 12px; text-align: end; color: var(--muted); font-size: .82rem; }

/* ---------- company claim ---------- */
.company-search input { width: 100%; border: 1px solid #cbd7e2; border-radius: 10px; padding: 12px 14px; font-size: 1.02rem; background: #fff; color: var(--ink); }
.company-search input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(8,52,99,.08); outline: none; }
.company-results { list-style: none; margin: 12px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.company-results:empty { display: none; }
.company-results li + li { border-top: 1px solid var(--line); }
.company-results button { display: block; width: 100%; padding: 12px 14px; border: 0; background: #fff; text-align: start; cursor: pointer; color: var(--ink); }
.company-results button:hover, .company-results button.picked { background: var(--surface-soft); }
.company-results button.picked { box-shadow: inset 3px 0 0 var(--coral); }
.company-results strong { display: block; color: var(--navy); overflow-wrap: anywhere; }
.company-results span { color: var(--muted); font-size: .88rem; }
.company-none { padding: 14px; color: var(--muted); }
.claim-confirm { margin-top: 18px; padding: 18px; border: 1px solid var(--line); border-top: 3px solid var(--coral); border-radius: 5px; }
.claim-confirm h3 { margin: 0 0 6px; }
.claim-list, .request-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.claim-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 5px; }
.claim-main { min-width: 0; flex: 1 1 260px; }
.claim-main strong { color: var(--navy); margin-inline-end: 10px; overflow-wrap: anywhere; }
.claim-main .panel-note { margin: 8px 0 0; }
.claim-country { color: var(--muted); font-size: .9rem; margin-inline-end: 10px; }
.claim-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.claim-actions .btn { text-decoration: none; }

/* ---------- team panel ---------- */
.admin-shell { margin-top: 24px; }
.request-card { padding: 16px 18px; border: 1px solid var(--line); border-radius: 5px; }
.request-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px 14px; margin-bottom: 10px; }
.request-head strong { color: var(--navy); font-size: 1.05rem; margin-inline-end: 10px; overflow-wrap: anywhere; }
.request-head a { font-size: .88rem; color: var(--navy); font-weight: 700; }
.request-facts { display: grid; grid-template-columns: max-content 1fr; gap: 4px 18px; margin: 0 0 14px; font-size: .93rem; }
.request-facts dt { color: var(--muted); }
.request-facts dd { margin: 0; overflow-wrap: anywhere; }
.change-line { margin-bottom: 4px; overflow-wrap: anywhere; }
.change-line b { display: block; font-size: .78rem; color: var(--muted); font-weight: 600; }
.change-line del { color: var(--danger); }
.change-line ins { color: var(--success); text-decoration: none; }

/* ---------- Verified mark ---------- */
.verified-badge { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; color: #1a73c8; font-family: 'Source Sans 3', system-ui, sans-serif; font-size: .78rem; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.verified-badge svg { width: 15px; height: 15px; flex: 0 0 15px; }
h1 .verified-badge { font-size: .95rem; margin-inline-start: 8px; }
h1 .verified-badge svg { width: 22px; height: 22px; flex-basis: 22px; }
.company-contact-verified { border-top-color: #1a73c8; }
.company-about { margin: 0 0 12px; white-space: pre-line; overflow-wrap: anywhere; color: #27394b; line-height: 1.6; }
.company-address { white-space: pre-line; }
.company-confirmed { margin: 0 0 10px; color: var(--muted); font-size: .84rem; }
.company-update[hidden] { display: none; }
@media (max-width: 640px) { .request-facts { grid-template-columns: 1fr; gap: 0; } .request-facts dd { margin-bottom: 6px; } .consent-links { margin-inline-start: 0; } }

.delete-box { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); max-width: 420px; }
.delete-box[hidden] { display: none; }
/* The assistant button would sit on top of form fields on the account pages. */
html[data-cf-page^="account-"] .chat-launcher { display: none; }
/* Team panel: tables need the width, so the tabs run across the top. */
.admin-shell { grid-template-columns: minmax(0, 1fr); gap: 18px; }
.admin-shell .account-tabs { position: static; flex-direction: row; overflow-x: auto; }
.admin-shell .account-tabs a { border-bottom: 0; border-inline-end: 1px solid var(--line); white-space: nowrap; padding: 11px 18px; }
.admin-shell .account-tabs a:last-child { border-inline-end: 0; }
/* With the menu collapsed the sign-in control sits next to the language picker, not in the middle of the header. */
.header-inner > .account-control + .language-control { margin-left: 8px; margin-right: 0; }
[dir="rtl"] .header-inner > .account-control + .language-control { margin-left: 0; margin-right: 8px; }
