.ownership-open[hidden] { display: none !important; }
.ownership-open { margin-top: 16px; border: 1px solid #36536a; border-radius: 8px; padding: 10px 14px; background: #172a3a; color: #9cd8ff; font: inherit; cursor: pointer; }
.ownership-dialog { width: min(1000px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); box-sizing: border-box; padding: 24px; border: 1px solid #354456; border-radius: 14px; background: #151f2d; color: #edf2f7; font-family: Inter, sans-serif; overflow-y: auto; color-scheme: dark; }
.ownership-dialog::backdrop { background: rgb(0 0 0 / 65%); }
.ownership-dialog-header, .ownership-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ownership-dialog h2 { margin: 0; font-size: 1.3rem; }
.ownership-dialog p { font-size: .9rem; line-height: 1.6; }
.ownership-dialog label { display: flex; flex-direction: column; gap: 7px; font-size: .85rem; color: #bdcadd; }
.ownership-dialog input, .ownership-dialog select { width: 100%; box-sizing: border-box; border: 1px solid #405167; border-radius: 7px; padding: 11px; background: #0d1521; color: #f5f8fc; font: inherit; min-width: 0; }
.ownership-dialog select { max-width: 400px; }
.ownership-dialog input:focus-visible, .ownership-dialog button:focus-visible, .ownership-dialog select:focus-visible { outline: 2px solid #7dd3fc; outline-offset: 2px; }
.ownership-dialog button { padding: 10px 14px; border: 1px solid #415069; border-radius: 7px; background: #223044; color: #edf2f7; cursor: pointer; font: inherit; }
.ownership-dialog button:disabled, .ownership-dialog input:disabled, .ownership-dialog select:disabled { opacity: .55; cursor: wait; }
.ownership-period { display: grid; grid-template-columns: 1fr 1fr .8fr 1.5fr auto; align-items: end; gap: 12px; padding: 16px; margin-bottom: 12px; background: #101927; border: 1px solid #2c3b4e; border-radius: 10px; }
.ownership-dialog .ownership-remove { color: #ffb4b4; font-size: .8rem; }
.ownership-dialog .ownership-primary { background: #7ac9f4; border-color: #7ac9f4; color: #071b2a; font-weight: 600; }
.ownership-dialog > label { margin-top: 18px; }
.ownership-actions { justify-content: flex-start; margin-top: 18px; flex-wrap: wrap; }
.ownership-muted, .ownership-audit { color: #aabbd0; }
.ownership-message { min-height: 1.6em; color: #a8dfb6; }
.ownership-message.ownership-error { color: #ffb4b4; }
.ownership-audit { border-top: 1px solid #2c3b4e; margin-top: 20px; overflow-wrap: anywhere; }
.ownership-audit h3 { font-size: .95rem; }
@media (max-width: 800px) { .ownership-period { grid-template-columns: 1fr 1fr; } .ownership-dialog { padding: 18px; } }
@media (max-width: 480px) { .ownership-period { grid-template-columns: 1fr; } .ownership-dialog-header { align-items: flex-start; } }
