/* The fit addon measures this inner surface, never a padded wrapper. */
#hub .floating-window[data-window-type="ssh"] .window-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
#hub .floating-window[data-window-type="ssh"] .window-terminal {
  position: relative;
  inset: auto;
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  padding: 12px;
  box-sizing: border-box;
  overflow: hidden;
}
#hub .terminal-host {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
}
#hub .window-body.terminal-drop { position: relative; outline: 2px dashed #ffffff99; outline-offset: -8px; }
#hub .window-body.terminal-drop::after {
  content: 'Drop to paste into this console';
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: center;
  background: #000000b8;
  color: #fff;
  font: 600 14px system-ui, sans-serif;
  pointer-events: none;
}
#hub .terminal-host > .xterm { height: 100%; }
#hub .floating-window[data-window-type="ssh"] .terminal-keybar {
  position: relative;
  inset: auto;
  flex: 0 0 38px;
  height: 38px;
  min-height: 38px;
  min-width: 0;
  box-sizing: border-box;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #666 transparent;
}
#hub .terminal-keybar button { flex-shrink: 0; white-space: nowrap; }
#hub .terminal-identity { white-space: nowrap; }
#hub .terminal-narrow .terminal-identity,
#hub .terminal-narrow .connection-label { display: none; }
#hub .terminal-narrow .window-titlebar > img { display: none; }
#hub .terminal-narrow .window-layout-controls .snap-control { display: none; }
#hub .terminal-compact .window-subbar { display: none; }
#hub .terminal-compact .window-titlebar { height: 40px; }
#hub .terminal-compact[data-window-type="ssh"] .terminal-keybar {
  flex-basis: 32px;
  height: 32px;
  min-height: 32px;
  padding-top: 3px;
  padding-bottom: 3px;
}
#hub .terminal-tight .window-titlebar { height: 36px; }
#hub .terminal-tight[data-window-type="ssh"] .terminal-keybar { display: none; }
#hub .terminal-tight[data-window-type="ssh"] .window-terminal { padding: 6px; }
/* Keep all text cells above the dock when a software keyboard leaves little room. */
#hub.viewport-tight #dock { visibility: hidden; pointer-events: none; }
#hub .window-original {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  padding: 5px;
  color: #aaa;
  border-radius: 6px;
}
#hub .window-original:hover { color: #fff; background: #ffffff12; }
#hub .window-original .ui-icon { width: 15px; height: 15px; }
@media (max-width: 800px) {
  #hub .floating-window[data-window-type="ssh"] .window-terminal { padding: 8px; }
  #hub .floating-window[data-window-type="ssh"]:not(.terminal-compact) .terminal-keybar {
    flex-basis: 42px;
    height: 42px;
    min-height: 42px;
  }
}

