:root{--radius-card: 20px;--space-xs: .5rem;--space-sm: .75rem;--space-md: 1rem;--space-lg: 1.25rem}:root{--text: #263449;--muted: #6f7c91;--glass: rgba(255, 255, 255, .42);--border: rgba(255, 255, 255, .72);--cyan: #72e6ff;--pink: #ff9fd7;--violet: #a788ff;--mint: #9ff8d5;--danger: #d5607f;--success: #327a5f;--text-soft: #4a5c73;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.45;font-weight:500;color:var(--text);font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*,*:before,*:after{box-sizing:border-box}body{margin:0;min-height:100vh;color:var(--text);background:radial-gradient(circle at 15% 18%,rgba(114,230,255,.55),transparent 26%),radial-gradient(circle at 80% 14%,rgba(255,159,215,.55),transparent 24%),radial-gradient(circle at 72% 88%,rgba(167,136,255,.42),transparent 28%),linear-gradient(135deg,#f4f8fb,#e7edf5 48%,#f4eef7)}html,body{max-width:100%;overflow-x:hidden}a{color:#3f5876;text-decoration:none}#root{min-height:100vh}h1,h2,h3,p{margin:0}button,input,textarea,select{font:inherit}input,textarea,select{width:100%;border:1px solid rgba(255,255,255,.72);background:#ffffff80;color:var(--text);border-radius:16px;padding:.72rem .9rem}textarea{min-height:100px;resize:vertical}button{border:1px solid rgba(255,255,255,.7);border-radius:17px;padding:.7rem 1.05rem;background:#ffffff73;color:#30425b;cursor:pointer;font-weight:800;box-shadow:0 12px 28px #6372962e}button:disabled{cursor:not-allowed;opacity:.6}.secondary-button{background:#ffffff5c}.app-shell{width:min(1120px,100%);margin:24px auto;padding:12px 16px;display:grid;gap:22px;overflow:visible}.glass-card{border:none;border-radius:28px;background:var(--glass);-webkit-backdrop-filter:blur(22px);backdrop-filter:blur(22px);box-shadow:0 18px 44px #5a6c8c29}.topbar{position:relative;z-index:40;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:4px;padding:8px 14px;overflow:visible}.topbar>*{min-width:0}.eyebrow{color:var(--muted);font-size:.82rem;letter-spacing:.04em;text-transform:uppercase;line-height:1}.app-title{font-size:1.25rem;line-height:1.2;word-break:break-word}.menu-wrap{position:relative}.topbar-search-form{flex:1;min-width:0;max-width:560px;display:block;align-items:center}.topbar-search-form input{width:100%}.menu-trigger{width:42px;height:42px;border-radius:12px;border:1px solid #e2e7ef;background:#f7f9fc;box-shadow:none;padding:8px;display:inline-flex;align-items:center;justify-content:center}.menu-icon{width:20px;height:14px}.menu-icon line{stroke:#2f425c;stroke-width:1.8;stroke-linecap:round}.menu-dropdown{position:absolute;right:0;top:calc(100% + 8px);min-width:190px;max-width:min(280px,calc(100vw - 20px));border-radius:14px;padding:8px;display:grid;gap:4px;background:#ffffffeb;border:1px solid rgba(255,255,255,.85);box-shadow:0 16px 34px #45577733;z-index:100}.menu-dropdown a,.menu-dropdown button{text-align:left;border:none;box-shadow:none;background:transparent;color:#30445f;padding:10px 12px;border-radius:10px;font-weight:600;white-space:normal;overflow-wrap:anywhere}.menu-item-with-badge{display:flex;align-items:center;justify-content:space-between;gap:10px}.menu-badge{min-width:18px;padding:2px 6px;border-radius:999px;background:#2f425c;color:#fff;font-size:.72rem;line-height:1;text-align:center}.menu-dropdown a:hover,.menu-dropdown button:hover{background:#72e6ff29}.page-shell{display:grid;gap:22px}.page-card{padding:24px;display:grid;gap:14px}.page-card>*{min-width:0}.page-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.wide-card{grid-column:1 / -1}.auth-shell{min-height:100vh;display:grid;place-items:center;padding:32px}.auth-card{width:100%;max-width:420px;padding:24px;display:grid;gap:12px}.auth-card .eyebrow{text-align:center}.auth-logo{width:96px;height:auto;margin:0 auto 2px;display:block}.stack-form{display:grid;gap:.75rem}.stack-form label{display:grid;gap:.5rem;font-size:.92rem;color:var(--text-soft)}.twin-photo-section{display:grid;gap:10px;padding:14px;border-radius:18px;background:#ffffff59;border:1px solid rgba(255,255,255,.55)}.twin-photo-section h3{margin:0}.twin-photo-current,.twin-photo-local{display:grid;gap:8px}.twin-photo-local p,.twin-photo-local .voice-consent{margin:0}.twin-photo-local .voice-consent input[type=checkbox]{width:18px;height:18px;margin:0;flex-shrink:0}.twin-photo-preview{width:min(220px,100%);height:auto;border-radius:16px;border:1px solid rgba(255,255,255,.55);box-shadow:0 8px 20px #3c50781f;object-fit:cover}.twin-photo-upload{display:flex;flex-wrap:wrap;gap:8px}.checkbox-row{display:flex!important;align-items:flex-start;flex-wrap:wrap;gap:10px!important}.checkbox-row input[type=checkbox]{width:18px;height:18px;margin:0}.row-form{grid-template-columns:1fr auto auto;align-items:center}.chat-minimal-card{gap:12px}.training-callout{display:flex;align-items:center;gap:10px;padding:0}.training-callout p{color:#33485f;font-weight:600;white-space:normal;overflow-wrap:anywhere}.training-callout button{width:max-content;padding:.45rem .85rem}.chat-input-form{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px}.mic-button-wrapper{position:relative;display:inline-flex;align-items:center}.mic-button{width:44px;height:44px;min-width:44px;padding:0;border-radius:999px;background:#ffffff0f;border:1px solid rgba(255,255,255,.18);display:inline-flex;align-items:center;justify-content:center;color:var(--text-soft);cursor:pointer;transition:background .15s ease,color .15s ease,transform .1s ease}.mic-button:hover:not(:disabled){background:#626eff1f;color:var(--text)}.mic-button:active:not(:disabled){transform:scale(.96)}.mic-button:disabled{opacity:.45;cursor:not-allowed}.mic-button-icon{display:inline-flex;align-items:center;justify-content:center;position:relative;width:20px;height:20px}.mic-button-recording{background:#ff59592e;border-color:#ff5959a6;color:#ff5959}.mic-button-recording .mic-button-pulse{position:absolute;inset:-8px;border-radius:999px;border:2px solid rgba(255,89,89,.45);animation:mic-pulse 1.4s ease-out infinite;pointer-events:none}.mic-button-recording .mic-button-stop-square{width:10px;height:10px;border-radius:2px;background:currentColor}@keyframes mic-pulse{0%{transform:scale(.85);opacity:.9}to{transform:scale(1.4);opacity:0}}.mic-button-transcribing{background:#626eff29;border-color:#626eff8c;color:#b6bcff}.mic-button-spinner{width:18px;height:18px;border-radius:999px;border:2px solid currentColor;border-right-color:transparent;animation:mic-spin .9s linear infinite}@keyframes mic-spin{to{transform:rotate(360deg)}}.mic-button-error{background:#ff7c7c1f;border-color:#ff7c7c73;color:#ff7c7c}.mic-button-status{position:absolute;bottom:calc(100% + 6px);right:0;white-space:nowrap;font-size:.78rem;color:var(--text-soft);background:#0000008c;padding:2px 8px;border-radius:6px;pointer-events:none;max-width:60vw;overflow:hidden;text-overflow:ellipsis}.mic-button-status:empty{display:none}.mic-preview{grid-column:1 / -1;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 12px;border-radius:14px;background:#626eff14;border:1px solid rgba(98,110,255,.32)}.mic-preview-audio{width:100%;min-width:0}.mic-preview-actions{display:inline-flex;align-items:center;gap:8px}.mic-preview-button{width:40px;height:40px;min-width:40px;padding:0;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;border:1px solid transparent;transition:background .15s ease,color .15s ease,transform .1s ease}.mic-preview-button:active:not(:disabled){transform:scale(.96)}.mic-preview-button:disabled{opacity:.55;cursor:not-allowed}.mic-preview-retake{background:#ff7c7c1f;border-color:#ff7c7c80;color:#ff7c7c}.mic-preview-retake:hover:not(:disabled){background:#ff7c7c38}.mic-preview-send{background:linear-gradient(135deg,#72e6ffd9,#a788ffc7);border-color:#ffffffc7;color:#1a1f3a;box-shadow:0 8px 18px #5d6e9638}.mic-preview-send:hover:not(:disabled){filter:brightness(1.06)}.mic-preview-meta{grid-column:1 / -1;font-size:.78rem;color:var(--text-soft)}.mic-preview-meta:empty{display:none}.mic-preview-error{grid-column:1 / -1;font-size:.82rem;color:#ff7c7c}.memory-form{gap:.4rem;margin-top:-2px}.memory-form textarea{min-height:84px}.memory-kind-switch{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:4px;border-radius:12px;background:#ffffff0a;border:1px solid rgba(255,255,255,.08)}.memory-kind-switch button{display:grid;gap:2px;padding:.5rem .6rem;border-radius:9px;border:none;background:transparent;color:var(--text-soft);cursor:pointer;text-align:center;transition:background .15s ease,color .15s ease}.memory-kind-switch button:hover{background:#ffffff0d;color:var(--text)}.memory-kind-switch button.is-active{background:#626eff2e;color:var(--text);box-shadow:inset 0 0 0 1px #626eff73}.memory-kind-title{font-weight:600;font-size:.92rem;line-height:1.1}.memory-kind-sub{font-size:.74rem;opacity:.75;line-height:1.1}.memory-style-hint{margin:0;padding:.5rem .7rem;border-radius:10px;background:#626eff14;border:1px solid rgba(98,110,255,.2);color:var(--text-soft);font-size:.82rem;line-height:1.45}.memory-style-hint strong{color:var(--text)}.memory-style-access{margin:0;font-style:italic;opacity:.75}.memory-kind-badge{display:inline-block;padding:4px 12px;margin-bottom:6px;border-radius:999px;font-size:.72rem;font-weight:600;letter-spacing:.01em;line-height:1.2;white-space:nowrap}.memory-kind-badge-fact{background:#9ff8d573;color:#1f5f4a;border:1px solid rgba(50,122,95,.35)}.memory-kind-badge-style{background:#a788ff59;color:#4f3d8f;border:1px solid rgba(167,136,255,.55)}.memory-kind-badge-interview{background:#ff9fd76b;color:#8f3568;border:1px solid rgba(255,159,215,.55)}.memory-kind-badge-long-text{background:#72e6ff52;color:#1c5f73;border:1px solid rgba(114,230,255,.5)}.fact-body{display:flex;flex-direction:column;align-items:flex-start;gap:2px;flex:1;min-width:0}.fact-body p{margin:0;overflow-wrap:anywhere;word-break:break-word}.chat-feedback-row{margin-top:8px;display:flex;flex-wrap:wrap;gap:8px}.simple-list li.is-content-fact{border-left:3px solid rgba(50,122,95,.45);padding-left:10px}.simple-list li.is-style-fact{border-left:3px solid rgba(167,136,255,.65);padding-left:10px}.simple-list li.is-interview-fact{border-left:3px solid rgba(255,159,215,.7);padding-left:10px}.simple-list li.is-long-text-fact{border-left:3px solid rgba(114,230,255,.7);padding-left:10px}.memory-visibility{display:grid;gap:6px;font-size:.92rem;color:var(--text-soft)}.memory-form-actions{display:flex;justify-content:flex-end}.memory-submit{width:auto;padding:.32rem .65rem;border-radius:10px;font-weight:600;font-size:.85rem;box-shadow:none}.memory-card{gap:6px;padding:18px;align-self:start}.memory-grid{align-items:start;grid-template-columns:1fr}.memory-section-block{display:flex;flex-direction:column;gap:.45rem}.memory-section-block+.memory-section-block{margin-top:.8rem}.memory-section-title{margin:0;font-size:1rem}.memory-section-hint{margin:0}@media(max-width:720px){.memory-kind-switch{grid-template-columns:1fr}}.mbti-card{display:grid;gap:12px;padding:14px;border-radius:18px;background:#ffffff59;border:1px solid rgba(255,255,255,.55)}.mbti-card h3{margin:0}.mbti-questions{display:grid;gap:12px}.mbti-question{display:grid;gap:8px;padding:12px;border-radius:14px;background:#fff6;border:1px solid rgba(255,255,255,.6)}.mbti-option{display:flex;align-items:center;gap:8px;font-size:.95rem;color:var(--text-soft)}.mbti-option input[type=radio]{width:16px;height:16px;margin:0}.mbti-actions{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.mbti-result{display:grid;gap:10px}.grantee-card{margin-top:16px;display:grid;gap:12px;padding:14px;border-radius:18px;background:#ffffff59;border:1px solid rgba(255,255,255,.55)}.grantee-list{display:grid;gap:10px}.grantee-row{display:grid;gap:8px;padding:12px;border-radius:14px;background:#fff6;border:1px solid rgba(255,255,255,.6)}.grantee-meta{display:grid;gap:4px;overflow-wrap:anywhere}.grantee-details{display:grid;gap:4px}.grantee-field{display:grid;gap:6px;font-size:.92rem;color:var(--text-soft);overflow-wrap:anywhere}.grantee-actions{display:flex;gap:8px;flex-wrap:wrap}.grantee-actions .small-text{overflow-wrap:anywhere}.grantee-actions>*{min-width:0}.section-card-header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.section-card-header h2{margin:0}.interview-collapsed{display:grid;gap:12px}.interview-collapsed-actions{display:flex;flex-wrap:wrap;gap:8px}.interview-form-footer{justify-content:space-between;gap:8px}.mbti-buttons{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.mbti-type-list{display:grid;gap:8px}.mbti-type-list h4{margin:0;font-size:1rem}.mbti-type-list ul{margin:0;padding-left:18px;display:grid;gap:6px;color:var(--text-soft);font-size:.92rem}.chat-search-form{display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px}.chat-search-result{display:grid;gap:10px}.chat-search-card{padding:16px 20px}.chat-role-card{margin-top:12px;padding:18px;border-radius:16px;background:#ffffff8c;border:1px solid rgba(255,255,255,.75);display:grid;gap:12px}.chat-access-pending{background:#9ff8d533;border-color:#327a5f40}.chat-access-rejected-note{color:var(--danger);font-weight:600}.chat-role-options{display:grid;gap:8px;font-size:.92rem;color:var(--text-soft)}.chat-role-options label{display:grid;grid-template-columns:18px minmax(0,1fr);gap:10px;align-items:start}.chat-role-input{display:grid;gap:6px;font-size:.92rem;color:var(--text-soft)}.chat-menu-controls{margin-left:auto;display:inline-flex;align-items:center;flex-wrap:wrap;gap:8px}.chat-menu-controls>*{min-width:0}.chat-menu{margin-left:0}.chat-voice-toggle{width:auto;min-width:0;height:42px;padding:8px 10px;gap:8px}.chat-voice-toggle-label{font-size:.76rem;font-weight:800;color:#2f425c;letter-spacing:.01em}.chat-voice-toggle-state{display:inline-flex;align-items:center;justify-content:center;min-width:34px;padding:2px 8px;border-radius:999px;font-size:.66rem;font-weight:800;letter-spacing:.04em;border:1px solid transparent}.chat-voice-toggle.on .chat-voice-toggle-state{color:#1f6f57;background:#9ff8d599;border-color:#4fbb9673}.chat-voice-toggle.off .chat-voice-toggle-state{color:#6a778f;background:#e6ebf4cc;border-color:#a4b0c673}.chat-voice-toggle.off{opacity:.88}.chat-voice-toggle:disabled{opacity:.6;cursor:not-allowed}.chat-voice-toggle:disabled .chat-voice-toggle-state{opacity:.75}.chat-menu-dropdown{min-width:190px}.chat-search-result p{color:#30445f;font-size:.92rem}.twin-switcher-wrap{display:flex;flex-direction:column;gap:8px}.twin-switcher-group{display:flex;flex-direction:column;gap:6px}.twin-switcher-group-title{margin:0;font-size:.72rem;font-weight:800;letter-spacing:.02em;text-transform:uppercase;color:var(--muted)}.twin-switcher{display:flex;gap:8px;flex-wrap:wrap}.chat-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.chat-header>*{min-width:0}.chat-video-hint{margin:0 0 .85rem;max-width:38rem}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.chat-minimal-card-call{display:flex;flex-direction:column;min-height:min(85vh,860px)}.chat-layout-toggle{display:inline-flex;border-radius:999px;border:1px solid rgba(255,255,255,.65);background:#ffffff59;overflow:hidden;box-shadow:none}.chat-layout-option{margin:0;padding:.48rem .85rem;border:none;border-radius:0;background:transparent;box-shadow:none;font-size:.82rem;font-weight:800;color:var(--text-soft);cursor:pointer}.chat-layout-option:disabled{cursor:not-allowed;opacity:.5}.chat-layout-option-active{background:linear-gradient(135deg,#72e6ff73,#a788ff61);color:#243650}.chat-call-stage-wrap{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;min-height:0;margin:.25rem 0 .5rem;background-color:#fff;border-radius:22px}.chat-call-stage{flex:1;width:100%;display:flex;align-items:center;justify-content:center;min-height:200px;padding:12px;border-radius:22px;background-color:#fff;background-image:none;border:1px solid rgba(0,0,0,.06)}.chat-call-stage .video-bubble{width:100%;max-width:min(520px,100%);display:flex;flex-direction:column;align-items:center}.chat-call-stage .video-bubble-player{width:100%;max-height:min(62vh,560px);border-radius:18px;background:#fff;mix-blend-mode:multiply;object-fit:contain}.chat-call-placeholder{text-align:center;margin:0;font-size:.95rem;max-width:22rem}.chat-call-idle-img{max-width:min(440px,92vw);max-height:min(52vh,480px);width:auto;height:auto;object-fit:contain;border-radius:22px;box-shadow:0 14px 36px #50648233;animation:chat-call-idle-float 5s ease-in-out infinite}@keyframes chat-call-idle-float{0%,to{transform:translateY(0)}50%{transform:translateY(-6px)}}.chat-call-audio-fallback{width:100%;max-width:min(520px,100%)}.video-bubble{margin-top:8px}.video-bubble-ready-wrap{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:0;width:100%}.video-bubble-player-shell{position:relative;width:100%;max-width:min(520px,100%)}.video-bubble-player-wrap{width:100%}.video-bubble-repeat{position:absolute;top:10px;right:10px;z-index:2;flex-shrink:0;margin:0;padding:0;width:38px;height:38px;border:none;border-radius:999px;cursor:pointer;color:#1f3249;background:#ffffffe0;box-shadow:0 2px 10px #2a3a5238;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);display:inline-flex;align-items:center;justify-content:center}.video-bubble-repeat-icon{display:block}.video-bubble-repeat:hover{filter:brightness(1.05)}.video-bubble-repeat:focus-visible{outline:2px solid rgba(114,230,255,.75);outline-offset:2px}.video-bubble-player{width:100%;max-height:280px;border-radius:14px;background:#fff;mix-blend-mode:multiply}.video-bubble-processing{display:flex;flex-direction:column;align-items:center;gap:12px;padding:20px 16px;text-align:center}.video-bubble-spinner{width:40px;height:40px;border-radius:999px;border:3px solid rgba(47,66,92,.2);border-top-color:#72e6ffd9;animation:video-bubble-spin .85s linear infinite}@keyframes video-bubble-spin{to{transform:rotate(360deg)}}.video-bubble-status{margin:0;font-size:.9rem;color:var(--muted)}.video-bubble-fallback{margin:.35rem 0 0;font-size:.9rem}.video-bubble-fallback-wrap{margin-top:8px;display:grid;gap:10px;color:var(--muted);font-size:.92rem}.video-bubble-fallback-wrap .video-bubble-fallback{margin:0}.video-bubble-fallback-wrap .video-bubble-retry{justify-self:start}.chat-delete-button{margin-left:auto}.twin-switcher-button{display:inline-flex;align-items:center;gap:6px;padding:.46rem .82rem;border-radius:999px;font-weight:700;box-shadow:none;border:1px solid rgba(74,92,115,.2)}.twin-switcher-button.twin-own{background:#72e6ff38;border-color:#72e6ff73}.twin-switcher-button.twin-added{background:#ffffff80;border-color:#4a5c7333}.twin-switcher-button.twin-own.active{background:linear-gradient(135deg,#72e6ff9e,#ff9fd780)}.twin-switcher-button.twin-added.active{background:linear-gradient(135deg,#a788ff6b,#ffffffbf)}.twin-switcher-name{line-height:1.1;overflow-wrap:anywhere}.twin-switcher-badge{display:inline-flex;align-items:center;padding:.1rem .4rem;border-radius:999px;font-size:.66rem;font-weight:800;letter-spacing:.01em}.twin-switcher-badge.pending{color:#5a4100;background:#ffd27b8c}.profile-workspace{display:flex;flex-direction:column;gap:14px;width:100%}.workspace-tabs,.workspace-subtabs{display:flex;gap:8px;width:100%}.workspace-tabs button,.workspace-subtabs button{flex:1 1 0;padding:.6rem .9rem;border-radius:999px;font-weight:700;box-shadow:none;white-space:nowrap;background:#ffffff59;border:1px solid rgba(255,255,255,.6)}.workspace-tabs button.active,.workspace-subtabs button.active{background:linear-gradient(135deg,#72e6ff9e,#ff9fd780)}@media(max-width:720px){.workspace-subtabs{flex-wrap:wrap}.workspace-subtabs button{flex:1 1 calc(50% - 8px);min-width:0;white-space:normal;line-height:1.2}}@media(max-width:560px){.workspace-tabs{flex-wrap:wrap}.workspace-tabs button,.workspace-subtabs button{flex:1 1 calc(50% - 8px);min-width:0;white-space:normal;line-height:1.2}.workspace-subtabs{flex-wrap:wrap}}.readiness-card h3{margin:0 0 .6rem}.readiness-checklist{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}.readiness-item{display:flex;align-items:center;gap:10px;font-weight:600;opacity:.7}.readiness-item.done{opacity:1}.readiness-check{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;min-width:22px;border-radius:999px;font-size:.8rem;border:1px solid rgba(120,140,170,.5);color:#7a8aa0;background:#fff6}.readiness-item.done .readiness-check{border-color:transparent;color:#1f6f4a;background:linear-gradient(135deg,#78e6b4d9,#72e6ffb3)}.publish-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}.publish-qr{display:flex;flex-direction:column;gap:10px}.publish-qr-image{width:min(220px,100%);height:auto;aspect-ratio:1 / 1;border-radius:12px;background:#fff;padding:8px;align-self:center}.publish-qr-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:180px;padding:18px;text-align:center;border:1px dashed rgba(120,140,170,.5);border-radius:16px;background:#ffffff4d}.publish-qr-placeholder .readiness-check{width:54px;height:54px;min-width:54px;font-size:1rem;font-weight:700}@media(max-width:720px){.publish-grid{grid-template-columns:1fr}}.icon-send-button{width:44px;height:44px;min-width:44px;padding:0;border-radius:999px;background:linear-gradient(135deg,#72e6ffcc,#a788ffb8);border:1px solid rgba(255,255,255,.78);box-shadow:0 12px 24px #5d6e9633;display:inline-flex;align-items:center;justify-content:center}.icon-send-button svg{width:18px;height:18px;fill:none;stroke:#29415a;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.error-text{color:var(--danger);font-weight:700}.success-text{color:var(--success);font-weight:700}.small-text{color:var(--muted);font-size:.88rem;overflow-wrap:anywhere}.simple-list,.message-list{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:.55rem}.simple-list li,.message-list li{border:none;border-radius:22px;padding:15px 17px;line-height:1.48;box-shadow:0 10px 24px #5468841f;background:#ffffff7a}.message-list li.message-list-item-row{display:flex;flex-direction:row;align-items:flex-start;gap:10px}.message-list-item-main{flex:1;min-width:0}.assistant-author{display:inline-flex;align-items:center;gap:8px}.assistant-author strong{overflow-wrap:anywhere}.assistant-message-text{margin-top:6px;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}.assistant-avatar,.assistant-avatar-fallback{width:28px;height:28px;min-width:28px;border-radius:50%}.assistant-avatar{object-fit:cover;border:1px solid rgba(255,255,255,.7);box-shadow:0 4px 10px #47587333}.assistant-avatar-fallback{display:inline-flex;align-items:center;justify-content:center;font-size:.78rem;font-weight:700;color:#4a4a6a;background:linear-gradient(135deg,#a788ff61,#72e6ff47);border:1px solid rgba(255,255,255,.7)}.message-delete-button{flex-shrink:0;align-self:flex-start}.fact-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.fact-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.fact-edit-button{padding:4px 10px;font-size:.85rem}.fact-edit-form{gap:10px}.memory-kind-counter{margin:0;font-weight:600;color:var(--text-soft)}.memory-progress-counters{display:flex;flex-wrap:wrap;gap:.75rem 1.25rem;margin:0 0 .75rem;padding:.65rem .85rem;border-radius:12px;background:#ffffff59;border:1px solid var(--border)}.fact-interview-question{margin:0;color:var(--text-soft);font-weight:600}.fact-interview-answer{margin:6px 0 0;white-space:pre-wrap}.icon-delete-button{width:28px;height:28px;min-width:28px;padding:0;border-radius:999px;border:none;box-shadow:none;background:transparent;color:#7f8996;font-size:22px;font-weight:300;line-height:1;display:inline-flex;align-items:center;justify-content:center}.icon-delete-button:hover{background:transparent;color:#5f6a78}.message-list .assistant{margin-right:auto;max-width:82%;background:#ffffff7a}.message-list .user{margin-left:auto;max-width:82%;background:linear-gradient(135deg,#72e6ff99,#ff9fd78c)}.message-list .system{margin:4px auto;max-width:80%;text-align:center;background:none;box-shadow:none;padding:2px 8px}.system-message-text{font-size:.78rem;color:var(--muted);font-style:italic;overflow-wrap:anywhere}.assistant-thinking{width:100%;padding:6px 0;align-self:stretch}.assistant-thinking-label{margin:8px 0 0;text-align:center;font-size:.82rem;color:var(--muted)}.thinking-line{display:block;width:min(220px,72%);margin:0 auto;height:10px;border-radius:999px;background:linear-gradient(90deg,#72e6ff33,#a788ffb3,#72e6ff33);background-size:220% 100%;animation:thinking-shimmer 1.1s linear infinite}@keyframes thinking-shimmer{0%{background-position:200% 0}to{background-position:-20% 0}}.memory-used{border-top:none;padding-top:12px}code{padding:4px 8px;border-radius:10px;background:#ffffff94;color:#45617f}@media(max-width:980px){.app-shell{margin-top:16px;margin-bottom:16px;padding:10px 14px}.topbar{display:grid;grid-template-columns:1fr auto;gap:8px;padding:8px 10px}.topbar-search-form{grid-column:1 / -1;order:3;max-width:none}.page-grid{grid-template-columns:1fr}}@media(max-width:720px){body{padding:0}.app-shell{padding:10px}.page-card{padding:16px;border-radius:22px}.row-form{grid-template-columns:1fr}.chat-input-form{grid-template-columns:minmax(0,1fr) auto auto;gap:8px}.chat-menu-controls{width:100%;margin-left:0;justify-content:flex-end}.chat-voice-toggle{min-width:0;padding-inline:8px}.chat-voice-toggle-label{font-size:.72rem}.message-list .assistant,.message-list .user,.message-list .system{max-width:100%}.fact-header{flex-direction:column;align-items:stretch;gap:10px}.fact-actions{justify-content:flex-end;flex-wrap:wrap}.voice-recording-active{flex-wrap:wrap;align-items:flex-start}}@media(max-width:560px){.app-shell{padding:8px}.page-card{padding:14px;border-radius:18px}.auth-shell{padding:16px}.chat-header{gap:10px}.chat-menu-controls{justify-content:flex-start}.chat-role-card{padding:14px}.chat-role-options label{grid-template-columns:16px minmax(0,1fr);gap:8px}.mic-preview{grid-template-columns:1fr}.mic-preview-actions{justify-self:end}.fact-actions{justify-content:flex-start}.memory-kind-badge{white-space:normal}.memory-form-actions{flex-wrap:wrap;justify-content:flex-start;gap:8px}.grantee-actions{align-items:flex-start}.voice-meta div{flex-direction:column;gap:4px}.voice-meta dd{text-align:left}}@media(max-width:420px){.chat-input-form{grid-template-columns:minmax(0,1fr) auto auto;gap:6px}.chat-voice-toggle-label{display:none}.chat-voice-toggle{padding-inline:6px}.message-list li{padding:12px 14px}.grantee-actions{flex-direction:column;align-items:stretch}.grantee-actions button{width:100%}.voice-style-grid{grid-template-columns:1fr}}.voice-card{gap:14px;padding:22px;display:flex;flex-direction:column}.video-page-intro h2{margin:0;font-size:1.35rem}.video-page-status-line{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin-bottom:0}.video-page-updated{font-weight:400}.video-reference-thumb{max-width:240px;width:100%;height:auto;border-radius:18px;border:1px solid rgba(255,255,255,.55);box-shadow:0 10px 28px #3c507824;object-fit:cover}.voice-recorder{display:flex;flex-direction:column;gap:8px}.voice-record-actions{display:flex;flex-wrap:wrap;gap:10px}.voice-upload-button{display:inline-flex;align-items:center;padding:.45rem .9rem;border-radius:12px;background:#fff6;border:1px solid rgba(255,255,255,.6);cursor:pointer;font-weight:500;font-size:.95rem}.voice-upload-button input{display:none}.voice-recording-active{display:flex;align-items:center;gap:12px;padding:10px 14px;border-radius:14px;background:#f854541f;border:1px solid rgba(248,84,84,.35);font-weight:500}.voice-recording-dot{width:10px;height:10px;border-radius:50%;background:#f85454;animation:voicePulse 1.1s ease-in-out infinite}@keyframes voicePulse{0%,to{opacity:.55;transform:scale(.92)}50%{opacity:1;transform:scale(1.08)}}.voice-preview{display:flex;flex-direction:column;gap:10px;padding-top:6px;border-top:1px solid rgba(255,255,255,.45)}.voice-preview .restricted-audio-player,.voice-card .restricted-audio-player{width:100%}.voice-consent{display:flex;gap:8px;align-items:flex-start;font-size:.92rem;color:var(--text-soft);line-height:1.4}.voice-preview-actions{display:flex;flex-wrap:wrap;gap:10px}.voice-training{display:flex;flex-direction:column;gap:10px;margin-top:12px;padding-top:12px;border-top:1px solid rgba(255,255,255,.45)}.voice-training h3{margin:0;font-size:1.05rem}.voice-training-progress{display:flex;flex-direction:column;gap:6px}.voice-training-bar{position:relative;width:100%;height:10px;background:#ffffff59;border-radius:999px;overflow:hidden}.voice-training-bar-fill{height:100%;background:linear-gradient(90deg,#5b8dee,#7bc6ff);border-radius:999px;transition:width .4s ease}.voice-meta{display:grid;grid-template-columns:1fr;gap:6px;margin:0}.voice-meta div{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;font-size:.92rem;color:var(--text-soft)}.voice-meta dt{font-weight:600;color:var(--text-strong)}.voice-meta dd{margin:0;text-align:right}.voice-tips{margin:0;padding-left:18px;display:grid;gap:4px}.ghost-button{background:transparent;border:1px solid rgba(255,255,255,.6);color:var(--text-strong);box-shadow:none}.ghost-button:hover{background:#ffffff73}.audio-bubble{display:flex;align-items:center;gap:10px;margin-top:6px;padding:8px 12px;border-radius:14px;background:#ffffff59;border:1px solid rgba(255,255,255,.55)}.audio-bubble button{background:transparent;border:1px solid rgba(255,255,255,.55);border-radius:999px;padding:4px 10px;font-size:.82rem;cursor:pointer}.audio-bubble .restricted-audio-player{flex:1;height:32px}.audio-bubble.locked{background:#ffc4542e;border-color:#ffc45480}.chat-sound-toggle{background:transparent;border:1px solid rgba(255,255,255,.55);border-radius:999px;padding:2px 12px;font-size:.85rem;cursor:pointer}.chat-sound-toggle.muted{opacity:.6}.page-grid-message{grid-column:1 / -1}.audio-bubble{flex-direction:column;align-items:stretch}.audio-bubble-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.voice-emotion-badge{font-size:.78rem;padding:2px 10px;border-radius:999px;background:#a788ff2e;color:var(--violet);border:1px solid rgba(167,136,255,.4);white-space:nowrap;text-transform:lowercase}.voice-emotion-badge-joy{background:#ffdc7838;color:#b88412;border-color:#ffc85a80}.voice-emotion-badge-sad{background:#729ae638;color:#2f5494;border-color:#729ae680}.voice-emotion-badge-surprise{background:#ff9fd738;color:#a73e87;border-color:#ff9fd780}.voice-fallback-hint{margin:4px 0 0;color:var(--muted);font-style:italic}.voice-styles-card{display:flex;flex-direction:column;gap:18px}.voice-styles-header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}.voice-styles-header h2{margin:0 0 4px}.voice-styles-header button{white-space:nowrap}.voice-quality{border:1px solid rgba(255,255,255,.55);background:#ffffff59;border-radius:18px;padding:12px 16px;display:flex;flex-direction:column;gap:8px}.voice-quality-header{display:flex;justify-content:space-between;align-items:center}.voice-quality-header strong{color:var(--violet);font-size:1.2rem}.voice-quality-bar{height:8px;border-radius:999px;background:#a788ff2e;overflow:hidden}.voice-quality-bar-fill{height:100%;background:linear-gradient(90deg,var(--cyan),var(--violet));transition:width .2s ease}.voice-quality-hint{margin:0;color:var(--muted)}.voice-style-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:16px}.voice-style-card{border:1px solid rgba(255,255,255,.55);background:#fff6;border-radius:18px;padding:16px;display:flex;flex-direction:column;gap:10px}.voice-style-card-header{display:flex;justify-content:space-between;align-items:flex-start;gap:8px}.voice-style-card-header h3{margin:0;font-size:1.05rem}.voice-style-card-subtitle{margin:0;color:var(--muted)}.voice-style-card-description{margin:0;color:var(--text-soft)}.voice-style-card-locked{margin:0;color:var(--muted);font-style:italic}.voice-style-status{font-size:.78rem;padding:2px 10px;border-radius:999px;background:#ffffff80;color:var(--muted);border:1px solid rgba(255,255,255,.6);white-space:nowrap}.voice-style-status-ready{background:#9ff8d573;color:var(--success);border-color:#9ff8d5b3}.voice-style-status-processing{background:#72e6ff59;color:#1a6478;border-color:#72e6ff99}.voice-style-status-failed{background:#d5607f2e;color:var(--danger);border-color:#d5607f66}.voice-badge{display:inline-block;font-size:.78rem;padding:2px 10px;margin-left:6px;border-radius:999px;border:1px solid rgba(255,255,255,.6);white-space:nowrap;vertical-align:middle}.voice-badge-accurate{background:#9ff8d58c;color:var(--success);border-color:#9ff8d5d9}.voice-badge-general{background:#ffe08a73;color:#6b4e00;border-color:#ffe08ab3}.voice-badge-retrain{background:#ffbcbc73;color:var(--danger);border-color:#ffbcbcb3}.voice-style-card-status-group{display:flex;flex-direction:column;align-items:flex-end;gap:6px}.voice-style-recorder{display:flex;flex-direction:column;gap:8px}.voice-style-preview{display:flex;flex-direction:column;gap:6px}.voice-style-preview .restricted-audio-player{width:100%}.voice-style-feedback{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.restricted-audio-player{display:flex;align-items:center;gap:8px;width:100%;min-width:0;height:36px}.restricted-audio-player audio{display:none}.restricted-audio-play{width:32px;height:32px;min-width:32px;padding:0;border-radius:999px;border:1px solid rgba(255,255,255,.55);background:#ffffff59;color:var(--text);display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.restricted-audio-play:hover{background:#ffffff80}.restricted-audio-track{flex:1;min-width:0;height:6px;border-radius:999px;background:#7882aa38;position:relative;cursor:pointer;touch-action:none;overflow:visible}.restricted-audio-fill{position:absolute;left:0;top:0;height:100%;width:0;border-radius:inherit;background:var(--violet);pointer-events:none}.restricted-audio-track.is-complete .restricted-audio-fill{width:100%}.restricted-audio-thumb{position:absolute;top:50%;left:0;width:12px;height:12px;border-radius:50%;background:var(--violet);box-shadow:0 0 0 2px #ffffffd9;pointer-events:none;transform:translate(-50%,-50%)}.restricted-audio-track.is-complete .restricted-audio-thumb{left:auto;right:0;transform:translateY(-50%)}.restricted-audio-time{font-size:.75rem;color:var(--text-soft);white-space:normal;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.voice-style-feedback button{font-size:.82rem;padding:4px 12px;border-radius:999px;border:1px solid rgba(255,255,255,.55);background:#ffffff59;cursor:pointer}.voice-style-feedback button.voice-feedback-active{background:#a788ff40;border-color:var(--violet);color:var(--violet)}.voice-style-prompts{display:flex;flex-direction:column;gap:6px}.voice-style-prompts-body ul{margin:6px 0 0;padding-left:18px;color:var(--text-soft)}.voice-style-prompts-body li+li{margin-top:4px}.voice-compare-overlay{position:fixed;inset:0;background:#1418266b;display:flex;align-items:center;justify-content:center;z-index:1000;padding:24px}.voice-compare-modal{max-width:560px;width:100%;max-height:90vh;overflow-y:auto;display:flex;flex-direction:column;gap:12px;padding:24px}.voice-compare-header{display:flex;justify-content:space-between;align-items:center}.voice-compare-header h2{margin:0}.voice-compare-modal textarea{width:100%;border-radius:14px;border:1px solid rgba(255,255,255,.55);padding:10px 12px;font:inherit;resize:vertical}.voice-compare-grid{display:flex;flex-direction:column;gap:10px}.voice-compare-item{border:1px solid rgba(255,255,255,.55);background:#ffffff59;border-radius:14px;padding:10px 12px;display:flex;flex-direction:column;gap:6px}.voice-compare-item h3{margin:0;font-size:1rem}.voice-compare-item audio{width:100%;height:36px}
