    *,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
    :root{--ink:#0e0e0f;--paper:#f5f2ec;--accent:#c8692a;--muted:#9a9489;--border:#d8d3c8;--ok:#4a9e6b;--panel:#ffffff75;--app-vh:100vh;--vvh:100vh;--kb-offset:0px}
    html,body{height:100%;background:var(--paper);color:var(--ink);font-family:'DM Mono',monospace;font-weight:300;overflow-x:hidden}
    body::before{content:'';position:fixed;inset:0;background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");pointer-events:none;z-index:999}
    .page{min-height:100vh;display:grid;grid-template-columns:300px 1fr}
    .menu{background:var(--ink);color:var(--paper);padding:1.2rem 0 1.2rem 1rem;display:flex;flex-direction:column;gap:1rem}
    .brand{font-family:'Cormorant Garamond',serif;font-size:1.25rem;letter-spacing:.22em;text-transform:uppercase;opacity:.9}
    .user-chip{padding:.7rem;border:1px solid #2b2b30;background:#151517}
    .user-chip .label{font-size:.62rem;letter-spacing:.12em;color:var(--muted);text-transform:uppercase;margin-bottom:.25rem}
    .user-chip .value{font-size:.84rem;letter-spacing:.02em}
    .menu-list{display:flex;flex-direction:column;gap:.2rem;padding-right:0}
    .menu-btn{display:flex;align-items:center;gap:.55rem;border:1px solid #2f2f35;border-right:none;background:#121215;color:var(--paper);padding:.72rem .75rem;font-size:.9rem;text-align:left;cursor:pointer;border-radius:8px 0 0 8px;width:100%}
    .menu-btn:hover,.menu-btn.active{border-color:#4b4b54;background:#f5f2ec;color:#111}
    .menu-btn.active .slug,.menu-btn:hover .slug{color:#5c564e}
    .menu-btn .slug{color:var(--muted);font-size:.7rem;text-transform:uppercase;letter-spacing:.08em}
    .menu-btn .arrow{font-size:.9rem;opacity:.7}
    .menu-bottom{margin-top:auto;display:flex;gap:.5rem}
    .icon-btn{flex:1;border:1px solid #34343a;background:#141417;color:var(--paper);padding:.65rem .5rem;cursor:pointer;font-size:.85rem;letter-spacing:.06em;text-transform:uppercase}
    .icon-btn:hover{background:#202025}
    .main{padding:1.2rem;display:flex;max-width:100%;overflow-x:hidden}
    .panel{position:relative;width:100%;border:1px solid var(--border);background:var(--panel);backdrop-filter:blur(2px);padding:1rem;min-height:86vh;max-width:100%;overflow-x:hidden}
    .title{font-family:'Cormorant Garamond',serif;font-size:2.1rem;margin-bottom:.2rem}
    .subtitle{font-size:.66rem;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin-bottom:1rem}
    .section{display:none}.section.active{display:block}
    .card{border:1px solid var(--border);background:#fffcf8;padding:.9rem;margin-bottom:.8rem}
    .card h3{font-size:.9rem;margin-bottom:.45rem}
    .muted{color:var(--muted);font-size:.78rem}
    .grid{display:grid;grid-template-columns:1fr 1fr;gap:.8rem}
    .list{margin-left:1rem;line-height:1.8}
    .tools-table{width:100%;border-collapse:collapse;background:#fff;border:1px solid var(--border)}
    .tools-table tr+tr td{border-top:1px solid var(--border)}
    .tools-table td{padding:.75rem .65rem;vertical-align:middle}
    .btn.is-loading{position:relative;opacity:.95;pointer-events:none}
    .spinner{display:inline-block;width:16px;height:16px;border:2px solid rgba(14,14,15,.26);border-top-color:#0e0e0f;border-radius:50%;animation:spin .8s linear infinite}
    .btn .spinner{display:inline-block;width:12px;height:12px;border:2px solid rgba(14,14,15,.28);border-top-color:#0e0e0f;border-radius:50%;animation:spin .8s linear infinite;vertical-align:-2px;margin-right:6px}
    .btn.secondary .spinner{border-color:rgba(255,255,255,.45);border-top-color:#fff}
    .lang-dot{box-shadow:0 0 0 0 rgba(200,138,44,.55)}
    .lang-dot.is-pending{animation:langPulse 1.1s ease-in-out infinite}
    @keyframes langPulse{0%{transform:scale(.9);box-shadow:0 0 0 0 rgba(200,138,44,.45)}70%{transform:scale(1.15);box-shadow:0 0 0 8px rgba(200,138,44,0)}100%{transform:scale(.9);box-shadow:0 0 0 0 rgba(200,138,44,0)}}
    .profile-doc{display:grid;gap:.6rem}
    .profile-head{display:flex;align-items:center;justify-content:space-between;padding:.55rem .65rem;border:1px solid var(--border);background:#faf8f3}
    .profile-title{font-weight:600}
    .profile-chip{font-size:.8rem;border:1px solid var(--border);padding:.15rem .4rem;background:#fff}
    .profile-sec{border:1px solid var(--border);background:#fff;padding:.7rem .75rem}
    .profile-sec h4{margin:.1rem 0 .45rem;font-size:.95rem}
    .profile-sec p{margin:.15rem 0;color:#2b2b2b;line-height:1.45}
    @keyframes spin{to{transform:rotate(360deg)}}
    .tool-title{font-weight:400;font-size:.86rem}
    .tool-sub{font-size:.7rem;color:var(--muted);margin-top:.18rem;line-height:1.35}
    .tool-actions{display:flex;align-items:center;gap:.45rem;justify-content:flex-end}
    .btn.invite{background:#efe7da;color:#2f2418;border:1px solid #d7c2a8}
    .v-sep{width:1px;height:22px;background:#d7c2a8;display:inline-block}
    .input,textarea,select{border:1px solid var(--border);background:#fff;padding:.65rem .7rem;font-family:'DM Mono',monospace;font-size:.78rem;outline:none;width:100%;border-radius:0}
    .input:focus,textarea:focus,select:focus{border-color:var(--accent)}
    .btn{border:1px solid var(--border);background:#fff;color:#111;padding:.66rem .85rem;font-family:'DM Mono',monospace;font-size:.66rem;letter-spacing:.1em;text-transform:uppercase;cursor:pointer}
    .btn.secondary{background:#0e0f11;color:#f7f3ec;border:1px solid #0e0f11}
    .btn.light{background:#fff !important;color:#111 !important;border-color:var(--border) !important}
    .btn.dark{background:#0e0f11 !important;color:#f7f3ec !important;border-color:#0e0f11 !important}
    .row{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}
    .chat{border:1px solid var(--border);background:#fffcf8;padding:1rem;min-height:50vh;max-height:62vh;overflow:auto;border-radius:6px;display:flex;flex-direction:column;gap:.6rem;margin:0}
    .org-shell{border:1px solid var(--border);background:#fff;padding:1rem;position:relative}
    .org-lines{position:absolute;inset:0;pointer-events:none;z-index:1}
    .org-lines path{stroke:#c8c0b4;stroke-width:1.5;fill:none}
    .relation-layer{position:absolute;inset:0;pointer-events:none;z-index:2}
    .rel-btn{position:absolute;width:18px;height:18px;border-radius:50%;border:1px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,.15);cursor:pointer;pointer-events:auto}
    .org-header{position:sticky;top:0;background:#fff;border-bottom:1px solid var(--border);padding:.4rem 0 .7rem;margin-bottom:.6rem;z-index:2}
    .org-title{font-family:'Cormorant Garamond',serif;font-size:1.8rem;text-transform:uppercase;text-align:center;letter-spacing:.08em}
    .layer{padding:.9rem 0 .7rem;position:relative}
    .layer + .layer{border-top:1px solid var(--border)}
    .layer-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:.5rem}
    .layer-label{font-size:.72rem;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
    .layer-add{opacity:0;transition:opacity .18s ease;display:none}
    .layer:hover .layer-add{opacity:1}
    .add-wrap{position:relative;display:inline-block}
    .add-menu{display:none;position:absolute;right:0;top:105%;background:#fff;border:1px solid var(--border);padding:.35rem;min-width:160px;z-index:5}
    .add-wrap:hover .add-menu{display:block}
    .add-menu button{display:block;width:100%;text-align:left;border:none;background:#fff;padding:.38rem .45rem;font-size:.72rem;cursor:pointer}
    .add-menu button:hover{background:#f6efe7}
    .layer-add.disabled{opacity:.45 !important;cursor:not-allowed}
    .cards{display:flex;gap:.7rem;flex-wrap:wrap;min-height:84px;padding:.2rem;border:1px dashed transparent;border-radius:8px;justify-content:center}
    .cards-grid{display:grid;grid-template-columns:repeat(5,minmax(140px,210px));justify-content:center;gap:.6rem;min-height:96px;width:100%}
    .slot{border:1px dashed #d7d1c6;border-radius:10px;min-height:128px;width:210px;background:#faf7f2;display:flex;align-items:center;justify-content:center;color:#b3aa9b;font-size:.72rem;position:relative}
    .slot .slot-plus{opacity:0;transition:opacity .15s ease;border:1px solid #d7d1c6;background:#fff;border-radius:999px;padding:.2rem .5rem;font-size:.68rem;cursor:pointer}
    .slot:hover .slot-plus{opacity:1}
    .slot-label{position:absolute;bottom:6px;font-size:.62rem;color:#b6ad9f}
    .cards.drop-over{border-color:var(--accent);background:#fff8f2}
    .empty-layer{border:1px dashed var(--border);padding:.8rem;border-radius:8px;background:#fffdf9;color:var(--muted);font-size:.8rem}
    .cta-empty{border:1px dashed var(--accent);background:#fff6ef;color:#8a4a20;padding:1rem;border-radius:10px;text-align:center;font-size:.82rem}
    .cta-empty .btn{margin-top:.55rem}
    .person-card{width:210px;border:1px solid var(--border);background:#fffcf8;border-radius:10px;padding:.5rem;cursor:grab;position:relative;z-index:3}
    .person-card.dragging{opacity:.5}
    .person-card.owner{border-color:#cba17f;box-shadow:0 0 0 2px #f8ecdf inset}
    .person-card.coach{border-color:#4d9b6f;box-shadow:0 0 0 2px #e6f4ec inset}
    .pc-name{font-weight:400;font-size:.9rem}
    .pc-badge{display:inline-block;margin-top:.22rem;padding:.1rem .35rem;border-radius:999px;font-size:.62rem;line-height:1.2;border:1px solid #4d9b6f;color:#2f6d4a;background:#ecf8f1}
    .pc-meta{font-size:.74rem;color:#6c665d;margin-top:.25rem;line-height:1.35}
    .pc-actions{display:flex;gap:.3rem;flex-wrap:wrap;margin-top:.55rem}
    .mini-btn{border:1px solid var(--border);background:#fff;padding:.25rem .4rem;font-size:.62rem;cursor:pointer}
    .mini-btn:hover{border-color:var(--accent)}
    .pc-sub{display:flex;justify-content:space-between;margin-top:.5rem;font-size:.62rem;color:var(--muted)}
    .pc-sub button{background:none;border:none;color:inherit;cursor:pointer;text-decoration:underline;font-size:.62rem}
    .ins-row{display:flex;align-items:center;gap:.35rem;margin-top:.35rem;font-size:.68rem}
    .ins-link{cursor:pointer;text-decoration:underline;color:#4b4033}
    .ins-dot,.ins-square{width:14px;height:14px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-size:10px;color:#fff}
    .ins-square{border-radius:3px}
    .ins-stop{display:inline-flex;gap:3px;align-items:center}
    .ins-stop i{width:11px;height:11px;border-radius:50%;display:inline-block;background:#ddd;border:1px solid #ccc}
    .pc-actions{display:flex;gap:.3rem;flex-wrap:wrap;margin-top:.55rem;justify-content:flex-end}
    .person-card.superior-focus{outline:2px solid var(--accent);box-shadow:0 0 0 3px #f9e7da}
    .modal{position:fixed;inset:0;background:rgba(0,0,0,.35);display:none;align-items:center;justify-content:center;z-index:2000;padding:4vh .4rem}
    .modal.show{display:flex}
#forgotPasswordModal{z-index:4500}
#legalDocModal{z-index:4500}
    .modal-box{width:min(760px,92vw);background:#fff;border:1px solid #e1d7c8;padding:.65rem;border-radius:14px;max-height:86vh;overflow:hidden;position:relative;display:flex;flex-direction:column}
    .modal-shell{border:1px solid #2b2b2f;border-radius:0;padding:1rem;overflow:auto;max-height:calc(86vh - 1.3rem);} 
    .modal-box > *{position:relative;z-index:1}
    .modal-box .tool-sub,.modal-box .muted{color:#6f675b}
    .modal-box .modal-title{color:#111}
    .modal-box .q-table,.modal-box .q-list,.modal-box .tools-table{background:#fff;color:#101012}
    .modal-box .input,.modal-box textarea,.modal-box select{background:#fff;color:#101012;border-color:#cfc6b8;border-radius:0}
    .modal-x{position:absolute;right:.48rem;top:.42rem;border:1px solid #1c1c20;background:#0e0f11;color:#f7f3ec;width:30px;height:30px;border-radius:0;cursor:pointer;font-size:18px;line-height:1;z-index:2}
    #profilesReportModal{align-items:flex-start;padding:4vh .9rem 3vh}
    #profilesReportModal .modal-box{width:min(1320px,96vw);max-height:calc(100vh - 7vh);height:calc(100vh - 7vh);margin-top:0}
    #profilesReportModal .modal-shell{max-height:none;height:100%;padding:1.2rem 1.1rem 1.9rem}
    #profilesReportModal .modal-x{top:.6rem;right:.6rem}
    #archetypeWizardModal,#archetypeQuestionnaireModal,#archetypeReportModal,#archetypeResultsListModal,
    #codeRoodWizardModal,#codeRoodQuestionnaireModal,#codeRoodReportModal,#codeRoodResultsListModal,
    #kleurdrukWizardModal,#kleurdrukQuestionnaireModal,#kleurdrukReportModal,#kleurdrukResultsListModal{
      align-items:flex-start;padding:4vh .9rem 3vh;
    }
    #archetypeWizardModal .modal-box,#archetypeQuestionnaireModal .modal-box,#archetypeReportModal .modal-box,#archetypeResultsListModal .modal-box,
    #codeRoodWizardModal .modal-box,#codeRoodQuestionnaireModal .modal-box,#codeRoodReportModal .modal-box,#codeRoodResultsListModal .modal-box,
    #kleurdrukWizardModal .modal-box,#kleurdrukQuestionnaireModal .modal-box,#kleurdrukReportModal .modal-box,#kleurdrukResultsListModal .modal-box{
      width:min(1320px,96vw);max-height:calc(100vh - 7vh);height:auto;
    }
    #archetypeWizardModal .modal-x,#archetypeQuestionnaireModal .modal-x,#archetypeReportModal .modal-x,#archetypeResultsListModal .modal-x,
    #codeRoodWizardModal .modal-x,#codeRoodQuestionnaireModal .modal-x,#codeRoodReportModal .modal-x,#codeRoodResultsListModal .modal-x,
    #kleurdrukWizardModal .modal-x,#kleurdrukQuestionnaireModal .modal-x,#kleurdrukReportModal .modal-x,#kleurdrukResultsListModal .modal-x{
      top:.6rem;right:.6rem;
    }
    .modal-title{font-family:'Cormorant Garamond',serif;font-size:1.5rem;margin-bottom:.45rem}
    .analysis-grid{display:grid;grid-template-columns:1fr 1fr;gap:.6rem;margin-top:.8rem}
    .analysis-item{border:1px solid var(--border);padding:.65rem;border-radius:8px;background:#fffcf8}
    .analysis-item h4{font-size:.8rem;margin-bottom:.35rem}
    .wizard-steps{display:flex;gap:.35rem;flex-wrap:wrap;margin:.4rem 0 .8rem}
    .wizard-pill{font-size:.62rem;border:1px solid var(--border);padding:.2rem .45rem;background:#faf7f2}
    .wizard-pill.active{border-color:var(--accent);background:#fff3ea}
    .email-row{display:flex;gap:.4rem;margin:.35rem 0}
    .q-modal-box{width:min(1100px,95vw);max-height:90vh;overflow:auto}
    #knowledgeItemModal{align-items:flex-start;padding:2vh .9rem 5vh}
    #knowledgeItemModal .modal-box{width:min(1320px,96vw);max-height:calc(100vh - 10vh);height:calc(100vh - 10vh);margin-top:0;overflow:hidden}
    #knowledgeItemModal .modal-shell{max-height:none;height:100%;padding:1.2rem 1.1rem 1.9rem;overflow:auto}
    #knowledgeItemModal .modal-title{padding-right:2.2rem;flex:0 0 auto}
    #knowledgeItemModal .modal-x{top:.6rem;right:.6rem}
    #knowledgeItemBody{padding-right:.15rem;overflow:visible;min-height:auto}
    .q-table{width:100%;border-collapse:collapse;background:#fff;border:1px solid var(--border)}
    .q-table th,.q-table td{border-top:1px solid var(--border);padding:.45rem .5rem;font-size:.74rem;vertical-align:top;line-height:1.3;word-break:normal;overflow-wrap:anywhere}
    .q-table th{background:#faf7f2;text-align:left}
    .q-select{width:88px}
    .q-list{border:1px solid var(--border);background:#fff}
    .q-item{padding:.55rem .6rem;border-top:1px solid var(--border)}
    .q-item:first-child{border-top:none}
    .q-item:nth-child(odd){background:#fff}
    .q-item:nth-child(even){background:#faf7f2}
    .q-item-text{font-size:.78rem;line-height:1.35}
    .q-choices{display:flex;align-items:center;gap:.6rem;margin-top:.42rem}
    .q-radio{display:inline-flex;align-items:center;gap:.2rem;font-size:.72rem;color:#5f584e}
    .donut-wrap{display:grid;grid-template-columns:360px 1fr;gap:1rem;align-items:start}
    .method-md{font-size:.76rem;line-height:1.5;color:#3f3a33}
    .method-md h4{font-size:.9rem;margin:.45rem 0}
    .method-md ul{margin-left:1rem}
    .me-arch-wrap{display:grid;grid-template-columns:170px 1fr;gap:.8rem;align-items:center}
    .text-link{font-size:.68rem;color:#6f5a44;text-decoration:underline;cursor:pointer;background:none;border:none;padding:0}
    .msg{max-width:85%;padding:.62rem .72rem;border-radius:8px;line-height:1.35;font-size:.82rem;white-space:pre-wrap}
    .msg.user{align-self:flex-end;background:#151516;color:#f7f3ec;border-bottom-right-radius:2px}
    .msg.assistant{align-self:flex-start;background:#efe9de;color:#101012;border-bottom-left-radius:2px}
    .msg.assistant p{margin:.2rem 0 .35rem 0}
    .msg.assistant ul{margin:.2rem 0 .45rem 0;padding:0;list-style:none}
    .msg.assistant li{margin:.15rem 0;position:relative;padding-left:1.1rem}
    .msg.assistant > ul > li::before{content:➤;position:absolute;left:0;top:.02rem;color:#5a4a37;font-size:.82rem}
    .msg.assistant ul ul > li::before{content:▸;color:#7a6a55;font-size:.78rem}
    .msg.assistant ul ul ul > li::before{content:•;color:#8f8270;font-size:.78rem}
    .msg.assistant strong{font-weight:700}
    .typing{display:inline-flex;align-items:flex-end;gap:4px;min-height:18px}
    .typing i{width:6px;height:6px;border-radius:999px;background:#7e7569;display:inline-block;animation:typingPulse 1s infinite ease-in-out}
    .typing i:nth-child(2){animation-delay:.14s}
    .typing i:nth-child(3){animation-delay:.28s}
    @keyframes typingPulse{0%,80%,100%{transform:scale(.85);opacity:.45}40%{transform:scale(1.2);opacity:1}}
    .send-round{width:40px;height:40px;border-radius:999px;border:none;background:var(--ink);color:#fff;cursor:pointer;font-size:1rem;display:inline-flex;align-items:center;justify-content:center}
    .chat-input{resize:none;min-height:40px;max-height:120px;line-height:1.35;overflow:auto}
    body.keyboard-open #page-ai .composer{z-index:25}
    body.keyboard-open #page-ai, body.keyboard-open #page-ai .card{overflow:hidden}
    body.keyboard-open{overflow:hidden}
    .ai-chat-shell{border:none !important;background:transparent !important;box-shadow:none !important}
    #page-ai .chat{border:none;background:transparent;border-radius:0}
    #page-ai .composer{border-top:none;background:transparent;padding:.55rem 0;margin-top:auto}
    #page-ai .ai-chat-shell{display:flex;flex-direction:column;height:100%}
    #page-ai .chat{flex:1;min-height:0}
    .composer{display:grid;grid-template-columns:1fr auto;gap:.55rem;padding:.75rem;border-top:1px solid var(--border);background:#fff;align-items:center}
    .auth-overlay{position:fixed;inset:0;display:none;z-index:4000;background:var(--paper)}
.auth-overlay.show{display:block}
.auth-shell{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}
.auth-dark{background:var(--ink);color:var(--paper);padding:2rem 2.2rem;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;position:relative}
.auth-dark .brand{font-size:2.3rem;letter-spacing:.28em;text-transform:uppercase}
.auth-dark-title{font-family:'Cormorant Garamond',serif;font-size:2.25rem;line-height:1.12;max-width:24ch;margin-top:1.2rem}
.auth-top-lang{display:flex;gap:.5rem;align-items:center;justify-content:flex-end;margin-top:.7rem}
.auth-top-lang label{font-size:.75rem;opacity:.9}
.auth-top-lang select{min-width:130px;padding:.45rem .55rem;border:1px solid var(--border);background:#fff;color:#111;font-family:'DM Mono','Courier New',monospace}
.auth-top-lang option{color:#111}
.auth-light{background:var(--paper);padding:2rem 2.2rem;display:flex;align-items:center;justify-content:center}
.auth-box{width:min(560px,90%);background:#fff;border:1px solid var(--border);padding:1.2rem;border-radius:12px}
.auth-title{font-family:'Cormorant Garamond',serif;font-size:2rem;margin-bottom:.2rem}
.auth-sub{font-size:.72rem;color:var(--muted);margin-bottom:.7rem;letter-spacing:.05em;text-transform:uppercase}
.auth-alert{display:none;margin:.6rem 0 .65rem;padding:.62rem .72rem;border:1px solid #d7b45a;background:#fff6dd;color:#5b460f;font-size:.82rem;text-align:left;border-radius:8px}
.auth-alert.show{display:block}
.auth-alert .icon{margin-right:.4rem}
.legal-link{color:#6b4b17;text-decoration:underline;cursor:pointer;font-weight:700}
    .auth-stack{display:grid;gap:.7rem;max-width:360px;margin:.7rem auto 0}
    .auth-center{text-align:center}
    .auth-btns{display:grid;gap:.55rem;max-width:260px;margin:.9rem auto 0}
    .auth-steps{display:none}
    .auth-step{font-size:.66rem;border:1px solid var(--border);padding:.25rem .5rem;background:#faf7f2;color:#6b6458}
    .auth-step.active{border-color:var(--accent);background:#fff4ea;color:#5a3b23}
    .auth-field{font-size:.95rem;padding:.9rem 1rem;border-radius:0;background:#fff;border:1px solid var(--border)}
    .auth-field::placeholder{color:#a79f92}
    .auth-grid-2{display:grid;grid-template-columns:1fr;gap:.7rem}
    .auth-actions{display:flex;justify-content:space-between;gap:.6rem;align-items:center;margin-top:.85rem}
    .auth-actions .btn{padding:.8rem 1.1rem;font-size:.7rem}
    .auth-role-list{display:grid;gap:.55rem}
    .auth-role-option{border:1px solid var(--border);background:#fff;padding:.8rem .9rem;border-radius:8px;cursor:pointer;font-size:.86rem}
    .auth-role-option:hover{border-color:var(--accent);background:#fff7f0}
    .auth-role-option.active{border-color:var(--accent);background:#fff1e6}
    .auth-role-title{font-weight:500;font-size:.9rem;margin-bottom:.2rem}
    .auth-role-sub{font-size:.76rem;color:#6f675c}
    .auth-checklist{display:grid;gap:.55rem}
    .auth-check{display:flex;align-items:flex-start;gap:.55rem;border:1px solid var(--border);background:#fff;padding:.7rem .8rem;border-radius:8px;font-size:.82rem}
    .auth-check input{margin-top:.1rem}
    #authViewRegister{position:relative}
    .wizard-translate-overlay{position:absolute;inset:0;background:rgba(255,252,248,.94);display:none;align-items:center;justify-content:center;z-index:40;padding:1rem}
    .wizard-translate-overlay.show{display:flex}
    .wizard-translate-box{display:flex;flex-direction:column;align-items:center;gap:.7rem;text-align:center;color:#4a4237}
    .wizard-translate-spinner{width:44px;height:44px;border:3px solid rgba(200,138,44,.25);border-top-color:#c48a2c;border-radius:50%;animation:spin .9s linear infinite}
    .auth-org-hint{font-size:.74rem;color:#6f675c;margin-top:.45rem}
    .setup-overlay{position:fixed;inset:0;background:rgba(10,10,10,.55);display:none;align-items:center;justify-content:center;z-index:5000}
    .setup-overlay.show{display:flex}
    .setup-box{width:min(560px,92vw);background:#fff;border:1px solid var(--border);padding:1.2rem;border-radius:12px;text-align:center}
    .setup-title{font-family:'Cormorant Garamond',serif;font-size:1.7rem;margin-bottom:.7rem}
    .setup-sub{font-size:.82rem;color:#6f675c}
    .setup-ring{width:140px;height:140px;margin:.8rem auto 1rem;border-radius:50%;border:10px solid #ecd8c6;border-top-color:var(--accent);animation:spin 1.1s linear infinite}
    @keyframes spin{to{transform:rotate(360deg)}}

    body.auth-only .page{display:none}
    body.auth-only{overflow:hidden}
    @media (max-width:900px){
      html,body{height:100%;overflow:hidden}
      .auth-shell{grid-template-columns:1fr;grid-template-rows:auto 1fr}
      .auth-dark{padding:1rem 1rem .9rem;min-height:132px}
      .auth-dark .brand{font-size:1.2rem;letter-spacing:.18em}
      .auth-dark-title{font-size:1.35rem}
      .auth-top-lang{justify-content:flex-start}
      .auth-top-lang select{min-width:118px}
      .auth-light{padding:1rem;align-items:flex-start}
      .auth-box{border-radius:10px;padding:1rem}
      .auth-grid-2{grid-template-columns:1fr}
      .page{grid-template-columns:1fr;grid-template-rows:auto 1fr}
      .menu{padding:.8rem 1rem;display:grid;grid-template-columns:1fr auto;align-items:center;gap:.6rem}
      .brand{margin:0;font-size:1.15rem;letter-spacing:.16em}
      .user-chip{display:none}
      #mobileMenuToggle{display:inline-flex;align-items:center;justify-content:center;border:1px solid #34343a;background:#141417;color:var(--paper);width:40px;height:36px;cursor:pointer;font-size:1.1rem}
      .menu-list,.menu-bottom{display:none}
      .menu.open .menu-list{display:flex;grid-column:1 / -1;flex-direction:column;gap:.35rem;padding-top:.35rem}
      .menu.open .menu-bottom{display:flex;grid-column:1 / -1;gap:.5rem;padding-top:.3rem}
      .menu-btn{border-right:1px solid #2f2f35;border-radius:8px}
      .menu-bottom .icon-btn{flex:1}
      .main{padding:.4rem;overflow-x:hidden}.panel{height:calc(var(--app-vh) - 72px);min-height:0;overflow:hidden;overflow-x:hidden}.grid{grid-template-columns:1fr}
      .section.active{height:100%;overflow:auto;overflow-x:hidden}
      .input,textarea,select{font-size:16px;max-width:100%}
      .tools-table{display:block;overflow-x:auto;max-width:100%}
      #page-team .org-shell{padding:.65rem}
      #page-team .org-lines, #page-team #relationLayer{display:none !important}
      #page-team .layer{padding:.35rem 0}
      #page-team .cards, #page-team .cards-grid{display:flex;flex-direction:column;gap:.4rem;min-height:0;width:100%}
      #page-team .person-card, #page-team .slot{width:100%;max-width:none}
      #page-team .slot{min-height:68px}
      #page-team .slot .slot-plus{opacity:1}
      #page-team .slot-label{font-size:.56rem;bottom:4px}
      #page-team .layer .slot{display:none}
      #page-team .layer .cards .slot:first-of-type,
      #page-team .layer .cards-grid .slot:first-of-type{display:flex}
      #page-team .layer-head{align-items:flex-start;gap:.3rem;flex-direction:column;display:none}
      #page-team .layer.layer-has-cards .layer-head{display:flex}
      #page-tools .tools-table, #page-tools .tools-table tbody, #page-tools .tools-table tr, #page-tools .tools-table td,
      #page-profiles .tools-table, #page-profiles .tools-table tbody, #page-profiles .tools-table tr, #page-profiles .tools-table td{display:block;width:100%}
      #page-tools .tools-table tr, #page-profiles .tools-table tr{border-top:1px solid var(--border);padding:.45rem .2rem}
      #page-tools .tools-table td, #page-profiles .tools-table td{border-top:none;padding:.35rem .45rem}
      #page-tools .tool-actions, #page-profiles .tool-actions{display:grid;grid-template-columns:1fr;gap:.45rem;justify-content:stretch}
      #page-tools .tool-actions .btn, #page-profiles .tool-actions .btn{width:100%}
      #page-tools .tool-actions .v-sep, #page-profiles .tool-actions .v-sep{display:none}
      #page-ai{padding:0}
      #page-ai .card{height:100%;display:flex;flex-direction:column}
      #page-ai .chat{flex:1;max-height:none;min-height:0;padding:.7rem;overflow:auto}
      #page-ai .composer{padding:.55rem;background:#fff;position:fixed;left:.4rem;right:.4rem;bottom:.4rem;z-index:20;border-top:1px solid var(--border)}
      #page-ai .card{padding-bottom:72px !important}

      /* Mobile modal/layout hardening */
      .modal{padding:6vh .4rem}
      .modal-box{width:100%;max-width:100%;max-height:92vh}
      .q-modal-box{width:100%;max-width:100%;max-height:92vh}
      .modal-shell{max-height:calc(92vh - 1.2rem);overflow:auto;overflow-x:hidden}
      .modal-shell *{max-width:100%}
      #knowledgeItemModal{align-items:flex-start;padding:2vh .4rem 6vh}
      #knowledgeItemModal .modal-box{width:100%;max-width:100%;max-height:calc(100vh - 11vh);height:calc(100vh - 11vh)}
      #knowledgeItemModal .modal-shell{max-height:none;height:100%;padding:.8rem;overflow:auto}
      #knowledgeItemBody{min-height:auto;overflow:visible}
      .donut-wrap{grid-template-columns:1fr !important}
      #archetypeDonut,#kleurdrukDonut{width:100% !important;height:auto !important;max-width:320px}
      #codeRoodStoplight{width:100% !important;max-width:260px}
      .q-table{display:table;width:100%;table-layout:fixed;border-collapse:collapse}
      .q-table th,.q-table td{white-space:normal;word-break:normal;overflow-wrap:anywhere}
      .q-table th:nth-child(1), .q-table td:nth-child(1){width:42%}
      .q-table th:nth-child(2), .q-table td:nth-child(2){width:18%;text-align:right}
      .q-table th:nth-child(3), .q-table td:nth-child(3){width:40%}
      .donut-wrap{justify-items:center;align-items:start;gap:.75rem}
      .donut-wrap > div:first-child{display:flex;justify-content:center;width:100%}
      .donut-wrap > div:last-child{width:100%}
    }
    @media (min-width:901px){
      .auth-grid-2{grid-template-columns:1fr 1fr}
      #mobileMenuToggle{display:none}
      .page{height:100vh;overflow:hidden}
      .menu{height:100vh;overflow:hidden}
      .main{height:100vh;overflow:hidden}
      .panel{height:100%;min-height:0;display:flex;flex-direction:column}
      .section.active{height:100%;overflow:auto}
      #page-ai.section.active{overflow:hidden}
    }
  
