:root {
  color-scheme: dark;
  --bg: #090909;
  --panel: #111111;
  --panel-soft: #171717;
  --ink: #f1f1f1;
  --muted: #999999;
  --line: #292929;
  --accent: #c5a66d;
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
.site-header { height: 68px; max-width: 1200px; margin: auto; padding: 0 28px; display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 650; letter-spacing: .1px; }
.brand-mark { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid #555; border-radius: 50%; color: var(--accent); font-size: 9px; font-weight: 750; letter-spacing: -.4px; }
.directory { max-width: 1200px; min-height: calc(100vh - 68px); margin: 0 auto; padding: 46px 28px 80px; }
.page-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 22px; }
.eyebrow { margin: 0 0 8px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: 1.3px; }
.page-heading h1, .admin-top h1 { margin: 0; font-size: 32px; font-weight: 600; letter-spacing: -.8px; }
.profile-count { color: var(--muted); font-size: 11px; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 23px; }
.filter-chip { padding: 6px 11px; border: 1px solid var(--line); border-radius: 99px; color: #b5b5b5; font-size: 10px; transition: background .18s,border-color .18s,color .18s; }
.filter-chip:hover, .filter-chip.active { border-color: #eee; background: #eee; color: #111; }
.profile-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 25px 18px; }
.profile-card { min-width: 0; display: block; }
.card-photo-wrap { position: relative; width: 100%; aspect-ratio: .84; overflow: hidden; background: #1b1b1b; }
.card-photo { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 35%; transition: transform .35s ease; }
.profile-card:hover .card-photo { transform: scale(1.025); }
.card-photo-wrap:after { content: ""; position: absolute; inset: 58% 0 0; background: linear-gradient(transparent,rgba(0,0,0,.45)); pointer-events: none; }
.photo-tag { position: absolute; z-index: 1; left: 11px; bottom: 11px; display: inline-flex; align-items: center; min-height: 25px; padding: 0 9px; border-radius: 2px; background: var(--accent, #555); color: #fff; font-size: 9px; font-weight: 650; }
.card-arrow { position: absolute; z-index: 1; right: 11px; bottom: 11px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: rgba(0,0,0,.72); color: white; font-size: 12px; opacity: 0; transition: opacity .18s; }
.profile-card:hover .card-arrow { opacity: 1; }
.card-copy { padding: 11px 1px 0; }
.card-copy h2 { margin: 0; font-size: 15px; font-weight: 550; letter-spacing: -.15px; }
.card-copy p { margin: 4px 0 0; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.empty-state { padding: 24px 0; color: var(--muted); font-size: 13px; }.error-state a { margin-left: 7px; color: var(--ink); text-decoration: underline; }
.profile-detail { max-width: 1100px; min-height: calc(100vh - 68px); margin: auto; padding: 30px 28px 70px; }
.back-link { display: inline-block; color: var(--muted); font-size: 11px; }.back-link:hover,.login-back:hover { color: var(--ink); }
.detail-layout { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(280px,.95fr); gap: 7%; align-items: center; padding: 26px 3% 0; }
.detail-image-wrap { position: relative; max-height: 680px; aspect-ratio: .82; overflow: hidden; background: var(--panel); }
.detail-image { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center 35%; }
.detail-image-wrap:after { content: ""; position: absolute; inset: 65% 0 0; background: linear-gradient(transparent,rgba(0,0,0,.42)); pointer-events: none; }
.detail-tag { left: 14px; bottom: 14px; }
.detail-copy h1 { margin: 0 0 17px; font-size: clamp(30px,4vw,44px); line-height: 1.15; font-weight: 600; letter-spacing: -1px; }
.detail-copy p { max-width: 420px; margin: 0; color: #b7b7b7; font-size: 14px; line-height: 1.85; white-space: pre-line; }
.login-wrap { min-height: calc(100vh - 68px); display: grid; place-items: start center; padding: 100px 20px 60px; }
.login-form { width: min(100%,360px); padding: 28px; border: 1px solid var(--line); background: var(--panel); }
.login-form h1 { margin: 0 0 24px; font-size: 24px; font-weight: 600; letter-spacing: -.4px; }
.login-form label, .profile-form > label, .form-two label { display: block; margin: 15px 0 6px; color: #c5c5c5; font-size: 10px; font-weight: 600; }
.login-form input:not([type=hidden]), .profile-form input:not([type=hidden]):not([type=file]):not([type=color]), .profile-form textarea { width: 100%; border: 1px solid #353535; border-radius: 2px; outline: none; background: #0c0c0c; color: var(--ink); padding: 10px 11px; font-size: 12px; }
.login-form input:focus, .profile-form input:focus, .profile-form textarea:focus { border-color: #aaa !important; }
.button { min-height: 36px; display: inline-flex; justify-content: center; align-items: center; padding: 0 14px; border: 1px solid transparent; border-radius: 2px; cursor: pointer; font-size: 10px; font-weight: 650; transition: background .18s,border-color .18s; }
.button-dark { margin-top: 19px; background: #efefef; color: #111; }.button-dark:hover { background: #ccc; }
.login-form .button-dark { width: 100%; }
.login-back { display: block; margin-top: 15px; color: var(--muted); text-align: center; font-size: 10px; }
.flash-stack { width: min(900px,calc(100% - 40px)); margin: 14px auto -25px; }.flash { margin: 6px 0; padding: 10px 12px; border: 1px solid var(--line); background: var(--panel); font-size: 11px; }.flash-error { border-color: #783a35; color: #edb4ad; }.flash-success { border-color: #456048; color: #c0d8c2; }
.admin-page { max-width: 1200px; margin: auto; padding: 43px 28px 75px; }.admin-top { display: flex; justify-content: space-between; align-items: end; padding-bottom: 21px; border-bottom: 1px solid var(--line); }.admin-top h1 { font-size: 28px; }.admin-actions { display: flex; align-items: center; gap: 8px; }.admin-actions form { margin: 0; }
.button-outline { border-color: #444; background: transparent; color: var(--ink); }.button-outline:hover { background: #1c1c1c; }.button-quiet { background: transparent; color: var(--muted); }.button-quiet:hover { color: var(--ink); }
.admin-layout { display: grid; grid-template-columns: minmax(300px,.9fr) minmax(360px,1.1fr); gap: 16px; padding-top: 18px; align-items: start; }.editor-panel,.managed-panel { padding: 20px; border: 1px solid var(--line); background: var(--panel); }.panel-heading { padding-bottom: 14px; border-bottom: 1px solid var(--line); }.panel-heading h2,.managed-head h2 { margin: 0; font-size: 16px; font-weight: 600; }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }.color-input { height: 36px; display: flex; align-items: center; gap: 9px; padding: 3px 9px; border: 1px solid #353535; color: var(--muted); font-size: 10px; }.color-input input[type=color] { width: 22px; height: 22px; padding: 0; border: 0; background: transparent; cursor: pointer; }.color-input input::-webkit-color-swatch-wrapper { padding: 0; }.color-input input::-webkit-color-swatch { border: 0; border-radius: 50%; }
.profile-form textarea { min-height: 88px; resize: vertical; line-height: 1.55; }.optional { color: #858585; font-weight: 400; }
.upload-zone { min-height: 58px; display: flex !important; align-items: center; gap: 10px; margin: 7px 0 0 !important; padding: 9px 10px; border: 1px dashed #444; cursor: pointer; }.upload-zone:hover { border-color: #888; }.upload-zone input { display: none; }.upload-icon { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid #3b3b3b; border-radius: 50%; color: var(--accent); font-size: 15px; }.upload-zone strong,.upload-zone small { display: block; }.upload-zone strong { font-size: 10px; }.upload-zone small { margin-top: 3px; color: var(--muted); font-size: 8px; font-weight: 400; }.form-submit { width: 100%; }
.cancel-edit { display: block; margin-top: 10px; color: var(--muted); text-align: center; font-size: 10px; }
.managed-head { padding-bottom: 14px; border-bottom: 1px solid var(--line); }.managed-head h2 span { margin-left: 4px; color: var(--muted); font-size: 11px; font-weight: 400; }
.managed-list { display: flex; flex-direction: column; }.managed-item { min-height: 70px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid #252525; }.managed-item:last-child { border-bottom: 0; }.managed-item > img { width: 40px; height: 48px; object-fit: cover; background: #222; }.managed-info { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }.managed-info strong { overflow: hidden; font-size: 12px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }.managed-info span { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 9px; }.managed-info i { width: 7px; height: 7px; border-radius: 50%; }.managed-buttons { display: flex; gap: 5px; }.managed-buttons form { margin: 0; }.icon-button { min-width: 42px; height: 27px; padding: 0 7px; border: 1px solid #383838; background: transparent; color: #c2c2c2; cursor: pointer; font-size: 9px; }.icon-button:hover { border-color: #888; color: white; }.delete-button:hover { border-color: #9a5048; color: #efb4ad; }.managed-empty { padding: 20px 0; color: var(--muted); font-size: 11px; }
@media (max-width: 720px) {
  .site-header { height: 60px; padding: 0 18px; }.directory { min-height: calc(100vh - 60px); padding: 31px 18px 55px; }.page-heading h1 { font-size: 28px; }.profile-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px 12px; }.card-photo-wrap { aspect-ratio: .78; }.card-copy h2 { font-size: 13px; }.card-copy p { font-size: 10px; }
  .profile-detail { min-height: calc(100vh - 60px); padding: 23px 18px 50px; }.detail-layout { grid-template-columns: 1fr; gap: 21px; padding: 20px 0 0; }.detail-image-wrap { width: 100%; max-height: none; aspect-ratio: .9; }.detail-copy h1 { font-size: 30px; }.detail-copy p { font-size: 13px; }
  .login-wrap { min-height: calc(100vh - 60px); padding-top: 60px; }.admin-page { padding: 29px 18px 50px; }.admin-top { align-items: start; gap: 15px; flex-direction: column; }.admin-layout { grid-template-columns: 1fr; }.editor-panel,.managed-panel { padding: 16px; }
}
@media (max-width: 390px) { .profile-grid { grid-template-columns: 1fr; }.card-photo-wrap { aspect-ratio: .9; } }
