:root { --border:#dfe3e8; --bg:#f6f6f7; --text:#202223; --muted:#6d7175; --blue:#1f5199; --green:#0a7a3d; --red:#b42318; --yellow:#946200; --purple:#5c2d91; }
*{box-sizing:border-box} body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;background:var(--bg);color:var(--text)}
.container{max-width:980px;margin:0 auto;padding:28px 16px}.narrow{max-width:760px}.tiny{max-width:420px}.wide{max-width:1180px}.card{background:white;border:1px solid var(--border);border-radius:14px;padding:22px;margin:16px 0;box-shadow:0 1px 2px rgba(0,0,0,.04)}
h1{margin:0 0 8px;font-size:28px}h2{font-size:19px;margin:18px 0 12px}.hero p{color:var(--muted)}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 16px}.form-grid h2{grid-column:1/-1;border-top:1px solid var(--border);padding-top:18px}.form-grid h2:first-child{border-top:0;padding-top:0}.span2{grid-column:1/-1}
label{display:flex;flex-direction:column;font-weight:600;font-size:14px;gap:7px}input,select,textarea{font:inherit;border:1px solid #c9cccf;border-radius:10px;padding:11px;background:white}textarea{resize:vertical}.check{flex-direction:row;font-weight:500;align-items:flex-start}.check input{margin-top:3px}
button,.button{border:1px solid var(--border);background:white;border-radius:10px;padding:10px 14px;font-weight:700;text-decoration:none;color:var(--text);cursor:pointer;display:inline-block}.primary{background:var(--blue);border-color:var(--blue);color:white}.danger{background:var(--red);border-color:var(--red);color:white}.success{border-color:#a6d8b9}.error{border-color:#f0b8b0}.inline-error{color:var(--red);font-weight:700}.notice{background:#eaf4ff;border:1px solid #b8daff;padding:12px;border-radius:10px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px}.filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}.chip{padding:8px 12px;border:1px solid var(--border);border-radius:999px;text-decoration:none;color:var(--text);font-weight:700}.chip.active{background:#202223;color:white}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse}th,td{padding:12px;border-bottom:1px solid var(--border);text-align:left;vertical-align:top}th{font-size:13px;color:var(--muted)}small{color:var(--muted)}.empty{text-align:center;color:var(--muted);padding:28px}.status{font-size:12px;font-weight:800;border-radius:999px;padding:5px 8px}.pending{background:#fff4cc;color:var(--yellow)}.approved{background:#dff7e8;color:var(--green)}.rejected{background:#ffe5e1;color:var(--red)}.request_info{background:#eee7ff;color:var(--purple)}dl{display:grid;grid-template-columns:180px 1fr;gap:12px}dt{font-weight:800;color:var(--muted)}dd{margin:0}.actions{display:grid;grid-template-columns:1fr 1fr;gap:16px}.three-actions{grid-template-columns:1fr 1fr 1fr}.muted{color:var(--muted)}
@media(max-width:920px){.three-actions{grid-template-columns:1fr}}
@media(max-width:720px){.form-grid,.actions,dl{grid-template-columns:1fr}.span2{grid-column:auto}.topbar{align-items:flex-start;flex-direction:column}}
.nav-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.nav-actions form{margin:0}.compact-grid{align-items:end}.small-input{max-width:90px}.row-actions{display:flex;gap:8px;align-items:center}.row-actions form{margin:0}.table-wrap input{min-width:120px;width:100%}.table-wrap td:first-child input{min-width:auto;width:auto}
.reason-list{border:1px solid var(--border);border-radius:12px;padding:12px;background:#fafafa;margin:10px 0;display:flex;flex-direction:column;gap:10px}.reason-check{display:flex;flex-direction:row;gap:10px;align-items:flex-start;font-weight:500;border-top:1px solid #eceff1;padding-top:10px}.reason-check:first-of-type{border-top:0}.reason-check input{margin-top:3px}.reason-check span{display:flex;flex-direction:column;gap:4px}.prewrap{white-space:pre-wrap;font-family:inherit;margin:0;background:#fafafa;border:1px solid var(--border);border-radius:10px;padding:10px}

/* One Wholesale public application form */
.apply-page{background:linear-gradient(180deg,#eef3fb 0%,#f7f8fa 42%,#f6f6f7 100%);min-height:100vh}.ow-header{background:#111827;color:#fff;border-bottom:1px solid rgba(255,255,255,.08)}.ow-header-inner{max-width:1120px;margin:0 auto;padding:18px 20px;display:flex;align-items:center;justify-content:space-between;gap:18px}.ow-brand{display:flex;align-items:center;gap:14px}.ow-logo{height:48px;max-width:180px;object-fit:contain;background:white;border-radius:10px;padding:6px}.ow-logo-mark{width:48px;height:48px;border-radius:12px;background:#fff;color:#111827;display:flex;align-items:center;justify-content:center;font-weight:900;letter-spacing:-1px}.ow-eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#c7d2fe;font-weight:800}.ow-brand-name{font-size:20px;font-weight:900}.ow-header-note{font-size:14px;color:#d1d5db;text-align:right}.apply-shell{max-width:1120px;margin:0 auto;padding:34px 20px 60px}.application-hero{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:24px;align-items:stretch;margin-bottom:24px}.application-hero>div,.review-card,.application-form,.submitted-panel{background:rgba(255,255,255,.96);border:1px solid #dfe3e8;border-radius:22px;box-shadow:0 12px 36px rgba(17,24,39,.08)}.application-hero>div{padding:34px}.ow-kicker{margin:0 0 10px;color:#1f5199;font-weight:900;text-transform:uppercase;letter-spacing:.08em;font-size:13px}.application-hero h1{font-size:42px;line-height:1.05;letter-spacing:-.04em;margin:0 0 14px;color:#111827}.hero-copy{font-size:17px;line-height:1.65;color:#4b5563;max-width:740px}.trust-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}.trust-row span{background:#eef2ff;color:#243b7a;border:1px solid #d7ddff;border-radius:999px;padding:9px 12px;font-weight:800;font-size:13px}.review-card{padding:24px}.review-card h2{margin-top:0}.review-card ul{margin:0;padding-left:20px;color:#4b5563;line-height:1.55}.submitted-panel{text-align:center;padding:46px 24px;max-width:720px;margin:0 auto}.submitted-icon{width:64px;height:64px;border-radius:50%;background:#0a7a3d;color:#fff;display:flex;align-items:center;justify-content:center;font-size:34px;font-weight:900;margin:0 auto 18px}.application-form{padding:0;overflow:hidden}.form-section{padding:28px 32px;border-top:1px solid #e5e7eb}.form-section:first-child{border-top:0}.section-heading{display:flex;gap:14px;align-items:flex-start;margin-bottom:20px}.section-step{width:34px;height:34px;border-radius:50%;background:#1f5199;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:900;flex:0 0 auto}.section-heading h2{margin:0 0 4px;font-size:22px;letter-spacing:-.02em}.section-heading p{margin:0;color:#6b7280;line-height:1.45}.polished-grid h2{display:none}.polished-grid label{font-size:14px;color:#374151}.polished-grid input,.polished-grid select,.form-section textarea{border-color:#cfd6dd;border-radius:12px;padding:13px 14px;box-shadow:0 1px 0 rgba(17,24,39,.02);transition:border-color .15s,box-shadow .15s}.polished-grid input:focus,.polished-grid select:focus,.form-section textarea:focus{outline:none;border-color:#1f5199;box-shadow:0 0 0 3px rgba(31,81,153,.14)}.polished-grid small{font-weight:500;line-height:1.4}.consent-stack{display:grid;gap:24px;margin-top:20px}.agreement-box{background:#f9fafb;border:1px solid #e5e7eb;border-radius:14px;padding:18px;margin:0}.agreement-box .check{margin:0;gap:12px}.agreement-box .check span{display:flex;flex-direction:column;gap:4px}.apply-submit{width:100%;font-size:16px;padding:15px 20px;border-radius:12px;margin-top:12px;margin-bottom:10px}.form-footer-note{text-align:center;color:#6b7280;margin:8px 0 0;font-size:13px}
@media(max-width:900px){.application-hero{grid-template-columns:1fr}.application-hero h1{font-size:34px}.ow-header-inner{align-items:flex-start;flex-direction:column}.ow-header-note{text-align:left}.form-section{padding:24px 18px}.application-hero>div{padding:26px 20px}}

/* v7 Admin professional polish */
.admin-page{background:#f3f5f8;color:#111827}.admin-shell{max-width:1240px;margin:0 auto;padding:30px 20px 64px}.admin-topbar{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:22px;background:linear-gradient(135deg,#111827 0%,#1f2937 100%);color:#fff;border-radius:22px;padding:26px 28px;box-shadow:0 18px 44px rgba(17,24,39,.18)}.admin-topbar h1{font-size:32px;letter-spacing:-.035em;margin:0}.admin-kicker{margin:0 0 8px;text-transform:uppercase;letter-spacing:.1em;font-size:12px;font-weight:900;color:#a5b4fc}.admin-subtitle{margin:8px 0 0;color:#d1d5db;max-width:720px;line-height:1.5}.admin-topbar .button,.admin-topbar button{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.18);color:#fff}.admin-topbar .button:hover,.admin-topbar button:hover{background:rgba(255,255,255,.14)}.admin-card{background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:22px;margin:18px 0;box-shadow:0 10px 30px rgba(15,23,42,.06)}.admin-card-header{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin-bottom:16px}.admin-card-header h2,.admin-card h2{margin-top:0;letter-spacing:-.02em}.admin-card-header p{margin:4px 0 0;color:#64748b}.admin-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.stat-card{display:flex;flex-direction:column;gap:10px;background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:18px;text-decoration:none;color:#111827;box-shadow:0 6px 20px rgba(15,23,42,.05)}.stat-card span{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#64748b;font-weight:900}.stat-card strong{font-size:34px;line-height:1;letter-spacing:-.04em}.stat-card.active{border-color:#1f5199;box-shadow:0 0 0 3px rgba(31,81,153,.12),0 10px 24px rgba(31,81,153,.12)}.compact-filters{justify-content:flex-end}.compact-filters .chip small{margin-left:4px;color:inherit;opacity:.7}.professional-table table{border-spacing:0;border-collapse:separate}.professional-table th{background:#f8fafc;color:#475569;text-transform:uppercase;letter-spacing:.05em;font-size:12px;border-bottom:1px solid #e2e8f0}.professional-table td{border-bottom:1px solid #eef2f7}.professional-table tr:hover td{background:#fbfdff}.primary-light{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}.detail-card dl{grid-template-columns:210px minmax(0,1fr);gap:14px 18px}.detail-card dt{font-size:13px;text-transform:uppercase;letter-spacing:.04em}.admin-actions .admin-card{margin:0}.admin-actions h2{display:flex;align-items:center;gap:8px}.field-hint.good{color:#0a7a3d}.field-hint.bad{color:#b42318}.field-hint.warning{color:#946200}.field-hint.checking{color:#1f5199}.apply-submit:disabled{opacity:.55;cursor:not-allowed}.address-helper-panel{background:#f8fafc;border:1px dashed #cbd5e1;border-radius:16px;padding:16px;margin-bottom:18px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end}.address-helper-panel small{grid-column:1/-1}.address-helper-panel textarea{min-height:52px}
@media(max-width:980px){.admin-topbar,.admin-card-header{flex-direction:column}.admin-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.address-helper-panel{grid-template-columns:1fr}.compact-filters{justify-content:flex-start}}
@media(max-width:640px){.admin-shell{padding:18px 12px 48px}.admin-topbar{padding:22px 18px;border-radius:18px}.admin-stat-grid{grid-template-columns:1fr}.detail-card dl{grid-template-columns:1fr}.admin-topbar h1{font-size:26px}}

/* v7.3 Admin settings + customer detail professional refresh */
.card-eyebrow{margin:0 0 6px;text-transform:uppercase;letter-spacing:.09em;color:#64748b;font-size:12px;font-weight:900}.admin-topbar-detail h1,.settings-topbar h1{max-width:760px}.status-large{font-size:13px;padding:9px 12px;background:#fff;color:#111827;border:1px solid rgba(255,255,255,.24);text-transform:uppercase;letter-spacing:.05em}.detail-overview-grid{display:grid;grid-template-columns:1.25fr 1fr 1fr;gap:16px;margin:18px 0}.overview-card{display:flex;gap:16px;align-items:flex-start;margin:0;min-height:150px}.primary-overview{background:linear-gradient(135deg,#fff 0%,#f8fbff 100%);border-color:#dbeafe}.overview-icon,.summary-icon{width:46px;height:46px;border-radius:14px;background:#eff6ff;color:#1f5199;display:flex;align-items:center;justify-content:center;font-size:24px;flex:0 0 auto}.overview-card h2{margin:0 0 4px;font-size:21px}.overview-card p{margin:5px 0}.pill-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.pill{display:inline-flex;align-items:center;border:1px solid #dbeafe;background:#eff6ff;color:#1e3a8a;border-radius:999px;padding:7px 10px;font-weight:800;font-size:12px}.detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:18px;align-items:start}.detail-main .admin-card,.detail-side .admin-card{margin-top:0}.professional-section{padding:24px}.info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.info-grid>div{border:1px solid #e2e8f0;background:#f8fafc;border-radius:14px;padding:14px}.info-grid span,.side-meta span{display:block;color:#64748b;font-size:12px;text-transform:uppercase;letter-spacing:.05em;font-weight:900;margin-bottom:6px}.info-grid strong,.side-meta strong{font-size:15px;line-height:1.45;word-break:break-word}.address-card-readonly{display:flex;flex-direction:column;gap:6px;border:1px solid #e2e8f0;background:#f8fafc;border-radius:16px;padding:18px;line-height:1.45}.timeline-list{display:flex;flex-direction:column;gap:0}.timeline-item{display:grid;grid-template-columns:24px minmax(0,1fr);gap:12px;position:relative;padding:0 0 18px}.timeline-item:not(:last-child):before{content:"";position:absolute;left:7px;top:17px;bottom:0;width:2px;background:#e2e8f0}.timeline-dot{width:16px;height:16px;border-radius:50%;background:#1f5199;margin-top:2px;box-shadow:0 0 0 4px #eff6ff;z-index:1}.timeline-item strong{display:block;margin-bottom:7px}.side-card{position:sticky;top:18px}.side-meta{border-top:1px solid #e2e8f0;padding:14px 0}.side-meta:first-of-type{border-top:0}.action-hub{padding:24px}.review-action-card{border:1px solid #e2e8f0;border-radius:18px;padding:18px;background:#fff;box-shadow:0 4px 16px rgba(15,23,42,.05);display:flex;flex-direction:column;gap:12px}.review-action-card h2{margin:0}.approve-card{border-top:5px solid #0a7a3d}.info-card{border-top:5px solid #5c2d91}.reject-card{border-top:5px solid #b42318}.professional-reason-list{background:#f8fafc;border-color:#e2e8f0}.settings-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0}.settings-summary-card{margin:0;display:flex;gap:14px;align-items:flex-start;min-height:110px}.settings-summary-card strong{display:block;font-size:18px;line-height:1.35;word-break:break-word}.settings-layout{display:grid;grid-template-columns:240px minmax(0,1fr);gap:18px;align-items:start}.settings-sidebar{position:sticky;top:18px;display:flex;flex-direction:column;gap:6px;padding:14px}.settings-sidebar a{color:#334155;text-decoration:none;font-weight:800;border-radius:12px;padding:11px 12px}.settings-sidebar a:hover{background:#eff6ff;color:#1f5199}.settings-main .admin-card{margin-top:0;margin-bottom:18px}.settings-section-card{scroll-margin-top:20px}.settings-section-card .admin-card-header{border-bottom:1px solid #e2e8f0;padding-bottom:16px}.inline-create-panel{background:#f8fafc;border:1px solid #e2e8f0;border-radius:18px;padding:18px;margin:14px 0 18px}.inline-create-panel h3{margin:0 0 14px;font-size:17px}.settings-form-actions{display:flex;justify-content:flex-end}.settings-table input,.settings-table textarea{border-radius:9px}.table-check{display:flex;flex-direction:row;gap:8px;align-items:center;font-weight:800;color:#334155}.table-check input{width:auto;min-width:auto}.reason-template-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.reason-template-card{border:1px solid #e2e8f0;border-radius:18px;padding:16px;background:#fff;box-shadow:0 4px 16px rgba(15,23,42,.04);display:flex;flex-direction:column;gap:12px}.reason-template-card{border-top:5px solid #5c2d91}.reject-template-card{border-top-color:#b42318}.reason-template-form{display:flex;flex-direction:column;gap:12px}.reason-template-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px}.reason-template-head label:last-child{max-width:110px}.settings-section-card textarea{min-height:92px}
@media(max-width:1100px){.detail-overview-grid{grid-template-columns:1fr}.detail-layout,.settings-layout{grid-template-columns:1fr}.side-card,.settings-sidebar{position:static}.settings-sidebar{flex-direction:row;flex-wrap:wrap}.settings-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.reason-template-list{grid-template-columns:1fr}}
@media(max-width:720px){.info-grid,.settings-summary-grid{grid-template-columns:1fr}.overview-card{min-height:auto}.reason-template-head{flex-direction:column;align-items:stretch}.settings-form-actions{justify-content:stretch}.settings-form-actions button{width:100%}}

/* v7.4 First Nations proof and tax exemption */
.first-nation-panel {
  display: grid;
  gap: 14px;
}
.first-nation-check {
  align-items: flex-start;
  gap: 12px;
}
.first-nation-check strong {
  display: block;
  font-size: 14px;
  color: #111827;
}
.first-nation-check small,
.proof-upload-box small {
  display: block;
  color: #667085;
  margin-top: 4px;
  line-height: 1.45;
}
.proof-upload-box {
  display: none;
  padding: 16px;
  border-radius: 14px;
  border: 2px dashed #93c5fd;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  box-shadow: inset 0 0 0 1px rgba(147,197,253,.18);
}
.proof-upload-head {
  margin-bottom: 12px;
}
.proof-upload-head strong {
  display: block;
  color: #1e3a8a;
  font-size: 14px;
  margin-bottom: 4px;
}
.proof-upload-box.active {
  display: block;
}
.proof-upload-box input[type="file"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #fff;
  margin-top: 6px;
}
.pill-warning {
  background: #fff7ed;
  color: #9a3412;
  border-color: #fed7aa;
}
.full-width {
  width: 100%;
  justify-content: center;
  text-align: center;
}
/* v7.5 admin password settings */
.settings-summary-grid{grid-template-columns:repeat(auto-fit,minmax(210px,1fr));}
.security-section-card{border-top:5px solid #1f5199;}
.subtle-notice{background:#f8fafc;color:#334155;border-color:#dbeafe;}
.form-help{margin:12px 0 0;color:#64748b;font-size:13px;line-height:1.5;}

/* v7.6 professional admin login */
.admin-login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(31,81,153,.20), transparent 30%),
    linear-gradient(135deg, #0f172a 0%, #111827 42%, #f3f5f8 42%, #f3f5f8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}
.admin-login-shell {
  width: min(1040px, 100%);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(226,232,240,.9);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(15,23,42,.22);
}
.admin-login-brand-panel {
  min-height: 560px;
  padding: 48px;
  background:
    linear-gradient(135deg, rgba(17,24,39,.92), rgba(31,81,153,.90)),
    linear-gradient(135deg, #111827, #1f5199);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-logo-mark {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #fff;
  color: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
  font-size: 24px;
  letter-spacing: -1px;
  box-shadow: 0 14px 34px rgba(0,0,0,.20);
  margin-bottom: 28px;
}
.login-eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .11em;
  color: #c7d2fe;
}
.login-eyebrow.dark {
  color: #1f5199;
}
.admin-login-brand-panel h1 {
  margin: 0 0 16px;
  font-size: 46px;
  line-height: 1.02;
  letter-spacing: -.05em;
}
.login-copy {
  margin: 0;
  color: #dbeafe;
  font-size: 17px;
  line-height: 1.65;
  max-width: 520px;
}
.login-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}
.login-feature-list span {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 800;
  font-size: 13px;
}
.admin-login-card-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px;
}
.admin-login-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 22px;
  padding: 30px;
  box-shadow: 0 14px 40px rgba(15,23,42,.08);
}
.login-card-header h2 {
  margin: 0 0 8px;
  font-size: 30px;
  letter-spacing: -.04em;
  color: #111827;
}
.login-card-header p:last-child {
  margin: 0 0 24px;
  color: #64748b;
  line-height: 1.5;
}
.login-field {
  gap: 9px;
  color: #334155;
  margin-bottom: 16px;
}
.login-field span {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #475569;
  font-weight: 900;
}
.login-field input {
  border-radius: 14px;
  padding: 14px 15px;
  border-color: #cbd5e1;
  background: #f8fafc;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.login-field input:focus {
  outline: none;
  border-color: #1f5199;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(31,81,153,.14);
}
.login-submit {
  width: 100%;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 15px;
  box-shadow: 0 12px 26px rgba(31,81,153,.22);
}
.login-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 800;
  margin-bottom: 16px;
}
.login-security-note {
  margin: 16px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}
@media(max-width:860px){
  .admin-login-page{align-items:flex-start;padding:18px;background:#f3f5f8;}
  .admin-login-shell{grid-template-columns:1fr;border-radius:22px;}
  .admin-login-brand-panel{min-height:auto;padding:32px 24px;}
  .admin-login-brand-panel h1{font-size:34px;}
  .admin-login-card-wrap{padding:24px;}
  .admin-login-card{max-width:none;padding:24px;}
}

/* v7.15 rich email editor + bulk business type save */
.rich-email-field{display:flex;flex-direction:column;gap:8px}.rich-email-editor{border:1px solid #cfd6dd;border-radius:14px;background:#fff;overflow:hidden;box-shadow:0 1px 0 rgba(17,24,39,.02)}.rich-email-toolbar{display:flex;flex-wrap:wrap;gap:6px;align-items:center;background:#f8fafc;border-bottom:1px solid #e2e8f0;padding:9px}.rich-email-toolbar button,.rich-email-toolbar select{min-height:34px;border-radius:9px;border:1px solid #cbd5e1;background:#fff;color:#334155;font-weight:800;padding:7px 10px;cursor:pointer}.rich-email-toolbar button:hover,.rich-email-toolbar select:hover{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}.rich-email-editable{min-height:220px;padding:15px 16px;line-height:1.55;color:#111827;background:#fff;outline:none}.rich-email-editable:focus{box-shadow:inset 0 0 0 3px rgba(31,81,153,.14)}.rich-email-editable p{margin:0 0 12px}.rich-email-editable ul,.rich-email-editable ol{margin-top:8px;margin-bottom:12px;padding-left:26px}.business-type-save-actions{margin-top:14px}.business-type-save-actions button{min-width:190px}

/* v7.16 apply form validation visibility */
.submit-error-summary{margin:14px 0 12px;background:#fff5f5;border:1px solid #f0b8b0;border-left:5px solid #b42318;border-radius:14px;padding:14px 16px;color:#7a1c14;box-shadow:0 8px 20px rgba(180,35,24,.08)}
.submit-error-summary.hidden{display:none}.submit-error-summary strong{display:block;margin-bottom:8px}.submit-error-summary ul{margin:0;padding-left:20px;line-height:1.5}.input-error{border-color:#b42318!important;background:#fffafa!important;box-shadow:0 0 0 3px rgba(180,35,24,.13)!important}.field-error{color:#b42318!important}.field-error-box{border-color:#b42318!important;box-shadow:0 0 0 3px rgba(180,35,24,.12)!important}.agreement-box.field-error,.proof-upload-box.field-error-box{background:#fffafa}
.application-hero{grid-template-columns:1fr}

/* v7.17 Admin review editable application details */
.edit-application-card {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.admin-edit-grid {
  align-items: end;
}
.admin-edit-grid label {
  color: #334155;
}
.admin-edit-grid input,
.admin-edit-grid select,
.admin-edit-grid textarea {
  border-color: #cbd5e1;
  border-radius: 11px;
}
.admin-edit-grid input:focus,
.admin-edit-grid select:focus,
.admin-edit-grid textarea:focus {
  outline: none;
  border-color: #1f5199;
  box-shadow: 0 0 0 3px rgba(31,81,153,.14);
}
.admin-edit-check {
  min-height: 44px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}
.admin-edit-check input {
  width: auto;
  margin: 0;
}
.admin-edit-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}
@media(max-width:720px){
  .admin-edit-actions button{width:100%}
}

/* v7.18 system-based more information request/reply flow */
.pill-success{background:#ecfdf5;color:#047857;border-color:#a7f3d0}.info-conversation-card{border-color:#dbeafe}.conversation-list{display:flex;flex-direction:column;gap:12px}.conversation-item{border:1px solid #e2e8f0;border-radius:14px;padding:14px 15px;background:#fff}.conversation-item.admin-message{border-left:5px solid #1f5199}.conversation-item.customer-message{border-left:5px solid #059669;background:#f8fffb}.conversation-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;color:#334155}.conversation-meta span{color:#64748b;font-size:12px;font-weight:700}.conversation-reasons{margin:8px 0 0}.conversation-message{margin:10px 0 0}.conversation-attachment{margin-top:10px;display:inline-flex}.info-reply-page{background:linear-gradient(135deg,#f3f7fb 0%,#eef6ff 100%)}.info-reply-shell{max-width:860px}.info-reply-card{padding:30px;border-radius:24px}.info-reply-header h1{margin:6px 0 8px;font-size:34px;letter-spacing:-.04em;color:#111827}.info-reply-status{border-radius:16px;padding:16px;margin:18px 0}.info-request-box{background:#f8fafc;border:1px solid #e2e8f0;border-radius:16px;padding:16px;margin:18px 0}.info-request-box .prewrap{margin:8px 0 0}.customer-conversation-preview{margin:20px 0}.customer-conversation-preview h2{font-size:20px;margin:0 0 12px}.public-conversation-list .conversation-item{background:#fff}.info-reply-form{display:grid;gap:16px;margin-top:20px}.info-reply-form label{display:flex;flex-direction:column;gap:8px;font-weight:800;color:#334155}.info-reply-form textarea,.info-reply-form input[type=file]{border:1px solid #cbd5e1;border-radius:12px;padding:13px;background:#fff}.info-reply-form textarea:focus,.info-reply-form input[type=file]:focus{outline:none;border-color:#1f5199;box-shadow:0 0 0 3px rgba(31,81,153,.14)}.info-reply-form button{justify-self:start}.info-reply-form small{font-weight:600;color:#64748b}@media(max-width:720px){.conversation-meta{align-items:flex-start;flex-direction:column;gap:4px}.info-reply-card{padding:22px}.info-reply-header h1{font-size:28px}.info-reply-form button{width:100%}}
.mini-badge{display:inline-flex;margin-top:6px;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}.customer-replied-badge{background:#ecfdf5;color:#047857;border:1px solid #a7f3d0}

/* v7.23 Google Places address autocomplete on apply form */
.address-autocomplete-field{background:#f8fafc;border:1px dashed #cbd5e1;border-radius:16px;padding:14px}.address-autocomplete-field input{background:#fff}.address-autocomplete-field input:disabled{background:#f1f5f9;color:#94a3b8;cursor:not-allowed}.pac-container{z-index:9999;border-radius:12px;box-shadow:0 12px 30px rgba(15,23,42,.16);font-family:inherit}.pac-item{padding:9px 12px;font-size:13px}.pac-item-query{font-size:14px;color:#111827}
.address-verification-panel{display:grid;grid-template-columns:42px minmax(0,1fr);gap:14px;border:1px solid #dbeafe;background:#f8fbff;border-radius:16px;padding:16px;margin:0 0 14px;align-items:flex-start}.address-verification-panel.manual-entry{border-color:#fed7aa;background:#fffbf5}.verification-icon{width:34px;height:34px;border-radius:999px;display:flex;align-items:center;justify-content:center;font-weight:900;background:#ecfdf5;color:#047857}.manual-entry .verification-icon{background:#fff7ed;color:#c2410c}.google-address-box{border:1px solid #e2e8f0;background:#fff;border-radius:12px;padding:12px;margin:12px 0}.google-address-box span,.address-label{display:block;color:#64748b;font-size:12px;text-transform:uppercase;letter-spacing:.05em;font-weight:900;margin-bottom:5px}.google-address-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.small-meta{font-size:12px;word-break:break-all}.submitted-address-card{margin-top:12px}

/* v7.25 optional business document upload */
.optional-upload-box{display:block;border-color:#c7d2fe;background:linear-gradient(180deg,#f8faff 0%,#ffffff 100%);margin-bottom:4px}.optional-upload-box .proof-upload-head strong{color:#1e3a8a}.block-meta{display:block;margin-top:4px;font-size:12px;font-weight:700}
