/*!*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.5.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.5.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./styles/tokens.light.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
@import url("https://cdn.jsdelivr.net/npm/pretendard/dist/web/static/pretendard.css");

:root {
  --font-sans:
    "Pretendard Variable",
    Pretendard,
    -apple-system,
    BlinkMacSystemFont,
    "Apple SD Gothic Neo",
    "Malgun Gothic",
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  --font-mono:
    ui-monospace,
    "SFMono-Regular",
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    monospace;
  color-scheme: light;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --panel-soft: #f9fafb;
  --line: #d9e1ec;
  --line-strong: #c6d3e1;
  --text: #182230;
  --muted: #667085;
  --text-muted: var(--muted);
  --primary: #0f766e;
  --primary-dark: #115e59;
  --danger: #b42318;
  --ok: #027a48;
  --header-bg: #111827;
  --header-line: #1f2937;
  --header-text: #e5e7eb;
  --header-muted: #9ca3af;
  --nav-active: #1f2937;
  --selection-bg: #ecfdf9;
  --selection-line: #0f766e;
  --kbd-bg: #ffffff;
  --kbd-line: #c9d3df;
  /* Phase 1: UI redesign token bridge (light) */
  --mi-color-brand-deep: #274442;
  --mi-color-brand-mid: #2f5d59;
  --mi-color-brand-primary: #4f7375;
  --mi-color-brand-sage: #748e81;
  --mi-color-brand-muted: #8fa39e;
  --mi-color-brand-pale: #a3bab4;
  --mi-color-brand-mist: #e9e5e3;
  --mi-color-deep-teal: var(--mi-color-brand-deep);
  --mi-color-archive-teal: var(--mi-color-brand-primary);
  --mi-color-mint: var(--mi-color-brand-sage);
  --mi-color-pale-teal: var(--mi-color-brand-pale);
  --mi-color-platinum: var(--mi-color-brand-mist);
  --mi-color-canvas: var(--mi-color-brand-mist);
  --mi-color-frame: var(--mi-color-brand-mist);
  --mi-color-main: var(--mi-color-brand-pale);
  --mi-color-panel: #ffffff;
  --mi-color-panel-soft: #f6f8f7;
  --mi-color-sidebar: #a3bab4;
  --mi-color-ink: #1f2328;
  --mi-color-ink-soft: #626b74;
  --mi-color-banner-title: #1f4f45;
  --mi-color-banner-body: #3b4f4b;
  --mi-color-line: #d8dee3;
  --mi-color-primary: var(--mi-color-brand-primary);
  --mi-color-primary-soft: #edf4f2;
  --mi-color-primary-wash: #f7faf8;
  --mi-color-focus-line: #4f7375;
  --mi-color-selection-border: #9eb6b0;
  --mi-color-cool-line: #d6dde2;
  --mi-color-success: #0f8f6e;
  --mi-color-warning: #b7791f;
  --mi-color-warning-strong: #b45309;
  --mi-color-danger: #c2414b;
  --mi-radius-sm: 8px;
  --mi-radius-md: 14px;
  --mi-radius-lg: 28px;
  /* Legacy variable aliases for gradual migration */
  --mi-bg-canvas: var(--mi-color-canvas);
  --mi-bg-panel: var(--mi-color-panel);
  --mi-bg-panel-soft: var(--mi-color-panel-soft);
  --mi-text-primary: var(--mi-color-ink);
  --mi-text-secondary: var(--mi-color-ink-soft);
  --mi-color-ink-faint: #8b929a;
  --mi-tone-panel: var(--mi-color-panel);
  --mi-tone-panel-soft: var(--mi-color-panel-soft);
  --mi-tone-panel-strong: #ffffff;
  --mi-tone-border: var(--mi-color-line);
  --line2: var(--line);
}

/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.5.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.5.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./styles/tokens.dark.css ***!
  \************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1220;
  --panel: #111827;
  --panel-soft: #0f172a;
  --line: #2b3647;
  --line-strong: #344358;
  --text: #e5e7eb;
  --muted: #94a3b8;
  --text-muted: var(--muted);
  --primary: #14b8a6;
  --primary-dark: #0f766e;
  --danger: #f97066;
  --ok: #32d583;
  --header-bg: #0f172a;
  --header-line: #1f2937;
  --header-text: #e2e8f0;
  --header-muted: #94a3b8;
  --nav-active: #1e293b;
  --selection-bg: #0f2f2b;
  --selection-line: #14b8a6;
  --kbd-bg: #0f172a;
  --kbd-line: #344358;
  /* Phase 1: UI redesign token bridge (dark) */
  --mi-color-brand-deep: #1f3b3b;
  --mi-color-brand-mid: #2a534f;
  --mi-color-brand-primary: #5f8f92;
  --mi-color-brand-sage: #6f8a85;
  --mi-color-brand-muted: #5f7370;
  --mi-color-brand-pale: #2b3f46;
  --mi-color-brand-mist: #1a2430;
  --mi-color-deep-teal: var(--mi-color-brand-deep);
  --mi-color-archive-teal: var(--mi-color-brand-primary);
  --mi-color-mint: var(--mi-color-brand-sage);
  --mi-color-pale-teal: var(--mi-color-brand-pale);
  --mi-color-platinum: #131d29;
  --mi-color-canvas: #0b121a;
  --mi-color-frame: #111a26;
  --mi-color-main: #1c2b3a;
  --mi-color-panel: #111b27;
  --mi-color-panel-soft: #0f1824;
  --mi-color-sidebar: #1a2836;
  --mi-color-ink: #e5e7eb;
  --mi-color-ink-soft: #94a3b8;
  --mi-color-banner-title: #d7ebe6;
  --mi-color-banner-body: #b7ccc6;
  --mi-color-line: #344358;
  --mi-color-line-strong: #3d4d63;
  --mi-color-primary: #14b8a6;
  --mi-color-primary-soft: #0f2f2b;
  --mi-color-primary-wash: #123731;
  --mi-color-focus-line: #14b8a6;
  --mi-color-selection-border: #3d8f87;
  --mi-color-cool-line: #344358;
  --mi-color-success: #32d583;
  --mi-color-warning: #f1c40f;
  --mi-color-warning-strong: #f59e0b;
  --mi-color-danger: #f97066;
  --mi-radius-sm: 8px;
  --mi-radius-md: 14px;
  --mi-radius-lg: 28px;
  --mi-bg-canvas: var(--mi-color-canvas);
  --mi-bg-panel: var(--mi-color-panel);
  --mi-bg-panel-soft: var(--mi-color-panel-soft);
  --mi-text-primary: var(--mi-color-ink);
  --mi-text-secondary: var(--mi-color-ink-soft);
  --mi-color-ink-faint: #9eacb8;
  --mi-tone-panel: var(--mi-color-panel);
  --mi-tone-panel-soft: var(--mi-color-panel-soft);
  --mi-tone-panel-strong: #1a2430;
  --mi-tone-border: var(--mi-color-line);
  --line2: var(--line);
}

/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.5.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.5.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./styles/base.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

button,
input,
select,
textarea {
  font-family: var(--font-sans);
}

main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px;
}

.app-header {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--header-bg);
  color: var(--header-text);
  border-bottom: 1px solid var(--header-line);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.app-header-brand {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-links a {
  color: var(--header-muted);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 6px;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--header-text);
  background: var(--nav-active);
  text-decoration: none;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown summary {
  list-style: none;
  cursor: pointer;
  color: var(--header-muted);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 6px;
  transition:
    background-color 160ms ease,
    color 160ms ease;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.nav-dropdown summary::after {
  content: "▾";
  margin-left: 6px;
  font-size: 11px;
}

.nav-dropdown[open] summary,
.nav-dropdown.active summary,
.nav-dropdown summary:hover {
  color: var(--header-text);
  background: var(--nav-active);
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  padding: 6px;
  border: 1px solid var(--header-line);
  border-radius: 8px;
  background: var(--header-bg);
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.24);
  z-index: 30;
}

.nav-dropdown-menu a {
  border-radius: 6px;
  white-space: nowrap;
}

.nav-menu-toggle {
  display: none;
}

.muted {
  color: var(--header-muted);
  margin-left: 8px;
  font-size: 13px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.panel-soft {
  background: var(--panel-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  gap: 6px;
}

.panel-soft strong {
  font-size: 12px;
}

.panel-soft .text-muted {
  font-size: 11px;
  line-height: 1.35;
}

.hash-value {
  overflow-wrap: anywhere;
  word-break: break-word;
  display: inline-block;
  max-width: 100%;
}

.export-warning-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: -moz-fit-content;
  width: fit-content;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--danger) 35%, var(--line));
  background: color-mix(in srgb, var(--danger) 10%, transparent);
  color: var(--danger);
  font-size: 11px;
  font-weight: 700;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

input,
select,
textarea,
button {
  font: inherit;
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  color: var(--text);
  transition:
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

button {
  cursor: pointer;
  background: var(--mi-color-brand-deep);
  color: #fff;
  border-color: var(--mi-color-brand-deep);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 700;
}

button:hover {
  background: var(--mi-color-brand-deep);
  border-color: var(--mi-color-brand-deep);
}

.button-secondary {
  background: var(--mi-tone-panel-strong, var(--panel));
  border-color: var(--mi-tone-border, var(--line-strong));
  color: var(--mi-color-ink, var(--text));
}

.button-secondary:hover {
  background: var(--mi-color-brand-deep);
  border-color: var(--mi-color-brand-deep);
  color: #fff;
}

.button-danger {
  background: #c0392b;
  border-color: #c0392b;
  color: #fff;
}

.button-danger:hover {
  background: #a83226;
  border-color: #a83226;
  color: #fff;
}

.users-management-table {
  table-layout: fixed;
}

.users-management-table td,
.users-management-table th {
  vertical-align: middle;
}

.users-management-table thead th {
  text-align: center;
}

.users-management-table td:nth-child(3) select,
.users-management-table td:nth-child(7) select {
  width: 100%;
}

.users-management-table td:nth-child(9) > button {
  width: 100%;
}

.users-management-table td:nth-child(6),
.users-management-table td:nth-child(8) {
  text-align: center;
}

.user-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  justify-content: center;
}

.user-toggle span {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.user-toggle--switch {
  justify-content: center;
  gap: 0;
  position: relative;
}

.user-toggle--switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.user-toggle-switch-track {
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 35%, transparent);
  border: 1px solid var(--line-strong);
  position: relative;
  flex: 0 0 auto;
  transition: background-color 160ms ease;
}

.user-toggle-switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 160ms ease;
}

.user-toggle--switch input:checked + .user-toggle-switch-track {
  background: var(--mi-color-brand-deep);
}

.user-toggle--switch input:checked + .user-toggle-switch-track::after {
  transform: translateX(18px);
}

.user-toggle--switch::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  background: color-mix(in srgb, var(--text) 92%, #000 8%);
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
  z-index: 3;
}

.user-toggle--switch:hover::after,
.user-toggle--switch:focus-within::after {
  opacity: 1;
}


.theme-icon-button {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  border-color: var(--line-strong);
  color: var(--header-text);
  display: grid;
  place-items: center;
  font-size: 16px;
  line-height: 1;
}

.theme-icon-button:hover {
  background: var(--nav-active);
  border-color: var(--header-muted);
}

button:disabled {
  opacity: 0.6;
  cursor: default;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  padding: 8px;
  font-size: 14px;
}

thead th {
  background: var(--panel-soft);
  color: var(--text);
  font-weight: 700;
}

.error {
  color: var(--danger);
}

.success {
  color: var(--ok);
}

.notice-stack {
  position: fixed;
  top: 74px;
  right: 16px;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(460px, calc(100vw - 32px));
  pointer-events: none;
}

.notice {
  pointer-events: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(2, 6, 23, 0.16);
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.notice-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notice-content strong {
  font-size: 12px;
  line-height: 1.2;
}

.notice-content span {
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.notice-detail-list {
  margin-top: 2px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.notice-detail-item {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.notice-detail-label {
  font-size: 11px;
  color: var(--muted);
}

.notice-detail-item code {
  font-size: 11px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel-soft);
  overflow-wrap: anywhere;
}

.notice-copy {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  padding: 3px 7px;
  font-size: 11px;
  line-height: 1.2;
}

.notice-copy:hover {
  background: var(--panel-soft);
  color: var(--text);
}

.notice-success {
  border-color: color-mix(in srgb, var(--ok) 45%, var(--line));
}

.notice-success .notice-content strong {
  color: var(--ok);
}

.notice-error {
  border-color: color-mix(in srgb, var(--danger) 45%, var(--line));
}

.notice-error .notice-content strong {
  color: var(--danger);
}

.notice-dismiss {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  padding: 4px 8px;
  font-size: 11px;
  line-height: 1.2;
  flex-shrink: 0;
}

.notice-dismiss:hover {
  background: var(--panel-soft);
  color: var(--text);
}

.text-muted {
  color: var(--muted);
  margin: 0;
}

.view-page {
  gap: 14px;
  font-size: 13px;
}

.view-title {
  margin: 0;
  font-size: 21px;
}

.view-page h2 {
  margin: 0;
  font-size: 16px;
}

.view-page .panel {
  font-size: 13px;
}

.view-page input,
.view-page select,
.view-page textarea,
.view-page button {
  font-size: 12px;
}

.view-page th,
.view-page td {
  font-size: 12px;
}

.insight-home-page {
  max-width: 1320px;
}

.insight-home-head p {
  max-width: 760px;
}

.insight-toolbar {
  justify-content: space-between;
  align-items: center;
}

.insight-empty-state {
  border-style: dashed;
}

.insight-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-gap: 12px;
  gap: 12px;
}

.insight-hero-card {
  padding: 14px;
  background: color-mix(in srgb, var(--panel) 86%, #edf5f4 14%);
}

.insight-hero-title {
  justify-content: space-between;
  align-items: flex-start;
}

.insight-hero-title h2 {
  font-size: 15px;
}

.insight-delta {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--ok) 45%, var(--line));
  color: var(--ok);
  background: color-mix(in srgb, var(--ok) 10%, transparent);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
}

.insight-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  grid-gap: 12px;
  gap: 12px;
}

.insight-trend-chart {
  min-height: 120px;
  border-radius: 10px;
  border: 1px dashed var(--line-strong);
  background:
    linear-gradient(to top, color-mix(in srgb, var(--line) 30%, transparent) 1px, transparent 1px) 0 0 / 100% 24px,
    linear-gradient(130deg, color-mix(in srgb, #2f7d4f 30%, transparent), color-mix(in srgb, #2f5673 35%, transparent));
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 10px;
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
}

.insight-trend-bar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 6px;
  min-width: 86px;
}

.insight-trend-bar {
  width: 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ok) 70%, var(--mi-color-brand-deep) 30%);
  min-height: 8px;
}

.insight-trend-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}

.insight-trend-item .row {
  justify-content: space-between;
}

.insight-trend-head {
  justify-content: space-between;
  align-items: center;
}

.insight-timeseries-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  grid-gap: 10px;
  gap: 10px;
  align-items: center;
}

.insight-timeseries-row strong {
  font-size: 12px;
}

.insight-timeseries-bars {
  min-height: 44px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 86%, #edf3f2 14%);
}

.insight-timeseries-bar {
  display: inline-block;
  flex: 1 1;
  border-radius: 999px;
  min-height: 6px;
  background: color-mix(in srgb, var(--primary) 72%, var(--mi-color-brand-deep) 28%);
}

.insight-action-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}

.insight-action-item span {
  font-size: 12px;
  font-weight: 600;
}

.insight-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  grid-gap: 12px;
  gap: 12px;
}

.insight-hub-card {
  padding: 12px;
}

.insight-hub-card strong {
  font-size: 13px;
}

.insight-section-head {
  justify-content: space-between;
}

.insight-footnote {
  justify-content: space-between;
}

@media (max-width: 980px) {
  .insight-main-grid {
    grid-template-columns: 1fr;
  }

  .insight-timeseries-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .insight-footnote {
    flex-direction: column;
    align-items: flex-start;
  }
}

