.schedule-plan-dialog{
  color-scheme:dark;width:min(456px,calc(100% - 32px));max-width:none;max-height:calc(100dvh - 40px);
  margin:auto;padding:28px;border:1px solid #cbb5df69;border-radius:18px;color:#eee8f4;
  background:radial-gradient(ellipse at 0 0,#bc94db12,transparent 65%),linear-gradient(145deg,#282530,#201e29 65%,#272330);
  box-shadow:inset 0 1px #efdfff29,inset 0 -1px #d4b9ed18,0 24px 64px #08060e70;
  font:400 14px/1.5 var(--sans);overflow-y:auto;overscroll-behavior:contain;
}
.schedule-plan-dialog::backdrop{background:#09080db0;}
.schedule-plan-dialog *{box-sizing:border-box;}
.schedule-plan-dialog [hidden]{display:none!important;}
.schedule-plan-dialog form{margin:0;}
.schedule-plan-dialog button,.schedule-plan-dialog input{font:inherit;}
.plan-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px;}
.plan-heading p{margin:0 0 5px;color:#bda9cf;font:10px/1.4 Georgia;letter-spacing:.18em;}
.plan-heading h2{margin:0;font:400 24px/1.4 var(--serif);letter-spacing:-.03em;color:#f3ecfa;}
.schedule-plan-dialog button{border:1px solid #cbb5df38;border-radius:10px;background:#d8baf208;color:#e6deee;min-height:42px;padding:0 16px;cursor:pointer;transition:background-color 140ms ease-out,border-color 140ms ease-out;}
.schedule-plan-dialog .plan-close{padding:0;width:36px;min-height:36px;border-color:transparent;display:grid;place-items:center;flex:none;}
.plan-close svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;}
.plan-fields{display:grid;gap:18px;}
.plan-field{display:grid;gap:8px;color:#d7cddd;font-size:12px;}
.plan-field input{width:100%;min-width:0;height:44px;margin:0;padding:0 12px;background:#13121966;border:1px solid #cbb5df3b;border-radius:9px;color:#f2ebf8;box-shadow:inset 0 1px 3px #08070b26;}
.plan-field input::placeholder{color:#8e839c;opacity:1;}
.plan-time-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:22px;}
.plan-check{display:flex;align-items:center;gap:8px;min-height:44px;color:#cbbfd6;font-size:12px;cursor:pointer;}
.schedule-plan-dialog input[type="checkbox"]{accent-color:#bea0d9;width:16px;height:16px;margin:0;cursor:pointer;}
.plan-types{padding:0;margin:0;border:0;min-width:0;}
.plan-types legend{padding:0;margin-bottom:8px;color:#d7cddd;font-size:12px;}
.plan-types>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;}
.plan-types label{position:relative;cursor:pointer;min-width:0;}
.plan-types input{position:absolute;opacity:0;width:1px;height:1px;}
.plan-types span{display:flex;align-items:center;justify-content:center;min-height:42px;border:1px solid #cbb5df2e;border-radius:9px;color:#bfb3cd;font-size:12px;background:#d9c6ed03;transition:background-color 140ms ease-out,border-color 140ms ease-out;}
.plan-types input:checked+span{color:#f2e4ff;border-color:#cfb0f485;background:#b58ed62b;box-shadow:inset 0 1px #fff2ff14;}
.plan-sub{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0 0;border-top:1px solid #cbb5df21;cursor:pointer;}
.plan-sub>span{display:flex;align-items:center;gap:10px;font-size:13px;}
.plan-sub img{display:block;object-fit:contain;flex:none;}
.plan-sub small{display:block;color:#a99bb8;font-size:11px;margin-top:2px;}
.plan-sub input{appearance:none;width:32px!important;height:19px!important;border-radius:12px;background:#100e17;border:1px solid #b4a0c34d;position:relative;flex:none;transition:background-color 140ms ease-out;}
.plan-sub input::after{content:'';position:absolute;left:3px;top:3px;width:11px;height:11px;border-radius:50%;background:#a89bb9;transition:transform 140ms ease-out,background-color 140ms ease-out;}
.plan-sub input:checked{background:#806396;border-color:#d8bbef80;}
.plan-sub input:checked::after{transform:translateX(13px);background:#f4e9ff;}
.plan-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:26px;padding-top:18px;border-top:1px solid #cbb5df21;}
.plan-actions>div{display:flex;gap:8px;margin-left:auto;}
.schedule-plan-dialog .plan-save{background:#b58ed62b;border-color:#d6b3f180;color:#f6edff;min-width:110px;}
.schedule-plan-dialog .plan-delete{color:#d9a8b7;border-color:transparent;background:none;padding:0 6px;}
.plan-error{font-size:12px;color:#f0b0c1;margin:16px 0 0;}
.plan-delete-confirm{margin-top:18px;padding:14px;background:#b5697e0a;border:1px solid #bd81913d;border-radius:10px;}
.plan-delete-confirm p{margin:0 0 10px;font-size:13px;color:#e8c6d0;}
.plan-delete-confirm>div{display:flex;justify-content:flex-end;gap:8px;}
.schedule-plan-dialog [data-plan-delete-confirm]{color:#f0b0c1;border-color:#bd819159;}
.schedule-plan-dialog :is(button,input):focus-visible,.plan-types input:focus-visible+span{outline:2px solid #dec2ff;outline-offset:3px;}
.schedule-plan-dialog input:disabled,.schedule-plan-dialog button:disabled{opacity:.5;cursor:default;}
.schedule-plan-dialog .is-disabled{opacity:.5;}
@media(hover:hover) and (pointer:fine){
 .schedule-plan-dialog button:hover:not(:disabled),.plan-types label:hover span{background-color:#b58ed626;border-color:#d7bcec80;}
}
@media(max-width:600px){
 .schedule-plan-dialog{padding:22px 20px;max-height:calc(100dvh - 24px);border-radius:16px;}
 .plan-heading{margin-bottom:20px;}.plan-heading h2{font-size:22px;}
 .plan-field input{font-size:16px;}.plan-time-row{gap:14px;}
 .plan-types>div{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(prefers-reduced-motion:reduce){.schedule-plan-dialog *{transition:none!important;}}
