/* mapSTL.com Studio — shared administration layout and gallery. */
#admin-page{padding-top:32px}#admin-page>.page-heading{margin-bottom:0;padding:0 0 16px}#admin-page>.page-heading h1{font-size:clamp(1.8rem,2.8vw,2.4rem)}
#admin-content>.account-toolbar{padding:10px 0 16px;margin:0;border-bottom:1px solid var(--border);font-size:.85rem}
.admin-workspace{display:grid;grid-template-columns:210px minmax(0,1fr);gap:32px;align-items:start;padding-top:26px}
#admin-content .admin-workspace>.admin-tabs{display:flex;flex-direction:column;gap:6px;position:sticky;top:22px;margin:0;padding:14px;background:#eef2e9;border:1px solid #e3e9df;border-radius:18px;overflow:visible}
#admin-content .admin-workspace>.admin-tabs :is(button,a[data-admin-tab]){width:100%;text-align:left;border-radius:10px;padding:13px 14px;background:transparent;color:#5c6c58;font-size:.88rem;font-weight:550;white-space:normal;min-height:44px}
#admin-content .admin-workspace>.admin-tabs :is(button,a[data-admin-tab]):hover{background:#e3ebdd}#admin-content .admin-workspace>.admin-tabs :is(button,a[data-admin-tab]).selected{background:#356243;color:white;box-shadow:0 3px 8px #24452c12}
#admin-content .admin-workspace>.admin-tabs :is(button,a[data-admin-tab]):nth-child(3),#admin-content .admin-workspace>.admin-tabs :is(button,a[data-admin-tab]):nth-last-child(2){margin-top:10px}
.admin-main{min-width:0}.admin-main>.admin-help{margin:0 0 24px;max-width:80ch;font-size:.88rem;line-height:1.7}
#admin-body .surface{border-radius:18px;box-shadow:0 3px 16px #20392703}#admin-body .surface>h2{margin-bottom:20px}
#admin-body .form-stack{gap:20px}#admin-body label:not(.check-label):not(.palette-field):not(.color-picker){line-height:1.5}
#admin-body input:not([type=checkbox]):not([type=radio]):not([type=color]):not(.palette-hex),#admin-body select,#admin-body textarea{border:1px solid #dce4d7;background:#fafbf8;border-radius:10px;min-height:44px;padding:11px 13px;max-width:100%}
#admin-body input[type=checkbox]{accent-color:var(--green);width:17px;height:17px;flex-shrink:0}
#admin-body .button{min-height:42px;border-radius:10px;font-size:.84rem}#admin-body .form-stack>button[type=submit]{justify-self:start;min-width:200px;width:auto}
#admin-body table{font-size:.88rem}#admin-body th{background:#f2f5ed;color:#687563;font-size:.75rem;letter-spacing:.025em;padding:14px 12px}#admin-body td{padding:16px 12px}
.studio-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:24px}.studio-heading .eyebrow{font-size:.68rem;margin-bottom:9px}.studio-heading h2{font-size:1.9rem;letter-spacing:-.045em}.studio-heading p:not(.eyebrow){margin-top:8px;color:var(--muted);font-size:.88rem}
.gallery-tabs{display:flex;gap:8px;border-bottom:1px solid var(--border);padding-bottom:16px;margin-bottom:24px}.gallery-tabs :is(button,a){padding:11px 17px;border-radius:10px;background:transparent;color:#64705f;font-weight:600;font-size:.9rem}.gallery-tabs :is(button,a).selected{background:#e6eedc;color:#31563a}.gallery-tabs span{display:inline-grid;place-items:center;min-width:23px;min-height:23px;border-radius:7px;background:#ffffffa6;font-size:.74rem;margin-left:6px}
.gallery-filters{display:grid;grid-template-columns:1.3fr 1fr 1fr;gap:16px;padding:22px;background:white;border:1px solid var(--border);border-radius:16px;margin-bottom:18px}.gallery-filters label{display:grid;gap:7px;font-size:.76rem;font-weight:600;color:#6c7867}.gallery-filters input,.gallery-filters select{width:100%;font-size:.9rem;font-weight:400}
.studio-notice{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;background:#f1eedf;border:1px solid #e8e2c9;border-radius:12px;margin-bottom:18px}.studio-notice p{font-size:.83rem;color:#76633b}.studio-notice .button{flex-shrink:0;background:#fffdf5}#gallery-result{font-size:.78rem;margin-bottom:14px}
.admin-gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.admin-place{border:1px solid var(--border);border-radius:18px;background:white;overflow:hidden;min-width:0;box-shadow:0 3px 14px #18371a03}.admin-place-image{position:relative;height:180px;background:#eef2e8}.admin-place-image>img{width:100%;height:100%;object-fit:cover;display:block}.admin-place-image>.studio-badge{position:absolute;top:12px;left:12px}.studio-badge{display:inline-block;background:#ffffffed;border:1px solid #e3e8df;color:#667060;border-radius:7px;font-size:.68rem;font-weight:650;padding:6px 9px}.studio-badge.is-visible{color:#315f3f;background:#edf7e8f5}
.admin-place-placeholder{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:35px 12px 12px;color:#76866c;text-align:center}.admin-place-placeholder>span{font-size:2.4rem;line-height:1}.admin-place-placeholder strong{font-size:.85rem}.admin-place-placeholder small{font-size:.7rem}
.admin-place-body{padding:16px}.admin-place-body .eyebrow{font-size:.65rem;margin-bottom:8px;letter-spacing:.11em}.admin-place h3{font-size:1.16rem;letter-spacing:-.025em;overflow-wrap:anywhere}.admin-place-description{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.9em;margin:9px 0 18px;font-size:.82rem;line-height:1.55;color:var(--muted)}.admin-place .record-actions{display:flex;gap:8px;flex-wrap:wrap}.admin-place .record-actions .button{flex:1;padding:10px 9px;white-space:normal;font-size:.76rem}
.admin-place-options{margin-top:18px;padding-top:15px;border-top:1px solid var(--border);display:grid;gap:10px}.admin-place-options label{display:flex;align-items:center;gap:9px;font-size:.78rem;color:#62705c}
.studio-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:24px}.studio-toolbar p{color:var(--muted);font-size:.9rem}.category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}#admin-body .category-card{margin:0;padding:24px}.category-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#edf2e4;color:#5a7747;font-size:.9rem;font-weight:650;margin-bottom:18px}.category-card h3{font-size:1.15rem;overflow-wrap:anywhere}.category-card p{color:var(--muted);font-size:.85rem;margin:8px 0 20px}.category-card .record-actions{display:flex;flex-wrap:wrap;gap:8px}
.studio-empty{grid-column:1/-1;padding:65px 25px;text-align:center;background:white;border:1px dashed #d6dfd0;border-radius:18px}.studio-empty>span{display:inline-grid;place-items:center;width:56px;height:56px;border-radius:50%;background:#eaf3e2;color:#497047;font-size:1.5rem;margin-bottom:18px}.studio-empty h3{font-size:1.2rem}.studio-empty p{font-size:.9rem;color:var(--muted);margin-top:10px}.studio-review{display:flex;align-items:center;justify-content:space-between;gap:24px}.studio-review h3{margin:14px 0 8px}.studio-review p{color:var(--muted);font-size:.85rem}
@media(max-width:1100px){.admin-gallery-grid,.category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-workspace{gap:24px;grid-template-columns:190px minmax(0,1fr)}}
@media(max-width:900px){.admin-workspace{display:block}#admin-content .admin-workspace>.admin-tabs{position:static;display:block;margin-bottom:24px;padding:8px;border-radius:12px;overflow:visible}#admin-content .admin-workspace>.admin-tabs [data-admin-tab]{width:100%;white-space:normal;margin:0!important}.gallery-filters{grid-template-columns:1fr 1fr}.gallery-filters label:first-child{grid-column:1/-1}.studio-review{align-items:start;flex-direction:column}}
@media(max-width:560px){.admin-gallery-grid,.category-grid{grid-template-columns:1fr}.studio-heading{align-items:start;flex-direction:column}.studio-heading>.button{width:100%}.gallery-tabs{gap:3px}.gallery-tabs :is(button,a){padding:9px;font-size:.8rem}.gallery-tabs span{margin-left:3px}.gallery-filters{padding:16px;gap:12px;grid-template-columns:1fr}.gallery-filters label:first-child{grid-column:auto}.studio-notice,.studio-toolbar{flex-direction:column;align-items:stretch}.studio-toolbar .button,.studio-notice .button{width:100%}#admin-body .surface{padding:20px}#admin-content>.account-toolbar{gap:12px;align-items:start}.admin-main>.admin-help{font-size:.82rem}.admin-place-image{height:180px}}
.gallery-editor-preview{margin-bottom:24px;border-radius:14px;overflow:hidden;background:#eef2e8}.gallery-editor-preview img{display:block;width:100%;max-height:220px;object-fit:cover}.gallery-editor-preview p{padding:24px;color:var(--muted);font-size:.9rem}.gallery-editor-heading{margin:28px 0 18px;padding-top:24px;border-top:1px solid var(--border)}
#admin-body .palette-hex{padding:7px 3px;font-size:11px;min-width:0;letter-spacing:0}
/* Only the outer navigation is a sidebar. Account sections remain compact tabs. */
#admin-body nav.admin-tabs{display:flex;flex-direction:row;flex-wrap:wrap;gap:8px;position:static;padding:0 0 16px;margin:0 0 24px;background:none;border:0;border-bottom:1px solid var(--border);border-radius:0;overflow:visible}
#admin-body nav.admin-tabs :is(button,a[data-account-tab]){width:auto;min-height:42px;padding:10px 16px;border-radius:9px;background:#eaf0e2;color:#56694e;font-size:.85rem}#admin-body nav.admin-tabs :is(button,a[data-account-tab]).selected{background:var(--green);color:white}
#modal:has(#gallery-edit),#modal:has(#news-form){width:min(1120px,calc(100vw - 40px));max-width:1120px;max-height:calc(100dvh - 40px);padding:28px}
.editor-columns{display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:start}.editor-columns>div{min-width:0}.editor-columns .gallery-editor-heading{margin:0 0 18px;padding:0;border:0}.editor-columns .gallery-editor-preview img{max-height:170px}.editor-columns #gallery-capture{margin-top:18px}#news-form .news-bodies textarea{min-height:280px;resize:vertical}#news-form .two-column{display:grid;grid-template-columns:1fr 1fr;gap:24px}
@media(max-width:720px){#modal:has(#gallery-edit),#modal:has(#news-form){width:calc(100vw - 20px);padding:20px;max-height:calc(100dvh - 20px)}.editor-columns,#news-form .two-column{grid-template-columns:1fr}.editor-columns{gap:24px}#admin-body nav.admin-tabs{gap:6px}#admin-body nav.admin-tabs :is(button,a[data-account-tab]){padding:10px 12px}}
.log-level-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.log-level-tabs button{padding:10px 15px;background:#edf2e7;border-radius:9px;color:#4d6248}.log-level-tabs button[aria-pressed=true]{background:var(--green);color:white}.log-level-tabs span{margin-left:6px;font-size:.75rem;opacity:.8}.log-workspace{display:grid;grid-template-columns:minmax(230px,.8fr) minmax(0,1.2fr);gap:22px;align-items:start}.log-index{min-width:0}#logs-list{display:grid;gap:7px;max-height:620px;overflow:auto;padding:2px}.log-summary{display:block;text-align:left;width:100%;padding:13px;border:1px solid var(--border);border-left:3px solid #92a08c;background:#fafbf8;border-radius:9px;color:var(--ink)}.log-summary.log-error{border-left-color:#ad4434}.log-summary.log-warning{border-left-color:#b48e36}.log-summary[aria-pressed=true]{background:#e9f2e1;outline:2px solid var(--green);outline-offset:-2px}.log-summary span,.log-summary small{display:block;font-size:.68rem;color:#6d7968}.log-summary strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:.85rem;margin:6px 0;overflow-wrap:anywhere}.log-pagination{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:14px}.log-pagination span{font-size:.78rem;white-space:nowrap}#admin-body .log-pagination .button{padding:8px;font-size:.72rem}.log-detail{position:sticky;top:20px;background:#f5f7f0;border:1px solid var(--border);border-radius:14px;padding:20px;min-width:0;scroll-margin-top:20px}.log-detail h3{font-size:1.05rem;overflow-wrap:anywhere}.log-detail h4{font-size:.8rem;margin:24px 0 10px}.log-detail .record-actions{margin-top:18px}.log-detail .log-box{margin:0;max-height:420px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-size:.75rem;line-height:1.65}.log-retention{font-size:.74rem;color:var(--muted);margin-top:24px}
@media(max-width:1100px){.log-workspace{grid-template-columns:1fr}.log-detail{position:static}#logs-list{max-height:310px}}

/* The production palette lives alongside the other colour styles. */
.production-link{display:flex;align-items:center;justify-content:space-between;gap:20px;border-color:#d5e1ca;background:#f3f7ee}
.production-link .eyebrow{margin:0 0 8px;color:#4d7446}.production-link h2{margin:0!important}.production-link .form-message{margin:10px 0 0;max-width:550px}.production-link .button{flex-shrink:0}
@media(max-width:700px){.production-link{align-items:flex-start;flex-direction:column;gap:12px}}
/* System palettes share one editor, one count selector and one default choice. */
.system-palettes .profile-cards{align-items:start}
.system-palette{min-width:0;transition:border-color .15s}
.system-palette.is-default{border:2px solid #6f8d5d}
.system-palette>header{display:flex;flex-wrap:wrap;gap:10px;justify-content:space-between;align-items:center;padding:16px}
.palette-default{display:flex;align-items:center;gap:7px;font-size:12px;color:#3b6545;cursor:pointer}
.palette-default input{accent-color:#396947;width:17px;height:17px}
.palette-card-settings{display:grid;grid-template-columns:minmax(0,1fr) 105px;gap:12px;padding:0 16px 16px}
.palette-card-settings label{display:grid;gap:6px;font-size:12px;font-weight:600}
.palette-card-settings input,.palette-card-settings select{width:100%}
.palette-output{margin:0 16px 16px;padding:12px;border-radius:10px;background:#f0f4e9;font-size:11px;color:#526448}
.palette-output>strong{display:block;margin-bottom:9px}
.palette-output>div{display:flex;flex-wrap:wrap;gap:8px 12px}
.palette-output span{display:flex;align-items:center;gap:5px}
.palette-output i{width:13px;height:13px;border-radius:4px;border:1px solid #0002;flex-shrink:0}
.palette-card-actions{display:flex;gap:8px;flex-wrap:wrap;padding:12px 16px}
.palette-print-options{margin:0 16px 16px;border-top:1px solid #e3e9dd;padding-top:14px;font-size:12px}
.palette-print-options summary{cursor:pointer;color:#426c46;font-weight:600}
.palette-print-options .form-message{font-size:12px;margin:12px 0}
.palette-print-options small{display:block;margin-top:12px;color:#6b7765}
.personal-palette-default{background:#f0f5e9;border:1px solid #dce7cf;border-radius:12px;padding:20px;margin:16px 0 24px}
.personal-palette-default form{display:flex;gap:12px;align-items:end;flex-wrap:wrap}
.personal-palette-default label{flex:1;min-width:160px;display:grid;gap:7px;font-weight:600}
.personal-palette-default select{width:100%}
.personal-palette-default p{margin:10px 0 0;font-size:13px;color:#65735d}
@media(max-width:480px){.system-palette>header{align-items:flex-start}.palette-card-settings{grid-template-columns:minmax(0,1fr) 85px;padding:0 12px 12px;gap:8px}.system-palette>header{padding:12px}.palette-output{margin:0 12px 12px}.personal-palette-default{padding:14px}.personal-palette-default .button{width:100%}}

#admin-body .system-palette .palette-default{display:flex;flex-direction:row;align-items:center;gap:7px;font-size:12px;font-weight:500}#admin-body .system-palette .palette-default input{margin:0;width:17px;height:17px}

/* SQL feedback must wrap long database errors on mobile. */
.sql-import-error{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.85rem;max-width:100%;margin-top:12px}
#sql-import-review .notice,#sql-import-result .notice{overflow-wrap:anywhere}
#sql-import-file{max-width:100%;width:100%;padding:12px;border:1px solid var(--line);border-radius:10px}

.admin-menu-links a,.gallery-tabs a,#admin-personal [data-account-tab]{display:block;text-decoration:none;color:inherit}

/* Explain saved shades that are merged into another material at this count. */
.palette-output p{margin:10px 0 0;line-height:1.5}
.palette-field .palette-assignment{font-size:.75rem;line-height:1.5;margin:8px 0 0;color:#526448}
.palette-assignment strong{display:block;margin-bottom:4px}
.palette-assignment i{display:inline-block;width:13px;height:13px;margin-right:5px;border:1px solid #0003;border-radius:3px;vertical-align:-2px}
.palette-field.is-shared>.palette-controls>.palette-picker{border-style:dashed}

.system-palette>.filament-mode{margin:0 16px 16px}.system-palette>.filament-panel{padding:0 16px 20px}

.order-licenses{margin:24px 0;padding:20px;border:1px solid #dce5d8;border-radius:12px;background:#fff;font-size:.875rem;line-height:1.6;min-width:0}
.order-licenses h3{margin:0 0 8px}.order-licenses h4{margin:20px 0 8px;font-size:.9375rem}
.order-licenses p{margin:8px 0}.order-license-origin{color:#59704e;font-size:.8125rem}
.order-licenses .order-license-table{table-layout:fixed;white-space:normal;overflow-wrap:anywhere}
.order-license-table th,.order-license-table td{padding:12px 8px;vertical-align:top;width:50%}
.order-license-table a{color:#315d3a;text-decoration:underline;text-underline-offset:3px}
.order-license-table small{line-height:1.55;color:#57664e}
.order-license-duties{padding-left:20px;margin:8px 0 16px}.order-license-duties li{margin:8px 0}
.order-license-warning{padding:12px;border-radius:8px}
.order-licenses pre{white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:.8125rem;max-height:360px;overflow:auto}
@media(max-width:560px){.order-licenses{padding:14px}.order-license-table th,.order-license-table td{padding:10px 5px}}

/* Plain-language order guidance precedes the archived legal record. */
.order-license-verdict{padding:16px 18px;border:1px solid #e3ce95;border-left:4px solid #a57d23;border-radius:9px;background:#fff8e8;color:#654d1b;margin:16px 0}
.order-license-verdict>strong{display:block;font-size:1.0625rem;line-height:1.45}.order-license-verdict p{margin:7px 0 0}
.order-license-verdict-ready{border-color:#bed6b4;border-left-color:#42713a;background:#eff7eb;color:#2e5635}
.order-license-verdict-blocked{border-color:#e3b4ae;border-left-color:#a94838;background:#fff2ef;color:#833c31}
.order-license-scope{padding:14px 16px;margin:20px 0;background:#f1f5f7;border-radius:9px;color:#3b515a}
.order-license-scope p{margin:6px 0 0}
.order-license-explanations{display:grid;gap:12px}.order-license-explanations article{padding:14px 16px;border:1px solid #dce5d8;border-radius:9px;background:#f8faf5}
.order-license-explanations h5{margin:0;font-size:.9375rem;line-height:1.45}.order-license-explanations p{margin:7px 0}.order-license-explanations small{display:block;color:#5b6e55;overflow-wrap:anywhere}
.order-license-rights-note{color:#5e695a;font-size:.8125rem}
.order-license-record{border-top:1px solid #dce5d8;margin-top:18px;padding-top:8px}.order-license-record>summary{padding:10px 0;cursor:pointer;color:#315d3a;font-weight:650}.order-license-record>summary:focus-visible{outline:2px solid #315d3a;outline-offset:3px}
@media(max-width:560px){.order-license-verdict,.order-license-explanations article,.order-license-scope{padding:12px}.order-license-verdict>strong{font-size:1rem}}
