/* Fachowiec24 R25.14-B — responsive account, certification and approval surfaces */
:root { --f24-r2514b-safe-bottom: env(safe-area-inset-bottom, 0px); }

[data-f24-r2514b-account="r2514b"] { min-width: 0; overflow-x: clip; }
[data-f24-r2514b-account="r2514b"] * { min-width: 0; }
[data-f24-r2514b-account="r2514b"] [data-f24-r2514b-form] input,
[data-f24-r2514b-account="r2514b"] [data-f24-r2514b-form] select,
[data-f24-r2514b-account="r2514b"] [data-f24-r2514b-form] textarea,
[data-f24-r2514b-account="r2514b"] [data-f24-r2514b-form] button { max-width: 100%; }
[data-f24-r2514b-account="r2514b"] [data-f24-r2514b-form] input,
[data-f24-r2514b-account="r2514b"] [data-f24-r2514b-form] select,
[data-f24-r2514b-account="r2514b"] [data-f24-r2514b-form] button { min-height: 44px; }
[data-f24-r2514b-account="r2514b"] [data-f24-r2514b-form] textarea { min-height: 108px; resize: vertical; }
[data-f24-r2514b-account="r2514b"] [data-f24-r2514b-form="role"] { overflow: hidden; }

#f24-r2514b-status-button {
  position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(18px + var(--f24-r2514b-safe-bottom)); z-index: 2147482500;
  border: 0; border-radius: 999px; min-height: 46px; max-width: min(360px, calc(100vw - 32px)); padding: 0 20px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff; font: 800 13px/1.2 system-ui, sans-serif;
  box-shadow: 0 14px 36px rgba(79,70,229,.32); cursor: pointer;
}
#f24-r2514b-status-button:focus-visible { outline: 3px solid #a5b4fc; outline-offset: 3px; }
#f24-r2514b-status-button[hidden] { display: none !important; }

#f24-r2514b-toast {
  position: fixed; left: 50%; bottom: calc(82px + var(--f24-r2514b-safe-bottom)); transform: translateX(-50%); z-index: 2147483001;
  width: min(560px, calc(100vw - 28px)); padding: 13px 16px; border: 1px solid #a7f3d0; border-radius: 14px;
  background: #ecfdf5; color: #065f46; font: 700 13px/1.45 system-ui, sans-serif; box-shadow: 0 18px 45px rgba(15,23,42,.2);
}
#f24-r2514b-toast[data-kind="error"] { border-color: #fecaca; background: #fff1f2; color: #9f1239; }
#f24-r2514b-toast[hidden] { display: none !important; }