.storage-management-page {
  --storage-green: var(--mi-color-brand-mid, #2e6357);
  --storage-green-dark: var(--mi-color-banner-title, #1d4a40);
  --storage-green-soft: color-mix(in srgb, var(--mi-color-brand-deep) 12%, var(--panel));
  --storage-border: var(--line);
  --storage-border-strong: color-mix(in srgb, var(--mi-color-brand-primary) 35%, var(--line));
  gap: 12px;
  font-size: 13.5px;
}

.settings-new-badge {
  display: inline-flex;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  color: #6542a2;
  background: #eee7fb;
  font-size: 10px;
  font-style: normal;
  vertical-align: middle;
}

.storage-management-page .storage-principle-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 18px;
  border: 1px solid var(--storage-border-strong);
  border-radius: 11px;
  background: var(--storage-green-soft);
}

.storage-management-page .storage-principle-banner > span {
  flex: none;
  margin-top: 1px;
  font-size: 20px;
  line-height: 1;
}

.storage-management-page .storage-principle-banner strong {
  display: block;
  margin-bottom: 2px;
  color: var(--storage-green-dark);
  font-size: 13.5px;
}

.storage-management-page .storage-principle-banner .section-title-row > strong {
  display: inline;
  margin: 0;
}

.storage-management-page .storage-principle-banner p {
  margin: 0;
  color: var(--mi-color-banner-body, var(--muted));
  font-size: 12.5px;
}

.storage-management-page .storage-principle-banner p b {
  color: inherit;
}

.storage-management-page .storage-card {
  gap: 10px;
  padding: 16px 18px;
  border-radius: 11px;
  background: var(--panel);
  box-shadow: none;
}

.storage-card-header,
.storage-usage-summary,
.storage-legend {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.storage-management-page .storage-card-header h2 {
  margin: 0;
  font-size: 14.5px;
}

.storage-management-page .storage-card > div:first-child h2 {
  margin: 0;
  font-size: 14.5px;
}

.storage-management-page .storage-card-header p,
.storage-management-page .storage-card > div:first-child > p {
  margin: 3px 0 0;
  font-size: 12px;
}

.storage-verdict-badge,
.storage-new-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9px;
  padding: 2px 8px;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}

.storage-verdict-badge.is-ok {
  color: #16644e;
  background: #ddf4eb;
}

.storage-verdict-badge.is-warn {
  color: #805900;
  background: #fff2c7;
}

.storage-verdict-badge.is-danger {
  color: #9b2525;
  background: #fde4e4;
}

.storage-new-badge {
  margin-left: 6px;
  color: #6542a2;
  background: #eee7fb;
  vertical-align: middle;
}

.storage-management-page .storage-usage-summary {
  font-size: 12.5px;
}

.storage-management-page .storage-usage-summary strong {
  font-size: 12.5px;
}

.storage-management-page .storage-usage-summary span {
  color: var(--text-muted);
}

.storage-gauge,
.storage-segments,
.storage-timeline {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eeeb;
}

.storage-gauge {
  height: 16px;
}

.storage-gauge > span {
  display: block;
  height: 100%;
  background: var(--storage-green);
}

.storage-segments {
  display: flex;
  height: 12px;
  margin-top: 1px;
}

.storage-segments > span {
  display: block;
  min-width: 1px;
}

.storage-segments .is-mail,
.storage-legend i.is-mail {
  background: #338f73;
}

.storage-segments .is-attachment,
.storage-legend i.is-attachment {
  background: #7fa89d;
}

.storage-segments .is-other,
.storage-legend i.is-other {
  background: #c3ccd0;
}

.storage-management-page .storage-legend {
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-start;
  color: var(--text-muted);
  font-size: 11.5px;
}

.storage-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.storage-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.storage-management-page .storage-saving-summary {
  margin-left: auto;
}

.storage-management-page .storage-saving-summary b {
  color: var(--text);
}

.storage-management-page .storage-saving-details {
  margin-top: 2px;
  padding: 8px 12px;
  border: 1px dashed var(--line);
  border-radius: 9px;
  background: color-mix(in srgb, var(--panel) 82%, #fff 18%);
}

.storage-management-page .storage-saving-details summary {
  cursor: pointer;
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 700;
}

.storage-management-page .storage-forecast-verdict {
  border: 1px solid var(--storage-border-strong);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13.5px;
  line-height: 1.55;
  background: #fff;
}

.storage-management-page .storage-forecast-verdict strong {
  font-size: 15px;
}

.storage-forecast-verdict.is-warn {
  border-color: #ddb970;
}

.storage-forecast-verdict.is-danger {
  border-color: #e4a3a3;
}

.storage-timeline {
  height: 26px;
  min-height: 26px;
  border-radius: 8px;
}

.storage-timeline-used {
  display: flex;
  min-width: 90px;
  height: 26px;
  align-items: center;
  padding-left: 8px;
  color: white;
  background: var(--storage-green);
  font-size: 10.5px;
  white-space: nowrap;
}

.storage-timeline-end {
  position: absolute;
  top: 5px;
  right: 8px;
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 700;
}

.storage-management-page .storage-simulator {
  margin-top: 1px;
  padding: 14px 16px;
  border: 1px solid var(--storage-border);
  border-radius: 10px;
  background: color-mix(in srgb, var(--panel) 86%, #fff 14%);
}

.storage-management-page .storage-simulator h3 {
  margin: 0;
  font-size: 12.5px;
}

.storage-management-page .storage-simulator > .storage-simulator-basis {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.45;
}

.storage-management-page .storage-simulator-grid {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  margin-top: 8px;
}

.storage-management-page .storage-simulator-row {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  align-items: center;
  justify-content: start;
  margin: 0;
}

.storage-management-page .storage-volume-row {
  grid-template-columns: 150px minmax(180px, 1fr) minmax(80px, auto);
}

.storage-management-page .storage-retention-row {
  grid-template-columns: 150px max-content max-content;
}

.storage-management-page .storage-simulator-row > span {
  font-size: 12px;
  font-weight: 700;
}

.storage-management-page .storage-simulator-row > strong {
  font-size: 12.5px;
}

.storage-management-page .storage-simulator-row select {
  width: -moz-fit-content;
  width: fit-content;
  min-width: 220px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12.5px;
}

.storage-management-page .storage-simulator-row input[type="range"] {
  accent-color: var(--storage-green);
}

.storage-management-page .storage-simulator > p {
  margin: 8px 0 0;
  font-size: 11px;
}

.storage-management-page .storage-check-option {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 12.5px;
}

.storage-management-page .storage-check-option input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--storage-green);
}

.storage-management-page .storage-alert-options {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  padding: 2px 0;
  background: transparent;
}

.storage-management-page .storage-alert-options select {
  width: auto;
  min-width: 82px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12.5px;
}

.storage-management-page .storage-alert-save {
  margin-left: auto;
}

.storage-management-page .storage-actions {
  gap: 8px;
  margin-top: 2px;
}

.storage-management-page .storage-actions > * {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  border: 1px solid #ccd5d9;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  box-shadow: none;
}

.storage-management-page .storage-actions > *:hover {
  border-color: #9db0aa;
  background: #eef2f1;
  color: var(--text);
}

.storage-management-page .storage-inquiry-modal {
  width: min(500px, 92vw);
  padding: 20px 24px;
}

.storage-management-page .storage-inquiry-modal h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .storage-management-page .storage-volume-row {
    grid-template-columns: 130px minmax(160px, 1fr) minmax(80px, auto);
  }

  .storage-management-page .storage-retention-row {
    grid-template-columns: 130px max-content max-content;
  }
}

@media (max-width: 640px) {
  .storage-card-header,
  .storage-usage-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .storage-management-page .storage-saving-summary {
    width: 100%;
    margin-left: 0;
  }

  .storage-actions > * {
    width: 100%;
    text-align: center;
  }

  .storage-management-page .storage-simulator-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .storage-management-page .storage-simulator-row > strong,
  .storage-management-page .storage-simulator-row > .storage-check-option {
    grid-column: auto;
  }

  .storage-management-page .storage-simulator-row select {
    width: 100%;
    min-width: 0;
  }

  .storage-management-page .storage-alert-save {
    width: 100%;
    margin-left: 0;
  }
}


/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.5.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.5.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./styles/primitives.css ***!
  \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* Shared UI primitives for settings/ops pages.
 * Prefer these for new screens. Existing page-local classes remain valid.
 * Reference implementation: classify (mi-cls-*) patterns.
 */

.mi-page {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.mi-panel {
  display: grid;
  grid-gap: 14px;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--mi-tone-border, rgb(255 255 255 / 90%));
  border-radius: var(--mi-radius-md, 14px);
  background: var(--mi-bg-panel, var(--panel));
  box-shadow: 0 14px 30px rgb(80 102 150 / 8%);
}

.mi-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.mi-panel-head h2 {
  margin: 0;
  color: var(--mi-color-ink, var(--text));
  font-size: 18px;
  font-weight: 950;
}

.mi-panel-head .text-muted,
.mi-panel-desc {
  margin: 6px 0 0;
  color: var(--mi-color-ink-soft, var(--muted));
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}

.mi-toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.mi-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  grid-gap: 10px;
  gap: 10px;
}

.mi-metric {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--mi-radius-sm, 8px);
  background: var(--panel);
}

.mi-metric-label,
.mi-metric > span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.mi-metric-value,
.mi-metric > strong {
  display: block;
  margin-top: 5px;
  font-size: 26px;
  font-weight: 900;
  color: var(--mi-color-ink, var(--text));
}

.mi-metric-hint,
.mi-metric > small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.mi-metric.is-positive {
  border-left: 4px solid var(--mi-color-brand-primary, var(--primary));
}

.mi-metric.is-warning {
  border-left: 4px solid var(--mi-color-warning);
}

.mi-metric.is-danger {
  border-left: 4px solid var(--mi-color-danger, var(--danger));
}

/* Dense KPI cards used by PII / retention / search-quality / index-exclusion */
.mi-metric.is-compact {
  padding: 12px 14px;
  border-radius: 10px;
}

.mi-metric.is-compact > span,
.mi-metric.is-compact .mi-metric-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted, var(--muted));
}

.mi-metric.is-compact > strong,
.mi-metric.is-compact .mi-metric-value {
  margin-top: 1px;
  font-size: 19px;
  font-weight: 800;
}

.mi-metric.is-compact > small,
.mi-metric.is-compact .mi-metric-hint {
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-muted, var(--muted));
}

.mi-metric.is-clickable {
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.mi-metric.is-clickable:hover {
  border-color: var(--mi-color-brand-deep);
  box-shadow: 0 4px 14px rgb(20 30 28 / 10%);
}

.mi-metric.is-warn {
  border-color: var(--mi-color-warning-strong);
}

.mi-empty {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: var(--mi-radius-sm, 8px);
  background: var(--panel-soft);
  color: var(--muted);
}

/* Settings-style overview cards (icon + value + action) */
.mi-overview-grid,
.settings-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
  min-width: 0;
}

.mi-overview-card,
.settings-overview-grid article,
.mi-overview-grid > article {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 56px !important;
  grid-template-areas:
    "title icon"
    "value icon"
    "helper helper"
    "action action" !important;
  grid-gap: 6px 12px !important;
  gap: 6px 12px !important;
  padding: 18px !important;
  min-height: 156px;
  border: 1px solid rgba(79, 115, 117, 0.16) !important;
  border-radius: var(--mi-radius-panel, var(--mi-radius-md, 14px)) !important;
  background: var(--mi-bg-panel, #ffffff) !important;
  box-shadow: var(
    --mi-shadow-card,
    0 1px 2px rgba(15, 23, 32, 0.03),
    0 6px 18px rgba(79, 115, 117, 0.08)
  ) !important;
}

.mi-overview-card[data-tone="positive"],
.settings-overview-grid article[data-tone="positive"],
.mi-overview-grid > article[data-tone="positive"] {
  border-color: rgba(79, 115, 117, 0.28) !important;
}

.mi-overview-card[data-tone="warn"],
.settings-overview-grid article[data-tone="warn"],
.mi-overview-grid > article[data-tone="warn"] {
  border-color: rgba(184, 131, 64, 0.34) !important;
}

.mi-overview-card[data-tone="danger"],
.settings-overview-grid article[data-tone="danger"],
.mi-overview-grid > article[data-tone="danger"] {
  border-color: rgba(177, 43, 43, 0.36) !important;
}

.mi-overview-card > svg,
.settings-overview-grid article > svg,
.mi-overview-grid > article > svg {
  grid-area: icon !important;
  width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--mi-color-brand-primary) !important;
  align-self: start;
  justify-self: end;
}

.mi-overview-card > span,
.settings-overview-grid article > span,
.mi-overview-grid > article > span {
  grid-area: title !important;
  align-self: start;
  color: var(--mi-color-ink-soft) !important;
  font-size: var(--mi-text-caption, 12px) !important;
  font-weight: 600 !important;
}

.mi-overview-card > strong,
.settings-overview-grid article > strong,
.mi-overview-grid > article > strong {
  grid-area: value !important;
  align-self: start;
  color: var(--mi-color-ink) !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
  line-height: 1.2 !important;
}

.mi-overview-card > small,
.settings-overview-grid article > small,
.mi-overview-grid > article > small {
  grid-area: helper !important;
  margin-top: 2px;
  color: var(--mi-color-ink-soft) !important;
  font-size: var(--mi-text-meta, 12px) !important;
  line-height: 1.4;
}

.mi-overview-card > button,
.settings-overview-grid article > button,
.mi-overview-grid > article > button {
  grid-area: action !important;
  justify-self: start !important;
  align-self: end;
  margin-top: 6px !important;
}

.mi-overview-card[data-tone="positive"] > strong,
.settings-overview-grid article[data-tone="positive"] > strong,
.mi-overview-grid > article[data-tone="positive"] > strong {
  color: var(--mi-color-brand-deep) !important;
}

.mi-overview-card[data-tone="warn"] > strong,
.settings-overview-grid article[data-tone="warn"] > strong,
.mi-overview-grid > article[data-tone="warn"] > strong {
  color: #8b4f12 !important;
}

.mi-overview-card[data-tone="danger"] > strong,
.settings-overview-grid article[data-tone="danger"] > strong,
.mi-overview-grid > article[data-tone="danger"] > strong {
  color: #b12b2b !important;
}

.mi-overview-card[data-tone="neutral"] > strong,
.settings-overview-grid article[data-tone="neutral"] > strong,
.mi-overview-grid > article[data-tone="neutral"] > strong {
  color: var(--mi-color-ink-soft) !important;
}

.mi-overview-card[data-tone="neutral"] > svg,
.settings-overview-grid article[data-tone="neutral"] > svg,
.mi-overview-grid > article[data-tone="neutral"] > svg {
  color: #8a95a0 !important;
}

:root[data-theme="dark"] .mi-panel {
  border-color: var(--mi-color-line, var(--line));
  background: var(--mi-bg-panel, var(--panel));
  box-shadow: none;
}

:root[data-theme="dark"] .mi-metric {
  background: var(--mi-bg-panel, var(--panel));
  border-color: var(--mi-color-line, var(--line));
}

:root[data-theme="dark"] .mi-overview-card,
:root[data-theme="dark"] .settings-overview-grid article,
:root[data-theme="dark"] .mi-overview-grid > article {
  background: linear-gradient(180deg, rgba(22, 30, 34, 0.95) 0%, rgba(18, 25, 29, 0.95) 100%) !important;
  border-color: rgba(143, 186, 176, 0.22) !important;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.36),
    0 6px 18px rgba(0, 0, 0, 0.32) !important;
}

:root[data-theme="dark"] .mi-overview-card > span,
:root[data-theme="dark"] .mi-overview-card > small,
:root[data-theme="dark"] .settings-overview-grid article > span,
:root[data-theme="dark"] .settings-overview-grid article > small,
:root[data-theme="dark"] .mi-overview-grid > article > span,
:root[data-theme="dark"] .mi-overview-grid > article > small {
  color: #a7b9b6 !important;
}

:root[data-theme="dark"] .mi-overview-card[data-tone="positive"],
:root[data-theme="dark"] .settings-overview-grid article[data-tone="positive"],
:root[data-theme="dark"] .mi-overview-grid > article[data-tone="positive"] {
  border-color: rgba(143, 186, 176, 0.4) !important;
}

:root[data-theme="dark"] .mi-overview-card[data-tone="warn"],
:root[data-theme="dark"] .settings-overview-grid article[data-tone="warn"],
:root[data-theme="dark"] .mi-overview-grid > article[data-tone="warn"] {
  border-color: rgba(193, 156, 112, 0.32) !important;
}

:root[data-theme="dark"] .mi-overview-card[data-tone="danger"],
:root[data-theme="dark"] .settings-overview-grid article[data-tone="danger"],
:root[data-theme="dark"] .mi-overview-grid > article[data-tone="danger"] {
  border-color: rgba(201, 117, 117, 0.36) !important;
}

:root[data-theme="dark"] .mi-panel {
  border-color: var(--line);
  background: var(--panel);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32);
}

:root[data-theme="dark"] .mi-metric {
  border-color: var(--line);
  background: var(--panel);
}

@media (max-width: 1180px) {
  .mi-overview-grid,
  .settings-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .mi-overview-grid,
  .settings-overview-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.mi-feature-tabs {
  display: flex;
  align-items: center;
  gap: 30px;
  min-width: 0;
  padding: 0 14px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: color-mix(in srgb, var(--mi-color-primary-soft) 46%, transparent);
  box-shadow: none;
  scrollbar-width: none;
}

.mi-feature-tabs::-webkit-scrollbar {
  display: none;
}

.mi-feature-tabs a {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 7px;
  min-height: 48px;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--mi-color-ink-soft);
  text-decoration: none;
  box-shadow: none;
  transition: color 160ms ease;
}

.mi-feature-tabs a::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--mi-color-brand-primary);
  content: "";
  opacity: 0;
  transform: scaleX(0.35);
  transition: opacity 160ms ease, transform 160ms ease;
}

.mi-feature-tabs a > svg {
  width: 18px;
  height: 18px;
  color: currentColor;
}

