:root { color-scheme: light; }
body { margin: 0; background: #eef5fa; color: #123a5c; font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.schedule-shell { display: grid; gap: 20px; width: min(1440px, calc(100% - 32px)); margin: 0 auto; padding: 18px 0 52px; }
.schedule-hero { display: flex; align-items: stretch; justify-content: space-between; gap: 22px; padding: 34px; overflow: hidden; border-radius: 28px; color: white; background: radial-gradient(circle at 82% 0%, rgba(26,210,179,.28), transparent 32%), linear-gradient(135deg,#073c74,#0a6eaa); box-shadow: 0 24px 60px rgba(6,55,101,.2); }
.schedule-hero > div:first-child { max-width: 760px; }
.schedule-hero span,.schedule-card > span,.schedule-card header span,.schedule-summary span { font-size: 11px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.schedule-hero h1 { max-width: 720px; margin: 8px 0; font-size: clamp(30px,5vw,58px); line-height: 1.02; letter-spacing: -.045em; }
.schedule-hero p { max-width: 650px; margin: 0; color: rgba(255,255,255,.78); font-size: 17px; line-height: 1.55; }
.schedule-countdown { display: grid; align-content: center; gap: 6px; min-width: 240px; padding: 24px; border: 1px solid rgba(255,255,255,.22); border-radius: 20px; background: rgba(255,255,255,.12); backdrop-filter: blur(8px); }
.schedule-countdown strong { font-size: 28px; }
.schedule-countdown small { color: rgba(255,255,255,.75); }
.schedule-summary { display: grid; grid-template-columns: repeat(4,1fr); overflow: hidden; border: 1px solid #d4e4ef; border-radius: 20px; background: white; }
.schedule-summary article { display: grid; gap: 5px; min-height: 92px; padding: 18px; border-right: 1px solid #dfebf3; }
.schedule-summary article:last-child { border-right: 0; }
.schedule-summary span,.schedule-card > span,.schedule-card header span { color: #67839a; }
.schedule-summary strong { font-size: 20px; color: #0b365c; }
.schedule-summary small { color: #7a91a4; line-height: 1.35; }
.adaptive-plan { display: grid; gap: 18px; padding: 24px; border: 1px solid #bcdde5; border-radius: 24px; background: linear-gradient(145deg,#f8fdff,#eefaf7); box-shadow: 0 15px 40px rgba(12,84,105,.08); }
.adaptive-plan > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.adaptive-plan > header span,.adaptive-plan-insight span,.adaptive-session span { color: #587d8a; font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.adaptive-plan h2 { margin: 5px 0; color: #083d5b; font-size: clamp(24px,3vw,35px); letter-spacing: -.025em; }
.adaptive-plan header p { max-width: 760px; margin: 0; color: #607d8b; line-height: 1.5; }
.adaptive-plan-state { flex: 0 0 auto; padding: 10px 14px; border-radius: 99px; color: #08664f; background: #ddf7ec; font-size: 12px; font-weight: 900; }
.adaptive-plan-controls { display: grid; grid-template-columns: 1.2fr 1fr .75fr .65fr .75fr 1fr auto; gap: 10px; align-items: end; }
.adaptive-plan-controls label { display: grid; gap: 6px; color: #527282; font-size: 11px; font-weight: 900; }
.adaptive-plan-controls select,.adaptive-plan-controls input { width: 100%; min-height: 42px; box-sizing: border-box; padding: 9px 10px; border: 1px solid #bfd5df; border-radius: 10px; color: #123f58; background: white; font: inherit; }
.adaptive-plan-controls .adaptive-email { display: flex; align-items: center; min-height: 42px; gap: 8px; padding: 0 10px; border: 1px solid #bfd5df; border-radius: 10px; background: white; }
.adaptive-email input { width: auto; min-height: 0; }
.adaptive-plan-controls button,.adaptive-plan-actions button { min-height: 42px; padding: 0 16px; border: 0; border-radius: 11px; color: white; background: #0872a9; font-weight: 900; }
.adaptive-plan-controls button:disabled,.adaptive-plan-actions button:disabled { opacity: .48; }
.adaptive-plan-insight { display: grid; grid-template-columns: repeat(4,1fr); overflow: hidden; border: 1px solid #cfe2e8; border-radius: 16px; background: white; }
.adaptive-plan-insight article { display: grid; gap: 5px; min-height: 88px; padding: 15px; border-right: 1px solid #dce9ed; }
.adaptive-plan-insight article:last-child { border-right: 0; }
.adaptive-plan-insight strong { color: #0d405b; }
.adaptive-plan-insight small { color: #678491; line-height: 1.35; }
.adaptive-plan-preview { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.adaptive-plan-preview > .schedule-empty { grid-column: 1/-1; margin: 0; background: rgba(255,255,255,.65); }
.adaptive-session { display: grid; grid-template-columns: 35px minmax(0,1fr); gap: 11px; padding: 14px; border: 1px solid #d7e6eb; border-radius: 14px; background: white; }
.adaptive-session-number { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: white; background: #0d789c; font-weight: 900; }
.adaptive-session > div:last-child { display: grid; gap: 4px; }
.adaptive-session strong { color: #103d58; font-size: 16px; }
.adaptive-session small { color: #66818e; line-height: 1.4; }
.adaptive-session.is-recovery .adaptive-session-number { background: #148063; }
.adaptive-session.is-assessment { border-color: #9bcad9; background: #f6fcff; }
.adaptive-session.is-assessment .adaptive-session-number { background: #674eaa; }
.adaptive-plan-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.adaptive-plan-actions p { margin: 0; color: #4e7180; font-weight: 700; }
.schedule-layout { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(310px,.7fr); gap: 20px; align-items: start; }
.schedule-main,.schedule-side { display: grid; gap: 20px; }
.schedule-card { padding: 22px; border: 1px solid #d6e4ee; border-radius: 22px; background: white; box-shadow: 0 12px 35px rgba(15,62,99,.07); }
.schedule-card header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.schedule-card h2 { margin: 4px 0 0; color: #0b355a; font-size: 22px; }
.schedule-card header a { color: #0869ad; font-weight: 800; text-decoration: none; }
.schedule-filter { display: flex; gap: 5px; padding: 4px; border-radius: 99px; background: #edf4f8; }
.schedule-filter button { padding: 8px 11px; border: 0; border-radius: 99px; color: #577188; background: transparent; font-weight: 800; }
.schedule-filter button.is-active { color: white; background: #0b68aa; }
.schedule-agenda,.result-list { display: grid; gap: 11px; }
.schedule-event { display: grid; grid-template-columns: 76px minmax(0,1fr) auto; gap: 15px; align-items: center; padding: 15px; border: 1px solid #dfebf3; border-radius: 16px; background: #fbfdff; }
.schedule-event.is-completed { opacity: .62; }
.schedule-event.is-missed { border-color: #f2c6c2; background: #fff7f6; }
.event-date { display: grid; place-items: center; align-content: center; min-height: 68px; border-radius: 13px; color: #0a5791; background: #eaf5fc; }
.event-date strong { font-size: 24px; }.event-date span { font-size: 11px; font-weight: 900; text-transform: uppercase; }
.event-main { display: grid; gap: 4px; }.event-main span { color: #648098; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }.event-main strong { color: #0a355a; font-size: 17px; }.event-main small { color: #6d8497; line-height: 1.4; }
.event-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }.event-actions button,.schedule-form-card button { min-height: 38px; padding: 0 12px; border: 1px solid #c4d9e8; border-radius: 10px; color: #1d557d; background: white; font-weight: 800; }.event-actions .complete,.schedule-form-card .schedule-primary { color: white; border-color: #0871b3; background: #0871b3; }
.result-row { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid #e2ecf3; }.result-row:last-child { border-bottom: 0; }.result-row div { display: grid; gap: 3px; }.result-row span { color: #6e879a; font-size: 12px; }.result-row strong { color: #113b5e; }.result-time { font-size: 22px; }.pb-badge { padding: 6px 9px; border-radius: 99px; color: #086448; background: #dff8ee; font-size: 11px; font-weight: 900; }
.schedule-form-card { display: grid; gap: 13px; }.schedule-form-card label { display: grid; gap: 6px; color: #567188; font-size: 12px; font-weight: 800; }.schedule-form-card input,.schedule-form-card select,.schedule-form-card textarea { width: 100%; box-sizing: border-box; padding: 11px 12px; border: 1px solid #cfdfe9; border-radius: 11px; color: #183e5c; background: #fbfdff; font: inherit; }.schedule-form-card textarea { min-height: 86px; resize: vertical; }.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.taper-card { color: white; background: linear-gradient(145deg,#0a477b,#087f84); }.taper-card > span,.taper-card h2,.taper-card p { color: white; }.taper-card p { margin-bottom: 0; color: rgba(255,255,255,.8); line-height: 1.55; }
.schedule-empty { padding: 28px; border: 1px dashed #c9dce9; border-radius: 14px; color: #6f8799; text-align: center; }
@media(max-width:1100px){.adaptive-plan-controls{grid-template-columns:repeat(3,1fr)}.adaptive-plan-controls button{grid-column:span 2}.adaptive-plan-insight{grid-template-columns:repeat(2,1fr)}.adaptive-plan-insight article:nth-child(2){border-right:0}}
@media(max-width:960px){.schedule-layout{grid-template-columns:1fr}.schedule-summary{grid-template-columns:repeat(2,1fr)}.schedule-summary article:nth-child(2){border-right:0}.schedule-summary article:nth-child(-n+2){border-bottom:1px solid #dfebf3}}
@media(max-width:650px){.schedule-shell{width:min(100% - 20px,1440px)}.schedule-hero{padding:24px;flex-direction:column}.schedule-countdown{min-width:0}.schedule-summary{grid-template-columns:1fr}.schedule-summary article{border-right:0;border-bottom:1px solid #dfebf3}.schedule-summary article:last-child{border-bottom:0}.adaptive-plan{padding:18px}.adaptive-plan>header,.adaptive-plan-actions{flex-direction:column}.adaptive-plan-state{align-self:flex-start}.adaptive-plan-controls,.adaptive-plan-insight,.adaptive-plan-preview{grid-template-columns:1fr}.adaptive-plan-controls button{grid-column:auto}.adaptive-plan-insight article{border-right:0;border-bottom:1px solid #dce9ed}.adaptive-plan-insight article:last-child{border-bottom:0}.adaptive-plan-actions button{width:100%}.schedule-card header{align-items:flex-start;flex-direction:column}.schedule-filter{width:100%;overflow:auto}.schedule-event{grid-template-columns:60px 1fr}.event-actions{grid-column:1/-1;justify-content:flex-start}.result-row{grid-template-columns:1fr auto}.pb-badge{grid-column:1/-1;justify-self:start}.form-pair{grid-template-columns:1fr}}
