/* ==========================================================================
   OfficeMail — dizayn sistemi
   Ağ / açıq boz fon, tünd göy və mavi vurğular, incə border-lər.
   ========================================================================== */

:root {
  /* Rənglər */
  --om-bg: #F6F7F9;
  --om-surface: #FFFFFF;
  --om-surface-2: #FAFBFC;
  --om-border: #E5E7EB;
  --om-border-strong: #D1D5DB;
  --om-text: #0F172A;
  --om-text-2: #334155;
  --om-muted: #64748B;
  --om-faint: #94A3B8;

  --om-navy: #1E3A8A;
  --om-navy-900: #0B1B4D;
  --om-primary: #2563EB;
  --om-primary-hover: #1D4ED8;
  --om-primary-soft: #EEF3FF;
  --om-primary-ring: rgba(37, 99, 235, .18);

  --om-success: #059669;
  --om-success-soft: #ECFDF5;
  --om-danger: #DC2626;
  --om-danger-soft: #FEF2F2;
  --om-warning: #B45309;

  /* Ölçülər */
  --om-sidebar-w: 264px;
  --om-topbar-h: 64px;
  --om-radius-sm: 6px;
  --om-radius: 10px;
  --om-radius-lg: 14px;

  /* Kölgələr */
  --om-shadow-xs: 0 1px 2px rgba(15, 23, 42, .05);
  --om-shadow-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
  --om-shadow-lg: 0 12px 32px -8px rgba(15, 23, 42, .18), 0 4px 8px -4px rgba(15, 23, 42, .06);

  --om-ease: cubic-bezier(.2, .8, .2, 1);
  --om-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--om-font);
  font-size: 14px;
  line-height: 1.55;
  color: var(--om-text);
  background: var(--om-bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--om-primary); text-decoration: none; }
a:hover { color: var(--om-primary-hover); }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--om-primary); outline-offset: 2px; }

/* --- Tipografiya --------------------------------------------------------- */
.om-h1 { font-size: 24px; line-height: 1.25; font-weight: 650; letter-spacing: -.02em; margin: 0 0 4px; }
.om-h2 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; margin: 0; }
.om-eyebrow { font-size: 12px; font-weight: 500; color: var(--om-muted); margin: 0 0 6px; }
.om-muted { color: var(--om-muted); margin: 0; }
.om-small { font-size: 12.5px; }
.om-strong { font-weight: 600; }
.om-center { text-align: center; }

/* --- İkonlar ------------------------------------------------------------- */
.om-icon {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}
.om-icon--sm { width: 15px; height: 15px; }

/* --- Shell (sidebar + əsas hissə) ---------------------------------------- */
.om-shell { display: flex; min-height: 100vh; }

.om-sidebar {
  position: sticky; top: 0;
  width: var(--om-sidebar-w); height: 100vh; flex: none;
  display: flex; flex-direction: column;
  background: var(--om-surface);
  border-right: 1px solid var(--om-border);
  padding: 16px 12px;
  z-index: 40;
}
.om-sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 16px; }
.om-sidebar-cta { padding: 0 4px 12px; }
.om-sidebar-foot { border-top: 1px solid var(--om-border); padding-top: 10px; margin-top: 10px; }

.om-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--om-text); }
.om-brand:hover { color: var(--om-text); }
.om-logo-mark { width: 32px; height: 32px; flex: none; }
.om-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.om-brand-name { font-weight: 700; font-size: 15.5px; letter-spacing: -.02em; }
.om-brand-company { font-size: 11.5px; color: var(--om-muted); max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.om-brand--light { color: #fff; }

.om-nav { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; padding: 0 2px; }
.om-nav-group { margin-top: 14px; display: flex; flex-direction: column; gap: 2px; }
.om-nav-title { font-size: 11px; font-weight: 600; color: var(--om-faint); text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px 6px; }

.om-nav-item {
  display: flex; align-items: center; gap: 10px;
  height: 36px; padding: 0 10px;
  border-radius: var(--om-radius-sm);
  color: var(--om-text-2); font-weight: 500;
  transition: background .15s var(--om-ease), color .15s var(--om-ease);
}
.om-nav-item .om-icon { color: var(--om-muted); transition: color .15s var(--om-ease); }
.om-nav-item:hover { background: #F1F5F9; color: var(--om-text); }
.om-nav-item.is-active { background: var(--om-primary-soft); color: var(--om-navy); }
.om-nav-item.is-active .om-icon { color: var(--om-primary); }
.om-nav-item.is-disabled { color: var(--om-faint); cursor: not-allowed; }
.om-nav-item.is-disabled:hover { background: transparent; color: var(--om-faint); }
.om-nav-item.is-disabled .om-icon { color: #CBD5E1; }
.om-nav-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.om-nav-badge { font-size: 11.5px; font-weight: 600; color: var(--om-primary); background: var(--om-primary-soft); border-radius: 999px; padding: 0 7px; }
.om-nav-soon { font-size: 10px; font-weight: 600; color: var(--om-faint); border: 1px solid var(--om-border); border-radius: 999px; padding: 0 6px; line-height: 16px; }

.om-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* --- Topbar -------------------------------------------------------------- */
.om-topbar {
  position: sticky; top: 0; z-index: 30;
  height: var(--om-topbar-h);
  display: flex; align-items: center; gap: 16px;
  padding: 0 28px;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--om-border);
}
.om-search {
  flex: 1; min-width: 0; max-width: 520px;
  display: flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 12px;
  background: var(--om-bg); border: 1px solid var(--om-border); border-radius: var(--om-radius);
  color: var(--om-muted);
}
.om-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: 0; font: inherit; color: var(--om-text); }
.om-search.is-disabled { opacity: .7; cursor: not-allowed; }
.om-search.is-disabled input { cursor: not-allowed; }
.om-topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }

.om-icon-btn {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  border: 0; border-radius: var(--om-radius); background: transparent;
  color: var(--om-text-2); cursor: pointer;
  transition: background .15s var(--om-ease);
}
.om-icon-btn:hover { background: #F1F5F9; }
.om-icon-btn--sm { width: 28px; height: 28px; }

.om-account-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 8px 4px 4px; border: 1px solid transparent; border-radius: 999px;
  background: transparent; cursor: pointer; color: var(--om-text);
  transition: background .15s var(--om-ease), border-color .15s var(--om-ease);
}
.om-account-btn:hover, .om-account-btn[aria-expanded="true"] { background: var(--om-surface); border-color: var(--om-border); }
.om-account-meta { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.om-account-name { font-weight: 600; font-size: 13px; }
.om-account-role { font-size: 11.5px; color: var(--om-muted); }

/* --- Avatar -------------------------------------------------------------- */
.om-avatar {
  --avatar-bg: var(--om-navy);
  display: inline-grid; place-items: center; flex: none;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--avatar-bg); color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
}
.om-avatar--lg { width: 40px; height: 40px; font-size: 14px; }
.om-avatar--xl { width: 72px; height: 72px; font-size: 24px; }

/* --- Dropdown ------------------------------------------------------------ */
.om-dropdown { position: relative; }
.om-dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  min-width: 240px; padding: 6px;
  background: var(--om-surface); border: 1px solid var(--om-border); border-radius: var(--om-radius-lg);
  box-shadow: var(--om-shadow-lg);
  opacity: 0; transform: translateY(-4px) scale(.98); transform-origin: top right;
  visibility: hidden; pointer-events: none;
  transition: opacity .16s var(--om-ease), transform .16s var(--om-ease), visibility .16s;
}
.om-dropdown.is-open .om-dropdown-menu { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
.om-dropdown-menu--wide { min-width: 320px; }
.om-dropdown-head { font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--om-border); margin-bottom: 4px; }
.om-dropdown-user { display: flex; align-items: center; gap: 10px; padding: 10px; border-bottom: 1px solid var(--om-border); margin-bottom: 4px; }
.om-dropdown-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 10px; border: 0; border-radius: var(--om-radius-sm);
  background: transparent; color: var(--om-text-2); text-align: left; cursor: pointer;
}
.om-dropdown-item:hover { background: #F1F5F9; color: var(--om-text); }
.om-dropdown-item .om-icon { color: var(--om-muted); }
.om-dropdown-item--danger:hover { background: var(--om-danger-soft); color: var(--om-danger); }
.om-dropdown-item--danger:hover .om-icon { color: var(--om-danger); }
.om-dropdown-sep { height: 1px; background: var(--om-border); margin: 4px 0; }
.om-dropdown form { margin: 0; }

/* --- Məzmun -------------------------------------------------------------- */
.om-content { padding: 28px; max-width: 1200px; width: 100%; display: flex; flex-direction: column; gap: 20px; }
.om-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.om-card { background: var(--om-surface); border: 1px solid var(--om-border); border-radius: var(--om-radius-lg); box-shadow: var(--om-shadow-xs); }
.om-card--pad { padding: 22px 24px; }
.om-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.om-narrow { max-width: 480px; }

.om-grid { display: grid; gap: 16px; }
.om-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.om-stat { display: flex; gap: 14px; padding: 18px 20px; transition: box-shadow .2s var(--om-ease), transform .2s var(--om-ease); }
.om-stat:hover { box-shadow: var(--om-shadow-sm); transform: translateY(-1px); }
.om-stat-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--om-radius); background: var(--om-primary-soft); color: var(--om-primary); flex: none; }
.om-stat-label { font-size: 12.5px; color: var(--om-muted); font-weight: 500; }
.om-stat-value { font-size: 24px; font-weight: 650; letter-spacing: -.02em; line-height: 1.3; }
.om-stat-value--text { font-size: 18px; }

