/* The demo uses the same light appearance as the original web workspace. */
body { color-scheme: light; }
.sidebar { overflow-y: auto; }
#content { overscroll-behavior: contain; }
#chatlog { overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .split { display: flex; flex-direction: column; min-height: 0; height: 100%; }
  .split .listpane { display: none; }
  .detail { min-height: 0; flex: 1; }
  .topbar .search { max-width: 86px; }
}

.transfer-drop > .drop { display: block; width: 100%; }
.drop p { margin-bottom: 0; }

.notice-banner {
  position: fixed;
  z-index: 12;
  top: 10px;
  right: 10px;
  width: min(335px, calc(100% - 20px));
  border-radius: 17px;
  border: 1px solid #ffffff32;
  background: #39393def;
  backdrop-filter: blur(18px);
  box-shadow: 0 7px 24px #0005;
}
.notice-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 15px;
  border-radius: inherit;
  text-align: left;
  background: transparent;
}
.notice-preview .notiicon { flex: none; }
.banner-copy { display: grid; flex: 1; gap: 1px; }
.banner-copy strong { font-size: 13px; }
.banner-copy > span:last-child { font-size: 12px; line-height: 1.35; }
.banner-source, .notice-preview time { color: #d1d1d7; font-size: 10px; }
.notice-preview time { align-self: start; }
#hide-notice {
  position: absolute;
  left: -4px;
  top: -4px;
  width: 21px;
  height: 21px;
  border: 1px solid #77777b;
  border-radius: 50%;
  background: #414145;
  font: 16px/1 sans-serif;
}
@media (hover: hover) {
  .notice-banner:not(:hover):not(:focus-within) #hide-notice { opacity: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .notice-banner:not([hidden]) { animation: banner-in .2s ease-out; }
  @keyframes banner-in { from { opacity: 0; transform: translateX(14px); } }
}
/* Leave space for the photo caption and actions within the embedded screen. */
.modal-image { max-height: min(65vh, calc(100dvh - 240px)); }

.light .notice-banner { background: #f9faf9ee; border-color: #ffffffa8; }
.light .banner-source, .light .notice-preview time { color: #555c64; }
.light #hide-notice { background: #fff; color: #42454b; border-color: #c5c8cf; }

#desktop {
  position: relative;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  color: white;
  background:
    radial-gradient(ellipse 104% 112% at 13% -18%, transparent 56%, #5f9efd 57%, #384fca 69%, #262970 76%, transparent 77%),
    radial-gradient(ellipse 130% 98% at -9% -14%, #101d53 23%, #213d8e 54%, #407ceb 76%, #9ce0fc 93%, transparent 94%),
    radial-gradient(ellipse 110% 105% at 102% 116%, #183c68 26%, #14798b 44%, #28b3b1 59%, #9de6d1 70%, #d7f4df 73%, transparent 74%),
    linear-gradient(125deg,#7baff3,#a5dccc 67%,#6ed6ca);
}
.desktop-menu { display: flex; justify-content: space-between; padding: 7px 18px; font: 600 12px/1.4 -apple-system,BlinkMacSystemFont,sans-serif; background: #15274730; text-shadow: 0 1px 4px #1235; }
.desktop-widget { position: absolute; top: 11%; left: 4.5%; display: grid; justify-items: start; gap: 2px; width: clamp(148px,23%,188px); padding: 16px; border-radius: 21px; border: 1px solid #ffffff80; background: linear-gradient(125deg,#f3f9ffea,#cfedffe8); color: #20334b; box-shadow: 0 10px 27px #11253735; text-align: left; }
.widget-brand { display: flex; align-items: center; gap: 5px; font-weight: 650; margin-bottom: 9px; }
.widget-brand img { width: 21px; height: 21px; }
.desktop-widget strong { font-size: 24px; letter-spacing: -1px; line-height: 1.25; }
.widget-state, .widget-battery { display: flex; align-items: center; gap: 5px; font-size: 12px; }
.widget-state i { width: 7px; height: 7px; border-radius: 50%; background: #208254; }
.widget-battery { margin-top: 9px; }
.widget-battery b { width: 20px; height: 10px; border: 1px solid #478567; border-radius: 3px; background: linear-gradient(90deg,#53a37c 68%,transparent 68%); }
.demo-dock { display: flex; align-items: end; gap: 8px; position: absolute; bottom: 3%; left: 50%; transform: translateX(-50%); padding: 8px; border: 1px solid #fff9; border-radius: 18px; background: #f4feff66; backdrop-filter: blur(18px); box-shadow: 0 6px 18px #17405a33; }
.demo-dock button { display: grid; place-items: center; padding: 0; width: clamp(38px,5vw,51px); height: clamp(38px,5vw,51px); border-radius: 12px; background: #fff; color: #236b4e; box-shadow: 0 1px 3px #17373b25; }
.demo-dock { max-width: calc(100% - 12px); gap: clamp(3px, 1vw, 8px); }
.demo-dock button { min-width: 0; aspect-ratio: 1; height: auto; }
.demo-dock [data-page="Calls"] { background: #c8f1dd; }
.demo-dock [data-page="Contacts"] { background: #f4dac1; color: #865034; }
.demo-dock [data-page="Commands"] { background: #363d51; color: white; }
.demo-dock img { width: 100%; height: 100%; border-radius: inherit; }
.demo-dock .glyph, #desktop-file .glyph { width: 60%; height: 60%; }
.demo-dock button:nth-child(2) { background: #b7ecc6; }
.demo-dock button:nth-child(3) { background: #ffe4a8; color: #995c23; }
.demo-dock button:nth-child(4) { background: #c6dfff; color: #265c9d; }
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .demo-dock button { transition: transform .15s ease-out; }
  .demo-dock button:hover { transform: translateY(-5px) scale(1.09); }
}
#desktop-file { position: absolute; right: 5%; top: 18%; display: grid; justify-items: center; gap: 4px; width: 100px; color: #132b42; font-weight: 600; background: #effaffdd; border-radius: 12px; padding: 10px; }
#desktop-file .glyph { width: 26px; height: 26px; }
