@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: normal;
  font-display: swap;
  src: url(/assets/fonts/open-sans-400.ttf) format('truetype');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 500;
  font-stretch: normal;
  font-display: swap;
  src: url(/assets/fonts/open-sans-500.ttf) format('truetype');
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: normal;
  font-display: swap;
  src: url(/assets/fonts/open-sans-600.ttf) format('truetype');
}

.moss-ui{--font-display:'Open Sans',Arial,sans-serif;--font-body:'Open Sans',Arial,sans-serif;--text-gold:#e2c991;--text-cream:#eee5cf;--text-muted:#a59b7e;font-family:var(--font-body);color:var(--text-cream)}
.remote-shell .toolbar,.remote-shell .moss-popup-shell,.remote-shell .settings-dialog p,.remote-shell .settings-dialog h3{font-family:var(--font-body);font-weight:400;line-height:1.5}
.remote-shell .toolbar{font-size:12px;text-shadow:0 1px 1px #10130b}
.remote-shell .ui-title,.remote-shell .ui-button__text{font-family:var(--font-display);font-weight:600;line-height:1.35;letter-spacing:.035em}
.remote-shell .ui-title{font-size:clamp(32px,7vw,40px)}
.remote-shell .ui-button__text{display:inline-block;font-size:clamp(24px,5vw,30px);transition:filter 140ms ease,transform 100ms ease}
.remote-shell .metal-text{color:var(--text-gold);text-shadow:0 1px 1px #10130b}
@supports ((background-clip:text) or (-webkit-background-clip:text)){
.remote-shell .metal-text{background-image:linear-gradient(180deg,#f3e3ba 10%,#e0c48a 45%,#c4a565 72%,#e6cf9b 100%);background-clip:text;-webkit-background-clip:text;color:transparent;-webkit-text-fill-color:transparent;text-shadow:none;filter:drop-shadow(0 1px .7px #11150c)}
}
.remote-shell .settings-dialog .ui-label{margin-bottom:8px;font:500 17px/1.5 var(--font-body);color:#dbc797;text-shadow:0 1px 1px rgb(0 0 0 / 50%)}
.remote-shell .settings-dialog .ui-input{font:400 18px/1.5 var(--font-body);color:var(--text-cream);caret-color:#f1d69a;text-shadow:0 1px 1px rgb(0 0 0 / 35%);font-variant-numeric:lining-nums tabular-nums}
.remote-shell .ui-input::placeholder{color:var(--text-muted);opacity:1;text-shadow:none}
.remote-shell .ui-input[readonly]{color:#c5bda5}
.remote-shell .ui-input:disabled{color:var(--text-muted);-webkit-text-fill-color:var(--text-muted);opacity:1;text-shadow:none}
@media(hover:hover){.remote-shell .ui-button:not(:disabled):hover .ui-button__text{filter:brightness(1.08) drop-shadow(0 1px 1px #11150c)}}
.remote-shell .ui-button:not(:disabled):active .ui-button__text{transform:translateY(1px);filter:brightness(.93) drop-shadow(0 -1px 0 #17190f)}
.remote-shell .ui-button:disabled .ui-button__text{background:none;color:var(--text-muted);-webkit-text-fill-color:currentColor;text-shadow:none;filter:none}
.remote-shell .ui-button:focus-visible,.remote-shell .ui-input:focus-visible{outline:2px solid #dfca94;outline-offset:3px}
.remote-shell .theme-presets .ui-button__text{font-size:16px;letter-spacing:0;white-space:normal}
.remote-shell .popup-actions .ui-button__text{font-size:24px}
.remote-shell .cancel-label{font-size:20px}
.remote-shell .direction-name{bottom:17%}
@media(prefers-reduced-motion:reduce){.remote-shell .ui-button__text{transition:none}}

/* Compact status block inside the corner ornaments. */
.remote-shell .toolbar{width:80%;justify-self:center;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;min-height:0;padding:4px 0 24px;font-size:14px;font-weight:700;line-height:1.45;text-transform:uppercase}
.remote-shell .toolbar .connection{min-width:0;flex-shrink:1;align-items:flex-start;gap:6px}
.remote-shell .toolbar .dot{margin-top:6px}
.remote-shell .toolbar .feedback{min-width:0;text-align:right}
.remote-shell .toolbar .metal-text{font-size:14px;font-weight:700;line-height:1.45;overflow-wrap:anywhere}
.remote-shell .toolbar .feedback.error .metal-text{background:none;color:#ffb49b;-webkit-text-fill-color:currentColor;filter:none}
.remote-shell .toolbar{display:flex;justify-content:flex-start;align-items:center;min-height:0;padding:0 0 20px}
.toolbar #connection-text,.toolbar>.feedback{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap}
.remote-shell .toolbar .dot{width:11px;height:11px;margin:0;background:#e66d60;box-shadow:0 0 7px #e66d6040}
.remote-shell .toolbar .dot.online{background:#78e88c;box-shadow:0 0 8px #78e88c80}
.settings-action #guide{margin-left:auto;width:58px;height:58px}
.settings-action #settings{margin-left:0}
.guide-dialog .guide-close{position:absolute;right:0;top:3px;width:44px;height:44px}
.guide-content{position:relative;z-index:2;font:14px/1.65 var(--font-body);color:var(--text-cream)}
.guide-content li{margin-bottom:16px}.guide-content ol{padding-left:20px}
.guide-content pre,.guide-content code{font:12px/1.6 ui-monospace,monospace;overflow-wrap:anywhere;white-space:pre-wrap}
.guide-content pre{padding:10px;border:1px solid #b39b6260;border-radius:7px;background:#10160dc9}
.guide-content textarea{width:100%;resize:vertical;padding:10px;border-radius:7px;border:1px solid #b39b62;background:#13180f;color:#eee5cf;font:13px/1.5 var(--font-body);overflow-wrap:anywhere}
.guide-content a{color:#e2c991}.guide-content #copy-siri-url{width:100%;margin-top:10px}
.guide-content #copy-siri-url .ui-button__text{font-size:20px}
.settings-action{gap:10px}

.siri-token-row{display:flex;align-items:center;gap:8px;background:#11170f;border:1px solid #b39b62;border-radius:8px;padding:8px;min-width:0}
.siri-token-row>span{font:13px var(--font-body);color:#e2c991}
.siri-token-row #siri-token{min-width:0;width:100%;flex:1;background:none;border:0;color:#eee5cf;font-size:16px;padding:4px}
.siri-token-row #copy-siri-token{flex:none;width:40px;height:40px;min-height:40px;color:#e2c991;display:grid;place-items:center}
.siri-token-row #copy-siri-token svg{position:relative;z-index:2}
#token-message{font-size:12px}
.remote-shell .settings-dialog{width:min(460px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;border-radius:20px}
.remote-shell .moss-popup-shell{padding:52px 28px 56px;overflow:hidden;border-radius:20px}
.moss-popup-shell:before{background-size:107.5% 107.5%;border-radius:inherit}
.moss-popup-art i{width:42px;height:42px}
.moss-popup-art i:nth-child(1),.moss-popup-art i:nth-child(3){left:9px}
.moss-popup-art i:nth-child(2),.moss-popup-art i:nth-child(4){right:9px}
.moss-popup-art i:nth-child(1),.moss-popup-art i:nth-child(2){top:9px}
.moss-popup-art i:nth-child(3),.moss-popup-art i:nth-child(4){bottom:9px}
.moss-popup-art:after{left:28px;right:28px;top:132px}
.remote-shell .popup-actions .ui-button__text{font-size:20px}
@media(max-width:350px){.remote-shell .moss-popup-shell{padding-left:20px;padding-right:20px}.moss-popup-art:after{left:20px;right:20px}.siri-token-row{gap:5px;padding:6px}.remote-shell .popup-actions .ui-button__text{font-size:18px}}

/* Supplied book icon, centered inside the existing Guide button skin. */
.remote-shell #guide .v-layer{inset:12%;mix-blend-mode:normal}
.remote-shell #guide .v-layer img{object-fit:contain;mix-blend-mode:normal;filter:url(#border-black-key)}