.mi-feature-tabs a span {
  display: block;
}

.mi-feature-tabs a strong {
  color: inherit;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
}

.mi-feature-tabs a small {
  display: none;
}

.mi-feature-tabs a.is-active,
.mi-feature-tabs a[aria-current="page"] {
  border: 0;
  background: transparent;
  color: var(--mi-color-brand-deep);
  box-shadow: none;
}

.mi-feature-tabs a.is-active::after,
.mi-feature-tabs a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.mi-feature-tabs a.is-active strong,
.mi-feature-tabs a[aria-current="page"] strong {
  color: var(--mi-color-brand-deep);
  font-weight: 700;
}

.mi-feature-tabs a:not(.is-active):not([aria-current="page"]) {
  border: 0;
  background: transparent;
}

.mi-feature-tabs a:not(.is-active):not([aria-current="page"]):hover {
  border: 0;
  background: transparent;
  color: var(--mi-color-ink);
}

.mi-feature-tabs a:focus-visible {
  outline: 2px solid var(--mi-color-focus-line);
  outline-offset: 3px;
}

:root[data-theme="dark"] .mi-feature-tabs {
  border-color: var(--line);
  background: color-mix(in srgb, var(--mi-color-primary-soft) 46%, transparent);
  box-shadow: none;
}

:root[data-theme="dark"] .mi-feature-tabs a:not(.is-active):not([aria-current="page"]) {
  color: var(--mi-color-ink-soft);
  border: 0;
  background: transparent;
}

:root[data-theme="dark"] .mi-feature-tabs a:not(.is-active):not([aria-current="page"]):hover {
  border: 0;
  background: transparent;
  color: var(--mi-color-ink);
}

:root[data-theme="dark"] .mi-feature-tabs a.is-active,
:root[data-theme="dark"] .mi-feature-tabs a[aria-current="page"] {
  color: var(--mi-color-brand-primary);
  border: 0;
  background: transparent;
  box-shadow: none;
}

:root[data-theme="dark"] .mi-feature-tabs a.is-active strong,
:root[data-theme="dark"] .mi-feature-tabs a[aria-current="page"] strong {
  color: var(--mi-color-brand-primary);
}

/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.5.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.5.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./styles/shell.css ***!
  \******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* Phase 2: redesigned app shell */
.mi-shell-root {
  min-height: 100vh;
  background: var(--mi-bg-canvas, var(--bg));
}

.mi-shell-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.mi-shell-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.mi-shell-brand strong {
  font-size: 18px;
  color: var(--mi-text-primary, var(--text));
}

.mi-shell-user {
  font-size: 12px;
  color: var(--mi-text-secondary, var(--muted));
}

.mi-shell-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mi-shell-frame {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: calc(100vh - 59px);
}

.mi-shell-sidebar {
  padding: 18px 12px;
  border-right: 1px solid var(--line);
  background: var(--mi-bg-panel-soft, var(--panel-soft));
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mi-shell-nav-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--mi-text-secondary, var(--muted));
  padding: 0 8px;
}

.mi-shell-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mi-shell-nav a {
  display: block;
  border-radius: 10px;
  border: 1px solid transparent;
  color: var(--mi-text-primary, var(--text));
  text-decoration: none;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
}

.mi-shell-nav a:hover {
  background: var(--panel);
  border-color: var(--line);
}

.mi-shell-nav a.active {
  background: var(--mi-color-primary-soft, var(--selection-bg));
  border-color: var(--mi-color-selection-border, var(--selection-line));
  color: var(--mi-color-primary, var(--primary));
}

.mi-shell-sidebar-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  background: var(--panel);
}

.mi-shell-sidebar-footer span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}

.mi-shell-sidebar-footer code {
  font-size: 11px;
  color: var(--text);
  word-break: break-all;
}

.mi-shell-content {
  min-width: 0;
}

/* Idle must NOT set transform — even translateY(0) creates a containing block
 * that breaks position:fixed dialogs rendered inside page content. */
.mi-soft-transition {
  opacity: 1;
}

.mi-soft-transition.is-page {
  transition:
    opacity 360ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 360ms cubic-bezier(0.16, 1, 0.3, 1);
}

.mi-soft-transition.is-page.is-exit {
  opacity: 0;
  transform: translateY(-10px);
  will-change: opacity, transform;
  transition-duration: 200ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.mi-soft-transition.is-page.is-enter {
  opacity: 0;
  transform: translateY(16px);
  will-change: opacity, transform;
  transition: none;
}

.mi-soft-transition.is-tab {
  min-width: 0;
  transition:
    opacity 220ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.mi-soft-transition.is-tab.is-exit {
  opacity: 0;
  transform: translateY(-4px);
  will-change: opacity, transform;
  transition-duration: 120ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.mi-soft-transition.is-tab.is-enter {
  opacity: 0;
  transform: translateY(8px);
  will-change: opacity, transform;
  transition: none;
}

.mi-soft-transition.is-idle {
  opacity: 1;
  transform: none;
  will-change: auto;
}

.mi-tab-panel {
  min-width: 0;
}

@media (prefers-reduced-motion: reduce) {
  .mi-soft-transition,
  .mi-soft-transition.is-exit,
  .mi-soft-transition.is-enter,
  .mi-soft-transition.is-idle {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
}

.mi-shell-content main {
  max-width: none;
  margin: 0;
  padding: 16px;
}

.mi-shell-menu-toggle {
  display: none;
}

.mi-shell-overlay {
  display: none;
}

.mi-mail-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgb(15 23 42 / 48%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1250;
  padding: 24px;
  overflow: auto;
  overscroll-behavior: contain;
}

.mi-mail-modal {
  position: relative;
  width: min(1040px, 94vw);
  max-height: min(calc(100vh - 48px), calc(100dvh - 48px));
  margin: auto;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--mi-bg-panel, #fff);
  border: 1px solid var(--mi-color-line, #e6e8eb);
  border-radius: 10px;
  padding: 0;
  box-shadow: 0 18px 40px rgb(0 0 0 / 20%);
}

/* Shared compact typography for dialogs rendered outside page-level type scopes. */
.mi-dialog-typography {
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 13px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

.mi-dialog-typography *,
.mi-dialog-typography *::before,
.mi-dialog-typography *::after {
  box-sizing: border-box;
}

.mi-dialog-typography :where(button, input, select, textarea) {
  max-width: 100%;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.35;
}

.mi-dialog-typography :where(button, select, input:not([type="checkbox"]):not([type="radio"])) {
  min-height: 32px;
}

.mi-dialog-typography :where(textarea) {
  min-height: 72px;
}

.mi-dialog-typography :where(h1, h2, h3, h4, p) {
  overflow-wrap: anywhere;
}

.mi-dialog-typography :where(h1, h2) {
  margin: 0;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.mi-dialog-typography :where(h3) {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

.mi-dialog-typography :where(h4) {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
}

.mi-dialog-typography :where(p, li, dt, dd, label, summary) {
  font-size: 12.5px;
}

.mi-dialog-typography :where(small, time, .text-muted) {
  font-size: 11px;
  line-height: 1.45;
}

.mi-dialog-typography :where(ul, ol) {
  max-width: 100%;
}

.mi-dialog-typography :where(table) {
  min-width: 0;
  font-size: 11.5px;
}

.mi-dialog-typography :where(th, td) {
  padding: 7px 8px;
  font-size: inherit;
  overflow-wrap: anywhere;
}

.mi-dialog-typography :where(code, pre) {
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.55;
  -moz-tab-size: 2;
       tab-size: 2;
}

.mi-dialog-typography :where(code) {
  overflow-wrap: anywhere;
}

.mi-dialog-typography :where(details) {
  min-width: 0;
}

.mi-dialog-typography :where(summary) {
  cursor: pointer;
  font-weight: 700;
}

.mi-dialog-typography :where(button, a, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--mi-color-focus-line, var(--primary));
  outline-offset: 2px;
}

.mi-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 700px) {
  .mi-mail-modal-backdrop {
    align-items: stretch;
    padding: 8px;
  }

  .mi-mail-modal {
    width: 100%;
    max-height: calc(100dvh - 16px);
    border-radius: 9px;
  }

  .mi-dialog-typography :where(button) {
    min-height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mi-dialog-typography,
  .mi-dialog-typography * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.mi-mail-modal-head.mi-modal-head-with-close,
.mi-modal-head-with-close {
  position: relative;
  display: flex;
  align-items: center;
  padding-right: 44px;
}

.mi-mail-modal.selection-forward-dialog-modal {
  width: min(400px, 92vw);
  max-height: min(72vh, 760px);
}

.mi-mail-modal.selection-export-dialog-modal {
  padding: 18px 20px;
}

.mi-mail-modal.selection-export-dialog-modal .mi-mail-modal-head {
  padding: 0;
}

.mi-mail-modal.selection-export-dialog-modal .selection-export-dialog-head {
  margin-bottom: 16px;
}

.mi-mail-modal .mail-body-preview {
  max-height: none;
}

.mi-mail-modal .mail-body-html {
  min-height: 420px;
  height: 420px;
}

.mi-confirm-modal {
  width: min(440px, 92vw);
  max-height: none;
  padding: 16px;
}

.mi-confirm-modal-message {
  margin: 10px 0 0;
  color: var(--mi-color-ink);
  font-size: 12.5px;
  line-height: 1.5;
}

.mi-confirm-modal-actions {
  margin-top: 16px;
  justify-content: flex-end;
  gap: 8px;
}

.mi-confirm-modal .button-secondary,
.mi-confirm-modal .button-danger {
  min-height: 32px;
  font-size: 12px;
}

.mi-confirm-delete-button {
  min-width: 88px;
}

.download-selection-modal {
  width: min(560px, 92vw);
  padding: 0;
  overflow: hidden;
}

.download-selection-modal .download-selection-modal-head {
  position: relative;
  align-items: flex-start;
  padding-right: 40px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid #e8edf2;
  margin-bottom: 0;
}

.download-selection-close {
  position: absolute;
  top: 4px;
  right: 4px;
}

.download-selection-modal .download-selection-modal-message {
  margin: 0;
  padding: 12px 16px 0;
}

.download-selection-options {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  padding: 12px 16px 4px;
}

.download-selection-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  background: #f8fbff;
}

.download-selection-item input[type="checkbox"] {
  margin-top: 2px;
}

.download-selection-item-text {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
  min-width: 0;
}

.download-selection-item-text b {
  font-size: 13px;
  color: #1e293b;
  word-break: break-all;
}

.download-selection-item-text small {
  font-size: 11.5px;
  color: var(--text-muted);
  word-break: break-all;
}

.download-selection-attachments {
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}

.download-selection-attachments-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.download-selection-attachments-head strong {
  font-size: 13px;
  color: #334155;
}

.download-selection-attachments-head .button-secondary {
  min-height: 28px;
  font-size: 11.5px;
  padding: 5px 10px;
}

.download-selection-empty {
  margin: 0;
  padding: 8px 10px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
}

.download-selection-modal .mi-confirm-modal-actions {
  padding: 12px 16px 16px;
  margin-top: 8px;
  border-top: 1px solid #e8edf2;
}

/* Phase 2/3 shell alignment with new-design */
.demo-app {
  display: block;
  min-height: 100vh;
  background: linear-gradient(145deg, #f1efed 0%, var(--mi-color-brand-mist) 46%, #edf2f1 100%);
}

.platinum-shell {
  display: grid;
  grid-template-columns: var(--mi-sidebar-width, 276px) minmax(0, 1fr);
  min-height: 100vh;
  width: 100%;
  background: #f7f8fa;
}

.demo-sidebar {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100vh;
  padding: 18px 12px;
  border-right: 1px solid #dae0e8;
  background: linear-gradient(180deg, #ffffff, #f7f9ff);
  z-index: 20;
  overflow: hidden;
}

.brand-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 32px 8px 8px;
  position: relative;
}

.brand-logo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
}

.brand-logo-dark {
  display: none;
}

:root[data-theme="dark"] .brand-logo-light {
  display: none;
}

:root[data-theme="dark"] .brand-logo-dark {
  display: block;
}

.sidebar-collapse-toggle {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dae0e8;
  border-radius: 8px;
  background: #fff;
  color: #4f5862;
  line-height: 1;
  padding: 0;
  text-align: center;
  box-shadow: 0 1px 2px rgb(15 23 42 / 6%);
  transition:
    background-color 140ms ease,
    color 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    transform 120ms ease;
}

.sidebar-collapse-toggle svg {
  transition: transform 140ms ease;
}

.sidebar-collapse-toggle:hover {
  background: #f4f6f9;
  color: var(--mi-color-brand-deep);
  border-color: #cfd9e6;
  box-shadow: 0 4px 10px rgb(15 23 42 / 10%);
}

.sidebar-collapse-toggle:hover svg {
  transform: translateX(1px);
}

.demo-app.is-sidebar-collapsed .sidebar-collapse-toggle:hover svg {
  transform: translateX(-1px);
}

.sidebar-collapse-toggle:active {
  transform: scale(0.96);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 2px;
}

.sidebar-nav-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-group-label {
  padding: 6px 10px 2px;
  font-size: 11px;
  font-weight: 600;
  color: #9098a1;
  letter-spacing: 0.02em;
}

.nav-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  grid-gap: 10px;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #5f6670;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  position: relative;
}

.nav-item:hover,
.nav-item.is-active {
  border-color: rgb(79 115 117 / 26%);
  background: rgb(79 115 117 / 8%);
  box-shadow: 0 4px 10px rgb(80 102 150 / 9%);
}

.nav-item.is-active {
  border-color: rgb(79 115 117 / 42%);
  background: rgb(79 115 117 / 14%);
  box-shadow:
    inset 3px 0 0 var(--mi-color-brand-primary),
    0 4px 12px rgb(80 102 150 / 10%);
}

.nav-item[data-section-start="true"]::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 10px;
  right: 10px;
  height: 1px;
  background: rgb(31 35 40 / 10%);
}

.nav-icon {
  color: #6f7c94;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.nav-item.is-active .nav-icon {
  color: var(--mi-color-primary, var(--mi-color-brand-primary));
}

.nav-item strong,
.nav-item small {
  display: block;
}

.nav-item strong {
  color: inherit;
  font-size: 13.5px;
  font-weight: 500;
}

.nav-item.is-active strong {
  color: var(--mi-color-primary, #1f3a34);
  font-weight: 600;
}

.nav-item small {
  display: none;
}

.sidebar-footer {
  margin-top: 0;
  padding: 12px 14px;
  border: 1px solid rgb(255 255 255 / 90%);
  border-radius: 14px;
  background: #fff;
}

.mini-label {
  color: var(--mi-color-primary, var(--mi-color-brand-primary));
  font-size: 11px;
  font-weight: 900;
}

.sidebar-footer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sidebar-footer code {
  display: block;
  margin-top: 6px;
  color: var(--mi-color-ink);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.version-open-button {
  margin-top: 0;
  padding: 0;
  border: 1px solid #d9e2e9;
  border-radius: 999px;
  background: #f5f8fb;
  cursor: pointer;
  text-align: left;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    color 140ms ease;
}

.version-open-button:hover {
  border-color: #bccad5;
  background: #edf3f8;
}

.version-open-text {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 3px 10px;
  color: #2e3e4d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.sidebar-footer-actions {
  margin-top: 8px;
  justify-content: stretch;
}

.sidebar-logout-button {
  background: var(--mi-color-brand-deep);
  border: 1px solid var(--mi-color-brand-deep);
  color: #fff;
  width: 100%;
}

.sidebar-logout-button:hover {
  background: var(--mi-color-brand-deep);
  border-color: var(--mi-color-brand-deep);
}

.mail-main {
  min-width: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.version-update-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid #cfd8df;
  border-radius: 10px;
  background: #f4f8fb;
  color: #26323d;
  font-size: 13px;
  font-weight: 700;
}

.mi-release-notes-modal {
  width: min(760px, 94vw);
  padding: 24px;
}

.release-notes-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.release-notes-head h2 {
  margin: 0;
  font-size: 19px;
}

.release-notes-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 14px;
  color: #4f5965;
  font-size: 11px;
}

.release-notes-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid #d8e1e8;
  border-radius: 999px;
  background: #f6f9fc;
}

.release-notes-error {
  color: #a13030;
  font-weight: 700;
}

.release-notes-lookup {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.release-notes-version-input {
  flex: 1 1 220px;
  min-width: 220px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #cfd8df;
  border-radius: 8px;
  background: #fff;
  color: var(--mi-color-ink);
  font-size: 12px;
}

.release-notes-version-select {
  flex: 0 0 240px;
  max-width: 100%;
}

.release-notes-inline-loading {
  color: #5e7081;
  font-size: 11px;
  font-weight: 700;
}

.release-notes-version-input:focus {
  outline: none;
  border-color: #7a9eb3;
  box-shadow: 0 0 0 3px rgb(122 158 179 / 20%);
}

.release-notes-body {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
}

.release-notes-section {
  border: 1px solid #dbe3ea;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fbfdff;
}

.release-notes-section h3 {
  margin: 0 0 10px;
  font-size: 13px;
}

.release-notes-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  grid-gap: 6px;
  gap: 6px;
}

.release-notes-highlights li {
  color: var(--mi-color-ink);
  line-height: 1.45;
  font-size: 13px;
}

.release-notes-changes {
  padding-left: 0;
  list-style: none;
}

.release-notes-change-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  grid-gap: 8px;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #e1e8ee;
  border-radius: 10px;
  background: #fff;
}

.release-notes-type-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef4f8;
  color: #314253;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.release-notes-change-text {
  min-width: 0;
  color: var(--mi-color-ink);
  line-height: 1.4;
  font-size: 13px;
}

.release-notes-commit {
  color: #5c6e7f;
  font-size: 11px;
}

.release-notes-empty {
  margin: 0;
  color: #6b7a88;
  font-size: 12px;
}

.mail-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #dde3e8;
  border-radius: 0;
  background: #fff;
  margin: 0;
}

.page-identity {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  width: 100%;
  margin-left: 0;
  padding-left: 24px;
}

.page-crumb {
  font-size: 12px;
  color: #9098a1;
  font-weight: 500;
  line-height: 1.2;
}

.page-identity h1 {
  margin: 0;
  color: var(--mi-color-ink);
  font-size: 19px;
  line-height: 1.15;
  font-weight: 700;
}

.topbar-user-menu {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  margin-right: 15px;
}

.topbar-user-trigger {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  border-radius: 999px;
}

.topbar-user-trigger:hover,
.topbar-user-trigger:focus-visible,
.topbar-user-trigger:active {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.topbar-help,
.topbar-notif,
.topbar-theme {
  position: relative;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgb(31 35 40 / 10%);
  border-radius: 12px;
  color: var(--mi-color-ink-soft);
}

.topbar-help:hover,
.topbar-notif:hover,
.topbar-theme:hover {
  background: rgb(79 115 117 / 6%);
  color: var(--mi-color-ink);
}

.topbar-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #b12b2b;
  display: block;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border: 1px solid rgb(31 35 40 / 8%);
  border-radius: 999px;
  transition: border-color 140ms ease;
}

.topbar-user:hover,
.topbar-user-trigger:hover .topbar-user,
.topbar-user-trigger[aria-expanded="true"] .topbar-user,
.topbar-user-trigger:focus-visible .topbar-user {
  border-color: rgb(31 35 40 / 42%) !important;
  background: transparent !important;
}

.topbar-user-caret {
  color: #8a95a0;
}

.topbar-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--mi-color-brand-primary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.topbar-user-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.topbar-user-meta strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--mi-color-ink);
}

