:root{font-family:Inter,ui-sans-serif,system-ui,sans-serif;color:#352c25;background:#f3ebdc;font-synthesis:none}*{box-sizing:border-box}body{margin:0}header{max-width:1400px;margin:auto;padding:28px 38px;display:flex;justify-content:space-between;align-items:center}.brand{display:flex;gap:13px;align-items:center}.mark{background:#674b29;color:#fff7e9;font-family:Georgia,serif;font-style:italic;font-size:32px;border-radius:16px;width:50px;height:50px;text-align:center;line-height:50px}h1{font-family:Georgia,serif;font-weight:normal;font-size:27px;margin:0}header p{margin:4px 0 0;color:#6f6250;font-size:12px}#identity{font-size:13px;color:#526b61}main{max-width:1400px;margin:auto;padding:10px 38px 35px;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(340px,.85fr);gap:24px}.call-panel,.chat-panel{background:#fffaf0;border:1px solid #d8c6a5;border-radius:22px;padding:24px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:21px}h2{font-size:17px;margin:0;font-weight:600}.section-heading span{font-size:11px;color:#657b70}.stage{position:relative;background:linear-gradient(135deg,#252f30,#42504c);border-radius:17px;aspect-ratio:1.22;overflow:hidden;color:#e4eddf}#video-placeholder{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px}.orbit{font-size:90px;line-height:1;color:#aebf9d}h3{font:normal 25px Georgia,serif;margin:25px 0 9px}.stage p{font-size:13px;color:#bdcabc;max-width:250px;line-height:1.7}video#remote{width:100%;height:100%;object-fit:contain;position:absolute}video#local{position:absolute;width:26%;height:30%;right:16px;bottom:16px;object-fit:cover;border-radius:12px;background:#7a8870;border:2px solid #d3dcc76b;transform:scaleX(-1)}video:not([data-active]){visibility:hidden}.self-label{position:absolute;right:28px;bottom:25px;font-size:11px;color:#fff}.controls{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}button{border:0;border-radius:10px;background:#674b29;color:white;padding:12px 15px;font:inherit;font-size:12px;font-weight:600;cursor:pointer}button:hover:not(:disabled){filter:brightness(.92)}button:disabled{opacity:.4;cursor:not-allowed}.secondary{background:#eee2cc;color:#56452f}.danger{background:#f5e5df;color:#8f493c}.note{font-size:11px;color:#6e6253;line-height:1.6;margin:17px 0 0}.prototype{font-size:10px;color:#776957;margin-top:8px}.chat-panel{display:flex;flex-direction:column;height:720px;max-height:calc(100vh - 125px);min-height:550px}.badge{background:#eee3ca;padding:7px 9px;border-radius:6px}details{font-size:12px;color:#718072;border-bottom:1px solid #edeee5;padding-bottom:15px}summary{cursor:pointer}.settings{display:grid;gap:12px;padding-top:16px}.settings label{display:flex;gap:7px;align-items:center}.text-button{background:transparent;color:#6a796b;padding:0;text-align:left;font-size:11px}#messages{flex:1;overflow-y:auto;min-height:0;padding:18px 2px;scrollbar-width:thin}.empty{font:normal 21px/1.65 Georgia,serif;text-align:center;color:#7f725d;padding:65px 12px}.message{margin:0 0 18px;max-width:90%;background:#f2eadd;border-radius:13px 13px 13px 3px;padding:12px 14px}.message.mine{margin-left:auto;background:#e9ddc4;border-radius:13px 13px 3px 13px}.message p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.6;margin:0}.meta{font-size:10px;color:#7a897b;margin-top:7px}.message-actions{display:flex;gap:9px;margin-top:7px;flex-wrap:wrap}.message-actions button{font-size:10px}.deleted{font-style:italic;color:#93998d}#typing{display:block;min-height:22px;font-size:11px;color:#6c7d6a}textarea{width:100%;resize:vertical;max-height:160px;border:1px solid #d8c6a5;border-radius:12px;background:#fffcf6;padding:13px;font:inherit;font-size:13px;line-height:1.5;color:#334c3e}textarea:focus,select:focus{outline:2px solid #9bad8a;outline-offset:2px}.compose-bottom{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-top:11px}.compose-bottom label{font-size:11px;color:#7f897b}select{border:0;background:transparent;color:#405e49;font:inherit;font-weight:600;padding:5px}#incoming{margin-top:14px;background:#eee3ca;border-radius:12px;padding:15px;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:13px}#incoming[hidden]{display:none}#notice{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);max-width:90%;padding:14px 20px;border-radius:12px;background:#633e32;color:white;font-size:13px;box-shadow:0 8px 30px #0002;z-index:10}#purge-notice{font-size:12px;color:#97634c}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}button:focus-visible{outline:3px solid #b7aa79;outline-offset:3px}@media(max-width:800px){header{padding:20px}main{padding:0 14px 25px;grid-template-columns:1fr}.call-panel,.chat-panel{padding:18px}.stage{aspect-ratio:1.65}.chat-panel{height:600px;max-height:none;min-height:500px}.section-heading{margin-bottom:15px}#identity{max-width:100px;text-align:right}h3{font-size:21px}.orbit{font-size:50px}}
[hidden]{display:none!important}.account-bar{display:flex;align-items:center;gap:15px}.auth-card{max-width:440px;margin:60px auto;padding:35px;background:#fffaf0;border:1px solid #d8c6a5;border-radius:22px}.eyebrow{font-size:10px;letter-spacing:2px;color:#7c9075}.auth-card h2{font:normal 31px Georgia,serif;margin:18px 0 10px}.auth-card p{font-size:13px;color:#70614c}.auth-card label{display:grid;gap:8px;margin-top:22px;font-size:12px;color:#5c4933}input:not([type=checkbox]){min-width:0;border:1px solid #d9c6a6;border-radius:9px;padding:12px;background:#fffaf0;font:inherit;font-size:14px;color:#304e3e}.auth-actions{display:flex;gap:10px;margin-top:22px}#rooms-bar{max-width:1324px;margin:0 auto 20px;padding:15px 22px;border:1px solid #d8c6a5;border-radius:13px;background:#fffaf0;display:flex;justify-content:space-between;gap:15px;align-items:center;font-size:12px}#new-chat{display:flex;gap:10px}#welcome{text-align:center;color:#7e8876;margin:60px auto;padding:20px;max-width:500px;font:normal 22px/1.6 Georgia,serif}@media(max-width:800px){#rooms-bar{margin:0 14px 20px;flex-direction:column;align-items:stretch}.auth-card{margin:25px 15px}#new-chat input{width:55%}.account-bar{gap:7px}}
#welcome-note{max-width:1324px;margin:0 auto 20px;padding:20px 24px;display:flex;gap:20px;align-items:center;border:1px solid #d4b985;border-radius:16px;background:#f0e3c7}#welcome-note .mark{flex:0 0 50px}#welcome-note div{flex:1}#welcome-note strong{font:normal 20px Georgia,serif}#welcome-note p{white-space:pre-wrap;font-size:13px;line-height:1.65;color:#596f56;margin-bottom:0}@media(max-width:800px){#welcome-note{margin:0 14px 20px;flex-wrap:wrap;padding:18px}}
#inbox{max-width:1324px;margin:0 auto 20px;padding:20px 22px;border:1px solid #d8c6a5;border-radius:15px;background:#fffaf0}#inbox .section-heading{margin-bottom:12px}.chime-setting{font-size:11px;display:flex;align-items:center;gap:7px;color:#697d64}#conversation-cards{display:flex;gap:10px;overflow-x:auto;padding:2px 0 6px}.conversation-card{background:#f6eedf;color:#355444;text-align:left;min-width:185px;max-width:300px;flex:0 0 235px;border:1px solid transparent}.conversation-card.selected{border-color:#987137;background:#ead9b5}.conversation-card strong{font-size:13px}.conversation-card p{font-size:11px;font-weight:normal;color:#7a8876;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:8px 0 0}.unread-badge{display:inline-block;min-width:21px;padding:3px 6px;margin-left:8px;border-radius:20px;background:#674b29;color:white;font-size:10px}.ring-label{display:block;font-size:11px;margin-top:7px;color:#936832}#device-panel{margin-top:20px}.device-settings{display:flex;flex-wrap:wrap;gap:14px;margin-top:14px;align-items:end}.device-settings label{display:grid;gap:7px;flex:1;min-width:150px;font-size:11px}.device-settings select{max-width:240px;background:#eef1e7;border-radius:8px;padding:10px;font-size:12px}#unread-total{font-size:12px;color:#638162}@media(max-width:800px){#inbox{margin:0 14px 20px;padding:18px}.conversation-card{flex-basis:200px}.device-settings select{max-width:100%}.chime-setting{max-width:150px}}

/* Cogsworth's brass workshop: decorative details never intercept controls. */
body{background:radial-gradient(ellipse at top left,#fff7e6,transparent 65%),#f3ebdc}
header{border-bottom:1px solid #b78c4933;margin-bottom:20px}h1{color:#604321;letter-spacing:.5px}
.call-panel,.chat-panel,.auth-card{box-shadow:0 8px 25px #6043210a;border-top:3px solid #b28a49}
.stage{border:2px solid #a58550;box-shadow:inset 0 0 45px #0003}.stage h3{color:#fff0d1}
button{transition:background .15s}button:not(.secondary):not(.danger):not(.text-button):not(.conversation-card){box-shadow:inset 0 1px 0 #fff3}
input[type=checkbox]{accent-color:#805d2b}input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #986b28;outline-offset:3px}
.cogsworth{position:relative;display:inline-block;width:54px;height:68px;flex:0 0 54px;vertical-align:middle;pointer-events:none}
.robot-hat{position:absolute;z-index:2;left:14px;top:1px;width:29px;height:21px;border-radius:5px 5px 0 0;background:linear-gradient(90deg,#273333,#48504b,#25302d);border-bottom:5px solid #b88d47;transform:rotate(-6deg)}
.robot-hat:after{content:"";position:absolute;left:-6px;bottom:-7px;width:42px;height:4px;border-radius:4px;background:#303a34}
.robot-face{position:absolute;left:8px;top:24px;width:41px;height:28px;border:2px solid #79562c;border-radius:10px;background:linear-gradient(110deg,#f0d89a,#b88740);display:flex;align-items:center;justify-content:center;gap:9px;box-shadow:inset 0 2px 0 #fff7}
.robot-face i{width:7px;height:7px;background:#263f3b;border-radius:50%;box-shadow:0 0 0 2px #f7e0a0}.robot-face:after{content:"";position:absolute;right:3px;top:5px;width:13px;height:13px;border:1px solid #6b4a20;border-radius:50%}
.robot-coat{position:absolute;left:12px;top:51px;width:34px;height:17px;border-radius:3px 3px 10px 10px;background:#34443f;border:1px solid #b78b45;text-align:center}.robot-coat b{position:relative;top:-6px;color:#c59848;font-size:17px}
.mascot-portrait{display:block;height:105px;margin:12px 0 4px}.mascot-portrait .cogsworth{transform:scale(1.55);transform-origin:top center}
.loading-strip{display:flex;align-items:center;justify-content:center;gap:12px;padding:12px;color:#644d2d;font-size:13px}.loading-strip .cogsworth,.loading-mascot .cogsworth{transform:scale(.65);width:40px;margin:-10px -5px}
.gear{display:inline-block;font-size:27px;color:#986b28;animation:cog-turn 3s linear infinite}.loading-mascot{display:inline-flex;align-items:center;gap:6px}.loading-mascot .gear{font-size:22px}.call-state{display:flex;align-items:center;gap:9px;min-height:40px}
@keyframes cog-turn{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.gear{animation:none}button{transition:none}}
@media(max-width:480px){header{padding:16px 14px}.brand{gap:7px}header .cogsworth{transform:scale(.8);margin:0 -4px}h1{font-size:24px}header p{max-width:150px;line-height:1.5}.section-heading{flex-wrap:wrap}.call-state{gap:5px}.mascot-portrait{height:65px;margin:0}.mascot-portrait .cogsworth{transform:scale(.9)}.stage h3{margin-top:12px;font-size:19px}.stage p{margin:0;font-size:12px}.stage{min-height:255px}#video-placeholder{padding:15px}}

/* Optional night palette; brass remains the accent in both modes. */
:root[data-theme="dark"]{color-scheme:dark;color:#f0e6d4;background:#171b1c}
[data-theme="dark"] body{background:radial-gradient(ellipse at top left,#30312b,transparent 65%),#171b1c}
[data-theme="dark"] h1{color:#e1bd7c}
[data-theme="dark"] .call-panel,[data-theme="dark"] .chat-panel,[data-theme="dark"] .auth-card,[data-theme="dark"] #rooms-bar,[data-theme="dark"] #inbox{background:#222829;border-color:#665638;border-top-color:#b28a49}
[data-theme="dark"] header p,[data-theme="dark"] #identity,[data-theme="dark"] .auth-card p,[data-theme="dark"] .auth-card label,[data-theme="dark"] .eyebrow,[data-theme="dark"] .note,[data-theme="dark"] .prototype,[data-theme="dark"] .section-heading span,[data-theme="dark"] details,[data-theme="dark"] .chime-setting,[data-theme="dark"] .compose-bottom label,[data-theme="dark"] #typing,[data-theme="dark"] #welcome,[data-theme="dark"] .empty{color:#c7bba6}
[data-theme="dark"] input:not([type=checkbox]),[data-theme="dark"] textarea,[data-theme="dark"] select,[data-theme="dark"] .device-settings select{color:#f1e7d5;background:#191f20;border-color:#756344}
[data-theme="dark"] input::placeholder,[data-theme="dark"] textarea::placeholder{color:#ada99e}
[data-theme="dark"] .secondary,[data-theme="dark"] .badge,[data-theme="dark"] #incoming{background:#3b3b30;color:#eddfc5}
[data-theme="dark"] .message{background:#343b3b;color:#f0e6d4}
[data-theme="dark"] .message.mine{background:#49402e;color:#fff0d3}
[data-theme="dark"] .meta,[data-theme="dark"] .deleted,[data-theme="dark"] .text-button{color:#c8bda8}
[data-theme="dark"] .conversation-card{background:#303738;color:#f0e6d4}
[data-theme="dark"] .conversation-card.selected{background:#49402e;border-color:#c39a54}
[data-theme="dark"] .conversation-card p{color:#cec2ac}
[data-theme="dark"] .ring-label,[data-theme="dark"] #purge-notice,[data-theme="dark"] .loading-strip{color:#e8c687}
[data-theme="dark"] #welcome-note{background:#36372b;border-color:#867047}
[data-theme="dark"] #welcome-note p{color:#e0d3b9}
[data-theme="dark"] details{border-color:#4d5147}
[data-theme="dark"] .danger{background:#573731;color:#ffdbcf}
[data-theme="dark"] .gear{color:#dfb66e}
[data-theme="dark"] button:focus-visible,[data-theme="dark"] input:focus-visible,[data-theme="dark"] textarea:focus-visible,[data-theme="dark"] select:focus-visible,[data-theme="dark"] summary:focus-visible{outline-color:#e7be75}
#theme-toggle{white-space:nowrap}
@media(max-width:600px){header{flex-wrap:wrap;gap:16px}.account-bar{flex-wrap:wrap;justify-content:flex-end;margin-left:auto}}

.translation-settings{font-size:12px;margin-top:14px}.translation{border-top:1px solid #ac915c66;margin-top:12px;padding-top:10px}.translation strong{display:block;font-size:10px;margin-bottom:6px;color:#715226}[data-theme="dark"] .translation strong{color:#e1bd7c}
