.people-copy { min-width: 0; display: flex; flex-direction: column; }
.people-copy strong { font-size: 9px; }
.people-copy small { font-size: 8px; }
.people-copy .status { display: inline-flex; align-self: flex-start; margin-top: 2px; padding: 2px 4px; border-radius: 5px; background: var(--green); color: var(--green-ink); font-size: 7px; }
.rail-link { border: 0; background: transparent; color: #075fab; font-weight: 700; font-size: 9px; padding: 0; }

.page-wrap { max-width: 1090px; margin: 0 auto; padding: 20px 18px 42px; }
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 15px; }
.page-header h1 { font-size: 25px; letter-spacing: -.04em; margin-bottom: 5px; }
.page-header p { color: var(--muted); margin: 0; font-size: 11px; }
.primary-link { height: 31px; border: 0; border-radius: 7px; background: var(--blue); color: #fff; padding: 0 12px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 10px; }
.filterbar { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.filterbar button { position: relative; border: 0; background: transparent; padding: 0 0 10px; font-size: 10px; }
.filterbar button.active { font-weight: 700; }
.filterbar button.active::after { content: ""; position: absolute; height: 2px; left: 0; right: 0; bottom: -1px; background: #111; }
.directory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.directory-card { overflow: hidden; }
.directory-media { height: 118px; position: relative; overflow: hidden; background: #d7d2c8; border-bottom: 1px solid var(--line); display: flex; align-items: flex-end; padding: 8px; }
.directory-media::before { content: ""; position: absolute; inset: 15% 10%; border: 1px solid rgba(60,60,60,.22); }
.directory-media.has-image::before { display: none; }
.directory-media-image { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; opacity: 1; visibility: visible; z-index: 0; }
.directory-media span { position: relative; z-index: 2; font-size: 7px; background: rgba(255,255,255,.88); padding: 3px 5px; border-radius: 4px; }
.tone-2 { background: #d7cabc; }
.tone-3 { background: #c8d1cc; }
.tone-4 { background: #c8c5bd; }
.directory-copy { padding: 10px; }
.directory-label { font-size: 7px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.directory-copy h2 { font-size: 14px; line-height: 1.08; margin: 4px 0; }
.directory-copy p { color: var(--muted); font-size: 9px; min-height: 23px; margin-bottom: 8px; }
.directory-actions { display: flex; justify-content: space-between; align-items: center; padding-top: 7px; border-top: 1px solid #eeeae2; }
.directory-actions a, .directory-actions button { border: 0; background: transparent; font-weight: 700; font-size: 9px; padding: 0; display: flex; align-items: center; gap: 4px; }
.directory-actions button.active { color: #075fab; }

.form-card { max-width: 760px; padding: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 5px; margin-bottom: 12px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 9px; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); border-radius: 7px; background: #fff; padding: 9px 10px; outline: 0; font-size: 10px; }
.field textarea { min-height: 105px; resize: vertical; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.form-actions button { min-height: 31px; border: 1px solid var(--line-dark); border-radius: 7px; background: #fff; padding: 0 12px; font-weight: 700; font-size: 9px; }
.form-actions .save { background: #111; border-color: #111; color: #fff; }
.draft-note { color: var(--muted); font-size: 9px; margin-bottom: 13px; }

.detail-grid { display: grid; grid-template-columns: 1fr 270px; gap: 15px; }
.detail-main, .detail-side { min-width: 0; }
.detail-hero { height: 330px; background: #d6d1c7; position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: 12px; border-bottom: 1px solid var(--line); }
.detail-copy { padding: 15px; }
.detail-copy h1 { font-size: 25px; letter-spacing: -.04em; margin-bottom: 5px; }
.detail-copy p { font-size: 10px; color: #333; }
.detail-section { padding: 15px; border-top: 1px solid var(--line); }
.detail-section h2 { font-size: 14px; }
.detail-section p { font-size: 10px; line-height: 1.5; }
.detail-side .card { padding: 12px; margin-bottom: 12px; }
.detail-side h3 { font-size: 13px; }
.meta-list { display: grid; gap: 8px; }
.meta-row { display: flex; justify-content: space-between; gap: 12px; font-size: 9px; }
.meta-row span { color: var(--muted); }
.comments { display: grid; gap: 8px; }
.comment { display: flex; gap: 8px; padding: 8px 0; border-top: 1px solid #eeeae2; }
.comment:first-child { border-top: 0; }
.comment div { font-size: 9px; }
.comment strong { display: block; }

.empty-state { padding: 45px 20px; text-align: center; border: 1px dashed var(--line-dark); border-radius: 9px; background: rgba(255,255,255,.55); }
.empty-state h2 { font-size: 16px; }
.empty-state p { color: var(--muted); font-size: 10px; }

.overlay { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.25); display: grid; place-items: center; }
.modal { width: 390px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.18); padding: 15px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.modal-head h2 { margin: 0; font-size: 16px; }
.modal-head button { border: 0; background: transparent; font-size: 18px; }
.modal p { font-size: 10px; color: var(--muted); }
.modal textarea { width: 100%; min-height: 85px; border: 1px solid var(--line); border-radius: 7px; padding: 9px; resize: vertical; }
.modal-actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 10px; }
.modal-actions button { min-height: 30px; border: 1px solid var(--line); border-radius: 7px; background: #fff; padding: 0 11px; font-weight: 700; font-size: 9px; }
.modal-actions .primary { background: var(--blue); color: #fff; border-color: var(--blue); }

#toast-root { position: fixed; right: 18px; bottom: 18px; z-index: 120; display: grid; gap: 8px; }
.toast { min-width: 230px; max-width: 330px; padding: 10px 12px; border-radius: 8px; background: #171717; color: #fff; box-shadow: 0 8px 30px rgba(0,0,0,.2); font-size: 10px; animation: toast-in .18s ease-out; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }

@media (max-width: 1260px) {
  .home-grid { grid-template-columns: minmax(430px, 1.14fr) minmax(360px, 1fr) 220px; gap: 12px; padding-left: 12px; padding-right: 12px; }
}

.settings-links { display: flex; gap: 8px; margin-top: 4px; padding: 12px 0; border-top: 1px solid var(--line); }
.settings-links a { padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--blue); font-size: 9px; font-weight: 700; }