:root{color:#342f2b;font-synthesis:none;text-rendering:optimizelegibility;--bg:#f5f1eb;--surface:#fffdf9;--surface-muted:#f0ebe4;--ink:#342f2b;--muted:#766d65;--border:#e4dbd1;--accent:#d8785f;--accent-strong:#b95f49;--accent-soft:#fae3da;--success:#5d8a72;--focus:#3f7fa3;--radius-lg:24px;--radius-md:16px;--radius-sm:10px;--shadow-soft:0 18px 50px #644a3714;background:#f5f1eb;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,PingFang SC,Hiragino Sans GB,Microsoft YaHei,sans-serif}*{box-sizing:border-box}body{background:var(--bg);min-width:320px;min-height:100vh;margin:0}button,input,textarea{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid color-mix(in srgb, var(--focus) 55%, transparent);outline-offset:3px}.app-shell{place-items:center;min-height:100vh;padding:24px 18px;display:grid}.welcome-card{background:var(--surface);border-radius:var(--radius-lg);width:min(100%,520px);box-shadow:var(--shadow-soft);text-align:center;border:1px solid #e4dbd1cc;padding:clamp(30px,8vw,64px) clamp(24px,8vw,58px)}.brand-mark{background:var(--accent);color:#fff8f1;border-radius:15px;place-items:center;width:48px;height:48px;margin:0 auto 20px;font-size:22px;font-weight:700;display:grid}.eyebrow{color:var(--muted);letter-spacing:.12em;margin:0 0 14px;font-size:13px}h1{color:var(--ink);letter-spacing:-.04em;margin:0;font-size:clamp(32px,8vw,48px);line-height:1.15}h1 em{color:var(--accent-strong);font-style:normal}.intro{max-width:31ch;color:var(--muted);margin:22px auto 30px;font-size:16px;line-height:1.8}.primary-button{border-radius:var(--radius-sm);background:var(--accent);color:#fff;border:0;min-height:52px;padding:0 28px;font-weight:650;transition:background .2s,transform .2s;box-shadow:0 8px 20px #d8785f33}.primary-button:hover{background:var(--accent-strong);transform:translateY(-1px)}.privacy-note{color:#9b9087;margin:18px 0 0;font-size:12px}@media (width>=768px){.app-shell{padding:48px}}.app-frame{width:min(100%,760px);margin:0 auto}.notice{background:var(--accent-soft);color:#8b4b3c;border-radius:10px;margin:0 0 12px;padding:10px 12px;font-size:13px;line-height:1.5}.progress-banner{color:var(--accent-strong);background:#fffaf5;border:1px solid #e9d9cd;border-radius:10px;align-items:center;gap:9px;margin:0 0 12px;padding:11px 13px;font-size:13px;line-height:1.5;display:flex}.progress-dot{background:var(--accent);border-radius:50%;flex:none;width:9px;height:9px;animation:1.4s ease-in-out infinite progress-pulse;box-shadow:0 0 #d8785f59}@keyframes progress-pulse{50%{opacity:.65;box-shadow:0 0 0 6px #d8785f00}}.app-header{justify-content:space-between;align-items:center;gap:16px;margin-bottom:18px;display:flex}.brand-lockup{color:var(--ink);align-items:center;gap:10px;font-weight:700;display:flex}.brand-lockup .brand-mark{border-radius:11px;width:36px;height:36px;margin:0;font-size:17px}.header-nav{gap:4px;display:flex}.nav-button,.text-button,.secondary-button,.icon-button{color:var(--muted);background:0 0;border:0}.nav-button{border-radius:8px;padding:8px 10px;font-size:13px}.nav-button.active,.nav-button:hover{background:var(--surface-muted);color:var(--ink)}.panel{background:var(--surface);border-radius:var(--radius-lg);box-shadow:var(--shadow-soft);border:1px solid #e4dbd1d9;padding:clamp(22px,5vw,38px)}.panel-heading{justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:24px;display:flex}.panel-heading .eyebrow{text-align:left;margin-bottom:8px}h2{letter-spacing:-.03em;margin:0;font-size:clamp(24px,6vw,32px)}.text-button{color:var(--accent-strong);padding:6px 0;font-size:13px}.text-button:hover{text-decoration:underline}.field-label{color:var(--ink);margin:18px 0 8px;font-size:13px;font-weight:650;display:block}textarea,input,select{border:1px solid var(--border);border-radius:var(--radius-sm);width:100%;color:var(--ink);background:#fffefa;padding:12px 14px;transition:border-color .2s,box-shadow .2s}textarea{resize:vertical;min-height:150px;line-height:1.65}textarea::placeholder,input::placeholder{color:#aaa097}textarea:focus,input:focus,select:focus{border-color:var(--accent);outline:none;box-shadow:0 0 0 3px #d8785f1f}.textarea-wrap{position:relative}.voice-button{border:1px solid var(--border);background:var(--surface);color:var(--accent-strong);border-radius:8px;padding:7px 10px;font-size:12px;position:absolute;bottom:10px;right:10px}.voice-button.is-recording{background:var(--accent-soft)}.field-hint{color:var(--muted);margin:8px 0 0;font-size:12px;line-height:1.5}.field-grid{gap:2px;display:grid}.composer-footer,.settings-actions{justify-content:space-between;align-items:center;gap:16px;margin-top:26px;display:flex}.composer-footer .field-hint{margin:0}.primary-button:disabled,.secondary-button:disabled{cursor:not-allowed;opacity:.5;transform:none}.secondary-button{border:1px solid var(--border);border-radius:var(--radius-sm);color:var(--ink);padding:12px 16px}.secondary-button:hover{background:var(--surface-muted)}.secret-input{align-items:center;gap:8px;display:flex}.secret-input input{flex:1}.icon-button{flex:none;padding:8px;font-size:12px}.panel-copy{color:var(--muted);margin:-10px 0 20px;font-size:14px;line-height:1.6}.success-message{color:var(--success);margin:14px 0 0;font-size:13px}.analysis-block{border-top:1px solid var(--border);padding:16px 0}.analysis-label{color:var(--muted);letter-spacing:.04em;margin-bottom:8px;font-size:12px;display:block}.analysis-block p{color:var(--ink);margin:0;line-height:1.7}.chip-row{flex-wrap:wrap;gap:8px;display:flex}.soft-chip,.tone-tag{background:var(--accent-soft);color:#8b4b3c;border-radius:999px;align-items:center;padding:6px 10px;font-size:12px;display:inline-flex}.need-list{gap:8px;display:grid}.need-option{border:1px solid var(--border);border-radius:var(--radius-sm);width:100%;color:var(--ink);text-align:left;background:#fffefa;align-items:flex-start;gap:10px;padding:12px;display:flex}.need-option.selected{border-color:var(--accent);background:#fff7f1}.need-check{border:1px solid var(--border);color:#fff;border-radius:6px;flex:none;place-items:center;width:20px;height:20px;font-size:12px;display:grid}.need-option.selected .need-check{border-color:var(--accent);background:var(--accent)}.need-option strong,.need-option small{display:block}.need-option small{color:var(--muted);margin-top:3px;line-height:1.45}.tone-picker{background:var(--surface-muted);border-radius:11px;gap:6px;margin-bottom:18px;padding:4px;display:flex}.tone-picker button{color:var(--muted);background:0 0;border:0;border-radius:8px;flex:1;padding:9px 6px;font-size:13px}.tone-picker button.active{background:var(--surface);color:var(--ink);box-shadow:0 2px 8px #644a3714}.candidate-list{gap:14px;display:grid}.candidate-card{border:1px solid var(--border);border-radius:var(--radius-md);background:#fffefa;padding:17px}.candidate-topline{color:var(--muted);justify-content:space-between;align-items:center;font-size:12px;display:flex}.candidate-text{color:var(--ink);white-space:pre-wrap;margin:15px 0 18px;font-size:17px;line-height:1.75}.guide-box{background:var(--surface-muted);border-radius:10px;padding:12px}.guide-box p{color:var(--ink);margin:0;font-size:14px;line-height:1.6}.candidate-actions{flex-wrap:wrap;gap:8px;margin-top:14px;display:flex}.candidate-actions .secondary-button{padding:8px 10px;font-size:12px}.regenerate-button{color:var(--accent-strong);background:0 0;border:0;margin:18px auto 0;padding:8px 14px;font-size:13px;display:block}.regenerate-button:hover{text-decoration:underline}.restart-button{width:100%;margin-top:8px;display:flex}.boundary-note{border:1px solid var(--border);color:var(--muted);background:#fffdf9b3;border-radius:12px;margin:0 0 12px;padding:10px 13px;font-size:12px;line-height:1.6}.boundary-note summary{cursor:pointer;color:var(--ink);font-weight:600}.boundary-note p{margin:8px 0 0}.history-list{gap:12px;display:grid}.history-item{border:1px solid var(--border);border-radius:var(--radius-md);background:#fffefa;padding:0;position:relative;overflow:hidden}.history-card-main{width:100%;color:var(--ink);text-align:left;background:0 0;border:0;padding:16px 48px 16px 16px;display:block}.history-card-main:hover{background:#fff8f1}.history-card-top,.history-card-bottom{color:var(--muted);justify-content:space-between;gap:12px;font-size:12px;display:flex}.history-card-main strong{margin:12px 0 8px;font-size:15px;font-weight:600;line-height:1.5;display:block}.history-card-bottom{color:var(--accent-strong);justify-content:flex-start}.history-delete{position:absolute;top:12px;right:10px}.detail-meta{color:var(--muted);justify-content:space-between;gap:16px;margin:-8px 0 8px;font-size:12px;display:flex}.detail-section{border-top:1px solid var(--border);padding:18px 0}.detail-text{color:var(--ink);white-space:pre-wrap;margin:0;line-height:1.75}.detail-subtext{color:var(--muted);margin:8px 0 0;font-size:13px;line-height:1.6}.detail-label-spaced{margin-top:18px}.need-summary{background:var(--surface-muted);border-radius:10px;padding:10px 12px}.need-summary strong,.need-summary small{display:block}.need-summary small{color:var(--muted);margin-top:3px;line-height:1.45}.history-meta{color:var(--muted);justify-content:space-between;align-items:center;font-size:12px;display:flex}.history-item>p{color:var(--ink);white-space:pre-wrap;margin:12px 0;line-height:1.6}.history-item blockquote{border-left:3px solid var(--accent);color:var(--ink);margin:14px 0 0;padding:10px 12px;font-size:14px;line-height:1.6}.empty-state{text-align:center;color:var(--muted);padding:34px 0}.empty-state p{color:var(--ink);margin:0 0 7px;font-weight:650}.empty-state span{font-size:13px}.danger-button{color:#a65a4e;background:0 0;border:0;margin-top:18px;padding:8px 0;font-size:12px}.history-actions{justify-content:space-between;align-items:center;gap:12px;margin-top:14px;display:flex}.history-actions .danger-button{margin-top:0}@media (width>=560px){.field-grid{grid-template-columns:1fr 1fr;gap:14px}}.app-shell{background:radial-gradient(circle at 15% 0,#fae3dab3,#0000 30rem);align-items:start;padding:16px 12px 32px}.app-frame{width:min(100%,720px)}.app-header{z-index:2;background:color-mix(in srgb, var(--bg) 92%, transparent);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);margin:-4px -4px 14px;padding:8px 4px 12px;position:sticky;top:0}.brand-lockup{letter-spacing:.04em;font-size:15px}.brand-lockup .brand-mark{border-radius:10px;width:34px;height:34px}.header-nav{gap:2px}.nav-button{min-height:36px;padding:8px 9px;font-size:12px}.panel{border-radius:18px;padding:20px 16px;box-shadow:0 10px 28px #644a370f}.panel-heading{margin-bottom:18px}.panel-heading h2{font-size:clamp(23px,7vw,30px)}.panel-copy{font-size:13px}.analysis-intro{margin:-6px 0 18px}.nvc-steps{gap:10px;display:grid}.nvc-step{border:1px solid var(--border);background:#fffdf9b3;border-radius:13px;grid-template-columns:28px minmax(0,1fr);gap:11px;padding:14px 12px;display:grid}.step-marker{background:var(--accent-soft);width:26px;height:26px;color:var(--accent-strong);border-radius:8px;place-items:center;font-size:12px;font-weight:750;display:grid}.step-content{min-width:0}.nvc-step .analysis-label{color:var(--ink);letter-spacing:.02em;margin-bottom:6px;font-size:12px;font-weight:700}.nvc-step p{margin:0;line-height:1.65}.muted-copy{font-size:13px;color:var(--muted)!important}.step-help{color:var(--muted);font-size:12px;margin:0 0 9px!important;line-height:1.5!important}.need-list{gap:7px}.need-option{border-radius:10px;padding:10px}.need-option strong{font-size:13px}.need-option small{font-size:12px}.tone-section{border-top:1px solid var(--border);margin-top:22px;padding-top:18px}.tone-section-heading{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.tone-section-heading .analysis-label{color:var(--ink);margin-bottom:4px;font-weight:700}.tone-current{background:var(--surface-muted);color:var(--accent-strong);border-radius:7px;flex:none;padding:5px 8px;font-size:11px;font-weight:650}.tone-picker-pre{background:0 0;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:12px 0 0;padding:0;display:grid}.tone-picker-pre button{border:1px solid var(--border);background:var(--surface);text-align:left;border-radius:10px;flex-direction:column;justify-content:center;align-items:flex-start;gap:3px;min-height:56px;padding:9px 10px;display:flex}.tone-picker-pre button strong{color:var(--ink);font-size:13px}.tone-picker-pre button small{color:var(--muted);font-size:11px;line-height:1.3}.tone-picker-pre button.active{border-color:var(--accent);background:#fff5ee;box-shadow:inset 0 0 0 1px #d8785f1a}.tone-picker-pre button.active strong{color:var(--accent-strong)}.composer-footer{flex-direction:column;align-items:stretch;gap:12px;margin-top:20px}.composer-footer .primary-button{width:100%}.primary-button{border-radius:11px;min-height:48px;box-shadow:0 6px 14px #d8785f2b}.result-summary{color:var(--muted);background:#fff9f4;border:1px solid #eaded5;border-radius:10px;align-items:flex-start;gap:8px;margin:-4px 0 14px;padding:10px 11px;font-size:12px;line-height:1.5;display:flex}.result-summary-dot{background:var(--accent);border-radius:50%;flex:none;width:7px;height:7px;margin-top:5px}.candidate-card{border-radius:14px;padding:14px}.message-segment{border-radius:10px;padding:12px}.primary-segment{background:#fffaf5;margin-top:12px}.guide-segment{background:var(--surface-muted);margin-top:8px}.segment-label{color:var(--muted);letter-spacing:.04em;margin-bottom:7px;font-size:11px;font-weight:700;display:block}.primary-segment .candidate-text{margin:0;font-size:16px;line-height:1.7}.guide-heading{justify-content:space-between;align-items:center;gap:8px;display:flex}.guide-heading .segment-label{margin-bottom:0}.guide-toggle{color:var(--accent-strong);white-space:nowrap;align-items:center;gap:6px;font-size:11px;display:inline-flex}.guide-toggle input{width:16px;height:16px;accent-color:var(--accent);margin:0}.guide-text{color:var(--ink);margin:8px 0 0;font-size:13px;line-height:1.6}.combined-preview{background:#fffdf9;border:1px dashed #d7b7a5;border-radius:10px;margin-top:8px;padding:12px}.combined-preview p{color:var(--ink);white-space:pre-wrap;margin:0;font-size:13px;line-height:1.7}.candidate-actions{grid-template-columns:1fr 1fr;margin-top:12px;display:grid}.candidate-actions .secondary-button,.candidate-actions .copy-button{border-radius:9px;min-height:40px;padding:8px 9px;font-size:12px}.copy-button{border:1px solid var(--accent);background:var(--accent);color:#fff;font-weight:650}.copy-button:hover{background:var(--accent-strong)}.regenerate-button{margin-top:16px}.boundary-note{font-size:11px}@media (width>=560px){.app-shell{padding:28px 18px 44px}.panel{border-radius:20px;padding:28px}.tone-picker-pre{grid-template-columns:repeat(4,minmax(0,1fr))}.composer-footer{flex-direction:row;align-items:center}.composer-footer .primary-button{width:auto}}@media (width<=360px){.header-nav{max-width:62%}.nav-button{padding-inline:7px}.panel-heading{gap:8px}.text-button{font-size:12px}.candidate-actions{grid-template-columns:1fr}}.person-section{border:1px solid var(--border);background:#f8f4ee8c;border-radius:12px;margin-top:18px;padding:13px}.person-section-heading{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.person-section .field-label{margin-top:0}.person-hint{color:var(--accent-strong);margin:8px 0 0;font-size:12px;line-height:1.5}.person-form{border-top:1px dashed var(--border);margin-top:12px;padding-top:12px}.person-form .field-label{margin-top:13px}.preference-list{flex-wrap:wrap;gap:7px;display:flex}.preference-chip{border:1px solid var(--border);background:var(--surface);min-height:34px;color:var(--muted);border-radius:999px;padding:7px 10px;font-size:12px}.preference-chip.selected{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-strong)}.person-save{width:100%;margin-top:14px}.clarify-section{border-top:1px solid var(--border);margin-top:20px;padding:14px 0 0}.clarify-heading{justify-content:space-between;align-items:flex-start;gap:10px;display:flex}.clarify-heading .analysis-label{color:var(--ink);margin-bottom:4px;font-weight:700}.optional-tag{background:var(--surface-muted);color:var(--muted);border-radius:6px;flex:none;padding:4px 7px;font-size:10px}.clarify-list{gap:9px;margin-top:10px;display:grid}.clarify-card{border:1px solid var(--border);background:#fffdf9;border-radius:10px;padding:11px}.clarify-card>p{color:var(--ink);margin:0 0 9px;font-size:13px;line-height:1.55}.clarify-options{flex-wrap:wrap;gap:6px;display:flex}.clarify-options button{border:1px solid var(--border);background:var(--surface-muted);min-height:34px;color:var(--muted);border-radius:8px;padding:7px 10px;font-size:12px}.clarify-options button.selected{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-strong);font-weight:650}.clarify-note-label{color:var(--muted);margin:11px 0 6px;font-size:11px;font-weight:650;display:block}.clarify-note-input{min-height:68px;padding:9px 10px;font-size:12px;line-height:1.5}.generation-options{border-top:1px solid var(--border);gap:16px;margin-top:18px;padding-top:18px;display:grid}.generation-option .analysis-label{color:var(--ink);margin-bottom:8px;font-weight:700}.choice-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;display:grid}.choice-grid button{border:1px solid var(--border);background:var(--surface);text-align:left;border-radius:10px;flex-direction:column;justify-content:center;align-items:flex-start;gap:3px;min-height:54px;padding:9px 10px;display:flex}.choice-grid button strong{color:var(--ink);font-size:12px}.choice-grid button small{color:var(--muted);font-size:10px;line-height:1.3}.choice-grid button.selected{border-color:var(--accent);background:#fff5ee}.choice-grid button.selected strong{color:var(--accent-strong)}.guide-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.reflection-summary{color:var(--muted);background:#fff9f4;border:1px solid #eaded5;border-radius:10px;gap:4px;margin:-4px 0 14px;padding:12px;font-size:12px;line-height:1.45;display:grid}.reflection-summary strong{color:var(--ink);font-size:13px}.feedback-section{gap:16px;display:grid}.feedback-group>span{color:var(--ink);margin-bottom:8px;font-size:12px;font-weight:650;display:block}.feedback-options{flex-wrap:wrap;gap:7px;display:flex}.feedback-options button{border:1px solid var(--border);background:var(--surface);min-height:36px;color:var(--muted);border-radius:9px;padding:8px 10px;font-size:12px}.feedback-options button.selected{border-color:var(--accent);background:var(--accent-soft);color:var(--accent-strong);font-weight:650}@media (width>=560px){.generation-options{grid-template-columns:.8fr 1.2fr;gap:20px}.guide-choice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}button{border-radius:10px;min-height:40px;line-height:1.2;transition:background-color .18s,border-color .18s,color .18s,transform .18s}.app-header,.panel-heading{align-items:center}.panel-heading>div:first-child{min-width:0}.panel-heading h2{overflow-wrap:anywhere}.text-button{white-space:nowrap;border:1px solid #0000;border-radius:8px;justify-content:center;align-items:center;min-height:36px;padding:7px 9px;display:inline-flex}.text-button:hover{background:var(--surface-muted);text-decoration:none}.primary-button,.secondary-button,.copy-button{text-align:center;justify-content:center;align-items:center;display:inline-flex}.secondary-button{min-height:44px}.voice-button{justify-content:center;align-items:center;min-height:36px;display:inline-flex}textarea{min-height:9rem}textarea::placeholder{white-space:pre-line}.composer-panel>.field-label:first-of-type{margin-top:0}.composer-panel .field-grid{margin-top:2px}.composer-footer .field-hint{max-width:36ch}.generation-help{margin-bottom:8px!important}.choice-grid button,.tone-picker-pre button,.clarify-options button,.preference-chip,.feedback-options button{min-height:40px}.candidate-actions{align-items:stretch}.candidate-actions>button{width:100%}.settings-actions{align-items:stretch}.settings-actions>button{flex:1}.history-actions>button{min-height:40px}.history-card-main{min-height:0}.history-delete{min-height:32px}@media (width<=559px){.app-header{gap:8px}.header-nav{flex:1;justify-content:flex-end}.nav-button{flex:0 auto}.panel-heading{gap:8px}.panel-heading .text-button{text-overflow:ellipsis;max-width:9rem;overflow:hidden}.composer-footer .field-hint{max-width:none}.history-actions,.settings-actions{flex-direction:column;align-items:stretch}.history-actions>button,.settings-actions>button{width:100%}}