.topbar-user-meta small {
  font-size: 11px;
  color: var(--mi-color-ink-soft);
}

.topbar-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 172px;
  display: grid;
  grid-gap: 4px;
  gap: 4px;
  padding: 8px;
  border: 1px solid rgba(31, 35, 40, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 32px rgba(15, 23, 32, 0.16);
  z-index: 80;
}

.topbar-user-dropdown button {
  border: 1px solid transparent;
  border-radius: 8px;
  min-height: 34px;
  padding: 0 10px;
  text-align: left;
  background: transparent;
  color: var(--mi-color-ink);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.topbar-user-dropdown button:hover {
  border-color: rgba(79, 115, 117, 0.25);
  background: transparent;
  color: var(--mi-color-ink);
}

.profile-password-dialog-modal {
  width: min(520px, 100%);
}

.profile-password-dialog-head {
  position: relative;
  padding-right: 52px;
}

.profile-password-dialog-head h2 {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
}

.profile-password-dialog-head p {
  margin: 4px 0 0;
  color: var(--mi-color-ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.profile-confirm-dialog-head h2 {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
}

.profile-confirm-dialog-head p {
  margin: 4px 0 0;
  color: var(--mi-color-ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.profile-password-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-password-dialog-body {
  padding: 0 16px 16px;
}

.profile-password-actions {
  justify-content: flex-end;
}

.profile-confirm-dialog-modal {
  width: min(420px, 100%);
}

.profile-confirm-dialog-body {
  padding: 0 16px 16px;
}

.profile-confirm-actions {
  justify-content: flex-end;
}

.mobile-only,
.sidebar-scrim {
  display: none;
}

.demo-app.is-sidebar-collapsed .platinum-shell {
  --mi-sidebar-width: 64px;
}

.demo-app.is-sidebar-collapsed .sidebar-group-label,
.demo-app.is-sidebar-collapsed .nav-item > span:last-child,
.demo-app.is-sidebar-collapsed .sidebar-footer {
  display: none;
}

.demo-app.is-sidebar-collapsed .nav-item {
  grid-template-columns: 1fr;
  justify-items: center;
}

.demo-app.is-sidebar-collapsed .brand-lockup {
  flex-direction: column;
  padding: 0 0 8px;
  align-items: center;
}

.demo-app.is-sidebar-collapsed .brand-logo {
  width: 44px;
  max-width: 44px;
  height: auto;
}

.demo-app.is-sidebar-collapsed .sidebar-collapse-toggle {
  position: static;
}

@media (max-width: 1180px) {
  .platinum-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .demo-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(88vw, 300px);
    transform: translateX(-100%);
    transition: transform 180ms ease;
    box-shadow: 16px 0 30px rgb(0 0 0 / 18%);
    z-index: 50;
  }

  .demo-app.is-sidebar-open .demo-sidebar {
    transform: translateX(0);
  }

  .demo-app.is-sidebar-open .sidebar-scrim {
    position: fixed;
    inset: 0;
    display: block;
    border: 0;
    background: rgb(15 23 42 / 45%);
    z-index: 40;
  }

  .mobile-only {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .page-identity {
    padding-left: 0;
  }
}

/* Responsive shell (moved from mail.css) */
@media (max-width: 1180px){
.mi-shell-frame {
    grid-template-columns: minmax(0, 1fr);
  }
.mi-shell-sidebar {
    position: fixed;
    top: 59px;
    left: 0;
    bottom: 0;
    width: min(88vw, 300px);
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 180ms ease;
    box-shadow: 16px 0 30px rgb(0 0 0 / 18%);
  }
.mi-shell-sidebar.open {
    transform: translateX(0);
  }
.mi-shell-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
.mi-shell-overlay {
    position: fixed;
    inset: 59px 0 0 0;
    z-index: 40;
    display: block;
    border: 0;
    background: rgb(15 23 42 / 45%);
  }
}

/*!*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.5.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.5.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./styles/shared-auth-settings.css ***!
  \*********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* Shared auth/settings chrome used across multiple routes.
 * Kept global because settings tabs + change-password + MFA forms need these.
 */

.settings-section-button.is-ai-added svg {
  color: #7c3aed !important;
}

.settings-section-button.is-ai-added.is-active {
  background: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

.settings-section-ai-tag {
  display: inline-flex;
  margin-left: 6px;
  padding: 0.5px 6px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 800;
  background: #f3edfc;
  color: #7c3aed;
  vertical-align: middle;
}

:root[data-theme="dark"] .settings-section-ai-tag {
  background: rgba(76, 29, 149, 0.28);
  color: #d8c7ff;
}

.login-page {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
}

.login-card {
  width: min(100%, 440px);
}

.password-card {
  width: min(100%, 520px);
}

.login-card h1 {
  margin: 0;
  font-size: 20px;
}

.login-card .text-muted {
  font-size: 12px;
}

.auth-form .form-field span {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.auth-form input,
.auth-form button {
  font-size: 12px;
}

/*!*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.5.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.5.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./styles/pages/mail-preview.css ***!
  \*******************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* Shared mail preview / row chrome — safe for global load */


.advanced-saved-search-dialog-head .mail-reading-subject {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0;
}



.mail-list-panel,
.mail-detail-panel {
  padding: 12px;
  min-width: 0;
}



.mail-detail-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  margin-left: 6px;
  border: 1px solid var(--mi-color-cool-line, #d8dee6);
  border-radius: 14px;
  background: #ffffff;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  min-width: 0;
}



.mail-select-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
}



.mail-select-cell input[type="checkbox"] {
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  inline-size: 13px;
  block-size: 13px;
  min-inline-size: 13px;
  min-block-size: 13px;
  max-inline-size: 13px;
  max-block-size: 13px;
  aspect-ratio: 1 / 1;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  border: 1px solid #c7d0da;
  border-radius: 3px;
  background: #fff;
  display: inline-grid;
  place-items: center;
  position: relative;
  line-height: 0;
  vertical-align: middle;
  cursor: pointer;
  transition: border-color 0.14s ease, background-color 0.14s ease, box-shadow 0.14s ease;
}



.mail-select-cell input[type="checkbox"]::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 3px;
  border-left: 1.6px solid #fff;
  border-bottom: 1.6px solid #fff;
  transform: translate(-50%, -55%) rotate(-45deg) scale(0);
  transform-origin: 50% 50%;
  transition: transform 0.12s ease;
}



.mail-select-cell input[type="checkbox"]:hover {
  border-color: #93a4b4;
}



.mail-select-cell input[type="checkbox"]:checked {
  border-color: #5f7f95;
  background: #6f8fa6;
  box-shadow: 0 0 0 2px rgba(111, 143, 166, 0.12);
}



.mail-select-cell input[type="checkbox"]:checked::after {
  transform: translate(-50%, -55%) rotate(-45deg) scale(1);
}



.mail-select-cell input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(111, 143, 166, 0.25);
}



.sender-cell strong,
.subject-cell strong {
  color: var(--mi-color-ink);
  font-size: 12px;
  font-weight: 900;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}



.address-cell,
.date-cell,
.size-cell,
.sender-cell strong,
.classification-cell b,
.classification-cell small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}



.subject-cell {
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}



.subject-cell small {
  margin-top: 1px;
  color: var(--mi-color-ink-soft);
  line-height: 1.15;
  font-size: 10px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}



.subject-cell mark {
  border-radius: 10px;
  background: rgb(255 229 229 / 72%);
  color: var(--mi-color-danger);
  font-weight: 950;
}



.size-cell {
  font-size: 11px;
  font-weight: 800;
}



.direction-icon {
  position: relative;
  display: inline-flex;
  min-height: 18px;
  min-width: 18px;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  color: #1f3540;
  font-size: 13px;
  font-weight: 1000;
  line-height: 1;
}



.direction-icon.is-inbound {
  color: #0f5f99;
}



.direction-icon.is-outbound {
  color: #9a4a13;
}



.direction-icon.is-internal {
  color: #1d624f;
}



.direction-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  display: none;
  padding: 4px 6px;
  border-radius: 6px;
  background: rgb(15 23 42 / 92%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  z-index: 20;
}



.direction-icon:hover::after,
.direction-icon:focus-visible::after {
  display: block;
}



.attachment-cell {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--mi-color-primary, var(--mi-color-brand-primary));
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}



.attachment-cell.is-empty {
  color: #a8b3c7;
}



.attachment-cell b {
  display: inline-block;
  min-width: 0;
  color: inherit;
  font-size: 11px;
  font-weight: 900;
}



.classification-cell {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;
}



.classification-cell b {
  display: inline-block;
  min-width: 0;
  color: var(--mi-color-ink);
  font-size: 12px;
  font-weight: 900;
}



.classification-cell small {
  display: inline-block;
  min-width: 0;
  color: var(--mi-color-ink-soft);
  font-size: 11px;
  font-weight: 800;
}



.mail-reading-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef2f7;
}



.mail-reading-topline {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}



.mail-reading-eyebrow {
  font-size: 11px;
  font-weight: 700;
  color: #8a95a0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}



.mail-reading-subject {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 800;
  color: var(--mi-color-ink);
  line-height: 1.35;
}



.mail-reading-actions {
  display: flex;
  gap: 6px;
}



.mail-reading-actions button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #e1e7ee;
  background: #fff;
  color: var(--mi-color-ink);
}



.mail-reading-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}



.mail-reading-meta > div {
  display: grid;
  grid-template-columns: 84px 1fr;
  grid-gap: 8px;
  gap: 8px;
  align-items: start;
  font-size: 12px;
}



.mail-reading-meta > div.mi-mail-id-meta-row {
  align-items: center;
}



.mail-reading-meta dt {
  margin: 0;
  font-weight: 800;
  color: var(--mi-color-ink-soft);
  white-space: nowrap;
}



.mail-reading-meta dd {
  margin: 0;
  color: var(--mi-color-ink);
  font-weight: 600;
  word-break: break-all;
}



.mail-reading-meta > div.mi-mail-time-meta-row dd {
  white-space: nowrap;
  word-break: normal;
}



.mail-reading-body {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid #eef2f7;
  font-size: 13px;
  color: var(--mi-color-ink);
  line-height: 1.65;
}



.mail-reading-body p {
  margin: 0 0 10px;
}



.mi-mail-modal-head {
  padding: 14px 16px;
  border-bottom: 0;
  margin-bottom: 0;
}

.mi-modal-head-with-close .mail-preview-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  flex: none;
}



.mi-mail-modal-head > div {
  flex: 1 1;
  min-width: 0;
}



.mi-mail-modal-scroll {
  flex: 1 1;
  min-height: 0;
  overflow-y: auto;
}



.mi-mail-modal-meta {
  margin: 0;
  padding: 0 16px 10px;
}



.mi-mail-modal-tabs {
  margin: 0;
  justify-content: flex-start;
}



.mi-mail-modal-footer {
  margin-top: 0;
  padding: 10px 16px;
  border-top: 1px solid #e6e8eb;
  background: #fff;
  flex-shrink: 0;
}



.mi-mail-modal-footer .mail-reading-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}



.mi-mail-modal-footer .mail-reading-actions button {
  min-height: 32px;
  border-radius: 7px;
  border-color: #d7dade;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 1180px){


  .mail-list-panel,
  .mail-detail-panel {
    height: auto;
  }


  .mail-detail-panel {
    margin-left: 0;
    overflow-y: visible;
  }
}



.mail-list-panel,
.mail-detail-panel {
  border: 1px solid #e6e8eb;
  border-radius: 9px;
  box-shadow: none;
}



.mail-detail-panel {
  margin-left: 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}



.mail-detail-panel > .stack {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}



.party-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--mi-color-ink);
}



.sender-cell strong,
.subject-cell strong {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--mi-color-ink);
}



.subject-cell .subject-meta {
  font-size: 11px;
  color: #828a96;
  font-weight: 500;
}



.mail-row-tags {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}



.mail-row-tag {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid #d7dade;
  background: #fff;
  color: #5f6670;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
}



.mail-row-tag.is-warn {
  border-color: #e9cd86;
  background: #faeeda;
  color: #633806;
}



.mail-row-tag.is-danger {
  border-color: #e0a0a0;
  background: #fcebeb;
  color: #791f1f;
}



.classification-cell {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}



.category-badge {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid #d6dde6;
  background: #f7fafc;
  color: #31506a;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}



.category-badge.is-palette-0 {
  border-color: #d9e0e7;
  background: #f5f8fb;
  color: #3f5972;
}



.category-badge.is-palette-1 {
  border-color: #dcd9e8;
  background: #f8f6fc;
  color: #56507d;
}



.category-badge.is-palette-2 {
  border-color: #d8e2de;
  background: #f4faf7;
  color: #3f6760;
}



.category-badge.is-palette-3 {
  border-color: #e2ddd4;
  background: #fbf8f2;
  color: #6f6047;
}



.category-badge.is-palette-4 {
  border-color: #e2d9d9;
  background: #fbf5f5;
  color: #745555;
}



.category-badge.is-palette-5 {
  border-color: #d8dfe4;
  background: #f4f8fa;
  color: #476370;
}



.attachment-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #5b6572;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}



.attachment-inline svg {
  color: #7a8899;
}



.attachment-inline.is-empty {
  color: #96a0ad;
}



.pii-inline-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1.5px 7px;
  border-radius: 999px;
  background: #fcebeb;
  color: #791f1f;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}



.pii-inline-badge svg {
  flex-shrink: 0;
}



.dup-inline-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1.5px 7px;
  border-radius: 999px;
  background: #faeeda;
  color: #633806;
  font-size: 10.5px;
  font-weight: 700;
  white-space: nowrap;
}



.dup-inline-badge svg {
  flex-shrink: 0;
}



.direction-meta {
  font-size: 10.5px;
  color: #7a838f;
  line-height: 1.3;
  white-space: nowrap;
}



.attachment-cell {
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
}



.attachment-cell .attachment-count {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #4f5f72;
  font-size: 12px;
  font-weight: 700;
}



.attachment-cell .attachment-count svg {
  color: #7a8899;
}



.attachment-cell.is-empty {
  color: #a0a9b5;
}



.direction-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 21px;
  padding: 1px 7px;
  border-radius: 20px;
  border: 1px solid #d6dde5;
  font-size: 10.5px;
  font-weight: 600;
  background: #f3f5f7;
  color: #5d6671;
  white-space: nowrap;
}



.direction-pill.is-inbound {
  border-color: #d5dce5;
  background: #f5f7f9;
  color: #616b77;
}



.direction-pill.is-outbound {
  border-color: #d2dae4;
  background: #f2f5f8;
  color: #5a6471;
}



