/* AXIOM 9.5.2 — Studio UX Professional */
:root{--ax-primary:#2457d6;--ax-primary-dark:#173b96;--ax-accent:#ef7d21;--ax-success:#16865d;--ax-danger:#c83a4a;--ax-bg:#f3f6fb;--ax-surface:#fff;--ax-surface-2:#f8faff;--ax-border:#dce4ef;--ax-text:#1d2a3a;--ax-muted:#68778b;--ax-radius:16px;--ax-shadow:0 12px 34px rgba(26,48,84,.09)}
.axiom-studio-page,.axiom-studio{color:var(--ax-text)}
.axiom-studio-page *,.axiom-studio *{box-sizing:border-box}
.ax-studio-shell{display:grid;gap:16px}
.ax-topbar{position:sticky;top:0;z-index:25;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px;background:rgba(255,255,255,.96);backdrop-filter:blur(14px);border:1px solid var(--ax-border);border-radius:var(--ax-radius);box-shadow:0 7px 24px rgba(22,48,88,.07)}
.ax-brandline{display:flex;align-items:center;gap:12px}.ax-brandmark{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:linear-gradient(135deg,var(--ax-primary),#6c83ee);color:#fff;font-weight:800}.ax-brandline h1{font-size:1.25rem;margin:0}.ax-brandline small{display:block;color:var(--ax-muted);margin-top:2px}
.ax-top-actions{display:flex;gap:8px;flex-wrap:wrap}.ax-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:8px 13px;border:1px solid var(--ax-border);border-radius:11px;background:#fff;color:var(--ax-text);font-weight:700;text-decoration:none;cursor:pointer}.ax-btn:hover{border-color:#b5c6e3;background:#f7f9ff}.ax-btn-primary{background:var(--ax-primary);border-color:var(--ax-primary);color:#fff}.ax-btn-primary:hover{background:var(--ax-primary-dark);color:#fff}.ax-btn-accent{background:var(--ax-accent);border-color:var(--ax-accent);color:#fff}.ax-btn-icon{width:40px;padding:0}.ax-btn[disabled]{opacity:.55;cursor:not-allowed}
.ax-status-dot{width:8px;height:8px;border-radius:50%;background:var(--ax-success);box-shadow:0 0 0 4px rgba(22,134,93,.11)}
.ax-contextbar{display:flex;align-items:end;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 16px;background:var(--ax-surface);border:1px solid var(--ax-border);border-radius:14px}.ax-context-fields{display:flex;gap:10px;flex-wrap:wrap}.ax-context-fields label{display:grid;gap:5px;color:var(--ax-muted);font-size:.78rem;font-weight:700}.ax-context-fields select{min-width:210px}
.ax-workbench{display:grid;grid-template-columns:270px minmax(520px,1fr) 310px;gap:14px;align-items:start;min-height:760px}.ax-panel{background:var(--ax-surface);border:1px solid var(--ax-border);border-radius:var(--ax-radius);box-shadow:var(--ax-shadow);overflow:hidden}.ax-panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 15px;border-bottom:1px solid var(--ax-border);background:linear-gradient(180deg,#fff,#fafcff)}.ax-panel-head h2,.ax-panel-head h3{margin:0;font-size:.98rem}.ax-panel-body{padding:14px}.ax-left,.ax-right{position:sticky;top:88px;max-height:calc(100vh - 110px);overflow:auto}.ax-canvas-panel{min-width:0}
.ax-tabs{display:flex;gap:5px;padding:7px;border-bottom:1px solid var(--ax-border);background:var(--ax-surface-2)}.ax-tab{flex:1;border:0;border-radius:9px;background:transparent;padding:9px 6px;font-weight:750;color:var(--ax-muted);cursor:pointer}.ax-tab.is-active{background:#fff;color:var(--ax-primary);box-shadow:0 2px 9px rgba(22,48,88,.08)}.ax-tabpane{display:none}.ax-tabpane.is-active{display:block}
.ax-search{position:relative;margin-bottom:10px}.ax-search input{padding-left:34px}.ax-search span{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--ax-muted)}
.ax-variable-group{border:1px solid var(--ax-border);border-radius:11px;margin-bottom:9px;overflow:hidden}.ax-variable-group summary{cursor:pointer;padding:10px 11px;font-weight:800;background:#f8faff}.ax-variable-list{display:grid;gap:5px;padding:8px}.ax-token{width:100%;display:flex;align-items:center;justify-content:space-between;gap:8px;text-align:left;padding:8px 9px;border:1px solid transparent;background:#fff;border-radius:8px;cursor:pointer;color:var(--ax-text)}.ax-token:hover{background:#eef3ff;border-color:#cad7f7;color:var(--ax-primary)}.ax-token code{font-size:.72rem;color:var(--ax-muted)}
.ax-component-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.ax-component{display:grid;place-items:center;gap:5px;min-height:72px;border:1px dashed #bccbe0;border-radius:11px;background:#fbfcff;cursor:pointer;font-weight:750}.ax-component:hover{border-color:var(--ax-primary);background:#eef3ff;color:var(--ax-primary)}.ax-component span{font-size:1.25rem}
.ax-editor-meta{padding:14px;border-bottom:1px solid var(--ax-border);background:#fff}.ax-meta-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.ax-field{display:grid;gap:5px}.ax-field>span,.ax-field>label{font-size:.77rem;font-weight:800;color:var(--ax-muted)}.ax-field input,.ax-field select,.ax-field textarea,.ax-context-fields select,.ax-inspector input,.ax-inspector select,.ax-inspector textarea{width:100%;border:1px solid #cfd9e7;border-radius:10px;padding:9px 10px;background:#fff;color:var(--ax-text);font:inherit}.ax-field input:focus,.ax-field select:focus,.ax-field textarea:focus,.ax-inspector input:focus,.ax-inspector select:focus,.ax-inspector textarea:focus{outline:3px solid rgba(36,87,214,.12);border-color:var(--ax-primary)}
.ax-toolbar{position:sticky;top:0;z-index:8;display:flex;gap:5px;flex-wrap:wrap;padding:9px 12px;border-bottom:1px solid var(--ax-border);background:#f8faff}.ax-tool{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:36px;height:36px;padding:0 10px;border:1px solid #d2ddeb;border-radius:9px;background:#fff;cursor:pointer;font-weight:800}.ax-tool:hover{color:var(--ax-primary);border-color:#aebfe1}.ax-tool-separator{width:1px;background:var(--ax-border);margin:4px 3px}
.ax-canvas-viewport{padding:28px;overflow:auto;background-color:#e9edf4;background-image:linear-gradient(#dfe5ee 1px,transparent 1px),linear-gradient(90deg,#dfe5ee 1px,transparent 1px);background-size:20px 20px;min-height:650px}.ax-page{position:relative;width:794px;min-height:1123px;margin:0 auto;padding:56px;background:#fff;box-shadow:0 18px 55px rgba(16,35,64,.18);transform-origin:top center}.ax-page.is-landscape{width:1123px;min-height:794px}.ax-page:before{content:'A4';position:absolute;right:13px;top:10px;color:#b3bfce;font-size:.68rem;font-weight:800;letter-spacing:.12em}.ax-document-editor{min-height:900px;outline:0;line-height:1.55}.ax-page.is-landscape .ax-document-editor{min-height:640px}.ax-document-editor:focus{box-shadow:inset 0 0 0 2px rgba(36,87,214,.16)}.ax-document-editor table{width:100%;border-collapse:collapse}.ax-document-editor td,.ax-document-editor th{border:1px solid #8997a8;padding:7px}.signature-zone{min-height:105px;padding:12px;border:1px dashed #789;border-radius:8px;margin:14px 0}.page-break{break-after:page;border-top:2px dashed #aaa;margin:25px 0}
.ax-canvas-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 13px;border-top:1px solid var(--ax-border);background:#fff;color:var(--ax-muted);font-size:.82rem}.ax-zoom{display:flex;align-items:center;gap:8px}.ax-zoom input{width:130px}
.ax-inspector-section{border-bottom:1px solid var(--ax-border);padding:12px 14px}.ax-inspector-section:last-child{border-bottom:0}.ax-inspector-section h3{margin:0 0 10px;font-size:.82rem;text-transform:uppercase;letter-spacing:.06em;color:var(--ax-muted)}.ax-inspector{display:grid;gap:9px}.ax-two{display:grid;grid-template-columns:1fr 1fr;gap:8px}.ax-check{display:flex;align-items:center;gap:8px;font-size:.86rem}.ax-check input{width:auto}.ax-help{font-size:.76rem;color:var(--ax-muted);line-height:1.45}.ax-badge{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:999px;background:#edf3ff;color:var(--ax-primary);font-size:.73rem;font-weight:800}
.ax-preview-modal{position:fixed;inset:0;z-index:100;display:none;background:rgba(16,28,48,.72);padding:24px;overflow:auto}.ax-preview-modal.is-open{display:block}.ax-preview-frame{max-width:1100px;margin:auto;background:#fff;border-radius:16px;overflow:hidden}.ax-preview-head{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border-bottom:1px solid var(--ax-border);background:#fff}.ax-preview-body{padding:26px;background:#e7ebf2}.ax-preview-paper{width:min(794px,100%);min-height:1123px;margin:auto;padding:56px;background:#fff;box-shadow:var(--ax-shadow)}
.ax-toast-stack{position:fixed;right:20px;bottom:20px;z-index:120;display:grid;gap:8px}.ax-toast{min-width:280px;max-width:420px;padding:12px 14px;border-radius:12px;background:#17243a;color:#fff;box-shadow:0 15px 35px rgba(0,0,0,.22);animation:axIn .22s ease}.ax-toast strong{display:block;margin-bottom:2px}@keyframes axIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.ax-bottom-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.ax-list article{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid var(--ax-border)}.ax-list small{display:block;color:var(--ax-muted)}
.axiom-studio-tools>a,.axiom-studio-panel,.studio-panel{transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.axiom-studio-tools>a:hover{transform:translateY(-3px);box-shadow:var(--ax-shadow);border-color:#bdcbea}.studio-hero,.axiom-studio-hero{border-radius:var(--ax-radius)!important;box-shadow:var(--ax-shadow)!important}.studio-primary,.studio-secondary{border-radius:10px!important;min-height:40px!important}
@media(max-width:1280px){.ax-workbench{grid-template-columns:235px minmax(460px,1fr) 270px}.ax-page{transform:scale(.86);margin-bottom:-150px}.ax-page.is-landscape{transform:scale(.7);margin-bottom:-230px}}
@media(max-width:1050px){.ax-workbench{grid-template-columns:220px minmax(0,1fr)}.ax-right{grid-column:1/-1;position:static;max-height:none;display:grid;grid-template-columns:repeat(3,1fr)}.ax-inspector-section{border-right:1px solid var(--ax-border)}.ax-page{transform:scale(.8);margin-bottom:-220px}.ax-meta-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.ax-topbar{position:static;align-items:flex-start}.ax-top-actions{width:100%}.ax-topbar,.ax-contextbar{flex-direction:column}.ax-workbench{display:block}.ax-left,.ax-right{position:static;max-height:none;margin-bottom:12px}.ax-left{display:none}.ax-left.is-mobile-open{display:block}.ax-right{display:block}.ax-canvas-viewport{padding:12px;min-height:520px}.ax-page,.ax-page.is-landscape{width:794px;min-height:1123px;transform:scale(.56);transform-origin:top left;margin:0 0 -490px 0}.ax-page.is-landscape{width:1123px;min-height:794px;transform:scale(.42);margin-bottom:-430px}.ax-meta-grid,.ax-bottom-grid{grid-template-columns:1fr}.ax-context-fields,.ax-context-fields label,.ax-context-fields select{width:100%;min-width:0}.ax-top-actions .ax-btn{flex:1}.ax-toolbar{position:static}.ax-tool{min-height:44px}.ax-preview-modal{padding:8px}.ax-preview-paper{padding:24px;min-height:700px}.ax-component-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:480px){.ax-component-grid{grid-template-columns:1fr 1fr}.ax-page,.ax-page.is-landscape{transform:scale(.42);margin-bottom:-650px}.ax-page.is-landscape{transform:scale(.3);margin-bottom:-540px}.ax-brandline small{display:none}.ax-btn .ax-btn-label{display:none}.ax-zoom input{width:90px}}
@media print{body>*{visibility:hidden!important}.ax-preview-paper,.ax-preview-paper *{visibility:visible!important}.ax-preview-paper{position:absolute;inset:0;width:auto;box-shadow:none;margin:0}.ax-preview-modal{display:block!important;position:static;padding:0;background:#fff}}
