:root{--ot-ivory:#f8f7f3;--ot-white:#fff;--ot-forest:#254c43;--ot-deep:#193b32;--ot-text:#242b29;--ot-muted:#68736f;--ot-border:#e1e5e1;--ot-soft:#edf3f0;--ot-danger:#9b403b}.orni-theory-page,.orni-theory-page *{box-sizing:border-box}.orni-theory-page{margin:0;overflow-x:hidden;background:var(--ot-ivory)!important;color:var(--ot-text)}.orni-theory-page h1,.orni-theory-page h2,.orni-theory-page p{margin:0}.orni-theory-page #adminAccessLoading{min-height:100vh;align-items:center;justify-content:center;padding:24px}.theory-access{width:min(100%,30rem);padding:2rem;text-align:center;background:#fff;border:1px solid var(--ot-border);border-radius:16px}.theory-access h1{font:600 1.8rem Georgia,serif;color:var(--ot-deep)}.theory-access p{margin-top:.6rem;color:var(--ot-muted)}.theory-shell{width:min(100% - 48px,1180px);margin:auto;padding:1.7rem 0 4rem}.theory-breadcrumb{display:flex;flex-wrap:wrap;gap:.45rem;color:var(--ot-muted);font-size:.78rem}.theory-breadcrumb a{color:var(--ot-forest);text-decoration:none}.theory-back{min-height:44px;margin-top:.35rem;display:inline-flex;align-items:center;gap:.3rem;color:var(--ot-forest);font-size:.86rem;font-weight:700;text-underline-offset:4px}.theory-back svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}.theory-header{margin-top:.85rem;display:flex;align-items:flex-end;justify-content:space-between;gap:2rem}.theory-header h1{font:600 clamp(2.35rem,5vw,3.75rem)/1 Georgia,serif;letter-spacing:-.04em;color:var(--ot-deep)}.theory-header p{max-width:720px;margin-top:.65rem;color:var(--ot-muted)}.theory-stat{min-width:210px;padding:1rem 1.1rem;background:#fff;border:1px solid var(--ot-border);border-radius:14px;box-shadow:0 10px 28px rgba(36,43,41,.045)}.theory-stat span{display:block;color:var(--ot-muted);font-size:.7rem;font-weight:800;letter-spacing:.055em;text-transform:uppercase}.theory-stat strong{display:block;margin-top:.3rem;font:600 2rem/1 Georgia,serif;color:var(--ot-deep)}.theory-card{margin-top:1.6rem;background:#fff;border:1px solid var(--ot-border);border-radius:16px;box-shadow:0 14px 36px rgba(36,43,41,.045);overflow:hidden}.theory-card-header,.theory-list-header{padding:1rem 1.25rem;border-bottom:1px solid var(--ot-border)}.theory-card-header h2,.theory-list-header h2{font:600 1.55rem Georgia,serif;color:var(--ot-deep)}.theory-card-header p,.theory-list-header p{margin-top:.3rem;color:var(--ot-muted);font-size:.82rem}.theory-status{margin:.9rem 1.25rem 0;padding:.68rem .8rem;border:1px solid #cadfd4;border-radius:9px;color:#246148;background:#eaf4ef;font-size:.82rem;font-weight:700}.theory-status.is-error{color:var(--ot-danger);background:#fbefee;border-color:#efd2cf}.theory-status.is-info{color:var(--ot-forest);background:var(--ot-soft)}.theory-status[hidden]{display:none}.theory-upload-form{padding:1.1rem 1.25rem}.theory-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem}.theory-fields label>span,.theory-toolbar label>span:first-child,#editTheoryForm label>span{display:block;margin-bottom:.36rem;font-size:.74rem;font-weight:750}.orni-theory-page input,.orni-theory-page select,.orni-theory-page textarea{width:100%;min-height:44px;padding:.62rem .72rem;color:var(--ot-text);background:#fff;border:1px solid #ccd4d0;border-radius:9px;font:inherit;font-size:.84rem}.orni-theory-page input:focus,.orni-theory-page select:focus,.orni-theory-page button:focus-visible,.orni-theory-page a:focus-visible{outline:3px solid rgba(37,76,67,.17);outline-offset:2px}.theory-dropzone{min-height:125px;margin-top:.9rem;padding:1rem;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:var(--ot-forest);background:#fbfaf7;border:1.5px dashed #b9c7c2;border-radius:12px;cursor:pointer}.theory-dropzone.is-dragging{background:var(--ot-soft);border-color:var(--ot-forest)}.theory-dropzone svg{width:28px;height:28px;margin-bottom:.45rem;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}.theory-dropzone strong{font-size:.86rem}.theory-dropzone span{margin-top:.25rem;color:var(--ot-muted);font-size:.72rem}.theory-dropzone input{position:absolute;width:1px;height:1px;min-height:0;opacity:0}.theory-file-info{margin-top:.65rem;padding:.6rem .72rem;display:flex;align-items:center;justify-content:space-between;gap:.7rem;color:var(--ot-text);background:var(--ot-soft);border-radius:9px;font-size:.78rem}.theory-file-info[hidden],.theory-progress[hidden]{display:none}.theory-file-info button{min-height:36px;padding:.4rem .6rem;color:var(--ot-forest);background:#fff;border:1px solid #cad5d1;border-radius:8px;font:inherit;font-size:.74rem;font-weight:700;cursor:pointer}.theory-progress{height:6px;margin-top:.7rem;background:#e8ece9;border-radius:99px;overflow:hidden}.theory-progress span{width:0;height:100%;display:block;background:var(--ot-forest);transition:width .15s}.theory-primary{min-height:44px;margin-top:.8rem;padding:.6rem .9rem;color:#fff;background:var(--ot-forest);border:0;border-radius:9px;font:inherit;font-size:.82rem;font-weight:750;cursor:pointer}.theory-primary:disabled{opacity:.52;cursor:not-allowed}.theory-list-header{display:flex;justify-content:space-between}.theory-toolbar{padding:1rem 1.25rem;display:grid;grid-template-columns:minmax(220px,1.35fr) repeat(3,minmax(140px,.7fr));gap:.7rem;border-bottom:1px solid var(--ot-border)}.theory-search>span:last-child{position:relative;display:block}.theory-search svg{position:absolute;left:.75rem;top:50%;width:17px;height:17px;transform:translateY(-50%);fill:none;stroke:var(--ot-muted);stroke-width:1.7}.theory-search input{padding-left:2.25rem}.theory-table-wrap{overflow-x:auto}.theory-table-wrap table{width:100%;min-width:810px;border-collapse:collapse}.theory-table-wrap th{padding:.72rem 1rem;text-align:left;color:#4b5752;background:#f1f4f1;border-bottom:1px solid var(--ot-border);font-size:.69rem;letter-spacing:.05em;text-transform:uppercase}.theory-table-wrap td{padding:.78rem 1rem;border-bottom:1px solid #eceeeb;font-size:.81rem;vertical-align:middle}.theory-exam-title strong,.theory-exam-title small{display:block}.theory-exam-title strong{color:var(--ot-deep)}.theory-exam-title small{margin-top:.15rem;color:var(--ot-muted)}.theory-actions{display:flex;gap:.35rem;white-space:nowrap}.theory-actions a,.theory-actions button{min-height:38px;padding:.44rem .6rem;border-radius:8px;font:inherit;font-size:.72rem;font-weight:750;text-decoration:none;cursor:pointer}.theory-view,.theory-edit{color:var(--ot-forest);background:var(--ot-soft);border:1px solid #cad8d2}.theory-delete{color:var(--ot-danger);background:#fff;border:1px solid #e7cac7}.theory-table-state{height:160px;text-align:center;color:var(--ot-muted)}.theory-spinner{width:19px;height:19px;margin-right:.5rem;display:inline-block;vertical-align:middle;border:2px solid #d7dfdb;border-top-color:var(--ot-forest);border-radius:50%;animation:ot-spin .75s linear infinite}@keyframes ot-spin{to{transform:rotate(360deg)}}.theory-modal[hidden]{display:none}.theory-modal{position:fixed;inset:0;z-index:1400;display:grid;place-items:center;padding:20px}.theory-modal-backdrop{position:absolute;inset:0;background:rgba(25,45,39,.58)}.theory-dialog{position:relative;width:min(100%,520px);max-height:90vh;display:flex;flex-direction:column;background:#fff;border-radius:16px;box-shadow:0 28px 80px rgba(20,39,34,.24);overflow:hidden}.theory-dialog>header{padding:1rem 1.15rem;display:flex;justify-content:space-between;border-bottom:1px solid var(--ot-border)}.theory-eyebrow{color:var(--ot-forest);font-size:.68rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.theory-dialog h2{margin-top:.2rem;font:600 1.55rem Georgia,serif;color:var(--ot-deep)}.theory-close{width:44px;height:44px;color:var(--ot-deep);background:var(--ot-soft);border:0;border-radius:10px;font-size:1.5rem;cursor:pointer}#editTheoryForm{padding:1rem 1.15rem;display:grid;gap:.8rem;overflow:auto}.theory-current-file{padding:.65rem .72rem;color:var(--ot-muted);background:#f6f7f5;border-radius:9px;font-size:.78rem;overflow-wrap:anywhere}#editTheoryForm .theory-status{margin:0}#editTheoryForm footer{display:flex;justify-content:flex-end;gap:.55rem}.theory-secondary{min-height:44px;padding:.6rem .8rem;color:var(--ot-forest);background:#fff;border:1px solid #cad4d0;border-radius:9px;font:inherit;font-weight:700;cursor:pointer}#editTheoryForm footer .theory-primary{margin:0}body.ot-modal-open{overflow:hidden}@media(max-width:900px){.theory-fields{grid-template-columns:1fr 1fr}.theory-toolbar{grid-template-columns:1fr 1fr}.theory-search{grid-column:span 2}}@media(max-width:767px){.theory-shell{width:auto;padding:1rem 16px 3rem}.theory-header{align-items:stretch;flex-direction:column;gap:1rem;padding-right:58px}.theory-stat{width:190px;min-width:0}.theory-fields,.theory-toolbar{grid-template-columns:1fr}.theory-search{grid-column:auto}.theory-dropzone{min-height:115px}.theory-primary{width:100%}.theory-modal{padding:10px}.theory-dialog{max-height:94vh}#editTheoryForm footer{flex-direction:column-reverse}#editTheoryForm footer button{width:100%}}@media(prefers-reduced-motion:reduce){.theory-spinner{animation:none}.theory-progress span{transition:none}}