.direction-pill.is-internal {
  border-color: #d6dde5;
  background: #f3f5f7;
  color: #5d6671;
}



.mail-reading-head {
  padding: 14px 16px;
  border-bottom: 0;
}



.mail-reading-head > div {
  flex: 1 1;
  min-width: 0;
}



.mail-reading-eyebrow {
  font-size: 11.5px;
  text-transform: none;
  letter-spacing: 0;
  color: #9098a1;
}



.mail-preview-close {
  width: 22px;
  height: 22px;
  border: 1px solid #d7dade;
  border-radius: 5px;
  background: #fff;
  color: #4f5761;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}



.mail-preview-close svg {
  display: block;
  width: 12px;
  height: 12px;
  color: currentColor;
}



.mail-preview-close:hover {
  background: #fafafa;
  border-color: #c2c8ce;
}



.mail-reading-subject {
  margin-top: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: #2d3640;
  margin-bottom: 8px;
}



.mail-reading-status-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}



.mail-reading-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid #d7dade;
  background: #f4f6f8;
  color: #5f6670;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}



.mail-reading-status-badges .preview-header-badge {
  min-height: 20px;
  padding: 0 7px;
  font-size: 10.5px;
}



.mail-reading-status-badge.is-ok {
  border-color: #b9d9c3;
  background: #edf7f0;
  color: #2b6b42;
}



.mail-detail-meta-toggle-row {
  margin: 0 16px 10px;
  padding: 0 0 10px;
  border-bottom: 1px solid #e6e8eb;
}



.mail-reading-status-badge.is-warn {
  border-color: #ead39d;
  background: #fff8e8;
  color: #8b6520;
}



.mail-reading-status-badge.is-danger {
  border-color: #e3b5b5;
  background: #fff1f1;
  color: #a33f3f;
}



.mail-pii-detection-badge {
  gap: 4px;
}

.mail-bec-status-badge {
  gap: 4px;
}

.mail-bec-panel {
  margin: 0 16px 12px;
  padding: 12px 14px;
  border: 1px solid #ead39d;
  border-radius: 10px;
  background: #fffaf0;
}

.mail-bec-panel.is-high,
.mail-bec-panel.is-critical {
  border-color: #e3b5b5;
  background: #fff5f5;
}

.mail-bec-panel-toggle {
  display: flex;
  width: 100%;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 6px;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--text, #20252b) !important;
  text-align: left;
  transition: background-color 0.14s ease;
}

.mail-bec-panel-toggle:hover {
  border-color: transparent !important;
  background: color-mix(in srgb, var(--text, #20252b) 5%, transparent) !important;
  color: var(--text, #20252b) !important;
  box-shadow: none !important;
}

.mail-bec-panel-toggle:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--primary, #3978d4) 55%, transparent);
  outline-offset: 2px;
}

.mail-bec-panel-toggle-label {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.mail-bec-panel-toggle-label > svg {
  flex: 0 0 auto;
  color: var(--danger, #a33f3f);
}

.mail-bec-panel-toggle-label > span {
  display: grid;
  grid-gap: 1px;
  gap: 1px;
  min-width: 0;
}

.mail-bec-panel-toggle-label strong {
  font-size: 12.5px;
  line-height: 1.35;
}

.mail-bec-panel-toggle-label small {
  color: var(--muted, #5f6670);
  font-size: 10.5px;
  line-height: 1.35;
}

.mail-bec-panel-toggle-action {
  flex: 0 0 auto;
  color: var(--primary, #3978d4);
  font-size: 11px;
  font-weight: 700;
}

.mail-bec-panel-content {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid color-mix(in srgb, var(--danger, #a33f3f) 16%, transparent);
}

.mail-bec-panel-content > .mail-bec-disclaimer:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.mail-bec-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mail-bec-panel-head p {
  margin: 3px 0 0;
  color: #5f6670;
  font-size: 12px;
}

.mail-bec-panel-head > span {
  flex: 0 0 auto;
  color: #a33f3f;
  font-size: 18px;
  font-weight: 750;
}

.mail-bec-detection-list {
  display: grid;
  grid-gap: 7px;
  gap: 7px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.mail-bec-detection-list li {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
}

.mail-bec-detection-list strong {
  font-size: 12px;
}

.mail-bec-detection-list span,
.mail-bec-disclaimer {
  color: #5f6670;
  font-size: 11px;
  line-height: 1.45;
}

.mail-bec-disclaimer {
  margin: 10px 0 0;
  padding-top: 8px;
  border-top: 1px solid rgba(163, 63, 63, 0.16);
}



.mail-pii-highlight {
  padding: 0 2px;
  border-radius: 3px;
  background: #ffe08a;
  box-shadow: inset 0 -2px 0 #e4a11b;
  color: #2f2510;
  font: inherit;
}



.mail-reading-actions button {
  min-height: 28px;
  padding: 0 9px;
  border-radius: 6px;
  border-color: #d7dade;
  font-size: 11.5px;
  font-weight: 600;
}



.mail-reading-footer {
  padding: 10px 16px;
  border-top: 1px solid #e6e8eb;
  background: #fff;
  flex-shrink: 0;
}



.mail-reading-footer .mail-reading-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}



.mail-reading-footer .mail-reading-actions button {
  min-height: 32px;
  border-radius: 7px;
  border-color: #d7dade;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}



.mail-reading-meta {
  gap: 4px;
  padding: 0 16px 10px;
}



.mail-reading-meta > div {
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 4px 10px;
  font-size: 12.5px;
}



.mail-reading-meta dt {
  font-weight: 500;
  color: #9098a1;
  white-space: nowrap;
}



.mail-reading-meta dd {
  font-weight: 500;
  color: var(--mi-color-ink);
  word-break: break-all;
}



.mail-reading-meta > div.mi-mail-time-meta-row dd {
  white-space: nowrap;
  word-break: normal;
}



.mail-reading-body {
  margin-top: 0;
  padding-top: 14px;
  border-top: 0;
  font-size: 13px;
  line-height: 1.75;
  color: #5f6670;
}



.mail-body-section {
  gap: 8px;
  padding: 14px 16px 0;
}



.mail-body-head {
  align-items: center;
  justify-content: flex-start;
  margin: 0;
}



.mail-body-tabs {
  display: inline-flex;
  gap: 4px;
}



.mail-body-tabs .tab-button {
  min-height: 24px;
  border: 1px solid #d4dbe3;
  border-radius: 5px;
  background: #fff;
  color: #64707d;
  padding: 0 9px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.mail-body-tabs .tab-button:hover {
  border-color: #aebbc7;
  background: #f1f5f8;
  color: var(--mi-color-ink);
}

.mail-body-tabs .tab-button.active {
  border-color: var(--mi-color-brand-primary, #1f3a34);
  background: var(--mi-color-brand-primary, #1f3a34);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 12%);
}



.mail-preview-tabs .tab-button {
  min-width: 50px;
}

.mail-content-subtabs {
  margin-left: auto;
}



.mail-body-preview {
  margin: 0;
  padding: 10px;
  border: 0;
  border-radius: 7px;
  background: #fafafa;
  color: #5f6670;
  font-size: 11.5px;
  line-height: 1.7;
  max-height: none;
}



.mail-body-html {
  min-height: 300px;
  border: 1px solid #e6e8eb;
  border-radius: 7px;
  background: #fff;
}



.mail-body-empty {
  margin: 0;
  padding: 16px 12px;
  border: 1px dashed #d7dade;
  border-radius: 7px;
  color: #7b8591;
  font-size: 12px;
}



.mail-image-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}



.mail-image-list li {
  border: 1px solid #e6e8eb;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}



.mail-image-list img {
  display: block;
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  background: #f7f8f9;
}



.attachment-section {
  gap: 7px;
  padding: 10px 12px;
  border: 1px solid #e6e8eb;
  border-radius: 8px;
  background: #fff;
  margin: 12px 16px 14px;
}



.attachment-section strong {
  font-size: 12px;
  font-weight: 600;
  color: #5f6670;
}



.mail-attachment-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-gap: 6px;
  gap: 6px;
  align-content: start;
}



.mail-attachment-list li {
  font-size: 12.5px;
  color: var(--mi-color-ink);
  line-height: 1.5;
}



.mail-attachment-preview-layout {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  grid-gap: 10px;
  gap: 10px;
  align-items: start;
}



.mail-attachment-preview-layout.is-preview-collapsed {
  grid-template-columns: minmax(0, 1fr);
}



.mail-attachment-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid #dfe3e8;
  border-radius: 7px;
  background: #f8fafc;
  padding: 7px 8px;
  text-align: left;
  cursor: pointer;
}



.mail-attachment-item.is-active {
  border-color: #3b82f6;
  background: #eff6ff;
}



.mail-attachment-item-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  color: var(--mi-color-ink);
}



.mail-attachment-item-size {
  color: #6b7280;
  font-size: 11px;
  white-space: nowrap;
}



.mail-attachment-preview-panel {
  border: 1px solid #e6e8eb;
  border-radius: 8px;
  background: #fff;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}



.mail-attachment-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid #edf0f3;
}



.mail-attachment-preview-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}



.mail-attachment-preview-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}



.mail-attachment-preview-actions .button-secondary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}



.mail-attachment-preview-close-button {
  min-width: 30px;
  width: 30px;
  height: 28px;
  padding: 0;
  justify-content: center;
}



.mail-attachment-preview-image {
  display: block;
  max-width: 100%;
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  background: #f7f8f9;
  border-radius: 0 0 8px 8px;
}



.mail-attachment-preview-pdf {
  width: 100%;
  height: 360px;
  border: 0;
}



.mail-attachment-preview-text {
  margin: 0;
  border: 0;
  border-radius: 0;
  max-height: 360px;
}



.mail-attachment-office-table-wrap {
  padding: 10px;
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}



.mail-attachment-office-sheet-title {
  font-size: 12px;
  color: #4b5563;
}



.mail-attachment-office-table-scroll {
  overflow: auto;
  max-height: 360px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
}



.mail-attachment-office-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}



.mail-attachment-office-table th,
.mail-attachment-office-table td {
  border: 1px solid #e5e7eb;
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}



.mail-attachment-office-table th {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  background: #f8fafc;
  color: #1f2937;
  font-weight: 600;
  z-index: 1;
}



.mail-attachment-office-doc-wrap,
.mail-attachment-office-ppt-wrap {
  padding: 10px;
  display: grid;
  grid-gap: 8px;
  gap: 8px;
}



.mail-attachment-office-doc-meta {
  font-size: 12px;
  color: #4b5563;
}



.mail-attachment-office-doc-text {
  margin: 0;
  max-height: 360px;
}



.mail-attachment-office-ppt-list {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
}



.mail-attachment-office-ppt-slide {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  padding: 8px;
  display: grid;
  grid-gap: 6px;
  gap: 6px;
}



.mail-attachment-office-ppt-slide strong {
  font-size: 12px;
  color: #1f2937;
}



.mail-attachment-office-ppt-text {
  margin: 0;
  max-height: 180px;
}



.mail-attachment-expanded-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}



.mail-attachment-expanded-modal {
  width: min(1200px, 95vw);
  height: min(88vh, 920px);
  border: 1px solid var(--mi-color-line);
  border-radius: 10px;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}



.mail-attachment-expanded-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #e6e8eb;
}



.mail-attachment-expanded-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--mi-color-ink);
}



.mail-attachment-expanded-body {
  flex: 1 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f7f8f9;
  padding: 10px;
}



.mail-attachment-expanded-body.is-office {
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
}



.mail-attachment-expanded-body.is-office .mail-attachment-office-table-wrap,
.mail-attachment-expanded-body.is-office .mail-attachment-office-doc-wrap,
.mail-attachment-expanded-body.is-office .mail-attachment-office-ppt-wrap {
  width: 100%;
  height: 100%;
}



.mail-attachment-expanded-body.is-office .mail-attachment-office-table-scroll {
  max-height: none;
  height: 100%;
}



.mail-attachment-expanded-body.is-office .mail-attachment-office-doc-text {
  max-height: none;
  height: 100%;
}



.mail-attachment-expanded-body.is-office .mail-attachment-office-ppt-list {
  max-height: none;
  height: 100%;
}



.mail-attachment-expanded-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}



.mail-attachment-expanded-pdf {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}



.mail-attachment-expanded-text {
  width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
}

@media (max-width: 940px){

  .mail-attachment-preview-layout {
    grid-template-columns: 1fr;
  }
}



.mail-reading-body-scroll {
  flex: 1 1;
  min-height: 0;
  overflow-y: auto;
}

/* Portal-safe normalization for the shared mail and nested attachment dialogs. */
.mi-dialog-typography .mi-mail-modal {
  color: var(--text);
  background: var(--panel);
  border-color: var(--line);
}

.mi-dialog-typography .mi-mail-modal-head {
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--panel);
}

.mi-dialog-typography .mail-reading-eyebrow {
  color: var(--muted);
  font-size: 10.5px;
}

.mi-dialog-typography .mail-reading-subject {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.mi-dialog-typography .mail-preview-close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  min-height: 32px;
  border-color: var(--line-strong);
  background: var(--panel);
  color: var(--text);
}

.mi-dialog-typography .mi-mail-modal-scroll {
  overflow-x: hidden;
  overscroll-behavior: contain;
}

.mi-dialog-typography .mi-mail-modal-scroll > * {
  min-width: 0;
}

.mi-dialog-typography .mi-mail-modal-meta {
  padding: 10px 14px;
}

.mi-dialog-typography .mail-reading-meta > div {
  grid-template-columns: 82px minmax(0, 1fr);
  font-size: 12px;
}

.mi-dialog-typography .mail-reading-meta dt {
  color: var(--muted);
}

.mi-dialog-typography .mail-reading-meta dd {
  color: var(--text);
}

.mi-dialog-typography .mail-body-section {
  padding: 12px 14px 0;
}

.mi-dialog-typography .mail-body-tabs {
  max-width: 100%;
  flex-wrap: wrap;
}

.mi-dialog-typography .mail-body-tabs .tab-button {
  min-height: 30px;
  border-color: var(--line-strong);
  background: var(--panel);
  color: var(--muted);
  font-size: 11px;
}

