:root{--sheet-purple:#6c4388;--sheet-soft:#f6f0fa}
#studySheetsRoot{max-width:1280px;margin:20px auto;padding:0 18px}
.sheet-shell{display:grid;grid-template-columns:250px minmax(0,1fr);gap:18px}
.sheet-list,.sheet-editor{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:14px}
#sheetCreate{display:flex;gap:5px;margin-bottom:12px}#sheetCreate input{min-width:0;flex:1}#sheetCreate button{width:36px}
.sheet-list input,.sheet-editor input,.sheet-editor textarea{border:1px solid var(--line);border-radius:7px;background:var(--bg);color:var(--fg1);font:inherit;padding:7px;width:100%}
.sheet-tab{display:flex;width:100%;justify-content:space-between;align-items:center;gap:8px;border:0;border-radius:8px;background:transparent;color:var(--fg1);padding:9px;text-align:left;cursor:pointer}.sheet-tab.active{background:var(--sheet-soft);color:var(--sheet-purple)}.sheet-tab small{white-space:nowrap;color:var(--fg2)}
.sheet-editor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.sheet-editor-head>div:first-child{display:grid;gap:8px;flex:1}.sheet-editor label{display:grid;gap:4px;font-size:11px;font-weight:700;color:var(--fg2)}
.sheet-actions,.sheet-item-actions{display:flex;flex-wrap:wrap;gap:6px}.sheet-actions button,.sheet-item-actions button,.sheet-item-actions a,#sheetCreate button{border:1px solid var(--line);border-radius:7px;background:var(--bg);color:var(--fg1);font-family:inherit;font-weight:700;font-size:11px;padding:7px;text-decoration:none;cursor:pointer}.danger{color:#a32132!important}.sheet-actions button:disabled,.sheet-item-actions button:disabled{opacity:.4;cursor:default}
.sheet-policy{margin:14px 0;padding:9px;border-radius:8px;background:var(--hl2);color:var(--fg2);font-size:11px;line-height:1.5}.sheet-items{display:grid;gap:10px}.sheet-item{border:1px solid var(--line);border-radius:10px;padding:11px}.sheet-item>header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}.sheet-item fieldset{border:1px solid var(--line);border-radius:8px;margin:9px 0 0;padding:8px}.sheet-item legend{font-size:10px;color:var(--fg2)}.sheet-section-grid{display:flex;flex-wrap:wrap;gap:7px 12px}.sheet-section-grid label{display:flex;align-items:center;gap:4px}.sheet-section-grid input{width:auto}.sheet-empty{padding:50px 20px;text-align:center;color:var(--fg2)}
.sheet-print{display:none}.sheet-print-title{border-bottom:3px solid #8f2431;padding:0 0 18px;margin:0 0 24px}.sheet-print-title p{font-size:11px;color:#666}.sheet-print-title h1{margin:0 0 8px}.sheet-print-entry{break-before:page}.sheet-print-entry:first-of-type{break-before:auto}.sheet-print-note{border:1px solid #d9d1cb;background:#fff8dd;padding:10px;margin:0 0 12px;font-size:11px}.sheet-print .dos-document{padding:0}.sheet-print .dos-title{padding-top:0}
body.dark .sheet-tab.active{background:#291d36;color:#d9c2ee}
@media(max-width:760px){.sheet-shell{grid-template-columns:1fr}.sheet-editor-head{display:block}.sheet-actions{margin-top:10px}.sheet-item>header{align-items:flex-start;flex-direction:column}}
@media print{.sheet-app-only,.brand-badge{display:none!important}.sheet-print{display:block!important}.sheet-print[aria-hidden="true"]{display:none!important}body{background:#fff}.sheet-print .dos-document{padding:0}.sheet-print .dos-footer{margin-bottom:10px}}

