/* Identity slot source SHA256: b050ebd14820ff2734577a984751c7369cc5b8fc6acb4826d68180662f375644 */
/* Generated by scripts/native-theme.mjs from src/theme.css. Do not edit.
 * Source SHA256: 9f44d9c46cd7a772ece45ad608afd5562ad06107d5ccdbaf9123cf0288d3111a
 * Variables only; native page layout and theme choice remain with the consumer.
 */
:root {
  --radius: 0.625rem;

  --background: oklch(0.985 0 0);
  --foreground: oklch(0.145 0 0);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.145 0 0);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.145 0 0);

  /* 品牌 = 暖橙棕（沿用既有品牌印象）；深色下提亮以保证对比度 */
  --primary: oklch(0.438 0.142 46.2);
  --primary-foreground: oklch(0.985 0 0);
  --secondary: oklch(0.97 0 0);
  --secondary-foreground: oklch(0.205 0 0);
  --muted: oklch(0.97 0 0);
  --muted-foreground: oklch(0.556 0 0);
  --accent: oklch(0.97 0 0);
  --accent-foreground: oklch(0.205 0 0);

  --destructive: oklch(0.577 0.245 27.325);
  --destructive-foreground: oklch(0.985 0 0);
  --success: oklch(0.527 0.154 150.069);
  --success-foreground: oklch(0.985 0 0);
  --warning: oklch(0.681 0.158 66.1);
  --warning-foreground: oklch(0.265 0.06 60);

  --border: oklch(0.922 0 0);
  --input: oklch(0.922 0 0);
  --ring: oklch(0.708 0 0);

  /* 行情方向色：涨=红，跌=绿。见文件头说明。 */
  --up: oklch(0.577 0.245 27.325);
  --down: oklch(0.527 0.154 150.069);

  --chart-1: oklch(0.438 0.142 46.2);
  --chart-2: oklch(0.646 0.222 41.116);
  --chart-3: oklch(0.6 0.118 184.704);
  --chart-4: oklch(0.398 0.07 227.392);
  --chart-5: oklch(0.828 0.189 84.429);

  --sidebar: oklch(0.985 0 0);
  --sidebar-foreground: oklch(0.145 0 0);
  --sidebar-primary: oklch(0.438 0.142 46.2);
  --sidebar-primary-foreground: oklch(0.985 0 0);
  --sidebar-accent: oklch(0.97 0 0);
  --sidebar-accent-foreground: oklch(0.205 0 0);
  --sidebar-border: oklch(0.922 0 0);
  --sidebar-ring: oklch(0.708 0 0);
}

.dark {
  --background: oklch(0.145 0 0);
  --foreground: oklch(0.985 0 0);
  --card: oklch(0.195 0 0);
  --card-foreground: oklch(0.985 0 0);
  --popover: oklch(0.195 0 0);
  --popover-foreground: oklch(0.985 0 0);

  --primary: oklch(0.646 0.222 41.116);
  --primary-foreground: oklch(0.145 0 0);
  --secondary: oklch(0.269 0 0);
  --secondary-foreground: oklch(0.985 0 0);
  --muted: oklch(0.269 0 0);
  --muted-foreground: oklch(0.708 0 0);
  --accent: oklch(0.269 0 0);
  --accent-foreground: oklch(0.985 0 0);

  --destructive: oklch(0.704 0.191 22.216);
  --destructive-foreground: oklch(0.145 0 0);
  --success: oklch(0.696 0.17 162.48);
  --success-foreground: oklch(0.145 0 0);
  --warning: oklch(0.769 0.16 70.08);
  --warning-foreground: oklch(0.265 0.06 60);

  --border: oklch(1 0 0 / 12%);
  --input: oklch(1 0 0 / 18%);
  --ring: oklch(0.556 0 0);

  --up: oklch(0.704 0.191 22.216);
  --down: oklch(0.696 0.17 162.48);

  --chart-1: oklch(0.646 0.222 41.116);
  --chart-2: oklch(0.6 0.118 184.704);
  --chart-3: oklch(0.398 0.07 227.392);
  --chart-4: oklch(0.828 0.189 84.429);
  --chart-5: oklch(0.769 0.188 70.08);

  --sidebar: oklch(0.185 0 0);
  --sidebar-foreground: oklch(0.985 0 0);
  --sidebar-primary: oklch(0.646 0.222 41.116);
  --sidebar-primary-foreground: oklch(0.145 0 0);
  --sidebar-accent: oklch(0.269 0 0);
  --sidebar-accent-foreground: oklch(0.985 0 0);
  --sidebar-border: oklch(1 0 0 / 12%);
  --sidebar-ring: oklch(0.556 0 0);
}