.mi-dialog-typography .mail-body-tabs .tab-button.active,
.mi-dialog-typography .mail-body-tabs .tab-button.active:hover {
  border-color: var(--mi-color-brand-primary, #1f3a34) !important;
  background: var(--mi-color-brand-primary, #1f3a34) !important;
  color: #fff !important;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 12%) !important;
}

.mi-dialog-typography .mail-body-preview {
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 10.5px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.mi-dialog-typography .mail-body-html {
  width: 100%;
  max-width: 100%;
  border-color: var(--line);
  background: var(--panel);
}

.mi-dialog-typography .mail-body-empty {
  border-color: var(--line-strong);
  color: var(--muted);
  font-size: 11.5px;
}

.mi-dialog-typography .mail-bec-panel {
  border-color: color-mix(in srgb, var(--mi-color-warning) 40%, var(--line));
  background: color-mix(in srgb, var(--mi-color-warning) 7%, var(--panel));
}

.mi-dialog-typography .mail-bec-panel.is-high,
.mi-dialog-typography .mail-bec-panel.is-critical {
  border-color: color-mix(in srgb, var(--danger) 38%, var(--line));
  background: color-mix(in srgb, var(--danger) 6%, var(--panel));
}

.mi-dialog-typography .mail-bec-panel-head > span {
  color: var(--danger);
  font-size: 14px;
}

.mi-dialog-typography .mail-bec-panel-head p,
.mi-dialog-typography .mail-bec-detection-list span,
.mi-dialog-typography .mail-bec-disclaimer {
  color: var(--muted);
}

.mi-dialog-typography .attachment-section,
.mi-dialog-typography .mail-attachment-preview-panel,
.mi-dialog-typography .mail-attachment-office-table-scroll,
.mi-dialog-typography .mail-attachment-office-ppt-slide {
  border-color: var(--line);
  background: var(--panel);
}

.mi-dialog-typography .mail-attachment-item {
  border-color: var(--line);
  background: var(--panel-soft);
  color: var(--text);
}

.mi-dialog-typography .mail-attachment-item.is-active {
  border-color: var(--mi-color-focus-line);
  background: var(--selection-bg);
}

.mi-dialog-typography .mail-attachment-item-name,
.mi-dialog-typography .mail-attachment-expanded-head strong {
  color: var(--text);
  font-size: 12px;
}

.mi-dialog-typography .mail-attachment-item-size,
.mi-dialog-typography .mail-attachment-office-sheet-title,
.mi-dialog-typography .mail-attachment-office-doc-meta {
  color: var(--muted);
  font-size: 10.5px;
}

.mi-dialog-typography .mail-attachment-office-table {
  font-size: 11px;
}

.mi-dialog-typography .mail-attachment-office-table th,
.mi-dialog-typography .mail-attachment-office-table td {
  border-color: var(--line);
  color: var(--text);
}

.mi-dialog-typography .mail-attachment-office-table th {
  background: var(--panel-soft);
}

.mi-dialog-typography .mi-mail-modal-footer {
  padding: 9px 14px;
  border-color: var(--line);
  background: var(--panel);
}

.mail-attachment-expanded-backdrop {
  z-index: 1310;
  overflow: auto;
  overscroll-behavior: contain;
}

.mi-dialog-typography .mail-attachment-expanded-modal {
  color: var(--text);
  border-color: var(--line);
  background: var(--panel);
}

.mi-dialog-typography .mail-attachment-expanded-head {
  min-height: 48px;
  padding: 8px 12px;
  border-color: var(--line);
  background: var(--panel);
}

.mi-dialog-typography .mail-attachment-expanded-body {
  min-width: 0;
  overflow: auto;
  background: var(--panel-soft);
}

.mi-dialog-typography .mail-attachment-expanded-pdf {
  background: var(--panel);
}

@media (max-width: 700px) {
  .mi-dialog-typography .mi-mail-modal-head {
    padding: 10px 12px;
  }

  .mi-dialog-typography .mi-mail-modal-meta,
  .mi-dialog-typography .mail-body-section {
    padding-inline: 12px;
  }

  .mi-dialog-typography .mail-reading-meta > div {
    grid-template-columns: 1fr;
    gap: 1px;
  }

  .mi-dialog-typography .mail-content-subtabs {
    width: 100%;
    margin-left: 0;
  }

  .mi-dialog-typography .mail-body-tabs .tab-button {
    min-height: 36px;
  }

  .mi-dialog-typography .mail-bec-panel,
  .mi-dialog-typography .attachment-section {
    margin-inline: 12px;
  }

  .mi-dialog-typography .mail-bec-panel-head,
  .mi-dialog-typography .mail-attachment-preview-head {
    flex-direction: column;
  }

  .mi-dialog-typography .mail-attachment-preview-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .mi-dialog-typography .mail-attachment-preview-actions button {
    flex: 1 1 auto;
  }

  .mail-attachment-expanded-backdrop {
    align-items: stretch;
    padding: 8px;
  }

  .mail-attachment-expanded-modal {
    width: 100%;
    height: calc(100dvh - 16px);
    border-radius: 9px;
  }
}


/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.5.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.5.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./styles/shell.dark.css ***!
  \***********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* Shell dark theme harmonization */
:root[data-theme="dark"] .demo-app {
  background: linear-gradient(145deg, #0b1218 0%, #0f1720 46%, #0d141c 100%);
}

:root[data-theme="dark"] .platinum-shell {
  background: #0f1720;
}

:root[data-theme="dark"] .demo-sidebar {
  border-right-color: rgba(148, 163, 184, 0.22);
  background: linear-gradient(180deg, #111a24, #0f1822);
}

:root[data-theme="dark"] .sidebar-group-label {
  color: #8da0b2;
}

:root[data-theme="dark"] .sidebar-collapse-toggle {
  border-color: rgba(148, 163, 184, 0.28);
  background: #16212d;
  color: #c2ced9;
}

:root[data-theme="dark"] .sidebar-collapse-toggle:hover {
  background: #1c2a38;
  border-color: rgba(148, 163, 184, 0.4);
  color: #e3ebf3;
}

:root[data-theme="dark"] .sidebar-footer {
  border-color: rgba(148, 163, 184, 0.2);
  background: #131e29;
}

:root[data-theme="dark"] .version-open-button {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(17, 24, 39, 0.45);
}

:root[data-theme="dark"] .version-open-button:hover {
  border-color: rgba(148, 163, 184, 0.38);
  background: rgba(79, 115, 117, 0.18);
}

:root[data-theme="dark"] .version-open-text {
  color: #d7e2ed;
}

:root[data-theme="dark"] .version-update-banner {
  border-color: rgba(148, 163, 184, 0.26);
  background: rgba(17, 24, 39, 0.45);
  color: #d7e2ed;
}

:root[data-theme="dark"] .release-notes-meta {
  color: #b7c5d3;
}

:root[data-theme="dark"] .release-notes-meta-item {
  border-color: rgba(148, 163, 184, 0.26);
  background: rgba(17, 24, 39, 0.45);
}

:root[data-theme="dark"] .release-notes-version-input {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(17, 24, 39, 0.5);
  color: #d5e0eb;
}

:root[data-theme="dark"] .release-notes-version-input:focus {
  border-color: rgba(129, 168, 192, 0.7);
  box-shadow: 0 0 0 3px rgb(129 168 192 / 22%);
}

:root[data-theme="dark"] .release-notes-inline-loading {
  color: #9eb1c2;
}

:root[data-theme="dark"] .release-notes-section {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 32, 0.55);
}

:root[data-theme="dark"] .release-notes-section h3 {
  color: #dfe9f4;
}

:root[data-theme="dark"] .release-notes-highlights li,
:root[data-theme="dark"] .release-notes-change-text {
  color: #d5e0eb;
}

:root[data-theme="dark"] .release-notes-change-item {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(17, 24, 39, 0.5);
}

:root[data-theme="dark"] .release-notes-type-chip {
  background: rgba(79, 115, 117, 0.24);
  color: #d9e9ea;
}

:root[data-theme="dark"] .release-notes-commit {
  color: #a8b8c8;
}

:root[data-theme="dark"] .release-notes-empty {
  color: #9db0c1;
}

:root[data-theme="dark"] .nav-item[data-section-start="true"]::before {
  background: rgba(148, 163, 184, 0.24);
}

:root[data-theme="dark"] .mail-topbar {
  border-bottom-color: rgba(148, 163, 184, 0.2);
  background: rgba(13, 20, 29, 0.92);
}

:root[data-theme="dark"] .page-crumb {
  color: #9bb0c3;
}

:root[data-theme="dark"] .topbar-help,
:root[data-theme="dark"] .topbar-notif,
:root[data-theme="dark"] .topbar-theme {
  border-color: rgba(148, 163, 184, 0.26);
  color: #b7c5d3;
  background: rgba(17, 24, 39, 0.45);
}

:root[data-theme="dark"] .topbar-help:hover,
:root[data-theme="dark"] .topbar-notif:hover,
:root[data-theme="dark"] .topbar-theme:hover {
  border-color: rgba(148, 163, 184, 0.38);
  background: rgba(79, 115, 117, 0.2);
  color: #e5edf5;
}

:root[data-theme="dark"] .topbar-user {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(17, 24, 39, 0.35);
}

:root[data-theme="dark"] .topbar-user:hover,
:root[data-theme="dark"] .topbar-user-trigger:hover .topbar-user,
:root[data-theme="dark"] .topbar-user-trigger[aria-expanded="true"] .topbar-user,
:root[data-theme="dark"] .topbar-user-trigger:focus-visible .topbar-user {
  border-color: rgba(148, 163, 184, 0.62) !important;
  background: rgba(17, 24, 39, 0.35) !important;
}

:root[data-theme="dark"] .topbar-user-caret {
  color: #a9bccd;
}

:root[data-theme="dark"] .topbar-user-dropdown {
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(17, 24, 39, 0.96);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.42);
}

:root[data-theme="dark"] .topbar-user-dropdown button {
  color: #d7e4f1;
}

:root[data-theme="dark"] .topbar-user-dropdown button:hover {
  border-color: rgba(143, 186, 176, 0.36);
  background: rgba(79, 115, 117, 0.22);
}

:root[data-theme="dark"] .profile-password-dialog-head p {
  color: #adbed0;
}

:root[data-theme="dark"] .profile-confirm-dialog-head p {
  color: #adbed0;
}

:root[data-theme="dark"] .nav-item {
  border-color: rgba(148, 163, 184, 0.08);
  color: #b7c5d3;
}

:root[data-theme="dark"] .nav-item:hover {
  border-color: rgba(95, 143, 146, 0.28);
  background: rgba(95, 143, 146, 0.12);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
}

:root[data-theme="dark"] .nav-item.is-active {
  border-color: rgba(95, 143, 146, 0.44);
  background: rgba(95, 143, 146, 0.2);
  box-shadow:
    inset 3px 0 0 #6fa5a8,
    0 4px 12px rgba(0, 0, 0, 0.24);
}

:root[data-theme="dark"] .nav-item.is-active strong {
  color: #d6ecee;
}

:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .form-emphasis,
:root[data-theme="dark"] .table-card,
:root[data-theme="dark"] .table-emphasis {
  background: rgba(17, 24, 39, 0.72);
  border-color: rgba(148, 163, 184, 0.24);
}

:root[data-theme="dark"] .mfa-page .mfa-section {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(17, 24, 39, 0.78);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

:root[data-theme="dark"] .mfa-page .mfa-section > h2 {
  color: #e6eff9;
}

:root[data-theme="dark"] .mfa-page .mfa-section > .text-muted {
  color: #afc1d2;
}

:root[data-theme="dark"] .table-emphasis thead th {
  background: rgba(79, 115, 117, 0.16);
}

:root[data-theme="dark"] .table-emphasis tbody tr {
  border-top-color: rgba(148, 163, 184, 0.14);
}

:root[data-theme="dark"] .ops-error-list li {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(17, 24, 39, 0.52);
}

:root[data-theme="dark"] .mail-search-panel,
:root[data-theme="dark"] .mail-folder-pane,
:root[data-theme="dark"] .mail-content-pane,
:root[data-theme="dark"] .mail-list-panel,
:root[data-theme="dark"] .mail-detail-panel {
  border-color: rgba(148, 163, 184, 0.24) !important;
  background: rgba(17, 24, 39, 0.78) !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3) !important;
}

:root[data-theme="dark"] .mail-search-block-overlay {
  background: rgba(6, 10, 15, 0.44);
}

:root[data-theme="dark"] .mail-search-block-indicator {
  border-color: rgba(123, 163, 165, 0.48);
  background: rgba(13, 21, 33, 0.92);
  color: #e6eff7;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.42);
}

:root[data-theme="dark"] .mail-list-head {
  background: rgba(79, 115, 117, 0.16) !important;
  border-bottom-color: rgba(148, 163, 184, 0.22) !important;
}

:root[data-theme="dark"] .mail-list-pagination-row {
  background: color-mix(in srgb, rgba(17, 24, 39, 0.88) 88%, transparent);
  border-top-color: rgba(148, 163, 184, 0.22);
}

:root[data-theme="dark"] .mail-list-page-jump input {
  border-color: rgba(148, 163, 184, 0.32);
  background: rgba(17, 24, 39, 0.72);
  color: #d7e2ed;
}

:root[data-theme="dark"] .mail-list-row {
  border-bottom-color: rgba(148, 163, 184, 0.16) !important;
}

:root[data-theme="dark"] .mail-list-row:hover,
:root[data-theme="dark"] .mail-list-row.is-selected,
:root[data-theme="dark"] .mail-list-row.is-checked {
  background: rgba(79, 115, 117, 0.2) !important;
}

:root[data-theme="dark"] .flow-stat-card {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(17, 24, 39, 0.74);
  color: #dce8f3;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
}

:root[data-theme="dark"] .flow-card-title,
:root[data-theme="dark"] .flow-stat-card small {
  color: #b6c7d7;
}

:root[data-theme="dark"] .flow-stat-card strong {
  color: #eaf3fb;
}

:root[data-theme="dark"] .flow-card-icon {
  background: rgba(79, 115, 117, 0.2);
  color: #c6dcd9;
}

:root[data-theme="dark"] .flow-stat-card:hover,
:root[data-theme="dark"] .flow-stat-card.is-selected {
  border-color: rgba(143, 186, 176, 0.5);
  background: rgba(79, 115, 117, 0.24);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.32);
}

:root[data-theme="dark"] .mail-reading-actions button {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(17, 24, 39, 0.72);
  color: #dce8f3;
}

:root[data-theme="dark"] .mail-reading-actions button:hover {
  border-color: rgba(143, 186, 176, 0.48);
  background: rgba(79, 115, 117, 0.2);
  color: #f1fbfa;
}

:root[data-theme="dark"] .classification-panel {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(17, 24, 39, 0.72);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
}

:root[data-theme="dark"] .classification-chip {
  border-color: rgba(148, 163, 184, 0.26);
  background: rgba(15, 23, 35, 0.86);
  color: #d7e2ed;
}

:root[data-theme="dark"] .classification-chip:hover {
  border-color: rgba(143, 186, 176, 0.42);
  background: rgba(79, 115, 117, 0.2);
}

:root[data-theme="dark"] .classification-chip.is-selected {
  border-color: rgba(163, 205, 194, 0.58);
  background: rgba(79, 115, 117, 0.28);
  color: #f0fbf8;
}

:root[data-theme="dark"] .classification-chip.is-selected strong {
  color: #f0fbf8;
}

:root[data-theme="dark"] .classification-checkbar select,
:root[data-theme="dark"] .search-mode-tabs button,
:root[data-theme="dark"] .search-primary-button,
:root[data-theme="dark"] .advanced-toggle-button,
:root[data-theme="dark"] .search-reset-button {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(17, 24, 39, 0.72);
  color: #d7e2ed;
}

:root[data-theme="dark"] .search-mode-tabs button.is-selected,
:root[data-theme="dark"] .advanced-toggle-button.is-selected {
  border-color: rgba(163, 205, 194, 0.56);
  background: rgba(79, 115, 117, 0.36);
  color: #f2fffd;
}

:root[data-theme="dark"] .search-primary-button {
  border-color: rgba(111, 165, 168, 0.66);
  background: linear-gradient(180deg, rgba(63, 96, 99, 0.95), rgba(53, 84, 87, 0.95));
  color: #f3fffd;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
}

:root[data-theme="dark"] .search-primary-button:hover {
  border-color: rgba(143, 186, 176, 0.72);
  background: linear-gradient(180deg, rgba(74, 112, 115, 0.96), rgba(60, 95, 98, 0.96));
}

:root[data-theme="dark"] .search-primary-button.is-subtle {
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(17, 24, 39, 0.72);
  color: #b7c4d2;
  box-shadow: none;
}

:root[data-theme="dark"] .search-primary-button.is-subtle:hover {
  border-color: rgba(148, 163, 184, 0.42);
  background: rgba(30, 41, 59, 0.72);
  color: #d7e2ed;
}

:root[data-theme="dark"] .detailed-search-run-button {
  border-color: rgba(111, 165, 168, 0.66);
  background: linear-gradient(180deg, rgba(63, 96, 99, 0.95), rgba(53, 84, 87, 0.95));
  color: #f3fffd;
}

:root[data-theme="dark"] .detailed-search-run-button:hover {
  border-color: rgba(143, 186, 176, 0.72);
  background: linear-gradient(180deg, rgba(74, 112, 115, 0.96), rgba(60, 95, 98, 0.96));
  color: #f3fffd;
}

:root[data-theme="dark"] .mail-selection-actions .selection-action-btn {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(17, 24, 39, 0.72);
  color: #d7e2ed;
}

:root[data-theme="dark"] .detail-condition-ai-badge {
  color: #b9e7ff;
  background: rgba(46, 99, 138, 0.32);
  border-color: rgba(102, 178, 224, 0.42);
}

:root[data-theme="dark"] .mail-search-box {
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 35, 0.9);
}

:root[data-theme="dark"] .mail-search-box svg {
  color: #9cb2c7;
}

:root[data-theme="dark"] .mail-search-box input {
  color: #e8f0f8;
}

:root[data-theme="dark"] .mail-search-box input::placeholder {
  color: #8da0b3;
}

:root[data-theme="dark"] .mail-search-box.is-ai {
  background:
    linear-gradient(rgba(15, 23, 35, 0.95), rgba(15, 23, 35, 0.95)) padding-box,
    linear-gradient(120deg, #5f8f92, #7d9f99, #9f8e6a, #6f8a85, #5f8f92) border-box;
  box-shadow: 0 0 0 3px rgba(95, 143, 146, 0.16);
}

:root[data-theme="dark"] .mail-search-panel,
:root[data-theme="dark"] .mail-list-panel,
:root[data-theme="dark"] .mail-detail-panel {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(17, 24, 39, 0.78);
}

:root[data-theme="dark"] .mail-top-insights .flow-stat-grid {
  border-color: rgba(148, 163, 184, 0.24);
}

:root[data-theme="dark"] .mail-ai-banner {
  border-color: rgba(129, 140, 248, 0.36);
  background: linear-gradient(90deg, rgba(91, 33, 182, 0.3), rgba(30, 64, 175, 0.24), rgba(5, 150, 105, 0.2));
}

:root[data-theme="dark"] .mail-ai-banner-text strong {
  color: #e2ecf5;
}

:root[data-theme="dark"] .mail-ai-banner-text small {
  color: #b8c7d6;
}

:root[data-theme="dark"] .flow-stat-card + .flow-stat-card,
:root[data-theme="dark"] .mail-list-panel .mailbox-list-header {
  border-color: rgba(148, 163, 184, 0.2);
}

:root[data-theme="dark"] .mail-list-panel .mailbox-list-header {
  background: rgba(17, 24, 39, 0.82);
}

:root[data-theme="dark"] .flow-stat-card:hover {
  background: rgba(79, 115, 117, 0.16);
}

:root[data-theme="dark"] .mail-selection-actions,
:root[data-theme="dark"] .mail-list-head,
:root[data-theme="dark"] .mail-list-pagination-row {
  background: rgba(17, 24, 39, 0.82);
  border-color: rgba(148, 163, 184, 0.2);
}

:root[data-theme="dark"] .mailbox-list-meta {
  color: #b7c5d3;
}

:root[data-theme="dark"] .mailbox-list-dedup-toggle {
  color: #c6d4e2;
}

:root[data-theme="dark"] .mailbox-list-headline strong {
  color: #dfe9f4;
}

:root[data-theme="dark"] .sortbtn,
:root[data-theme="dark"] .mail-list-page-size select {
  border-color: rgba(148, 163, 184, 0.26);
  background: rgba(17, 24, 39, 0.72);
  color: #d7e2ed;
}

:root[data-theme="dark"] .sortbtn.on {
  border-color: rgba(143, 186, 176, 0.56);
  background: rgba(79, 115, 117, 0.28);
  color: #f0fbf8;
}

:root[data-theme="dark"] .mail-list-page-size {
  color: #b7c5d3;
}

:root[data-theme="dark"] .detail-condition-icon-btn {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(17, 24, 39, 0.72);
  color: #d7e2ed;
}

:root[data-theme="dark"] .detail-condition-icon-btn:hover {
  border-color: rgba(143, 186, 176, 0.48);
  background: rgba(79, 115, 117, 0.2);
  color: #f0fbf8;
}

:root[data-theme="dark"] .detail-condition-icon-btn.is-remove {
  border-color: rgba(224, 160, 160, 0.5);
  color: #ffc9c9;
}

:root[data-theme="dark"] .detail-condition-icon-btn.is-remove:hover {
  background: rgba(121, 31, 31, 0.3);
  color: #ffc9c9;
}

:root[data-theme="dark"] .mail-list-scroll-body {
  background: rgba(15, 23, 35, 0.86);
}

:root[data-theme="dark"] .mail-selection-actions .selection-action-btn,
:root[data-theme="dark"] .mail-reading-actions button {
  border-color: rgba(148, 163, 184, 0.26);
  background: rgba(17, 24, 39, 0.72);
  color: #d7e2ed;
}

:root[data-theme="dark"] .mail-reading-footer {
  border-top-color: rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 35, 0.88);
}

:root[data-theme="dark"] .mail-preview-close {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(17, 24, 39, 0.72);
  color: #d7e2ed;
}

:root[data-theme="dark"] .selection-count-label {
  color: #b7c5d3;
}

:root[data-theme="dark"] .selection-bulk-dialog-modal .mi-mail-modal-meta {
  color: #a9bbce;
}

:root[data-theme="dark"] .selection-forward-dialog-modal .selection-bulk-resend-panel {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 35, 0.72);
}