/* Persistent terminal workspace. The tab strip and console fill the page. */
#hub .terminal-workspace-view { height: calc(100dvh - 68px - 42px - 95px); min-height: 430px; margin-bottom: 0; }
#hub .terminal-shell { height: 100%; min-height: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #ffffff2b; border-radius: 13px; background: #050505; }
#hub .terminal-tabbar { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 7px 10px; border-bottom: 1px solid #ffffff20; background: #0d0d0d; }
#hub .terminal-tabs { display: flex; align-items: center; gap: 5px; overflow-x: auto; flex: 1 1 auto; min-width: 0; scrollbar-width: thin; scrollbar-color: #777 transparent; }
#hub .terminal-tab { display: flex; align-items: center; flex: 0 0 auto; border: 1px solid #ffffff20; border-radius: 8px; background: #ffffff06; overflow: hidden; }
#hub .terminal-tab.active { border-color: #ffffff4d; background: #ffffff13; }
#hub .terminal-tab-main { border: 0; background: none; color: #c8c8c8; display: flex; align-items: center; gap: 7px; padding: 8px 9px 8px 11px; font-size: 10px; max-width: 220px; white-space: nowrap; }
#hub .terminal-tab.active .terminal-tab-main { color: #fff; }
#hub .terminal-tab-main img { width: 15px; height: 15px; object-fit: contain; filter: grayscale(1); opacity: .85; }
#hub .terminal-tab-main .terminal-tab-name { overflow: hidden; text-overflow: ellipsis; }
#hub .terminal-tab-main .terminal-tab-state { width: 5px; height: 5px; border-radius: 50%; background: #ddd; flex: 0 0 auto; }
#hub .terminal-tab.exited .terminal-tab-state { background: transparent; border: 1px solid #aaa; }
#hub .terminal-tab-close { border: 0; background: none; color: #999; font-size: 14px; width: 26px; align-self: stretch; padding: 0; }
#hub .terminal-tab-close:hover { color: #000; background: #eee; }
#hub .terminal-new { display: flex; gap: 6px; flex: 0 0 auto; }
#hub .terminal-new button { border: 1px solid #ffffff2b; background: #ffffff0a; color: #e3e3e3; border-radius: 7px; padding: 8px 11px; font-size: 10px; white-space: nowrap; }
#hub .terminal-new button:hover { background: #ffffff1c; border-color: #ffffff55; }
#hub .terminal-stage { position: relative; flex: 1 1 0; min-height: 0; background: #030303; }
#hub .terminal-surface { position: absolute; inset: 0; padding: 10px 12px 8px; box-sizing: border-box; overflow: hidden; }
#hub .terminal-surface.terminal-drop { outline: 2px dashed #ffffff99; outline-offset: -8px; }
#hub .terminal-surface.terminal-drop::after { content: 'Drop to paste into this terminal'; position: absolute; inset: 0; z-index: 8; display: grid; place-items: center; background: #000000b8; color: #fff; font: 600 14px system-ui, sans-serif; pointer-events: none; }
#hub .terminal-empty { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 6px; padding: 30px; color: #b9b9b9; }
#hub .terminal-empty strong { color: #f0f0f0; font-size: 15px; font-weight: 500; }
#hub .terminal-empty p { max-width: 440px; margin: 0; font-size: 11px; line-height: 1.8; color: #a6a6a6; }
#hub .terminal-footer { display: flex; align-items: center; gap: 12px; min-height: 45px; padding: 5px 12px; border-top: 1px solid #ffffff1c; background: #0d0d0d; }
#hub .terminal-status { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 9px var(--mono); color: #b8b8b8; letter-spacing: .2px; }
#hub .terminal-keys { display: flex; align-items: center; gap: 5px; flex: 0 0 auto; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #777 transparent; }
#hub .terminal-keys button { border: 1px solid #ffffff1f; background: #ffffff09; color: #d0d0d0; border-radius: 5px; padding: 6px 9px; font-size: 9px; white-space: nowrap; }
#hub .terminal-keys button:hover { background: #ffffff1e; color: #fff; }
#hub .terminal-keys button[hidden] { display: none !important; }
@media (max-width: 800px) {
  #hub .terminal-workspace-view { height: calc(100dvh - 68px - 30px - 95px - 58px); min-height: 360px; }
  #hub .terminal-tabbar { flex-wrap: wrap; gap: 7px; }
  #hub .terminal-tabs { order: 1; flex-basis: 100%; }
  #hub .terminal-new { order: 0; margin-left: auto; }
  #hub .terminal-tab-main { max-width: 160px; }
  #hub .terminal-footer { flex-wrap: wrap; gap: 5px; padding: 6px 8px; }
  #hub .terminal-status { flex-basis: 100%; }
  #hub .terminal-keys { width: 100%; }
  #hub .terminal-surface { padding: 7px 7px 5px; }
}
@media (max-width: 420px) {
  #hub .terminal-new button { padding: 7px 8px; font-size: 9px; }
  #hub .terminal-keys button { padding: 6px 7px; }
}