:root {
  --color-background: var(--background);
  --color-foreground: var(--foreground);
  --color-card: var(--card);
  --color-card-foreground: var(--card-foreground);
  --color-popover: var(--popover);
  --color-popover-foreground: var(--popover-foreground);
  --color-primary: var(--primary);
  --color-primary-foreground: var(--primary-foreground);
  --color-secondary: var(--secondary);
  --color-secondary-foreground: var(--secondary-foreground);
  --color-muted: var(--muted);
  --color-muted-foreground: var(--muted-foreground);
  --color-accent: var(--accent);
  --color-accent-foreground: var(--accent-foreground);
  --color-destructive: var(--destructive);
  --color-destructive-foreground: var(--destructive-foreground);
  --color-success: var(--success);
  --color-success-foreground: var(--success-foreground);
  --color-warning: var(--warning);
  --color-warning-foreground: var(--warning-foreground);
  --color-up: var(--up);
  --color-down: var(--down);
  --color-border: var(--border);
  --color-input: var(--input);
  --color-ring: var(--ring);

  --color-chart-1: var(--chart-1);
  --color-chart-2: var(--chart-2);
  --color-chart-3: var(--chart-3);
  --color-chart-4: var(--chart-4);
  --color-chart-5: var(--chart-5);

  --color-sidebar: var(--sidebar);
  --color-sidebar-foreground: var(--sidebar-foreground);
  --color-sidebar-primary: var(--sidebar-primary);
  --color-sidebar-primary-foreground: var(--sidebar-primary-foreground);
  --color-sidebar-accent: var(--sidebar-accent);
  --color-sidebar-accent-foreground: var(--sidebar-accent-foreground);
  --color-sidebar-border: var(--sidebar-border);
  --color-sidebar-ring: var(--sidebar-ring);

  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);

  --font-sans:
    -apple-system, BlinkMacSystemFont, 'PingFang HK', 'Noto Sans HK', 'Microsoft JhengHei',
    'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;
}

/* Shared native identity skin. Dimensions mirror PageHeader/Form/Input/Button/Dialog. */
:where([data-ui="identity"]) {
  box-sizing: border-box;
  min-height: 100dvh;
  margin: 0;
  padding: 2.5rem 1rem;
  display: grid;
  align-content: center;
  justify-items: center;
  color: var(--foreground);
  background: var(--background);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
:where([data-ui="identity"]) *,
:where([data-ui="identity"]) *::before,
:where([data-ui="identity"]) *::after {
  box-sizing: border-box;
}
:where([data-ui="identity"]) [data-slot="identity-shell"] {
  display: grid;
  gap: 1.5rem;
  width: 100%;
  min-width: 0;
  max-width: 32rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  color: var(--card-foreground);
  background: var(--card);
}
:where([data-ui="identity"]) [data-slot="identity-content"] {
  display: grid;
  gap: var(--ui-form-gap, 1rem);
  min-width: 0;
}
:where([data-ui="identity"]) [data-slot="identity-brand"] {
  font-weight: 600;
}
:where([data-ui="identity"]) [data-slot="identity-header"] {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}
:where([data-ui="identity"]) [data-slot="identity-title"] {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.333333;
  letter-spacing: -0.025em;
}
:where([data-ui="identity"]) [data-slot="identity-description"],
:where([data-ui="identity"]) [data-slot="identity-note"],
:where([data-ui="identity"]) [data-slot="identity-hint"] {
  margin: 0;
  color: var(--muted-foreground);
  line-height: 1.625;
}
:where([data-ui="identity"]) [data-slot="identity-form"] {
  display: flex;
  flex-direction: column;
  gap: var(--ui-form-gap, 1rem);
  margin: 0;
}
:where([data-ui="identity"]) [data-slot="identity-field"] {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
}
:where([data-ui="identity"]) [data-slot="identity-label"] {
  font-size: 0.875rem;
  font-weight: 500;
}
:where([data-ui="identity"]) [data-slot="identity-input"] {
  width: 100%;
  min-width: 0;
  height: var(--ui-control-height, 2.25rem);
  padding: 0.25rem 0.75rem;
  border: 1px solid var(--input);
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--foreground);
  font: inherit;
}
:where(.dark) :where([data-ui="identity"]) [data-slot="identity-input"] {
  background: color-mix(in oklab, var(--input) 30%, transparent);
}
:where([data-ui="identity"]) [data-slot="identity-input"]::placeholder {
  color: var(--muted-foreground);
}
:where([data-ui="identity"]) [data-slot="identity-input"]:focus-visible,
:where([data-ui="identity"]) [data-slot="identity-button"]:focus-visible,
:where([data-ui="identity"]) [data-slot="identity-link"]:focus-visible {
  outline: 2px solid var(--foreground);
  outline-offset: 2px;
}
:where([data-ui="identity"]) [data-slot="identity-input"][aria-invalid="true"] {
  border-color: var(--destructive);
}
:where([data-ui="identity"]) [data-slot="identity-actions"],
:where([data-ui="identity"]) [data-slot="identity-links"] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ui-action-gap, 0.75rem);
}
:where([data-ui="identity"]) [data-slot="identity-button"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: var(--ui-control-height, 2.25rem);
  max-width: 100%;
  padding: 0.5rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}