:root[data-theme="dark"] .selection-forward-dialog-modal .selection-bulk-resend-field input,
:root[data-theme="dark"] .selection-forward-dialog-modal .selection-bulk-resend-field textarea,
:root[data-theme="dark"] .detail-category-confirm-select {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 35, 0.88);
  color: #dbe7f4;
}

:root[data-theme="dark"] .selection-forward-dialog-head {
  border-color: rgba(148, 163, 184, 0.2);
}

:root[data-theme="dark"] .selection-forward-dialog-head .text-muted {
  color: #a9bbce;
}

:root[data-theme="dark"] .selection-forward-smtp-meta {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 35, 0.72);
  color: #a9bbce;
}

:root[data-theme="dark"] .selection-forward-smtp-meta b {
  color: #dbe7f4;
}

:root[data-theme="dark"] .selection-forward-smtp-meta a {
  color: #7dd3c0;
}

:root[data-theme="dark"] .selection-forward-smtp-meta .is-warn {
  color: #fbbf24;
}

:root[data-theme="dark"] .detail-set-head strong {
  color: #dbe7f4;
}

:root[data-theme="dark"] .advanced-search-panel .advanced-saved-search-empty {
  color: #9fb1c5;
}

:root[data-theme="dark"] .detail-condition-row select,
:root[data-theme="dark"] .detail-condition-row input,
:root[data-theme="dark"] .detail-condition-row textarea {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 35, 0.88);
  color: #dbe7f4;
}

:root[data-theme="dark"] .detail-condition-row input::placeholder,
:root[data-theme="dark"] .detail-condition-row textarea::placeholder {
  color: #8fa5bb;
}

:root[data-theme="dark"] .selection-export-dialog-table {
  font-size: 12px;
}

:root[data-theme="dark"] .mail-list-pagination-row .button-secondary {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(17, 24, 39, 0.72);
}

:root[data-theme="dark"] .mail-list-page-jump input,
:root[data-theme="dark"] .mail-list-page-size select {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 35, 0.88);
  color: #dbe7f4;
}

:root[data-theme="dark"] .mail-row-open > span,
:root[data-theme="dark"] .mail-reading-meta dt,
:root[data-theme="dark"] .mailbox-empty-text {
  color: #9db0c1;
}

:root[data-theme="dark"] .mail-empty-state-title {
  color: #dfe9f4;
}

:root[data-theme="dark"] .mail-empty-state-desc {
  color: #b7c5d3;
}

:root[data-theme="dark"] .party-label {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(17, 24, 39, 0.8);
  color: #b7c5d3;
}

:root[data-theme="dark"] .mail-select-cell input[type="checkbox"] {
  border-color: rgba(148, 163, 184, 0.42);
  background: rgba(15, 23, 35, 0.92);
}

:root[data-theme="dark"] .mail-select-cell input[type="checkbox"]:hover {
  border-color: rgba(173, 194, 214, 0.62);
}

:root[data-theme="dark"] .mail-select-cell input[type="checkbox"]:checked {
  border-color: rgba(140, 178, 206, 0.85);
  background: rgba(111, 143, 166, 0.86);
  box-shadow: 0 0 0 2px rgba(111, 143, 166, 0.24);
}

:root[data-theme="dark"] .mail-select-cell input[type="checkbox"]:focus-visible {
  box-shadow: 0 0 0 3px rgba(140, 178, 206, 0.32);
}

:root[data-theme="dark"] .subject-cell .subject-meta,
:root[data-theme="dark"] .classification-cell small {
  color: #93a8bb;
}

:root[data-theme="dark"] .subject-cell strong,
:root[data-theme="dark"] .party-value {
  color: #dfe9f4;
}

:root[data-theme="dark"] .category-badge {
  border-color: rgba(148, 163, 184, 0.34);
  background: rgba(30, 41, 59, 0.7);
  color: #c9d8e8;
}

:root[data-theme="dark"] .category-badge.is-palette-0 {
  border-color: rgba(164, 184, 206, 0.45);
  background: rgba(53, 72, 96, 0.34);
  color: #c9daec;
}

:root[data-theme="dark"] .category-badge.is-palette-1 {
  border-color: rgba(174, 168, 207, 0.45);
  background: rgba(72, 64, 110, 0.34);
  color: #d6cff4;
}

:root[data-theme="dark"] .category-badge.is-palette-2 {
  border-color: rgba(159, 189, 178, 0.45);
  background: rgba(53, 88, 78, 0.34);
  color: #c5e2d7;
}

:root[data-theme="dark"] .category-badge.is-palette-3 {
  border-color: rgba(199, 187, 160, 0.45);
  background: rgba(102, 88, 60, 0.34);
  color: #eadcbc;
}

:root[data-theme="dark"] .category-badge.is-palette-4 {
  border-color: rgba(199, 170, 170, 0.45);
  background: rgba(102, 72, 72, 0.34);
  color: #efcccc;
}

:root[data-theme="dark"] .category-badge.is-palette-5 {
  border-color: rgba(162, 185, 193, 0.45);
  background: rgba(60, 84, 94, 0.34);
  color: #cae0e8;
}

:root[data-theme="dark"] .attachment-inline {
  color: #b8c6d6;
}

:root[data-theme="dark"] .attachment-inline svg {
  color: #9cb0c6;
}

:root[data-theme="dark"] .attachment-inline.is-empty {
  color: #8397ac;
}

:root[data-theme="dark"] .pii-inline-badge {
  background: rgba(139, 58, 58, 0.35);
  color: #f3b8b8;
}

:root[data-theme="dark"] .dup-inline-badge {
  background: rgba(140, 100, 30, 0.35);
  color: #f0cf94;
}

:root[data-theme="dark"] .direction-meta {
  color: #9db1c5;
}

:root[data-theme="dark"] .attachment-cell .attachment-count {
  color: #b8c7d8;
}

:root[data-theme="dark"] .attachment-cell .attachment-count svg {
  color: #9fb1c6;
}

:root[data-theme="dark"] .mail-row-tag {
  border-color: rgba(148, 163, 184, 0.26);
  background: rgba(17, 24, 39, 0.7);
  color: #b7c5d3;
}

:root[data-theme="dark"] .mail-row-tag.is-warn {
  border-color: rgba(233, 205, 134, 0.5);
  background: rgba(99, 56, 6, 0.26);
  color: #f5d6a1;
}

:root[data-theme="dark"] .mail-row-tag.is-danger {
  border-color: rgba(224, 160, 160, 0.5);
  background: rgba(121, 31, 31, 0.3);
  color: #ffc9c9;
}

:root[data-theme="dark"] .direction-pill {
  border-color: rgba(148, 163, 184, 0.32);
  background: rgba(71, 85, 105, 0.34);
  color: #c2cfde;
}

:root[data-theme="dark"] .direction-pill.is-inbound {
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(71, 85, 105, 0.3);
  color: #c2cfde;
}

:root[data-theme="dark"] .direction-pill.is-outbound {
  border-color: rgba(148, 163, 184, 0.32);
  background: rgba(71, 85, 105, 0.34);
  color: #c2cfde;
}

:root[data-theme="dark"] .direction-pill.is-internal {
  border-color: rgba(148, 163, 184, 0.32);
  background: rgba(71, 85, 105, 0.34);
  color: #c2cfde;
}

:root[data-theme="dark"] .mail-reading-subject,
:root[data-theme="dark"] .mail-reading-meta dd {
  color: #dfe9f4;
}

:root[data-theme="dark"] .mail-reading-head,
:root[data-theme="dark"] .mail-reading-body {
  border-color: rgba(148, 163, 184, 0.2);
}

:root[data-theme="dark"] .mail-detail-meta-toggle-row {
  border-color: rgba(148, 163, 184, 0.2);
}

:root[data-theme="dark"] .mail-preview-close {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(30, 41, 59, 0.62);
  color: #d6e2ef;
}

:root[data-theme="dark"] .mi-mail-modal {
  background: rgba(15, 23, 35, 0.96);
  border-color: rgba(148, 163, 184, 0.24);
}

:root[data-theme="dark"] .download-selection-modal .download-selection-modal-head,
:root[data-theme="dark"] .download-selection-modal .mi-confirm-modal-actions {
  border-color: rgba(148, 163, 184, 0.2);
}

:root[data-theme="dark"] .download-selection-item {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(30, 41, 59, 0.5);
}

:root[data-theme="dark"] .download-selection-item-text b {
  color: #e2e8f0;
}

:root[data-theme="dark"] .download-selection-item-text small,
:root[data-theme="dark"] .download-selection-attachments-head strong {
  color: #a7b7ca;
}

:root[data-theme="dark"] .download-selection-empty {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 35, 0.6);
  color: #a7b7ca;
}

:root[data-theme="dark"] .mi-mail-modal-footer {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 35, 0.92);
}

:root[data-theme="dark"] .mail-reading-body {
  color: #c7d5e2;
}

:root[data-theme="dark"] .mail-reading-status-badge {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(30, 41, 59, 0.58);
  color: #c7d5e2;
}

:root[data-theme="dark"] .mail-reading-status-badge.is-ok {
  border-color: rgba(74, 222, 128, 0.36);
  background: rgba(20, 83, 45, 0.34);
  color: #b7f0c7;
}

:root[data-theme="dark"] .mail-reading-status-badge.is-warn {
  border-color: rgba(251, 191, 36, 0.34);
  background: rgba(120, 74, 16, 0.24);
  color: #f9d58c;
}

:root[data-theme="dark"] .mail-reading-status-badge.is-danger {
  border-color: rgba(248, 113, 113, 0.36);
  background: rgba(127, 29, 29, 0.3);
  color: #fecaca;
}

:root[data-theme="dark"] .mail-bec-panel {
  border-color: rgba(251, 191, 36, 0.34);
  background: rgba(120, 74, 16, 0.18);
}

:root[data-theme="dark"] .mail-bec-panel.is-high,
:root[data-theme="dark"] .mail-bec-panel.is-critical {
  border-color: rgba(248, 113, 113, 0.36);
  background: rgba(127, 29, 29, 0.22);
}

:root[data-theme="dark"] .mail-bec-panel-head p,
:root[data-theme="dark"] .mail-bec-detection-list span,
:root[data-theme="dark"] .mail-bec-disclaimer {
  color: #a7b7ca;
}

:root[data-theme="dark"] .mail-bec-panel-head > span {
  color: #fecaca;
}

:root[data-theme="dark"] .mail-bec-disclaimer {
  border-color: rgba(248, 113, 113, 0.2);
}

:root[data-theme="dark"] .mail-pii-highlight {
  background: #8a5c13;
  box-shadow: inset 0 -2px 0 #fbbf24;
  color: #fff5d6;
}

:root[data-theme="dark"] .mail-body-preview {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 35, 0.86);
  color: #c7d5e2;
}

:root[data-theme="dark"] .mail-body-html {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 35, 0.86);
}

:root[data-theme="dark"] .mail-body-empty {
  border-color: rgba(148, 163, 184, 0.24);
  color: #a9bbce;
  background: rgba(15, 23, 35, 0.58);
}

:root[data-theme="dark"] .attachment-section {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(17, 24, 39, 0.72);
}

:root[data-theme="dark"] .attachment-section strong {
  color: #b7c5d3;
}

:root[data-theme="dark"] .mail-attachment-list li {
  color: #dfe9f4;
}

:root[data-theme="dark"] .mail-detail-panel .mail-preview-attachment-row {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(17, 24, 39, 0.72);
}

:root[data-theme="dark"] .mail-detail-panel .mail-preview-attachment-name {
  color: #e2e8f0;
}

:root[data-theme="dark"] .mail-detail-panel .mail-preview-attachment-size {
  color: #9fb1c4;
}

:root[data-theme="dark"] .mail-detail-panel .mail-preview-attachment-actions .button-secondary {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 35, 0.86);
  color: #e2e8f0;
}

:root[data-theme="dark"] .mail-detail-panel .mail-preview-attachment-actions .button-secondary:hover:not(:disabled) {
  border-color: rgba(148, 163, 184, 0.42);
  background: rgba(30, 41, 59, 0.92);
  color: #e2e8f0;
}

:root[data-theme="dark"] .mail-detail-panel .mail-preview-toolbar-btn {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 35, 0.86);
  color: #e2e8f0;
}

:root[data-theme="dark"] .mail-detail-panel .mail-preview-toolbar-btn:hover:not(:disabled),
:root[data-theme="dark"] .mail-detail-panel .mail-preview-toolbar-btn:focus-visible {
  border-color: rgba(148, 163, 184, 0.42);
  background: rgba(30, 41, 59, 0.92);
  color: #e2e8f0;
}

:root[data-theme="dark"] .mail-detail-panel .mail-preview-toolbar-btn:hover::after,
:root[data-theme="dark"] .mail-detail-panel .mail-preview-toolbar-btn:focus-visible::after {
  background: #e2e8f0;
  color: #0f172a;
}

:root[data-theme="dark"] .mail-attachment-item {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(17, 24, 39, 0.72);
}

:root[data-theme="dark"] .mail-attachment-item.is-active {
  border-color: rgba(96, 165, 250, 0.7);
  background: rgba(30, 58, 138, 0.35);
}

:root[data-theme="dark"] .mail-attachment-item-name {
  color: #e2e8f0;
}

:root[data-theme="dark"] .mail-attachment-item-size {
  color: #9fb1c4;
}

:root[data-theme="dark"] .mail-attachment-preview-panel {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 35, 0.8);
}

:root[data-theme="dark"] .mail-attachment-preview-head {
  border-color: rgba(148, 163, 184, 0.2);
}

:root[data-theme="dark"] .mail-attachment-preview-image {
  background: rgba(15, 23, 35, 0.86);
}

:root[data-theme="dark"] .mail-attachment-office-sheet-title {
  color: #9fb1c4;
}

:root[data-theme="dark"] .mail-attachment-office-doc-meta {
  color: #9fb1c4;
}

:root[data-theme="dark"] .mail-attachment-office-table-scroll {
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 35, 0.86);
}

:root[data-theme="dark"] .mail-attachment-office-table th,
:root[data-theme="dark"] .mail-attachment-office-table td {
  border-color: rgba(148, 163, 184, 0.25);
  color: #dbe7f3;
}

:root[data-theme="dark"] .mail-attachment-office-table th {
  background: rgba(30, 41, 59, 0.9);
}

