:root{color-scheme:light;--ink:#243446;--muted:#596778;--line:#d9e0e7;--surface:#f3f6f9;--accent:#176447;--accent-light:#e9f5ef}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;background:var(--surface);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Helvetica Neue","Hiragino Kaku Gothic ProN","Hiragino Sans",Arial,Meiryo,sans-serif;font-size:15px;line-height:1.7;-webkit-font-smoothing:antialiased;overflow-wrap:break-word;line-break:strict}button,input,textarea{font:inherit}button{min-height:44px;cursor:pointer;border:1px solid var(--line);background:white;color:var(--ink);border-radius:10px;padding:8px 14px;font-weight:600}button:disabled{opacity:.5;cursor:default}button:focus-visible,a:focus-visible,textarea:focus-visible{outline:3px solid #6d95d0;outline-offset:2px}a{color:#14553f;text-underline-offset:3px}.assistant-shell{width:min(100%,780px);height:100dvh;min-height:420px;margin:0 auto;display:flex;flex-direction:column;background:white;overflow:hidden}.assistant-header{display:flex;gap:12px;align-items:center;flex:none;padding:16px 20px;border-bottom:1px solid var(--line);background:#fff}.brand-symbol{background:var(--accent);color:#f6faf8;border-radius:12px;width:44px;height:44px;display:grid;place-items:center;font-size:24px;font-weight:700}.brand{flex:1;min-width:0}h1{font-size:17px;line-height:1.5;margin:0;font-feature-settings:"palt" 1}.brand p{font-size:11px;color:var(--muted);margin:3px 0 0}.dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#308361;margin-right:5px}.icon-button{border:0;width:38px;padding:0;font-size:26px;min-height:44px}.messages{flex:1;overflow:auto;min-height:0;padding:20px 20px 12px;scroll-behavior:smooth;overscroll-behavior:contain}.message{margin:0 0 16px;padding:14px 16px;border-radius:14px;max-width:94%;white-space:pre-wrap}.message p{margin:0}.message.assistant{background:var(--surface);border:1px solid #e7ebef;border-top-left-radius:4px}.message.user{margin-left:auto;background:var(--accent);color:#f7faf8;border-top-right-radius:4px;max-width:86%}.message small{display:block;color:var(--muted);font-size:11px;margin-top:8px}.suggestions{display:grid;gap:8px;padding:0 0 14px}.suggestions button{text-align:left;font-size:13px;color:var(--accent);font-weight:600}.suggestions button:hover{background:var(--accent-light)}.composer{padding:12px 20px 8px;border-top:1px solid var(--line);flex:none;background:#fff}#chat-form{display:flex;align-items:flex-end;gap:8px}textarea{font-size:16px;line-height:1.6;flex:1;width:100%;min-width:0;resize:none;border:1px solid #aebac6;border-radius:10px;padding:9px 11px;color:var(--ink);background:white}.send{background:var(--accent);color:#f5faf7;border-color:var(--accent)}.composer-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px}.voice-button{border:0;background:var(--accent-light);color:var(--accent);font-size:13px;padding:6px 12px}.text-button{border:0;padding:4px 6px;font-size:12px;color:var(--muted);font-weight:400}.disclosure{margin:8px 0 2px;font-size:10px;line-height:1.6;color:var(--muted)}footer{padding:8px 20px 12px;display:flex;flex-wrap:wrap;gap:4px 16px;flex:none;background:#fbfcfd;border-top:1px solid #edf0f3;font-size:12px}footer small{flex-basis:100%;font-size:10px;color:var(--muted)}.notice{padding:8px 16px;background:#fff4d9;color:#69470b;font-size:12px;flex:none;border-top:1px solid #efd79d}.evidence-panel{background:#f6faf8;border-top:1px solid #d8e8df;font-size:12px;padding:8px 20px;max-height:130px;overflow:auto;flex:none}.evidence-panel summary{cursor:pointer;font-weight:600;color:var(--accent)}#evidence-list{display:grid;gap:5px;margin-top:7px}#evidence-list a{display:block}.voice-bar{background:#e9f5ef;padding:10px 16px;display:flex;align-items:center;justify-content:space-between;flex:none;font-size:12px;gap:8px}.voice-indicator{display:inline-block;height:8px;width:8px;border-radius:50%;background:#26855a;margin-right:5px}.stop{font-size:12px;color:#982c2c;border-color:#d5aaa5}.sr-only{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}audio{width:100%;max-height:42px}dialog{border:1px solid var(--line);border-radius:16px;padding:24px;width:min(90vw,450px);color:var(--ink);box-shadow:0 20px 80px #172c4c22}dialog::backdrop{background:#1e2d4266}dialog h2{font-size:21px;margin:0 0 16px}dialog p{font-size:14px;line-height:1.8}.dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:20px}[hidden]{display:none!important}@media(max-width:440px){.assistant-header{padding:12px 14px;gap:10px}.messages{padding:16px 14px 10px}.composer{padding:10px 14px 6px}footer{padding:8px 14px}.brand p{font-size:10px}h1{font-size:15px}.message{padding:12px 14px}.brand-symbol{width:38px;height:38px}.evidence-panel{padding:7px 14px}}

.icon-button{min-width:44px}.notice p{margin:0}.notice button{margin-top:8px;font-size:13px}.closed-panel{width:min(100%,780px);min-height:100dvh;margin:auto;padding:32px 24px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:16px;background:white;text-align:center}.closed-panel h1{font-size:22px}.closed-panel p{margin:0;color:var(--muted)}.closed-panel button{width:min(100%,300px)}@media(max-width:440px){.assistant-header .brand-symbol{flex:none}}

/* Compact controls reserve more height for conversation history. */
.voice-button{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:52px;margin:0 0 8px;border:1px solid #145b40;border-radius:14px;background:#176447;color:#f7fbf9;box-shadow:0 3px 10px #173f361c;text-align:left;padding:6px 12px}.voice-button:hover:not(:disabled){background:#0f5038}.voice-button strong{display:block;font-size:16px;line-height:1.5;letter-spacing:.02em}.voice-button small{display:block;font-size:11px;font-weight:400;line-height:1.5;color:#e8f4ed}.voice-action-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#ffffff18;flex:none}.voice-action-icon svg{width:22px;height:22px}.voice-active{background:#8b352d;border-color:#8b352d}.voice-active:hover:not(:disabled){background:#732821}.voice-active small{color:#fff0ee}.text-entry-label{font-size:11px;color:var(--muted);margin:0 0 4px}.composer-actions{align-items:flex-start;margin-top:5px}.composer-actions .disclosure{margin:0;flex:1}.composer-actions .text-button{white-space:nowrap;flex:none;min-height:36px;font-size:11px}.contact-request{width:100%;font-size:14px;min-height:44px;margin-bottom:4px;color:#175f45;background:#f6fbf8;border-color:#9cbaab}
.contact-dialog{width:min(94vw,540px);max-height:90dvh;overflow:auto;padding:22px}.contact-heading{display:flex;justify-content:space-between;align-items:center;gap:8px}.contact-heading h2{margin:0;font-size:21px}.contact-dialog .contact-intro{font-size:13px;margin:12px 0 18px;color:var(--muted)}.contact-dialog fieldset{border:0;margin:0;padding:0;min-width:0}.contact-dialog label:not(.contact-check){display:block;font-size:14px;font-weight:600;margin-bottom:14px}.contact-dialog input:not([type=checkbox]),.contact-dialog select,.contact-dialog textarea{display:block;width:100%;min-height:44px;font:inherit;font-size:16px;line-height:1.6;border:1px solid #aebac6;border-radius:8px;background:white;color:var(--ink);padding:9px 11px;margin-top:5px}.required{font-size:10px;color:#813a2d;font-weight:600;margin-left:5px}.optional{font-size:10px;color:var(--muted);margin-left:5px}.contact-check{display:flex;align-items:flex-start;gap:9px;font-size:12px;line-height:1.7;margin:16px 0 6px;cursor:pointer}.contact-check input{width:20px;height:20px;flex:none;margin:1px 0 0;accent-color:var(--accent)}.contact-hint{font-size:11px!important;color:var(--muted);margin:4px 0 14px}.contact-primary{width:100%;margin-top:12px}.contact-transcript{white-space:pre-wrap;max-height:180px;overflow:auto;background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:12px;font:inherit;font-size:12px}.contact-review-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}#contact-status{padding:10px 12px;border-radius:8px;background:#fff4d9;color:#69470b;font-size:13px}#contact-review-summary{margin:18px 0;padding:16px;background:var(--surface);border-radius:10px}#contact-review-summary dt{font-size:11px;color:var(--muted);margin-top:10px}#contact-review-summary dt:first-child{margin-top:0}#contact-review-summary dd{margin:2px 0 0;font-size:15px;white-space:pre-wrap;overflow-wrap:anywhere}#contact-success h3{font-size:19px;color:var(--accent)}#contact-success .send{width:100%}@media(max-width:440px){.contact-dialog{padding:18px}.contact-heading h2{font-size:19px}.contact-review-actions{flex-direction:column-reverse}.contact-review-actions button{width:100%}}

.contact-copy{font-size:12px;min-height:44px;color:var(--accent);background:#f4faf7;margin-bottom:6px}

a.contact-request{display:flex;align-items:center;justify-content:center;text-align:center;text-decoration:none;font-weight:600;border:1px solid #9cbaab;border-radius:10px;padding:8px 14px}