/* Built-in local-network browser. */
#hub .browser-workspace-view { height: calc(100dvh - 68px - 42px - 95px); min-height: 430px; margin-bottom: 0; }
#hub .browser-shell { height: 100%; min-height: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #ffffff2b; border-radius: 13px; background: #050505; position: relative; }
#hub .browser-tabs { display: flex; align-items: flex-end; gap: 4px; min-height: 36px; padding: 5px 8px 0; border-bottom: 1px solid #ffffff14; background: #080808; }
#hub .browser-tab-list { display: flex; align-items: flex-end; gap: 3px; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
#hub .browser-tab-list::-webkit-scrollbar { display: none; }
#hub .browser-tab { display: flex; align-items: center; flex: 0 1 190px; min-width: 92px; max-width: 210px; overflow: hidden; border: 1px solid transparent; border-radius: 7px 7px 0 0; background: #ffffff05; color: #9b9b9b; }
#hub .browser-tab.active { background: #141414; border-color: #ffffff24; border-bottom-color: #141414; color: #fff; }
#hub .browser-tab-main { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; color: inherit; padding: 7px 3px 7px 9px; font-size: 10px; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#hub .browser-tab-close { flex: 0 0 auto; width: 22px; height: 24px; display: grid; place-items: center; border: 0; border-radius: 4px; background: transparent; color: #8f8f8f; font-size: 14px; line-height: 1; }
#hub .browser-tab-close:hover { background: #ffffff18; color: #fff; }
#hub .browser-new-tab { flex: 0 0 auto; width: 28px; min-width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 5px; background: transparent; color: #bbb; font-size: 16px; line-height: 1; }
#hub .browser-new-tab:hover { border-color: #ffffff22; background: #ffffff14; color: #fff; }
#hub .browser-viewport { position: relative; flex: 1 1 0; min-height: 0; background: #050505; }
#hub .browser-toolbar { display: flex; align-items: center; gap: 8px; min-height: 54px; padding: 7px 10px; border-bottom: 1px solid #ffffff20; background: #0d0d0d; }
#hub .browser-nav, #hub .browser-tools { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
#hub .browser-toolbar button { border: 1px solid transparent; background: transparent; color: #c9c9c9; border-radius: 6px; min-width: 30px; height: 30px; padding: 5px; display: grid; place-items: center; font-size: 10px; }
#hub .browser-toolbar button:hover { background: #ffffff14; border-color: #ffffff24; color: #fff; }
#hub .browser-toolbar button:disabled { opacity: .35; }
#hub .browser-toolbar .ui-icon { width: 16px; height: 16px; }
#hub .browser-address { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 7px; border: 1px solid #ffffff2e; background: #ffffff08; border-radius: 8px; padding: 0 5px 0 10px; height: 36px; }
#hub .browser-address:focus-within { border-color: #ffffff6b; background: #ffffff0e; }
#hub .browser-lock { display: grid; place-items: center; color: #a5a5a5; flex: 0 0 auto; }
#hub .browser-lock .ui-icon { width: 14px; height: 14px; }
#hub .browser-address input { flex: 1; min-width: 0; border: 0; background: transparent; color: #f0f0f0; font-size: 11px; outline: 0; padding: 0; }
#hub .browser-address input::placeholder { color: #8f8f8f; }
#hub .browser-address button { flex: 0 0 auto; border: 1px solid #ffffff22; background: #ffffff12; color: #eee; border-radius: 5px; padding: 6px 10px; height: 26px; }
#hub .browser-address button:hover { background: #ffffff22; }
#hub .browser-tools #browser-logins { width: auto; padding: 0 9px; font-size: 9px; }
#hub .browser-home { position: absolute; inset: 0; overflow: auto; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 22px; padding: 36px; text-align: center; background: radial-gradient(circle at 50% 30%, #ffffff0b, transparent 55%), #050505; }
#hub .browser-home[hidden] { display: none; }
#hub .browser-home-copy { max-width: 720px; }
#hub .browser-home-copy h2 { font-size: clamp(24px, 2.6vw, 36px); letter-spacing: -1px; margin: 8px 0 12px; color: #fff; }
#hub .browser-home-copy p { margin: 0; font-size: 12px; line-height: 1.9; color: #a9a9a9; }
#hub .browser-home-form { display: flex; gap: 8px; width: min(680px, 100%); }
#hub .browser-home-form input { flex: 1; min-width: 0; border: 1px solid #ffffff35; background: #ffffff09; border-radius: 8px; color: #fff; padding: 13px 15px; font-size: 12px; outline: 0; }
#hub .browser-home-form input:focus { border-color: #ffffff85; }
#hub .browser-home-form button { border: 1px solid #fff; background: #f2f2f2; color: #090909; border-radius: 8px; padding: 0 16px; font-size: 11px; }
#hub .browser-bookmarks { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; max-width: 800px; }
#hub .browser-bookmarks button { border: 1px solid #ffffff25; background: #ffffff07; color: #d0d0d0; border-radius: 20px; padding: 7px 12px; font-size: 10px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#hub .browser-bookmarks button:hover { background: #ffffff16; color: #fff; }
#hub .browser-home-note { max-width: 620px; margin: 0; color: #888; font-size: 10px; line-height: 1.8; }
#hub .browser-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #050505; }
#hub .browser-statusbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 26px; padding: 4px 12px; border-top: 1px solid #ffffff14; background: #0a0a0a; font: 8px var(--mono); color: #999; }
#hub .browser-statusbar span:last-child { color: #bbb; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 45%; }
#hub .browser-login-panel { position: absolute; top: 94px; right: 10px; z-index: 5; width: min(430px, calc(100% - 20px)); border: 1px solid #ffffff38; border-radius: 11px; background: #111; padding: 14px; box-shadow: 0 18px 60px #000d; }
#hub .browser-login-panel[hidden] { display: none; }
#hub .browser-login-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
#hub .browser-login-heading strong { font-size: 12px; font-weight: 500; color: #fff; }
#hub .browser-login-heading span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: #999; font-size: 9px; white-space: nowrap; }
#hub .browser-login-heading button { border: 1px solid #ffffff25; background: #ffffff09; color: #ccc; border-radius: 5px; font-size: 9px; padding: 6px 8px; }
#hub .browser-login-list { display: flex; flex-direction: column; gap: 5px; max-height: 180px; overflow: auto; margin-bottom: 9px; }
#hub .browser-login-row { display: flex; align-items: center; gap: 9px; border-bottom: 1px solid #ffffff12; padding: 6px 0; font-size: 10px; }
#hub .browser-login-row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #d2d2d2; }
#hub .browser-login-row small { color: #888; font-size: 9px; }
#hub .browser-login-row button { border: 1px solid #ffffff22; background: transparent; color: #bbb; border-radius: 4px; font-size: 9px; padding: 4px 7px; }
#hub .browser-login-form { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
#hub .browser-login-form input { min-width: 0; border: 1px solid #ffffff2b; background: #ffffff08; border-radius: 5px; color: #eee; padding: 8px 9px; font-size: 10px; outline: 0; }
#hub .browser-login-form input:focus { border-color: #ffffff70; }
#hub .browser-login-form button { border: 1px solid #ffffff35; background: #ffffff12; color: #fff; border-radius: 5px; font-size: 10px; padding: 8px 10px; }
#hub .browser-login-note { margin: 9px 0 0; font-size: 9px; line-height: 1.7; color: #8f8f8f; }
@media (max-width: 800px) {
  #hub .browser-workspace-view { height: calc(100dvh - 68px - 30px - 95px - 58px); min-height: 360px; }
  #hub .browser-tabs { min-height: 32px; padding: 3px 5px 0; }
  #hub .browser-tab { flex-basis: 150px; min-width: 80px; }
  #hub .browser-tab-main { padding: 6px 2px 6px 8px; font-size: 9px; }
  #hub .browser-tab-close { width: 20px; height: 22px; }
  #hub .browser-new-tab { width: 26px; min-width: 26px; height: 26px; }
  #hub .browser-toolbar { flex-wrap: wrap; gap: 5px; padding: 6px 7px; }
  #hub .browser-address { order: 1; flex-basis: 100%; }
  #hub .browser-nav { order: 0; }
  #hub .browser-tools { order: 0; margin-left: auto; }
  #hub .browser-tools #browser-logins { font-size: 0; width: 30px; padding: 0; }
  #hub .browser-tools #browser-logins::after { content: '◎'; font-size: 14px; }
  #hub .browser-home { padding: 22px 16px; gap: 15px; }
  #hub .browser-home-form { flex-direction: column; }
  #hub .browser-home-form button { padding: 12px; }
  #hub .browser-login-panel { top: 124px; right: 6px; }
  #hub .browser-login-form { grid-template-columns: 1fr; }
}

