/* MindChat AI · structured task configurator v1 */
html.mc-task-config-open { overflow: hidden !important; }
html.mc-task-config-open body { overflow: hidden !important; }
.mc-task-config-root { position: fixed; inset: 0; z-index: 12000; display: none; color: #f5ead9; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
.mc-task-config-root.is-open { display: block; }
.mc-task-config-backdrop { position: absolute; inset: 0; background: rgba(3, 2, 1, .74); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.mc-task-config-panel { position: relative; display: flex; width: min(100%, 540px); height: 100%; margin: 0 auto; flex-direction: column; overflow: hidden; background: linear-gradient(170deg, #1d1710, #110e0b 54%, #0c0a08); box-shadow: 0 0 60px rgba(0,0,0,.55); }
.mc-task-config-head { display: flex; flex: 0 0 auto; align-items: flex-start; justify-content: space-between; gap: 12px; padding: calc(18px + env(safe-area-inset-top, 0px)) 16px 14px; border-bottom: 1px solid rgba(240,162,64,.2); }
.mc-task-kicker { display: block; color: #f0b45d; font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.mc-task-config-head h2 { margin: 4px 0 3px; color: #ffe0a1; font-size: 24px; line-height: 1.25; letter-spacing: -.04em; }
.mc-task-config-head p { max-width: 430px; margin: 0; color: #a99d8c; font-size: 12px; line-height: 1.55; }
.mc-task-close { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; color: #f3d39d; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.13); border-radius: 14px; font-size: 27px; line-height: 1; cursor: pointer; }
.mc-task-config-body { min-height: 0; flex: 1 1 auto; overflow-y: auto; padding: 13px 14px 22px; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; }
.mc-task-contract { display: grid; gap: 3px; margin-bottom: 12px; padding: 11px 12px; background: linear-gradient(135deg, rgba(240,162,64,.15), rgba(240,162,64,.04)); border: 1px solid rgba(240,162,64,.28); border-radius: 15px; }
.mc-task-contract span, .mc-task-contract small { color: #bba88e; font-size: 11px; line-height: 1.4; }
.mc-task-contract b { overflow-wrap: anywhere; color: #ffd078; font-size: 13px; }
.mc-task-progress { display: grid; gap: 7px; margin: 0 1px 14px; padding: 10px 12px; color: #bba88e; background: linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.02)); border: 1px solid rgba(190,205,224,.18); border-radius: 14px; }
.mc-task-progress > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11px; }
.mc-task-progress > div:first-child b { color: #f4cd82; font-size: 12px; }
.mc-task-progress small { color: #918677; font-size: 10px; line-height: 1.4; }
.mc-task-progress-bar { height: 4px; overflow: hidden; background: rgba(255,255,255,.08); border-radius: 999px; }
.mc-task-progress-bar i { display: block; width: 12.5%; height: 100%; background: linear-gradient(90deg, #cfd9e6, #f0bb5b); border-radius: inherit; box-shadow: 0 0 12px rgba(190,215,241,.35); transition: width .25s ease; }
.mc-task-field { position: relative; scroll-margin-top: 10px; margin-top: 12px; padding: 12px; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.mc-task-field.is-current { border-color: rgba(235,196,119,.56); background: linear-gradient(145deg, rgba(240,162,64,.095), rgba(255,255,255,.035)); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 0 0 1px rgba(174,198,222,.1), 0 9px 24px rgba(90,124,163,.1); }
.mc-task-field.is-passed { border-color: rgba(190,205,224,.18); }
.mc-task-field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.mc-task-field-head strong { display: inline-flex; align-items: center; gap: 7px; color: #f3dfbd; font-size: 14px; line-height: 1.35; }
.mc-task-step { display: inline-grid; width: 21px; height: 21px; place-items: center; flex: 0 0 21px; color: #281a09; background: linear-gradient(145deg, #f6d28a, #d9a54d); border-radius: 7px; font-size: 10px; font-weight: 900; box-shadow: 0 0 0 1px rgba(226,237,247,.24), 0 0 12px rgba(122,158,198,.18); }
.mc-task-field-head small { color: #958979; font-size: 10px; line-height: 1.4; text-align: right; }
.mc-task-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.mc-task-option { display: flex; min-height: 46px; align-items: center; gap: 7px; padding: 8px 9px; color: #cbbba5; background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; font: inherit; font-size: 12px; line-height: 1.3; text-align: left; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.mc-task-option:active { transform: scale(.985); }
.mc-task-option.is-selected { color: #fff0cc; background: linear-gradient(135deg, rgba(240,162,64,.23), rgba(240,162,64,.08)); border-color: rgba(255,190,86,.78); box-shadow: 0 0 0 1px rgba(240,162,64,.08) inset; }
.mc-task-check { display: grid; width: 22px; height: 22px; flex: 0 0 22px; place-items: center; color: #271706; background: transparent; border: 1px solid rgba(240,162,64,.58); border-radius: 7px; font-size: 14px; font-weight: 900; }
.mc-task-option.is-selected .mc-task-check { background: #ffbd53; border-color: #ffbd53; }
.mc-task-option b { display: block; color: inherit; font-size: 12px; }
.mc-task-option small { display: block; margin-top: 2px; color: #a89884; font-size: 10px; line-height: 1.35; }
.mc-task-next { display: flex; min-height: 38px; align-items: center; justify-content: center; gap: 7px; width: 100%; margin-top: 10px; padding: 8px 12px; color: #ead6b5; background: linear-gradient(135deg, rgba(190,205,224,.12), rgba(240,162,64,.12)); border: 1px solid rgba(190,205,224,.34); border-radius: 11px; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; box-shadow: inset 0 1px 0 rgba(255,255,255,.13), 0 0 0 1px rgba(151,178,208,.1), 0 6px 16px rgba(90,124,163,.12); }
.mc-task-next span { color: #f2bd64; font-size: 16px; line-height: 1; }
.mc-task-next:active { transform: scale(.985); }
.mc-task-text, .mc-task-preview { display: block; width: 100%; color: #f5ead9; background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.13); border-radius: 11px; outline: none; font: inherit; font-size: 14px; line-height: 1.55; resize: vertical; }
.mc-task-text { min-height: 82px; padding: 10px; }
.mc-task-text:focus, .mc-task-preview:focus { border-color: rgba(255,190,86,.82); box-shadow: 0 0 0 3px rgba(240,162,64,.12); }
.mc-task-text::placeholder { color: #766d60; }
.mc-task-preview-section { margin-top: 14px; padding: 12px; background: rgba(240,162,64,.055); border: 1px solid rgba(240,162,64,.22); border-radius: 16px; }
.mc-task-preview { min-height: 188px; padding: 10px; color: #ead6b5; font-size: 12px; }
.mc-task-remember { display: flex; min-height: 44px; align-items: center; gap: 8px; margin-top: 11px; color: #bcae9b; font-size: 12px; line-height: 1.45; cursor: pointer; }
.mc-task-remember input { width: 20px; height: 20px; accent-color: #f0a240; }
.mc-task-config-foot { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(12,10,8,.96); border-top: 1px solid rgba(240,162,64,.22); box-shadow: 0 -10px 30px rgba(0,0,0,.24); }
.mc-task-count { color: #ad9c86; font-size: 12px; }
.mc-task-count b { color: #ffd078; font-size: 15px; }
.mc-task-copy { min-height: 46px; padding: 10px 18px; color: #281806; background: linear-gradient(135deg, #ffd16b, #f19c31); border: 0; border-radius: 14px; box-shadow: 0 8px 22px rgba(240,143,30,.2); font: inherit; font-size: 14px; font-weight: 900; cursor: pointer; }
.mc-task-copy:disabled { opacity: .7; cursor: wait; }
.mc-task-toast { position: fixed; right: 16px; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); left: 16px; z-index: 12010; display: none; padding: 11px 14px; color: #f7e9d0; background: rgba(34,27,17,.97); border: 1px solid rgba(240,162,64,.38); border-radius: 13px; box-shadow: 0 14px 36px rgba(0,0,0,.38); font-size: 13px; line-height: 1.4; text-align: center; }
.mc-task-toast.show { display: block; }
.mc-task-close,
.mc-task-option,
.mc-task-copy,
.mc-task-remember {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.13),
    0 0 0 1px rgba(151,178,208,.14),
    0 7px 18px rgba(90,124,163,.16);
}
.mc-task-option.is-selected,
.mc-task-copy {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22),
    0 0 0 1px rgba(225,235,246,.28),
    0 0 22px rgba(113,148,189,.24),
    0 7px 20px rgba(240,162,64,.14);
}
.mc-task-close:focus-visible,
.mc-task-option:focus-visible,
.mc-task-next:focus-visible,
.mc-task-copy:focus-visible,
.mc-task-remember:focus-within {
  outline: 3px solid rgba(228,238,249,.72);
  outline-offset: 2px;
}
@media (max-width: 360px) {
  .mc-task-options { grid-template-columns: 1fr; }
  .mc-task-config-head h2 { font-size: 22px; }
  .mc-task-config-body { padding-inline: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .mc-task-progress-bar i,
  .mc-task-field { transition: none; }
}
@media (min-width: 769px) {
  .mc-task-config-panel { border-inline: 1px solid rgba(240,162,64,.2); }
}
