#rule-list-notebook{display:grid;gap:12px;margin-top:24px;padding:14px;border:1px solid #28527b;border-radius:14px;background:#0b192b;color:#e8f2ff}
#rule-list-notebook small{color:#62a9ff;font-size:10px;font-weight:800;letter-spacing:.1em}
#rule-list-notebook button{min-height:34px;padding:7px 12px;border:1px solid #2aa5ff;border-radius:7px;background:#0877c9;color:#fff;font-weight:800;cursor:pointer}
#rule-list-notebook button:disabled{opacity:.55;cursor:wait}
#rule-list-notebook .rule-notebook-header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 14px;border:1px solid #294f75;border-radius:10px;background:#10243a}
#rule-list-notebook .rule-notebook-header h2{margin:3px 0;font-size:21px}
#rule-list-notebook .rule-notebook-header p{margin:0;color:#9fb4cb;font-size:12px}
#rule-list-notebook .rule-notebook-actions{display:flex;align-items:center;gap:12px}
#rule-list-notebook #noteStatus{color:#93a9c2;font-size:12px}
#rule-list-notebook #noteStatus.is-error{color:#ff7d88}
#rule-list-notebook #noteStatus.is-saved{color:#41df9b}
#rule-list-notebook #saveNote{min-width:115px;border-color:#42dfa1;background:#087348}
#rule-list-notebook .rule-notebook-card{min-width:0;overflow:hidden;border:1px solid #28527b;border-radius:10px;background:#081524}
#rule-list-notebook .rule-notebook-card>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;background:#10243a;cursor:pointer;list-style:none}
#rule-list-notebook .rule-notebook-card>summary::-webkit-details-marker{display:none}
#rule-list-notebook .rule-notebook-card>summary span:first-child{display:grid;gap:2px}
#rule-list-notebook .rule-notebook-card>summary strong{font-size:15px}
#rule-list-notebook .rule-notebook-card>summary span:last-child{color:#93a9c2;font-size:11px}
#rule-list-notebook .rule-notebook-ringtones{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px}
#rule-list-notebook .rule-ring-control{display:grid;grid-template-columns:minmax(96px,1fr) minmax(125px,1.2fr) repeat(3,auto);align-items:center;gap:6px;min-width:0;padding:9px;border:1px solid #31577c;border-radius:8px;background:#071321}
#rule-list-notebook .rule-ring-control label{grid-row:1/3;color:#7fc4ff;font-size:11px;font-weight:800}
#rule-list-notebook .rule-ring-control input{grid-column:2;grid-row:1;max-width:100%;min-width:0;color:#c6d5e6;font-size:10px}
#rule-list-notebook .rule-ring-control small{grid-column:2;grid-row:2;overflow-wrap:anywhere;letter-spacing:0}
#rule-list-notebook .rule-ring-control button{grid-row:1/3;min-width:52px;padding:6px;font-size:10px}
#rule-list-notebook .rule-notebook-notes{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(240px,.75fr);gap:12px}
#rule-list-notebook .rule-notebook-editor{padding:12px}
#rule-list-notebook textarea{display:block;width:100%;min-height:220px;padding:14px;border:1px solid #31577c;border-radius:8px;background:#071321;color:#edf7ff;font:14px/1.5 Consolas,"Segoe UI",sans-serif;resize:vertical}
#rule-list-notebook textarea:focus{outline:2px solid #2aa5ff}
#rule-list-notebook .rule-notebook-editor footer{display:flex;justify-content:space-between;gap:8px;margin-top:6px;color:#93a9c2;font-size:11px}
#rule-list-notebook .rule-saved-notes{display:grid;align-content:start;gap:8px;max-height:370px;overflow:auto;padding:12px}
#rule-list-notebook .rule-saved-note{padding:10px;border-left:3px solid #2ba8ff;border-radius:7px;background:#0c2239}
#rule-list-notebook .rule-saved-note time{display:block;margin-bottom:5px;color:#48cfff;font-size:11px}
#rule-list-notebook .rule-saved-note p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.5 Consolas,"Segoe UI",sans-serif}
#rule-list-notebook .empty-note{margin:0;padding:16px;color:#93a9c2}
#rule-list-notebook #ruleNotebookDhanFrame{display:block;width:100%;height:min(900px,78vh);min-height:560px;border:0;background:#07111f}
@media(max-width:1100px){#rule-list-notebook .rule-notebook-ringtones{grid-template-columns:1fr}}
@media(max-width:700px){#rule-list-notebook{padding:8px}#rule-list-notebook .rule-notebook-header{align-items:flex-start;flex-direction:column}#rule-list-notebook .rule-notebook-actions{width:100%;justify-content:space-between}#rule-list-notebook .rule-notebook-notes{grid-template-columns:1fr}#rule-list-notebook .rule-ring-control{grid-template-columns:minmax(0,1fr) repeat(3,auto)}#rule-list-notebook .rule-ring-control label,#rule-list-notebook .rule-ring-control input,#rule-list-notebook .rule-ring-control small{grid-column:1/-1;grid-row:auto}#rule-list-notebook .rule-ring-control button{grid-row:auto}#rule-list-notebook #ruleNotebookDhanFrame{height:950px}#rule-list-notebook .rule-notebook-editor footer{flex-direction:column}}
