/* Shared public and owner foundation. All assets are served locally. */
:root {
    color-scheme:dark;
    --bg:#0c1015;
    --panel:#121820;
    --panel-raised:#18212b;
    --border:#25303c;
    --text:#eef2f6;
    --muted:#96a3b3;
    --blue:#a4cef6;
    --blue-deep:#1a3550;
    --gold:#b99859;
    --danger:#f5a5a9;
    --radius:10px;
    font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    font-size:15px;
    line-height:1.6
}

* {
    box-sizing:border-box
}
body {
    margin:0;
    background:var(--bg);
    color:var(--text);
    min-height:100vh;
    display:flex;
    flex-direction:column
}
body::before {
    content:"";
    position:absolute;
    z-index:-1;
    inset:0 0 auto;
    height:500px;
    pointer-events:none;
    background:radial-gradient(ellipse at 75% 0,rgba(35,68,105,.12),transparent 60%)
}
a {
    color:inherit;
    text-decoration:none
}
button,input,textarea,select {
    font:inherit
}
button,a,input,textarea,select {
    -webkit-tap-highlight-color:transparent
}
button {
    cursor:pointer
}
img {
    display:block;
    max-width:100%
}
button {
    color:inherit
}
button:disabled {
    cursor:wait;
    opacity:.6
}
button .icon {
    flex-shrink:0
}
button[hidden],a[hidden],[hidden] {
    display:none!important
}
::selection {
    color:#fff;
    background:#325878
}
:focus-visible {
    outline:2px solid var(--blue);
    outline-offset:4px
}
.shell {
    width:min(1440px,calc(100% - 112px));
    margin-inline:auto
}
.site-header {
    height:106px;
    border-bottom:1px solid #ffffff0b;
    flex-shrink:0
}
.header-inner {
    height:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px
}
.brand {
    display:flex;
    align-items:center;
    gap:13px
}
.brand-avatar {
    width:46px;
    height:46px;
    object-fit:cover;
    border:1px solid #8299b733;
    border-radius:11px
}
.brand-monogram {
    position:relative;
    display:grid;
    place-items:center;
    color:var(--blue);
    font-weight:800;
    background:#1a2b3e;
    font-size:25px
}
.brand-monogram .pixel-dot {
    position:absolute;
    right:3px;
    bottom:4px
}
.brand-name {
    font-size:20px;
    font-weight:650;
    letter-spacing:-.6px;
    line-height:1.3
}
.brand-subtitle {
    display:block;
    font-family:ui-monospace,monospace;
    font-size:9px;
    font-weight:400;
    letter-spacing:1.6px;
    color:var(--muted);
    margin-top:5px
}
.header-side {
    display:flex;
    align-items:center;
    gap:24px
}
.header-note {
    display:flex;
    align-items:center;
    gap:10px;
    color:var(--muted);
    font-size:11px
}
.status-dot {
    display:inline-block;
    width:5px;
    height:5px;
    flex-shrink:0;
    border-radius:50%;
    background:var(--blue);
    box-shadow:0 0 12px #8ebdf04d
}
.text-link {
    display:inline-flex;
    gap:10px;
    align-items:center;
    font-size:13px;
    color:#c6d3e1
}
.text-link .icon {
    width:15px
}
.text-link:hover {
    color:var(--blue)
}
.gallery-main {
    flex:1;
    padding-top:44px;
    padding-bottom:38px
}
.gallery-heading {
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:24px;
    margin-bottom:28px
}
.eyebrow {
    font:10px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;
    letter-spacing:2px;
    color:var(--blue);
    display:block;
    font-weight:500
}
h1,h2,h3,p {
    margin:0
}
h1 {
    font-size:clamp(25px,2.6vw,38px);
    line-height:1.22;
    letter-spacing:-1.2px;
    font-weight:550;
    margin:12px 0
}
h1 em {
    font-family:Georgia,"Times New Roman",serif;
    font-weight:400;
    color:#d4dfed;
    letter-spacing:-1px
}
.gallery-heading p {
    font-size:13px;
    color:var(--muted)
}
.collection-count {
    display:flex;
    gap:11px;
    align-items:center;
    color:var(--muted);
    font-size:12px;
    white-space:nowrap;
    padding-bottom:4px
}
.collection-count .icon {
    color:#6685a5;
    width:17px
}
.collection-count strong {
    color:#d8e0e9;
    font-weight:500
}
.search-bar {
    position:relative;
    display:flex;
    align-items:center;
    gap:14px;
    background:#131a23;
    border:1px solid #2c3949;
    border-radius:8px;
    min-height:57px;
    padding:0 19px;
    box-shadow:0 3px 8px #0000000d
}
.search-bar:focus-within {
    border-color:#6d99c6;
    box-shadow:0 0 0 3px #78adf00a
}
.search-bar>.icon {
    color:#8cabc9;
    width:19px;
    flex-shrink:0
}
.search-bar input {
    flex:1;
    min-width:0;
    background:transparent;
    border:0;
    outline:none;
    color:var(--text);
    height:55px;
    font-size:13px
}
.search-bar input::placeholder {
    color:#7e8c9d
}
.search-bar kbd {
    font:12px ui-monospace,monospace;
    border:1px solid #ffffff20;
    color:#7f8c9e;
    border-radius:4px;
    padding:0 7px
}
.search-submit {
    background:none;
    border:0;
    color:var(--blue);
    font-size:12px;
    min-height:44px;
    padding-inline:7px
}
.search-clear.icon-button {
    width:30px;
    min-height:38px;
    background:none;
    border:0
}
.search-clear .icon {
    width:16px
}
.collection-toolbar {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin:28px 0 18px;
    font-size:12px;
    color:#d0d9e3
}
.sort-label {
    color:#8f9bab;
    display:flex;
    align-items:center;
    gap:9px;
    font-size:11px
}
.tiny-square {
    width:5px;
    height:5px;
    background:var(--blue);
    display:inline-block
}
.gallery-grid {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:25px 22px
}
.image-card {
    min-width:0;
    display:block
}
.card-picture {
    position:relative;
    aspect-ratio:16/10;
    overflow:hidden;
    background:#151f2c;
    border:1px solid #ffffff0d;
    border-radius:8px
}
.card-picture>img {
    width:100%;
    height:100%;
    object-fit:cover;
    transition:transform .45s ease,filter .45s
}
.image-card:hover .card-picture>img {
    transform:scale(1.035);
    filter:brightness(1.06)
}
.image-card:focus-visible {
    border-radius:8px
}
.card-picture::after {
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(transparent 70%,#00000025);
    pointer-events:none
}
.card-number {
    position:absolute;
    z-index:1;
    left:12px;
    top:12px;
    border:1px solid #ffffff24;
    background:#09101a99;
    backdrop-filter:blur(8px);
    font:11px ui-monospace,monospace;
    letter-spacing:.3px;
    padding:4px 8px;
    border-radius:4px;
    color:#f1f5f9
}
.card-open {
    position:absolute;
    z-index:1;
    right:10px;
    bottom:10px;
    background:#101a26d9;
    border:1px solid #ffffff25;
    border-radius:5px;
    padding:5px 8px;
    display:flex;
    align-items:center;
    gap:7px;
    font-size:10px;
    color:#e6edf5;
    opacity:0;
    transform:translateY(4px);
    transition:.2s
}
.card-open .icon {
    width:16px;
    height:16px
}
.image-card:hover .card-open,.image-card:focus .card-open {
    opacity:1;
    transform:translateY(0)
}
.card-caption {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    margin-top:11px;
    padding:0 2px
}
.card-caption h2 {
    font-size:13px;
    font-weight:500;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:#dbe3ed
}
.card-caption>span {
    color:#778699;
    font:10px ui-monospace,monospace;
    white-space:nowrap
}
.load-area {
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:12px;
    margin:30px auto 0
}
.button {
    min-height:44px;
    padding:10px 17px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    border:1px solid #344353;
    background:#18212b;
    border-radius:6px;
    font-size:12px;
    line-height:1.5;
    font-weight:550;
    color:#dce7f1;
    transition:background .2s,border-color .2s;
    white-space:nowrap
}
.button:hover {
    background:#223041;
    border-color:#5b7897
}
.button.primary {
    background:#a9cff3;
    border-color:#a9cff3;
    color:#101e2d;
    box-shadow:inset 0 1px 0 #ffffff2e
}
.button.primary:hover {
    background:#c4e0fb;
    border-color:#c4e0fb
}
.button .icon {
    width:17px;
    height:17px
}
.button.small {
    min-height:38px;
    padding:7px 13px
}
.button.danger {
    background:#48222b;
    border-color:#783e4d;
    color:#ffc6cc
}
.gallery-note {
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    color:#78889c;
    font-size:11px;
    margin:29px 0 0
}
.site-footer {
    border-top:1px solid #ffffff0c;
    min-height:93px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    color:#738195;
    font-size:10px
}
.footer-brand {
    color:#c0ccd9;
    font-size:12px;
    font-weight:550;
    display:flex;
    align-items:center;
    gap:9px
}
.pixel-dot {
    background:var(--blue);
    height:4px;
    width:4px;
    display:inline-block
}
.site-footer>span:last-child {
    color:#546174
}
.empty-state {
    position:relative;
    overflow:hidden;
    min-height:320px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    padding:40px 20px;
    border:1px solid #253447;
    border-radius:9px;
    background:radial-gradient(ellipse at 50% 40%,#182b4059,transparent 65%),linear-gradient(#25303b0f 1px,transparent 1px),linear-gradient(90deg,#25303b0f 1px,transparent 1px);
    background-size:auto,32px 32px,32px 32px
}
.empty-icon {
    width:52px;
    height:52px;
    display:grid;
    place-items:center;
    background:#1b2b3c;
    border:1px solid #38516b;
    border-radius:12px;
    margin-bottom:22px;
    color:var(--blue);
    box-shadow:0 0 50px #73aaff0d
}
.empty-icon .icon {
    width:25px;
    height:25px
}
.empty-state .eyebrow {
    font-size:8px;
    letter-spacing:2px;
    color:#789abd
}
.empty-state h2 {
    font-family:Georgia,serif;
    font-size:27px;
    font-weight:400;
    margin:9px 0 10px;
    line-height:1.3;
    color:#d9e6f3
}
.empty-state p {
    font-size:12px;
    line-height:1.8;
    color:#8293a8
}
.empty-state .button {
    margin-top:20px
}
.empty-coordinate {
    font:9px ui-monospace,monospace;
    color:#53697f;
    letter-spacing:1px;
    margin-top:27px
}
.icon-button {
    width:44px;
    min-height:44px;
    border:1px solid var(--border);
    border-radius:6px;
    background:var(--panel);
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0
}
.icon-button:hover {
    background:#253142
}
.image-viewer,.editor-dialog,.confirm-dialog {
    color:var(--text);
    padding:0;
    border:1px solid #3b4a5c;
    border-radius:12px;
    background:var(--panel);
    box-shadow:0 40px 160px #0009
}
.image-viewer::backdrop,.editor-dialog::backdrop,.confirm-dialog::backdrop {
    background:#05090fed;
    backdrop-filter:blur(10px)
}
body:has(dialog[open]) {
    overflow:hidden
}
.image-viewer {
    width:min(1200px,calc(100% - 64px));
    max-height:92dvh;
    overflow:auto
}
.viewer-close {
    position:absolute;
    right:15px;
    top:15px;
    z-index:1;
    background:#101923d9
}
.viewer-art {
    min-height:220px;
    background:#080c10;
    display:flex;
    align-items:center;
    justify-content:center
}
.viewer-art img {
    max-height:65dvh;
    width:100%;
    object-fit:contain
}
.viewer-info {
    display:flex;
    justify-content:space-between;
    gap:32px;
    padding:28px 32px
}
.viewer-info>div:first-child {
    min-width:0
}
.viewer-info h2 {
    font-size:25px;
    font-weight:500;
    line-height:1.3;
    letter-spacing:-.5px;
    margin:8px 0 12px;
    overflow-wrap:anywhere
}
.image-description {
    font-size:13px;
    color:#a2b2c3;
    line-height:1.8;
    white-space:pre-line;
    overflow-wrap:anywhere;
    margin:12px 0 18px
}
.file-meta {
    font:11px ui-monospace,monospace;
    color:#74899e
}
.image-actions {
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:10px;
    flex-shrink:0
}
.image-actions>span {
    font-size:10px;
    text-align:center;
    color:var(--muted);
    margin-top:3px
}
.image-actions .text-link {
    justify-content:center;
    font-size:11px;
    min-height:30px
}
.image-page {
    padding-top:28px;
    padding-bottom:50px;
    flex:1
}
.back-link {
    display:inline-flex;
    gap:9px;
    align-items:center;
    color:var(--muted);
    font-size:12px;
    min-height:44px
}
.back-link .icon {
    width:17px
}
.back-link:hover {
    color:var(--blue)
}
.standalone-preview {
    margin-top:18px;
    border:1px solid #243449;
    border-radius:9px;
    overflow:hidden;
    background:#06090d;
    display:flex;
    justify-content:center
}
.standalone-preview img {
    max-height:72dvh;
    height:auto;
    object-fit:contain
}
.image-details {
    display:flex;
    justify-content:space-between;
    gap:40px;
    margin-top:26px
}
.image-details>div:first-child {
    min-width:0
}
.image-details h1 {
    overflow-wrap:anywhere
}
.error-page {
    flex:1;
    padding-top:100px;
    padding-bottom:100px;
    text-align:center
}
.error-page p {
    color:var(--muted);
    margin:18px auto 25px;
    max-width:480px
}
.toast {
    position:fixed;
    z-index:100;
    bottom:25px;
    left:50%;
    transform:translateX(-50%);
    max-width:calc(100% - 32px);
    background:#c5def4;
    color:#10253b;
    border:1px solid #e0edfc;
    border-radius:8px;
    padding:12px 22px;
    font-size:13px;
    box-shadow:0 12px 35px #0005;
    text-align:center
}
.inline-error {
    color:#f8b6bd;
    font-size:12px;
    overflow-wrap:anywhere
}
.skip-link {
    position:fixed;
    z-index:200;
    left:12px;
    top:-100px;
    background:var(--blue);
    color:#09121d;
    padding:10px 20px
}
.skip-link:focus {
    top:12px
}
.sr-only {
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0
}
.subtle {
    color:var(--muted);
    font-size:11px
}
.is-loading {
    opacity:.45;
    pointer-events:none
}
.success-message {
    color:#a6d9bd;
    font-size:13px;
    margin:15px 0
}

@media(min-width:1750px) {
    .gallery-grid {
        grid-template-columns:repeat(4,minmax(0,1fr))
    }

}

@media(max-width:1100px) {
    .shell {
        width:calc(100% - 64px)
    }
    .gallery-grid {
        grid-template-columns:repeat(2,minmax(0,1fr))
    }
    .header-note {
        font-size:10px
    }
    .card-caption h2 {
        font-size:13px
    }

}

@media(max-width:680px) {
    .shell {
        width:calc(100% - 36px)
    }
    .site-header {
        height:84px
    }
    .brand-name {
        font-size:18px
    }
    .brand-avatar {
        height:42px;
        width:42px;
        border-radius:9px
    }
    .brand-subtitle {
        font-size:8px;
        letter-spacing:1.2px
    }
    .header-note {
        display:none
    }
    .header-side {
        gap:10px
    }
    .header-side .text-link {
        font-size:11px;
        gap:5px
    }
    .gallery-main {
        padding-top:28px
    }
    .gallery-heading {
        margin-bottom:22px;
        gap:8px
    }
    .gallery-heading h1 {
        font-size:28px;
        max-width:300px;
        line-height:1.2;
        margin-top:10px
    }
    .gallery-heading h1 em {
        display:block;
        margin-top:3px
    }
    .gallery-heading p {
        font-size:11px;
        max-width:260px;
        margin-top:12px
    }
    .collection-count {
        align-self:flex-start;
        margin-top:4px;
        font-size:10px;
        gap:5px
    }
    .collection-count .icon {
        display:none
    }
    .eyebrow {
        font-size:9px;
        letter-spacing:1.5px
    }
    .search-bar {
        padding-inline:13px;
        gap:9px;
        min-height:54px
    }
    .search-bar input {
        font-size:12px;
        height:52px
    }
    .search-bar kbd {
        display:none
    }
    .search-submit {
        font-size:11px
    }
    .collection-toolbar {
        margin:24px 0 15px
    }
    .gallery-grid {
        grid-template-columns:minmax(0,1fr);
        gap:24px
    }
    .card-picture {
        aspect-ratio:16/10
    }
    .card-caption {
        margin-top:10px
    }
    .card-caption h2 {
        font-size:14px
    }
    .card-caption>span {
        font-size:10px
    }
    .card-open {
        opacity:1;
        transform:none;
        padding:6px
    }
    .card-open>span {
        display:none
    }
    .site-footer {
        min-height:125px;
        display:grid;
        grid-template-columns:1fr auto;
        gap:6px 12px;
        padding:24px 0;
        align-content:center
    }
    .site-footer>span:last-child {
        grid-column:1/-1;
        font-size:9px
    }
    .site-footer>span:nth-child(2) {
        font-size:9px
    }
    .gallery-note {
        font-size:10px;
        gap:7px
    }
    .empty-state {
        padding:35px 15px;
        min-height:330px
    }
    .empty-state h2 {
        font-size:25px;
        max-width:260px
    }
    .image-viewer {
        width:calc(100% - 20px);
        max-height:95dvh;
        border-radius:9px
    }
    .viewer-art {
        padding-top:52px;
        min-height:150px
    }
    .viewer-art img {
        max-height:50dvh
    }
    .viewer-close {
        top:8px;
        right:8px;
        min-height:36px;
        width:36px
    }
    .viewer-info {
        padding:22px 18px;
        flex-direction:column;
        gap:23px
    }
    .viewer-info h2 {
        font-size:23px
    }
    .image-actions {
        display:grid;
        grid-template-columns:1fr 1fr;
        gap:8px
    }
    .image-actions .button {
        font-size:11px;
        padding:10px;
        gap:7px;
        white-space:normal
    }
    .image-actions .text-link,.image-actions>span {
        grid-column:1/-1
    }
    .image-details {
        flex-direction:column;
        gap:24px
    }
    .image-page {
        padding-top:15px
    }
    .standalone-preview {
        margin-top:10px
    }
    .file-meta {
        font-size:10px
    }
    .error-page {
        padding-top:80px
    }

}

@media(prefers-reduced-motion:reduce) {
    *,*::before,*::after {
        scroll-behavior:auto!important;
        transition:none!important;
        animation:none!important
    }

}

