.battle-strategy-panel{overflow:hidden;padding:0}.battle-strategy-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:1.5rem;padding:1.4rem 1.5rem;border-bottom:1px solid rgba(106,213,243,.32)}.battle-strategy-heading h2{margin:.35rem 0 .25rem}.battle-strategy-heading p{max-width:680px;margin:0;color:#b9dce8}.battle-strategy-status{display:flex;align-items:center;gap:.55rem;white-space:nowrap;color:#a9eaf7;font:700 .65rem 'DM Mono',monospace;letter-spacing:.1em}.battle-strategy-status i{width:7px;height:7px;border-radius:50%;background:#74e1f5;box-shadow:0 0 0 5px rgba(116,225,245,.12)}
.pet-schedule-tabs{display:flex;gap:.65rem;margin:1rem 0}.pet-schedule-tab{flex:1;min-height:3rem;border:1px solid rgba(117,218,242,.42);background:rgba(4,24,42,.62);color:#c8edf5;font:700 .78rem 'DM Mono',monospace;letter-spacing:.05em;cursor:pointer}.pet-schedule-tab:hover{border-color:#9deafa;background:rgba(11,55,78,.72)}.pet-schedule-tab.active{border-color:#aaf2ff;background:#217996;color:#f2fdff;box-shadow:inset 0 0 0 2px rgba(185,248,255,.32)}.pet-schedule-tab-panel[hidden]{display:none}
.battle-strategy-axis{display:grid;grid-template-columns:repeat(5,1fr) auto;margin:1.5rem 1.5rem .4rem 9rem;color:#9ac9d5;font:600 .65rem 'DM Mono',monospace}.battle-strategy-axis-six-hour{grid-template-columns:repeat(6,1fr) auto}.battle-strategy-axis span:not(:first-child):not(:last-child){transform:translateX(-50%)}.battle-strategy-chart{position:relative;margin:0 1.5rem 1.7rem;padding:.5rem 0}.battle-strategy-grid{position:absolute;inset:0 0 0 7.5rem;border-left:1px solid rgba(117,218,242,.2);border-right:1px solid rgba(117,218,242,.2);background:repeating-linear-gradient(to right,transparent 0,transparent calc(10% - 1px),rgba(117,218,242,.15) calc(10% - 1px),rgba(117,218,242,.15) 10%)}.battle-strategy-row{position:relative;display:grid;grid-template-columns:7.5rem 1fr;align-items:center;min-height:98px}.battle-strategy-label{display:grid;gap:.4rem}.battle-strategy-label strong{color:#e8fbff;font:800 .84rem 'DM Mono',monospace;letter-spacing:.13em}.battle-strategy-label span{color:#c5eff8;font:700 .8rem 'DM Mono',monospace;letter-spacing:.03em}.battle-strategy-bar{position:relative;z-index:1;display:flex;align-items:center;min-height:64px;padding:.65rem .75rem;border:1px solid #b5eff9;box-shadow:0 5px 18px rgba(0,0,0,.2);background-size:50% 100%}.battle-strategy-bar-1{width:40%;background-image:linear-gradient(to right,#db6d36 0 50%,#a9412e 50% 100%)}.battle-strategy-bar-2{width:40%;margin-left:30%;background-image:linear-gradient(to right,#55b8cc 0 25%,#277c9b 25% 75%,#55b8cc 75% 100%)}.battle-strategy-bar-3{width:40%;margin-left:60%;background-image:linear-gradient(to right,#d3ae3b 0 50%,#a8752d 50% 100%)}.tyrant-pet-schedule .battle-strategy-bar{width:33.333333%}.tyrant-pet-schedule .battle-strategy-bar-2{margin-left:33.333333%}.tyrant-pet-schedule .battle-strategy-bar-3{margin-left:66.666667%}.battle-strategy-names{display:flex;flex-wrap:wrap;gap:.45rem}.battle-strategy-names span{padding:.38rem .58rem;border:1px solid rgba(3,23,36,.72);background:rgba(235,251,255,.93);color:#082033;font:700 .76rem 'DM Mono',monospace;line-height:1.1}.battle-strategy-names .battle-strategy-empty{opacity:.72;font-weight:500;font-style:italic;text-transform:none}
.battle-strategy-form{border-top:1px solid rgba(106,213,243,.32);padding:1.35rem 1.5rem 1.5rem;background:rgba(4,24,42,.46)}.battle-strategy-form-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:1rem;margin-bottom:1rem}.battle-strategy-form-heading h3{margin:.3rem 0 0;font:700 1.35rem 'Playfair Display',serif}.battle-strategy-form-heading p{margin:0;color:#abd5df;font-size:.8rem}.battle-strategy-inputs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem}.battle-strategy-inputs label{color:#c8edf5;font:700 .65rem 'DM Mono',monospace;letter-spacing:.04em}.battle-strategy-inputs textarea{box-sizing:border-box;width:100%;margin-top:.45rem;resize:vertical;border:1px solid #4cb4d2;background:#061a2d;color:#edfaff;padding:.75rem;line-height:1.45}.battle-strategy-inputs textarea:focus{outline:2px solid #8cecff;outline-offset:1px}.battle-strategy-actions{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-top:1rem}.battle-strategy-actions small{color:#9fc9d3}.battle-strategy-readonly{display:flex;gap:.7rem;padding:1rem 1.5rem;border-top:1px solid rgba(106,213,243,.28);background:rgba(4,24,42,.45);color:#acd3dc;font-size:.8rem}.battle-strategy-readonly strong{color:#e5faff}
@media(max-width:760px){.battle-strategy-heading,.battle-strategy-form-heading,.battle-strategy-actions{align-items:flex-start;flex-direction:column}.battle-strategy-axis,.battle-strategy-chart{min-width:650px}.battle-strategy-panel{overflow-x:auto}.battle-strategy-axis{margin-left:8rem}.battle-strategy-chart{margin-left:1rem;margin-right:1rem}.battle-strategy-grid{left:7rem}.battle-strategy-row{grid-template-columns:7rem 1fr}.battle-strategy-inputs{grid-template-columns:1fr}.battle-strategy-form{min-width:0;position:sticky;left:0}.battle-strategy-heading{position:sticky;left:0;min-width:min(100%,650px)}}

@media(max-width:760px){.pet-schedule-tabs{gap:.45rem}.pet-schedule-tab{font-size:.67rem;padding:.55rem}}

.pet-schedule-copy-panel{display:flex;align-items:end;justify-content:space-between;gap:1.25rem;margin:1rem 0;padding:1rem 1.25rem}.pet-schedule-copy-panel h3{margin:.25rem 0}.pet-schedule-copy-panel p{max-width:590px;margin:0;color:#b9dce8;font-size:.84rem}.pet-schedule-copy-panel form{display:flex;align-items:end;gap:.65rem}.pet-schedule-copy-panel label{display:grid;gap:.4rem;color:#c8edf5;font:700 .65rem 'DM Mono',monospace;letter-spacing:.04em}.pet-schedule-copy-panel select{min-width:220px}.inline-recovery-form{display:inline-block;margin:.55rem 0 0}.inline-recovery-form .button{min-height:2rem}@media(max-width:760px){.pet-schedule-copy-panel{align-items:flex-start;flex-direction:column}.pet-schedule-copy-panel form{width:100%;align-items:stretch;flex-direction:column}.pet-schedule-copy-panel select{min-width:0;width:100%}}

/* Structured event controls: prevents selectors and creation fields from colliding. */
.pet-schedule-event-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.85fr);grid-template-areas:"summary picker" "summary create";gap:1.25rem 2rem;align-items:end;padding:1.5rem 1.7rem}.pet-schedule-event-summary{grid-area:summary;align-self:center}.pet-schedule-event-summary h2{margin:.35rem 0 .45rem}.pet-schedule-event-summary p{max-width:33rem;margin:0;color:#c2dfe8;line-height:1.55}.pet-schedule-event-picker{grid-area:picker}.pet-schedule-event-create{grid-area:create}.pet-schedule-event-panel form{display:grid;gap:.6rem;margin:0}.pet-schedule-event-panel label{display:grid;gap:.42rem;color:#c8edf5;font:700 .65rem 'DM Mono',monospace;letter-spacing:.06em}.pet-schedule-event-panel select,.pet-schedule-event-panel input{box-sizing:border-box;width:100%;min-height:3rem}.pet-schedule-create-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem}.pet-schedule-event-create .button{width:100%;min-height:3rem}.pet-schedule-copy-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.8fr);align-items:end;gap:1.25rem;padding:1.25rem 1.5rem}.pet-schedule-copy-panel form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:.65rem}.pet-schedule-copy-panel select{box-sizing:border-box;width:100%;min-width:0;min-height:3rem}.pet-schedule-copy-panel .button{min-height:3rem;white-space:nowrap}@media(max-width:760px){.pet-schedule-event-panel,.pet-schedule-copy-panel{grid-template-columns:1fr;grid-template-areas:"summary" "picker" "create";padding:1.1rem}.pet-schedule-copy-panel form,.pet-schedule-create-fields{grid-template-columns:1fr}.pet-schedule-copy-panel .button{width:100%}}

/* Heading first, then one aligned controls row. */
.pet-schedule-event-panel{display:grid;gap:1.3rem;padding:1.5rem 1.7rem}.pet-schedule-event-summary h2{margin:.35rem 0 .45rem}.pet-schedule-event-summary p{max-width:48rem;margin:0;color:#c2dfe8;line-height:1.55}.pet-schedule-event-controls{display:grid;grid-template-columns:minmax(210px,1.35fr) minmax(165px,1fr) minmax(155px,1fr) auto;gap:.75rem;align-items:end}.pet-schedule-event-controls form{display:contents}.pet-schedule-event-panel label{display:grid;gap:.42rem;color:#c8edf5;font:700 .65rem 'DM Mono',monospace;letter-spacing:.06em}.pet-schedule-event-panel select,.pet-schedule-event-panel input{box-sizing:border-box;width:100%;min-height:3rem}.pet-schedule-event-create .button{min-height:3rem;white-space:nowrap}@media(max-width:760px){.pet-schedule-event-panel{padding:1.1rem}.pet-schedule-event-controls{grid-template-columns:1fr}.pet-schedule-event-create .button{width:100%}}


/* Deleting a saved schedule is reserved for Admins. */
.pet-schedule-event-delete .button{min-height:3rem;white-space:nowrap}