#f24-r2514b-modal { position: fixed; inset: 0; z-index: 2147483000; display: grid; place-items: center; padding: 20px; }
#f24-r2514b-modal .f24-r2514b-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(15,23,42,.68); backdrop-filter: blur(3px); }
#f24-r2514b-modal .f24-r2514b-panel {
  position: relative; width: min(760px, 100%); max-height: min(820px, calc(100dvh - 40px)); overflow: auto; overscroll-behavior: contain;
  border: 1px solid #e2e8f0; border-radius: 24px; background: #fff; color: #0f172a; box-shadow: 0 30px 90px rgba(15,23,42,.35);
}
#f24-r2514b-modal header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid #e2e8f0; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); }
#f24-r2514b-modal h2, #f24-r2514b-modal h3 { margin: 0; font-family: system-ui, sans-serif; }
#f24-r2514b-modal h2 { font-size: clamp(18px, 3vw, 23px); }
#f24-r2514b-modal h3 { font-size: 15px; }
#f24-r2514b-modal .f24-r2514b-close { flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid #cbd5e1; border-radius: 13px; background: #fff; color: #334155; font-size: 26px; cursor: pointer; }
#f24-r2514b-modal .f24-r2514b-body { display: grid; gap: 18px; padding: 20px; font: 500 14px/1.5 system-ui, sans-serif; }
#f24-r2514b-modal .f24-r2514b-body[data-error="true"] { color: #be123c; }
#f24-r2514b-modal .f24-r2514b-summary { display: grid; gap: 8px; padding: 14px; border: 1px solid #c7d2fe; border-radius: 15px; background: #eef2ff; }
#f24-r2514b-modal [data-status="pending"] { color: #92400e; }
#f24-r2514b-modal [data-status="approved"] { color: #047857; }
#f24-r2514b-modal [data-status="rejected"], #f24-r2514b-modal .f24-r2514b-reason { color: #be123c; }
#f24-r2514b-modal .f24-r2514b-docs { display: grid; gap: 9px; }
#f24-r2514b-modal .f24-r2514b-docs article { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 14px; padding: 11px 13px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; }
#f24-r2514b-modal .f24-r2514b-docs small { flex-basis: 100%; }
#f24-r2514b-modal .f24-r2514b-muted { margin: 5px 0 0; color: #64748b; }
#f24-r2514b-application-form { display: grid; gap: 15px; padding: 18px; border-radius: 18px; background: #0f172a; color: #fff; }
#f24-r2514b-application-form .f24-r2514b-muted { color: #cbd5e1; }
#f24-r2514b-application-form .f24-r2514b-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
#f24-r2514b-application-form label { display: grid; align-content: start; gap: 6px; font-weight: 750; font-size: 12px; }
#f24-r2514b-application-form input, #f24-r2514b-application-form select, #f24-r2514b-application-form textarea {
  width: 100%; min-height: 44px; box-sizing: border-box; border: 1px solid #475569; border-radius: 11px; padding: 10px 12px; background: #1e293b; color: #fff; font: 500 16px/1.35 system-ui, sans-serif;
}
#f24-r2514b-application-form textarea { min-height: 112px; resize: vertical; }
#f24-r2514b-application-form button[type="submit"] { min-height: 46px; border: 0; border-radius: 12px; padding: 10px 16px; background: #6366f1; color: #fff; font-weight: 800; cursor: pointer; }
#f24-r2514b-application-form button:disabled { opacity: .6; cursor: wait; }

@media (max-width: 900px) {
  [data-f24-r2514b-account="r2514b"] [data-f24-r2514b-form="role"] > .grid,
  [data-f24-r2514b-account="r2514b"] [data-f24-r2514b-form="role"] .md\:grid-cols-2 { grid-template-columns: minmax(0, 1fr) !important; }
  [data-f24-r2514b-account="r2514b"] [data-f24-r2514b-form] { padding: 18px !important; border-radius: 20px !important; }
}

@media (max-width: 640px) {
  [data-f24-r2514b-account="r2514b"] [data-f24-r2514b-form] { padding: 14px !important; }
  [data-f24-r2514b-account="r2514b"] [data-f24-r2514b-form] .grid { grid-template-columns: minmax(0, 1fr) !important; gap: 12px !important; }
  [data-f24-r2514b-account="r2514b"] [data-f24-r2514b-form] .sm\:flex-row { flex-direction: column !important; align-items: stretch !important; }
  #f24-r2514b-status-button { right: 12px; bottom: calc(74px + var(--f24-r2514b-safe-bottom)); max-width: calc(100vw - 24px); min-height: 44px; }
  #f24-r2514b-modal { align-items: end; padding: 0; }
  #f24-r2514b-modal .f24-r2514b-panel { width: 100%; max-height: calc(100dvh - 12px); border-radius: 22px 22px 0 0; padding-bottom: var(--f24-r2514b-safe-bottom); }
  #f24-r2514b-modal header { padding: 13px 14px; }
  #f24-r2514b-modal .f24-r2514b-body { gap: 14px; padding: 14px; }
  #f24-r2514b-application-form { padding: 14px; }
  #f24-r2514b-application-form .f24-r2514b-grid { grid-template-columns: minmax(0, 1fr); }
  #f24-r2514b-toast { bottom: calc(128px + var(--f24-r2514b-safe-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  #f24-r2514b-modal *, #f24-r2514b-status-button { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
