[data-identity="standalone"] .admin-pi-section,
[data-identity="standalone"] .admin-overview,
[data-identity="standalone"] .admin-source-section,
[data-identity="standalone"] #sync-easytrade-users { display: none; }
[data-identity="standalone"] a.nav-tool { text-decoration: none; }
[data-identity="standalone"] .conversation-list > a.primary-action { display: inline-flex; margin: 16px; text-decoration: none; }
.mk-enterprise, .mk-login {
  --mk-ink: #1b201e; --mk-muted: #65706b; --mk-line: #d8ddda;
  --mk-canvas: #f2f3f1; --mk-paper: #fff; --mk-nav: #17201e; --mk-accent: #812d3b;
  margin: 0; color: var(--mk-ink); background: var(--mk-canvas);
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
.mk-enterprise *, .mk-login * { box-sizing: border-box; }
.mk-enterprise [hidden], .mk-login [hidden] { display: none !important; }
.mk-enterprise a, .mk-login a { color: var(--mk-accent); text-underline-offset: 4px; }
.mk-enterprise button, .mk-login button {
  min-height: 44px; padding: 9px 15px; font: inherit; font-weight: 600; cursor: pointer;
  border: 1px solid var(--mk-line); border-radius: 7px; color: var(--mk-ink); background: var(--mk-paper);
}
.mk-enterprise button:hover, .mk-login button:hover { background: #eaeeec; }
.mk-enterprise button:disabled, .mk-login button:disabled { cursor: wait; opacity: .65; }
.mk-enterprise button.mk-primary, .mk-login button.mk-primary { border-color: var(--mk-accent); color: #fff; background: var(--mk-accent); }
.mk-enterprise button.mk-primary:hover, .mk-login button.mk-primary:hover { background: #702431; }
.mk-enterprise :focus-visible, .mk-login :focus-visible { outline: 2px solid var(--mk-accent); outline-offset: 3px; }
.mk-enterprise input, .mk-enterprise select, .mk-login input {
  width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; border: 1px solid #aab3ae;
  border-radius: 7px; background: #fff; color: var(--mk-ink);
}
.mk-enterprise input::placeholder, .mk-login input::placeholder { color: #69736e; opacity: 1; }
.mk-enterprise h1, .mk-enterprise h2, .mk-enterprise h3, .mk-login h1, .mk-login h2 { line-height: 1.3; text-wrap: balance; }
.mk-enterprise h1 { margin: 0 0 10px; font-size: 28px; font-weight: 680; letter-spacing: -.025em; }
.mk-enterprise h2 { margin: 30px 0 14px; font-size: 18px; font-weight: 650; }
.mk-enterprise h3 { margin: 0 0 20px; font-size: 16px; }
.mk-description, .mk-help { color: var(--mk-muted); max-width: 72ch; }
.mk-description { margin: 0 0 22px; }
.mk-help { margin: 12px 0; font-size: 13px; }
.mk-layout { min-height: 100dvh; display: grid; grid-template-columns: 208px minmax(0, 1fr); }
.mk-sidebar {
  background: var(--mk-nav); color: #fff; padding: 24px 14px; display: flex; flex-direction: column; gap: 32px;
  position: sticky; top: 0; height: 100dvh;
}
.mk-brand { display: flex; align-items: center; gap: 10px; font-weight: 650; text-decoration: none; }
.mk-brand img { flex-shrink: 0; }
.mk-sidebar .mk-brand { color: #fff; font-size: 13px; }
.mk-sidebar nav { display: flex; flex-direction: column; gap: 6px; }
.mk-sidebar nav a { display: flex; align-items: center; min-height: 44px; padding: 10px 12px; border-radius: 7px; color: #bdc9c3; text-decoration: none; }
.mk-sidebar nav a:hover { background: #222c29; color: #fff; }
.mk-sidebar nav a[aria-current="page"] { background: #2b3933; color: #fff; font-weight: 650; }
.mk-sidebar nav .mk-back { margin-bottom: 18px; color: #fff; }
.mk-sidebar :focus-visible { outline-color: #fff; }
.mk-sidebar-footer { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; color: #bdc9c3; }
.mk-sidebar-footer button { background: transparent; color: #fff; border-color: #52635a; }
.mk-sidebar-footer button:hover { background: #2b3933; }
.mk-main { min-width: 0; }
.mk-topbar { min-height: 68px; padding: 20px 36px; border-bottom: 1px solid var(--mk-line); display: flex; gap: 20px; justify-content: space-between; color: var(--mk-muted); }
.mk-topbar span:first-child { font-weight: 600; color: var(--mk-ink); overflow-wrap: anywhere; }
.mk-topbar span:last-child { flex-shrink: 0; }
.mk-content { max-width: 1150px; margin: 0 auto; padding: 38px 36px 72px; }
.mk-pane { margin-top: 28px; }
.mk-section-heading { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin: 28px 0 14px; }
.mk-section-heading h2 { margin: 0; }
.mk-section-heading a { display: inline-flex; align-items: center; min-height: 44px; }
.mk-form { max-width: 600px; }
.mk-form > label, .mk-fields label, .mk-inline-form label { display: flex; flex-direction: column; gap: 8px; font-weight: 600; min-width: 0; }
.mk-form > label { margin-bottom: 22px; }
.mk-form small { color: var(--mk-muted); font-size: 12px; font-weight: 400; }
.mk-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.mk-member-form { max-width: none; margin-bottom: 26px; padding: 24px; background: var(--mk-paper); border: 1px solid var(--mk-line); border-radius: 9px; }
.mk-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.mk-inline-form { display: grid; grid-template-columns: minmax(180px,1fr) minmax(180px,1fr) auto; align-items: end; gap: 18px; margin-top: 24px; }
.mk-message { margin: 10px 0; color: #9d261e; overflow-wrap: anywhere; }
.mk-message:empty { display: none; }
.mk-message[data-tone="success"] { color: #2f6b52; }
.mk-message[data-tone="loading"] { color: var(--mk-muted); }
.mk-callout { padding: 16px 18px; background: #f6edef; border-radius: 7px; color: #702431; }
.mk-row, .mk-member { border-bottom: 1px solid var(--mk-line); padding: 18px 0; }
.mk-row { display: grid; grid-template-columns: minmax(180px,1fr) minmax(180px,1fr); align-items: center; gap: 20px; }
.mk-row strong, .mk-row small { display: block; }
.mk-row small { color: var(--mk-muted); }
.mk-row a, #phone-connect-next { display: inline-flex; align-items: center; min-height: 44px; }
.mk-row label { display: block; }
.mk-member summary { min-height: 44px; cursor: pointer; padding: 8px 0; overflow-wrap: anywhere; }
.mk-member summary strong { margin-right: 14px; }
.mk-member summary span { color: var(--mk-muted); margin-right: 14px; font-size: 13px; }
.mk-member .mk-form { margin: 20px 0; }
.mk-member .mk-reset { padding-top: 20px; border-top: 1px solid var(--mk-line); }
.mk-empty { padding: 28px 0; color: var(--mk-muted); }
.mk-empty p { max-width: 58ch; }
.mk-empty a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.mk-counts { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; margin: 22px 0 26px; padding: 22px 0; border-block: 1px solid var(--mk-line); }
.mk-counts dt { font-size: 13px; color: var(--mk-muted); }
.mk-counts dd { font-size: 24px; font-weight: 650; margin: 5px 0 0; font-variant-numeric: tabular-nums; }
.mk-table-wrap { overflow-x: auto; }
.mk-table { width: 100%; border-collapse: collapse; text-align: left; font-variant-numeric: tabular-nums; }
.mk-table th { color: var(--mk-muted); font-weight: 500; font-size: 12px; }
.mk-table th, .mk-table td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--mk-line); vertical-align: top; }
.mk-table a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; }
.mk-table small { display: block; color: var(--mk-muted); }
.mk-storage, .mk-settings-note { margin-top: 38px; border-top: 1px solid var(--mk-line); }
.mk-storage .mk-warning { color: #97500d; font-weight: 600; }
.mk-skip { position: fixed; top: -100px; left: 16px; z-index: 10; padding: 12px; background: #fff; }
.mk-skip:focus { top: 12px; }
.mk-login-layout { min-height: 100dvh; display: grid; grid-template-columns: 1fr 1fr; }
.mk-login-intro { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(32px,5vw,80px); color: #fff; background: var(--mk-nav); }
.mk-login-copy { margin: 100px 0; }
.mk-login-copy h1 { font-size: clamp(32px,3.5vw,52px); letter-spacing: -.03em; font-weight: 600; }
.mk-login-copy p { max-width: 32em; color: #becbc4; font-size: 16px; line-height: 1.9; }
.mk-login-footnote { color: #becbc4; font-size: 13px; }
.mk-login-form-panel { padding: 48px 32px; display: flex; align-items: center; justify-content: center; }
.mk-login-form { width: 100%; max-width: 380px; }
.mk-login-form h2 { font-size: 28px; letter-spacing: -.025em; margin: 0 0 12px; }
.mk-login-form > p { color: var(--mk-muted); }
.mk-login-form label { display: block; font-weight: 600; margin: 26px 0 8px; }
.mk-login-form input { min-height: 50px; }
.mk-login-form .mk-message { min-height: 24px; margin: 16px 0; color: #9d261e; display: block; }
.mk-login-form button[type="submit"] { width: 100%; min-height: 50px; }
.mk-password-field { position: relative; }
.mk-password-field input { padding-right: 72px; }
.mk-password-field button { position: absolute; right: 4px; top: 3px; border: 0; color: var(--mk-accent); background: transparent; }
@media (max-width: 820px) {
  .mk-layout { grid-template-columns: 1fr; }
  .mk-sidebar { position: static; height: auto; padding: 18px 20px; gap: 18px; }
  .mk-sidebar nav { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .mk-sidebar nav a { padding: 8px 12px; }
  .mk-sidebar nav .mk-back { margin: 0; }
  .mk-sidebar-footer { flex-direction: row; align-items: center; justify-content: space-between; margin: 0; }
  .mk-topbar { min-height: 56px; padding: 16px 24px; }
  .mk-content { padding: 28px 24px 50px; }
  .mk-inline-form { grid-template-columns: 1fr 1fr; }
  .mk-inline-form button { justify-self: start; }
  .mk-login-intro { padding: 36px; }
}
@media (max-width: 600px) {
  .mk-fields, .mk-inline-form, .mk-row { grid-template-columns: 1fr; }
  .mk-counts { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 24px; }
  .mk-content { padding-inline: 20px; }
  .mk-enterprise h1 { font-size: 25px; }
  .mk-table, .mk-table tbody { display: block; }
  .mk-table thead { display: none; }
  .mk-table tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); padding-bottom: 16px; border-bottom: 1px solid var(--mk-line); }
  .mk-table td { display: block; border: 0; padding: 12px 0; }
  .mk-table td:first-child { grid-column: 1 / -1; }
  .mk-table td[data-label]::before { content: attr(data-label); display: block; color: var(--mk-muted); font-size: 12px; margin-bottom: 6px; }
  .mk-member-form { padding: 18px; }
  .mk-login-layout { grid-template-columns: 1fr; }
  .mk-login-intro { padding: 22px 24px; }
  .mk-login-copy, .mk-login-footnote { display: none; }
  .mk-login-form-panel { padding: 40px 24px; align-items: flex-start; }
}
