.fl-workspace { --fl-surface: var(--admin-panel, var(--admin-panel-bg, #111b30)); --fl-bg: var(--admin-field, var(--admin-input-bg, #0c1424)); --fl-border: var(--admin-border, var(--admin-border-color, #2a3650)); --fl-text: var(--primary-text-color, var(--admin-text-primary, #edf2ff)); --fl-muted: var(--admin-soft, var(--admin-text-secondary, #a9b8d1)); color: var(--fl-text); font-size: 14px; min-width: 0; }
.fl-discovery { margin:16px 0; padding:18px; border:1px solid var(--fl-border); border-radius:14px; background:var(--fl-surface); }.fl-discovery .fl-field { margin:14px 0; }.fl-upload[aria-disabled=true] { opacity:.5; }.fl-workspace .fl-upload { display:inline-flex; align-items:center; min-height:42px; margin-top:10px; }
.fl-workspace * { box-sizing: border-box; }
.fl-workspace button, .fl-workspace input, .fl-workspace select, .fl-workspace textarea { font: inherit; }
.fl-workspace button, .fl-upload { border: 1px solid var(--fl-border); border-radius: 10px; background: var(--fl-bg); color: var(--fl-text); padding: 10px 14px; cursor: pointer; }
.fl-workspace button:disabled { opacity: .45; cursor: not-allowed; }
.fl-workspace :focus-visible { outline: 2px solid #40c9ff; outline-offset: 3px; }
.fl-heading, .fl-asset-heading, .fl-card-heading, .fl-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.fl-heading { margin-bottom: 24px; }
.fl-heading h2 { margin: 4px 0 8px; font-size: 30px; letter-spacing: -.8px; }
.fl-heading p, .fl-card p, .fl-empty p { color: var(--fl-muted); line-height: 1.65; }
.fl-eyebrow { font-size: 11px; letter-spacing: 1.6px; color: #54c7ee; font-weight: 700; }
.fl-contract, .fl-shared { font-size: 11px; color: var(--fl-muted); border: 1px solid var(--fl-border); padding: 6px 10px; border-radius: 20px; }
.fl-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; align-items: start; }
.fl-catalogue, .fl-editor { border: 1px solid var(--fl-border); border-radius: 18px; background: var(--fl-surface); overflow: hidden; min-width: 0; }
.fl-catalogue { padding: 16px 10px 10px; }
.fl-catalogue > label { display: flex; justify-content: space-between; margin: 0 8px 12px; font-weight: 600; }
.fl-workspace input:not([type=checkbox]):not([type=file]), .fl-workspace textarea, .fl-workspace select { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid var(--fl-border); border-radius: 9px; background: var(--fl-bg); color: var(--fl-text); }
.fl-catalogue > input { margin-bottom: 12px; }
.fl-assets { max-height: 780px; overflow: auto; }
.fl-workspace .fl-asset { width: 100%; display: flex; align-items: flex-start; gap: 12px; text-align: left; border-color: transparent; background: transparent; padding: 14px 10px; margin: 3px 0; }
.fl-workspace .fl-asset.selected { background: rgba(101, 99, 255, .13); border-color: #6563ff; }
.fl-monogram { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; border-radius: 12px; background: #203453; color: #a9dcff; font-size: 12px; font-weight: 700; }
.fl-asset small { display: block; margin: 4px 0 9px; color: var(--fl-muted); }
.fl-statuses { display: flex; flex-wrap: wrap; gap: 6px; }
.fl-statuses i { font-size: 10px; font-style: normal; color: #efb3bb; }
.fl-statuses i[data-on=true] { color: #6bd8b8; }
.fl-asset-heading { padding: 22px 24px; }
.fl-asset-heading h3 { font-size: 24px; margin: 5px 0 0; }
.fl-asset-heading small { font-size: 13px; color: var(--fl-muted); margin-left: 8px; }
.fl-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.fl-upload { position: relative; margin: 0; overflow: hidden; }
.fl-upload input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.fl-tabs { display: flex; gap: 4px; overflow: auto; padding: 0 20px; border-bottom: 1px solid var(--fl-border); }
.fl-tabs { scrollbar-width:thin; scrollbar-color:var(--fl-border) transparent; }.fl-tabs::-webkit-scrollbar { height:4px; }.fl-tabs::-webkit-scrollbar-thumb { background:var(--fl-border); border-radius:8px; }.fl-tabs::-webkit-scrollbar-track { background:transparent; }.fl-upload:focus-within { outline:2px solid #40c9ff; outline-offset:3px; }.fl-upload[aria-disabled=true] { cursor:not-allowed; }
.fl-workspace .fl-tabs button { white-space: nowrap; border: 0; border-radius: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--fl-muted); padding: 15px 12px; }
.fl-workspace .fl-tabs button[aria-current=page] { border-bottom-color: #8481ff; color: var(--fl-text); }
.fl-content { padding: 24px; min-height: 450px; }
.fl-card { margin-bottom: 20px; }
.fl-card + .fl-card { padding-top: 22px; border-top: 1px solid var(--fl-border); }
.fl-card h4 { font-size: 16px; margin: 0 0 18px; }
.fl-card-heading { margin-bottom: 18px; }
.fl-card-heading h4 { margin: 0; }
.fl-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.fl-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fl-field label { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fl-field label > span { font-size: 10px; color: var(--fl-muted); }
.fl-field small { font-size: 11px; color: var(--fl-muted); }
.fl-field textarea { resize: vertical; }
.fl-field input:disabled { opacity: .6; }
.fl-toggle { min-height: 42px; }
.fl-toggle input, .fl-confirm input { width: 18px; height: 18px; accent-color: #7774ff; }
.fl-field .fl-toggle span { font-size: 13px; color: var(--fl-text); }
.fl-notice { border: 1px solid #37617b; color: var(--fl-text); background: rgba(57, 132, 175, .12); padding: 14px 16px; border-radius: 10px; margin-bottom: 16px; white-space: pre-wrap; line-height: 1.6; }
.fl-error { border-color: #a74d62; }
.fl-footer { position: sticky; bottom: 0; background: var(--fl-surface); padding: 16px 24px; border-top: 1px solid var(--fl-border); z-index: 1; }
.fl-footer > span { font-size: 12px; color: var(--fl-muted); }
.fl-workspace .fl-primary { background: #6458e8; border-color: #8174ff; color: #fff; }
.fl-empty { padding: 50px 24px; text-align: center; color: var(--fl-muted); }
.fl-diff > div { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--fl-border); overflow-wrap: anywhere; }
.fl-diff del { color: #edb1b9; }.fl-diff ins { color: #79d9ba; text-decoration: none; }
.fl-confirm { display: flex; align-items: flex-start; gap: 10px; margin: 20px 0; line-height: 1.6; }
.fl-workspace pre { max-height: 350px; overflow: auto; background: var(--fl-bg); color: var(--fl-text); border-radius: 10px; padding: 16px; }
.fl-logo { display: block; width: 96px; height: 96px; object-fit: contain; margin-top: 16px; }
.fl-explorer-test { display:grid; gap:10px; border:1px solid var(--fl-border); border-radius:12px; padding:14px; margin-top:12px; min-width:0; }
.fl-explorer-test code { white-space:normal; overflow-wrap:anywhere; font-size:12px; }
.fl-explorer-test label { display:flex; gap:8px; align-items:flex-start; }
.fl-explorer-test a { color:#54c7ee; }
.fl-check-history { max-height:320px; overflow:auto; margin-top:12px; border:1px solid var(--fl-border); border-radius:12px; }
.fl-check-history table { width:100%; min-width:540px; table-layout:fixed; border-collapse:collapse; font-size:12px; }
.fl-check-history th { position:sticky; top:0; background:var(--fl-bg); z-index:1; text-align:left; }
.fl-check-history th,.fl-check-history td { padding:10px; border-bottom:1px solid var(--fl-border); overflow-wrap:anywhere; }
[data-theme=light] .fl-workspace, body.light .fl-workspace { --fl-surface: #fff; --fl-bg: #f6f8fc; --fl-border: #dce3ed; --fl-text: #1a2942; --fl-muted: #5c6d84; }
[data-theme=light] .fl-workspace .fl-statuses i, body.light .fl-workspace .fl-statuses i, [data-theme=light] .fl-workspace .fl-diff del, body.light .fl-workspace .fl-diff del { color: #a02743; }
[data-theme=light] .fl-workspace .fl-statuses i[data-on=true], body.light .fl-workspace .fl-statuses i[data-on=true], [data-theme=light] .fl-workspace .fl-diff ins, body.light .fl-workspace .fl-diff ins { color: #167459; }
body.light-mode .fl-workspace { --fl-surface:#fff; --fl-bg:#f6f8fc; --fl-border:#dce3ed; --fl-text:#1a2942; --fl-muted:#5c6d84; }
body.light-mode .fl-workspace .fl-statuses i, body.light-mode .fl-workspace .fl-diff del { color:#a02743; }
body.light-mode .fl-workspace .fl-statuses i[data-on=true], body.light-mode .fl-workspace .fl-diff ins { color:#167459; }
body.light-mode .fl-workspace .fl-eyebrow, body.light-mode .fl-workspace .fl-explorer-test a { color:#087494; }
/* Match the shared admin-button specificity: active selection must remain
   distinct from hover, in both themes and in lazy-loaded admin sections. */
.admin-control-center .admin-control-center__content .fl-workspace .fl-asset.selected { background:rgba(101,99,255,.13); border-color:#8174ff; box-shadow:inset 3px 0 0 #8174ff; }
.admin-control-center .admin-control-center__content .fl-workspace .fl-tabs button[aria-current=page] { background:rgba(101,99,255,.16); border-color:#8174ff; color:var(--fl-text); box-shadow:inset 0 -2px 0 #8174ff; }
.admin-control-center .admin-control-center__content .fl-workspace button.fl-primary:not(:disabled) { background:#6458e8; border-color:#8174ff; color:#fff; }
.admin-control-center .fl-workspace .fl-heading h2 { font-size:26px; line-height:1.2; margin:6px 0; }
@media (max-width:760px) { .admin-control-center .fl-workspace .fl-heading h2 { font-size:22px; } }
/* Shared admin table counters must retain contrast in the real light theme. */
body.light-mode .admin-control-center .chip { color:#24334a; background:#edf2fc; border:1px solid #d7deef; }
.admin-control-center .section-block .row-main { display:flex; flex-direction:column; align-items:flex-start; gap:3px; }
@media (max-width: 1100px) { .fl-layout { grid-template-columns: 230px minmax(0, 1fr); }.fl-asset-heading, .fl-footer { align-items: flex-start; flex-direction: column; } }
@media (max-width: 760px) { .fl-heading { align-items: flex-start; flex-direction: column; }.fl-layout { grid-template-columns: minmax(0, 1fr); }.fl-assets { max-height: 230px; }.fl-fields { grid-template-columns: minmax(0, 1fr); }.fl-content { padding: 18px; }.fl-diff > div { grid-template-columns: minmax(0, 1fr); }.fl-card-heading { align-items: flex-start; flex-direction: column; }.fl-footer { position: static; } }