:root[data-theme="dark"] .mail-attachment-office-ppt-slide {
  border-color: rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 35, 0.86);
}

:root[data-theme="dark"] .mail-attachment-office-ppt-slide strong {
  color: #dbe7f3;
}

:root[data-theme="dark"] .mail-attachment-expanded-backdrop {
  background: rgba(2, 8, 23, 0.74);
}

:root[data-theme="dark"] .mail-attachment-expanded-modal {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 35, 0.96);
}

:root[data-theme="dark"] .mail-attachment-expanded-head {
  border-color: rgba(148, 163, 184, 0.2);
}

:root[data-theme="dark"] .mail-attachment-expanded-head strong {
  color: #dfe9f4;
}

:root[data-theme="dark"] .mail-attachment-expanded-body {
  background: rgba(15, 23, 35, 0.86);
}

:root[data-theme="dark"] .mail-attachment-expanded-pdf {
  background: rgba(15, 23, 35, 0.86);
}

:root[data-theme="dark"] .mail-image-list li {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(17, 24, 39, 0.72);
}

:root[data-theme="dark"] .mail-image-list img {
  background: rgba(15, 23, 35, 0.86);
}

:root[data-theme="dark"] .advanced-search-frame,
:root[data-theme="dark"] .advanced-saved-search-panel {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 35, 0.74);
}

:root[data-theme="dark"] .advanced-saved-search-shared,
:root[data-theme="dark"] .advanced-saved-search-empty,
:root[data-theme="dark"] .mailbox-list-header {
  color: #b7c7d7;
}

:root[data-theme="dark"] .mail-search-warning {
  border-color: rgba(245, 158, 11, 0.34);
  background: rgba(120, 74, 16, 0.22);
  color: #f9d58c;
}

:root[data-theme="dark"] .mail-search-warning-summary {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(120, 74, 16, 0.32);
  color: #f9d58c;
}

:root[data-theme="dark"] .mail-search-warning.is-critical {
  border-color: rgba(255, 107, 107, 0.44);
  background: rgba(127, 29, 29, 0.34);
  color: #ffc9c9;
}

:root[data-theme="dark"] .mail-search-warning.is-info {
  border-color: rgba(110, 168, 254, 0.34);
  background: rgba(24, 62, 132, 0.28);
  color: #cfe0ff;
}

:root[data-theme="dark"] .advanced-saved-search-apply,
:root[data-theme="dark"] .advanced-saved-search-delete {
  border-color: rgba(148, 163, 184, 0.26);
  background: rgba(17, 24, 39, 0.7);
}

:root[data-theme="dark"] .advanced-saved-search-apply {
  color: #dbe8f4;
}

:root[data-theme="dark"] .advanced-saved-search-apply:hover {
  border-color: rgba(143, 186, 176, 0.4);
  background: rgba(79, 115, 117, 0.18);
}

:root[data-theme="dark"] .advanced-saved-search-delete {
  color: #f4b9b9;
}

:root[data-theme="dark"] .mail-search-panel input,
:root[data-theme="dark"] .mail-search-panel select,
:root[data-theme="dark"] .mail-search-panel textarea,
:root[data-theme="dark"] .advanced-search-panel input,
:root[data-theme="dark"] .advanced-search-panel select,
:root[data-theme="dark"] .advanced-search-panel textarea {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(17, 24, 39, 0.7);
  color: #dbe8f4;
}

:root[data-theme="dark"] .mail-stats-filter-grid input[type="date"],
:root[data-theme="dark"] .mail-stats-filter-grid input[type="text"],
:root[data-theme="dark"] .mail-stats-filter-grid select,
:root[data-theme="dark"] .mail-stats-trends-filter-row input[type="date"],
:root[data-theme="dark"] .mail-stats-trends-filter-row select {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(17, 24, 39, 0.72);
  color: #dce8f3;
}

:root[data-theme="dark"] .mail-stats-period-unit > div,
:root[data-theme="dark"] .mail-stats-segment > div {
  border-color: rgba(148, 163, 184, 0.26);
  background: rgba(15, 23, 35, 0.84);
}

:root[data-theme="dark"] .mail-stats-period-unit button,
:root[data-theme="dark"] .mail-stats-segment button,
:root[data-theme="dark"] .mail-stats-chart-controls button,
:root[data-theme="dark"] .mail-stats-filter-actions button,
:root[data-theme="dark"] .mail-stats-trends-filter-actions button {
  color: #c4d2de;
  border-color: rgba(148, 163, 184, 0.26);
  background: rgba(17, 24, 39, 0.66);
}

:root[data-theme="dark"] .mail-stats-period-unit button.is-active,
:root[data-theme="dark"] .mail-stats-segment button.is-active,
:root[data-theme="dark"] .mail-stats-chart-controls button.is-active {
  border-color: rgba(163, 205, 194, 0.54);
  background: rgba(79, 115, 117, 0.28);
  color: #effaf8;
}

:root[data-theme="dark"] .mail-stats-filter-actions .is-primary,
:root[data-theme="dark"] .mail-stats-trends-filter-actions .is-primary {
  border-color: rgba(111, 165, 168, 0.62);
  background: linear-gradient(180deg, rgba(63, 96, 99, 0.95), rgba(53, 84, 87, 0.95));
  color: #f3fffd;
}

:root[data-theme="dark"] .mail-stats-donut-legend span,
:root[data-theme="dark"] .mail-stats-metric-group {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(17, 24, 39, 0.66);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.26);
}

:root[data-theme="dark"] .mail-stats-chart-card header strong,
:root[data-theme="dark"] .mail-stats-detail-list > header strong {
  color: #e6f0fa;
}

:root[data-theme="dark"] .document-content-pane,
:root[data-theme="dark"] .document-filter-panel {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(17, 24, 39, 0.74);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

:root[data-theme="dark"] .document-detail-filter-grid input,
:root[data-theme="dark"] .document-detail-filter-grid select,
:root[data-theme="dark"] .document-date-range input {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 35, 0.86);
  color: #dce8f3;
}

:root[data-theme="dark"] .document-keyword-search {
  border-color: rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 35, 0.9);
}

:root[data-theme="dark"] .document-keyword-search svg {
  color: #9cb2c7;
}

:root[data-theme="dark"] .document-keyword-search input {
  color: #e8f0f8;
}

:root[data-theme="dark"] .document-keyword-search input::placeholder {
  color: #8da0b3;
}

:root[data-theme="dark"] .document-bulk-actionbar {
  border-color: rgba(111, 165, 168, 0.32);
  background: rgba(79, 115, 117, 0.16);
}

:root[data-theme="dark"] .document-bulk-actionbar button {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(17, 24, 39, 0.7);
  color: #c9d8e6;
}

:root[data-theme="dark"] .document-list-status {
  border-bottom-color: rgba(148, 163, 184, 0.2);
  background: rgba(79, 115, 117, 0.14);
}

:root[data-theme="dark"] .document-pagination-row {
  border-top-color: rgba(148, 163, 184, 0.22);
  background: rgba(17, 24, 39, 0.82);
}

:root[data-theme="dark"] .document-pagination-left > .button-secondary {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(17, 24, 39, 0.72);
  color: #c9d8e6;
}

:root[data-theme="dark"] .document-pagination-left > .button-secondary:hover:not(:disabled) {
  border-color: rgba(143, 186, 176, 0.34);
  background: rgba(79, 115, 117, 0.2);
  color: #e6f0fa;
}

:root[data-theme="dark"] .document-page-jump input,
:root[data-theme="dark"] .document-page-size select {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 35, 0.88);
  color: #dbe7f4;
}

:root[data-theme="dark"] .document-page-jump-range,
:root[data-theme="dark"] .document-page-size {
  color: #b7c5d3;
}

:root[data-theme="dark"] .document-list-head {
  border-bottom-color: rgba(148, 163, 184, 0.2);
  background: rgba(79, 115, 117, 0.18);
  color: #b9cad9;
}

:root[data-theme="dark"] .document-list-row {
  border-bottom-color: rgba(148, 163, 184, 0.15);
}

:root[data-theme="dark"] .document-list-row:hover {
  background: rgba(79, 115, 117, 0.2);
}

:root[data-theme="dark"] .document-format-chip,
:root[data-theme="dark"] .document-storage-chip,
:root[data-theme="dark"] .document-mail-count,
:root[data-theme="dark"] .document-user-count {
  background: rgba(79, 115, 117, 0.18);
  color: #cfe0dd;
}

:root[data-theme="dark"] .document-storage-chip.is-link {
  background: rgba(65, 118, 177, 0.18);
  color: #c1d7f3;
}

:root[data-theme="dark"] .document-row-actions button {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(17, 24, 39, 0.62);
  color: #c2d1df;
}

:root[data-theme="dark"] .document-row-actions button:hover {
  border-color: rgba(143, 186, 176, 0.34);
  background: rgba(79, 115, 117, 0.14);
  color: #dceae8;
}

:root[data-theme="dark"] .document-modal-backdrop {
  background: rgba(5, 10, 18, 0.62);
}

:root[data-theme="dark"] .document-detail-drawer {
  border-color: rgba(148, 163, 184, 0.26);
  background: linear-gradient(180deg, rgba(16, 24, 36, 0.98) 0%, rgba(13, 20, 30, 0.98) 100%);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.55);
}

:root[data-theme="dark"] .document-drawer-header {
  border-bottom-color: rgba(148, 163, 184, 0.22);
  background: rgba(79, 115, 117, 0.14);
}

:root[data-theme="dark"] .document-drawer-header span {
  color: #9fc7cb;
}

:root[data-theme="dark"] .document-drawer-header h2 {
  color: #e6f0fa;
}

:root[data-theme="dark"] .document-drawer-body {
  background: rgba(11, 18, 28, 0.62);
}

:root[data-theme="dark"] .document-detail-preview {
  border-color: rgba(148, 163, 184, 0.24);
  background:
    linear-gradient(90deg, rgba(95, 143, 146, 0.2) 1px, transparent 1px),
    linear-gradient(rgba(95, 143, 146, 0.2) 1px, transparent 1px),
    rgba(16, 24, 36, 0.96);
  background-size: 28px 28px;
}

:root[data-theme="dark"] .document-detail-preview > strong {
  color: #e6f0fa;
}

:root[data-theme="dark"] .document-preview-lines {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(17, 24, 39, 0.78);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
}

:root[data-theme="dark"] .document-preview-lines span {
  border-bottom-color: rgba(148, 163, 184, 0.2);
  color: #dbe8f4;
}

:root[data-theme="dark"] .document-info-card {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(17, 24, 39, 0.72);
}

:root[data-theme="dark"] .document-info-card header strong,
:root[data-theme="dark"] .source-mail-summary strong {
  color: #e6f0fa;
}

:root[data-theme="dark"] .document-info-card dt,
:root[data-theme="dark"] .source-mail-summary span {
  color: #afc2d3;
}

:root[data-theme="dark"] .document-info-card dd {
  color: #dbe8f4;
}

:root[data-theme="dark"] .document-related-mail-table .table-clickable-row:hover,
:root[data-theme="dark"] .document-related-mail-table .table-clickable-row:focus-visible {
  background: rgba(79, 115, 117, 0.22);
}

:root[data-theme="dark"] .document-inline-actions > button {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(17, 24, 39, 0.66);
  color: #d0dfed;
}

:root[data-theme="dark"] .document-inline-actions > button:hover {
  border-color: rgba(143, 186, 176, 0.38);
  background: rgba(79, 115, 117, 0.16);
  color: #e6f2f8;
}

:root[data-theme="dark"] .settings-group-rail {
  background: linear-gradient(180deg, rgba(22, 30, 34, 0.96) 0%, rgba(18, 25, 29, 0.96) 100%) !important;
  border-color: rgba(143, 186, 176, 0.26) !important;
}

:root[data-theme="dark"] .settings-group-button {
  background: rgba(17, 24, 39, 0.7) !important;
  color: #c1d2d0 !important;
}

:root[data-theme="dark"] .settings-group-button b {
  color: #cfe0de !important;
}

:root[data-theme="dark"] .settings-group-button small {
  color: #9fb4b1 !important;
}

:root[data-theme="dark"] .settings-group-button svg {
  background: rgba(111, 165, 168, 0.18) !important;
  color: #c8e0dd !important;
}

:root[data-theme="dark"] .settings-group-button:hover {
  background: rgba(79, 115, 117, 0.22) !important;
}

:root[data-theme="dark"] .demo-app .settings-nav .settings-group-button.is-active {
  background: rgba(17, 24, 39, 0.94) !important;
  border-color: rgba(163, 205, 194, 0.54) !important;
  border-bottom-color: rgba(17, 24, 39, 0.94) !important;
}

:root[data-theme="dark"] .demo-app .settings-nav .settings-group-button.is-active b {
  color: #effaf8 !important;
}

:root[data-theme="dark"] .demo-app .settings-nav .settings-group-button.is-active small {
  color: #c3d8d5 !important;
}

:root[data-theme="dark"] .settings-collector-card {
  border-color: rgba(143, 186, 176, 0.24);
  background: linear-gradient(180deg, rgba(21, 31, 36, 0.92) 0%, rgba(18, 27, 31, 0.92) 100%);
}

:root[data-theme="dark"] .settings-collector-table {
  border-color: rgba(143, 186, 176, 0.24);
  background: rgba(17, 24, 39, 0.5);
}

:root[data-theme="dark"] .settings-collector-head {
  background: rgba(79, 115, 117, 0.16);
  border-bottom-color: rgba(148, 163, 184, 0.2);
}

:root[data-theme="dark"] .settings-collector-row + .settings-collector-row {
  border-top-color: rgba(148, 163, 184, 0.14);
}

:root[data-theme="dark"] .settings-collector-status {
  background: rgba(79, 115, 117, 0.26);
  color: #d3e4e1;
}

:root[data-theme="dark"] .settings-collector-status.is-waiting {
  background: rgba(111, 165, 168, 0.28);
  color: #e7f4f2;
}

/* overview card child/tone styles live in styles/primitives.css */

.settings-collector-card {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-soft);
}

.settings-collector-card > header > div {
  display: grid;
  grid-gap: 2px;
  gap: 2px;
}

.settings-collector-card > header span {
  color: var(--mi-color-ink-soft);
  font-size: 11px;
  font-weight: 900;
}

.settings-collector-card > header strong {
  color: var(--mi-color-ink);
  font-size: 16px;
  font-weight: 950;
}

.settings-collector-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
}

.settings-collector-head,
.settings-collector-row {
  display: grid;
  grid-template-columns: 0.9fr 0.9fr 1.4fr 1.8fr;
  grid-gap: 8px;
  gap: 8px;
  padding: 10px 12px;
  align-items: center;
}

.settings-collector-head {
  background: rgba(31, 35, 40, 0.03);
  border-bottom: 1px solid rgba(31, 35, 40, 0.08);
}

.settings-collector-head span {
  font-size: 11px;
  font-weight: 900;
  color: var(--mi-color-ink-soft);
}

.settings-collector-row + .settings-collector-row {
  border-top: 1px solid rgba(31, 35, 40, 0.07);
}

.settings-collector-row span {
  font-size: 12px;
  color: var(--mi-color-ink);
}

.settings-collector-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(79, 115, 117, 0.14);
  color: var(--mi-color-brand-deep);
  font-size: 11px;
  font-weight: 900;
}

.settings-collector-status.is-muted {
  background: rgba(31, 35, 40, 0.08);
  color: #626b74;
}

.settings-collector-status.is-waiting {
  background: rgba(79, 115, 117, 0.22);
  color: #2f5755;
}

:root[data-theme="dark"] .settings-collector-card {
  border-color: rgba(143, 186, 176, 0.24);
  background: color-mix(in srgb, var(--mi-color-brand-deep) 18%, var(--panel));
}

:root[data-theme="dark"] .settings-collector-table {
  border-color: rgba(143, 186, 176, 0.24);
  background: var(--panel);
}

:root[data-theme="dark"] .settings-collector-head {
  background: rgba(79, 115, 117, 0.16);
  border-bottom-color: rgba(148, 163, 184, 0.2);
}

:root[data-theme="dark"] .settings-collector-row + .settings-collector-row {
  border-top-color: rgba(148, 163, 184, 0.14);
}

:root[data-theme="dark"] .settings-collector-status {
  background: rgba(79, 115, 117, 0.26);
  color: #d3e4e1;
}

:root[data-theme="dark"] .settings-collector-status.is-waiting {
  background: rgba(111, 165, 168, 0.28);
  color: #e7f4f2;
}

:root[data-theme="dark"] .settings-collector-status.is-muted {
  background: rgba(148, 163, 184, 0.16);
  color: var(--muted);
}



/*!*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ../../node_modules/.pnpm/next@15.5.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[2]!../../node_modules/.pnpm/next@15.5.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[10].use[3]!./app/globals.css ***!
  \*****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/* MailInsight shared stylesheet assembler.
 * Page-specific CSS is imported from route page/layout files.
 * Keep this order stable — cascade depends on it.
 *
 * Still global: mail-preview.css (shared preview/row chrome across many screens).
 */

