.atlas-button{font:600 1rem/1.5 var(--atlas-font);min-height:48px;min-width:44px;border-radius:14px;padding:12px 16px;border:1px solid transparent;white-space:normal;overflow-wrap:anywhere;cursor:pointer;transition:background 120ms var(--atlas-motion-ease)}
.atlas-button--primary{background:var(--atlas-brand-primary);color:var(--atlas-brand-on-primary)}
.atlas-button--primary:hover:not(:disabled){background:var(--atlas-action-hover)}
.atlas-button--primary:active:not(:disabled){background:var(--atlas-action-pressed)}
.atlas-button--secondary{background:var(--atlas-bg-surface);border-color:var(--atlas-control-action-border);color:var(--atlas-control-action-ink)}
.atlas-button--plain{background:transparent;color:var(--atlas-fg-primary)}
.atlas-button--secondary:hover:not(:disabled),.atlas-button--plain:hover:not(:disabled){background:var(--atlas-control-hover)}
.atlas-button--secondary:active:not(:disabled),.atlas-button--plain:active:not(:disabled){background:var(--atlas-control-pressed)}
.atlas-button:disabled{opacity:1;background:var(--atlas-bg-soft);color:var(--atlas-fg-secondary);border-color:transparent;cursor:default}
.atlas-icon-button{width:44px;min-width:44px;height:44px;padding:0;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:16px;background:transparent;color:var(--atlas-fg-primary);cursor:pointer;flex-shrink:0}
.atlas-icon-button:hover{background:var(--atlas-control-hover)}
.atlas-icon-button:active{background:var(--atlas-control-pressed)}
.atlas-icon{display:block;flex-shrink:0;max-width:none}
.atlas-field{display:flex;flex-direction:column;gap:8px;min-width:0}
.atlas-field-label{font:600 1rem/1.5 var(--atlas-font);color:var(--atlas-fg-secondary)}
.atlas-input{font:400 1.125rem/1.5556 var(--atlas-font);min-width:0;width:100%;min-height:52px;border:1px solid var(--atlas-border-control);border-radius:14px;padding:12px 16px;color:var(--atlas-fg-primary);background:var(--atlas-bg-surface)}
.atlas-input::placeholder{color:var(--atlas-fg-secondary);opacity:1}
.atlas-input[aria-invalid=true]{border-color:var(--atlas-status-error)}
.atlas-helper{font:400 1rem/1.5 var(--atlas-font);color:var(--atlas-fg-secondary);overflow-wrap:anywhere;margin:0}
.atlas-error{color:var(--atlas-status-error)}
.atlas-switch-row{display:flex;gap:12px;align-items:center;justify-content:space-between;min-height:56px;padding:8px 16px;cursor:pointer}
.atlas-switch-copy{display:flex;flex-direction:column;gap:4px;min-width:0}
.atlas-switch-label{font:400 1.125rem/1.5556 var(--atlas-font);overflow-wrap:anywhere}
.atlas-settings-row{display:flex;gap:12px;align-items:center;width:100%;min-height:56px;padding:8px 16px;border:0;background:transparent;text-align:left;color:var(--atlas-fg-primary);font:400 1.125rem/1.5556 var(--atlas-font);cursor:pointer}
.atlas-settings-name{flex:1;min-width:0;overflow-wrap:anywhere}
.atlas-settings-value{text-align:right;max-width:8ch}
.atlas-search{position:relative;min-width:0}
.atlas-search .atlas-input{padding-right:60px;border-radius:16px}
.atlas-filter-button{position:absolute;right:8px;top:50%;transform:translateY(-50%)}
.atlas-surface{box-sizing:border-box;padding:0;border:0;background:transparent;color:var(--atlas-fg-primary);max-width:100%;max-height:100dvh;overflow:visible}
.atlas-surface::backdrop{background:var(--atlas-overlay-scrim)}
.atlas-sheet{width:min(100%,480px);margin:auto auto 0}
.atlas-dialog{width:min(358px,calc(100% - 32px));margin:auto}
.atlas-surface-frame{display:flex;flex-direction:column;gap:12px;box-sizing:border-box;background:var(--atlas-bg-raised);border:1px solid var(--atlas-panel-edge);max-height:90dvh;min-height:0;overflow:hidden}
.atlas-sheet .atlas-surface-frame{padding:12px 16px max(16px,env(safe-area-inset-bottom));border-radius:24px 24px 0 0;box-shadow:0 -4px 16px var(--atlas-panel-shadow)}
.atlas-dialog .atlas-surface-frame{padding:20px;border-radius:20px}
.atlas-sheet-handle{align-self:center;position:relative;width:64px;height:8px;touch-action:none}
.atlas-sheet-handle::after{content:'';position:absolute;left:16px;top:0;width:32px;height:4px;border-radius:2px;background:var(--atlas-fg-secondary)}
.atlas-surface-header{display:flex;gap:8px;align-items:center;flex-shrink:0;min-height:44px}
.atlas-surface-title{font:600 1.25rem/1.4 var(--atlas-font);margin:0;flex:1;min-width:0;overflow-wrap:anywhere}
.atlas-surface-content{overflow:auto;min-height:0;padding:4px;scroll-padding:8px}
.atlas-message{display:flex;gap:8px;align-items:flex-end;max-width:100%;margin:0;min-width:0}
.atlas-message--owner{justify-content:flex-end;padding-left:36px}
.atlas-message--guest{justify-content:flex-start;padding-right:36px}
.atlas-message-bubble{border-radius:16px;background:var(--atlas-bg-soft);padding:4px 4px 4px 12px;max-width:min(286px,calc(100% - 36px));min-width:0}
.atlas-message--guest .atlas-message-bubble{background:var(--atlas-bg-surface)}
.atlas-message-line{display:flex;gap:8px;align-items:center;min-height:44px}
.atlas-message-source{font:400 1.125rem/1.5556 var(--atlas-font);margin:0;min-width:0;overflow-wrap:anywhere;white-space:pre-wrap}
.atlas-message-translation{font:400 1.125rem/1.5556 var(--atlas-font);color:var(--atlas-fg-secondary);margin:8px 8px 8px 0;overflow-wrap:anywhere;white-space:pre-wrap}
.atlas-message-bubble--media{width:286px;padding:12px;display:flex;flex-direction:column;gap:8px}
.atlas-message-bubble--media>video,.atlas-message-bubble--media>img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px}
.atlas-message-bubble--media .atlas-message-source{flex:1}
.atlas-message-bubble--media .atlas-message-line{width:100%}
.atlas-message-avatar{width:28px;height:28px;display:flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:50%;background:var(--atlas-bg-soft);font:600 1rem/1.5 var(--atlas-font)}
.atlas-video-card{display:flex;flex-direction:column;gap:4px;min-width:0}
.atlas-video-preview{padding:0;border:0;background:var(--atlas-bg-surface);aspect-ratio:1;overflow:hidden;border-radius:16px;cursor:pointer}
.atlas-video-poster{display:block;width:100%;height:100%;object-fit:cover}
.atlas-video-meta{display:flex;gap:4px;align-items:center;min-width:0}
.atlas-video-caption{font:400 1.125rem/1.5556 var(--atlas-font);margin:0;flex:1;min-width:0;overflow-wrap:anywhere}
.atlas-video-meta .atlas-icon-button[aria-pressed=true]{background:var(--atlas-bg-soft)}
.atlas-phrase{display:flex;flex-direction:column;gap:10px;padding:16px;border:1px solid var(--atlas-border-subtle);border-radius:18px;background:var(--atlas-bg-surface);min-width:0}
.atlas-phrase-header,.atlas-guide-header{display:flex;align-items:center;min-height:44px;min-width:0}
.atlas-phrase-title{flex:1;min-width:0;font:600 1rem/1.5 var(--atlas-font);color:var(--atlas-brand-ink);margin:0;overflow-wrap:anywhere}
.atlas-phrase--emergency .atlas-phrase-title{color:var(--atlas-fg-primary)}
.atlas-phrase-text{margin:0;font:400 1.125rem/1.5556 var(--atlas-font);white-space:pre-wrap;overflow-wrap:anywhere}
.atlas-guide{display:flex;flex-direction:column;gap:8px;padding:8px 16px 16px;border:1px solid var(--atlas-panel-edge);border-radius:16px;background:var(--atlas-bg-raised);min-width:0}
.atlas-guide-header{justify-content:space-between;gap:8px}
.atlas-guide-header .atlas-button{min-height:44px;padding:8px}
.atlas-guide-task{font:600 1.25rem/1.4 var(--atlas-font);margin:0;overflow-wrap:anywhere}
.atlas-themed-icon{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}
.atlas-light-icon{display:none}
[data-atlas-theme=light] .atlas-dark-icon{display:none}
[data-atlas-theme=light] .atlas-light-icon{display:block}
.atlas-sign-icon{display:inline-block;position:relative;width:28px;height:28px;flex-shrink:0}
.atlas-sign-pair{position:absolute;inset:0}
.atlas-sign-hand{position:absolute}
.atlas-sign-hand--left{left:.43px;top:10.63px}
.atlas-sign-hand--right{right:.43px;bottom:10.63px;transform:rotate(180deg)}
.atlas-choice{position:relative;display:flex;gap:12px;align-items:center;min-height:56px;padding:12px 16px;border:1px solid var(--atlas-border-subtle);border-radius:14px;background:var(--atlas-panel-action);cursor:pointer}
.atlas-choice-text{flex:1;min-width:0;font:600 1rem/1.5 var(--atlas-font);overflow-wrap:anywhere}
.atlas-choice-input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.atlas-choice-check{visibility:hidden;flex-shrink:0}
.atlas-choice:has(.atlas-choice-input:checked){background:var(--atlas-brand-selection);border-color:var(--atlas-brand-ink);color:var(--atlas-brand-ink)}
.atlas-choice-input:checked~.atlas-choice-check{visibility:visible}
.atlas-choice:has(.atlas-choice-input:focus-visible){outline:2px solid var(--atlas-focus-ring);outline-offset:2px;box-shadow:0 0 0 2px var(--atlas-focus-halo)}
.atlas-contact{display:flex;gap:12px;align-items:center;min-height:80px;width:100%;padding:8px 0;border:0;background:transparent;text-align:left;color:var(--atlas-fg-primary);cursor:pointer}
.atlas-contact-avatar{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:24px;flex-shrink:0;background:var(--atlas-brand-selection);color:var(--atlas-brand-ink);font:600 1.125rem/1.3333 var(--atlas-font)}
.atlas-contact-copy{display:flex;flex-direction:column;flex:1;min-width:0}
.atlas-contact-top,.atlas-contact-bottom{display:flex;gap:8px;align-items:center;min-width:0}
.atlas-contact-top{flex-wrap:wrap}
.atlas-contact-name{flex:1 1 12ch;min-width:0;font:600 1.125rem/1.3333 var(--atlas-font);overflow-wrap:anywhere}
.atlas-contact-time{font:400 .75rem/1.5 var(--atlas-font);color:var(--atlas-brand-ink);margin-inline-start:auto;white-space:nowrap}
.atlas-contact-detail{flex:1;min-width:0;font:400 1rem/1.5 var(--atlas-font);overflow-wrap:anywhere}
.atlas-contact-unread{min-width:20px;min-height:20px;padding:2px 4px;border-radius:10px;background:var(--atlas-brand-primary);color:var(--atlas-brand-on-primary);font:600 .75rem/1.3333 var(--atlas-font);text-align:center}
.atlas-tools-content{display:flex;flex-direction:column;gap:12px;container-type:inline-size}
.atlas-tools-snapshot{display:flex;flex-direction:column;gap:4px}
.atlas-tools-source{font:400 1rem/1.5 var(--atlas-font);margin:0;white-space:pre-wrap;overflow-wrap:anywhere;max-height:96px;overflow:auto}
.atlas-tools-grid{display:grid;grid-template-columns:minmax(0,1fr) 86px minmax(0,1fr);gap:12px;align-items:center}
.atlas-tool-column{display:flex;flex-direction:column;gap:8px;min-width:0}
.atlas-tool-button{display:flex;align-items:center;gap:4px;min-height:44px;padding:8px;border:1px solid var(--atlas-border-subtle);border-radius:16px;background:var(--atlas-bg-canvas);text-align:left;font-weight:400;flex-wrap:wrap}
.atlas-sign-tool{display:flex;flex-direction:column;align-items:center;gap:8px}
.atlas-sign-action{width:48px;height:48px;border-radius:24px;border:1.5px solid var(--atlas-brand-ink);background:var(--atlas-bg-soft)}
.atlas-sign-label{font:600 1rem/1.5 var(--atlas-font);text-align:center;overflow-wrap:anywhere}
.atlas-button,.atlas-icon-button,.atlas-input,.atlas-settings-row,.atlas-choice-input,.atlas-contact{touch-action:manipulation}
.atlas-icon-button:disabled{opacity:1;color:var(--atlas-fg-secondary);cursor:default}
@media(max-width:359px){.atlas-tools-grid{gap:8px;grid-template-columns:minmax(0,1fr) 76px minmax(0,1fr)}}
@container(width < 21rem){.atlas-tools-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.atlas-sign-tool{grid-column:1/-1;grid-row:1;flex-direction:row;justify-content:center}.atlas-sign-label{overflow-wrap:normal}.atlas-tool-button{justify-content:center;text-align:center}}
@container(width < 15rem){.atlas-tool-column{grid-column:1/-1}.atlas-tool-button{justify-content:flex-start;text-align:left}}
@media(max-width:359px){.atlas-message--owner{padding-left:16px}.atlas-message--guest{padding-right:16px}}
.atlas-switch-control{position:relative;display:block;width:44px;height:44px;flex-shrink:0}
.atlas-switch{position:absolute;inset:0;appearance:none;width:44px;height:44px;margin:0;border:0;border-radius:14px;background:transparent;cursor:pointer;z-index:1}
.atlas-switch-off,.atlas-switch-on{position:absolute;top:8px;left:0;pointer-events:none}
.atlas-switch-on{display:none}
.atlas-switch:checked~.atlas-switch-off{display:none}
.atlas-switch:checked~.atlas-switch-on{display:block}

