:root {
  --ink: #17251d;
  --muted: #68766e;
  --line: #dfe6e1;
  --paper: #f4f6f2;
  --white: #fff;
  --green: #0f5a38;
  --green-2: #1c7c4f;
  --lime: #d9f09b;
  --gold: #f1c75b;
  --red: #9f2d32;
  --shadow: 0 18px 55px rgba(23, 37, 29, .09);
  --font-sans: "Helvetica Neue", Helvetica, Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

* { box-sizing: border-box; }
html { font-family: var(--font-sans); color: var(--ink); background: var(--paper); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
body { margin: 0; min-height: 100vh; background: var(--paper); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; transform: none; }
:focus-visible { outline: 3px solid #2c7f5a; outline-offset: 3px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(2rem, 3.5vw, 3.5rem); letter-spacing: -.045em; }
h2 { margin-bottom: .5rem; font-size: clamp(1.45rem, 2vw, 2.05rem); letter-spacing: -.03em; }
h3 { margin-bottom: .5rem; font-size: 1.2rem; }
.muted, small { color: var(--muted); }
.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; }

.login-body { background: #f4f5fb; }
.login-shell { min-height: 100dvh; display: grid; place-items: center; overflow: hidden; padding: clamp(18px, 4vw, 48px); background: radial-gradient(circle at 8% 12%, rgba(38,205,188,.13), transparent 25%), radial-gradient(circle at 91% 86%, rgba(93,82,233,.15), transparent 28%), #f4f5fb; }
.login-frame { width: min(100%, 960px); min-height: 570px; display: grid; grid-template-columns: .92fr 1.08fr; overflow: hidden; border: 1px solid rgba(31,34,57,.08); border-radius: 32px; background: var(--white); box-shadow: 0 34px 90px rgba(28,29,64,.14), 0 3px 12px rgba(28,29,64,.05); }
.login-copy { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 40px; color: var(--white); background: linear-gradient(145deg, #24246f 0%, #4f46d8 52%, #695cf0 100%); }
.login-copy::before { content: ""; position: absolute; z-index: -1; top: -110px; right: -105px; width: 330px; height: 330px; border: 1px solid rgba(255,255,255,.17); border-radius: 50%; box-shadow: 0 0 0 55px rgba(255,255,255,.04), 0 0 0 110px rgba(255,255,255,.025); }
.login-copy::after { content: ""; position: absolute; z-index: -1; right: -36px; bottom: -50px; width: 185px; height: 185px; border-radius: 42px; background: linear-gradient(145deg, rgba(44,218,197,.45), rgba(44,218,197,.05)); transform: rotate(22deg); filter: blur(.2px); }
.login-brand { display: inline-flex; align-items: center; align-self: flex-start; gap: 10px; }
.login-brand img { display: block; width: 128px; height: auto; }
.login-brand strong { color: #fff; font-size: 22px; letter-spacing: -.04em; }
.login-brand > span { padding: 4px 7px; border: 1px solid rgba(255,255,255,.22); border-radius: 99px; color: rgba(255,255,255,.78); font-size: 8px; font-weight: 850; letter-spacing: .14em; }
.login-story { margin: 48px 0 40px; }
.login-kicker { display: inline-flex; align-items: center; gap: 8px; color: rgba(255,255,255,.68); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.login-kicker i { width: 7px; height: 7px; border-radius: 50%; background: #2cdac5; box-shadow: 0 0 0 5px rgba(44,218,197,.12); }
.login-story h1 { margin: 20px 0 16px; font-size: clamp(44px, 5vw, 64px); line-height: .92; letter-spacing: -.065em; }
.login-story h1 em { color: #baf6ee; font-style: normal; }
.login-story p { max-width: 355px; margin: 0; color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.65; }
.login-proof { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.15); padding-top: 20px; }
.login-proof > span { display: grid; gap: 4px; padding-right: 10px; }
.login-proof strong { font-size: 13px; }
.login-proof small { color: rgba(255,255,255,.56); font-size: 9px; }
.login-panel { display: grid; place-items: center; padding: clamp(34px, 5vw, 62px); background: rgba(255,255,255,.98); }
.login-card { width: min(100%, 390px); }
.login-card-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 58px; }
.login-card-top > a { color: #72758a; font-size: 11px; font-weight: 700; }
.login-card-top > a:hover { color: #4f46d8; }
.secure-badge { display: inline-flex; align-items: center; gap: 7px; color: #3e4258; font-size: 10px; font-weight: 800; }
.secure-badge i { width: 8px; height: 8px; border-radius: 50%; background: #20c7b5; box-shadow: 0 0 0 4px rgba(32,199,181,.12); }
.login-heading { margin-bottom: 28px; }
.login-heading .eyebrow { color: #5852e3; font-size: 9px; letter-spacing: .14em; }
.login-heading h2 { margin: 9px 0 8px; color: #17182a; font-size: clamp(28px, 3vw, 34px); letter-spacing: -.045em; }
.login-heading p { margin: 0; font-size: 13px; }
.login-form { gap: 16px; }
.login-form label { gap: 7px; color: #35384d; font-size: 11px; }
.login-form input { min-height: 48px; padding: 0 14px; border-color: #dfe1eb; border-radius: 12px; color: #17182a; background: #fafafd; font-size: 13px; }
.login-form input::placeholder { color: #a5a8b7; }
.login-form input:focus { border-color: #625bea; background: #fff; box-shadow: 0 0 0 4px rgba(98,91,234,.11); }
.login-submit { min-height: 49px; justify-content: space-between; margin-top: 4px; padding: 0 8px 0 18px; border: 0; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #5049da, #665df0); box-shadow: 0 12px 24px rgba(80,73,218,.22); }
.login-submit:hover { background: linear-gradient(135deg, #443dca, #5950e5); box-shadow: 0 15px 28px rgba(80,73,218,.28); }
.login-submit b { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.14); font-size: 16px; }
.login-card .form-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 22px; color: #8a8d9e; font-size: 9px; }
.login-card .form-note i { width: 5px; height: 5px; border-radius: 50%; background: #20c7b5; }
.login-card .form-note strong { color: #6b6e80; }
.login-entry-actions { display: grid; gap: 9px; margin-top: 13px; }
.registration-entry { min-height: 46px; justify-content: space-between; border-color: #d9d9ea; color: #4e48d2; background: #f7f6ff; font-size: 12px; }
.registration-entry:hover { border-color: #aaa6ec; background: #f0efff; }
.registration-entry b { font-size: 16px; }
.mygov-entry { min-height: 44px; gap: 10px; border-color: #e5e5ec; color: #77798a; background: #fbfbfc; }
.mygov-entry img { display: block; width: auto; max-width: 90px; height: 20px; object-fit: contain; }
.mygov-entry span { margin-left: auto; font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.registration-success { display: grid; justify-items: start; gap: 18px; }
.success-mark { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 19px; color: #fff; background: linear-gradient(145deg,#19ad9c,#36c9b8); box-shadow: 0 14px 30px rgba(25,173,156,.22); font-size: 27px; font-weight: 900; }
.registration-success .login-heading { margin: 0; }
.registration-success .login-submit { width: 100%; }

.registration-body { background: #f4f5fb; }
.registration-body .login-shell { overflow: visible; align-items: start; padding-block: clamp(18px,3vw,38px); }
.registration-body .login-frame { width: min(100%,1280px); min-height: calc(100dvh - clamp(36px,6vw,76px)); grid-template-columns: 300px minmax(0,1fr); }
.registration-body .login-copy { padding: 34px; }
.registration-body .login-story h1 { font-size: clamp(38px,4vw,54px); }
.registration-body .login-proof { grid-template-columns: 1fr; gap: 12px; }
.registration-body .login-panel { min-width: 0; place-items: start stretch; padding: clamp(28px,4vw,54px); }
.registration-body .login-card { width: 100%; max-width: 900px; margin: 0 auto; }
.registration-body .login-card-top { margin-bottom: 28px; }
.registration-heading { display: flex; align-items: start; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.registration-heading h2 { margin: 7px 0; }
.registration-heading p { max-width: 670px; margin: 0; line-height: 1.55; }
.locale-switch { display: inline-flex; flex: 0 0 auto; gap: 4px; padding: 4px; border: 1px solid #dedff0; border-radius: 11px; background: #f7f7fc; }
.locale-switch a { min-width: 38px; padding: 7px 8px; border-radius: 8px; color: #6c6f83; font-size: 11px; font-weight: 850; text-align: center; }
.locale-switch a[aria-current="page"] { color: #fff; background: #514adb; }
.registration-progress { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 8px; margin: 0 0 30px; padding: 0; list-style: none; }
.registration-progress li { position: relative; min-width: 0; display: grid; justify-items: center; gap: 7px; color: #9a9cad; text-align: center; }
.registration-progress li::after { content: ""; position: absolute; top: 15px; left: calc(50% + 20px); width: calc(100% - 32px); height: 2px; background: #e5e5ef; }
.registration-progress li:last-child::after { display: none; }
.registration-progress li span { position: relative; z-index: 1; width: 31px; height: 31px; display: grid; place-items: center; border: 2px solid #e0e0ea; border-radius: 50%; background: #fff; font-size: 11px; font-weight: 900; }
.registration-progress li small { max-width: 92px; color: inherit; font-size: 9px; line-height: 1.2; }
.registration-progress li.active,.registration-progress li.complete { color: #514adb; }
.registration-progress li.active span { border-color: #514adb; color: #fff; background: #514adb; box-shadow: 0 0 0 5px rgba(81,74,219,.10); }
.registration-progress li.complete span { border-color: #20b9a8; color: #fff; background: #20b9a8; }
.registration-progress li.complete::after { background: #8ed9cf; }
.registration-form { min-width: 0; }
.registration-step { animation: registration-step-in .2s ease-out; }
[hidden] { display: none !important; }
.step-heading { margin-bottom: 22px; }
.step-heading > span { color: #5d56df; font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.step-heading h3 { margin: 7px 0 5px; color: #1a1b2c; font-size: 24px; letter-spacing: -.03em; }
.step-heading p { max-width: 680px; margin: 0; color: #717487; font-size: 13px; line-height: 1.55; }
.registration-grid { display: grid; gap: 16px; margin-bottom: 16px; }
.registration-grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.registration-grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.registration-form label,.registration-form legend { color: #35384d; font-size: 12px; }
.registration-form input,.registration-form select,.registration-form textarea { min-width: 0; border-color: #dddfea; border-radius: 12px; background: #fbfbfd; font-size: 14px; }
.registration-form input:focus,.registration-form select:focus,.registration-form textarea:focus { border-color: #5a53e2; background: #fff; box-shadow: 0 0 0 4px rgba(90,83,226,.10); }
.registration-form small { font-size: 10px; font-weight: 500; line-height: 1.45; }
.registration-form fieldset { grid-template-columns: repeat(2,minmax(0,1fr)); align-content: center; padding: 13px 15px; border-color: #dddfea; background: #fbfbfd; }
.choice { display: flex !important; align-items: flex-start; gap: 9px; font-weight: 650 !important; line-height: 1.45; }
.choice input { flex: 0 0 18px; width: 18px !important; min-height: 18px !important; height: 18px; margin: 1px 0 0; padding: 0; }
.field-error { display: block; color: #a52932; font-size: 11px; font-weight: 700; line-height: 1.35; }
.field-error:empty { display: none; }
.privacy-note { margin: 12px 0 0; padding: 11px 13px; border: 1px solid #e2e3ec; border-radius: 11px; color: #6e7184; background: #f8f8fc; font-size: 11px; line-height: 1.5; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 72px; }
.password-field button { position: absolute; top: 50%; right: 8px; min-height: 32px; padding: 0 9px; border: 0; border-radius: 8px; color: #514adb; background: #ecebff; font-size: 10px; font-weight: 850; transform: translateY(-50%); }
.registration-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 28px; padding-top: 20px; border-top: 1px solid #ededf3; }
.registration-actions .button { min-width: 128px; min-height: 46px; }
.registration-login { margin-top: 16px !important; }
.photo-editor { display: grid; gap: 16px; }
.photo-drop { min-height: 310px; display: grid; place-items: center; align-content: center; gap: 10px; padding: 30px; border: 2px dashed #cfd0df; border-radius: 22px; color: #55586d; background: linear-gradient(145deg,#fafafe,#f3f3fb); text-align: center; cursor: pointer; transition: border .18s,background .18s; }
.photo-drop:hover,.photo-drop.dragging { border-color: #5b54e3; background: #f0efff; }
.photo-drop-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 18px; color: #fff; background: linear-gradient(145deg,#514adb,#6b62ee); font-size: 28px; box-shadow: 0 12px 25px rgba(81,74,219,.22); }
.photo-drop strong { color: #242638; font-size: 16px; }
.photo-drop small { max-width: 480px; }
.photo-workspace { display: grid; grid-template-columns: minmax(260px,360px) minmax(220px,1fr); gap: 24px; align-items: center; }
.photo-workspace canvas { display: block; width: 100%; aspect-ratio: 3/4; border-radius: 18px; background: #191a26; box-shadow: 0 16px 40px rgba(20,21,40,.17); cursor: move; touch-action: none; }
.photo-controls { display: grid; gap: 20px; }
.photo-controls input[type="range"] { padding: 0; accent-color: #514adb; }
.photo-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-result { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 20px; align-items: center; padding: 18px; border: 1px solid #d9dbe6; border-radius: 18px; background: #f8f8fc; }
.photo-result img { width: 150px; aspect-ratio: 3/4; border-radius: 14px; object-fit: cover; box-shadow: 0 10px 28px rgba(25,26,48,.13); }
.photo-result strong { display: block; margin-bottom: 13px; color: #35384d; font-size: 12px; }
.location-search { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: end; }
.location-search label > span { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
.location-results { display: grid; gap: 6px; margin-top: 10px; color: #6f7284; font-size: 12px; }
.location-result { width: 100%; padding: 11px 13px; border: 1px solid #dfe0ea; border-radius: 10px; color: #36394e; background: #fff; font-size: 12px; text-align: left; }
.location-result:hover { border-color: #5b54e3; background: #f6f5ff; }
.location-map { position: relative; isolation: isolate; min-height: 310px; overflow: hidden; margin: 16px 0; border: 1px solid #d9dbe6; border-radius: 18px; background: #eef0ee; cursor: crosshair; touch-action: none; }
.location-map > p { position: absolute; z-index: 3; inset: 0; display: grid; place-items: center; margin: 0; padding: 30px; color: #6c706d; background: radial-gradient(circle at 50% 35%,rgba(81,74,219,.09),transparent 35%); text-align: center; }
.location-map img[data-map-tile] { position: absolute; z-index: 0; width: 256px; height: 256px; max-width: none; user-select: none; }
.location-map [data-map-marker] { position: absolute; z-index: 2; width: 24px; height: 24px; border: 4px solid #fff; border-radius: 50% 50% 50% 0; background: #514adb; box-shadow: 0 4px 14px rgba(30,28,80,.35); transform: translate(-50%,-100%) rotate(-45deg); }
.location-map [data-map-marker]::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
.map-zoom { position: absolute; z-index: 4; top: 10px; right: 10px; display: grid; overflow: hidden; border: 1px solid #cccddd; border-radius: 9px; background: #fff; box-shadow: 0 4px 12px rgba(22,24,40,.12); }
.map-zoom button { width: 36px; height: 34px; border: 0; color: #35384d; background: #fff; font-size: 20px; }
.map-zoom button + button { border-top: 1px solid #e2e2e9; }
.map-attribution { position: absolute; z-index: 4; right: 8px; bottom: 6px; padding: 3px 5px; border-radius: 4px; color: #30333a; background: rgba(255,255,255,.88); font-size: 9px; }
.coordinate-fields { margin-bottom: 12px; }
.location-confirm { padding: 13px; border: 1px solid #dfe0ea; border-radius: 11px; background: #f8f8fb; }
.review-grid { display: grid; gap: 9px; margin-bottom: 18px; }
.review-grid > div { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 16px; padding: 13px 15px; border: 1px solid #e3e4ec; border-radius: 12px; background: #fafafd; }
.review-grid strong { color: #4e5165; font-size: 11px; }
.review-grid span { min-width: 0; overflow-wrap: anywhere; color: #222438; font-size: 12px; }
.terms { padding: 14px; border: 1px solid #d7d8e5; border-radius: 12px; }
@keyframes registration-step-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.brand { display: inline-flex; align-items: center; gap: .7rem; font-weight: 800; letter-spacing: -.03em; }
.brand small { margin-left: .35rem; color: var(--green-2); font-size: .58rem; letter-spacing: .14em; }
.brand-light small { color: var(--lime); }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--lime); color: var(--green); font-weight: 900; }
.eyebrow { display: inline-block; color: var(--lime); font-size: .74rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow-dark { color: var(--green-2); }

.stack { display: grid; gap: 1rem; }
.inline-form { display: flex; align-items: center; gap: .45rem; }
.inline-form select { min-width: 145px; padding: .45rem .55rem; }
label { display: grid; gap: .45rem; color: #445047; font-size: .86rem; font-weight: 700; }
input, select, textarea { width: 100%; padding: .82rem .9rem; border: 1px solid #cbd5ce; border-radius: 10px; color: var(--ink); background: var(--white); outline: none; transition: border .18s, box-shadow .18s; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--green-2); box-shadow: 0 0 0 4px rgba(28,124,79,.1); }
.form-note { margin: 1.25rem 0 0; color: var(--muted); font-size: .78rem; text-align: center; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: .7rem 1rem; border: 1px solid transparent; border-radius: 10px; font-weight: 800; transition: transform .16s, background .16s; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: var(--white); background: var(--green); }
.button-primary:hover { background: #0a472c; }
.button-light { color: var(--green); background: var(--lime); }
.button-ghost { width: 100%; border-color: rgba(255,255,255,.18); color: rgba(255,255,255,.82); background: transparent; }
.button-small { min-height: 32px; padding: .4rem .65rem; border-color: var(--line); background: var(--white); font-size: .78rem; }

.alert { margin-bottom: 1rem; padding: .8rem 1rem; border-radius: 10px; font-size: .9rem; }
.alert-success { border: 1px solid #9bc8ac; color: #155a35; background: #e7f7ed; }
.alert-error { border: 1px solid #e2b2b5; color: var(--red); background: #fff0f0; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px 1fr; }
.sidebar { position: sticky; top: 0; display: flex; flex-direction: column; min-height: 100vh; height: 100vh; padding: 1.5rem; color: var(--white); background: #0d3727; }
.sidebar .brand { margin: .2rem 0 2rem; }
.user-chip { display: flex; align-items: center; gap: .75rem; padding: .85rem; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; background: rgba(255,255,255,.05); }
.user-chip strong, .user-chip small { display: block; }
.user-chip strong { font-size: .83rem; }
.user-chip small { margin-top: .2rem; color: rgba(255,255,255,.55); font-size: .7rem; }
.avatar { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 50%; color: var(--green); background: var(--lime); font-weight: 900; }
.avatar-photo { width: 36px; border: 2px solid rgba(255,255,255,.3); object-fit: cover; }
.sidebar nav { display: grid; gap: .25rem; margin-top: 1.5rem; }
.sidebar nav a { padding: .72rem .8rem; border-radius: 9px; color: rgba(255,255,255,.64); font-size: .88rem; font-weight: 700; }
.sidebar nav a:hover, .sidebar nav a.active { color: var(--white); background: rgba(255,255,255,.11); }
.admin-body .app-shell { grid-template-columns: 278px minmax(0,1fr); }
.admin-body .sidebar { overflow-y: auto; background: linear-gradient(180deg,#102b22,#0b211a); scrollbar-width: thin; }
.admin-body .sidebar .brand { margin-bottom: 1.25rem; }
.admin-body .sidebar nav { gap: .75rem; margin-top: 1rem; }
.nav-group { display: grid; gap: .16rem; }
.nav-group > span { padding: .35rem .78rem .2rem; color: rgba(255,255,255,.38); font-size: .61rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.admin-body .sidebar nav a { padding: .55rem .78rem; font-size: .78rem; }
.logout-form { margin-top: auto; }
.tenant-switcher { margin-top: 1rem; }
.tenant-switcher label { color: rgba(255,255,255,.62); font-size: .7rem; }
.tenant-switcher select { margin-top: .4rem; padding: .58rem .65rem; border-color: rgba(255,255,255,.14); color: #fff; background: rgba(255,255,255,.08); }
.content { min-width: 0; padding: clamp(1.3rem, 3vw, 3rem); }
.topbar { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.topbar-tools { display: flex; align-items: center; gap: .65rem; }
.topbar .locale-switch button { min-width: 34px; padding: .42rem .5rem; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: .7rem; font-weight: 900; }
.topbar .locale-switch button.active { color: #fff; background: var(--green); }
.environment-pill, .count-pill { display: inline-flex; padding: .45rem .65rem; border-radius: 999px; color: var(--green); background: var(--lime); font-size: .7rem; font-weight: 900; letter-spacing: .12em; }

.admin-context { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; padding: .9rem 1.05rem; border: 1px solid #d8e1da; border-radius: 15px; background: linear-gradient(110deg,#fff,#f0f5f1); }
.admin-context div { display: grid; gap: .2rem; }
.admin-context span { color: var(--green-2); font-size: .65rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.admin-context strong { font-size: .92rem; }
.admin-context > small { max-width: 46%; text-align: right; }
.business-context-banner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; padding: .9rem 1.05rem; border-radius: 14px; color: #fff; background: linear-gradient(120deg,#123b2b,#1c6848); }
.business-context-banner span { color: var(--lime); font-size: .68rem; font-weight: 900; letter-spacing: .1em; }
.admin-metrics { grid-template-columns: repeat(6,minmax(0,1fr)); }
.admin-metrics .metric { min-height: 132px; padding: 1rem; }
.admin-metrics .metric strong { font-size: clamp(1.7rem,2.5vw,2.45rem); }
.admin-create { position: sticky; top: 1rem; }
.admin-business-layout { grid-template-columns: minmax(320px,.9fr) minmax(0,1.5fr); }
.compact-actions { gap: .45rem; }
.feature-row { display: grid; grid-template-columns: minmax(170px,1fr) minmax(0,2fr) auto; gap: .75rem; align-items: center; padding: .75rem 0; border-top: 1px solid var(--line); }
.feature-row:first-child { border-top: 0; }
.crm-actions-row td { padding-top: .35rem; background: #f8faf8; }
.crm-actions-row .inline-form { margin: .35rem 0; }
.break-code { word-break: break-word; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.metric { min-height: 175px; display: flex; flex-direction: column; padding: 1.25rem; border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 8px 26px rgba(23,37,29,.04); }
.metric span { color: var(--muted); font-size: .83rem; font-weight: 700; }
.metric strong { margin: auto 0 .35rem; font-size: 3rem; letter-spacing: -.07em; }
.metric small { font-size: .75rem; }
.metric.accent { color: var(--white); border-color: var(--green); background: var(--green); }
.metric.accent span, .metric.accent small { color: rgba(255,255,255,.7); }
.panel { padding: clamp(1.15rem, 2.3vw, 2rem); border: 1px solid var(--line); border-radius: 18px; background: var(--white); box-shadow: 0 8px 26px rgba(23,37,29,.04); }
.panel + .panel, .card-grid + .panel { margin-top: 1rem; }
.panel-head { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.panel-head h2 { margin: 0; }
.mini-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.mini-grid span { display: flex; flex-direction: column; gap: .5rem; padding: 1rem; border-radius: 12px; color: var(--muted); background: var(--paper); font-size: .8rem; }
.mini-grid strong { color: var(--ink); font-size: 1.7rem; }
.split-grid { display: grid; grid-template-columns: minmax(280px, .7fr) minmax(0, 1.3fr); gap: 1rem; align-items: start; }
.scanner-grid, .qr-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.hero-panel, .customer-hero { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 1rem; padding: clamp(2rem, 5vw, 4rem); border-radius: 24px; color: var(--white); background: radial-gradient(circle at 82% 20%, rgba(217,240,155,.2), transparent 35%), var(--green); }
.hero-panel { display: block; }
.hero-panel h2 { margin: .8rem 0; font-size: clamp(2.6rem, 5vw, 5rem); line-height: .95; }
.hero-panel p, .customer-hero p { color: rgba(255,255,255,.72); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { padding: .7rem; color: var(--muted); font-size: .7rem; letter-spacing: .08em; text-align: left; text-transform: uppercase; }
td { padding: .85rem .7rem; border-top: 1px solid var(--line); font-size: .84rem; vertical-align: middle; }
td strong, td small { display: block; }
td small { margin-top: .2rem; font-size: .7rem; }
code { padding: .18rem .32rem; border-radius: 5px; background: #edf1ed; font: 600 .78rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.badge { display: inline-flex; padding: .28rem .48rem; border-radius: 999px; font-size: .67rem; font-weight: 900; text-transform: uppercase; }
.badge-ok { color: #145b34; background: #daf2e3; }
.badge-muted { color: #647069; background: #e8ece9; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.loyalty-card { position: relative; overflow: hidden; min-height: 230px; padding: 1.4rem; border-radius: 20px; color: var(--card-text, var(--white)); background: linear-gradient(145deg, color-mix(in srgb, var(--card-bg, #0f5a38), #000 15%), var(--card-gradient, var(--card-bg, #0f5a38))); box-shadow: var(--shadow); }
.loyalty-card::after { content: ""; position: absolute; right: -45px; bottom: -60px; width: 160px; height: 160px; border: 30px solid rgba(217,240,155,.12); border-radius: 50%; }
.loyalty-card > * { position: relative; z-index: 1; }
.loyalty-card > span { color: var(--card-accent, var(--lime)); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.loyalty-card h3 { margin-top: 1rem; font-size: 1.45rem; }
.loyalty-card p, .loyalty-card small { color: rgba(255,255,255,.72); }
.loyalty-card .button { margin-top: 1rem; color: var(--ink); }
.stamp-row { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.1rem 0; }
.stamp-row i { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; color: transparent; font-style: normal; }
.stamp-row i.filled { color: var(--green); border-color: var(--lime); background: var(--lime); }
.qr-card { display: grid; justify-items: center; padding: 2rem; border: 1px solid var(--line); border-radius: 22px; background: var(--white); text-align: center; box-shadow: var(--shadow); }
.qr-card canvas { width: min(100%, 280px); height: auto; margin: 1.3rem 0; padding: 12px; border: 1px solid var(--line); border-radius: 18px; }
.steps { display: grid; gap: 1rem; padding-left: 1.25rem; color: var(--muted); line-height: 1.55; }
.scanner-video { width: 100%; aspect-ratio: 4/3; margin-bottom: 1rem; border-radius: 14px; object-fit: cover; background: #0e1d15; }
.business-logo { width: 96px; height: 96px; margin-bottom: 1rem; border: 1px solid var(--line); border-radius: 18px; object-fit: contain; }
.narrow { max-width: 620px; }
.field-pair { display: grid; grid-template-columns: 140px minmax(0,1fr); gap: .75rem; }
fieldset { display: grid; gap: .55rem; margin: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; }
legend { padding: 0 .35rem; color: var(--muted); font-size: .76rem; font-weight: 800; }
.check { display: flex; align-items: center; gap: .55rem; font-weight: 650; }
.check input { width: 17px; height: 17px; margin: 0; }
.card-action { position: absolute; right: 1.2rem; bottom: 1.2rem; left: 1.2rem; }
.filter-panel { margin-bottom: 1rem; }
.filter-row { display: grid; grid-template-columns: repeat(4,minmax(140px,1fr)) auto; gap: .8rem; align-items: end; }
.integration-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.integration-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 1rem; border-radius: 13px; color: var(--green); background: var(--lime); font-size: 1.3rem; font-weight: 900; }
.pricing-card { max-width: 560px; padding: clamp(2rem,5vw,4rem); border-radius: 28px; color: #fff; background: linear-gradient(145deg,#15154d,#5a50e5); box-shadow: 0 28px 80px rgba(40,35,130,.22); }
.pricing-card > strong { display: block; margin: 1.5rem 0; font-size: 3rem; letter-spacing: -.06em; }
.pricing-card ul { display: grid; gap: .7rem; margin: 1.5rem 0; padding-left: 1.2rem; color: rgba(255,255,255,.75); }
.branch-list, .plan-list { display: grid; gap: 1rem; }
.branch-editor { padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.designer-layout { display: grid; grid-template-columns: minmax(300px,.8fr) minmax(320px,1.2fr); gap: 1rem; align-items: start; }
.designer-preview { position: sticky; top: 1rem; min-height: 520px; display: grid; place-content: center; padding: clamp(1rem,5vw,4rem); border: 1px solid var(--line); border-radius: 22px; background: radial-gradient(circle at 25% 20%,rgba(217,240,155,.28),transparent 32%),#e9efe9; }
.preview-card { width: min(100%,480px); min-height: 280px; }
.corner-soft { border-radius: 12px; }
.corner-rounded { border-radius: 24px; }
.corner-sharp { border-radius: 2px; }
.wallet-actions { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .6rem; }
.paused-note { padding: .65rem; border: 1px solid rgba(255,255,255,.3); border-radius: 10px; background: rgba(0,0,0,.16); }
.empty-state { display: grid; place-items: center; min-height: 140px; text-align: center; }
.empty-state p { max-width: 500px; color: var(--muted); }
.qr-print-panel { display: grid; justify-items: center; gap: 1rem; text-align: center; }
.qr-print-panel canvas { width: min(100%,320px); height: auto; padding: 12px; border: 1px solid var(--line); border-radius: 18px; }
.break-code { max-width: 100%; overflow-wrap: anywhere; }
.detail-list { display: grid; gap: .8rem; margin: 1rem 0 0; }
.detail-list div { display: grid; grid-template-columns: 130px 1fr; gap: 1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.detail-list dt { color: var(--muted); font-size: .78rem; font-weight: 800; }
.detail-list dd { margin: 0; overflow-wrap: anywhere; }
.metric-warning { border-color: #e0b15c; background: #fff8e8; }
.owner-empty-state { min-height: 230px; display: grid; align-content: center; justify-items: start; background: radial-gradient(circle at 90% 15%,rgba(217,240,155,.32),transparent 26%),#fff; }
.owner-empty-state p { max-width: 620px; }

.billing-hero { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 1.25rem 2rem; margin-bottom: 1rem; padding: clamp(1.25rem,3vw,2rem); border-radius: 24px; color: #fff; background: linear-gradient(135deg,#123c2b,#0f5a38 55%,#257a52); box-shadow: var(--shadow); }
.billing-hero .eyebrow { color: #d9f09b; }
.billing-hero h2 { margin: .35rem 0; }
.billing-price { display: grid; align-content: center; justify-items: end; }
.billing-price strong { font-size: clamp(2rem,4vw,3.2rem); letter-spacing: -.06em; }
.billing-price span { color: rgba(255,255,255,.72); }
.billing-summary { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; margin: 0; }
.billing-summary div { padding: .8rem 1rem; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; background: rgba(255,255,255,.07); }
.billing-summary dt { color: rgba(255,255,255,.62); font-size: .72rem; }
.billing-summary dd { margin: .3rem 0 0; font-weight: 750; }
.billing-layout { align-items: start; }
.plan-choice-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); gap: .8rem; }
.plan-choice { display: grid; gap: .55rem; padding: 1rem; border: 1px solid var(--line); border-radius: 16px; background: #fafcf9; }
.plan-choice.is-current { border-color: var(--green-2); box-shadow: inset 0 0 0 1px var(--green-2); }
.plan-choice > strong { color: var(--green); font-size: 1.4rem; }
.payment-method-row,.integration-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.payment-method-row > span,.integration-row > span { display: grid; min-width: 0; gap: .25rem; }
.integration-row small { overflow-wrap: anywhere; }
.compact-form { margin-top: 1rem; }
.one-time-secret code { display: block; overflow-wrap: anywhere; padding: .8rem; border-radius: 10px; background: rgba(255,255,255,.65); user-select: all; }
.provider-status-card { display: flex; justify-content: space-between; gap: 2rem; margin-bottom: 1rem; padding: 1.4rem; border-radius: 20px; color: #fff; background: #17251d; }
.provider-status-card dl { display: grid; grid-template-columns: repeat(2,minmax(110px,1fr)); gap: .6rem; margin: 0; }
.provider-status-card dl div { padding: .65rem; border-radius: 12px; background: rgba(255,255,255,.08); }
.provider-status-card dt { color: rgba(255,255,255,.58); font-size: .7rem; }
.provider-status-card dd { margin: .25rem 0 0; }
.payment-result,.receipt-card { width: min(100%,720px); margin: clamp(1rem,5vw,4rem) auto; padding: clamp(1.25rem,4vw,2.5rem); border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.payment-result { display: grid; justify-items: center; gap: 1rem; text-align: center; }
.payment-result-mark { width: 68px; height: 68px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font-size: 2rem; font-weight: 900; }
.payment-result.is-pending .payment-result-mark { color: var(--ink); background: var(--gold); }
.payment-result.is-failed .payment-result-mark { background: var(--red); }
.payment-result dl,.receipt-card dl { width: 100%; margin: 0; }
.payment-result dl div,.receipt-card dl div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.payment-result dd,.receipt-card dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.receipt-brand { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.receipt-brand span { color: var(--green); font-weight: 900; letter-spacing: .12em; }
.receipt-actions { display: flex; justify-content: flex-end; gap: .75rem; margin-top: 1.25rem; }

@media (max-width: 1050px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-metrics { grid-template-columns: repeat(3,1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  .login-shell { padding: 16px; }
  .login-frame { min-height: 0; grid-template-columns: 1fr; border-radius: 24px; }
  .login-copy { min-height: 176px; padding: 25px; }
  .login-copy::before { top: -155px; right: -80px; }
  .login-copy::after { right: -55px; bottom: -85px; }
  .login-brand img { width: 114px; }
  .login-story { margin: 34px 0 0; }
  .login-kicker, .login-story p, .login-proof { display: none; }
  .login-story h1 { margin: 0; font-size: 34px; line-height: .95; }
  .login-panel { padding: 30px 25px 28px; }
  .login-card { width: 100%; }
  .login-card-top { margin-bottom: 34px; }
  .app-shell { display: block; }
  .admin-body .app-shell { display: block; }
  .sidebar { position: relative; height: auto; min-height: 0; }
  .sidebar nav { display: flex; overflow-x: auto; padding-bottom: .35rem; }
  .sidebar nav a { white-space: nowrap; }
  .admin-body .sidebar { overflow: visible; }
  .admin-body .sidebar nav { display: flex; gap: .65rem; }
  .admin-body .nav-group { flex: 0 0 auto; }
  .admin-body .nav-group > span { padding-inline: .55rem; }
  .logout-form { margin-top: 1rem; }
  .split-grid, .scanner-grid, .qr-layout, .designer-layout, .admin-business-layout { grid-template-columns: 1fr; }
  .admin-create { position: static; }
  .designer-preview { position: static; min-height: 420px; }
  .filter-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .wide { min-width: 0; }
  .registration-body .login-frame { grid-template-columns: 1fr; }
  .registration-body .login-copy { min-height: 132px; }
  .registration-body .login-panel { padding: 28px 24px; }
  .registration-progress li small { display: none; }
  .registration-progress li::after { left: calc(50% + 17px); width: calc(100% - 26px); }
  .photo-workspace { grid-template-columns: minmax(0,360px) minmax(0,1fr); }
  .billing-summary { grid-template-columns: 1fr; }
  .provider-status-card { flex-direction: column; }
}
@media (max-width: 560px) {
  .login-shell { padding: 0; place-items: stretch; }
  .login-frame { min-height: 100dvh; border: 0; border-radius: 0; }
  .login-copy { min-height: 150px; padding: 22px; }
  .login-story { margin-top: 28px; }
  .login-story h1 { font-size: 30px; }
  .login-panel { align-items: start; padding: 28px 22px; }
  .login-card-top { margin-bottom: 30px; }
  .login-heading { margin-bottom: 24px; }
  .login-form input,
  input:not([type="checkbox"]):not([type="radio"]),
  select,
  textarea { font-size: 16px; }
  .content { padding: 1rem; }
  .metric-grid, .card-grid, .card-grid.compact, .mini-grid { grid-template-columns: 1fr; }
  .field-pair, .filter-row, .integration-grid { grid-template-columns: 1fr; }
  .customer-hero { align-items: start; flex-direction: column; }
  .topbar { align-items: start; }
  .topbar-tools { align-items: flex-end; flex-direction: column-reverse; }
  .admin-context,.business-context-banner { align-items: flex-start; flex-direction: column; }
  .admin-context > small { max-width: none; text-align: left; }
  .admin-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-metrics .metric { min-height: 118px; }
  .feature-row { grid-template-columns: 1fr; }
  .detail-list div { grid-template-columns: 1fr; gap: .3rem; }
  .registration-body .login-copy { min-height: 112px; padding: 18px 20px; }
  .registration-body .login-story { margin-top: 18px; }
  .registration-body .login-story h1 { font-size: 25px; }
  .registration-body .login-panel { padding: 24px 16px 30px; }
  .registration-body .login-card-top { margin-bottom: 22px; }
  .registration-heading { gap: 12px; }
  .registration-heading h2 { font-size: 27px; }
  .registration-heading p { font-size: 12px; }
  .registration-progress { gap: 3px; margin-bottom: 24px; }
  .registration-progress li span { width: 27px; height: 27px; font-size: 10px; }
  .registration-progress li::after { top: 13px; left: calc(50% + 14px); width: calc(100% - 20px); }
  .registration-grid.two,.registration-grid.three,.photo-workspace,.photo-result,.location-search { grid-template-columns: 1fr; }
  .registration-form input,.registration-form select,.registration-form textarea { font-size: 16px; }
  .photo-drop { min-height: 250px; padding: 22px; }
  .photo-workspace canvas { max-width: 340px; margin: 0 auto; }
  .photo-result img { width: 120px; }
  .location-search > .button { width: 100%; }
  .location-map { min-height: 280px; }
  .billing-hero { grid-template-columns: 1fr; }
  .billing-price { justify-items: start; }
  .payment-method-row,.integration-row { align-items: flex-start; flex-direction: column; }
  .receipt-actions { align-items: stretch; flex-direction: column; }
  .review-grid > div { grid-template-columns: 1fr; gap: 5px; }
  .registration-actions { position: sticky; z-index: 8; bottom: 0; margin-inline: -16px; padding: 14px 16px max(14px,env(safe-area-inset-bottom)); border-top: 1px solid #dddde8; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
  .registration-actions .button { flex: 1; min-width: 0; }
}

@media (max-width: 360px) {
  .admin-metrics { grid-template-columns: 1fr; }
  .registration-body .login-panel { padding-inline: 12px; }
  .registration-heading { align-items: flex-start; flex-direction: column; }
  .registration-progress li span { width: 25px; height: 25px; }
  .registration-progress li::after { top: 12px; }
  .photo-actions .button { flex: 1; min-width: 0; }
}

@supports (padding: max(0px)) {
  .content { padding-bottom: max(clamp(1.3rem,3vw,3rem),env(safe-area-inset-bottom)); }
}

.language-switcher { justify-content: flex-end; margin: 0 0 1rem; }
.language-switcher > span { color: var(--muted); font-size: .78rem; font-weight: 700; }
.language-switcher .is-active { border-color: var(--primary); background: var(--primary); color: #fff; }
.lookup-results { display: grid; gap: .65rem; margin-top: 1rem; grid-template-columns: repeat(auto-fit,minmax(210px,1fr)); }
.lookup-result { display: grid; gap: .3rem; padding: .85rem 1rem; border: 1px solid var(--border); border-radius: 14px; background: #fff; color: var(--text); text-align: left; cursor: pointer; }
.lookup-result:hover,.lookup-result:focus-visible { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(15,90,56,.12); }
.lookup-result small,.customer-summary small { color: var(--muted); }
.customer-summary { display: grid; gap: .25rem; padding: .85rem 1rem; border-radius: 14px; background: #eef8f2; border: 1px solid #c9e6d4; }
.wallet-business-logo { width: 46px; height: 46px; object-fit: contain; border-radius: 12px; background: rgba(255,255,255,.9); padding: 5px; }

@media (max-width: 430px) {
  .language-switcher { justify-content: flex-start; }
  .lookup-results { grid-template-columns: 1fr; }
}

.context-tabs { display: flex; gap: .55rem; margin: 0 0 1rem; padding: .7rem; overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.context-tabs a { flex: 0 0 auto; padding: .55rem .75rem; border-radius: 10px; background: #f1f6f2; color: var(--primary); font-size: .78rem; font-weight: 800; text-decoration: none; }
.context-tabs a:hover,.context-tabs a:focus-visible { background: var(--primary); color: #fff; }
.admin-control-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(260px,1fr)); gap: .8rem; }
.control-card { display: grid; align-content: start; gap: .65rem; min-width: 0; padding: .9rem; border: 1px solid var(--border); border-radius: 14px; background: #fbfdfb; }
details.control-card > summary { cursor: pointer; }
.control-card > small { overflow-wrap: anywhere; color: var(--muted); }
.control-card .inline-form { display: grid; grid-template-columns: minmax(110px,.75fr) minmax(140px,1fr) auto; gap: .5rem; }
.one-time-secret { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: .65rem; margin-bottom: 1rem; padding: 1rem; border: 1px solid #d3b758; border-radius: 14px; background: #fff8d9; }
.one-time-secret strong { grid-column: 1/-1; }
.one-time-secret input { min-width: 0; font-family: ui-monospace,SFMono-Regular,Menlo,monospace; }

@media (max-width: 560px) {
  .admin-control-grid { grid-template-columns: 1fr; }
  .control-card .inline-form,.one-time-secret { grid-template-columns: 1fr; }
}

@media print {
  .sidebar,.topbar,.alert,.qr-print-panel .button,.split-grid > .panel:first-child { display: none !important; }
  .app-shell,.split-grid { display: block; }
  .content { padding: 0; }
  .qr-print-panel { border: 0; box-shadow: none; }
  .receipt-actions { display: none !important; }
  .receipt-card { border: 0; box-shadow: none; }
}

.public-site-admin-grid { align-items: start; }
.public-site-admin-grid fieldset { grid-template-columns: repeat(2,minmax(0,1fr)); }
.public-site-admin-grid .location-confirm { display: grid; gap: .3rem; }
.public-site-admin-grid .location-confirm strong { color: var(--ink); }
.public-theme-preview { display: grid; gap: .45rem; margin-top: 1.2rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(135deg,#fff 0 50%,#18202a 50%); color: var(--ink); }
.public-theme-preview strong { max-width: 50%; overflow-wrap: anywhere; }
.public-theme-preview small { color: #748077; }
.reorder-actions { display: flex; flex-wrap: wrap; gap: .45rem; border-top: 1px solid var(--line); padding-top: .7rem; }
.partner-admin-logo { width: 100%; height: 86px; padding: .75rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; object-fit: contain; }
.partner-card-preview { min-height: 105px; display: grid; place-items: center; overflow: hidden; border: 1px dashed var(--line); border-radius: 14px; background: #f8faf8; color: var(--muted); }
.partner-card-preview img { max-width: 85%; max-height: 82px; object-fit: contain; }
.alert-warning { border-color: #e1c36b; color: #6e5715; background: #fff8dc; }
.public-partner-settings { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.public-partner-settings .inline-form { align-items: end; }
.public-sort-handle { width: 100%; min-height: 34px; border: 1px dashed var(--line); border-radius: 9px; background: var(--surface-2); color: var(--muted); cursor: grab; font: inherit; font-size: 11px; font-weight: 750; }
.public-sort-handle:active { cursor: grabbing; }
.control-card.is-dragging { opacity: .5; }
.control-card.is-drag-target { outline: 2px solid var(--primary); outline-offset: 3px; }
.social-network-preview { display: flex; align-items: center; gap: .5rem; padding: .6rem .75rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); font-weight: 750; }
.social-network-preview svg { width: 18px; height: 18px; color: var(--primary); }

.account-hero { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; padding: clamp(1.2rem,3vw,2rem); border: 1px solid #d7e2dc; border-radius: 22px; background: linear-gradient(120deg,var(--white),#edf7f1); box-shadow: var(--shadow); }
.account-hero > div { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.account-hero h2 { margin: .3rem 0; overflow-wrap: anywhere; }
.account-hero p { margin: 0; color: var(--muted); }
.account-avatar { width: 82px; height: 108px; flex: 0 0 auto; border: 3px solid var(--white); border-radius: 18px; object-fit: cover; box-shadow: 0 12px 30px rgba(23,37,29,.15); }
.account-avatar-fallback { display: grid; place-items: center; color: var(--white); background: linear-gradient(145deg,var(--green),var(--green-2)); font-size: 2rem; font-weight: 900; }
.account-tabs { position: sticky; z-index: 6; top: 0; display: flex; gap: .45rem; margin-bottom: 1rem; padding: .55rem; overflow-x: auto; border: 1px solid var(--line); border-radius: 15px; background: color-mix(in srgb,var(--white) 92%,transparent); backdrop-filter: blur(12px); }
.account-tabs a { flex: 0 0 auto; padding: .62rem .8rem; border-radius: 10px; color: var(--green); background: var(--paper); font-size: .78rem; font-weight: 800; }
.account-tabs a:hover,.account-tabs a:focus-visible { color: var(--white); background: var(--green); }
.account-profile-form { margin-bottom: 1rem; }
.account-form-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; margin-bottom: 1rem; }
.account-memberships { display: grid; gap: .65rem; }
.account-memberships > div { display: flex; justify-content: space-between; gap: .75rem; padding: .85rem; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.account-memberships small { text-align: right; }
.alert-info { border: 1px solid #aac9de; color: #24516e; background: #eef8ff; }

.theme-dark { --ink:#edf5ef; --muted:#9eb1a5; --line:#33483d; --paper:#121d17; --white:#1b2a22; --green:#69c995; --green-2:#7ed8a6; --lime:#314a38; --shadow:0 18px 55px rgba(0,0,0,.25); color:var(--ink); background:var(--paper); }
.theme-dark .content { background:#121d17; }
.theme-dark .account-hero { background:linear-gradient(120deg,#1b2a22,#17261e); }
.theme-dark label { color:#c8d5cd; }
.theme-dark .alert-info { color:#b8d9eb; background:#173040; }

@media (prefers-color-scheme: dark) {
  body:not(.theme-light) { --ink:#edf5ef; --muted:#9eb1a5; --line:#33483d; --paper:#121d17; --white:#1b2a22; --green:#69c995; --green-2:#7ed8a6; --lime:#314a38; --shadow:0 18px 55px rgba(0,0,0,.25); color:var(--ink); background:var(--paper); }
  body:not(.theme-light) .content { background:#121d17; }
  body:not(.theme-light) .account-hero { background:linear-gradient(120deg,#1b2a22,#17261e); }
  body:not(.theme-light) label { color:#c8d5cd; }
}

@media (max-width: 560px) {
  .public-site-admin-grid fieldset,.public-site-admin-grid .field-pair { grid-template-columns: 1fr; }
  .public-theme-preview strong { max-width: 100%; }
  .public-partner-settings { align-items: stretch; flex-direction: column; }
  .public-partner-settings .inline-form { display: grid; grid-template-columns: 1fr; }
  .public-partner-settings input,.public-partner-settings select { font-size: 16px; }
  .account-hero { align-items: flex-start; flex-direction: column; }
  .account-avatar { width: 64px; height: 86px; }
  .account-form-grid { grid-template-columns: 1fr; }
  .account-memberships > div { flex-direction: column; }
  .account-memberships small { text-align: left; }
  .account-profile-form input,.account-profile-form select { font-size: 16px; }
}
