/* Amazonia Service Management – portals (mobile-first) */
:root {
	--apc-brand: #0b6b3a;
	--apc-ink: #14231b;
	--apc-muted: #66766e;
	--apc-line: #e2e9e5;
	--apc-bg: #f2f5f3;
	--apc-card: #ffffff;
	--apc-warn: #b45309;
	--apc-bad: #b91c1c;
	--apc-good: #15803d;
	--apc-radius: 14px;
	--apc-tint: color-mix(in srgb, var(--apc-brand) 10%, white);
}
* { box-sizing: border-box; }
html, body.apc-body { margin: 0; padding: 0; }
body.apc-body {
	background: var(--apc-bg);
	color: var(--apc-ink);
	font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	-webkit-tap-highlight-color: transparent;
}
.apc-body a { color: var(--apc-brand); }
.apc-body h1, .apc-body h2, .apc-body h3 { margin: 0; line-height: 1.25; letter-spacing: -0.01em; }

.apc-app { max-width: 720px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; }
.apc-center { display: flex; align-items: center; justify-content: center; padding: 20px; }

/* Top bar */
.apc-top {
	position: sticky; top: 0; z-index: 20;
	display: flex; align-items: center; justify-content: space-between;
	padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
	background: var(--apc-brand); color: #fff;
	box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.apc-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.apc-brand img { height: 36px; width: auto; background: #fff; border-radius: 8px; padding: 3px; }
.apc-brand strong { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.apc-brand small { display: block; font-size: 12px; opacity: .85; }
.apc-logo-dot { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.2); display: grid; place-items: center; font-weight: 700; font-size: 18px; color: #fff; }
.apc-logo-dot--lg { width: 64px; height: 64px; font-size: 30px; background: var(--apc-brand); margin: 0 auto 12px; border-radius: 18px; }
.apc-top-user span { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--apc-brand); display: grid; place-items: center; font-weight: 700; text-transform: uppercase; }
.apc-top-user { text-decoration: none; }

.apc-main { padding: 16px 14px calc(96px + env(safe-area-inset-bottom)); }

/* Bottom navigation */
.apc-nav {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
	display: flex; justify-content: space-around;
	background: #fff; border-top: 1px solid var(--apc-line);
	padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
	box-shadow: 0 -4px 18px rgba(0,0,0,.06);
}
.apc-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; color: var(--apc-muted); text-decoration: none; font-size: 11.5px; font-weight: 600; border-radius: 10px; max-width: 120px; }
.apc-nav svg { width: 24px; height: 24px; fill: currentColor; }
.apc-nav a.is-active { color: var(--apc-brand); background: var(--apc-tint); }

/* Cards */
.apc-card { background: var(--apc-card); border-radius: var(--apc-radius); padding: 18px; margin-bottom: 14px; box-shadow: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.06); border: 1px solid var(--apc-line); }
.apc-card h2 { font-size: 17px; margin-bottom: 10px; }
.apc-card-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.apc-card-head small { color: var(--apc-muted); }
.apc-card--action { border: 2px solid var(--apc-brand); }
.apc-title { font-size: 22px; margin: 4px 0 14px !important; }
.apc-title-row { display: flex; justify-content: space-between; align-items: center; }
.apc-h { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--apc-muted); margin: 22px 2px 10px !important; display: flex; justify-content: space-between; }
.apc-h a { text-transform: none; letter-spacing: 0; font-size: 13px; }
.apc-h--warn { color: var(--apc-warn); }
.apc-muted { color: var(--apc-muted); }
.apc-small { font-size: 13px; }
.apc-mt { margin-top: 20px !important; }
.apc-empty { background: #fff; border: 1px dashed var(--apc-line); border-radius: var(--apc-radius); padding: 18px; text-align: center; color: var(--apc-muted); }

/* Hello */
.apc-hello { background: linear-gradient(135deg, var(--apc-brand), color-mix(in srgb, var(--apc-brand) 70%, #000)); color: #fff; border-radius: 18px; padding: 18px; margin-bottom: 14px; }
.apc-hello h1 { font-size: 22px; }
.apc-hello p { margin: 4px 0 0; opacity: .9; }
.apc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.apc-stats div { background: rgba(255,255,255,.14); border-radius: 12px; padding: 10px; text-align: center; }
.apc-stats strong { display: block; font-size: 22px; }
.apc-stats span { font-size: 11.5px; opacity: .9; }

.apc-scan-cta { display: flex; align-items: center; gap: 14px; background: #fff; border: 2px solid var(--apc-brand); border-radius: 16px; padding: 14px 16px; text-decoration: none; color: var(--apc-ink); box-shadow: 0 6px 18px color-mix(in srgb, var(--apc-brand) 20%, transparent); }
.apc-scan-cta svg { width: 44px; height: 44px; fill: var(--apc-brand); flex: none; }
.apc-scan-cta strong { display: block; font-size: 17px; color: var(--apc-brand); }
.apc-scan-cta small { color: var(--apc-muted); }

/* Job / record rows */
.apc-job { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid var(--apc-line); border-left: 4px solid var(--apc-brand); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; text-decoration: none; color: var(--apc-ink); }
.apc-job--live { border-left-color: #f59e0b; background: #fffbeb; }
.apc-job-main { min-width: 0; }
.apc-job strong { display: block; font-size: 15.5px; }
.apc-job span, .apc-job small { display: block; }
.apc-job span { color: var(--apc-ink); font-size: 14px; }
.apc-job small { color: var(--apc-muted); font-size: 12.5px; margin-top: 2px; }
.apc-rec { display: flex; justify-content: space-between; gap: 10px; background: #fff; border: 1px solid var(--apc-line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.apc-rec strong { display: block; }
.apc-rec span, .apc-rec small { display: block; font-size: 13px; color: var(--apc-muted); }
.apc-rec-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.apc-link { font-size: 12.5px; }

/* Badges */
.apc-badge { display: inline-block; white-space: nowrap; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: #eef2f0; color: #45534c; }
.apc-badge--scheduled, .apc-badge--active { background: #e0f2fe; color: #075985; }
.apc-badge--requested, .apc-badge--pending, .apc-badge--correction_requested { background: #fef3c7; color: #92400e; }
.apc-badge--in_progress { background: #ffedd5; color: #9a3412; }
.apc-badge--completed, .apc-badge--submitted, .apc-badge--approved, .apc-badge--corrected { background: #dcfce7; color: #166534; }
.apc-badge--missed, .apc-badge--cancelled, .apc-badge--rejected, .apc-badge--inactive, .apc-badge--expired { background: #fee2e2; color: #991b1b; }

/* Buttons */
.apc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--apc-line); background: #fff; color: var(--apc-ink) !important; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.apc-btn--primary { background: var(--apc-brand); border-color: var(--apc-brand); color: #fff !important; }
.apc-btn--wa { background: #25d366; border-color: #25d366; color: #fff !important; }
.apc-btn--danger { color: var(--apc-bad) !important; border-color: #fecaca; }
.apc-btn--block { display: flex; width: 100%; margin-top: 10px; }
.apc-btn--xl { min-height: 56px; font-size: 16.5px; margin-top: 14px; }
.apc-btn--small { min-height: 34px; padding: 6px 12px; font-size: 13px; border-radius: 10px; }
.apc-btn:disabled { opacity: .6; }
.apc-btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.apc-btn-row .apc-btn { flex: 1 1 auto; }
.apc-btn-col { display: flex; flex-direction: column; }
.apc-back { display: inline-block; margin-bottom: 10px; text-decoration: none; font-weight: 600; }

/* Forms */
.apc-field { margin-bottom: 14px; }
.apc-field > label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; }
.apc-body input[type=text], .apc-body input[type=search], .apc-body input[type=password], .apc-body input[type=number], .apc-body input[type=date], .apc-body input[type=tel], .apc-body input[type=email], .apc-body select, .apc-body textarea {
	width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #cfd9d4; border-radius: 10px; background: #fff; font: inherit; color: var(--apc-ink);
}
.apc-body textarea { min-height: 80px; resize: vertical; }
.apc-body input:focus, .apc-body select:focus, .apc-body textarea:focus { outline: none; border-color: var(--apc-brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--apc-brand) 20%, transparent); }
.apc-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.apc-checks { display: grid; gap: 8px; }
.apc-check { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--apc-line); border-radius: 10px; background: #fff; font-weight: 500; cursor: pointer; }
.apc-check input { width: 20px; height: 20px; accent-color: var(--apc-brand); flex: none; }
.apc-check:has(input:checked) { border-color: var(--apc-brand); background: var(--apc-tint); }
.apc-pass-wrap { position: relative; }
.apc-eye { position: absolute; right: 6px; top: 6px; height: 34px; width: 38px; border: 0; background: transparent; font-size: 18px; cursor: pointer; }
.apc-search { display: flex; gap: 8px; margin-bottom: 14px; }
.apc-search--grid { display: grid; grid-template-columns: 1fr 1fr; }
.apc-inline { display: flex; gap: 8px; margin-top: 10px; }

.apc-photo-drop { display: flex; align-items: center; justify-content: center; min-height: 64px; border: 2px dashed #b9c8c0; border-radius: 12px; background: #fafcfb; color: var(--apc-muted); font-weight: 600; cursor: pointer; }
.apc-photo-drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.apc-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.apc-thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1px solid var(--apc-line); }

/* Chemicals */
.apc-chem-row { position: relative; display: grid; gap: 8px; padding: 12px; padding-right: 44px; border: 1px solid var(--apc-line); border-radius: 12px; margin-bottom: 8px; background: #fafcfb; }
.apc-chem-qty { display: grid; grid-template-columns: 1fr 90px; gap: 8px; }
.apc-chem-del { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid #fecaca; background: #fff; color: var(--apc-bad); font-size: 18px; line-height: 1; cursor: pointer; }

/* Signature */
.apc-sigpad { position: relative; border: 2px dashed #b9c8c0; border-radius: 12px; background: #fff; overflow: hidden; }
.apc-sigpad canvas { display: block; width: 100%; height: 190px; touch-action: none; }
.apc-sigpad.is-error { border-color: var(--apc-bad); }
.apc-sig-clear { position: absolute; top: 8px; right: 8px; border: 1px solid var(--apc-line); background: #fff; border-radius: 8px; padding: 4px 10px; font-weight: 600; cursor: pointer; }
.apc-sig-hint { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; color: #aab6b0; pointer-events: none; font-size: 13px; }
.apc-sigpad.has-ink .apc-sig-hint { display: none; }

/* GPS */
.apc-gps-status { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #f1f5f9; font-size: 13.5px; margin: 6px 0 4px; }
.apc-dot { width: 10px; height: 10px; border-radius: 50%; background: #94a3b8; flex: none; animation: apcPulse 1.2s infinite; }
.apc-gps-status.is-ok { background: #ecfdf5; color: var(--apc-good); }
.apc-gps-status.is-ok .apc-dot { background: var(--apc-good); animation: none; }
.apc-gps-status.is-fail { background: #fff7ed; color: var(--apc-warn); }
.apc-gps-status.is-fail .apc-dot { background: var(--apc-warn); animation: none; }
@keyframes apcPulse { 50% { opacity: .3; } }

/* Info lists */
.apc-info { list-style: none; margin: 0; padding: 0; }
.apc-info li { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid #eef2f0; font-size: 14px; }
.apc-info li:last-child { border-bottom: 0; }
.apc-info b { color: var(--apc-muted); font-weight: 600; font-size: 13px; }
.apc-info .apc-note { background: #fffbeb; margin: 4px -8px; padding: 8px; border-radius: 8px; border: 0; }
.apc-svc { border-top: 1px solid #eef2f0; padding-top: 10px; margin-top: 10px; }
.apc-svc p { margin: 4px 0; color: var(--apc-muted); font-size: 13.5px; }
.apc-svc small { color: var(--apc-brand); font-weight: 600; }
.apc-hist { padding: 8px 0; border-bottom: 1px solid #eef2f0; font-size: 13.5px; }
.apc-hist p { margin: 4px 0 0; color: var(--apc-muted); }

/* Job header & live */
.apc-job-head { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.apc-job-head small { color: var(--apc-muted); font-weight: 600; }
.apc-job-head h1 { font-size: 20px; }
.apc-job-head p { margin: 4px 0 0; color: var(--apc-muted); }
.apc-days { display: flex; gap: 6px; margin-bottom: 12px; }
.apc-days span { flex: 1; text-align: center; padding: 6px; border-radius: 8px; background: #eef2f0; font-size: 12.5px; font-weight: 700; color: var(--apc-muted); }
.apc-days .is-done { background: #dcfce7; color: #166534; }
.apc-live { display: flex; justify-content: space-between; gap: 12px; align-items: center; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 16px; padding: 14px 16px; margin-bottom: 14px; }
.apc-live small { color: #9a3412; font-weight: 700; text-transform: uppercase; font-size: 11.5px; letter-spacing: .05em; }
.apc-live h1 { font-size: 19px; }
.apc-live p { margin: 2px 0 0; color: var(--apc-muted); font-size: 13.5px; }
.apc-timer { text-align: right; }
.apc-timer strong { display: block; font-size: 26px; font-variant-numeric: tabular-nums; color: #9a3412; }
.apc-timer small { text-transform: none; }

/* Alerts */
.apc-alert { padding: 12px 14px; border-radius: 12px; margin-bottom: 12px; font-size: 14px; border: 1px solid transparent; }
.apc-alert--success { background: #ecfdf5; border-color: #bbf7d0; color: #14532d; }
.apc-alert--error { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }
.apc-alert--warning { background: #fffbeb; border-color: #fde68a; color: #78350f; }
.apc-alert--info { background: #eff6ff; border-color: #bfdbfe; color: #1e3a8a; }
.apc-alert code { background: rgba(0,0,0,.06); padding: 1px 5px; border-radius: 4px; }

/* Success page */
.apc-success { text-align: center; background: #fff; border-radius: 18px; padding: 26px 18px; border: 1px solid var(--apc-line); margin-bottom: 12px; }
.apc-tick { width: 72px; height: 72px; margin: 0 auto 10px; border-radius: 50%; background: #dcfce7; color: var(--apc-good); display: grid; place-items: center; font-size: 36px; font-weight: 700; }
.apc-success h1 { font-size: 22px; }

/* Scanner */
.apc-reader { width: 100%; min-height: 220px; border-radius: 12px; overflow: hidden; background: #0f172a; }
.apc-reader video { width: 100% !important; border-radius: 12px; }
.apc-scan-msg { min-height: 20px; font-weight: 600; margin: 10px 0 0; }
.apc-scan-msg.is-error { color: var(--apc-bad); }
.apc-scan-msg.is-ok { color: var(--apc-good); }
.apc-manual { margin-top: 14px; }
.apc-manual summary { cursor: pointer; color: var(--apc-muted); font-weight: 600; }

/* Customer */
.apc-next { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.apc-next small { color: var(--apc-muted); font-weight: 700; text-transform: uppercase; font-size: 11.5px; letter-spacing: .05em; }
.apc-next p { margin: 4px 0 8px; }
.apc-next-qr { flex: none; background: #fff; border: 1px solid var(--apc-line); border-radius: 12px; padding: 6px; line-height: 0; }
.apc-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 6px; }
.apc-tiles a { background: #fff; border: 1px solid var(--apc-line); border-radius: 14px; padding: 12px 6px; text-align: center; text-decoration: none; color: var(--apc-ink); font-size: 24px; }
.apc-tiles span { display: block; font-size: 12px; font-weight: 600; margin-top: 4px; }
.apc-plan { background: #fff; border: 1px solid var(--apc-line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.apc-plan strong, .apc-plan small { display: block; }
.apc-plan small { color: var(--apc-muted); font-size: 12.5px; }
.apc-progress { height: 8px; background: #eef2f0; border-radius: 99px; overflow: hidden; margin: 8px 0 4px; }
.apc-progress span { display: block; height: 100%; background: var(--apc-brand); border-radius: 99px; }
.apc-pass { text-align: center; }
.apc-pass > small { color: var(--apc-muted); font-weight: 700; text-transform: uppercase; font-size: 11.5px; letter-spacing: .06em; }
.apc-pass h1 { font-size: 20px; margin: 4px 0 6px !important; }
.apc-pass-qr { display: inline-block; border: 0; background: #fff; padding: 10px; border-radius: 16px; box-shadow: 0 0 0 1px var(--apc-line); cursor: zoom-in; margin: 6px 0; }
.apc-pass-qr span { display: block; font-size: 12px; color: var(--apc-muted); margin-top: 2px; }
.apc-pass-no { font-family: ui-monospace, Menlo, monospace; font-weight: 700; letter-spacing: .04em; margin: 4px 0 0; }
.apc-qr-svg { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.apc-fs { position: fixed; inset: 0; z-index: 100; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
.apc-fs[hidden] { display: none; }
.apc-fs-inner { width: min(90vw, 90vh); }
.apc-fs-inner svg { width: 100%; height: auto; }
.apc-fs p { color: var(--apc-muted); }

/* Period (reports) */
.apc-period-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.apc-chip { border: 1px solid var(--apc-line); background: #fff; border-radius: 99px; padding: 7px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.apc-chip.is-active { background: var(--apc-brand); color: #fff; border-color: var(--apc-brand); }
.apc-period-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.apc-period-dates label { font-weight: 600; font-size: 13px; }
.apc-period-btns { display: grid; gap: 8px; }

/* Login */
.apc-login-wrap { background: radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--apc-brand) 25%, white), var(--apc-bg) 60%); }
.apc-login { width: 100%; max-width: 400px; text-align: center; padding: 28px 22px; }
.apc-login form { text-align: left; margin-top: 18px; }
.apc-login h1 { font-size: 22px; }
.apc-login-logo { max-height: 70px; max-width: 200px; margin: 0 auto 10px; display: block; }

@media (min-width: 760px) {
	.apc-main { padding-top: 24px; }
	.apc-nav { max-width: 720px; margin: 0 auto; border-radius: 16px 16px 0 0; }
}
@media (max-width: 380px) {
	.apc-tiles { grid-template-columns: repeat(2, 1fr); }
	.apc-grid2 { grid-template-columns: 1fr; }
}
.apc-job-head .apc-badge, .apc-job .apc-badge, .apc-rec .apc-badge { align-self: flex-start; }

/* ===== Landing (3 portals) ===== */
.apc-landing { max-width: 1120px; padding: 28px 18px 40px; }
.apc-landing-head { text-align: center; padding: 34px 20px 26px; border-radius: 24px; color: #fff; position: relative; overflow: hidden;
	background: radial-gradient(1200px 400px at 10% -10%, rgba(255,255,255,.18), transparent 60%), linear-gradient(135deg, var(--apc-brand), color-mix(in srgb, var(--apc-brand) 55%, #021c10)); box-shadow: 0 20px 50px color-mix(in srgb, var(--apc-brand) 30%, transparent); }
.apc-landing-head::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.07); }
.apc-landing-brand h1 { font-size: 30px; color: #fff; margin-top: 6px; }
.apc-landing-brand .apc-login-logo { background: #fff; border-radius: 14px; padding: 6px 10px; }
.apc-landing-brand .apc-logo-dot--lg { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); }
.apc-logo-dot svg { width: 34px; height: 34px; fill: #fff; }
.apc-landing-tag { margin: 4px 0 18px; opacity: .85; font-size: 14px; }
.apc-landing-title { font-size: 22px !important; letter-spacing: .01em; }
.apc-landing-sub { margin: 6px 0 0; opacity: .85; }
.apc-landing-signed { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--apc-line); border-radius: 14px; padding: 12px; margin: 16px 0 0; }
.apc-portals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.apc-portal { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--apc-line); border-radius: 20px; padding: 24px 22px; text-decoration: none; color: var(--apc-ink) !important; box-shadow: 0 1px 3px rgba(16,24,40,.06); transition: transform .18s ease, box-shadow .18s ease, border-color .18s; }
.apc-portal:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(16,24,40,.12); border-color: var(--apc-brand); }
.apc-portal .apc-portal-icon { margin: 0 0 14px; }
.apc-portal small { color: var(--apc-muted); font-weight: 700; text-transform: uppercase; letter-spacing: .07em; font-size: 11.5px; }
.apc-portal strong { font-size: 20px; margin: 4px 0 8px; }
.apc-portal p { margin: 0 0 18px; color: var(--apc-muted); font-size: 14px; flex: 1; }
.apc-portal-go { display: inline-flex; align-self: flex-start; background: var(--apc-brand); color: #fff; font-weight: 700; padding: 10px 18px; border-radius: 12px; font-size: 14px; }
.apc-portal--technician .apc-portal-icon { background: #fff7ed; } .apc-portal--technician .apc-portal-icon svg { fill: #c2410c; }
.apc-portal--customer .apc-portal-icon { background: #eff6ff; } .apc-portal--customer .apc-portal-icon svg { fill: #1d4ed8; }
.apc-portal-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--apc-tint); margin: 0 auto 12px; }
.apc-portal-icon svg { width: 28px; height: 28px; fill: var(--apc-brand); }
.apc-landing-foot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 28px; padding: 18px 4px 0; border-top: 1px solid var(--apc-line); color: var(--apc-muted); font-size: 13.5px; }
.apc-landing-foot strong { color: var(--apc-ink); }
.apc-center-text { text-align: center; margin-top: 14px; }

/* ===== Portal login screens ===== */
.apc-auth { max-width: none; display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; min-height: 100dvh; }
.apc-auth-side { color: #fff; display: flex; align-items: center; justify-content: center; padding: 48px;
	background: radial-gradient(900px 500px at 0% 0%, rgba(255,255,255,.14), transparent 60%), linear-gradient(150deg, var(--apc-brand), color-mix(in srgb, var(--apc-brand) 50%, #021c10)); }
.apc-auth-side-inner { max-width: 440px; }
.apc-auth-side h1 { font-size: 26px; color: #fff; margin: 8px 0 30px; }
.apc-auth-side .apc-logo-dot--lg { margin: 0; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); }
.apc-auth-side .apc-login-logo { margin: 0; background: #fff; border-radius: 12px; padding: 6px 10px; }
.apc-auth-kicker { display: inline-block; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.15); padding: 5px 10px; border-radius: 99px; }
.apc-auth-side h2 { font-size: 34px; color: #fff; margin: 12px 0 10px; }
.apc-auth-side p { opacity: .88; font-size: 15.5px; }
.apc-auth-points { list-style: none; padding: 0; margin: 24px 0 0; }
.apc-auth-points li { padding: 7px 0 7px 30px; position: relative; opacity: .95; }
.apc-auth-points li::before { content: "✓"; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.apc-auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 20px; background: var(--apc-bg); }
.apc-auth-main .apc-login { box-shadow: 0 24px 60px rgba(16,24,40,.10); border-radius: 22px; }
.apc-auth-main .apc-login h2 { font-size: 22px; }
.apc-auth-back { margin-top: 16px; font-weight: 600; text-decoration: none; }
.apc-login-form { text-align: left; margin-top: 18px; }
.apc-qr-details summary { cursor: pointer; list-style: none; }
.apc-qr-details summary::-webkit-details-marker { display: none; }
.apc-qr-details .apc-pass { margin-top: 12px; }

@media (max-width: 860px) {
	.apc-portals { grid-template-columns: 1fr; }
	.apc-auth { grid-template-columns: 1fr; }
	.apc-auth-side { padding: 28px 22px 26px; }
	.apc-auth-side h1 { margin-bottom: 16px; font-size: 20px; }
	.apc-auth-side h2 { font-size: 26px; }
	.apc-auth-points { display: none; }
	.apc-auth-main { padding: 0 14px 30px; margin-top: -14px; background: transparent; }
	.apc-landing-brand h1 { font-size: 24px; }
}