@font-face{font-family:Atlas;src:url('/assets/fonts/atkinson-next-italic.ttf') format('truetype');font-style:italic;font-weight:400 600;font-display:swap}
*{box-sizing:border-box}
html{min-width:320px;min-height:100%;background:var(--atlas-bg-canvas)}
body{margin:0;font-size:1.125rem;line-height:1.5556}
button,input,textarea{font:inherit;color:inherit}
button{cursor:pointer;-webkit-tap-highlight-color:transparent}
button,input,textarea{touch-action:manipulation}
button[aria-disabled=true]{cursor:default}
button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--atlas-focus-ring);outline-offset:2px}
h1,h2,p{margin:0}
h1{font-size:2rem;line-height:1.25;font-weight:600;overflow-wrap:anywhere}
h2{font-size:1.25rem;line-height:1.4;font-weight:600}
h1[tabindex="-1"]:focus-visible{outline:0;box-shadow:none}
.screen{width:100%;min-height:100svh;min-height:100dvh;display:flex;flex-direction:column;padding-top:env(safe-area-inset-top);padding-bottom:max(12px,env(safe-area-inset-bottom));background:var(--atlas-bg-canvas)}
.brand-header{display:flex;align-items:center;gap:8px;min-height:72px;padding:14px 16px;font-size:1.25rem;font-weight:600}
.emblem{display:block;flex-shrink:0;overflow:hidden}
.emblem img{display:block;max-width:none}
.emblem--welcome{width:29px;height:25.528px;mask-image:url('/assets/figma/welcome-dark-mask.svg');mask-size:29px 25.518px;mask-repeat:no-repeat}
.emblem--welcome.theme-light{mask-image:url('/assets/figma/welcome-light-mask.svg')}
.emblem--gate{width:90.88px;height:80px;mask-image:url('/assets/figma/gate-mask.svg');mask-size:90.88px 79.969px;mask-repeat:no-repeat}
.emblem--bridge{width:27.264px;height:24px;mask-image:url('/assets/figma/bridge-dark-mask.svg');mask-size:27.264px 23.991px;mask-repeat:no-repeat}
[data-atlas-theme=light] .emblem--bridge{mask-image:url('/assets/figma/bridge-light-mask.svg')}
.theme-light{display:none}
[data-atlas-theme=light] .theme-dark{display:none}
[data-atlas-theme=light] .theme-light{display:block}
.welcome-content{flex:1;padding:128px 16px 24px;display:flex;flex-direction:column;gap:28px}
.welcome-lead{display:flex;flex-direction:column;gap:12px}
.welcome-lead p,.welcome-guide p,.support{color:var(--atlas-fg-secondary)}
.welcome-guide{display:flex;flex-direction:column;gap:12px}
.welcome-actions{padding:12px 16px 56px}
.access-brand{flex:1;display:flex;flex-direction:column;align-items:flex-start;gap:24px;padding:112px 24px 16px}
.access-brand h1,.bridge-empty{font-style:italic}
.access-form{display:flex;flex-direction:column;gap:12px;padding:24px}
.access-form label{font-size:1rem;font-weight:600}
.access-form input{border:1px solid var(--atlas-border-control);border-radius:16px;background:var(--atlas-bg-surface);padding:12px;min-height:54px;min-width:0;width:100%;font-size:1.125rem;line-height:1.5556}
.support{font-size:1rem;line-height:1.5;overflow-wrap:anywhere}
.error{font-size:1rem;line-height:1.5;color:var(--atlas-status-error);overflow-wrap:anywhere}
.error:empty{display:none}
.loading{justify-content:center;gap:16px;padding:24px}
.bridge{height:100dvh;min-height:420px}
.bridge-header{display:flex;gap:8px;align-items:center;padding:10px 16px;min-height:72px;flex-shrink:0}
.people{display:flex;flex:1;flex-wrap:wrap;min-width:0;gap:4px}
.person{display:flex;flex:1;flex-basis:calc(44px + 5ch);min-width:0;min-height:52px;align-items:center;gap:8px;padding:8px;border:0;border-radius:8px;background:transparent;font-size:1rem;font-weight:600;color:var(--atlas-fg-secondary);overflow-wrap:normal}
.active-person{background:var(--atlas-brand-selection);color:var(--atlas-fg-primary)}
.avatar{width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0;background:var(--atlas-bg-soft)}
.owner-avatar{background:var(--atlas-brand-primary);color:var(--atlas-brand-on-primary)}
.conversation{flex:1;min-height:80px;overflow:auto;padding:16px 24px;display:flex;flex-direction:column;justify-content:center}
.composer{padding:8px 16px 12px;flex-shrink:0}
.composer-row{display:flex;gap:8px;align-items:center}
.composer-field{display:flex;flex:1;min-width:0;min-height:52px;border:1px solid var(--atlas-border-control);border-radius:16px;background:var(--atlas-bg-surface);padding:4px 4px 4px 12px}
.composer-field textarea{resize:none;align-self:center;display:block;border:0;border-radius:8px;min-width:0;width:100%;padding:8px 0;min-height:44px;max-height:176px;background:transparent;font-size:1.125rem;line-height:1.5556}
textarea::placeholder{color:var(--atlas-fg-secondary);opacity:1}
.composer-actions{display:flex;flex-direction:column;gap:8px}
.tools-button{background:var(--atlas-bg-surface);border:1px solid var(--atlas-border-subtle)}
.record-button{background:var(--atlas-brand-primary);color:var(--atlas-brand-on-primary)}
.operation-notice:empty{display:none}
.operation-notice{margin-top:8px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(min-width:640px){.screen{max-width:480px;margin-inline:auto;border-inline:1px solid var(--atlas-border-subtle)}}
@media(max-height:650px){.welcome-content{padding-top:48px}.welcome-actions{padding-bottom:12px}.access-brand{padding-top:40px}}
@media(max-width:359px){.bridge-header{gap:4px}.person{gap:4px;padding-inline:4px}.bridge-header .atlas-icon-button{width:44px}.people{gap:0}}

.welcome-actions>.atlas-button,.access-form>.atlas-button{width:100%}
.access-form .atlas-field-label{color:var(--atlas-fg-primary)}
.session-menu-content{display:flex;flex-direction:column;gap:16px}

.capture-screen{position:relative;min-height:100dvh;height:100dvh;overflow:auto;padding:0;isolation:isolate}
.capture-stage{position:absolute;inset:0;z-index:-1;background:#18181b;overflow:hidden}
.capture-live,.capture-preview{display:block;width:100%;height:100%;object-fit:contain;transform:none}
.capture-live[hidden],.capture-preview[hidden]{display:none}
.capture-guide{position:absolute;left:50%;top:50%;width:390px;height:844px;transform:translate(-50%,-50%) scale(var(--capture-guide-scale,1));pointer-events:none}
.capture-guide img{display:block}
.capture-guide[hidden]{display:none}
.capture-header{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:64px;padding:calc(10px + env(safe-area-inset-top)) 16px 10px;background:#000000a3;color:var(--atlas-brand-on-primary);flex-shrink:0}
.capture-header h1{font-size:1.25rem;line-height:1.4;font-weight:600}
.capture-header button{min-width:80px;color:inherit}
.capture-controls{margin-top:auto;flex-shrink:0;display:flex;flex-direction:column;gap:8px;padding:24px 16px calc(32px + env(safe-area-inset-bottom));color:var(--atlas-brand-on-primary);background:linear-gradient(transparent,#000000d1)}
.capture-guidance{font-size:1rem;line-height:1.5;text-align:center;min-height:48px}
.capture-record-group{display:flex;flex-direction:column;align-items:center;gap:4px}
.capture-record.atlas-button{width:72px;height:72px;min-height:72px;padding:0;border-radius:50%;display:grid;place-items:center;background:var(--atlas-brand-primary);color:var(--atlas-brand-on-primary)}
.capture-record--active.atlas-button{background:var(--atlas-status-recording,#E10600)}
.capture-sign{display:block;width:36px;height:36px;position:relative}
.capture-sign-left,.capture-sign-right{position:absolute;display:block}
.capture-sign-left{left:.55px;top:13.67px}
.capture-sign-right{right:.55px;bottom:13.67px;transform:rotate(180deg)}
.capture-record-label{font-size:1rem;font-weight:600;line-height:1.5}
.capture-clock{display:flex;justify-content:space-between;padding:8px 16px;background:#000000a3;color:var(--atlas-brand-on-primary);font-size:1rem;font-variant-numeric:tabular-nums;line-height:1.5}
.capture-clock[hidden]{display:none}
.capture-preview-body{padding:16px;display:flex;flex-direction:column;gap:12px;flex-shrink:0}
.capture-preview-body[hidden],.capture-controls[hidden],.capture-preview-body>*[hidden],.capture-controls>*[hidden]{display:none}
.capture-screen:not(.capture-screen--preview) .capture-preview-body{margin-top:auto;color:var(--atlas-brand-on-primary);background:#000000d1}
.capture-status{font-size:1rem;line-height:1.5;overflow-wrap:anywhere;color:var(--atlas-fg-secondary)}
.capture-screen:not(.capture-screen--preview) .capture-status{color:inherit}
.capture-status:empty{display:none}
.capture-screen--preview .capture-header{background:var(--atlas-bg-canvas);color:var(--atlas-fg-primary)}
.capture-screen--preview .capture-header button{color:var(--atlas-brand-ink)}
.capture-screen--preview .capture-stage{position:relative;inset:auto;z-index:0;order:1;flex:1 0 220px;min-height:220px;margin:8px 16px 0;border-radius:16px;background:var(--atlas-bg-soft)}
.capture-screen--preview .capture-header{order:0}
.capture-screen--preview .capture-preview-body{order:2;padding-top:12px}
.capture-playback{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.capture-position{font-size:1rem;color:var(--atlas-fg-secondary);font-variant-numeric:tabular-nums}
.capture-playback .atlas-button{min-width:100px}
.capture-playback .atlas-button--plain{padding-inline:4px;min-width:0}
.capture-actions{display:flex;gap:12px}
.capture-actions>.atlas-button:first-child{flex:1;min-width:0}
.capture-actions>.atlas-button:last-child{min-width:112px}
.capture-screen--preview .atlas-field-label{color:var(--atlas-brand-ink)}
.capture-library{padding:0 16px 24px;gap:16px}
.capture-library .capture-header{margin-inline:-16px;color:var(--atlas-fg-primary);background:var(--atlas-bg-canvas)}
.capture-library video{display:block;width:100%;max-height:62dvh;object-fit:contain;background:var(--atlas-bg-soft);border-radius:16px}
@media(max-width:350px){.capture-playback .atlas-button{min-width:72px}.capture-playback{gap:4px}.capture-actions{gap:8px;flex-direction:column}.capture-actions>.atlas-button{width:100%;min-width:0}.capture-actions>.atlas-button:first-child{flex:initial}}
@media(prefers-reduced-motion:reduce){.capture-screen *{scroll-behavior:auto}}
.personal-library{padding:0 16px max(24px,env(safe-area-inset-bottom));gap:16px}
.personal-library-header{display:flex;align-items:center;gap:8px;min-height:72px;margin-inline:-16px;padding:10px 16px;flex-shrink:0}
.personal-library-header h1{flex:1;font-size:1.25rem;line-height:1.4}
.personal-library-header>.atlas-button{font-size:1rem}
.personal-library-section{align-self:flex-start;padding:16px 12px;border-radius:16px;background:var(--atlas-brand-selection);color:var(--atlas-brand-ink);font-size:1rem;font-weight:600}
.personal-library-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.personal-library-grid[hidden],.personal-video-detail[hidden]{display:none}
.personal-video-slot .atlas-video-preview{width:100%}
.personal-video-slot .atlas-video-poster{object-fit:contain}
.personal-video-detail{display:flex;flex-direction:column;gap:12px}
.personal-video-detail video{display:block;width:100%;max-height:65dvh;object-fit:contain;background:var(--atlas-bg-soft);border-radius:16px}

.writing-field{flex-direction:column}
.writing-input-line{display:flex;align-items:center;gap:4px;width:100%;min-width:0}
.writing-input-line textarea{flex:1;overflow-y:auto}
.writing-input-line>.atlas-icon-button{flex-shrink:0}
.writing-choice{display:flex;align-items:center;gap:4px;border-top:1px solid var(--atlas-border-subtle);padding-top:8px;padding-bottom:4px;width:100%;min-width:0}
.writing-choice[hidden],.writing-undo[hidden],.writing-recovery[hidden],.writing-recovery>[hidden]{display:none}
.writing-choice>.atlas-button{display:flex;flex:1;align-items:center;gap:4px;min-width:0;min-height:44px;padding:0;text-align:start;color:var(--atlas-brand-ink);font-weight:400}
.writing-proposal{flex:1;min-width:0;max-height:176px;overflow-y:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-size:1rem;line-height:1.5}
.writing-check{flex-shrink:0;display:flex;align-items:center}
.writing-check .atlas-themed-icon{display:flex;align-items:center;justify-content:center}
.writing-choice>.atlas-icon-button{flex-shrink:0}
.writing-undo{display:flex;flex-wrap:wrap;align-items:center;column-gap:8px;row-gap:0;min-height:44px;margin-inline-end:52px}
.writing-undo>span{flex:1 1 8ch;min-width:min-content;overflow-wrap:normal;word-break:normal}
.writing-undo>button{flex:0 0 auto;margin-inline-start:auto;color:var(--atlas-brand-ink)}
.bridge-empty[hidden]{display:none}
.writing-status:empty,.writing-status[hidden]{display:none}
.writing-status{margin-top:4px}
.writing-recovery{display:flex;flex-wrap:wrap;gap:8px}
.writing-tools{display:flex;flex-direction:column;gap:12px}
.writing-tools>.atlas-button{width:100%}
.writing-count[hidden]{display:none}

.speech-recording,.speech-waiting{display:flex;align-items:center;gap:8px;min-height:44px;margin-bottom:4px}
.speech-recording[hidden],.speech-waiting[hidden],.speech-status[hidden],#speech-retry[hidden]{display:none}
.speech-recording>.atlas-icon-button{flex-shrink:0}
.speech-wave{display:flex;flex:1;min-width:0;align-items:center;gap:4px;height:32px;overflow:hidden}
.speech-wave>span{width:3px;border-radius:1.5px;flex-shrink:0;background:var(--atlas-status-error)}
.speech-elapsed{flex-shrink:0;white-space:nowrap;font-size:1rem;line-height:1.5;color:var(--atlas-status-error);font-variant-numeric:tabular-nums}
.speech-waiting>p{flex:1;min-width:0;overflow-wrap:anywhere}
.speech-waiting>.atlas-button{flex-shrink:0;color:var(--atlas-brand-ink)}
.dictating #tools,.dictating #draft-mic,.dictating .bridge-empty{display:none}
.dictating #record{background:transparent}
.dictation-recording #record{background:var(--atlas-bg-soft)}
.dictating .bridge-header>#bridge-menu,.dictating .bridge-header>#options,.dictating .people>.person:not(.active-person){opacity:.35}
.speech-status{margin-top:4px;overflow-wrap:anywhere}
.dictating .writing-status,.dictating .writing-count,.dictating .writing-recovery{display:none}

.translation-content{display:flex;flex-direction:column;gap:var(--atlas-space-16,16px);min-width:0}
.translation-languages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--atlas-space-12,12px)}
.translation-section{display:flex;flex-direction:column;gap:var(--atlas-space-8,8px);min-width:0}
.translation-section h3,.translation-section p{margin:0}
.translation-source{font:400 1.125rem/1.5556 var(--atlas-font);white-space:pre-wrap;overflow-wrap:anywhere;max-height:144px;overflow:auto}
.translation-target{font:400 1.125rem/1.5556 var(--atlas-font);min-height:100px;max-height:256px;resize:vertical;white-space:pre-wrap;overflow:auto}
.translation-target:read-only{background:var(--atlas-bg-soft);color:var(--atlas-fg-primary)}
.translation-actions{display:flex;flex-direction:column;gap:var(--atlas-space-8,8px)}
#translation-open{display:flex;align-items:center;justify-content:center;gap:var(--atlas-space-8,8px)}
@media(max-width:340px){.translation-languages{grid-template-columns:minmax(0,1fr)}}

.speech-output-content{display:grid;gap:var(--atlas-space-16,16px);min-width:0}
.speech-output-content>.atlas-helper{margin:0}
.speech-output-text{margin:0;font:400 1.125rem/1.5556 var(--atlas-font);white-space:pre-wrap;overflow-wrap:anywhere;max-height:40dvh;overflow-y:auto}
.speech-output-actions{display:flex;flex-direction:column;gap:var(--atlas-space-8,8px)}
#speech-output-open{display:flex;align-items:center;justify-content:center;gap:var(--atlas-space-8,8px)}

.sign-offer{display:flex;align-items:center;gap:8px;min-height:44px;margin-inline-end:52px;flex-wrap:wrap;padding-inline:12px}
.sign-offer[hidden],.sign-offer>[hidden],.sign-preview>[hidden]{display:none}
.sign-offer>.atlas-button{min-height:44px;padding:0;display:flex;align-items:center;gap:8px;white-space:normal;text-align:start;color:var(--atlas-brand-ink)}
.sign-offer-label{font-size:1rem;line-height:1.5;color:var(--atlas-fg-secondary)}
.sign-offer .atlas-sign-icon{width:24px;height:24px;flex-shrink:0}
.sign-preview{display:flex;flex-direction:column;gap:12px;min-width:0}
.sign-video{display:block;width:100%;max-height:44dvh;object-fit:contain;background:var(--atlas-bg-canvas);border-radius:16px}
.sign-original{font-size:1.125rem;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}
.sign-preview>.atlas-helper{margin:0}
.dictating .sign-offer{display:none}
.sign-offer>.atlas-button[hidden]{display:none}

.conversation>.atlas-message{flex-shrink:0}
.bridge-message-tools{display:flex;flex-direction:column;gap:12px;min-width:0}
.bridge-selected-text{white-space:pre-wrap;overflow-wrap:anywhere;font:400 1.125rem/1.5556 var(--atlas-font);margin:0}
.bridge-translation-editor{display:flex;flex-direction:column;gap:12px}
.bridge-translation-editor[hidden],.bridge-message-tools>[hidden]{display:none}
.bridge-message-video{width:100%;display:flex;flex-direction:column;gap:4px}
.bridge-message-video>video{display:block;width:100%;aspect-ratio:600/540;object-fit:contain;border-radius:12px;background:var(--atlas-bg-canvas)}
.bridge-message-video>.atlas-button{min-height:44px;width:100%;padding:8px}
.bridge-message-tools textarea{min-height:96px;resize:vertical;max-height:35dvh}

.interface-page{overflow:auto;padding-bottom:max(24px,env(safe-area-inset-bottom))}.interface-header{display:flex;align-items:center;gap:12px;padding:12px 16px;min-height:72px;flex-shrink:0}.interface-header h1{font-size:1.25rem;flex:1;text-align:center;font-style:normal}.interface-header>.atlas-icon-button img{width:28px;height:25px}.interface-stack{display:flex;flex-direction:column;gap:16px;min-width:0}.interface-stack textarea{min-height:112px;resize:vertical}.interface-list{display:flex;flex-direction:column;gap:12px;padding:24px}.interface-page>.atlas-helper{margin:0 24px}.sidebar-shade{position:fixed;inset:0;background:#0009;z-index:40;display:flex;justify-content:flex-start}.atlas-sidebar{display:flex;flex-direction:column;width:136px;height:100dvh;background:var(--atlas-bg-surface);padding:12px 8px max(12px,env(safe-area-inset-bottom));overflow:auto}.sidebar-logo{min-height:64px;flex-shrink:0;background:transparent;border:0;display:flex;align-items:center;justify-content:center}.sidebar-logo img{width:27px;height:24px}.sidebar-main,.sidebar-bottom{display:flex;flex-direction:column;gap:2px}.sidebar-bottom{margin-top:auto}.sidebar-entry{background:transparent;border:0;border-radius:12px;min-height:76px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;color:var(--atlas-fg-secondary);font-size:.875rem;line-height:1.35;padding:10px 4px}.sidebar-entry.is-selected{color:var(--atlas-brand-ink);font-weight:600;background:var(--atlas-brand-selection)}.sidebar-entry .avatar{width:44px;height:44px}.interface-nav-icon{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;flex-shrink:0}.interface-nav-icon svg{width:24px;height:24px}.emergency-entry .interface-nav-icon{color:#e10600}.library-tabs{display:flex;gap:4px;padding:4px 16px 12px;flex-shrink:0}.library-tabs>.atlas-button{font-size:.875rem;min-width:0;flex:1;white-space:normal;line-height:1.3;padding:10px 6px}.library-tabs>.is-selected{color:var(--atlas-brand-ink);background:var(--atlas-brand-selection)}.library-page>.atlas-search{margin:0 16px 16px}.library-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 16px;padding:16px}.library-card{min-width:0}.library-card-open{padding:0;background:transparent;border:0;width:100%;display:block;overflow:hidden;border-radius:16px}.library-thumb{display:block;width:100%;aspect-ratio:1;object-fit:contain;background:var(--atlas-bg-soft)}.library-card-meta{display:flex;align-items:center;gap:8px;justify-content:space-between;overflow-wrap:anywhere;font-size:1rem;min-height:44px}.library-card-meta .atlas-icon-button{flex-shrink:0}.library-card>.atlas-helper{font-size:.875rem}.library-detail-video{display:block;width:100%;max-height:60dvh;object-fit:contain;border-radius:16px}.manual-library{display:flex;flex-direction:column;min-height:0;gap:12px}.manual-library .library-grid{max-height:44dvh;overflow:auto;padding:0;scrollbar-width:thin}.manual-library .library-tabs{padding:0}.manual-video-card{padding:0;display:flex;flex-direction:column;gap:8px;border:0;background:transparent;text-align:start;font-size:1rem}.manual-video-card video{width:100%;aspect-ratio:1;object-fit:contain;background:var(--atlas-bg-soft);border-radius:16px}.manual-library-panel .atlas-surface-content{overflow:auto}.manual-selected{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0}.manual-selected>.atlas-button{font-size:1rem;padding:8px 12px}.profile-hero{display:flex;flex-direction:column;align-items:center;gap:16px;padding:16px 24px 32px}.profile-hero .avatar{width:88px;height:88px;font-size:2rem;font-weight:600}.settings-section{margin:0 24px 24px}.settings-section h2{font-size:1rem;font-weight:600;color:var(--atlas-brand-ink);margin-bottom:10px}.settings-group{background:var(--atlas-bg-surface);border-radius:16px;padding:0 16px}.settings-group>.atlas-settings-row{min-height:56px;border-bottom:1px solid var(--atlas-border-subtle)}.settings-group>.atlas-settings-row:last-child{border-bottom:0}.settings-group>.atlas-settings-row:after{content:'›';color:var(--atlas-fg-secondary);margin-left:8px}.expression-row{text-align:start;display:flex;gap:16px;align-items:flex-start;white-space:normal}.expression-text{white-space:pre-wrap;font-size:1.25rem;line-height:1.5}.product-preview{display:flex;flex-direction:column;gap:20px}.preview-stage{min-height:240px;max-height:50dvh;overflow:auto;display:flex;flex-direction:column;gap:12px}.preview-message{background:var(--atlas-bg-soft);border-radius:16px;padding:12px 16px;max-width:90%;animation:atlas-message-in .35s cubic-bezier(.16,1,.3,1)}.preview-message:nth-child(even){align-self:flex-end;background:var(--atlas-brand-selection)}.preview-message strong{font-size:.875rem;color:var(--atlas-brand-ink)}.preview-message p{font-size:1rem}.guide-stage{display:flex;align-items:center;justify-content:space-between}.guide-stage>.atlas-sign-icon{width:48px;height:48px}.guide-copy{font-size:1.125rem}.interface-page select,.atlas-surface select{font:inherit;background:var(--atlas-bg-surface);color:var(--atlas-fg-primary);min-height:48px;width:100%;padding:8px 12px;border:1px solid var(--atlas-border-control);border-radius:12px}.conversation:has(.atlas-message){justify-content:flex-start;gap:16px}.interface-nav-icon+span{overflow-wrap:anywhere}.preview-stage [hidden]{display:none}
@keyframes atlas-message-in{from{opacity:.4;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.preview-message{animation:none}}
@media(max-width:359px){.library-grid{gap:16px 10px;padding:12px}.library-tabs{padding-inline:8px}.interface-header{padding-inline:8px;gap:4px}.interface-header>.atlas-button{padding:10px;font-size:.875rem}.settings-section{margin-inline:16px}.manual-selected{flex-wrap:wrap}}
html{scrollbar-color:var(--atlas-border-control) var(--atlas-bg-canvas)}::selection{background:var(--atlas-brand-selection);color:var(--atlas-fg-primary)}input,textarea{caret-color:var(--atlas-brand-ink)}

.guide-demo{display:flex;flex-direction:column;gap:16px;background:var(--atlas-bg-soft);border-radius:16px;padding:16px;min-height:140px}.camera-coach{position:absolute;z-index:2;left:16px;right:16px;top:76px;padding:12px 16px;border-radius:16px;background:var(--atlas-bg-raised);display:flex;gap:12px;align-items:center;max-width:448px;margin:auto}.camera-coach[hidden]{display:none}.camera-coach .atlas-helper{font-size:.875rem;line-height:1.4}.camera-coach>.atlas-button{flex-shrink:0;font-size:.875rem;padding:8px}.capture-screen{position:relative}

.manual-selected{padding:0;width:max-content}.manual-selected>.atlas-button{display:flex;gap:12px;min-height:44px}.manual-video-card{touch-action:pan-y}.manual-video-card.is-held video{opacity:.25;position:relative;z-index:3}.manual-library.is-holding .library-tabs,.manual-library.is-holding>input{opacity:.35}.manual-library.is-holding .manual-video-card:not(.is-held){opacity:.45}

@media(min-width:640px){.sidebar-shade{padding-inline:max(0px,calc((100vw - 480px)/2));justify-content:flex-start}}.profile-page .interface-header::after{content:"";width:44px;flex-shrink:0}

.manual-preview-portal{overflow:hidden;border-radius:16px;background:var(--atlas-bg-soft)}.manual-preview-portal>canvas,.manual-preview-portal>video{width:100%;height:100%;object-fit:contain;display:block}
