/* Staff area. A tool, not a brochure — dense, scannable, thumb-friendly. */

:root {
  --ink: #0C2036;
  --body: #445A72;
  --muted: #7C8FA5;
  --line: #E2E8F0;
  --ground: #F0F3F7;
  --surface: #FFFFFF;
  --navy: #082B4C;
  --accent: #FF6B1A;
  --good: #0E7C5A;
  --good-bg: #E8F5F0;
  --warn: #9A6410;
  --warn-bg: #FDF3E2;
  --bad: #B4341F;
  --bad-bg: #FDEDEA;
  --tap: 44px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--body);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.shell { width: 100%; max-width: 680px; margin: 0 auto; padding: 0 14px; }

/* ---------- chrome ---------- */

.bar { background: var(--navy); color: #fff; padding-top: env(safe-area-inset-top); }

.bar-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 52px;
}

.who strong { display: block; font-size: 16px; }
.who span { display: block; font-size: 13px; color: #A9C6E2; }
.who .professional-label {
  color: #FFB98F;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.signout button {
  background: none; border: 1px solid rgba(255,255,255,.3); color: #D8E6F3;
  border-radius: 999px; padding: 6px 14px; font: inherit; font-size: 13px; cursor: pointer;
}

.tabs { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }

.tabs-in { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.tabs-in::-webkit-scrollbar { display: none; }

.tabs a {
  flex: 0 0 auto; padding: 13px 12px; font-size: 14px; font-weight: 500;
  color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.tabs a.on { color: var(--ink); border-bottom-color: var(--accent); }

main.shell { padding-bottom: calc(48px + env(safe-area-inset-bottom)); }

/* ---------- type ---------- */

h1 {
  font-size: 21px; color: var(--ink); letter-spacing: -.01em;
  margin: 20px 0 14px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}

.count { font-size: 13px; font-weight: 400; color: var(--muted); }

h2 { font-size: 15px; color: var(--ink); margin: 0 0 10px; }

.hint { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

.empty {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 18px; color: var(--muted); font-size: 15px;
}

.empty--tight { padding: 10px 14px; font-size: 14px; }

.warnbox {
  background: var(--warn-bg); border: 1px solid #EBD6AE; color: var(--warn);
  border-radius: 10px; padding: 14px 16px; font-size: 14px;
}

.alert { color: var(--bad); }

/* ---------- week strip ---------- */

.week { display: flex; gap: 6px; margin-top: 16px; overflow-x: auto; scrollbar-width: none; }
.week::-webkit-scrollbar { display: none; }

.wday {
  flex: 1 0 56px; display: grid; gap: 1px; justify-items: center;
  padding: 9px 4px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; text-decoration: none; color: var(--body);
}

.wday.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.wday-n { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; opacity: .8; }
.wday-d { font-size: 18px; font-weight: 600; color: var(--ink); }
.wday.on .wday-d { color: #fff; }
.wday-c { font-size: 11px; opacity: .75; }

/* ---------- block now ---------- */

.blocknow {
  background: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--accent); border-radius: 10px;
  padding: 14px 16px; margin-bottom: 16px;
}

.blocknow-label { margin: 0 0 10px; font-size: 14px; color: var(--ink); font-weight: 600; }

.blocknow-row { display: flex; gap: 8px; flex-wrap: wrap; }

.blocknow-row button {
  flex: 1 1 auto; min-height: var(--tap); min-width: 84px;
  border: 1px solid #FFD3B8; background: #FFF4EC; color: #C2510C;
  border-radius: 9px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}

.blocknow-row button:active { background: #FFE6D6; }

/* ---------- blocks list ---------- */

.blocks { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }

.blocks li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--warn-bg); border: 1px solid #EBD6AE; border-radius: 10px;
  padding: 11px 14px; font-size: 14px; color: var(--warn);
}

button.link {
  background: none; border: 0; color: inherit; font: inherit; font-size: 14px;
  text-decoration: underline; cursor: pointer; padding: 6px; min-height: 32px;
}

/* ---------- appointments ---------- */

.appts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }

.appt {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px;
}

.appt--completed { opacity: .6; }
.appt--no_show { background: var(--bad-bg); border-color: #F3CFC7; }

.appt-time {
  flex: 0 0 62px; font-size: 17px; font-weight: 600; color: var(--ink);
  font-variant-numeric: tabular-nums; line-height: 1.2;
}

.appt-time em { display: block; font-style: normal; font-size: 11px; font-weight: 500; color: var(--muted); }

.appt-main { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.appt-who { font-size: 16px; font-weight: 600; color: var(--ink); }
.appt-what { font-size: 13px; color: var(--muted); }
.appt-note { font-size: 13px; color: var(--body); font-style: italic; margin-top: 3px; }

.appt-side { flex: 0 0 auto; }

.acts { display: flex; flex-direction: column; gap: 5px; }

.acts button {
  min-height: 32px; padding: 0 11px; border-radius: 7px; font: inherit;
  font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
}

.acts .ok { border: 1px solid #B9E0D0; background: var(--good-bg); color: var(--good); }
.acts .warn { border: 1px solid #F0D2A8; background: var(--warn-bg); color: var(--warn); }

.tag {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
}

.tag--completed { background: var(--good-bg); color: var(--good); }
.tag--no_show { background: var(--bad-bg); color: var(--bad); }
.tag--pending { background: var(--warn-bg); color: var(--warn); }
.tag--confirmed { background: #EAF3FB; color: #175C91; }
.tag--cancelled { background: var(--bad-bg); color: var(--bad); }

/* ---------- reporting ---------- */

.report-heading {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 14px;
  margin: 20px 0 14px;
}
.report-heading h1 { margin: 0 0 2px; }
.report-heading .hint { margin: 0; }
.report-export {
  flex: 0 0 auto; min-height: 40px; display: inline-flex; align-items: center;
  border: 1px solid var(--navy); border-radius: 8px; padding: 8px 13px;
  color: var(--navy); background: var(--surface); text-decoration: none; font-size: 13px; font-weight: 700;
}
.report-filters {
  display: grid; grid-template-columns: minmax(160px, 1.5fr) 1fr 1fr auto;
  gap: 9px; align-items: end; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px;
}
.report-filters label { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.report-filters label span { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.report-filters input, .report-filters select {
  width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 7px;
  padding: 7px 9px; color: var(--ink); background: #fff; font: inherit; font-size: 13px;
}
.report-filters button {
  min-height: 40px; border: 0; border-radius: 7px; padding: 8px 14px;
  background: var(--navy); color: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.report-scope { margin: 10px 2px 14px; font-size: 13px; color: var(--muted); }
.report-kpis {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 8px;
}
.report-kpis article {
  min-height: 96px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 13px; display: flex; flex-direction: column; justify-content: center;
}
.report-kpis span { color: var(--muted); font-size: 12px; }
.report-kpis strong { color: var(--ink); font-size: 24px; font-variant-numeric: tabular-nums; }
.report-kpis small { color: var(--good); font-size: 11px; font-weight: 700; }
.report-note { margin: 0 2px 14px; font-size: 12px; color: var(--muted); }
.report-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 10px; }
.report-panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px; margin-bottom: 10px; min-width: 0;
}
.report-panel--wide { width: 100%; }
.report-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.report-bars li { display: grid; grid-template-columns: 105px 1fr 32px; gap: 8px; align-items: center; font-size: 12px; }
.report-bar-label { color: var(--body); display: flex; justify-content: space-between; gap: 5px; }
.report-bar-track { height: 8px; background: var(--ground); border-radius: 99px; overflow: hidden; }
.report-bar-track span { display: block; height: 100%; min-width: 2px; background: var(--accent); border-radius: inherit; }
.report-bars small { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.rating-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rating-summary p { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.rating-summary strong { font-size: 20px; color: var(--ink); }
.rating-summary span { font-size: 11px; color: var(--muted); }
.report-table-wrap { overflow-x: auto; }
.report-table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 12px; }
.report-table th { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.report-table td { color: var(--body); padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.report-table tbody tr:last-child td { border-bottom: 0; }
.report-table td:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.report-table--compact { min-width: 320px; }

@media (max-width: 620px) {
  .report-filters { grid-template-columns: 1fr 1fr; }
  .report-filters label:first-child, .report-filters button { grid-column: 1 / -1; }
  .report-kpis { grid-template-columns: repeat(2, 1fr); }
  .report-grid { grid-template-columns: 1fr; }
  .report-heading { align-items: flex-start; }
}

/* ---------- hours ---------- */

.days { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 6px; }

.day {
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 14px;
}

.day--off { background: transparent; border-style: dashed; }
.day-name { flex: 0 0 96px; font-size: 15px; font-weight: 600; color: var(--ink); }
.day-hours { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; }
.day-hours .off { color: var(--muted); }

.span {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--ground); border-radius: 7px; padding: 4px 4px 4px 10px;
  font-variant-numeric: tabular-nums;
}

button.x {
  border: 0; background: none; color: var(--muted); font-size: 17px;
  line-height: 1; cursor: pointer; padding: 4px 6px; min-height: 28px;
}

button.x:hover { color: var(--bad); }

/* ---------- generic rows ---------- */

.rows { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 8px; }

.row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px;
}

.row--off { opacity: .55; }
.row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.row-main strong { font-size: 15px; color: var(--ink); }
.row-sub { font-size: 13px; color: var(--muted); }

/* ---------- my services ---------- */

.offers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }

.offer {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
}

.offer--on { border-left: 3px solid var(--good); }

.offer-head { display: flex; flex-direction: column; gap: 1px; margin-bottom: 10px; }
.offer-name { font-size: 15px; font-weight: 600; color: var(--ink); }
.offer-base { font-size: 12px; color: var(--muted); }

.offer-fields { display: flex; align-items: flex-end; gap: 8px; flex-wrap: wrap; }
.offer-fields label { display: flex; flex-direction: column; gap: 3px; }
.offer-fields label span { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.offer-fields input[type="number"], .offer-fields input[type="text"] { width: 92px; }

.check { flex-direction: row !important; align-items: center; gap: 6px !important; }
.check span { text-transform: none !important; font-size: 13px !important; letter-spacing: 0 !important; }

/* ---------- chairs ---------- */

.chair { margin-bottom: 22px; }
.chair h2 { display: flex; align-items: center; gap: 8px; }
.chair-n {
  background: var(--ground); border-radius: 999px; padding: 2px 9px;
  font-size: 12px; color: var(--muted); font-weight: 600;
}

.daynav {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  margin-top: 16px; font-size: 15px; font-weight: 600; color: var(--ink);
}

.daynav a {
  padding: 11px 20px; color: var(--accent); text-decoration: none; font-size: 20px; line-height: 1;
}

/* ---------- forms ---------- */

.card-form {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  padding: 16px; display: flex; flex-direction: column; gap: 12px;
}

.field { display: flex; flex-direction: column; gap: 5px; }
.label { font-size: 13px; font-weight: 600; color: var(--ink); }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"],
input[type="time"], input[type="password"], input[type="file"], input[type="url"], select, textarea {
  min-height: var(--tap); padding: 10px 12px; font: inherit; font-size: 16px;
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 9px; width: 100%;
}

input:focus-visible, select:focus-visible, textarea:focus-visible,
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.error { font-size: 13px; color: var(--bad); }
.field-help { font-size: 12px; color: var(--muted); }
.field-help ul { margin: 4px 0 0; padding-left: 18px; }

button.primary {
  min-height: var(--tap); border: 0; border-radius: 9px;
  background: var(--navy); color: #fff; font: inherit; font-size: 15px;
  font-weight: 600; cursor: pointer;
}

button.small {
  min-height: 38px; padding: 0 16px; border: 0; border-radius: 8px;
  background: var(--navy); color: #fff; font: inherit; font-size: 13px;
  font-weight: 600; cursor: pointer;
}

/* ---------- flashes ---------- */

.flash { border-radius: 9px; padding: 11px 14px; margin: 14px 0 0; font-size: 14px; }
.flash--success { background: var(--good-bg); color: var(--good); }
.flash--error { background: var(--bad-bg); color: var(--bad); }

/* ---------- login ---------- */

.login-page { display: grid; place-items: center; min-height: 100vh; }
.login { width: 100%; max-width: 360px; padding: 24px; }
.login h1 { margin-bottom: 2px; }
.login .sub { margin: 0 0 18px; font-size: 14px; color: var(--muted); }
.auth-switch { margin: 16px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.auth-switch--secondary { margin-top: 8px; font-size: 13px; }
.auth-switch a { color: var(--accent); }
.auth-link { margin: 12px 0 0; text-align: center; font-size: 14px; }
.auth-link a, .auth-back a, .security-links a { color: var(--accent); }
.auth-back { margin: 0 0 12px; font-size: 14px; }
.auth-success { padding: 10px 12px; border-radius: 8px; background: var(--good-bg); color: var(--good); font-size: 14px; }
.social-auth { display: grid; gap: 10px; margin: 0 0 16px; }
.social-auth form { margin: 0; }
.social-button {
  width: 100%; min-height: var(--tap); border: 1px solid var(--line); border-radius: 9px;
  background: #fff; color: var(--ink); font: inherit; font-size: 15px; font-weight: 650; cursor: pointer;
}
.social-button--apple { background: #000; border-color: #000; color: #fff; }
.auth-divider { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; color: var(--muted); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.account-profile { max-width: 420px; }
.account-email { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.account-email span { color: var(--good); font-size: 13px; }
.account-email .needs-attention { color: var(--bad); }
.security-links { display: grid; gap: 8px; margin-top: 16px; text-align: center; font-size: 14px; }

/* ---------- shop profile ---------- */

.logo-preview {
  display: grid; place-items: center; min-height: 170px; padding: 18px;
  margin-bottom: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
}

.logo-preview img { display: block; max-width: 240px; max-height: 150px; object-fit: contain; }
.logo-remove { display: flex; align-items: center; gap: 8px; }

/* ---------- share kit ---------- */

.share-head { margin: 24px 0 18px; }
.share-head h1 { margin: 3px 0 6px; }
.share-head p { margin: 0; color: var(--muted); }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.share-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); gap: 24px; align-items: start; margin: 18px 0 36px; }
.share-tools { display: grid; gap: 14px; }
.share-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.share-card h2 { margin-top: 0; }
.share-card .primary { width: 100%; margin-top: 12px; }
.share-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.share-action { display: grid; place-items: center; min-height: var(--tap); padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--navy); font: inherit; font-size: 13px; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer; }
.print-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 30px 24px; text-align: center; color: #082b4c; }
.print-brand { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.print-card h2 { margin: 8px 0; font-size: 30px; }
.print-lead { margin: 0 0 14px; font-size: 17px; }
.print-card img { display: block; width: min(280px, 100%); height: auto; margin: 0 auto; }
.print-url { overflow-wrap: anywhere; font-size: 13px; font-weight: 700; }
.print-note { color: #52616f; font-size: 13px; }
.copy-status { min-height: 1.5em; color: var(--good); font-weight: 700; }

/* ---------- provider profile editor ---------- */

.profile-intro, .account-intro { margin: -8px 0 16px; }
.profile-photo-preview {
  display: grid; place-items: center; min-height: 180px; margin: 0 0 14px;
  padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
}
.profile-photo-preview img {
  display: block; width: 150px; height: 150px; border-radius: 50%; object-fit: cover;
}
.check-field { flex-direction: row; align-items: center; }
.check-field input { flex: 0 0 auto; }
.portfolio-editor { margin-top: 28px; }
.portfolio-editor h2 { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.portfolio-edit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 16px 0; }
.portfolio-edit-card {
  overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
}
.portfolio-edit-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.portfolio-edit-card p { margin: 8px 10px 0; font-size: 13px; }
.portfolio-edit-card form { margin: 0; padding: 6px 10px 10px; }
.portfolio-add-form { margin-top: 16px; }
.danger-link {
  min-height: 34px; padding: 4px 0; border: 0; background: none; color: var(--bad);
  font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer;
}
.profile-preview-link { margin-top: 18px; text-align: center; }
.profile-preview-link a { color: var(--accent); }

/* ---------- customer account ---------- */

.account-bar .brand-lockup { margin: 0; }
.account-bar .app-label {
  margin-right: auto;
  color: #FFB98F;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.account-home-link { color: #D8E6F3; font-size: 13px; text-decoration: none; white-space: nowrap; }
.account-tabs .tabs-in { justify-content: center; }
.account-shell { max-width: 680px; }
.deletion-section { margin-bottom: 16px; }
.deletion-section p, .deletion-section ul { margin: 0; line-height: 1.5; }
.deletion-section ul { padding-left: 20px; }
.deletion-warning { border-left: 4px solid var(--bad); padding-left: 12px; }
.deletion-section input[type="checkbox"] { width: 24px; height: 24px; }
.deletion-section .errorlist { color: var(--bad); }
button.primary.deletion-button { background: var(--bad); }
.account-shell .sub { margin: -8px 0 18px; color: var(--muted); font-size: 14px; }
.account-section-title { margin: 24px 0 10px; }

.customer-history, .favorite-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.customer-history-item, .favorite-list li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
}
.customer-history-item a {
  display: flex; align-items: center; gap: 14px; padding: 13px 14px;
  color: inherit; text-decoration: none;
}
.history-date { flex: 0 0 92px; display: grid; font-size: 13px; color: var(--ink); }
.history-date small, .history-main span, .favorite-list-main small { color: var(--muted); font-size: 12px; }
.history-main { display: grid; flex: 1; min-width: 0; }
.history-main strong { color: var(--ink); }
.history-status { margin-top: 3px; font-weight: 700; color: var(--good) !important; }
.history-status--cancelled, .history-status--no_show { color: var(--bad) !important; }
.history-status--pending { color: var(--warn) !important; }
.history-arrow { color: var(--muted); font-size: 22px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 16px 0; font-size: 13px; }
.pagination a { color: var(--accent); font-weight: 650; }

.favorite-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.favorite-list-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.favorite-list-main img, .favorite-avatar {
  width: 48px; height: 48px; flex: 0 0 48px; border-radius: 9px; object-fit: contain;
  border: 1px solid var(--line); background: #fff; padding: 3px;
}
.favorite-list-main .favorite-provider-photo { border-radius: 50%; object-fit: cover; padding: 0; }
.favorite-avatar { display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; }
.favorite-list-main > span:last-child { display: grid; min-width: 0; }
.favorite-list form { margin: 0; }

@media (max-width: 480px) {
  .history-date { flex-basis: 74px; }
  .portfolio-edit-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .share-grid { grid-template-columns: 1fr; }
  .share-actions { grid-template-columns: 1fr; }
}

@media print {
  .bar, .tabs, .no-print, .flash { display: none !important; }
  body, main.shell { background: #fff; margin: 0; padding: 0; max-width: none; }
  .share-grid { display: block; margin: 0; }
  .print-card { width: 5in; min-height: 7in; margin: .25in auto; border: 2px solid #082b4c; display: flex; flex-direction: column; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- professional invitations ---------- */

.inline-invite-form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.inline-invite-form input { min-width: min(260px, 100%); }
.invite-list { margin: 28px 0; }
.invite-card {
  display: grid; grid-template-columns: minmax(180px, 1fr) minmax(220px, 2fr) auto;
  align-items: center; gap: 12px; margin: 8px 0; padding: 14px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
}
.invite-card > div { display: grid; }
.invite-card span, .invite-card small { color: var(--muted); font-size: 12px; }
.invite-link input { width: 100%; }
.invitation-page { max-width: 520px; }
.invitation-summary { display: grid; gap: 5px; margin: 18px 0; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.invitation-summary span, .invitation-summary small { color: var(--muted); }
.button-link { display: block; margin: 10px 0; text-align: center; text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- manager marketing ---------- */
.marketing-admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.marketing-admin-heading .button-link { width: auto; padding: 10px 14px; }
.marketing-admin-kicker { margin: 0 0 4px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.marketing-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0 28px; }
.marketing-plan { position: relative; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.marketing-plan--spotlight { border: 2px solid var(--accent); }
.marketing-plan__popular { position: absolute; top: -12px; right: 14px; padding: 4px 9px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 750; }
.marketing-plan h3 { margin: 0 0 8px; }
.marketing-plan__price strong { color: var(--ink); font-size: 25px; }
.marketing-plan ul { min-height: 92px; padding-left: 20px; color: var(--muted); font-size: 13px; }
.marketing-plan form, .marketing-plan button { width: 100%; }
.marketing-active { border-left: 5px solid var(--good); }
.marketing-history { margin-top: 30px; }

@media (max-width: 760px) {
  .marketing-admin-heading { align-items: stretch; flex-direction: column; }
  .marketing-admin-heading .button-link { width: 100%; }
  .marketing-plan-grid { grid-template-columns: 1fr; }
  .marketing-plan ul { min-height: 0; }
}

@media (max-width: 680px) {
  .invite-card { grid-template-columns: 1fr; }
}
