/* 第二版单页订制：雾蓝紫、清晰问题、图片目的地与渐入条件。 */
body[data-page='plan'] { background: #fff; padding-bottom: 0; }
body[data-page='plan'] .mobile-bottom { display: none; }
body.plan-date-open { overflow: hidden; }
/* PC：订制页隐藏顶栏「订制旅程」按钮（移动端本就隐藏） */
@media (min-width: 1051px) {
  body[data-page='plan'] .header-plan { display: none !important; }
}
.plan-header { padding-bottom: 38px; }
.plan-header h1 { font-size: clamp(36px,3.8vw,54px); line-height: 1.3; font-weight: 800; letter-spacing: -.03em; margin-bottom: 17px; }
.plan-header > p { font-size: 18px; line-height: 1.9; color: #606c83; margin-bottom: 22px; }
.plan-intro-notes { display: flex; flex-wrap: wrap; gap: 10px 27px; padding-bottom: 26px; border-bottom: 1px solid #dfe3ed; }
.plan-intro-notes > span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: #606c83; }
.plan-intro-notes .icon { width: 18px; height: 18px; color: #626e9c; }
.plan-layout { display: grid; grid-template-columns: minmax(0,1fr) 290px; align-items: start; gap: 56px; padding-bottom: 80px; }
.plan-main, #plan-form { min-width: 0; }
.plan-section { border: 0; border-bottom: 1px solid #dfe3ed; padding: 0 0 44px; margin: 0 0 44px; min-width: 0; scroll-margin-top: 135px; }
.plan-section > legend { width: 100%; padding: 0; margin-bottom: 13px; font-size: 28px; font-weight: 750; line-height: 1.5; letter-spacing: -.02em; color: #303644; }
.plan-required { display: inline-block; font-size: 13px; font-weight: 500; color: #626e9c; letter-spacing: 0; margin-left: 12px; vertical-align: middle; }
.optional { display: inline-block; margin-left: 9px; font-size: 14px; font-weight: 400; letter-spacing: 0; color: #667188; }
.field-hint { font-size: 16px; line-height: 1.85; color: #606c83; margin-bottom: 23px; }
.field-hint a { color: #52618b; text-decoration: underline; text-underline-offset: 4px; }
.field-caption { font-size: 16px; color: #424b66; font-weight: 600; margin: 23px 0 12px; }
.field-label { display: block; font-size: 17px; line-height: 1.7; font-weight: 550; margin-bottom: 9px; color: #303644; }
.plan-section input:not([type='checkbox']):not([type='radio']),
.plan-section textarea,
.plan-captcha input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  border: 1px solid #d3d8e5;
  border-radius: 6px;
  padding: 13px 15px;
  background: #fff;
  color: #303644;
  font: inherit;
  font-size: 17px;
  line-height: 1.5;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.plan-section input::placeholder,
.plan-section textarea::placeholder,
.plan-captcha input::placeholder {
  color: #788299;
}
.plan-section input:not([type='checkbox']):not([type='radio']):focus,
.plan-section textarea:focus,
.plan-captcha input:focus {
  border-color: #626e9c;
  box-shadow: 0 0 0 3px #626e9c12;
  outline: none;
}
.plan-section input:not([type='checkbox']):not([type='radio']):focus-visible,
.plan-section textarea:focus-visible,
.plan-captcha input:focus-visible {
  border-color: #626e9c;
  box-shadow: 0 0 0 3px #626e9c22;
  outline: none;
}
.plan-section input:disabled { background: #f1f2f6; color: #7d869d; cursor: not-allowed; }
.plan-section input[aria-invalid='true']:not([type='checkbox']):not([type='radio']) { border-color: #b74e26; }
.plan-section textarea { resize: vertical; min-height: 146px; }
.plan-section > textarea + .field-hint { margin-top: 12px; margin-bottom: 0; font-size: 15px; }
.plan-section .sh-select-trigger { font-size: 17px; border-radius: 6px; }
.form-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; margin-bottom: 22px; }
.form-row > div { min-width: 0; }
.form-row:last-child { margin-bottom: 0; }
.form-row-three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.plan-captcha { align-items: end; grid-template-columns: minmax(0,280px) auto; }
.plan-captcha img { height: 52px; cursor: pointer; border: 1px solid #d3d8e5; border-radius: 6px; }
.check-line { display: flex; align-items: center; gap: 11px; min-height: 48px; width: fit-content; font-size: 16px; line-height: 1.7; color: #424b66; cursor: pointer; margin: 13px 0; }
.check-line input { accent-color: #626e9c; width: 19px; height: 19px; margin: 0; flex-shrink: 0; }
.prefill-note { border-left: 3px solid #8491b8; background: #f0f1f7; color: #485575; padding: 17px 20px; font-size: 16px; line-height: 1.8; margin: 0 0 26px; }

/* 图片保留，同时提供名称、旅行特色、清楚的选中标记。 */
.destinations-choice { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.image-choice { display: block; position: relative; min-width: 0; border: 1px solid #dfe3ed; border-radius: 6px; overflow: hidden; cursor: pointer; background: #fff; transition: border-color .2s, box-shadow .2s; }
.image-choice .scene { aspect-ratio: 1.5; transition: filter .25s; }
.image-choice .scene.has-img { background-image: none; overflow: hidden; position: relative; }
.image-choice .scene.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.destination-choice-copy { display: block; padding: 12px 10px 14px; text-align: center; }
.destination-choice-copy strong { display: block; font-size: 18px; font-weight: 700; line-height: 1.5; margin-bottom: 4px; }
.destination-choice-copy small { display: block; font-size: 13px; line-height: 1.65; color: #667188; }
.image-choice:hover { border-color: #98a3c2; }
.image-choice:has(input:checked) { border-color: #626e9c; box-shadow: 0 0 0 1px #626e9c; background: #f1f2f8; }
.image-choice > input, .plan-choice > input, .plan-chip > input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; z-index: 2; cursor: pointer; }
.choice-check { position: absolute; right: 11px; top: 11px; width: 23px; height: 23px; display: grid; place-items: center; border: 1px solid #c5cbda; background: #ffffffeb; border-radius: 50%; pointer-events: none; }
.choice-check .icon { width: 14px; height: 14px; opacity: 0; stroke-width: 2.4; }
input:checked ~ .choice-check { background: #626e9c; border-color: #626e9c; color: #fff; }
input:checked ~ .choice-check .icon { opacity: 1; }
.image-choice:has(input:focus-visible), .plan-choice:has(input:focus-visible), .plan-chip:has(input:focus-visible) { outline: 3px solid #9aa6c8; outline-offset: 4px; }
.image-choice:has(input[aria-invalid='true']) { border-color: #b74e26; }
.selection-status { margin: 12px 0 0; font-size: 15px; line-height: 1.8; color: #626e9c; }
.plan-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.plan-chip { position: relative; display: inline-flex; max-width: 100%; border: 1px solid #d3d8e5; border-radius: 5px; cursor: pointer; background: #fff; }
.plan-chip > span { padding: 10px 16px; font-size: 16px; line-height: 1.7; font-weight: 500; border-radius: 4px; transition: background .2s, color .2s; }
.plan-chip small { display: block; color: #667188; font-size: 13px; font-weight: 400; }
.plan-chip:has(input:checked) { border-color: #626e9c; }
.plan-chip input:checked + span { background: #eff1f8; color: #52618b; }
.plan-chip:hover { border-color: #8c98b9; }

/* 单选卡片与条件内容；隐藏条件同时由 JS 停用其表单栏位。 */
.timing-options, .stay-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.party-options { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.plan-choice { display: block; position: relative; border: 1px solid #d3d8e5; border-radius: 6px; background: #fff; cursor: pointer; min-width: 0; transition: background .2s, border-color .2s, box-shadow .2s; }
.choice-copy { display: block; padding: 23px 18px 20px; }
.choice-copy strong { display: block; font-size: 18px; font-weight: 650; line-height: 1.65; padding-right: 13px; margin-bottom: 5px; }
.choice-copy small { display: block; font-size: 14px; font-weight: 400; line-height: 1.8; color: #667188; }
.plan-choice .choice-check { width: 18px; height: 18px; right: 9px; top: 9px; }
.plan-choice .choice-check .icon { width: 12px; height: 12px; }
.plan-choice:hover { border-color: #98a3c2; background: #fafbfe; }
.plan-choice:has(input:checked) { border-color: #626e9c; background: #f1f2f8; box-shadow: 0 0 0 1px #626e9c; }
.plan-choice:has(input[aria-invalid='true']) { border-color: #b74e26; }
.stay-price { display: block; margin-top: 13px; color: #52618b; font-size: 15px; font-weight: 600; }
#own-stay-note { margin-top: 17px; margin-bottom: 0; }
.party-options .choice-copy { padding: 24px 14px 18px; }
.party-options .choice-copy strong { font-size: 17px; padding-right: 0; }
.conditional-panel { min-width: 0; margin: 25px 0 0; padding: 20px 23px 23px; border: 0; border-left: 3px solid #8491b8; border-radius: 0 6px 6px 0; background: #f6f7fa; }
.panel-legend { padding: 0 8px 0 0; font-size: 17px; line-height: 1.7; font-weight: 650; color: #485575; }
.conditional-panel > .field-hint:last-child { margin-bottom: 0; font-size: 15px; }
.conditional-panel:not([hidden]) { animation: plan-panel-enter .28s ease-out; }
.timing-flex { align-self: center; margin-top: 28px; }
.timing-days { margin-top: 24px; margin-bottom: 0; align-items: end; }
.days-hint { margin: 0 0 7px; font-size: 15px; }
.children-ages { border: 0; border-top: 1px solid #dfe3ed; margin: 24px 0 0; padding: 20px 0 0; min-width: 0; }
.children-ages > .field-hint { font-size: 15px; margin: 8px 0 18px; }
.age-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
#party-hint { margin-bottom: 0; font-size: 15px; }
#plan-preferences .form-row { margin-top: 8px; }
.phone-row { grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); }

/* 清楚的错误定位与本机摘要，没有真实询价或预订提交。 */
.field-error { color: #a63f1a; background: #fff4ed; border-left: 3px solid #b74e26; border-radius: 0 5px 5px 0; padding: 10px 13px; font-size: 15px; line-height: 1.7; margin: 0 0 13px; scroll-margin-top: 155px; }
.field-error.is-error-target { background: #ffeadc; box-shadow: 0 0 0 2px #b74e262b; }
.field-error:focus { outline: 2px solid #b74e26; outline-offset: 3px; }
.form-error { border-left: 3px solid #b74e26; padding: 19px 22px; margin-bottom: 30px; background: #fff1e9; color: #a63f1a; font-size: 16px; }
.form-error > p { font-size: 15px; line-height: 1.8; margin: 8px 0 0; }
.form-error ul { padding-left: 18px; margin: 8px 0 0; }
.form-error button { min-height: 44px; padding: 7px 0; border: 0; background: transparent; color: #a63f1a; text-align: left; line-height: 1.7; font-size: 15px; text-decoration: underline; text-underline-offset: 4px; }
.plan-submit-notice { position: fixed; z-index: 90; top: 108px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); margin: 0; padding: 13px 20px; border: 1px solid #e6bdac; border-radius: 6px; background: #fff4ed; color: #893d21; box-shadow: 0 5px 22px #3036441c; font-size: 16px; font-weight: 600; line-height: 1.7; overflow-wrap: anywhere; pointer-events: none; }
.plan-submit-notice.is-dismissible { display: flex; align-items: center; gap: 12px; padding-right: 8px; pointer-events: auto; }
.plan-submit-notice.is-dismissible[hidden] { display: none; }
.plan-submit-notice.is-success { border-color: #b7c3a8; background: #f3f7ef; color: #2f5d3a; }
.plan-submit-notice-close { flex-shrink: 0; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.plan-submit-bar { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.plan-submit-bar p { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.plan-submit-bar small { display: block; font-size: 14px; color: #667188; }
.plan-submit-bar .button { min-height: 56px; flex-shrink: 0; }
.form-disclosure { color: #667188; font-size: 14px; line-height: 1.85; margin: 22px 0 0; }
.form-disclosure a { color: #52618b; text-decoration: underline; text-underline-offset: 3px; }
.plan-result { border: 1px solid #dfe3ed; border-radius: 8px; background: #f6f7fa; padding: 38px; }
.result-mark { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: #e4e7ef; color: #626e9c; margin-bottom: 22px; }
.plan-result h2 { font-size: 33px; line-height: 1.4; }
.plan-result > p { color: #606c83; font-size: 17px; }
.plan-result dl { display: grid; grid-template-columns: 125px minmax(0,1fr); gap: 16px 20px; border-block: 1px solid #dfe3ed; padding-block: 25px; margin: 25px 0; }
.plan-result dt { color: #667188; font-size: 15px; }
.plan-result dd { margin: 0; font-size: 17px; color: #303644; white-space: pre-wrap; overflow-wrap: anywhere; }
.result-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* 桌面草稿侧栏；手机放回内容流，不遮挡问题。 */
.plan-aside { position: sticky; top: 112px; max-height: calc(100dvh - 132px); border: 1px solid #dfe3ed; border-radius: 7px; overflow: auto; background: #fff; }
.plan-aside-visual .scene { aspect-ratio: 1.75; }
.plan-aside-body { padding: 25px; }
.plan-aside .eyebrow { font-size: 13px; letter-spacing: .08em; }
.plan-aside h2 { font-size: 25px; line-height: 1.4; margin-bottom: 25px; }
.draft-details { margin: 0; }
.draft-details dt { font-size: 13px; color: #667188; margin-top: 18px; }
.draft-details dd { font-size: 15px; line-height: 1.8; color: #424b66; margin: 4px 0 0; overflow-wrap: anywhere; }
.plan-aside-note { display: flex; gap: 10px; border-top: 1px solid #dfe3ed; margin-top: 25px; padding-top: 22px; color: #626e9c; }
.plan-aside-note .icon { width: 20px; flex-shrink: 0; margin-top: 3px; }
.plan-aside-note p { font-size: 14px; line-height: 1.85; margin: 0 0 20px; }
.plan-aside .text-link { font-size: 14px; white-space: normal; }
.aside-disclosure { display: block; margin-top: 13px; color: #667188; font-size: 13px; line-height: 1.85; }
@keyframes plan-panel-enter { from { opacity: 0; transform: translateY(-7px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width:1180px) {
  .plan-layout { grid-template-columns: minmax(0,1fr) 255px; gap: 32px; }
  .destinations-choice { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .image-choice .scene { aspect-ratio: 2; }
  .party-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .choice-copy { padding-inline: 14px; }
  .plan-aside-body { padding: 21px; }
  .plan-submit-bar { flex-direction: column; align-items: stretch; gap: 17px; }
}
@media (max-width:960px) {
  .plan-layout { grid-template-columns: 1fr; gap: 42px; }
  .destinations-choice { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
  .image-choice .scene { aspect-ratio: 1.5; }
  .plan-aside { position: static; max-height: none; }
  .plan-aside-visual { display: none; }
  .draft-details { display: grid; grid-template-columns: 110px minmax(0,1fr); column-gap: 15px; row-gap: 12px; }
  .draft-details dt, .draft-details dd { margin: 0; }
  .plan-aside h2 { margin-bottom: 20px; }
  .plan-aside-note { margin-top: 22px; }
}
@media (max-width:700px) {
  .plan-header { padding-bottom: 30px; }
  .plan-header h1 { font-size: 35px; letter-spacing: -.035em; margin-bottom: 14px; }
  .plan-header > p { font-size: 17px; }
  .plan-desktop-break { display: none; }
  .plan-intro-notes { gap: 10px 18px; padding-bottom: 22px; }
  .plan-intro-notes > span { font-size: 13px; }
  .plan-layout { padding-bottom: 45px; }
  .plan-section { padding-bottom: 32px; margin-bottom: 32px; scroll-margin-top: 96px; }
  .plan-section > legend { font-size: 25px; line-height: 1.5; }
  .plan-required { font-size: 13px; margin-left: 8px; }
  .plan-section > legend .optional { font-size: 13px; }
  .field-hint { font-size: 16px; margin-bottom: 19px; }
  .destinations-choice { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
  .image-choice .scene { aspect-ratio: 1.65; }
  .destination-choice-copy { padding: 11px 7px 13px; }
  .destination-choice-copy strong { font-size: 18px; }
  .destination-choice-copy small { font-size: 13px; }
  .plan-chips { gap: 9px; }
  .plan-chip > span { font-size: 15px; padding: 10px 12px; }
  .check-line { font-size: 16px; min-height: 48px; }
  .check-line input { width: 21px; height: 21px; }
  .timing-options { grid-template-columns: 1fr; gap: 11px; }
  .timing-options .choice-copy { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 18px 38px 18px 16px; }
  .timing-options .choice-copy strong { font-size: 17px; padding-right: 0; margin: 0; }
  .timing-options .choice-copy small { font-size: 13px; }
  .timing-options .choice-check { top: calc(50% - 9px); right: 12px; }
  .stay-options { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .choice-copy { padding: 23px 13px 17px; }
  .choice-copy strong { font-size: 18px; }
  .choice-copy small { font-size: 13px; }
  .stay-price { font-size: 13px; line-height: 1.85; margin-top: 10px; }
  .form-row, .form-row-three, .phone-row { grid-template-columns: 1fr; gap: 19px; }
  .form-row { margin-bottom: 19px; }
  .conditional-panel { padding: 16px 17px 20px; margin-top: 23px; }
  .conditional-panel .field-hint { font-size: 14px; }
  .timing-flex { margin: 0; }
  .timing-days { gap: 12px; margin-bottom: 0; }
  .days-hint { margin: 0; }
  .age-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px 12px; }
  .age-grid .field-label { font-size: 15px; }
  .age-grid .sh-select-trigger { font-size: 16px; padding-inline: 10px; }
  .plan-submit-bar { position: static; background: #fff; padding: 15px 0 calc(15px + env(safe-area-inset-bottom)); gap: 11px; }
  .plan-submit-bar p { font-size: 16px; }
  .plan-submit-bar small { font-size: 13px; }
  .plan-submit-bar .button { width: 100%; min-height: 54px; font-size: 17px; }
  .form-disclosure { margin-top: 13px; }
  .form-error { padding: 16px; }
  .plan-submit-notice { top: 84px; padding: 11px 15px; font-size: 15px; max-width: calc(100% - 24px); }
  .plan-result { padding: 25px 20px; }
  .plan-result h2 { font-size: 28px; }
  .plan-result dl { grid-template-columns: 1fr; gap: 4px; }
  .plan-result dd { margin-bottom: 16px; }
  .result-buttons { flex-direction: column; }
}
@media (max-width:360px) {
  .plan-header h1 { font-size: 31px; }
  .plan-section > legend { font-size: 23px; }
  .timing-options .choice-copy { display: block; padding-block: 14px; }
  .timing-options .choice-copy strong { margin-bottom: 3px; }
  .stay-price { font-size: 13px; }
  .choice-copy strong { font-size: 17px; }
  .draft-details { grid-template-columns: 95px minmax(0,1fr); }
}
@media (prefers-reduced-motion:reduce) {
  .conditional-panel:not([hidden]) { animation: none; }
  .plan-choice, .plan-chip > span, .image-choice { transition: none; }
}
/* 联络资料同时展示，可填写多种，不单独要求每一栏必填。 */
.contact-name-field { max-width: 520px; margin-bottom: 24px; }
.contact-fields { display: grid; gap: 24px; }
.contact-field { min-width: 0; border: 0; margin: 0; padding: 0; }
.contact-field-title { display: flex; align-items: center; gap: 8px; padding: 0; }
.contact-field-title .icon { width: 20px; height: 20px; color: #626e9c; flex-shrink: 0; }
#contact-phone > legend { margin-bottom: 13px; }
@media(max-width:700px) { .contact-fields { gap: 22px; } }

/* 自定义抵达日期：PC 下拉面板、移动端底部抽屉 */
.plan-date { position: relative; min-width: 0; }
.plan-date-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 13px 15px;
  border: 1px solid #d3d8e5;
  border-radius: 6px;
  background: #fff;
  color: #303644;
  font: inherit;
  font-size: 17px;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.plan-date-trigger .plan-date-text { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plan-date-trigger .plan-date-text.is-placeholder { color: #788299; font-weight: 400; }
.plan-date-trigger .icon { width: 20px; height: 20px; color: #626e9c; flex-shrink: 0; }
.plan-date-trigger:hover { border-color: #98a3c2; }
.plan-date-trigger:focus-visible,
.plan-date-trigger[aria-expanded='true'] {
  border: 1px solid #626e9c;
  box-shadow: 0 0 0 3px #626e9c22;
  outline: none;
}
.plan-date:has([aria-invalid='true']) .plan-date-trigger { border-color: #b74e26; }
.plan-date-backdrop {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: #30364455;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
}
.plan-date-panel {
  position: absolute;
  z-index: 96;
  top: calc(100% + 8px);
  left: 0;
  width: min(100%, 336px);
  padding: 16px;
  border: 1px solid #dfe3ed;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 36px #3036441a;
}
.plan-date-sheet-bar { display: none; }
.plan-date-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}
.plan-date-caption {
  margin: 0;
  flex: 1;
  text-align: center;
  font-size: 16px;
  font-weight: 650;
  color: #303644;
  letter-spacing: -.01em;
}
.plan-date-nav-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid #d3d8e5;
  border-radius: 6px;
  background: #f6f7fa;
  color: #485575;
  transition: background .2s, border-color .2s, color .2s;
}
.plan-date-nav-btn .icon { width: 18px; height: 18px; }
.plan-date-nav-btn:hover { border-color: #98a3c2; background: #eff1f8; color: #303644; }
.plan-date-nav-btn:disabled { opacity: .4; cursor: not-allowed; }
.plan-date-weekdays {
  display: grid;
  grid-template-columns: repeat(7,minmax(0,1fr));
  gap: 2px;
  margin-bottom: 6px;
}
.plan-date-weekdays span {
  display: grid;
  place-items: center;
  min-height: 32px;
  font-size: 13px;
  font-weight: 600;
  color: #667188;
}
.plan-date-grid {
  display: grid;
  grid-template-columns: repeat(7,minmax(0,1fr));
  gap: 2px;
}
.plan-date-day {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  min-height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #303644;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.plan-date-day:hover:not(:disabled):not(.is-selected) { background: #eff1f8; }
.plan-date-day.is-outside { color: #a8b0c2; }
.plan-date-day.is-today:not(.is-selected) {
  color: #52618b;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px #8491b8;
}
.plan-date-day.is-selected {
  background: #626e9c;
  color: #fff;
  font-weight: 650;
}
.plan-date-day:disabled {
  color: #c5cbda;
  cursor: not-allowed;
  background: transparent;
}
.plan-date-day:focus-visible {
  outline: 2px solid #626e9c;
  outline-offset: 1px;
}
.plan-date-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e8ebf2;
}
.plan-date-action {
  min-height: 40px;
  margin: 0;
  padding: 6px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #52618b;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.plan-date-action-primary {
  text-decoration: none;
  background: #eff1f8;
  color: #485575;
  padding-inline: 16px;
}
.plan-date-action-primary:hover { background: #e4e7ef; }
.plan-date-action:hover { color: #303644; }
@media (max-width: 700px) {
  .plan-date-panel {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    z-index: 96;
    padding: 10px 18px calc(18px + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 32px #30364422;
  }
  .plan-date-sheet-bar {
    display: block;
    width: 40px;
    height: 4px;
    margin: 2px auto 14px;
    border-radius: 999px;
    background: #c5cbda;
  }
  .plan-date-caption { font-size: 17px; }
  .plan-date-day { min-height: 44px; font-size: 16px; }
  .plan-date-weekdays span { min-height: 28px; }
  .plan-date-actions { margin-top: 10px; }
  .plan-date-action { min-height: 44px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .plan-date-trigger,
  .plan-date-day,
  .plan-date-nav-btn { transition: none; }
}