:where([data-ui="identity"])
  [data-slot="identity-button"][data-variant="default"] {
  background: var(--primary);
  color: var(--primary-foreground);
}
:where([data-ui="identity"])
  [data-slot="identity-button"][data-variant="outline"] {
  border-color: var(--input);
  background: var(--background);
  color: var(--foreground);
}
:where([data-ui="identity"])
  [data-slot="identity-button"][data-variant="destructive"] {
  background: var(--destructive);
  color: var(--destructive-foreground);
}
:where([data-ui="identity"])
  [data-slot="identity-button"][data-variant="default"]:hover {
  background: color-mix(in oklab, var(--primary) 90%, transparent);
}
:where([data-ui="identity"])
  [data-slot="identity-button"][data-variant="outline"]:hover {
  background: var(--accent);
  color: var(--accent-foreground);
}
:where([data-ui="identity"]) [data-slot="identity-link"][aria-current="true"] {
  font-weight: 600;
}
:where([data-ui="identity"]) [data-slot="identity-link"] {
  color: var(--primary);
  text-underline-offset: 0.25rem;
}
:where([data-ui="identity"]) [data-slot="identity-input"]:disabled,
:where([data-ui="identity"]) [data-slot="identity-button"]:disabled,
:where([data-ui="identity"])
  [data-slot="identity-button"][aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}
:where([data-ui="identity"]) [data-slot="identity-error"],
:where([data-ui="identity"]) [data-slot="identity-success"],
:where([data-ui="identity"]) [data-slot="identity-status"] {
  margin: 0;
  font-size: 0.875rem;
}
:where([data-ui="identity"]) [data-slot="identity-error"] {
  color: var(--destructive);
}
:where([data-ui="identity"]) [data-slot="identity-success"] {
  color: var(--success);
}
:where([data-ui="identity"]) [data-slot="identity-status"] {
  color: var(--muted-foreground);
}
:where([data-ui="identity"]) [hidden] {
  display: none !important;
}

/* Shared native adapters for the account header and trailing Input/Button composition. */
:where([data-ui="identity"]) [data-slot="identity-toolbar"],
:where([data-ui="identity"]) [data-slot="identity-controls"] {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
:where([data-ui="identity"]) [data-slot="identity-toolbar"] {
  justify-content: space-between;
}
:where([data-ui="identity"]) [data-slot="identity-header"] {
  gap: 1rem;
}
:where([data-ui="identity"]) [data-slot="identity-icon"] {
  display: block;
  width: 1rem;
  height: 1rem;
  flex: none;
}
:where([data-ui="identity"]) [data-slot="identity-icon-button"],
:where([data-ui="identity"]) [data-slot="identity-password-toggle"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--ui-control-height, 2.25rem);
  height: var(--ui-control-height, 2.25rem);
  padding: 0;
  border: 1px solid var(--input);
  border-radius: var(--radius-md);
  color: var(--muted-foreground);
  background: transparent;
  cursor: pointer;
}
:where([data-ui="identity"]) [data-slot="identity-icon-button"]:hover,
:where([data-ui="identity"]) [data-slot="identity-password-toggle"]:hover {
  color: var(--accent-foreground);
  background: var(--accent);
}
:where([data-ui="identity"]) [data-slot="identity-icon-button"]:focus-visible,
:where([data-ui="identity"]) [data-slot="identity-password-toggle"]:focus-visible {
  outline: 2px solid var(--foreground);
  outline-offset: 2px;
}
:where([data-ui="identity"]) [data-slot="identity-language"] {
  position: relative;
}
:where([data-ui="identity"]) [data-slot="identity-language"] summary {
  list-style: none;
}
:where([data-ui="identity"]) [data-slot="identity-language"] summary::-webkit-details-marker {
  display: none;
}
:where([data-ui="identity"]) [data-slot="identity-language-menu"] {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 0.5rem);
  z-index: 10;
  display: grid;
  gap: 0.5rem;
  width: max-content;
  max-width: calc(100vw - 2rem);
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--popover);
  color: var(--popover-foreground);
}
:where([data-ui="identity"]) [data-slot="identity-input-group"] {
  position: relative;
  min-width: 0;
}
:where([data-ui="identity"]) [data-slot="identity-input-group"][data-enhanced="true"] input {
  padding-inline-end: calc(var(--ui-control-height, 2.25rem) + 0.75rem);
}
:where([data-ui="identity"]) [data-slot="identity-password-toggle"] {
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 0;
  border-color: transparent;
}
:where([data-ui="identity"]) [data-slot="identity-password-toggle"]:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
:where([data-ui="identity"]) [data-slot="identity-sr-only"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Existing 44px close/navigation target and text-base size on narrow native forms. */
@media (max-width: 600px) {
  :where([data-ui="identity"]) {
    --ui-control-height: 2.75rem;
  }
  :where([data-ui="identity"]) [data-slot="identity-input"],
  :where([data-ui="identity"]) [data-slot="identity-button"] {
    font-size: 1rem;
  }
}