/* Full-bleed terminal: use the whole workspace instead of a rounded card. */
#hub .terminal-workspace-view {
  position: fixed;
  top: 68px;
  left: var(--rail);
  right: 0;
  bottom: 67px;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  z-index: 2;
  background: #050505;
}
#hub .terminal-shell {
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #050505;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
#hub .terminal-tabbar {
  min-height: 56px;
  padding: 8px 18px;
  border-top: 1px solid #ffffff08;
  background: #0b0b0b;
}
#hub .terminal-tabs { gap: 6px; }
#hub .terminal-tab { border-radius: 7px 7px 0 0; border-bottom: 0; background: #ffffff05; }
#hub .terminal-tab.active { background: #151515; border-color: #ffffff30; }
#hub .terminal-tab-main { padding: 10px 11px 10px 13px; font-size: 11px; }
#hub .terminal-tab-close { width: 29px; }
#hub .terminal-new button { padding: 9px 13px; font-size: 10px; }
#hub .terminal-stage { background: #050505; }
#hub .terminal-surface { padding: 15px 20px 12px; }
#hub .terminal-footer { min-height: 48px; padding: 6px 18px; background: #0b0b0b; }
#hub .terminal-status { font-size: 9px; letter-spacing: .3px; }
#hub .terminal-keys button { padding: 7px 10px; font-size: 9px; }
@media (max-width: 800px) {
  #hub .terminal-workspace-view { top: 120px; left: 0; right: 0; bottom: 67px; }
  #hub .terminal-tabbar { padding: 7px 10px; min-height: 52px; }
  #hub .terminal-surface { padding: 8px; }
  #hub .terminal-footer { padding: 5px 9px; min-height: 44px; }
}
#hub[data-active-view="terminals"] { overflow: hidden; }
#hub .terminal-surface .xterm { height: 100%; }
#hub .terminal-surface .xterm-screen { max-width: 100%; }
#hub .terminal-surface .xterm-viewport { scrollbar-width: thin; scrollbar-color: #666 transparent; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }

