/* 原生控件沿用 Gitea 的行为；嵌入主题与 FDE / Ant Design 色彩、字号和间距对齐。 */
html.fde-embedded {
  --color-primary: #2668b9; --color-primary-hover: #1d579e; --color-primary-active: #184c89;
  --color-body: #fff; --color-box-body: #fff; --color-box-header: #f5f7fa;
  --color-text: #243b53; --color-text-light: #60758c; --color-secondary: #d9e2ef;
  --border-radius: 6px; --fonts-regular: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  scrollbar-gutter: stable;
}
.fde-embedded body { background: #fff; font-size: 14px; }
.fde-embedded #navbar, .fde-embedded footer, .fde-embedded .repo-header { display: none !important; }
.fde-embedded .page-content { padding-top: 16px; }
.fde-embedded .ui.container { width: auto !important; margin-left: 20px !important; margin-right: 20px !important; }
.fde-embedded .ui.button { border-radius: 6px; font-weight: 400; min-height: 32px; box-shadow: none; }
.fde-embedded .ui.primary.button { background: #2668b9; color: #fff; }
.fde-embedded .ui.input > input, .fde-embedded .ui.selection.dropdown, .fde-embedded textarea { border-radius: 6px; }
.fde-embedded .repository a[href$="/issues"], .fde-embedded .repository a[href$="/wiki"],
.fde-embedded .repository a[href$="/actions"], .fde-embedded .repository a[href$="/packages"],
.fde-embedded .repository a[href$="/projects"] { display: none !important; }
@media (max-width: 600px) { .fde-embedded .ui.container { margin-left: 12px !important; margin-right: 12px !important; } }
/* 授权期间只展示 FDE 自有面板，原生登录页和其他内容保持隐藏。 */
.fde-storage-required body > :not(.fde-storage-panel) { display: none !important; }
.fde-storage-panel { max-width: 560px; margin: 64px auto; padding: 24px; color: #243b53; }
.fde-storage-panel h2 { font-size: 20px; margin: 0 0 16px; }
.fde-storage-panel p { line-height: 1.7; }
.fde-storage-panel a { display: inline-block; margin-top: 8px; }
