.oh-page{border:1px solid var(--line,#ececef);background:#fff;border-radius:14px;overflow:hidden}
.oh-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;border-bottom:1px solid var(--line,#ececef)}
.oh-header h2{margin:0;font-size:19px;font-weight:650}.oh-tools{display:flex;gap:8px;flex-wrap:wrap}
.oh-button{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 13px;border:1px solid var(--line,#ececef);border-radius:9px;background:#fff;color:var(--ink,#1a1a1a);font:inherit;font-size:13px;font-weight:500;cursor:pointer;line-height:1.5;white-space:nowrap}
.oh-button.oh-primary{background:var(--brand,#5e5ce6);border-color:var(--brand,#5e5ce6);color:#fff}.oh-button:disabled{opacity:.45;cursor:not-allowed}
.oh-layout{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:480px}
.oh-sidebar{background:#f8f9fc;border-right:1px solid var(--line,#ececef);padding:18px 12px;min-width:0}
.oh-side-title{display:flex;align-items:center;justify-content:space-between;gap:4px;font-size:12px;color:var(--ink-2,#6e6e76);padding:0 4px 8px 10px}.oh-side-title>span{white-space:nowrap}.oh-add-department{display:grid;place-items:center;flex:none;width:32px;min-height:36px;border:0;border-radius:8px;background:transparent;color:var(--brand,#5e5ce6);font:inherit;font-size:24px;line-height:1;cursor:pointer}.oh-add-department:hover{background:#eeedfc}
.oh-department{display:flex;align-items:center;gap:8px;width:100%;min-height:42px;padding:10px 12px;border:0;border-radius:9px;background:transparent;color:#464854;font:inherit;font-size:13px;text-align:left;cursor:pointer;overflow-wrap:anywhere}
.oh-department.active{background:#eeedfc;color:var(--brand,#5e5ce6);font-weight:600}.oh-department small{display:inline-block;margin-left:6px;font-size:11px;font-weight:400;color:#8b8b96}
.oh-tree{margin-top:8px;border-top:1px solid #ebebf2;padding-top:8px}.oh-tree-row{display:flex;align-items:center;padding-left:calc(var(--oh-depth,0)*14px);min-width:0}.oh-tree-row .oh-department{flex:1;min-width:0;padding:10px 8px}.oh-tree-toggle,.oh-tree-spacer{flex:none;width:26px}.oh-tree-toggle{display:grid;place-items:center;min-height:42px;padding:0;border:0;background:transparent;color:#757582;cursor:pointer;border-radius:6px}.oh-tree-toggle:hover{background:#eeedfc}.oh-tree-toggle svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.oh-tree-toggle[aria-expanded=true] svg{transform:rotate(90deg)}
.oh-main{min-width:0;padding:20px 22px}.oh-main-head{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:16px;margin-bottom:16px}.oh-main-head>div{display:flex;align-items:baseline;gap:10px;min-width:0}.oh-main-head>.oh-main-actions{flex-wrap:wrap;align-items:center;gap:8px}.oh-main-head h3{font-size:17px;font-weight:600;margin:0;overflow-wrap:anywhere}.oh-main-head span{font-size:12px;color:var(--ink-2,#6e6e76);white-space:nowrap}
.oh-search{display:block;margin-bottom:16px}.oh-search input{width:100%;max-width:380px;min-height:40px;padding:10px 13px;border:1px solid #e5e6ed;border-radius:9px;background:#fff;color:var(--ink,#1a1a1a);font:inherit;font-size:13px}.oh-search input::placeholder{color:#9899a5}
.oh-name-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:6px 12px;align-content:start}
.oh-name{display:block;width:100%;min-height:44px;padding:10px 12px;border:0;border-radius:8px;background:transparent;color:var(--ink,#1a1a1a);font:inherit;font-size:14px;font-weight:500;text-align:left;cursor:pointer;overflow-wrap:anywhere;line-height:1.5}
.oh-name:hover{background:#f4f3fc;color:var(--brand,#5e5ce6)}.oh-name:active{background:#eeedfc}
.oh-person-facts{margin:0}.oh-person-facts>div{display:grid;grid-template-columns:112px minmax(0,1fr);gap:16px;padding:13px 0;border-bottom:1px solid var(--line,#ececef);font-size:14px;line-height:1.6}.oh-person-facts>div:first-child{padding-top:0}.oh-person-facts>div:last-child{border-bottom:0}.oh-person-facts dt{color:var(--ink-2,#6e6e76)}.oh-person-facts dd{margin:0;overflow-wrap:anywhere}.oh-person-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:24px}
.oh-empty{padding:48px 24px;text-align:center;color:var(--ink-2,#6e6e76);font-size:14px;line-height:1.8}.oh-empty .oh-button{display:flex;margin:16px auto 0}.oh-alert{color:#bb3c44;padding:10px 14px;font-size:13px;line-height:1.7}.oh-alert:empty{display:none}
.oh-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
dialog.oh-tool-dialog{width:min(1000px,calc(100vw - 40px));max-width:none;max-height:calc(100dvh - 48px);padding:0;border:1px solid var(--line,#ececef);border-radius:18px;background:#fff;color:var(--ink,#1a1a1a);box-shadow:0 24px 72px #1b24432e;margin:auto}dialog.oh-tool-dialog.oh-person-dialog{width:min(520px,calc(100vw - 40px))}dialog.oh-tool-dialog[open]{display:flex;flex-direction:column}dialog.oh-tool-dialog::backdrop,dialog.oh-confirm::backdrop{background:#17203466;backdrop-filter:blur(2px)}
.oh-tool-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 22px;border-bottom:1px solid var(--line,#ececef);flex:none}.oh-tool-header h3{margin:0;font-size:18px;font-weight:650}.oh-tool-body{min-height:0;overflow:auto;overscroll-behavior:contain;padding:20px 22px}.oh-tool-body .so-panel{box-shadow:none}.oh-tool-body .so-page{margin:0}
.oh-tool-body .so-panel>.so-section-heading>div>h2,.oh-tool-body .so-panel>.so-section-heading>div>p,.oh-tool-body .so-panel>.so-section-heading>h2{display:none}.oh-tool-body .so-panel>.so-section-heading{justify-content:flex-end}
.oh-form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:18px}.oh-form-grid label{display:grid;gap:7px;font-size:13px;color:var(--ink-2,#6e6e76)}.oh-form-grid :is(select,input){width:100%;min-width:0;min-height:42px;padding:10px 12px;border:1px solid #e5e6ed;border-radius:9px;background:#fff;color:var(--ink,#1a1a1a);font:inherit;font-size:14px}.oh-form-grid select{appearance:none;padding-right:36px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%236e6e76' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:16px}
.oh-teacher-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-height:260px;overflow:auto;padding:2px;overscroll-behavior:contain}.oh-teacher-choice{display:flex;gap:10px;align-items:center;min-height:56px;padding:10px;border:1px solid var(--line,#ececef);border-radius:10px;cursor:pointer}.oh-teacher-choice:has(input:checked){background:#f1f0ff;border-color:var(--brand,#5e5ce6)}.oh-teacher-choice input{width:17px;height:17px;accent-color:var(--brand,#5e5ce6);flex:none}.oh-teacher-choice span{min-width:0}.oh-teacher-choice strong,.oh-teacher-choice small{display:block;overflow-wrap:anywhere}.oh-teacher-choice strong{font-size:14px;font-weight:500}.oh-teacher-choice small{font-size:12px;color:var(--ink-2,#6e6e76);margin-top:3px}
.oh-fixed-person{padding:12px 0;font-size:15px;font-weight:600}.oh-permission-note{margin:14px 0 0;color:var(--ink-2,#6e6e76);font-size:12px}.oh-form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.oh-tool-dialog :is(button,input,select):focus-visible,.oh-page :is(button,input):focus-visible{outline:3px solid #aeacef;outline-offset:2px}
.oh-membership-list{margin-top:18px;border-top:1px solid var(--line,#ececef)}.oh-membership-list>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line,#ececef);font-size:13px}.oh-membership-list small{display:block;color:var(--ink-2,#6e6e76);font-size:12px;margin-top:3px}.oh-confirm-note{color:var(--ink-2,#6e6e76);font-size:13px;line-height:1.7;margin:-4px 0 20px}
dialog.oh-tool-dialog.oh-department-dialog{width:min(440px,calc(100vw - 32px))}.oh-department-parent{display:grid;grid-template-columns:64px minmax(0,1fr);gap:12px;align-items:baseline;font-size:13px;line-height:1.6;margin-bottom:20px}.oh-department-parent>span{color:var(--ink-2,#6e6e76)}.oh-department-parent strong{font-weight:500;overflow-wrap:anywhere}.oh-department-field{display:grid;gap:8px;font-size:13px;font-weight:500}.oh-department-field input{width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid #e5e6ed;border-radius:9px;background:#fff;color:var(--ink,#1a1a1a);font:inherit;font-size:15px}.oh-department-dialog .oh-alert{padding:10px 0 0}.oh-department-dialog .oh-form-actions{margin-top:24px}.oh-department-dialog .oh-form-actions .oh-button{min-width:76px;min-height:42px}
dialog.oh-confirm{max-width:calc(100vw - 32px);width:360px;margin:auto;padding:24px;border:1px solid var(--line,#ececef);border-radius:14px}.oh-confirm h3{font-size:17px;margin:0 0 20px}.oh-confirm>div{display:flex;justify-content:flex-end;gap:8px}
@media(max-width:1100px){.oh-layout{grid-template-columns:185px minmax(0,1fr)}.oh-main{padding:18px 16px}}
@media(max-width:760px){.oh-header{align-items:flex-start;flex-direction:column;padding:18px 16px}.oh-layout{grid-template-columns:140px minmax(0,1fr)}.oh-sidebar{padding:14px 6px}.oh-main{padding:16px 12px}.oh-main-head{align-items:flex-start;flex-direction:column;gap:10px}.oh-name-list{grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:4px}.oh-name{padding:10px 8px}.oh-person-facts>div{grid-template-columns:92px minmax(0,1fr);gap:12px}.oh-person-actions .oh-button{flex:1;min-width:0}.oh-form-grid{grid-template-columns:1fr}.oh-teacher-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.oh-tool-header{padding:14px 16px}.oh-tool-body{padding:16px}.oh-button{min-height:42px}.oh-tools{gap:6px}.oh-tools .oh-button{padding:8px 10px;font-size:12px}dialog.oh-tool-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 24px)}}
@media(max-width:420px){.oh-layout{grid-template-columns:112px minmax(0,1fr)}.oh-side-title{padding-left:4px;padding-right:0}.oh-add-department{min-height:44px;width:36px}.oh-main-actions .oh-button{padding:8px 10px;font-size:12px}.oh-department{padding:9px 7px;font-size:12px}.oh-tree-row{padding-left:calc(var(--oh-depth,0)*8px)}.oh-tree-row .oh-department{padding:9px 4px}.oh-tree-toggle,.oh-tree-spacer{width:22px}.oh-teacher-choices{grid-template-columns:1fr}}
@media(forced-colors:active){.oh-form-grid select{appearance:auto;background-image:none}}

.oh-import-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.oh-import-actions>span{font-size:13px;color:var(--ink-2,#6e6e76);overflow-wrap:anywhere}.oh-import-file{position:relative;overflow:hidden}.oh-import-file input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.oh-import-file:focus-within{outline:3px solid #aeacef;outline-offset:2px}.oh-import-hint{font-size:12px;color:var(--ink-2,#6e6e76);margin-top:12px;line-height:1.7}.oh-import-summary{display:flex;flex-wrap:wrap;gap:10px 18px;padding:14px 0;font-size:13px}.oh-import-errors{color:#bb3c44;max-height:160px;overflow:auto;padding-left:20px;line-height:1.7;font-size:13px}.oh-import-table-wrap{overflow:auto;max-height:45dvh;border:1px solid var(--line,#ececef);border-radius:10px}.oh-import-table{border-collapse:collapse;width:100%;min-width:620px}.oh-import-table th,.oh-import-table td{padding:12px 14px;vertical-align:top;text-align:left;border-bottom:1px solid var(--line,#ececef);font-size:13px;line-height:1.6;overflow-wrap:anywhere}.oh-import-table th{position:sticky;top:0;background:#f8f8fb;color:var(--ink-2,#6e6e76)}.oh-import-table small{display:block;color:var(--brand,#5e5ce6);font-size:12px}
