[hidden] { display: none !important; }
.owner-main { min-height: 65vh; padding-top: 36px; padding-bottom: 48px; }
.owner-header-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 20px; font-size: .875rem; }
.owner-header-actions > a { color: var(--muted); }
.owner-intro h1 { margin: 0; font-size: 2rem; font-weight: 600; }
.owner-intro > p:last-child { margin: 10px 0 0; color: var(--muted); }
.owner-status { min-height: 1.7em; margin: 18px 0; color: #b5d2ff; font-size: 1rem; }
.owner-status.is-error { color: #ffb8b1; }
.owner-auth { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; max-width: 920px; margin-top: 24px; padding: 32px; background: #122337; border: 1px solid var(--line); border-radius: 16px; }
.auth-intro h2 { margin: 0 0 18px; font-size: 1.6rem; font-weight: 600; }
.auth-intro p { color: var(--muted); }
.owner-form { display: grid; gap: 18px; }
.owner-form label { display: grid; gap: 8px; color: #d3e0ef; font-size: 1rem; }
.owner-form input, .owner-form textarea { box-sizing: border-box; min-width: 0; width: 100%; padding: 12px; color: var(--ink); background: #0b1828; border: 1px solid #4d6688; border-radius: 7px; font: inherit; font-size: 1rem; }
.owner-form input[type="file"] { padding: 10px; }
.owner-form textarea { resize: vertical; min-height: 140px; }
.owner-form .button { justify-self: start; }
.form-hint { margin: 0; color: var(--muted); font-size: .875rem; line-height: 1.8; }
.space-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin: 24px 0; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.space-tabs { display: flex; flex-wrap: wrap; gap: 12px; }
.space-tabs button { min-height: 44px; padding: 8px 18px; color: #c0cee0; background: #122337; border: 1px solid var(--line); border-radius: 7px; }
.space-tabs button[aria-selected="true"] { color: #0b1523; background: var(--cyan); border-color: var(--cyan); }
.space-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; margin-bottom: 24px; }
.space-heading h2 { margin: 0; font-size: 1.6rem; font-weight: 600; }
.space-heading p { margin: 8px 0 0; color: var(--muted); }
.records-list { display: grid; gap: 20px; }
.record-item { padding: 24px; background: #122337; border: 1px solid var(--line); border-radius: 13px; }
.record-heading { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 14px; }
.record-item h3 { margin: 0 0 7px; font-size: 1.25rem; font-weight: 600; overflow-wrap: anywhere; }
.record-date { color: var(--muted); font-size: .875rem; }
.record-body { margin: 18px 0 0; color: #d3deec; white-space: pre-wrap; overflow-wrap: anywhere; }
.record-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.record-tags span { padding: 2px 9px; color: #bdd7ff; background: #243953; border-radius: 5px; font-size: .875rem; overflow-wrap: anywhere; }
.record-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.record-photo { min-width: 0; margin: 0; }
.record-photo img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 9px; background: #22324a; }
.record-photo a { display: block; }
.record-photo .original-link { margin-top: 7px; color: var(--cyan); font-size: .875rem; }
.space-empty { padding: 44px 24px; text-align: center; border: 1px dashed #47658e; border-radius: 13px; }
.space-empty h3 { margin: 0 0 12px; font-size: 1.25rem; font-weight: 600; }
.space-empty p { margin: 0; color: var(--muted); }
#load-more { margin-top: 24px; }
.record-dialog { width: min(680px, calc(100% - 40px)); max-height: calc(100% - 40px); overflow-y: auto; padding: 28px; color: var(--ink); background: #122337; border: 1px solid #47658e; border-radius: 14px; }
.record-dialog::backdrop { background: rgba(3, 9, 18, .8); }
.record-dialog h2 { margin: 8px 0 24px; font-size: 1.5rem; font-weight: 600; }
.editor-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.editor-actions span { color: var(--muted); font-size: .875rem; }
.editor-close { margin-bottom: 4px; }
@media (max-width: 700px) {
  .owner-auth { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
  .owner-header-actions { gap: 9px; }
  .owner-header-actions .button { min-height: 40px; padding: 0 10px; }
  .record-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .record-item { padding: 20px; }
  .record-dialog { padding: 22px; }
}
