/* Shared clear-glass theme. Keep native layout, business visibility and permissions intact. */
:root {
  --bg:#e8eff8; --card:rgba(255,255,255,.38); --line:rgba(255,255,255,.75);
  --fg:#253851; --dim:#5f718c; --acc:#547bdc; --sidebar:240px;
  --glass:linear-gradient(135deg,#ffffff50 0%,#ffffff24 45%,#ffffff3c 100%);
  --glass-shadow:0 12px 32px #3145660b,inset 0 1px 0 #ffffffd9,inset 1px 0 0 #ffffff66;
}
body,.login-page {
  background:radial-gradient(ellipse at 85% 14%,#cdd7f5 0,transparent 47%),
    radial-gradient(ellipse at 22% 80%,#c8e5e2 0,transparent 52%),
    linear-gradient(125deg,#e9f1fa,#dee7f5 52%,#ede9f6);
  background-attachment:fixed;
}
nav.mfnav {
  inset:16px auto 16px 16px; width:224px; padding:27px 16px 18px;
  border:1px solid #ffffff9c; border-radius:24px; background:var(--glass);
  box-shadow:var(--glass-shadow); gap:3px;
}
.nav-brand {padding:0 9px 24px;gap:12px;font-size:16px;color:#2d405d}
.brand-mark {
  width:40px;height:40px;border-radius:13px;
  background:linear-gradient(140deg,#779bf4,#597ce4);box-shadow:0 5px 12px #6485de30;
}
.nav-group-label {padding:17px 13px 7px;color:#74859f}
nav.mfnav a {padding:11px 14px;border:1px solid transparent;border-radius:11px;color:#5f728e;transition:background .2s,color .2s,box-shadow .2s}
nav.mfnav a:hover {background:#ffffff65;color:#4766a2}
nav.mfnav a.on {
  background:linear-gradient(105deg,#ffffffa0,#eef3ff60);border-color:#fff;
  color:#5277d5;box-shadow:0 4px 12px #7896cc0a;
}
.nav-footer {border-top:1px solid #ffffffa0;margin-top:auto;padding:18px 10px 0;color:#7084a2}
body>header {
  top:16px;left:280px;right:40px;height:64px;padding:0 22px;
  background:var(--glass);border:1px solid #ffffffbf;
  border-right-color:#ffffff70;border-bottom-color:#ffffff70;border-radius:20px;
  box-shadow:var(--glass-shadow);
}
body>header h1 {color:#566b88;font-size:13px}
body>header .backlink {background:#ffffff70;border:1px solid #ffffffa0;border-radius:9px;padding:7px 12px}
.wrap {margin-left:240px;max-width:1700px;padding:120px 40px 52px}
.page-intro {margin-bottom:28px}
.page-intro h2 {font-size:30px;font-weight:650;color:#263a55}
.eyebrow {color:#6c81a0;font-size:10px;letter-spacing:1px}
.page-description {color:#60748f;font-size:12px}
.workspace-label {background:#ffffff50;border:1px solid #ffffffa0;border-radius:9px;color:#6e82a0}
.card {
  background:var(--glass);border:1px solid #ffffff9c;border-bottom-color:#ffffff65;
  border-radius:20px;padding:24px;box-shadow:var(--glass-shadow);
}
.subnav {
  top:88px;padding:5px;gap:4px;min-height:46px;border:1px solid #ffffff9c;
  border-radius:12px;background:#eaf0faed;margin-bottom:24px;
}
.subnav a {border:1px solid transparent;border-radius:8px;padding:8px 15px;color:#71839f;transition:background .2s,color .2s,box-shadow .2s}
.subnav a.on {background:#ffffffcc;border-color:#ffffffd0;color:#5277d5;box-shadow:0 3px 10px #586eaa0b}
.subnav a:hover {background:#ffffff70}
h2 {color:#344b6a}
button {
  border-radius:10px;background:linear-gradient(125deg,#6b8fee,#5378dd);
  box-shadow:0 4px 12px #597edf20;
  transition:background .2s,box-shadow .2s,transform .2s;
}
button:hover:not(:disabled) {filter:none;box-shadow:0 6px 18px #597edf35;transform:translateY(-1px)}
button:active:not(:disabled) {transform:translateY(0)}
button.ghost {background:#ffffff85;border:1px solid #ffffffd0;color:#526e99;box-shadow:none}
input:not([type=checkbox]):not([type=radio]),select,textarea {
  background:#ffffffb0;border:1px solid #ffffffd9;border-radius:9px;color:#304967;
  transition:border-color .2s,box-shadow .2s;
}
input::placeholder,textarea::placeholder {color:#788ca8}
input:focus,textarea:focus,select:focus {border-color:#7c9ceb;box-shadow:0 0 0 3px #638bea16}
input[type=file] {max-width:100%}
input[type=file]::file-selector-button {border:1px solid #ffffffd0;border-radius:6px;background:#e9f0ff;color:#5275b5;padding:5px 9px;margin-right:10px;cursor:pointer}
#list,#preview {max-width:100%;overflow-x:auto}
table {background:#ffffffa6;border:1px solid #ffffffbf;border-radius:12px}
th {background:#edf3fbd9;color:#607691;font-weight:550;font-size:12px}
th,td {padding:13px 15px;border-bottom-color:#dde6f17a}
tbody tr:hover td {box-shadow:inset 0 0 0 9999px #dce9ff30}
.pill {border:1px solid #ffffffa0;border-radius:7px}
.pill.ok {background:#e1f1e9;color:#3c8267}
.pill.warn {background:#fbefda;color:#956d2a}
.pill.bad {background:#fbe6e7;color:#ab4650}
#log {background:#ffffffa6;border-color:#ffffffd0;color:#526c8c;border-radius:12px}
.toast {background:#f8fbfff0;border-color:white;border-radius:12px;box-shadow:0 10px 32px #31456615;animation:purchase-toast-in .2s ease-out}
section[data-tab].on {animation:purchase-tab-in .2s ease-out}
@keyframes purchase-tab-in {from{opacity:.3;translate:0 4px}to{opacity:1;translate:0 0}}
@keyframes purchase-drawer-in {from{opacity:0;translate:35px 0}to{opacity:1;translate:0 0}}
@keyframes purchase-toast-in {from{opacity:0;translate:0 8px}to{opacity:1;translate:0 0}}
@media(min-width:1800px) {.wrap{margin-left:240px;margin-right:auto;max-width:1700px}}
@media(max-width:1050px) {
  :root{--sidebar:200px} nav.mfnav{width:184px;padding:24px 12px}
  .nav-brand{font-size:13px;gap:8px;padding-inline:4px}.brand-mark{width:34px;height:34px}
  body>header{left:222px;right:22px}.wrap{margin-left:200px;padding:112px 22px 40px}
}
@media(max-width:760px) {
  :root{--sidebar:0px}
  nav.mfnav{position:relative;inset:auto;width:auto;margin:10px 12px 0;padding:8px;flex-direction:row;align-items:center;gap:4px;border-radius:14px;overflow-x:auto;border:1px solid #ffffffa0}
  nav.mfnav a{padding:9px 12px;flex-shrink:0;font-size:12px}
  .nav-brand,.nav-group-label,.nav-footer{display:none}
  body>header{position:relative;inset:auto;height:auto;min-height:64px;margin:12px 16px 0;padding:14px 16px;flex-wrap:wrap;background:var(--glass);border-radius:18px}
  .wrap{margin:0;padding:24px 16px 44px}.page-intro h2{font-size:26px}
  .subnav{top:0;flex-wrap:nowrap;overflow-x:auto;padding:4px;border-radius:10px}
  .subnav a{padding:9px 12px;flex-shrink:0}.card{padding:16px;border-radius:16px}
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}

/* Each dialog retains its native width, placement and close semantics. */
dialog,.modal .box {
  background:linear-gradient(125deg,#f7fbfff5,#e3edf5f0 48%,#f4effbf5);
  border:1px solid #ffffffcf;border-radius:20px;color:var(--fg);
  box-shadow:0 20px 65px #233b6b24;
}
dialog {max-height:90dvh;overflow:auto}
dialog::backdrop {background:#26395c30}
dialog[open],.modal.on .box {animation:workspace-dialog-in .22s cubic-bezier(.2,.8,.2,1)}
#edit_modal>.card {background:linear-gradient(125deg,#f7fbfff5,#e3edf5f0 48%,#f4effbf5)!important}
#edit_modal[style*="flex"]>.card {animation:workspace-dialog-in .22s ease-out}
.login-page .box {
  background:var(--glass);border:1px solid #ffffffbf;border-radius:24px;
  box-shadow:var(--glass-shadow);color:var(--fg);
}
.login-brand {background:linear-gradient(140deg,#779bf4,#597ce4);box-shadow:0 5px 12px #6485de30}
.login-page input[type=password],.login-page input[type=text] {background:#ffffffb0}
.catalog-glass>header {position:static;height:auto;min-height:88px;padding:18px;border-radius:14px;gap:18px}
.catalog-glass>header h1 {font-size:26px}
.catalog-glass .panel,.catalog-glass .stat {background:var(--glass);border:1px solid #ffffffbf;box-shadow:var(--glass-shadow);border-radius:16px}
.catalog-glass .row {background:#ffffff90;color:var(--fg);border-color:#ffffffbf;box-shadow:none}
.catalog-glass .row:hover,.catalog-glass .row[aria-pressed=true] {background:#e4edff;border-color:#91abe3}
.catalog-glass nav button {background:#ffffffa0;color:#526e99;border-color:white;box-shadow:none}
.catalog-glass button:disabled {cursor:not-allowed}
.catalog-glass .badge {background:#e5edff;color:#5475b8}
.catalog-glass :where(input,select,textarea):focus {outline-color:#91abe3}
@keyframes workspace-dialog-in {from{opacity:0;translate:0 9px;scale:.985}to{opacity:1;translate:0 0;scale:1}}
@media(max-width:760px) {.catalog-glass>header{margin:0;flex-wrap:wrap}.catalog-glass>header h1{font-size:23px}}
@media(prefers-reduced-motion:reduce) {*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
