/* webapp/static/css/base.css */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-selected) transparent;
}
*::-webkit-scrollbar { width: 6px; height: 6px; }
*::-webkit-scrollbar-track { background: transparent; }
*::-webkit-scrollbar-thumb { background: var(--bg-selected); border-radius: 3px; }

:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 2px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 20px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
.hidden { display: none !important; }

.workspace-shell {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.workspace-main {
  flex: 1;
  min-width: 0;
  padding: 16px;
  padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
  .workspace-shell {
    flex-direction: row;
    align-items: flex-start;
    padding: var(--shell-inset);
    gap: var(--page-gap);
  }
  .workspace-main {
    padding: 4px 0 88px 0;
  }
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.command-bar { margin-bottom: 16px; }
.command-bar-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  gap: 12px;
}
.page-title {
  font-size: 22px;
  line-height: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.surface-block {
  background: var(--bg-surface);
  border-radius: var(--radius-surface);
  padding: 16px;
  margin-bottom: 16px;
}

.splash-screen {
  position: fixed;
  inset: 0;
  background: var(--bg-canvas);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.splash-content { text-align: center; padding: 24px; max-width: 340px; width: 100%; }
.splash-badge { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 20px; }
.splash-title { font-size: 14px; color: var(--text-secondary); margin-top: 14px; }
.splash-status { font-size: 12px; color: var(--text-subtle); margin-top: 6px; min-height: 18px; }
.tg-only-icon { color: var(--text-secondary); margin-bottom: 12px; display: flex; justify-content: center; }
.tg-only-title { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.tg-only-text { font-size: 13px; color: var(--text-secondary); line-height: 18px; margin-bottom: 20px; }
