.custom-select-native { display: none !important; }
.custom-select { display: inline-block; position: relative; width: 100%; min-width: 0; vertical-align: middle; }
.custom-select > .custom-select-button { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; min-height: 44px; padding: 12px 15px; border: 1px solid var(--line, #3b3a31); border-radius: 10px; background: #23231e; color: var(--text, #f4f1e7); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.custom-select-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.custom-select-chevron { width: 7px; height: 7px; flex-shrink: 0; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); color: var(--muted, #aaa99c); }
.custom-select > .custom-select-button:hover:not(:disabled), .custom-select > .custom-select-button[aria-expanded="true"] { border-color: var(--accent, #e3a16b); background: #2c271f; }
.custom-select > .custom-select-button:focus-visible { outline: 2px solid var(--accent, #e3a16b); outline-offset: 3px; }
.custom-select > .custom-select-button:disabled { opacity: .45; cursor: not-allowed; }
.custom-select-list { position: fixed; z-index: 500; overflow-y: auto; overscroll-behavior: contain; padding: 6px; border: 1px solid #56503f; border-radius: 11px; background: #26251f; box-shadow: 0 14px 42px #0008; box-sizing: border-box; scrollbar-width: thin; scrollbar-color: #6b5945 transparent; }
.custom-select-option { position: relative; padding: 10px 34px 10px 12px; border-radius: 6px; color: var(--text, #f4f1e7); font-size: 14px; line-height: 1.4; cursor: pointer; overflow-wrap: anywhere; }
.custom-select-option:hover, .custom-select-option.is-active { background: #3c3125; }
.custom-select-option[aria-selected="true"] { color: var(--accent, #e3a16b); background: #3b2d21; }
.custom-select-option[aria-selected="true"]::after { content: "✓"; position: absolute; right: 12px; top: 10px; }
.custom-select-option[aria-disabled="true"] { opacity: .4; cursor: not-allowed; }
.app-modal { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 24px; border: 0; background: transparent; color: var(--text, #f4f1e7); box-sizing: border-box; }
.app-modal[open] { display: grid; place-items: center; }
.app-modal::backdrop { background: #0009; backdrop-filter: blur(4px); }
.app-modal-card { width: min(420px, 100%); padding: 28px; border: 1px solid #4b4539; border-radius: 16px; background: #23231e; box-shadow: 0 24px 90px #0008; box-sizing: border-box; }
.app-modal-card h2 { margin: 0 0 16px; font-size: 21px; line-height: 1.4; }
.app-modal-card p { margin: 0; color: #bbb8ab; font-size: 14px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.app-modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 28px; }
.app-modal-actions button { min-width: 90px; min-height: 43px; border: 1px solid #504a3e; border-radius: 9px; padding: 11px 18px; font: inherit; font-size: 14px; cursor: pointer; }
.app-modal-cancel { color: #dedaca; background: #2c2b24; }
.app-modal-confirm { color: #25190f; background: var(--accent, #e3a16b); border-color: transparent !important; }
.app-modal-confirm.is-destructive { color: #fff0e9; background: #994d35; }
.app-modal-actions button:focus-visible { outline: 2px solid var(--accent, #e3a16b); outline-offset: 3px; }
@media (max-width: 600px) {
  .app-modal { padding: 18px; }
  .app-modal-card { padding: 24px; }
  .app-modal-actions button { flex: 1; }
}

.team-form label > .custom-select { margin-top: 9px; }
