/* admin.css — back-office surface.
   Distinct from customer site: light gray, denser, utilitarian.   */

.adm{
  background: #f3f4f6;
  color: #111827;
  font-family: var(--f-ui);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 240px 1fr;
}

/* ─── Sidebar ─── */
.adm-side{
  background: var(--ink);
  color: #cbd5e1;
  padding: 22px 18px;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.adm-brand{
  display:flex; align-items:center; gap:10px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 16px;
}
.adm-brand img{ height: 28px; filter: brightness(0) invert(1) opacity(.95); }
.adm-brand .role-pill{
  font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
  padding: 3px 7px; border-radius: 4px; background: var(--sun); color: var(--ink);
  font-weight: 700;
  margin-left: auto;
}
.adm-brand .role-pill.admin{ background: #ef4444; color: #fff; }
.adm-nav{ display: flex; flex-direction: column; gap: 2px; }
.adm-nav-group{
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 600; opacity: .5;
  padding: 16px 10px 8px;
}
.adm-nav a{
  display:flex; align-items:center; gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  color: #cbd5e1;
  font-size: 13.5px;
  transition: background .15s, color .15s;
  cursor: pointer;
}
.adm-nav a:hover{ background: rgba(255,255,255,.06); color: #fff; }
.adm-nav a.active{
  background: rgba(255,255,255,.1); color: #fff;
}
.adm-nav a.active .adm-nav-icon{ color: var(--sun); }
.adm-nav-icon{ flex: 0 0 18px; color: #94a3b8; }
.adm-nav-count{
  margin-left: auto; font-size: 11px; padding: 1px 7px;
  background: rgba(255,255,255,.08); border-radius: 999px;
}
.adm-side-foot{
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; gap: 10px;
  font-size: 12.5px;
}
.adm-side-foot .av{
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--wave); color: var(--ink);
  display: grid; place-items: center;
  font-weight: 700; font-size: 12px;
}
.adm-side-foot small{ display:block; color: #94a3b8; font-size: 11.5px; }

/* ─── Main column ─── */
.adm-main{ display: flex; flex-direction: column; min-width: 0; }
.adm-top{
  display: flex; align-items: center; gap: 16px;
  padding: 14px 28px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky; top: 0; z-index: 10;
}
.adm-top .crumbs{
  font-size: 13px; color: #6b7280;
  display: flex; align-items: center; gap: 8px;
}
.adm-top .crumbs b{ color: #111827; font-weight: 500; }
.adm-top .crumbs .sep{ opacity: .4; }
.adm-search{
  flex: 1; max-width: 420px;
  margin-left: auto;
  position: relative;
}
.adm-search input{
  width: 100%;
  padding: 8px 12px 8px 34px;
  font: inherit; font-size: 13px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
  outline: none;
}
.adm-search input:focus{ background: #fff; border-color: var(--sea); }
.adm-search svg{
  position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
  color: #9ca3af;
}
.adm-top .vendor-select{
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; padding: 7px 12px;
  border: 1px solid #e5e7eb; border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.adm-top .vendor-select b{ font-weight: 600; }
.adm-top .vendor-select .swatch{
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--sea);
}

.adm-body{
  padding: 28px;
  flex: 1;
  display: flex; flex-direction: column; gap: 24px;
}

.adm-pgh{
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px;
}
.adm-pgh h1{
  font-family: var(--f-display); font-weight: 400;
  font-size: 36px; line-height: 1.1; margin: 0; letter-spacing: -0.01em;
}
.adm-pgh p{
  margin: 6px 0 0; font-size: 13.5px; color: #6b7280; max-width: 540px;
}
.adm-pgh-actions{ display: flex; gap: 8px; }

/* ─── Stat tiles ─── */
.adm-kpis{
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.adm-kpi{
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px 20px;
}
.adm-kpi-head{
  display:flex; align-items:center; justify-content: space-between;
  font-size: 12px; color: #6b7280; font-weight: 500;
  letter-spacing: .02em; text-transform: uppercase; margin-bottom: 10px;
}
.adm-kpi-head .delta{
  display:inline-flex; align-items:center; gap:3px;
  font-size: 11px; padding: 2px 7px; border-radius: 999px;
  font-weight: 600; letter-spacing: 0;
}
.adm-kpi-head .delta.up{ background: #ecfdf5; color: #047857; }
.adm-kpi-head .delta.down{ background: #fef2f2; color: #b91c1c; }
.adm-kpi b{
  display: block;
  font-family: var(--f-display); font-weight: 400;
  font-size: 32px; line-height: 1; letter-spacing: -0.01em;
}
.adm-kpi small{
  display: block; margin-top: 6px;
  font-size: 12px; color: #6b7280;
}

/* ─── Cards / panels ─── */
.adm-panel{
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}
.adm-panel-head{
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #e5e7eb;
}
.adm-panel-head h3{
  font-size: 14px; font-weight: 600; margin: 0;
}
.adm-panel-head .link{ font-size: 13px; color: var(--sea); }
.adm-panel-head .link:hover{ text-decoration: underline; }

/* ─── Table ─── */
.adm-table{
  width: 100%; border-collapse: collapse;
}
.adm-table th{
  text-align: left; padding: 11px 20px;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  color: #6b7280;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}
.adm-table td{
  padding: 14px 20px;
  font-size: 13.5px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: middle;
}
.adm-table tr:last-child td{ border-bottom: 0; }
.adm-table tr:hover{ background: #fafbfc; }
.adm-table b{ font-weight: 600; }
.adm-table .muted{ color: #6b7280; font-size: 12.5px; }
.adm-table .right{ text-align: right; }
.adm-table .num{ font-variant-numeric: tabular-nums; }

/* ─── Status badges ─── */
.adm-badge{
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: .01em;
}
.adm-badge .dot{ width: 6px; height: 6px; border-radius: 50%; }
.adm-badge.pending  { background: #fef3c7; color: #92400e; }
.adm-badge.pending .dot{ background: #f59e0b; }
.adm-badge.confirmed{ background: #d1fae5; color: #047857; }
.adm-badge.confirmed .dot{ background: #10b981; }
.adm-badge.completed{ background: #e0e7ff; color: #3730a3; }
.adm-badge.completed .dot{ background: #6366f1; }
.adm-badge.cancelled{ background: #fee2e2; color: #991b1b; }
.adm-badge.cancelled .dot{ background: #ef4444; }
.adm-badge.draft    { background: #f3f4f6; color: #4b5563; }
.adm-badge.draft .dot{ background: #9ca3af; }

/* ─── Buttons ─── */
.adm-btn{
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px; font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s, border .15s;
  white-space: nowrap;
}
.adm-btn-primary{ background: var(--ink); color: #fff; }
.adm-btn-primary:hover{ background: #082056; }
.adm-btn-ghost{ background: #fff; color: #111827; border-color: #d1d5db; }
.adm-btn-ghost:hover{ background: #f9fafb; }
.adm-btn-danger{ background: #fff; color: #b91c1c; border-color: #fecaca; }
.adm-btn-danger:hover{ background: #fef2f2; }

/* ─── Form bits ─── */
.adm-fld{ display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.adm-fld label{
  font-size: 12px; font-weight: 500;
  color: #374151;
}
.adm-fld .hint{ font-size: 12px; color: #6b7280; }
.adm-fld input, .adm-fld select, .adm-fld textarea{
  font: inherit; font-size: 13.5px;
  padding: 9px 12px;
  border: 1px solid #d1d5db; border-radius: 8px;
  background: #fff; color: #111827;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.adm-fld input:focus, .adm-fld select:focus, .adm-fld textarea:focus{
  border-color: var(--sea); box-shadow: 0 0 0 3px rgba(31,123,197,.12);
}
.adm-fld-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.adm-input-money{
  position: relative;
}
.adm-input-money input{ padding-left: 26px !important; font-variant-numeric: tabular-nums; }
.adm-input-money::before{
  content: "$"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: #6b7280; font-size: 13.5px;
}

.adm-input-pct{ position: relative; }
.adm-input-pct input{ padding-right: 28px !important; text-align: right; font-variant-numeric: tabular-nums; }
.adm-input-pct::after{
  content: "%"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: #6b7280; font-size: 13.5px;
}

/* ─── Boats & pricing — boat row ─── */
.adm-boat{
  display: grid; grid-template-columns: 80px 1fr auto;
  gap: 16px; align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f3f4f6;
}
.adm-boat:last-child{ border-bottom: 0; }
.adm-boat img{
  width: 80px; height: 60px; object-fit: cover; border-radius: 6px;
}
.adm-boat-name{ font-weight: 600; font-size: 14.5px; }
.adm-boat-sub{ font-size: 12.5px; color: #6b7280; margin-top: 2px; }
.adm-boat-prices{
  display: flex; gap: 18px;
  margin-top: 10px;
  font-size: 12.5px;
}
.adm-boat-prices span{ color: #6b7280; }
.adm-boat-prices b{ color: #111827; font-weight: 600; }

/* ─── Drawer ─── */
.adm-drawer-bg{
  position: fixed; inset: 0; z-index: 80;
  background: rgba(17,24,39,.5);
  backdrop-filter: blur(2px);
  display: flex; justify-content: flex-end;
  animation: fadeIn .2s ease;
}
.adm-drawer{
  width: 560px; max-width: 100%;
  background: #fff;
  height: 100%;
  display: flex; flex-direction: column;
  animation: slideRight .25s ease;
  overflow: hidden;
}
@keyframes slideRight{
  from{ transform: translateX(40px); opacity: 0; }
  to  { transform: none; opacity: 1; }
}
.adm-drawer-head{
  padding: 18px 24px;
  border-bottom: 1px solid #e5e7eb;
  display: flex; justify-content: space-between; align-items: center;
}
.adm-drawer-head h3{
  margin: 0; font-family: var(--f-display); font-weight: 400;
  font-size: 24px; letter-spacing: -0.01em;
}
.adm-drawer-head small{ display: block; font-size: 12.5px; color: #6b7280; margin-top: 2px; }
.adm-drawer-body{ padding: 22px 24px; overflow: auto; flex: 1; }
.adm-drawer-foot{
  padding: 14px 24px; border-top: 1px solid #e5e7eb;
  display: flex; justify-content: flex-end; gap: 8px;
  background: #f9fafb;
}

.adm-fld-group{
  margin: 8px 0 24px;
}
.adm-fld-group-h{
  font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 600; color: #6b7280;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 14px;
}

/* ─── Vendor commission row ─── */
.adm-vendor-row{
  display: grid;
  grid-template-columns: 44px 1.2fr 120px 110px 110px 90px 100px;
  gap: 16px; align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid #f3f4f6;
}
.adm-vendor-row:last-child{ border-bottom: 0; }
.adm-vendor-row.h{
  background: #f9fafb;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  color: #6b7280;
}
.adm-vendor-row.h > div{ padding: 4px 0; }
.adm-avatar{
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; font-size: 13px;
  color: #fff;
  background: var(--sea);
}
.adm-vendor-name{ font-weight: 600; }
.adm-vendor-meta{ font-size: 12px; color: #6b7280; margin-top: 2px; }
.adm-tier{
  font-size: 11.5px; font-weight: 600;
  padding: 3px 9px; border-radius: 999px;
  display: inline-block;
  letter-spacing: .01em;
}
.adm-tier.standard{ background: #f3f4f6; color: #4b5563; }
.adm-tier.preferred{ background: #ecfdf5; color: #047857; }
.adm-tier.partner{ background: #fef3c7; color: #92400e; }
.adm-vendor-row .num{ font-variant-numeric: tabular-nums; font-weight: 600; }

.adm-rate-edit{
  display: inline-flex; align-items: center; gap: 4px;
  font-variant-numeric: tabular-nums;
}
.adm-rate-edit input{
  width: 56px; padding: 4px 8px;
  border: 1px solid #d1d5db; border-radius: 6px;
  font: inherit; font-size: 13px; text-align: right;
  font-variant-numeric: tabular-nums;
  background: #fff;
}
.adm-rate-edit input:focus{
  outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px rgba(31,123,197,.12);
}

/* ─── Auth (signin / signup) ─── */
.adm-auth{
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  background: #fff;
}
.adm-auth-pic{
  position: relative;
  overflow: hidden;
}
.adm-auth-pic img{
  width: 100%; height: 100%; object-fit: cover;
}
.adm-auth-pic::after{
  content:""; position: absolute; inset:0;
  background: linear-gradient(180deg, rgba(12,42,107,.25), rgba(12,42,107,.7));
}
.adm-auth-pic-copy{
  position: absolute; left: 48px; right: 48px; bottom: 48px;
  color: #fff;
  z-index: 1;
}
.adm-auth-pic-copy h2{
  font-family: var(--f-display); font-weight: 400;
  font-size: 44px; line-height: 1.1; margin: 0 0 14px; letter-spacing: -0.015em;
}
.adm-auth-pic-copy h2 em{ font-style: italic; color: var(--sun); }
.adm-auth-pic-copy p{ font-size: 15px; max-width: 380px; opacity: .92; margin: 0; }
.adm-auth-pic-quote{
  border-top: 1px solid rgba(255,255,255,.2);
  margin-top: 28px; padding-top: 20px;
  font-size: 13px; opacity: .9;
}
.adm-auth-pic-quote b{ font-weight: 600; }

.adm-auth-form{
  padding: 56px 64px;
  display: flex; flex-direction: column; justify-content: center;
  max-width: 520px; width: 100%; margin: 0 auto;
}
.adm-auth-form img.logo{ height: 44px; align-self: flex-start; margin-bottom: 32px; }
.adm-auth-form h1{
  font-family: var(--f-display); font-weight: 400;
  font-size: 36px; margin: 0 0 6px; letter-spacing: -0.01em;
}
.adm-auth-form .sub{
  font-size: 14px; color: #6b7280; margin: 0 0 28px;
}
.adm-auth-form .checkbox{
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; color: #4b5563; margin-bottom: 16px;
}
.adm-auth-form .checkbox input{ margin-top: 2px; }
.adm-auth-form .alt{
  font-size: 13.5px; color: #6b7280; margin-top: 24px; text-align: center;
}
.adm-auth-form .alt a{ color: var(--sea); font-weight: 500; }
.adm-auth-form .divider{
  text-align: center; font-size: 12px; color: #9ca3af;
  margin: 20px 0;
  position: relative;
}
.adm-auth-form .divider::before, .adm-auth-form .divider::after{
  content:""; position: absolute; top: 50%;
  width: calc(50% - 30px); height: 1px; background: #e5e7eb;
}
.adm-auth-form .divider::before{ left: 0; }
.adm-auth-form .divider::after{ right: 0; }

/* Signup steps */
.adm-signup-progress{
  display: flex; gap: 8px;
  margin-bottom: 28px;
}
.adm-signup-progress > div{
  flex: 1;
  font-size: 11.5px; font-weight: 600;
  color: #9ca3af;
  padding: 8px 0 10px;
  border-top: 2px solid #e5e7eb;
  letter-spacing: .01em;
}
.adm-signup-progress > div.done{ color: var(--sea); border-top-color: var(--sea); }
.adm-signup-progress > div.active{ color: var(--ink); border-top-color: var(--ink); }

/* History list */
.adm-changelog{
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column;
}
.adm-changelog li{
  display: grid; grid-template-columns: 14px 1fr auto;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 13.5px;
}
.adm-changelog li:last-child{ border-bottom: 0; }
.adm-changelog .pip{
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--sea); margin-top: 8px;
}
.adm-changelog .what b{ font-weight: 600; }
.adm-changelog .what small{ display: block; font-size: 12px; color: #6b7280; margin-top: 2px; }
.adm-changelog .when{ font-size: 12px; color: #9ca3af; white-space: nowrap; }

/* ────────────────────────────────────────────────────────
   Partner role — sales agents (concierges, OTAs).
   Distinct visual cue: warmer accent on the side-nav pill,
   "+ New booking" gets a primary visual emphasis in the nav.
   ──────────────────────────────────────────────────────── */
.adm-brand .role-pill.partner{ background: var(--sea); color: #fff; }
.adm-nav a.primary-action{
  background: var(--ink); color: #fff !important;
  font-weight: 600;
  margin: 6px 0 4px;
  padding: 11px 12px;
}
.adm-nav a.primary-action .adm-nav-icon{ color: var(--sun); }
.adm-nav a.primary-action:hover{ background: #082056; }
.adm-nav a.primary-action.active{ background: var(--ink); }

/* Partner dashboard — big primary CTA card */
.partner-cta{
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px;
  background: linear-gradient(120deg, var(--ink) 0%, #082056 100%);
  color: #fff;
  border-radius: 14px;
  padding: 28px 32px;
  cursor: pointer;
  transition: transform .2s;
  position: relative; overflow: hidden;
}
.partner-cta::before{
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 600px 200px at 90% 50%, rgba(255,204,46,.12), transparent 60%);
  pointer-events: none;
}
.partner-cta:hover{ transform: translateY(-1px); }
.partner-cta .eyebrow{ color: var(--sun); margin-bottom: 8px; }
.partner-cta .eyebrow .dot{ background: var(--sun); }
.partner-cta h2{
  font-family: var(--f-display); font-weight: 400;
  font-size: 32px; line-height: 1.1; margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.partner-cta h2 em{ font-style: italic; color: var(--sun); }
.partner-cta p{
  font-size: 14px; line-height: 1.55; opacity: .85;
  margin: 0; max-width: 540px;
}
.partner-cta .adm-btn{
  background: var(--sun); color: var(--ink); border-color: var(--sun);
  font-weight: 600; padding: 12px 18px; font-size: 14px;
  white-space: nowrap; flex-shrink: 0;
}
.partner-cta .adm-btn:hover{ background: #ffd454; border-color: #ffd454; }

/* New-booking form — two columns: form left, summary right */
.pnb-grid{
  display: grid; grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: flex-start;
}
.pnb-form{ display: flex; flex-direction: column; gap: 16px; }
.pnb-form .adm-panel{ overflow: visible; }
.pnb-form .req{ color: #ef4444; margin-left: 2px; }

/* Boat preference chips */
.pnb-boat-pref{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-bottom: 4px;
}
.pnb-boat-card{
  font: inherit; cursor: pointer;
  background: #fff; border: 1px solid #d1d5db;
  border-radius: 8px; padding: 10px 12px;
  text-align: left;
  display: flex; flex-direction: column; gap: 2px;
  transition: border-color .15s, background .15s;
}
.pnb-boat-card:hover{ border-color: var(--sea); }
.pnb-boat-card.selected{ border-color: var(--sea); background: rgba(31,123,197,.05); box-shadow: 0 0 0 1px var(--sea); }
.pnb-boat-card b{ font-size: 13px; font-weight: 600; }
.pnb-boat-card small{ font-size: 11.5px; color: #6b7280; }

/* Extras */
.pnb-extras{
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.pnb-extra{
  display: flex; gap: 10px; align-items: flex-start;
  border: 1px solid #d1d5db; border-radius: 8px;
  padding: 10px 12px;
  background: #fff; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.pnb-extra:hover{ border-color: var(--sea); }
.pnb-extra.selected{ border-color: var(--sea); background: rgba(31,123,197,.05); }
.pnb-extra input{ margin-top: 1px; accent-color: var(--sea); }
.pnb-extra b{ font-size: 13px; font-weight: 600; display: block; }
.pnb-extra small{ font-size: 11.5px; color: #6b7280; display: block; }

/* Deposit chooser */
.pnb-deposit{ display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pnb-dep{
  font: inherit; cursor: pointer;
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff; border: 1px solid #d1d5db;
  border-radius: 8px; padding: 12px 14px;
  text-align: left;
  transition: border-color .15s, background .15s;
}
.pnb-dep:hover{ border-color: var(--sea); }
.pnb-dep.selected{ border-color: var(--sea); background: rgba(31,123,197,.05); box-shadow: 0 0 0 1px var(--sea); }
.pnb-dep-icon{ font-size: 18px; line-height: 1; margin-top: 2px; }
.pnb-dep b{ font-size: 13.5px; font-weight: 600; display: block; }
.pnb-dep small{ font-size: 12px; color: #6b7280; display: block; line-height: 1.45; margin-top: 2px; }

/* Right-side summary */
.pnb-aside{
  position: sticky; top: 80px;
  display: flex; flex-direction: column; gap: 16px;
}
.pnb-summary{
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  padding: 20px 22px;
}
.pnb-summary .eyebrow{ font-size: 10.5px; color: #6b7280; margin-bottom: 12px; }
.pnb-summary .eyebrow .dot{ background: var(--sea); }
.pnb-summary h3{
  font-family: var(--f-display); font-weight: 400;
  font-size: 22px; margin: 0 0 4px; letter-spacing: -0.01em;
}
.pnb-meta{ font-size: 12.5px; color: #6b7280; margin-bottom: 14px; }
.pnb-summary dl{ margin: 0 0 14px; padding-top: 14px; border-top: 1px solid #f3f4f6; display: flex; flex-direction: column; gap: 8px; }
.pnb-summary dl > div{ display: flex; justify-content: space-between; font-size: 13.5px; }
.pnb-summary dt{ color: #6b7280; }
.pnb-summary dd{ margin: 0; color: #111827; font-weight: 500; font-variant-numeric: tabular-nums; }
.pnb-total{
  display: flex; justify-content: space-between; align-items: baseline;
  padding-top: 14px; border-top: 1px solid #f3f4f6;
}
.pnb-total b{ font-family: var(--f-display); font-size: 26px; font-weight: 400; color: #111827; }
.pnb-commission{
  margin-top: 14px;
  background: linear-gradient(120deg, rgba(31,123,197,.08), rgba(255,204,46,.08));
  border: 1px solid rgba(31,123,197,.18);
  border-radius: 10px;
  padding: 12px 14px;
}
.pnb-commission-label{ font-size: 11.5px; color: var(--sea); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.pnb-commission-amt{
  font-family: var(--f-display); font-weight: 400;
  font-size: 28px; color: var(--ink); letter-spacing: -0.01em;
  margin: 2px 0;
}
.pnb-commission-sub{ font-size: 11.5px; color: #6b7280; }
.pnb-tip{
  background: #fff; border: 1px dashed #d1d5db; border-radius: 10px;
  padding: 14px 16px; font-size: 12.5px; color: #4b5563;
  line-height: 1.55;
}
.pnb-tip b{ display: block; font-size: 11.5px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: #6b7280; margin-bottom: 6px; }
.pnb-tip p{ margin: 0; }
.pnb-tip i{ font-style: italic; color: var(--ink); }

/* Success screen after partner submits */
.partner-success{
  background: #fff; border: 1px solid #e5e7eb; border-radius: 14px;
  padding: 48px 40px;
  text-align: center;
  max-width: 600px; margin: 0 auto;
}
.partner-success-mark{
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(16,185,129,.12); color: #10b981;
  display: grid; place-items: center;
  margin: 0 auto 18px;
}
.partner-success h2{
  font-family: var(--f-display); font-weight: 400;
  font-size: 32px; line-height: 1.15; margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.partner-success p{ font-size: 14px; line-height: 1.6; color: #4b5563; max-width: 480px; margin: 0 auto 24px; }
.partner-success-card{
  background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px;
  padding: 16px 20px; text-align: left;
  margin: 0 auto 28px; max-width: 440px;
}
.partner-success-card .ps-row{ display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; }
.partner-success-card .ps-row dt{ color: #6b7280; }
.partner-success-card .ps-row dd{ margin: 0; color: #111827; font-weight: 500; font-variant-numeric: tabular-nums; }
.partner-success-actions{ display: flex; gap: 10px; justify-content: center; margin-bottom: 22px; flex-wrap: wrap; }
.partner-success-hint{
  font-size: 12.5px; color: #4b5563;
  background: #fff7e6; border: 1px solid #f9d68a; border-radius: 8px;
  padding: 12px 16px; max-width: 480px; margin: 0 auto;
  text-align: left; line-height: 1.55;
}
.partner-success-hint b{ color: #92400e; }

/* Partner mobile rules — fits into the existing admin mobile block */
@media (max-width: 900px){
  .pnb-grid{ grid-template-columns: 1fr; }
  .pnb-aside{ position: static; }
}
@media (max-width: 640px){
  .partner-cta{ flex-direction: column; align-items: stretch; padding: 22px; gap: 18px; text-align: left; }
  .partner-cta h2{ font-size: 26px; }
  .partner-cta .adm-btn{ width: 100%; justify-content: center; }
  .pnb-boat-pref{ grid-template-columns: 1fr; }
  .pnb-extras{ grid-template-columns: 1fr; }
  .pnb-deposit{ grid-template-columns: 1fr; }
  .partner-success{ padding: 32px 22px; }
  .partner-success h2{ font-size: 24px; }
}

@media (max-width: 900px){
  .adm{ grid-template-columns: 1fr; }
  .adm-side{ display: none; }
  .adm-kpis{ grid-template-columns: 1fr 1fr; }
  .adm-auth{ grid-template-columns: 1fr; }
  .adm-auth-pic{ display: none; }
}

/* ─────────────────────────────────────────────────────────────────
   ADMIN — PHONE (under 640px).
   The admin surface is desktop-first but vendors do open booking
   alerts on their phones. This keeps the dashboard scannable and
   the confirm-a-request flow tappable.
   ───────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  /* Top bar wraps: crumbs on top row, search + actions on second */
  .adm-top {
    padding: 10px 14px; gap: 8px;
    flex-wrap: wrap;
    position: relative; /* unsticky on phone — too cramped */
  }
  .adm-top .crumbs { width: 100%; font-size: 12px; }
  .adm-search { max-width: none; margin-left: 0; flex: 1 1 100%; order: 3; }
  .adm-top .vendor-select { display: none; } /* admins drop to one vendor at a time anyway */
  .adm-top .adm-btn { padding: 7px 10px; font-size: 12px; }

  /* Body */
  .adm-body { padding: 18px 14px; gap: 18px; }

  /* Page heading */
  .adm-pgh { flex-direction: column; align-items: flex-start; gap: 14px; }
  .adm-pgh h1 { font-size: 26px; }
  .adm-pgh p { font-size: 13px; max-width: none; }
  .adm-pgh-actions { width: 100%; gap: 8px; }
  .adm-pgh-actions .adm-btn { flex: 1; justify-content: center; padding: 9px 10px; font-size: 13px; }

  /* KPI tiles — single column on small phones, much more readable */
  .adm-kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .adm-kpi { padding: 14px 16px; }
  .adm-kpi b { font-size: 24px; }
  .adm-kpi-head { font-size: 10.5px; }
  .adm-kpi small { font-size: 11px; }

  /* Tables → card stack via CSS.
     Each <tr> becomes a card; each <td> becomes a labeled row.
     The label comes from the previous <th> via a CSS counter trick is
     impossible without scripting — so we use generic two-line rows. */
  .adm-panel-head { padding: 12px 14px; }
  .adm-panel-head h3 { font-size: 13px; }
  .adm-table, .adm-table thead, .adm-table tbody, .adm-table tr, .adm-table td {
    display: block; width: auto;
  }
  .adm-table thead { display: none; }
  .adm-table tr {
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 14px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    align-items: baseline;
  }
  .adm-table tr:last-child { border-bottom: 0; }
  .adm-table tr:hover { background: transparent; }
  .adm-table td {
    padding: 0;
    border: 0;
    font-size: 13px;
    color: #6b7280;
  }
  /* First col (Booking ID) acts as card title — spans full width */
  .adm-table td:first-child {
    grid-column: 1 / -1;
    font-size: 14px; color: #111827; font-weight: 600;
    margin-bottom: 2px;
  }
  .adm-table td:first-child b { font-size: 14px; }
  .adm-table td .muted { font-size: 11.5px; font-weight: 400; }
  /* Status badge: right-aligned, on the same row as the first inline td */
  .adm-table td:last-child { justify-self: end; }
  .adm-table td.right { text-align: left; }
  .adm-table td.num b { font-weight: 600; color: #111827; }

  /* Vendor commission grid → compact two-col card */
  .adm-vendor-row {
    grid-template-columns: 40px 1fr !important;
    gap: 10px 12px;
    padding: 14px;
  }
  .adm-vendor-row.h { display: none; }
  .adm-vendor-row > div:nth-child(n+3) {
    grid-column: 2;
    font-size: 12.5px;
    color: #6b7280;
  }
  .adm-vendor-row .adm-rate-edit { font-size: 13px; }

  /* Boats & pricing — boat row */
  .adm-boat { grid-template-columns: 64px 1fr; gap: 12px; padding: 14px; }
  .adm-boat img { width: 64px; height: 48px; }
  .adm-boat-prices { font-size: 11.5px; gap: 12px; flex-wrap: wrap; }
  .adm-boat > .adm-btn { grid-column: 1 / -1; justify-self: stretch; }

  /* Drawer — full screen on phone */
  .adm-drawer { width: 100%; max-width: none; }
  .adm-drawer-head { padding: 14px 16px; }
  .adm-drawer-head h3 { font-size: 20px; }
  .adm-drawer-body { padding: 18px 16px; }
  .adm-drawer-foot { padding: 12px 16px; }
  .adm-fld-row { grid-template-columns: 1fr !important; gap: 0; }

  /* Auth — tighter padding */
  .adm-auth-form { padding: 36px 22px; max-width: none; }
  .adm-auth-form img.logo { height: 36px; margin-bottom: 22px; }
  .adm-auth-form h1 { font-size: 26px; }
  .adm-auth-form .sub { font-size: 13px; margin-bottom: 22px; }
  .adm-signup-progress { gap: 4px; }
  .adm-signup-progress > div { font-size: 10px; padding: 6px 0 8px; }
  .adm-fld input, .adm-fld select, .adm-fld textarea { font-size: 16px; padding: 11px 12px; } /* 16px = no iOS zoom */
}

/* Admin input/button helpers */
.adm-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 8px;
  font: inherit; font-size: 13.5px; font-weight: 500;
  border: 1px solid transparent; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  white-space: nowrap; text-decoration: none;
}
.adm-btn-primary { background: var(--sea); color: #fff; border-color: var(--sea); }
.adm-btn-primary:hover { background: var(--sea-deep); }
.adm-btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.adm-btn-ghost { background: #fff; color: #111827; border-color: #e5e7eb; }
.adm-btn-ghost:hover { border-color: var(--sea); color: var(--sea); }
.adm-label { display: block; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: #6b7280; margin-bottom: 5px; }
.adm-input {
  display: block; width: 100%; box-sizing: border-box;
  padding: 9px 12px; font: inherit; font-size: 14px;
  border: 1px solid #e5e7eb; border-radius: 8px;
  background: #fff; color: #111827;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.adm-input:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px rgba(31,123,197,.12); }
.adm-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: .02em; }
.adm-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.adm-badge.confirmed { background: #ecfdf5; color: #047857; }
.adm-badge.draft { background: #fef3c7; color: #92400e; }
.adm-badge.cancelled { background: #fef2f2; color: #b91c1c; }
.adm-badge.pendingcaptain { background: #eff6ff; color: #1d4ed8; }
.muted { font-size: 12px; color: #9ca3af; margin-top: 1px; }
@media (max-width: 900px) {
  .adm { grid-template-columns: 1fr; }
  .adm-side { display: none; }
  .adm-kpis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .adm-kpis { grid-template-columns: 1fr; }
  .adm-body { padding: 16px; }
}
