/* Geoportal admin additions on top of Unfold. Colours use Unfold's variables so dark mode keeps working. */
.gp-dash { display: flex; flex-direction: column; gap: 24px; }
.gp-head p { margin-top: 4px; }
.gp-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.gp-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 16px; align-items: start; }
.gp-num { font-size: 30px; font-weight: 600; line-height: 1.2; margin: 4px 0; color: var(--color-primary-600); }
.gp-small { font-size: 12px; }
.gp-stat { border-collapse: collapse; margin-bottom: 8px; }
.gp-stat th, .gp-stat td { padding: 4px 16px 4px 0; text-align: left; vertical-align: top; }
.gp-stat th { font-weight: 500; }
.gp-diff { font-size: 13px; margin: 6px 0; }
.gp-ok { color: var(--color-primary-600); }
.gp-warn { color: #b45309; }
.gp-ico { font-size: 16px; vertical-align: -3px; }
.gp-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.gp-map { height: 420px; border-radius: 8px; border: 1px solid var(--color-base-200); margin-top: 8px; }
.gp-map-note { font-size: 12px; margin-top: 6px; }
.gp-mb { margin-bottom: 24px; }
@media (max-width: 640px) { .gp-cols { grid-template-columns: 1fr; } .gp-map { height: 300px; } }
/* sign-in, two-factor and invitation pages */
.gp-login-logo { width: 240px; max-width: 100%; margin: 0 auto 28px; display: block; }
.gp-steps { list-style: decimal; padding-left: 20px; font-size: 13px; margin: 8px 0; }
.gp-steps li { margin: 4px 0; }
.gp-qr { display: flex; justify-content: center; margin: 12px 0; }
.gp-qr svg { background: #fff; padding: 8px; border-radius: 8px; border: 1px solid var(--color-base-200); }
.gp-secret { font-size: 13px; letter-spacing: .5px; word-break: break-all; }
.gp-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0; }
.gp-codes code { font-size: 15px; text-align: center; padding: 6px; border: 1px dashed var(--color-base-300); border-radius: 6px; }
.gp-link { width: 100%; font-size: 12px; padding: 8px; border: 1px solid var(--color-base-200); border-radius: 6px; background: transparent; }
.gp-mt { margin-top: 16px; }
.gp-mb-s { margin-bottom: 12px; }
.gp-buttons .w-full { width: 100%; }
/* D2: AI usage and health */
.gp-kpis-tight { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 4px; }
.gp-bar { height: 6px; border-radius: 3px; background: var(--color-base-200); overflow: hidden; margin: 4px 0; max-width: 180px; }
.gp-bar span { display: block; height: 100%; background: var(--color-primary-600); }
.gp-sub { font-weight: 600; margin: 14px 0 6px; }
/* Sign-in picture: Unfold shows it only from 1280 px; most laptops (125 % scaling) are narrower, so show it from 1024 px */
@media (min-width: 1024px) { body.login #page > .bg-cover { display: block; flex: 0 0 45%; max-width: 45%; background-position: center; } }
/* Style editor (symbology step 2): mounted inside the "Style" fieldset by style_editor.js */
.gp-style { font-size: 13px; }
.gp-style .gp-row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 8px 0; }
.gp-style label.gp-f { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--color-base-600); }
.gp-style label.gp-f > span:first-child { font-weight: 500; }
.gp-style input[type=text], .gp-style input[type=number], .gp-style select { font-size: 13px; padding: 4px 6px; border: 1px solid var(--color-base-300); border-radius: 6px; background: var(--color-base-50); color: inherit; min-width: 90px; }
.gp-style input[type=color] { width: 36px; height: 28px; padding: 0; border: 1px solid var(--color-base-300); border-radius: 6px; background: transparent; }
.gp-style input[type=range] { width: 140px; }
.gp-style h4 { font-weight: 600; margin: 16px 0 4px; font-size: 13px; }
.gp-style .gp-hint { font-size: 12px; color: var(--color-base-500); margin: 2px 0 6px; }
.gp-style .gp-btn { font-size: 12px; padding: 4px 10px; border: 1px solid var(--color-base-300); border-radius: 6px; background: var(--color-base-50); cursor: pointer; }
.gp-style .gp-btn.pri { background: var(--color-primary-600); border-color: var(--color-primary-600); color: #fff; }
.gp-style .gp-btn:disabled { opacity: .5; cursor: default; }
.gp-style table.gp-classes { border-collapse: collapse; width: 100%; margin: 6px 0; }
.gp-style table.gp-classes td { padding: 3px 6px; vertical-align: middle; }
.gp-style table.gp-classes input[type=text] { width: 100%; min-width: 60px; }
.gp-style .gp-sw { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 1px solid rgba(0,0,0,.25); vertical-align: middle; position: relative; overflow: hidden; }
.gp-style .gp-sw.sq { border-radius: 4px; }
.gp-style .gp-sw i { position: absolute; left: 0; top: 0; width: 24px; height: 24px; transform: scale(.75); transform-origin: 0 0; background-repeat: no-repeat; }
.gp-style .gp-icon-btn { display: inline-flex; align-items: center; gap: 6px; }
.gp-style .gp-picker { border: 1px solid var(--color-base-200); border-radius: 8px; padding: 8px; margin: 6px 0; background: var(--color-base-50); }
.gp-style .gp-picker .gp-cats { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }
.gp-style .gp-picker .gp-cats button { font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--color-base-300); background: transparent; cursor: pointer; }
.gp-style .gp-picker .gp-cats button.on { background: var(--color-primary-600); color: #fff; border-color: var(--color-primary-600); }
.gp-style .gp-picker .gp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 4px; max-height: 220px; overflow: auto; }
.gp-style .gp-picker .gp-grid button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid transparent; background: var(--color-primary-600); position: relative; overflow: hidden; cursor: pointer; }
.gp-style .gp-picker .gp-grid button.on { border-color: #e8875f; }
.gp-style .gp-picker .gp-grid button i { position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; background-repeat: no-repeat; }
.gp-style .gp-ranges { font-size: 12px; margin: 4px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gp-style .gp-ranges span { display: inline-flex; align-items: center; gap: 4px; }
.gp-style textarea.gp-json { width: 100%; min-height: 120px; font: 12px/1.4 ui-monospace, Consolas, monospace; border: 1px solid var(--color-base-300); border-radius: 6px; padding: 6px; background: var(--color-base-50); color: inherit; }
.gp-style .gp-err { color: #b91c1c; font-size: 12px; }
.gp-style .gp-note-code { padding: 8px 10px; border-left: 3px solid var(--color-primary-600); background: var(--color-base-50); font-size: 13px; }

/* Publish box: field-level changes (Phase 2, docs/ADMIN_LAYER_CONTROL.md) */
.gp-changes { margin: 4px 0 6px 18px; list-style: disc; font-size: 12px; line-height: 1.5; }
.gp-changes li { margin: 1px 0; }