/* Full-bleed browser: the proxied page uses the whole workspace. */
#hub .browser-workspace-view {
  position: fixed;
  top: 68px;
  left: var(--rail);
  right: 0;
  bottom: 67px;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
  z-index: 2;
  background: #050505;
}
#hub .browser-shell {
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
#hub .browser-toolbar { min-height: 58px; padding: 8px 16px; background: #0b0b0b; border-top: 1px solid #ffffff08; }
#hub .browser-toolbar button { min-width: 32px; height: 32px; }
#hub .browser-address { height: 38px; }
#hub .browser-frame { position: absolute; inset: 0; width: 100%; height: 100%; }
#hub .browser-statusbar { min-height: 28px; padding: 5px 16px; background: #080808; }
#hub[data-active-view="browser"] { overflow: hidden; }
@media (max-width: 800px) {
  #hub .browser-workspace-view { top: calc(60px + 60px); left: 0; right: 0; bottom: 61px; }
  #hub .browser-toolbar { min-height: 54px; padding: 6px 8px; }
  #hub .browser-login-panel { top: 124px; }
}
#hub .browser-save { position: absolute; top: 104px; left: 50%; transform: translateX(-50%); z-index: 7; display: flex; align-items: center; gap: 9px; max-width: calc(100% - 24px); border: 1px solid #ffffff3b; border-radius: 9px; background: #141414f2; color: #eee; padding: 10px 12px; box-shadow: 0 16px 50px #000c; font-size: 10px; }
#hub .browser-save[hidden] { display: none; }
#hub .browser-save span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#hub .browser-save strong { color: #fff; font-weight: 500; }
#hub .browser-save button { border: 1px solid #ffffff2e; background: #ffffff10; color: #eee; border-radius: 5px; padding: 7px 10px; font-size: 9px; white-space: nowrap; }
#hub .browser-save button:hover { background: #ffffff22; }
#hub .browser-save #browser-save-yes { background: #f0f0f0; color: #090909; border-color: #fff; }
#hub .browser-save #browser-save-yes:hover { background: #fff; }
@media (max-width: 800px) { #hub .browser-save { top: 130px; width: calc(100% - 16px); } }
#hub .browser-suggestions { position: absolute; z-index: 9; border: 1px solid #ffffff38; border-radius: 9px; background: #111111f7; box-shadow: 0 18px 55px #000d; padding: 5px; overflow: hidden; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
#hub .browser-suggestions[hidden] { display: none; }
#hub .browser-suggestion { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; color: #d7d7d7; text-align: left; padding: 8px 10px; border-radius: 6px; font-size: 11px; cursor: pointer; }
#hub .browser-suggestion:hover, #hub .browser-suggestion.selected { background: #ffffff14; color: #fff; }
#hub .browser-suggestion .suggestion-main { flex: 1 1 auto; min-width: 0; overflow: hidden; }
#hub .browser-suggestion strong { display: block; font-size: 11px; font-weight: 500; color: #f0f0f0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#hub .browser-suggestion small { display: block; margin-top: 2px; color: #8f8f8f; font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#hub .browser-suggestion .suggestion-kind { flex: 0 0 auto; border: 1px solid #ffffff22; border-radius: 4px; padding: 3px 5px; color: #9c9c9c; font: 8px var(--mono); letter-spacing: .4px; }
#hub .browser-suggestion .suggestion-icon { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 5px; display: grid; place-items: center; border: 1px solid #ffffff1c; color: #ccc; font-size: 11px; background: #ffffff08; }
#hub .browser-toolbar button:disabled { opacity: .28; cursor: default; background: transparent; border-color: transparent; color: #888; }

/* Direct internet speed test. */
#hub .speedtest-panel { margin: 0 0 18px; padding: 20px 22px; border-radius: 14px; }
#hub .speedtest-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
#hub .speedtest-head h3 { margin: 5px 0 6px; font-size: 19px; font-weight: 500; color: #fff; letter-spacing: -.3px; }
#hub .speedtest-head p { margin: 0; max-width: 680px; color: #9d9d9d; font-size: 11px; line-height: 1.75; }
#hub .speedtest-actions { display: flex; gap: 7px; flex: 0 0 auto; }
#hub .speedtest-actions button { white-space: nowrap; }
#hub .speedtest-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 17px 0 13px; }
#hub .speedtest-metric { border: 1px solid #ffffff1c; border-radius: 9px; background: #ffffff06; padding: 12px 13px; min-width: 0; }
#hub .speedtest-metric span { display: block; color: #8f8f8f; font: 9px var(--mono); letter-spacing: .8px; text-transform: uppercase; }
#hub .speedtest-metric strong { display: inline-block; margin-top: 7px; font-size: 26px; font-weight: 500; letter-spacing: -1px; color: #f2f2f2; font-variant-numeric: tabular-nums; }
#hub .speedtest-metric small { margin-left: 4px; color: #888; font-size: 9px; }
#hub .speedtest-metric.good strong { color: #b8e8c8; }
#hub .speedtest-metric.warn strong { color: #f0d99a; }
#hub .speedtest-metric.bad strong { color: #f0a3a3; }
#hub .speedtest-progress { height: 3px; overflow: hidden; border-radius: 999px; background: #ffffff12; }
#hub .speedtest-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: #d8d8d8; transition: width .35s ease; }
#hub .speedtest-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 9px; font-size: 10px; color: #a5a5a5; }
#hub .speedtest-foot span:last-child { color: #777; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#hub .speedtest-note { margin: 10px 0 0; color: #7f7f7f; font-size: 9px; line-height: 1.7; }
@media (max-width: 800px) {
  #hub .speedtest-panel { padding: 16px 14px; }
  #hub .speedtest-head { flex-direction: column; gap: 12px; }
  #hub .speedtest-grid { grid-template-columns: 1fr 1fr; }
  #hub .speedtest-metric strong { font-size: 22px; }
  #hub .speedtest-foot { flex-direction: column; gap: 4px; }
  #hub .speedtest-foot span:last-child { text-align: left; white-space: normal; }
}
#hub .speedtest-note.warn { color: #d8bd7b; }
#hub .speedtest-note.bad { color: #e7a2a2; }
#hub .speedtest-note.good { color: #a9d7b8; }

/* Service update checker. */
#hub .updates-actions { display: flex; align-items: center; gap: 8px; }
#hub .updates-summary { margin-bottom: 14px; padding: 17px 19px; border-radius: 13px; }
#hub .updates-summary-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
#hub .updates-summary-head strong { color: #f2f2f2; font-size: 14px; font-weight: 500; }
#hub .updates-summary-head span { color: #8f8f8f; font: 9px var(--mono); }
#hub .updates-error { margin: 9px 0 0; color: #e7a2a2; font-size: 10px; }
#hub .updates-note { margin: 9px 0 0; color: #a9d7b8; font-size: 10px; }
#hub .updates-list { display: flex; flex-direction: column; gap: 7px; }
#hub .update-row { display: flex; align-items: center; gap: 13px; padding: 13px 15px; border: 1px solid #ffffff1a; border-radius: 10px; background: #ffffff05; }
#hub .update-row.update-update { border-color: #f0d99a42; background: #f0d99a08; }
#hub .update-main { flex: 1 1 auto; min-width: 0; }
#hub .update-main strong { display: block; color: #ededed; font-size: 12px; font-weight: 500; }
#hub .update-main small { display: block; margin-top: 3px; color: #858585; font: 9px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#hub .update-main p { margin: 4px 0 0; color: #999; font-size: 10px; line-height: 1.5; }
#hub .update-badge { flex: 0 0 auto; border: 1px solid #ffffff22; border-radius: 4px; padding: 4px 6px; color: #9c9c9c; font: 8px var(--mono); letter-spacing: .5px; }
#hub .update-row.update-update .update-badge { border-color: #f0d99a55; color: #f0d99a; }
#hub .update-row.update-current .update-badge { border-color: #a9d7b844; color: #a9d7b8; }
#hub .update-row.update-error .update-badge { border-color: #e7a2a255; color: #e7a2a2; }
#hub .updates-apply { flex: 0 0 auto; border: 1px solid #ffffff38; border-radius: 6px; background: #f0f0f0; color: #0a0a0a; padding: 7px 11px; font-size: 10px; }
#hub .updates-apply:hover { background: #fff; }
#hub .updates-apply:disabled { opacity: .4; cursor: wait; }
#hub .updates-manual-note { flex: 0 0 auto; color: #777; font: 8px var(--mono); }
@media (max-width: 800px) {
  #hub .update-row { align-items: flex-start; flex-wrap: wrap; }
  #hub .update-main { flex-basis: calc(100% - 85px); }
  #hub .update-main small { white-space: normal; }
  #hub .updates-apply { margin-left: auto; }
}

/* Curated approved-app directory. */
#hub .directory-grid { display: flex; flex-direction: column; gap: 22px; }
#hub .directory-group h3 { margin: 0 0 9px; color: #cfcfcf; font: 10px var(--mono); letter-spacing: 1.1px; text-transform: uppercase; }
#hub .directory-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 9px; }
#hub .directory-card { display: flex; align-items: center; gap: 11px; min-width: 0; padding: 13px 14px; border: 1px solid #ffffff1c; border-radius: 10px; background: #ffffff05; cursor: pointer; }
#hub .directory-card:hover, #hub .directory-card:focus-visible { border-color: #ffffff3d; background: #ffffff0d; }
#hub .directory-icon { flex: 0 0 auto; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #ffffff22; border-radius: 8px; background: #ffffff09; color: #e6e6e6; font: 10px var(--mono); overflow: hidden; }
#hub .directory-icon img { width: 21px; height: 21px; object-fit: contain; }
#hub .directory-copy { flex: 1 1 auto; min-width: 0; }
#hub .directory-copy strong { display: block; color: #f0f0f0; font-size: 12px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#hub .directory-copy p { margin: 3px 0 0; color: #969696; font-size: 10px; line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#hub .directory-copy small { display: block; margin-top: 4px; color: #6f6f6f; font: 8px var(--mono); letter-spacing: .5px; text-transform: uppercase; }
#hub .directory-external { flex: 0 0 auto; width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid #ffffff1f; border-radius: 5px; color: #bdbdbd; font-size: 12px; }
#hub .directory-external:hover { background: #ffffff12; color: #fff; }
#hub .browser-directory { width: min(820px, 100%); display: flex; flex-direction: column; gap: 8px; }
#hub .browser-directory-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
#hub .browser-directory-head button { border: 1px solid #ffffff24; border-radius: 5px; background: #ffffff08; color: #bbb; padding: 5px 8px; font-size: 9px; }
#hub .browser-directory-head button:hover { background: #ffffff14; color: #fff; }
#hub .browser-directory-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
#hub .browser-directory-app { display: flex; align-items: center; gap: 6px; max-width: 220px; border: 1px solid #ffffff22; border-radius: 7px; background: #ffffff06; color: #d2d2d2; padding: 6px 9px 6px 6px; font-size: 10px; }
#hub .browser-directory-app:hover { background: #ffffff12; border-color: #ffffff3a; color: #fff; }
#hub .browser-directory-app .directory-icon { width: 21px; height: 21px; border-radius: 5px; font-size: 7px; }
#hub .browser-directory-app .directory-icon img { width: 13px; height: 13px; }
#hub .browser-directory-app > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 800px) {
  #hub .directory-cards { grid-template-columns: 1fr; }
  #hub .browser-directory-app { max-width: 170px; font-size: 9px; }
}
#hub .browser-cookie-import { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
#hub .browser-cookie-import textarea { width: 100%; resize: vertical; min-height: 58px; border: 1px solid #ffffff2b; border-radius: 6px; background: #ffffff08; color: #eee; padding: 8px 9px; font: 10px var(--mono); outline: 0; }
#hub .browser-cookie-import textarea:focus { border-color: #ffffff70; }
#hub .browser-cookie-import button { align-self: flex-start; border: 1px solid #ffffff35; background: #ffffff12; color: #fff; border-radius: 5px; font-size: 10px; padding: 7px 10px; }
#hub .browser-cookie-import button:hover { background: #ffffff22; }
#hub .directory-star { flex: 0 0 auto; width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid #ffffff1f; border-radius: 5px; background: transparent; color: #d8c98b; font-size: 14px; line-height: 1; }
#hub .directory-star:hover { background: #ffffff12; color: #fff; }
#hub .site-card .directory-external { margin-left: 0; }
