:root{--chat-teal: #0e5b73;--chat-teal-dark: #0b4b60;--chat-khaki: #d5c58a;--chat-bg: #eceff3;--chat-surface: #ffffff;--chat-border: #dde3e9;--chat-text: #1f2937;--chat-muted: #64748b}.report-chat-page{min-height:100dvh;padding-top:4rem;background:var(--chat-bg)}.chat-shell{display:flex;flex-direction:column;height:calc(100dvh - 4rem);background:var(--chat-bg);overflow:hidden}.chat-header{display:flex;align-items:center;gap:.65rem;padding:.6rem .85rem;background:var(--chat-surface);border-bottom:1px solid var(--chat-border);flex-shrink:0}.chat-back{display:inline-flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;margin-left:-.35rem;border-radius:999px;color:var(--chat-teal);flex-shrink:0}.chat-back:hover{background:#eef2f5}.chat-back svg{width:1.35rem;height:1.35rem}.chat-avatar{display:grid;place-items:center;width:2.35rem;height:2.35rem;border-radius:999px;background:var(--chat-teal);color:var(--chat-khaki);font-weight:700;font-size:1rem;flex-shrink:0}.chat-identity{min-width:0;flex:1}.chat-name{margin:0;font-size:.95rem;font-weight:700;color:var(--chat-text);line-height:1.2}.chat-status{margin:0;font-size:.72rem;color:var(--chat-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-actions{display:flex;align-items:center;gap:.4rem;flex-shrink:0}.chat-mode-link,.chat-reset{font-size:.72rem;font-weight:600;color:var(--chat-teal);background:#eef2f5;border-radius:999px;padding:.45rem .7rem;min-height:34px;white-space:nowrap;border:none;text-decoration:none;cursor:pointer}.chat-mode-link:hover,.chat-reset:hover{background:#e2e9ee}@media (max-width: 420px){.chat-reset{display:none}}.chat-progress{height:3px;background:#dbe2e8;flex-shrink:0}.chat-progress span{display:block;height:100%;width:0;background:var(--chat-teal);transition:width .35s ease}.chat-messages{flex:1;min-height:0;overflow-y:auto;padding:1rem .85rem 1.25rem;display:flex;flex-direction:column;gap:.4rem;background-image:radial-gradient(#d7dee5 1px,transparent 1px);background-size:18px 18px;overscroll-behavior:contain}.chat-row{display:flex;align-items:flex-end;gap:.4rem;max-width:100%}.chat-row.is-bot{justify-content:flex-start}.chat-row.is-bot.is-continuation{padding-left:2rem}.chat-row.is-user{justify-content:flex-end}.chat-row-avatar{width:1.6rem;height:1.6rem;border-radius:999px;background:var(--chat-teal);color:var(--chat-khaki);display:grid;place-items:center;font-size:.65rem;font-weight:700;flex-shrink:0}.chat-bubble{max-width:85%;padding:.55rem .8rem;border-radius:.9rem;font-size:.925rem;line-height:1.45;color:var(--chat-text);background:var(--chat-surface);box-shadow:0 1px 1px #0f172a12;white-space:pre-wrap;overflow-wrap:anywhere;animation:chat-in .18s ease-out}.chat-row.is-bot .chat-bubble{border-top-left-radius:.25rem}.chat-row.is-user .chat-bubble{background:var(--chat-teal);color:#fff;border-top-right-radius:.25rem}.chat-bubble.is-error{background:#fef2f2;color:#b91c1c;border:1px solid #fecaca;box-shadow:none}.chat-bubble.is-muted{background:#f1f5f9;color:var(--chat-muted);font-size:.85rem;box-shadow:none}.chat-typing{display:inline-flex;align-items:center;gap:.22rem;padding:.7rem .85rem;background:var(--chat-surface);border-radius:.25rem .9rem .9rem;box-shadow:0 1px 1px #0f172a12}.chat-typing span{width:.34rem;height:.34rem;border-radius:999px;background:#9aa7b4;animation:chat-blink 1.1s infinite ease-in-out}.chat-typing span:nth-child(2){animation-delay:.15s}.chat-typing span:nth-child(3){animation-delay:.3s}@keyframes chat-in{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}@keyframes chat-blink{0%,80%,to{opacity:.35;transform:translateY(0)}40%{opacity:1;transform:translateY(-2px)}}.chat-chips{display:flex;flex-wrap:wrap;gap:.45rem;padding-bottom:.55rem}.chat-chips:empty{display:none}.chat-chip{display:flex;flex-direction:column;align-items:flex-start;gap:.15rem;max-width:100%;min-width:0;min-height:44px;padding:.55rem .9rem;border:1px solid var(--chat-teal);border-radius:.85rem;background:var(--chat-surface);color:var(--chat-teal);font-size:.875rem;font-weight:600;line-height:1.3;text-align:left;text-decoration:none;cursor:pointer;transition:background .15s ease,color .15s ease}.chat-chip--option{width:100%}.chat-chip:hover,.chat-chip:focus-visible{background:var(--chat-teal);color:#fff}.chat-chip small{font-size:.72rem;font-weight:400;color:var(--chat-muted);white-space:normal;overflow-wrap:anywhere}.chat-chip:hover small,.chat-chip:focus-visible small{color:#fffc}.chat-chip.is-ghost{border-color:var(--chat-border);color:var(--chat-muted)}.chat-chip.is-ghost:hover{background:#eef2f5;color:var(--chat-text)}.chat-chip.is-accept{border-color:#0e5b73;background:var(--chat-teal);color:#fff}.chat-chip.is-accept:hover{background:var(--chat-teal-dark)}.chat-chip.is-link{border-color:transparent;background:transparent;color:var(--chat-muted);text-decoration:underline;font-weight:500;padding-left:.35rem;padding-right:.35rem}.chat-chips.is-confirm{flex-wrap:wrap;align-items:center;justify-content:center;gap:.75rem 1rem;padding-bottom:.6rem}.chat-chips.is-confirm .chat-chip{justify-content:center;align-items:center}.chat-chips.is-confirm .chat-chip.is-link{flex:0 0 auto;min-height:46px;padding:0 .35rem;text-align:center;white-space:normal}.chat-chips.is-confirm .chat-chip.is-accept{flex-shrink:0;min-height:46px;padding:.65rem 1.35rem;border-radius:999px;box-shadow:0 6px 16px -8px #0e5b7399}.chat-datepicker{align-self:stretch;max-width:24rem;margin-left:2rem;padding:.7rem .75rem .8rem;background:var(--chat-surface);border:1px solid var(--chat-border);border-radius:.25rem .9rem .9rem;box-shadow:0 1px 1px #0f172a12;animation:chat-in .18s ease-out}.chat-datepicker .dp-head{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-bottom:.45rem}.chat-datepicker .dp-title{margin:0;padding:.25rem .5rem;border:none;border-radius:.5rem;background:transparent;font-size:.85rem;font-weight:700;color:var(--chat-text);cursor:pointer}.chat-datepicker .dp-title:hover{background:#eef2f5}.chat-datepicker .dp-title:after{content:"▾";margin-left:.3rem;font-size:.7rem;color:var(--chat-muted)}.chat-datepicker .dp-nav{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;border:none;border-radius:999px;background:#eef2f5;color:var(--chat-teal);font-size:1.05rem;line-height:1;cursor:pointer}.chat-datepicker .dp-nav:hover{background:#e2e9ee}.chat-datepicker .dp-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:.15rem}.chat-datepicker .dp-weekday{padding:.15rem 0;text-align:center;font-size:.65rem;font-weight:600;color:var(--chat-muted)}.chat-datepicker .dp-day{display:inline-flex;align-items:center;justify-content:center;aspect-ratio:1;min-height:2rem;border:1px solid transparent;border-radius:999px;background:transparent;color:var(--chat-text);font-size:.8rem;font-weight:500;cursor:pointer;transition:background .15s ease,color .15s ease}.chat-datepicker .dp-day:hover{background:#eef2f5;color:var(--chat-teal)}.chat-datepicker .dp-day.is-today{border-color:var(--chat-teal);color:var(--chat-teal);font-weight:700}.chat-datepicker .dp-day.is-empty{visibility:hidden;pointer-events:none}.chat-datepicker .dp-chooser{padding-top:.15rem}.chat-datepicker .dp-months-pane,.chat-datepicker .dp-years-pane{display:grid;gap:.45rem}.chat-datepicker .dp-month-grid,.chat-datepicker .dp-year-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:.25rem}.chat-datepicker .dp-month,.chat-datepicker .dp-year{padding:.5rem .25rem;border:1px solid transparent;border-radius:.5rem;background:#f6f8fa;color:var(--chat-text);font-size:.75rem;font-weight:600;cursor:pointer;transition:background .15s ease,color .15s ease}.chat-datepicker .dp-month:hover,.chat-datepicker .dp-year:hover{background:#eef2f5;color:var(--chat-teal)}.chat-datepicker .dp-month.is-active,.chat-datepicker .dp-year.is-active{background:var(--chat-teal);border-color:var(--chat-teal);color:#fff}.chat-datepicker .dp-year-row{display:flex;justify-content:center}.chat-datepicker .dp-year-trigger{min-height:2.25rem;padding:.35rem .9rem;border:1px solid var(--chat-border);border-radius:.5rem;background:#f6f8fa;color:var(--chat-text);font-size:.8rem;font-weight:600;cursor:pointer;transition:background .15s ease}.chat-datepicker .dp-year-trigger:hover{background:#eef2f5;color:var(--chat-teal)}.chat-datepicker .dp-year-trigger:after{content:"▾";margin-left:.3rem;font-size:.7rem;color:var(--chat-muted)}.chat-composer{flex-shrink:0;background:var(--chat-surface);border-top:1px solid var(--chat-border);padding:.55rem .75rem calc(.55rem + env(safe-area-inset-bottom,0px))}.chat-input-row{display:flex;align-items:flex-end;gap:.45rem}.chat-icon-btn,.chat-send{display:inline-flex;align-items:center;justify-content:center;width:2.75rem;height:2.75rem;flex-shrink:0;border:none;border-radius:999px;cursor:pointer;background:#eef2f5;color:var(--chat-teal);font-size:.72rem;font-weight:600}.chat-icon-btn svg,.chat-send svg{width:1.3rem;height:1.3rem}.chat-icon-btn:hover{background:#e2e9ee}.chat-send{background:var(--chat-teal);color:#fff}.chat-send:hover{background:var(--chat-teal-dark)}.chat-send[disabled],.chat-icon-btn[disabled]{opacity:.45;cursor:not-allowed}.chat-skip{width:auto;padding:0 .9rem;border-radius:999px;background:transparent;border:1px dashed var(--chat-border);color:var(--chat-muted)}.chat-field{flex:1;min-width:0}.chat-field textarea,.chat-field input{width:100%;font-size:16px;line-height:1.4;color:var(--chat-text);background:#f6f8fa;border:1px solid var(--chat-border);border-radius:1.1rem;padding:.65rem .9rem;outline:none;transition:border-color .15s ease,background .15s ease;font-family:inherit}.chat-field textarea{resize:none;max-height:9rem;min-height:2.75rem}.chat-field textarea:focus,.chat-field input:focus{border-color:var(--chat-teal);background:#fff}.chat-field input[type=date]{min-height:2.75rem;appearance:none}.chat-hint{margin:.4rem 0 0;padding:0 .2rem;font-size:.72rem;line-height:1.35;color:var(--chat-muted);min-height:1rem}.chat-file-list{display:flex;flex-direction:column;gap:.35rem;min-width:0}.chat-file-chip{display:flex;align-items:center;gap:.55rem;padding:.55rem .75rem;border:1px solid var(--chat-border);border-radius:1rem;background:#f6f8fa;font-size:.85rem;color:var(--chat-text);min-width:0}.chat-file-chip .file-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.chat-file-chip .file-size{color:var(--chat-muted);font-size:.72rem;flex-shrink:0}.chat-file-chip button{border:none;background:transparent;color:#b91c1c;font-size:.75rem;font-weight:600;cursor:pointer;flex-shrink:0}.chat-summary{align-self:stretch;background:var(--chat-surface);border:1px solid var(--chat-border);border-radius:1rem;padding:.9rem 1rem;margin:.35rem 0;box-shadow:0 1px 2px #0f172a0f;animation:chat-in .18s ease-out}.chat-summary h3{margin:0 0 .15rem;font-size:.95rem;font-weight:700;color:var(--chat-text)}.chat-summary .summary-note{margin:0 0 .75rem;font-size:.75rem;color:var(--chat-muted)}.chat-summary dl{margin:0;display:flex;flex-direction:column;gap:.55rem}.chat-summary .summary-row{display:grid;grid-template-columns:1fr auto;gap:.25rem .75rem;padding-bottom:.55rem;border-bottom:1px solid #f1f5f9}.chat-summary .summary-row:last-child{border-bottom:none;padding-bottom:0}.chat-summary dt{font-size:.72rem;text-transform:uppercase;letter-spacing:.03em;color:var(--chat-muted);font-weight:600}.chat-summary dd{margin:0;grid-column:1;font-size:.9rem;color:var(--chat-text);overflow-wrap:anywhere}.chat-summary .summary-edit{grid-row:1 / span 2;grid-column:2;align-self:center;border:none;background:transparent;color:var(--chat-teal);font-size:.75rem;font-weight:600;cursor:pointer;padding:.35rem .25rem}.chat-summary .summary-edit:hover{text-decoration:underline}.chat-submit{width:100%;margin-top:.85rem;min-height:48px;border:none;border-radius:.85rem;background:var(--chat-teal);color:#fff;font-size:.95rem;font-weight:700;cursor:pointer;transition:background .15s ease}.chat-submit:hover{background:var(--chat-teal-dark)}.chat-success{align-self:stretch;background:var(--chat-surface);border:1px solid var(--chat-border);border-radius:1rem;padding:1.15rem;text-align:center;box-shadow:0 6px 24px -12px #0f172a40;animation:chat-in .2s ease-out}.chat-success .success-icon{width:3rem;height:3rem;margin:0 auto .6rem;border-radius:999px;background:#dcfce7;color:#15803d;display:grid;place-items:center;font-size:1.5rem;font-weight:700}.chat-success h3{margin:0 0 .25rem;font-size:1.1rem;font-weight:800;color:var(--chat-text)}.chat-success p{margin:0;font-size:.85rem;color:var(--chat-muted);line-height:1.5}.chat-success .success-code{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.6rem;margin:.85rem 0;padding:.7rem .85rem;border:1px dashed var(--chat-border);border-radius:.85rem;background:#f8fafc;text-align:left}.chat-success .success-code code{font-size:1.05rem;font-weight:800;color:var(--chat-teal);letter-spacing:.03em;overflow-wrap:anywhere}.chat-success .success-code-actions{display:flex;align-items:center;gap:.35rem;margin-left:auto;flex-shrink:0}.chat-success .success-code button,.chat-success .success-code-link{border:none;border-radius:.6rem;background:var(--chat-teal);color:#fff;font-size:.75rem;font-weight:700;padding:.45rem .7rem;cursor:pointer;flex-shrink:0;text-decoration:none;white-space:nowrap}.chat-success .success-code-link{background:#eef2f5;color:var(--chat-teal)}.chat-success .success-code-link:hover{background:#e2e9ee}.chat-success .success-rating{margin:.9rem 0;text-align:left}.chat-success .success-rating-prompt{margin:0;text-align:center;font-size:.82rem;font-weight:700;color:var(--chat-text)}.chat-success .success-stars{display:flex;align-items:center;justify-content:center;gap:.15rem;margin-top:.35rem}.chat-success .success-star{border:none;background:none;padding:0 .15rem;font-size:1.9rem;line-height:1;color:#d1d5db;cursor:pointer;transition:color .15s ease,transform .15s ease}.chat-success .success-star:hover{transform:translateY(-1px)}.chat-success .success-star.is-active{color:#f59e0b}.chat-success .success-rating-status{min-height:1rem;margin:.15rem 0 0;text-align:center;font-size:.72rem;font-weight:700;color:var(--chat-teal)}.chat-success .success-rating-note-label{display:block;width:100%;margin-top:.6rem;text-align:left;font-size:.78rem;font-weight:700;color:var(--chat-text)}.chat-success .success-rating-note{width:100%;margin-top:.25rem;border:1px solid var(--chat-border);border-radius:.65rem;padding:.55rem .7rem;background:#f8fafc;color:var(--chat-text);font:inherit;font-size:.82rem;resize:vertical}.chat-success .success-rating-note:focus{border-color:var(--chat-teal);outline:none}.chat-success .success-rating-submit{width:100%;margin-top:.5rem;border:none;border-radius:.7rem;padding:.6rem;background:var(--chat-teal);color:#fff;font-size:.82rem;font-weight:700;cursor:pointer}.chat-success .success-rating-submit:disabled{opacity:.6;cursor:default}.chat-success .success-rating-done{margin:0;text-align:center;font-size:.85rem;font-weight:700;color:#15803d}@media (min-width: 768px){.report-chat-page{padding:5.5rem 1rem 2rem}.chat-shell{max-width:46rem;margin:0 auto;height:calc(100dvh - 7.5rem);border:1px solid var(--chat-border);border-radius:1.15rem;box-shadow:0 28px 60px -30px #0f172a73}.chat-messages{padding:1.25rem 1.35rem 1.5rem}.chat-bubble{max-width:75%}.chat-composer{padding:.7rem 1rem .8rem}}.chat-chip:focus-visible,.chat-icon-btn:focus-visible,.chat-send:focus-visible,.chat-submit:focus-visible,.chat-back:focus-visible,.chat-mode-link:focus-visible,.chat-reset:focus-visible,.chat-datepicker .dp-nav:focus-visible,.chat-datepicker .dp-title:focus-visible,.chat-datepicker .dp-day:focus-visible,.chat-datepicker .dp-month:focus-visible,.chat-datepicker .dp-year:focus-visible,.chat-datepicker .dp-year-trigger:focus-visible,.chat-summary .summary-edit:focus-visible,.chat-success button:focus-visible,.chat-success a:focus-visible{outline:2px solid var(--chat-khaki);outline-offset:2px}.visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media (prefers-reduced-motion: reduce){.chat-bubble,.chat-summary,.chat-success,.chat-datepicker,.chat-typing span{animation:none}.chat-progress span{transition:none}}