.om-dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 24px; margin: 0; }
.om-dl--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.om-dl dt { font-size: 12px; color: var(--om-muted); font-weight: 500; margin-bottom: 2px; }
.om-dl dd { margin: 0; font-weight: 500; word-break: break-word; }

.om-note {
  display: flex; gap: 8px; align-items: flex-start;
  margin: 20px 0 0; padding: 12px 14px;
  background: var(--om-surface-2); border: 1px dashed var(--om-border-strong); border-radius: var(--om-radius);
  color: var(--om-muted); font-size: 13px;
}
.om-note .om-icon { margin-top: 2px; }

.om-profile { display: flex; align-items: center; gap: 20px; }
.om-profile-main { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }

.om-badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #F1F5F9; color: var(--om-text-2); }
.om-badge--primary { background: var(--om-primary-soft); color: var(--om-navy); }

.om-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 32px 16px; color: var(--om-muted); text-align: center; }
.om-empty .om-icon { width: 28px; height: 28px; color: var(--om-faint); }
.om-empty--sm { padding: 20px 12px; }

/* --- Düymələr ------------------------------------------------------------ */
.om-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px;
  border: 1px solid transparent; border-radius: var(--om-radius);
  font-weight: 600; font-size: 13.5px; white-space: nowrap; cursor: pointer;
  transition: background .15s var(--om-ease), border-color .15s var(--om-ease), box-shadow .15s var(--om-ease), transform .05s;
}
.om-btn:active { transform: translateY(1px); }
.om-btn--primary { background: var(--om-primary); color: #fff; box-shadow: 0 1px 2px rgba(37, 99, 235, .3), inset 0 1px 0 rgba(255,255,255,.12); }
.om-btn--primary:hover { background: var(--om-primary-hover); color: #fff; }
.om-btn--secondary { background: var(--om-surface); color: var(--om-text); border-color: var(--om-border); box-shadow: var(--om-shadow-xs); }
.om-btn--secondary:hover { border-color: var(--om-border-strong); color: var(--om-text); }
.om-btn--ghost { background: transparent; color: var(--om-text-2); }
.om-btn--ghost:hover { background: #F1F5F9; color: var(--om-text); }
.om-btn--block { width: 100%; }
.om-btn--lg { height: 44px; font-size: 14.5px; }
.om-btn.is-disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
.om-btn.is-disabled:active { transform: none; }

/* --- Formlar ------------------------------------------------------------- */
.om-form { display: flex; flex-direction: column; gap: 16px; }
.om-field { display: flex; flex-direction: column; gap: 6px; }
.om-field label { font-size: 13px; font-weight: 600; color: var(--om-text-2); }
.om-input {
  width: 100%; height: 42px; padding: 0 12px;
  border: 1px solid var(--om-border-strong); border-radius: var(--om-radius);
  background: var(--om-surface); color: var(--om-text); font: inherit;
  transition: border-color .15s var(--om-ease), box-shadow .15s var(--om-ease);
}
.om-input::placeholder { color: var(--om-faint); }
.om-input:hover { border-color: #B6BCC6; }
.om-input:focus { outline: 0; border-color: var(--om-primary); box-shadow: 0 0 0 4px var(--om-primary-ring); }
.om-input-group { position: relative; }
.om-input-group .om-input { padding-right: 76px; }
.om-input-addon {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  height: 30px; padding: 0 10px; border: 0; border-radius: var(--om-radius-sm);
  background: transparent; color: var(--om-muted); font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.om-input-addon:hover { background: #F1F5F9; color: var(--om-text); }
.om-field-error { font-size: 12.5px; color: var(--om-danger); }
.om-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--om-text-2); cursor: pointer; }
.om-check input { width: 16px; height: 16px; accent-color: var(--om-primary); }
.om-form-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }

.om-alert { padding: 10px 14px; border-radius: var(--om-radius); font-size: 13.5px; font-weight: 500; }
.om-alert--error { background: var(--om-danger-soft); color: #991B1B; border: 1px solid #FECACA; }

/* --- Toast bildirişləri -------------------------------------------------- */
.om-toasts { position: fixed; right: 24px; bottom: 24px; z-index: 100; display: flex; flex-direction: column; gap: 8px; }
.om-toast {
  display: flex; align-items: center; gap: 10px;
  min-width: 280px; padding: 10px 10px 10px 14px;
  background: var(--om-navy-900); color: #fff; border-radius: var(--om-radius);
  box-shadow: var(--om-shadow-lg);
  animation: om-toast-in .3s var(--om-ease);
}
.om-toast span { flex: 1; }
.om-toast .om-icon-btn { color: #CBD5E1; }
.om-toast .om-icon-btn:hover { background: rgba(255,255,255,.08); }
.om-toast--success > .om-icon { color: #34D399; }
.om-toast--error > .om-icon { color: #F87171; }
.om-toast.is-leaving { opacity: 0; transform: translateY(6px); transition: all .25s var(--om-ease); }
@keyframes om-toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* --- Giriş səhifəsi ------------------------------------------------------ */
.om-auth { background: var(--om-surface); }
.om-auth-wrap { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }
.om-auth-brand {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at -10% -10%, rgba(59,130,246,.35), transparent 60%),
    radial-gradient(800px 400px at 110% 110%, rgba(37,99,235,.35), transparent 60%),
    linear-gradient(160deg, #0B1B4D 0%, #1E3A8A 100%);
  color: #fff;
  display: flex; align-items: center; padding: 56px;
}
.om-auth-brand::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px; pointer-events: none;
}
.om-auth-brand-inner { position: relative; z-index: 1; max-width: 460px; display: flex; flex-direction: column; gap: 28px; }
.om-auth-tagline { font-size: 30px; line-height: 1.25; font-weight: 650; letter-spacing: -.025em; margin: 0; }
.om-auth-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; color: #C7D2FE; }
.om-auth-points li { display: flex; align-items: center; gap: 12px; }
.om-auth-points .om-icon { color: #93C5FD; }
.om-auth-foot { color: #94A3B8; font-size: 13px; margin: 24px 0 0; }

.om-auth-panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.om-auth-card { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 20px; animation: om-fade-up .45s var(--om-ease); }
.om-auth-card .om-form { margin-top: 4px; }
@keyframes om-fade-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.om-error-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px; }
.om-error-code { font-size: 64px; font-weight: 700; letter-spacing: -.04em; color: var(--om-primary); line-height: 1; }
.om-error-page .om-btn { margin-top: 12px; }

/* --- Responsive ---------------------------------------------------------- */
.om-only-mobile { display: none; }
.om-backdrop { display: none; }

@media (max-width: 1024px) {
  .om-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .om-dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .om-only-mobile { display: inline-grid; }
  .om-brand.om-only-mobile { display: inline-flex; }
  .om-sidebar {
    position: fixed; left: 0; top: 0; bottom: 0;
    transform: translateX(-100%);
    transition: transform .25s var(--om-ease), box-shadow .25s var(--om-ease);
    box-shadow: none;
  }
  .om-shell.is-sidebar-open .om-sidebar { transform: none; box-shadow: var(--om-shadow-lg); }
  .om-backdrop {
    display: block; position: fixed; inset: 0; z-index: 35;
    background: rgba(15, 23, 42, .35);
    opacity: 0; pointer-events: none; transition: opacity .25s var(--om-ease);
  }
  .om-shell.is-sidebar-open .om-backdrop { opacity: 1; pointer-events: auto; }
  .om-topbar { padding: 0 12px; gap: 8px; }
  .om-account-meta { display: none; }
  .om-content { padding: 20px 16px; }
  .om-auth-wrap { grid-template-columns: 1fr; }
  .om-auth-brand { display: none; }
}

@media (max-width: 560px) {
  .om-grid--3, .om-dl, .om-dl--2 { grid-template-columns: 1fr; }
  .om-dropdown-menu--wide { position: fixed; left: 12px; right: 12px; top: calc(var(--om-topbar-h) - 4px); min-width: 0; }
  .om-toasts { left: 16px; right: 16px; }
  .om-toast { min-width: 0; }
  .om-profile { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   2-ci mərhələ: Poçt (siyahı, oxuma paneli, yeni mesaj)
   ========================================================================== */
.om-content--flush { padding: 0; max-width: none; gap: 0; }
.om-btn.is-active { box-shadow: 0 0 0 3px var(--om-primary-ring); }
.om-btn--danger-ghost { background: transparent; color: var(--om-danger); }
.om-btn--danger-ghost:hover { background: var(--om-danger-soft); }
.om-link-btn { border: 0; background: none; color: var(--om-primary); font-weight: 600; font-size: 13px; cursor: pointer; padding: 6px 4px; }
.om-link-btn:hover { color: var(--om-primary-hover); }
.is-hidden { display: none !important; }
.om-inline-form { display: inline; margin: 0; }
.om-spacer { flex: 1; }
.om-badge--warn { background: #FFF7ED; color: var(--om-warning); height: 18px; font-size: 11px; padding: 0 7px; }
.om-avatar--muted { background: #F1F5F9; color: var(--om-muted); }
.om-card-head--pad { padding: 18px 20px 6px; margin: 0; }
.om-stat--link { color: inherit; }
.om-stat--link:hover { color: inherit; border-color: #C7D7FE; }
.om-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--om-primary); margin-right: 6px; vertical-align: middle; flex: none; }
.om-flip { transform: rotate(90deg); }

/* İki sütunlu poçt görünüşü */
.om-mail { display: grid; grid-template-columns: minmax(320px, 400px) minmax(0, 1fr); height: calc(100vh - var(--om-topbar-h)); }
.om-mail-list { min-width: 0; display: flex; flex-direction: column; min-height: 0; background: var(--om-surface); border-right: 1px solid var(--om-border); }
.om-mail-list-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 14px; border-bottom: 1px solid var(--om-border); }
.om-mail-rows { flex: 1; overflow-y: auto; }
.om-mail-list .om-pager { border-top: 1px solid var(--om-border); }

.om-mail-row {
  position: relative; display: flex; gap: 12px; padding: 14px 20px;
  border-bottom: 1px solid #F1F3F6; color: var(--om-text-2);
  transition: background .12s var(--om-ease);
}
.om-mail-row:hover { background: #F8FAFC; color: var(--om-text-2); }
.om-mail-row.is-selected { background: var(--om-primary-soft); }
.om-mail-row.is-selected::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--om-primary); }
.om-mail-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.om-mail-row-top { display: flex; align-items: baseline; gap: 8px; }
.om-mail-row-name { flex: 1; min-width: 0; font-weight: 500; color: var(--om-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.om-mail-row-date { font-size: 12px; color: var(--om-faint); flex: none; }
.om-mail-row-subject { display: flex; align-items: center; gap: 4px; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.om-mail-row-snippet { font-size: 12.5px; color: var(--om-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.om-mail-row.is-unread .om-mail-row-name, .om-mail-row.is-unread .om-mail-row-subject { font-weight: 650; color: var(--om-text); }
.om-mail-row.is-unread .om-mail-row-date { color: var(--om-primary); font-weight: 600; }

.om-pager { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; }

.om-mail-reader { min-width: 0; overflow-y: auto; background: var(--om-surface); }
.om-empty--reader { height: 100%; justify-content: center; }
.om-empty--reader .om-icon { width: 40px; height: 40px; }

.om-reader { max-width: 860px; padding: 20px 32px 48px; animation: om-fade-up .25s var(--om-ease); }
.om-reader-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--om-border); }
.om-reader-subject { font-size: 22px; font-weight: 650; letter-spacing: -.02em; line-height: 1.3; margin: 22px 0 18px; word-break: break-word; }
.om-reader-meta { display: flex; gap: 12px; align-items: flex-start; }
.om-reader-people { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.om-reader-date { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.om-reader-body { margin-top: 24px; font-size: 14.5px; line-height: 1.7; color: var(--om-text); white-space: pre-wrap; word-break: break-word; }

.om-receipts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 16px; padding: 10px 12px; background: var(--om-surface-2); border: 1px solid var(--om-border); border-radius: var(--om-radius); }
.om-receipt { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 500; background: #F1F5F9; color: var(--om-muted); }
.om-receipt.is-read { background: var(--om-success-soft); color: var(--om-success); }

/* Yeni mesaj */
.om-compose { display: flex; flex-direction: column; }
.om-compose > .om-alert { margin: 16px 20px 0; }
.om-compose-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 20px; border-bottom: 1px solid var(--om-border); }
.om-compose-label { width: 64px; flex: none; padding-top: 10px; font-size: 13px; font-weight: 600; color: var(--om-muted); }
.om-compose-field { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.om-compose-field > .om-input { border-color: transparent; padding-left: 4px; }
.om-compose-field > .om-input:focus { border-color: var(--om-primary); padding-left: 12px; }
.om-compose-body { padding: 16px 20px; }
.om-textarea { height: auto; min-height: 280px; padding: 12px; line-height: 1.65; resize: vertical; }
.om-compose-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--om-border); background: var(--om-surface-2); border-radius: 0 0 var(--om-radius-lg) var(--om-radius-lg); }

/* Alıcı seçici */
.om-picker { position: relative; }
.om-picker-box { display: none; }
.om-picker.is-enhanced .om-picker-native { display: none; }
.om-picker.is-enhanced .om-picker-box {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  min-height: 42px; padding: 5px 6px; border: 1px solid transparent; border-radius: var(--om-radius); cursor: text;
  transition: border-color .15s var(--om-ease), box-shadow .15s var(--om-ease);
}
.om-picker.is-enhanced .om-picker-box:focus-within { border-color: var(--om-primary); box-shadow: 0 0 0 4px var(--om-primary-ring); }
.om-picker-chips { display: contents; }
.om-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 4px 0 3px; border-radius: 999px; background: var(--om-primary-soft); color: var(--om-navy); font-size: 13px; font-weight: 500; animation: om-fade-up .15s var(--om-ease); }
.om-chip .om-avatar { width: 22px; height: 22px; font-size: 9.5px; }
.om-chip button { display: grid; place-items: center; width: 20px; height: 20px; border: 0; border-radius: 50%; background: transparent; color: var(--om-navy); cursor: pointer; }
.om-chip button:hover { background: rgba(30, 58, 138, .1); }
.om-chip .om-icon { width: 13px; height: 13px; }
.om-picker-input { flex: 1; min-width: 140px; height: 30px; border: 0; outline: 0; background: transparent; font: inherit; color: var(--om-text); }
.om-picker-input::placeholder { color: var(--om-faint); }
.om-picker-native { min-height: 120px; padding: 6px; }
.om-picker-menu {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20;
  max-height: 300px; overflow-y: auto; padding: 6px;
  background: var(--om-surface); border: 1px solid var(--om-border); border-radius: var(--om-radius-lg); box-shadow: var(--om-shadow-lg);
  display: none;
}
.om-picker-menu.is-open { display: block; }
.om-picker-option { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: var(--om-radius-sm); background: transparent; text-align: left; cursor: pointer; color: var(--om-text); }
.om-picker-option.is-active, .om-picker-option:hover { background: #F1F5F9; }
.om-picker-option small { display: block; color: var(--om-muted); font-size: 12px; }
.om-picker-empty { padding: 10px; color: var(--om-muted); font-size: 13px; }

.om-only-narrow { display: none; }

@media (max-width: 1100px) {
  .om-mail { grid-template-columns: minmax(0, 1fr); }
  .om-mail .om-mail-reader { display: none; }
  .om-mail.has-selection .om-mail-list { display: none; }
  .om-mail.has-selection .om-mail-reader { display: block; }
  .om-mail-list { border-right: 0; }
  .om-only-narrow { display: inline-grid; }
}
@media (max-width: 560px) {
  .om-reader { padding: 16px 16px 40px; }
  .om-reader-meta { flex-wrap: wrap; }
  .om-reader-date { align-items: flex-start; flex-direction: row; width: 100%; padding-left: 52px; }
  .om-compose-row { padding: 8px 12px; gap: 8px; }
  .om-compose-label { width: 48px; }
  .om-compose-body { padding: 12px; }
  .om-compose-actions { padding: 12px; }
  .om-hide-mobile { display: none; }
  .om-mail-row { padding: 12px 16px; }
}

/* ==========================================================================
   3-cü mərhələ: Ulduz, Arxiv, Silinmişlər, axtarış, filtrlər, toplu seçim
   ========================================================================== */
.om-kbd { font: 600 11px/18px var(--om-font); color: var(--om-faint); border: 1px solid var(--om-border); border-radius: 5px; padding: 0 6px; background: var(--om-surface); }
.om-search:focus-within { border-color: var(--om-primary); box-shadow: 0 0 0 4px var(--om-primary-ring); background: var(--om-surface); }
.om-search:focus-within .om-kbd { display: none; }

.om-mail-list-head { gap: 12px; }
.om-mail-list-title { min-width: 0; }
.om-mail-list-title .om-h2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.om-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 16px; border-bottom: 1px solid var(--om-border); }
.om-select {
  height: 30px; max-width: 100%; padding: 0 26px 0 10px;
  border: 1px solid var(--om-border); border-radius: 999px; background-color: var(--om-surface);
  font: 500 12.5px var(--om-font); color: var(--om-text-2); cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center; background-size: 12px;
}
.om-select:hover { border-color: var(--om-border-strong); }
.om-select:focus { outline: 0; border-color: var(--om-primary); box-shadow: 0 0 0 3px var(--om-primary-ring); }

.om-bulkbar { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 4px 12px 4px 20px; border-bottom: 1px solid var(--om-border); background: var(--om-surface-2); }
.om-bulk-actions { margin-left: auto; display: flex; gap: 2px; }
.om-icon-btn:disabled { opacity: .35; cursor: default; background: transparent; }
.om-icon-btn--danger:hover:not(:disabled) { background: var(--om-danger-soft); color: var(--om-danger); }
.om-check--sm input { width: 15px; height: 15px; }

/* Sətir: avatar üzərində seçim qutusu, ulduz */
.om-mail-row { align-items: flex-start; }
.om-row-select { position: relative; flex: none; width: 32px; height: 32px; cursor: pointer; z-index: 2; }
.om-row-check {
  position: absolute; inset: 0; margin: 0; width: 32px; height: 32px; opacity: 0; cursor: pointer;
}
.om-row-select::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--om-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 16px no-repeat;
  border: 1.5px solid var(--om-border-strong); opacity: 0; transition: opacity .12s var(--om-ease); pointer-events: none;
}
.om-mail-row:hover .om-row-select::after, .is-selecting .om-row-select::after { opacity: 1; }
.om-row-select:has(.om-row-check:checked)::after { opacity: 1; background-color: var(--om-primary); border-color: var(--om-primary); }
.om-row-check:focus-visible + * , .om-row-select:has(.om-row-check:focus-visible) { outline: 2px solid var(--om-primary); outline-offset: 2px; border-radius: 50%; }
.om-mail-row:has(.om-row-check:checked) { background: #F3F7FF; }

.om-mail-row-link { color: inherit; }
.om-mail-row-link:hover { color: inherit; }
.om-mail-row-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.om-truncate { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.om-tag { flex: none; font-size: 10.5px; font-weight: 600; color: var(--om-muted); background: #F1F5F9; border-radius: 4px; padding: 0 5px; line-height: 16px; }

.om-star {
  position: relative; z-index: 2; flex: none; display: grid; place-items: center;
  width: 28px; height: 28px; margin: -4px -6px 0 0; border: 0; border-radius: var(--om-radius-sm);
  background: transparent; color: #CBD5E1; cursor: pointer; opacity: 0;
  transition: opacity .12s var(--om-ease), color .12s var(--om-ease), transform .12s var(--om-ease);
}
.om-mail-row:hover .om-star, .om-star.is-on, .om-star:focus-visible { opacity: 1; }
.om-star:hover { color: #F59E0B; transform: scale(1.1); }
.om-star.is-on { color: #F59E0B; }
.om-star.is-on .om-icon { fill: currentColor; }
.om-reader-toolbar .om-star { opacity: 1; margin: 0; width: 38px; height: 38px; color: var(--om-text-2); }
.om-reader-toolbar .om-star.is-on { color: #F59E0B; }

.om-banner { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 10px 14px; border-radius: var(--om-radius); background: #FFF7ED; color: #9A3412; font-size: 13px; border: 1px solid #FED7AA; }
.om-list-foot { padding: 10px 20px; border-top: 1px solid var(--om-border); margin: 0; }

@media (hover: none) {
  .om-star { opacity: 1; }
}

/* ==========================================================================
   4-cü mərhələ: İşçi kataloqu və Rəhbər paneli
   ========================================================================== */
.om-mb { margin-bottom: 16px; }
.om-eyebrow a { color: var(--om-muted); }
.om-eyebrow a:hover { color: var(--om-primary); }
.om-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.om-btn--sm { height: 30px; padding: 0 10px; font-size: 12.5px; }

.om-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.om-toolbar--card { padding: 14px 16px; border-bottom: 1px solid var(--om-border); }
.om-search--inline { flex: 1 1 260px; max-width: 420px; background: var(--om-surface); }

.om-people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.om-person { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 24px 18px 18px; transition: box-shadow .2s var(--om-ease), transform .2s var(--om-ease), border-color .2s var(--om-ease); }
.om-person:hover { box-shadow: var(--om-shadow-sm); transform: translateY(-2px); border-color: #D6DEEA; }
.om-person .om-avatar--xl { margin-bottom: 10px; }
.om-person-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.om-person-name { font-weight: 600; font-size: 15px; }
.om-person-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 6px; min-height: 22px; }
.om-person-email { color: var(--om-muted); margin-top: 6px; word-break: break-all; }
.om-person-action { position: relative; z-index: 2; margin-top: 12px; }

.om-profile-hero { overflow: hidden; }
.om-profile-cover { height: 96px; background: radial-gradient(600px 160px at 10% 0%, rgba(59,130,246,.45), transparent 70%), linear-gradient(120deg, #0B1B4D, #1E3A8A 60%, #2563EB); }
.om-profile-hero-body { display: flex; align-items: center; gap: 18px; padding: 14px 24px 20px; flex-wrap: wrap; }
.om-profile-hero-body > .om-avatar { align-self: flex-start; margin-top: -50px; }
.om-profile-hero-body .om-profile-main { flex: 1; min-width: 200px; padding-bottom: 2px; }
.om-avatar--ring { box-shadow: 0 0 0 4px var(--om-surface); }

.om-stat-icon--green { background: var(--om-success-soft); color: var(--om-success); }

.om-table-wrap { position: relative; overflow-x: auto; }
.om-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.om-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--om-muted); padding: 10px 16px; background: var(--om-surface-2); border-bottom: 1px solid var(--om-border); white-space: nowrap; }
.om-table td { padding: 12px 16px; border-bottom: 1px solid #F1F3F6; vertical-align: middle; }
.om-table tbody tr { transition: background .12s var(--om-ease); }
.om-table tbody tr:hover { background: #FAFBFD; }
.om-table tbody tr:last-child td { border-bottom: 0; }
.om-table tr.is-inactive .om-cell-user { opacity: .55; }
.om-cell-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.om-cell-user-text { min-width: 0; }
.om-cell-user-text > div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.om-cell-actions { text-align: right; white-space: nowrap; }
.om-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--om-muted); }
.om-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--om-faint); }
.om-status--on { color: var(--om-success); }
.om-status--on::before { background: var(--om-success); box-shadow: 0 0 0 3px var(--om-success-soft); }

.om-form-layout { display: flex; flex-direction: column; gap: 16px; max-width: 820px; }
.om-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.om-field-help { font-size: 12px; color: var(--om-muted); }
.om-field.has-error .om-input { border-color: var(--om-danger); }
.om-input--select { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer;
  background: var(--om-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 14px; }
.om-input-suffix { display: flex; align-items: stretch; }
.om-input-suffix .om-input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.om-input-suffix span { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--om-border-strong); border-left: 0; border-radius: 0 var(--om-radius) var(--om-radius) 0; background: var(--om-surface-2); color: var(--om-muted); font-size: 13px; white-space: nowrap; }

@media (max-width: 720px) {
  .om-form-grid { grid-template-columns: 1fr; }
  .om-table th, .om-table td { padding: 10px 12px; }
  .om-cell-actions .om-btn--sm { padding: 0 6px; }
}

/* ==========================================================================
   5-ci mərhələ: Şirkət elanları və Bildirişlər
   ========================================================================== */
.om-icon--xs { width: 13px; height: 13px; }
.om-avatar--sm { width: 22px; height: 22px; font-size: 9.5px; }
.om-head-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.om-badge--danger { background: var(--om-danger-soft); color: #B91C1C; }
.om-badge--pin { gap: 4px; background: #F1F5F9; color: var(--om-text-2); }

/* Zəng və bildiriş menyusu */
.om-bell { position: relative; }
.om-bell-badge {
  position: absolute; top: 4px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; background: var(--om-danger); color: #fff; font-size: 10.5px; font-weight: 700;
  line-height: 17px; text-align: center; box-shadow: 0 0 0 2px var(--om-surface);
  animation: om-pop .3s var(--om-ease);
}
@keyframes om-pop { from { transform: scale(.4); } to { transform: none; } }
.om-notif-menu { min-width: 380px; padding: 0; overflow: hidden; }
.om-notif-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; margin: 0; }
.om-notif-list { max-height: 380px; overflow-y: auto; }
.om-notif-all { display: block; padding: 10px; text-align: center; font-size: 13px; font-weight: 600; border-top: 1px solid var(--om-border); background: var(--om-surface-2); }
.om-notif {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px;
  border-bottom: 1px solid #F1F3F6; color: var(--om-text-2); transition: background .12s var(--om-ease);
}
.om-notif:hover { background: #F8FAFC; color: var(--om-text-2); }
.om-notif.is-unread { background: #F7FAFF; }
.om-notif.is-unread:hover { background: #EFF4FF; }
.om-notif-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.om-notif-title { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--om-text); }
.om-notif-title .om-icon { color: var(--om-muted); flex: none; }
.om-notif.is-unread .om-notif-title { font-weight: 650; }
.om-notif-text { font-size: 12.5px; color: var(--om-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.om-notif-time { font-size: 11.5px; color: var(--om-faint); }
.om-notif .om-dot { margin: 6px 0 0; }
.om-notif-page { overflow: hidden; }
.om-notif-page .om-notif { padding: 14px 20px; }
.om-notif-page .om-notif-text { white-space: normal; }

/* Tablar */
.om-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--om-border); }
.om-tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--om-muted); font-weight: 600; font-size: 13.5px; }
.om-tab:hover { color: var(--om-text); }
.om-tab.is-active { color: var(--om-navy); border-bottom-color: var(--om-primary); }

/* Elanlar */
.om-ann-list { display: flex; flex-direction: column; gap: 12px; }
.om-ann { position: relative; display: flex; gap: 16px; padding: 20px 22px; transition: box-shadow .2s var(--om-ease), border-color .2s var(--om-ease); }
.om-ann:hover { box-shadow: var(--om-shadow-sm); border-color: #D6DEEA; }
.om-ann.is-unread { border-left: 3px solid var(--om-primary); padding-left: 20px; }
.om-ann.is-important .om-ann-icon { background: var(--om-danger-soft); color: var(--om-danger); }
.om-ann-icon { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--om-radius); background: var(--om-primary-soft); color: var(--om-primary); }
.om-ann-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.om-ann-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.om-ann-tags:empty { display: none; }
.om-ann-title { margin: 0; font-size: 16.5px; font-weight: 650; letter-spacing: -.01em; }
.om-ann.is-unread .om-ann-title { color: var(--om-navy); }
.om-ann-excerpt { margin: 0; color: var(--om-text-2); line-height: 1.6; }
.om-ann-meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--om-muted); }
.om-ann-detail { padding: 28px 32px 36px; display: flex; flex-direction: column; gap: 16px; }
.om-ann-detail.is-important { border-top: 3px solid var(--om-danger); }
.om-ann-detail-title { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.025em; line-height: 1.25; }
.om-ann-detail .om-reader-body { margin-top: 8px; }
.om-receipts--plain { margin: 0; padding: 0; background: none; border: 0; }
.om-field--check { justify-content: center; }

/* Ana səhifə: son elanlar */
.om-mini-ann { display: flex; flex-direction: column; }
.om-mini-ann a { display: flex; gap: 12px; align-items: center; padding: 12px 20px; border-top: 1px solid #F1F3F6; color: var(--om-text-2); }
.om-mini-ann a:hover { background: #F8FAFC; }
.om-mini-ann .om-strong { color: var(--om-text); }
.om-home-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; align-items: start; }

@media (max-width: 1024px) { .om-home-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .om-notif-menu { min-width: 0; }
  .om-ann { padding: 16px; gap: 12px; }
  .om-ann-icon { display: none; }
  .om-ann-detail { padding: 20px 18px 28px; }
  .om-ann-detail-title { font-size: 21px; }
}
.om-ann-icon--sm { width: 32px; height: 32px; }
.om-ann-icon--sm.is-important { background: var(--om-danger-soft); color: var(--om-danger); }

/* ==========================================================================
   6-cı mərhələ: parametrlər, profil şəkli, fayl əlavələri
   ========================================================================== */
[hidden] { display: none !important; }
.om-h3 { font-size: 15px; font-weight: 650; letter-spacing: -.01em; margin: 0; }
.om-avatar--img { background: #E2E8F0; overflow: hidden; }
.om-avatar--img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.om-avatar--xxl { width: 96px; height: 96px; font-size: 32px; }
.om-btn--danger-text { color: var(--om-danger); }
.om-btn--danger-text:hover { background: var(--om-danger-soft); color: var(--om-danger); }

/* Parametrlər səhifəsi */
.om-settings { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin-top: 20px; }
.om-settings-section { display: flex; flex-direction: column; gap: 18px; }
.om-settings-head { display: flex; flex-direction: column; gap: 4px; }
.om-settings-head--sub { padding-top: 18px; border-top: 1px solid var(--om-border); }
.om-settings-row { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.om-settings-foot { justify-content: flex-end; align-items: center; gap: 16px; }
.om-settings-foot .om-small { margin-right: auto; }
.om-allowed { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; }
.om-field code { font-size: 12px; background: #F1F5F9; padding: 1px 5px; border-radius: 4px; }

.om-avatar-edit { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.om-avatar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.om-avatar-actions form { display: flex; gap: 8px; flex-wrap: wrap; }
.om-avatar-actions > p { flex-basis: 100%; margin: 0; }
.om-file-btn { position: relative; overflow: hidden; cursor: pointer; }
.om-file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.om-file-btn:focus-within { box-shadow: 0 0 0 3px var(--om-primary-ring); }

/* Açar (switch) */
.om-switch-list { display: flex; flex-direction: column; border: 1px solid var(--om-border); border-radius: var(--om-radius); }
.om-switch { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; cursor: pointer; }
.om-switch + .om-switch { border-top: 1px solid var(--om-border); }
.om-switch:hover { background: var(--om-surface-2); }
.om-switch-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.om-switch-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.om-switch-track { position: relative; flex: none; width: 38px; height: 22px; border-radius: 999px; background: #CBD5E1; transition: background .18s var(--om-ease); }
.om-switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .25); transition: transform .18s var(--om-ease); }
.om-switch-input:checked + .om-switch-track { background: var(--om-primary); }
.om-switch-input:checked + .om-switch-track::after { transform: translateX(16px); }
.om-switch-input:focus-visible + .om-switch-track { box-shadow: 0 0 0 3px var(--om-primary-ring); }

/* Yazma pəncərəsində fayllar */
.om-compose-files { display: flex; flex-direction: column; gap: 10px; padding: 0 20px 16px; }
.om-compose-files > p { margin: 0; }
.om-files { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.om-files:empty { display: none; }
.om-file { position: relative; display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 6px 6px 10px; border: 1px solid var(--om-border); border-radius: var(--om-radius-sm); background: var(--om-surface-2); font-size: 13px; }
.om-file > .om-icon { color: var(--om-muted); }
.om-file-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; color: var(--om-text); }
a.om-file-name:hover { color: var(--om-primary); }
.om-file-size { color: var(--om-faint); font-size: 12px; flex: none; }
.om-file-x { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 5px; background: none; color: var(--om-muted); cursor: pointer; }
.om-file-x:hover { background: var(--om-danger-soft); color: var(--om-danger); }
.om-file.is-new { border-color: #BFD3FE; background: var(--om-primary-soft); }
.om-file.is-error { border-color: #FECACA; background: var(--om-danger-soft); color: #B91C1C; padding: 6px 10px; }
.om-file-remove-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.om-file-undo { display: none; font-size: 12.5px; font-weight: 600; color: var(--om-primary); cursor: pointer; padding: 0 6px; }
.om-file:has(.om-file-remove-input:checked) { opacity: .6; border-style: dashed; }
.om-file:has(.om-file-remove-input:checked) .om-file-name { text-decoration: line-through; }
.om-file:has(.om-file-remove-input:checked) .om-file-x { display: none; }
.om-file:has(.om-file-remove-input:checked) .om-file-undo { display: inline; }
.om-file-remove-input:focus-visible ~ .om-file-x { box-shadow: 0 0 0 3px var(--om-primary-ring); }

.om-dropzone { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 12px 14px; border: 1.5px dashed var(--om-border-strong); border-radius: var(--om-radius); color: var(--om-text-2); font-size: 13.5px; cursor: pointer; transition: border-color .15s, background .15s; }
.om-dropzone:hover, .om-dropzone:focus-within, .is-dragging .om-dropzone { border-color: var(--om-primary); background: var(--om-primary-soft); }
.om-dropzone > .om-icon { color: var(--om-primary); }
.om-dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.om-dropzone-hint { flex-basis: 100%; font-size: 12px; color: var(--om-muted); padding-left: 30px; }

/* Siyahıda kağız sıxacı */
.om-clip { flex: none; color: var(--om-faint); }

/* Oxuma panelində əlavələr */
.om-reader-files { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--om-border); }
.om-reader-files-title { display: flex; align-items: center; gap: 6px; margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--om-muted); }
.om-attach-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.om-attach { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--om-border); border-radius: var(--om-radius); background: var(--om-surface); color: var(--om-text); transition: border-color .15s, box-shadow .15s; }
.om-attach:hover { border-color: #BFD3FE; box-shadow: var(--om-shadow-sm); }
.om-attach-icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 8px; background: var(--om-primary-soft); color: var(--om-navy); font-size: 10px; font-weight: 700; letter-spacing: .02em; }
.om-attach-icon--pdf { background: #FEF2F2; color: #B91C1C; }
.om-attach-icon--xlsx, .om-attach-icon--xls, .om-attach-icon--csv, .om-attach-icon--ods { background: #ECFDF5; color: #047857; }
.om-attach-icon--pptx, .om-attach-icon--ppt { background: #FFF7ED; color: #C2410C; }
.om-attach-icon--png, .om-attach-icon--jpg, .om-attach-icon--jpeg, .om-attach-icon--gif, .om-attach-icon--webp { background: #F5F3FF; color: #6D28D9; }
.om-attach-icon--zip { background: #F1F5F9; color: #334155; }
.om-attach-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.om-attach-name { font-size: 13.5px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.om-attach-dl { color: var(--om-muted); flex: none; }
.om-attach:hover .om-attach-dl { color: var(--om-primary); }

@media (max-width: 560px) {
  .om-compose-files { padding: 0 12px 12px; }
  .om-file-name { max-width: 150px; }
  .om-avatar-edit { gap: 16px; }
  .om-avatar--xxl { width: 72px; height: 72px; font-size: 24px; }
  .om-dropzone-hint { padding-left: 0; }
}

/* ==========================================================================
   7-ci mərhələ: daxili çat
   ========================================================================== */
.om-faint { color: var(--om-faint); }
.om-btn--sm { height: 32px; padding: 0 10px; font-size: 13px; }
.om-avatar--group { background: var(--om-primary-soft); color: var(--om-navy); }

.om-chat { display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); height: calc(100vh - var(--om-topbar-h)); }
.om-chat-list { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--om-surface); border-right: 1px solid var(--om-border); }
.om-chat-items { flex: 1; overflow-y: auto; padding: 6px; }
.om-chat-item { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--om-radius); color: var(--om-text); transition: background .15s; }
.om-chat-item:hover { background: #F5F7FA; }
.om-chat-item.is-active { background: var(--om-primary-soft); }
.om-chat-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.om-chat-item-top, .om-chat-item-bottom { display: flex; align-items: center; gap: 8px; min-width: 0; }
.om-chat-item-name { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.om-chat-item-date { flex: none; font-size: 12px; color: var(--om-faint); }
.om-chat-item-last { flex: 1; min-width: 0; font-size: 13px; color: var(--om-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.om-chat-item.is-unread .om-chat-item-last { color: var(--om-text); font-weight: 550; }
.om-chat-item.is-unread .om-chat-item-date { color: var(--om-primary); font-weight: 600; }
.om-chat-unread { flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--om-primary); color: #fff; font-size: 11.5px; font-weight: 700; display: inline-grid; place-items: center; }

.om-chat-pane { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--om-bg); }
.om-chat-pane--empty { display: grid; place-items: center; }
.om-chat-pane--empty .om-btn { margin-top: 8px; }
.om-chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 20px; background: var(--om-surface); border-bottom: 1px solid var(--om-border); min-height: 68px; }
.om-chat-head-text { min-width: 0; flex: 1; }
.om-chat-head-text .om-truncate { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.om-chat-head-text .om-small { margin: 2px 0 0; }
.om-chat-head form { margin: 0; }
.om-chat-head .om-spacer { display: none; }
.om-chat-head > form, .om-chat-head > .om-btn { flex: none; }
.om-chat-scroll { flex: 1; overflow-y: auto; padding: 20px 24px 8px; overscroll-behavior: contain; }
.om-chat-messages { display: flex; flex-direction: column; gap: 3px; max-width: 860px; margin: 0 auto; }
.om-chat-start { text-align: center; padding: 40px 0; }
.om-chat-start p { margin: 2px 0; }

.om-bubble-row { display: flex; align-items: flex-end; gap: 8px; animation: om-fade-up .2s var(--om-ease); }
.om-bubble-row.has-head { margin-top: 12px; }
.om-bubble-row.is-mine { justify-content: flex-end; }
.om-bubble-avatar { width: 32px; flex: none; align-self: flex-start; }
.om-bubble-row.has-head .om-bubble-avatar { margin-top: 18px; }
.om-bubble-wrap { display: flex; flex-direction: column; max-width: min(72%, 560px); min-width: 0; }
.om-bubble-row.is-mine .om-bubble-wrap { align-items: flex-end; }
.om-bubble-name { font-size: 12px; font-weight: 600; color: var(--om-muted); margin: 0 0 3px 4px; }
.om-bubble { padding: 9px 13px; border-radius: 16px; background: var(--om-surface); border: 1px solid var(--om-border); color: var(--om-text); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; box-shadow: var(--om-shadow-xs); }
.om-bubble-row:not(.is-mine) .om-bubble { border-top-left-radius: 6px; }
.om-bubble-row.is-mine .om-bubble { background: var(--om-primary); border-color: var(--om-primary); color: #fff; border-top-right-radius: 6px; }
.om-bubble-time { font-size: 11px; color: var(--om-faint); margin: 2px 6px 0; opacity: 0; transition: opacity .15s; }
.om-bubble-row:hover .om-bubble-time, .om-bubble-row:focus-within .om-bubble-time, .om-bubble-row.has-head .om-bubble-time { opacity: 1; }
.om-bubble-row.has-head .om-bubble-time { order: 3; }
.om-bubble-row.is-pending .om-bubble { opacity: .6; }

.om-chat-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding: 12px 20px 16px; background: var(--om-surface); border-top: 1px solid var(--om-border); }
.om-chat-input { flex: 1; min-width: 0; resize: none; max-height: 160px; min-height: 42px; padding-top: 10px; padding-bottom: 10px; line-height: 1.45; }
.om-chat-send { height: 42px; }
.om-chat-error { flex-basis: 100%; margin: 0; }
.om-chat-banner { margin: 0; border-radius: 0; }

.om-chat-new-body { padding: 20px 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; max-width: 640px; width: 100%; }
.om-chat-new-body .om-form { display: flex; flex-direction: column; gap: 16px; }
.om-people-pick { display: flex; flex-direction: column; gap: 4px; border: 0; padding: 0; margin: 0; min-width: 0; }
.om-people-pick legend { margin-bottom: 8px; padding: 0; }
.om-person-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 1px solid var(--om-border); border-radius: var(--om-radius); background: var(--om-surface); cursor: pointer; text-align: left; font: inherit; color: inherit; transition: border-color .15s, background .15s; }
.om-person-row:hover { border-color: #BFD3FE; background: #FBFCFF; }
.om-person-row input { width: 16px; height: 16px; accent-color: var(--om-primary); flex: none; }
.om-person-row:has(input:checked) { border-color: var(--om-primary); background: var(--om-primary-soft); }
.om-person-row-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.om-person-row-text > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.om-person-row-go { color: var(--om-faint); }
.om-person-row--btn:hover .om-person-row-go { color: var(--om-primary); }

@media (max-width: 860px) {
  .om-chat { grid-template-columns: minmax(0, 1fr); }
  .om-chat.has-selection .om-chat-list { display: none; }
  .om-chat:not(.has-selection) .om-chat-pane { display: none; }
  .om-chat-list { border-right: 0; }
  .om-chat-head { padding: 10px 12px; gap: 10px; }
  .om-chat-scroll { padding: 14px 12px 6px; }
  .om-chat-form { padding: 10px 12px 12px; gap: 8px; }
  .om-bubble-wrap { max-width: 82%; }
  .om-chat-new-body { padding: 16px; }
}

/* ==========================================================================
   8-ci mərhələ: tapşırıqlar
   ========================================================================== */
.om-text-danger { color: var(--om-danger); }
.om-tag--danger { color: #B91C1C; background: var(--om-danger-soft); }
.om-tag .om-icon--xs { width: 10px; height: 10px; vertical-align: -1px; }
.om-task-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.om-task-form.om-narrow { max-width: 760px; }
.om-form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.om-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.om-board-col { background: #EEF1F5; border-radius: var(--om-radius-lg); padding: 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.om-board-head { display: flex; align-items: center; gap: 8px; padding: 2px 4px; }
.om-board-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--om-faint); }
.om-board-col--in_progress .om-board-dot { background: var(--om-primary); }
.om-board-col--done .om-board-dot { background: var(--om-success); }
.om-board-count { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--om-muted); background: var(--om-surface); border-radius: 999px; padding: 1px 8px; }
.om-board-list { display: flex; flex-direction: column; gap: 8px; }
.om-board-empty { margin: 0; padding: 16px 8px; text-align: center; font-size: 13px; color: var(--om-faint); border: 1.5px dashed #D5DBE3; border-radius: var(--om-radius); }

.om-task { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; background: var(--om-surface); border: 1px solid var(--om-border); border-radius: var(--om-radius); box-shadow: var(--om-shadow-xs); transition: border-color .15s, box-shadow .15s; }
.om-task:hover { border-color: #C7D7FE; box-shadow: var(--om-shadow-sm); }
.om-task.is-overdue { border-left: 3px solid var(--om-danger); }
.om-task.is-done .om-task-title { color: var(--om-muted); text-decoration: line-through; text-decoration-color: var(--om-faint); }
.om-task-link { display: flex; flex-direction: column; gap: 6px; color: var(--om-text); }
.om-task-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.om-task-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.om-task-tags:empty { display: none; }
.om-task-title { font-size: 14px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.om-task-foot { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--om-muted); min-width: 0; }
.om-task-who { display: inline-flex; align-items: center; gap: 6px; min-width: 0; margin-right: auto; }
.om-task-meta, .om-task-due { display: inline-flex; align-items: center; gap: 4px; flex: none; }
.om-task-due.is-overdue { color: var(--om-danger); font-weight: 600; }
.om-task-due.is-today { color: var(--om-warning); font-weight: 600; }
.om-task-move { position: relative; z-index: 1; display: flex; gap: 6px; border-top: 1px solid #F1F3F6; padding-top: 8px; margin: 0; }
.om-task-move-btn { border: 0; background: var(--om-primary-soft); color: var(--om-navy); font: inherit; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 6px; cursor: pointer; }
.om-task-move-btn:hover { background: #DCE7FF; }
.om-task-move-btn--back { background: #F1F5F9; color: var(--om-text-2); }
.om-task-move-btn--back:hover { background: #E2E8F0; }
.om-task-move-btn:last-child { margin-left: auto; }
.om-task-move-btn:only-child { margin-left: 0; }

/* Tapşırıq səhifəsi */
.om-task-detail { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.om-task-main { display: flex; flex-direction: column; gap: 16px; }
.om-task-detail-title { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; overflow-wrap: anywhere; }
.om-task-side { display: flex; flex-direction: column; gap: 16px; }
.om-task-side .om-dl { grid-template-columns: 1fr; gap: 14px; }
.om-person-inline { display: flex; align-items: center; gap: 8px; }
.om-status { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #F1F5F9; color: var(--om-text-2); }
.om-status--in_progress { background: var(--om-primary-soft); color: var(--om-navy); }
.om-status--done { background: var(--om-success-soft); color: #047857; }

.om-status-switch { display: inline-flex; flex-wrap: wrap; align-self: flex-start; padding: 3px; gap: 3px; background: #F1F5F9; border-radius: var(--om-radius); }
.om-status-opt { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 600; color: var(--om-muted); padding: 7px 14px; border-radius: 8px; cursor: pointer; }
.om-status-opt:hover { color: var(--om-text); background: rgba(255, 255, 255, .6); }
.om-status-opt.is-active { background: var(--om-surface); color: var(--om-navy); box-shadow: var(--om-shadow-xs); cursor: default; }
.om-status-opt--done.is-active { color: #047857; }

.om-task-comments { display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--om-border); padding-top: 16px; }
.om-timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.om-timeline-event { font-size: 12.5px; color: var(--om-muted); padding-left: 42px; position: relative; }
.om-timeline-event::before { content: ""; position: absolute; left: 13px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--om-border-strong); }
.om-comment { display: flex; gap: 10px; }
.om-comment-body { flex: 1; min-width: 0; background: var(--om-surface-2); border: 1px solid var(--om-border); border-radius: var(--om-radius); padding: 10px 12px; }
.om-comment-body p { margin: 4px 0 0; font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; }
.om-comment-form { display: flex; gap: 10px; align-items: flex-start; }
.om-comment-form textarea { flex: 1; min-width: 0; resize: vertical; }

@media (max-width: 1024px) {
  .om-board { grid-template-columns: minmax(0, 1fr); }
  .om-task-detail { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .om-form-grid--3 { grid-template-columns: minmax(0, 1fr); }
  .om-comment-form > .om-avatar { display: none; }
  .om-comment-form { flex-wrap: wrap; }
  .om-comment-form .om-btn { margin-left: auto; }
  .om-task-detail-title { font-size: 20px; }
}
.om-task-form textarea { min-height: 140px; resize: vertical; }

/* ==========================================================================
   9-cu mərhələ: təqvim
   ========================================================================== */
.om-flip-h { transform: rotate(90deg); }
.om-flip-r { transform: rotate(-90deg); }
.om-mt-sm { margin: 6px 0 0; }
.om-tag--warn { color: var(--om-warning); background: #FFF7ED; }

.om-cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.om-cal { overflow: hidden; }
.om-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--om-border); }
.om-cal-nav { display: flex; align-items: center; gap: 4px; }
.om-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.om-cal-wd { padding: 8px 10px; font-size: 11.5px; font-weight: 600; color: var(--om-muted); text-transform: none; border-bottom: 1px solid var(--om-border); background: var(--om-surface-2); }
.om-cal-day { min-height: 112px; padding: 6px; border-right: 1px solid #EEF1F4; border-bottom: 1px solid #EEF1F4; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.om-cal-day:nth-child(7n) { border-right: 0; }
.om-cal-day.is-out { background: #FAFBFC; }
.om-cal-day.is-out .om-cal-num { color: var(--om-faint); }
.om-cal-num { align-self: flex-start; display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--om-text-2); }
.om-cal-num:hover { background: var(--om-primary-soft); color: var(--om-primary); }
.om-cal-day.is-today .om-cal-num { background: var(--om-primary); color: #fff; }
.om-cal-events { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.om-cal-ev { display: flex; gap: 5px; align-items: baseline; min-width: 0; padding: 3px 6px; border-radius: 5px; font-size: 12px; line-height: 1.3; background: var(--om-primary-soft); color: var(--om-navy); border-left: 3px solid var(--om-primary); }
.om-cal-ev:hover { background: #DCE7FF; }
.om-cal-ev.is-company { background: #ECFDF5; color: #065F46; border-left-color: var(--om-success); }
.om-cal-ev.is-pending { background: #FFF7ED; color: #9A3412; border-left-color: #F59E0B; }
.om-cal-ev.is-declined { opacity: .55; text-decoration: line-through; }
.om-cal-ev-time { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.om-cal-ev-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.om-cal-more { font-size: 11.5px; color: var(--om-muted); padding-left: 6px; }
.om-cal-legend { display: flex; flex-wrap: wrap; gap: 16px; padding: 10px 18px; font-size: 12px; color: var(--om-muted); border-top: 1px solid var(--om-border); }
.om-cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.om-cal-key { width: 10px; height: 10px; border-radius: 3px; background: var(--om-primary); }
.om-cal-key.is-company { background: var(--om-success); }
.om-cal-key.is-pending { background: #F59E0B; }

.om-cal-side { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.om-cal-side .om-h3 { margin-bottom: 6px; }
.om-agenda { display: flex; gap: 12px; padding: 10px; border-radius: var(--om-radius); color: var(--om-text); }
.om-agenda:hover { background: #F5F7FA; }
.om-agenda-date { flex: none; width: 44px; height: 48px; border-radius: 10px; background: var(--om-primary-soft); color: var(--om-navy); display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; line-height: 1.1; }
.om-agenda-date b { font-size: 18px; font-weight: 700; }
.om-agenda.is-company .om-agenda-date { background: #ECFDF5; color: #065F46; }
.om-agenda-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; align-items: flex-start; }
.om-agenda-body .om-truncate { max-width: 100%; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.om-event-form { max-width: 820px; }
.om-event-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; color: var(--om-text-2); }
.om-event-facts li { display: flex; align-items: center; gap: 10px; }
.om-event-facts .om-icon { color: var(--om-muted); }
.om-status--company { background: #ECFDF5; color: #047857; }
.om-rsvp { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: var(--om-radius); background: var(--om-surface-2); border: 1px solid var(--om-border); }
.om-rsvp p { margin: 0; }
.om-rsvp--accepted.is-active { color: #047857; }
.om-rsvp--declined.is-active { color: var(--om-danger); }
.om-attendees { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.om-attendees li { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13.5px; }
.om-attendees .om-truncate { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.om-rsvp-badge { flex: none; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: #F1F5F9; color: var(--om-muted); }
.om-rsvp-badge--accepted { background: var(--om-success-soft); color: #047857; }
.om-rsvp-badge--tentative { background: #FFF7ED; color: var(--om-warning); }
.om-rsvp-badge--declined { background: var(--om-danger-soft); color: #B91C1C; }

@media (max-width: 1100px) { .om-cal-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .om-cal-day { min-height: 64px; padding: 3px; }
  .om-cal-wd { padding: 6px 2px; text-align: center; font-size: 10.5px; }
  .om-cal-num { min-width: 22px; height: 22px; font-size: 11.5px; padding: 0 4px; }
  .om-cal-ev { padding: 0; border: 0; height: 5px; border-radius: 3px; background: var(--om-primary); }
  .om-cal-ev.is-company { background: var(--om-success); }
  .om-cal-ev.is-pending { background: #F59E0B; }
  .om-cal-ev > span { display: none; }
  .om-cal-more { font-size: 10px; padding: 0; }
  .om-cal-head { padding: 12px; }
}
.om-event-form .om-picker.is-enhanced .om-picker-box { border: 1px solid var(--om-border); border-radius: var(--om-radius); padding: 5px 8px; background: var(--om-surface); min-height: 42px; }
.om-event-form .om-picker.is-enhanced .om-picker-box:focus-within { border-color: var(--om-primary); box-shadow: 0 0 0 3px var(--om-primary-ring); }
.om-event-form textarea { min-height: 110px; resize: vertical; }

/* --- 11-ci mərhələ: xarici (real internet) e-poçt --- */
.om-tag--ext, .om-badge--ext { color: #92400E; background: #FEF3C7; }
.om-badge--ext { border: 1px solid #FDE68A; }
.om-banner--soft { background: var(--om-primary-soft); color: var(--om-navy); border-color: #DBE4FF; flex-wrap: wrap; }
.om-reader-html { display: block; width: 100%; min-height: 360px; margin-top: 18px; border: 0; background: #fff; }
.om-picker-ext-label { display: block; margin-top: 8px; }
.om-picker.is-enhanced .om-picker-ext, .om-picker.is-enhanced .om-picker-ext-label { display: none; }
.om-chip--ext { background: #FFFBEB; border-color: #FDE68A; }
.om-chip--ext .om-avatar { background: #F59E0B; }
.om-ext-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; border-radius: 999px; padding: 2px 10px; }
.om-ext-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.om-ext-status--ok { color: #15803D; background: #DCFCE7; }
.om-ext-status--warn { color: #B45309; background: #FEF3C7; }
.om-ext-status--error { color: #B91C1C; background: #FEE2E2; }
.om-ext-status--off { color: var(--om-muted); background: #F1F5F9; }
.om-ext-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.om-ext-table th, .om-ext-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--om-border); vertical-align: middle; }
.om-ext-table th { font-size: 12px; font-weight: 600; color: var(--om-muted); text-transform: uppercase; letter-spacing: .03em; }
.om-ext-error { color: #B91C1C; font-size: 12.5px; margin-top: 2px; }
.om-ext-results { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.om-ext-results li { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; }
.om-ext-results .is-ok { color: #15803D; } .om-ext-results .is-bad { color: #B91C1C; }
@media (max-width: 720px) {
  .om-ext-table thead { display: none; }
  .om-ext-table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--om-border); }
  .om-ext-table td { display: block; border: 0; padding: 3px 0; }
}
.om-inline-person { display: inline-flex; align-items: center; gap: 8px; }
.om-settings-head .om-ext-status { align-self: flex-start; }
