:root {
    color-scheme: dark;
    --bg: #141716;
    --panel: #1c201e;
    --line: #343b36;
    --muted: #a0aaa2;
    --text: #eeefe8;
    --accent: #8fbab6;
    --danger: #efa999;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font:
        15px/1.6 -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}
a {
    color: inherit;
    text-decoration: none;
}
a:hover {
    color: var(--accent);
}
button,
input,
textarea,
select {
    font: inherit;
}
button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    border: 1px solid var(--accent);
    border-radius: 5px;
    background: var(--accent);
    color: #172b2b;
    padding: 12px 21px;
    font-weight: 600;
    cursor: pointer;
}
button:hover,
.button:hover {
    filter: brightness(1.08);
    color: #172b2b;
}
button:disabled {
    opacity: 0.5;
    cursor: wait;
}
.secondary {
    background: transparent;
    color: var(--text);
    border-color: #4e6463;
}
.secondary:hover {
    color: var(--accent);
}
.danger {
    color: var(--danger);
    background: #352722;
    border-color: #724d43;
}
.text-button {
    border: 0;
    background: none;
    color: var(--muted);
    padding: 6px;
}
.small {
    padding: 8px 16px;
}
.full {
    width: 100%;
}
input:not([type="checkbox"]),
textarea,
select {
    width: 100%;
    border: 1px solid #414941;
    background: #151a17;
    border-radius: 5px;
    color: var(--text);
    padding: 12px;
    margin-top: 7px;
}
textarea {
    resize: vertical;
}
input:focus,
textarea:focus,
select:focus,
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
input[type="checkbox"] {
    accent-color: var(--accent);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
label {
    display: block;
    margin: 16px 0;
    color: #cbd0c9;
}
label.check {
    display: flex;
    align-items: center;
    gap: 10px;
}
.topbar {
    min-height: 90px;
    border-bottom: 1px solid var(--line);
    padding: 20px 5vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}
.brand {
    font-size: 27px;
    letter-spacing: -1.2px;
    font-weight: 700;
    white-space: nowrap;
}
.brand-symbol {
    color: var(--accent);
    font-size: 33px;
    margin-right: 10px;
}
.brand-dot {
    color: var(--accent);
}
nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-size: 13px;
}
nav form {
    margin: 0;
}
.avatar-link {
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    color: var(--accent);
}
main {
    max-width: 1390px;
    padding: 54px 5vw 80px;
    margin: auto;
    min-height: calc(100vh - 175px);
}
footer {
    border-top: 1px solid var(--line);
    padding: 22px 5vw;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted);
}
h1,
h2,
h3,
p {
    margin-top: 0;
}
h1 {
    font-size: clamp(32px, 4.5vw, 56px);
    line-height: 1.15;
    letter-spacing: -1.8px;
    font-weight: 500;
    margin-bottom: 18px;
}
h2 {
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.4px;
}
h3 {
    font-size: 18px;
    font-weight: 500;
}
p {
    color: #bdc5be;
}
small {
    color: var(--muted);
}
.eyebrow {
    font-size: 10px;
    letter-spacing: 2.5px;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 19px;
}
.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    margin-bottom: 35px;
}
.page-heading p {
    margin: 0;
}
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin: 30px 0 20px;
}
.section-heading h2,
.section-heading h3 {
    margin: 0;
}
.section-heading span,
.section-heading a {
    font-size: 12px;
    color: var(--muted);
}
.dashboard-bar {
    padding: 18px 22px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    color: #c0cecc;
    font-size: 13px;
    background: #192222;
}
.dashboard-bar span + span {
    color: var(--muted);
}
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}
.photo-card {
    border: 1px solid var(--line);
    border-radius: 7px;
    overflow: hidden;
    background: var(--panel);
    display: block;
}
.photo-frame {
    aspect-ratio: 1.45;
    position: relative;
    background: #111412;
    overflow: hidden;
}
.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
}
.photo-card:hover img {
    transform: scale(1.025);
}
.badge {
    display: inline-block;
    border: 1px solid #506360;
    padding: 4px 10px;
    border-radius: 4px;
    color: #bccdca;
    font-size: 11px;
    white-space: nowrap;
}
.photo-frame .badge {
    position: absolute;
    top: 13px;
    left: 13px;
    background: #182322de;
}
.badge.live:before {
    content: "●";
    color: var(--accent);
    margin-right: 7px;
}
.card-copy {
    padding: 20px;
}
.card-copy h3 {
    margin-bottom: 7px;
}
.card-copy p {
    font-size: 13px;
    margin-bottom: 20px;
}
.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    padding-top: 13px;
}
.card-meta span:last-child {
    color: var(--accent);
    font-size: 17px;
}
.lower-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 38px;
}
.list-row {
    padding: 17px 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.list-row small {
    display: block;
    font-size: 11px;
}
.muted {
    color: var(--muted);
    font-size: 13px;
}
.empty {
    grid-column: 1/-1;
    min-height: 220px;
    padding: 42px;
    text-align: center;
    border: 1px dashed var(--line);
    border-radius: 7px;
}
.empty-icon {
    font-size: 37px;
    color: var(--accent);
    display: block;
    margin-bottom: 12px;
}
.panel {
    padding: 27px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 7px;
    margin-bottom: 24px;
}
.panel h2 {
    margin-bottom: 20px;
}
.panel.subtle {
    background: #1e2928;
}
.submit-layout {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 30px;
}
.upload-zone {
    border: 1px dashed #607c79;
    padding: 30px;
    text-align: center;
    background: #1d2928;
    border-radius: 5px;
    display: flex;
    align-items: center;
    flex-direction: column;
    cursor: pointer;
}
.upload-zone span {
    font-size: 12px;
    color: var(--muted);
}
.upload-zone .empty-icon {
    font-size: 35px;
    color: var(--accent);
}
.upload-zone input {
    max-width: 300px;
}
.critic-list {
    max-height: 400px;
    overflow: auto;
}
.critic-choice {
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
    margin: 0;
}
.critic-choice strong {
    font-size: 14px;
    font-weight: 500;
}
.critic-choice small {
    display: block;
    font-size: 11px;
}
.auth-card {
    max-width: 530px;
    margin: 30px auto;
    padding: 36px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
}
.auth-card h1 {
    font-size: 35px;
}
.auth-card form > button {
    width: 100%;
    margin-top: 15px;
}
.auth-links {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    font-size: 12px;
}
.form-row {
    display: flex;
    gap: 15px;
}
.form-row > * {
    flex: 1;
}
.notice,
.errors {
    padding: 15px 20px;
    border: 1px solid #607f7b;
    margin-bottom: 25px;
    border-radius: 5px;
    background: #21312f;
}
.errors {
    border-color: #a77767;
    background: #34241e;
}
.errors p {
    margin: 0;
}
.back {
    color: var(--muted);
    font-size: 12px;
    display: block;
    margin-bottom: 24px;
}
.prose {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.viewer {
    background: #0c0f0d;
    border: 1px solid var(--line);
    border-radius: 7px;
    overflow: hidden;
}
.viewer-toolbar {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
}
.viewer-toolbar button {
    padding: 5px 10px;
    border-color: transparent;
    color: #c6cec5;
    background: #232b25;
    font-size: 12px;
}
.viewer-toolbar a {
    margin-left: auto;
    font-size: 12px;
    color: var(--muted);
}
.image-viewport {
    height: min(67vh, 730px);
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    touch-action: none;
}
.image-stage {
    position: relative;
    flex-shrink: 0;
    transform-origin: center center;
    line-height: 0;
    max-width: 100%;
    max-height: 100%;
}
.image-stage img {
    max-width: 100%;
    max-height: min(67vh, 730px);
    width: auto;
    height: auto;
    object-fit: contain;
    user-select: none;
}
.marker-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
}
.marker-shape {
    fill: #8fbab618;
    stroke: #a6ceca;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
}
.marker-label {
    fill: #112423;
    stroke: #8fbab6;
    stroke-width: 3;
    paint-order: stroke;
    font-family: sans-serif;
    font-size: 23px;
    font-weight: bold;
}
.marker-highlight .marker-shape {
    stroke: #ffb58c;
    stroke-width: 4;
}
.marker-toggles {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    padding: 0 15px;
}
.marker-toggles:empty {
    display: none;
}
.marker-toggles label {
    font-size: 11px;
    margin: 9px 0;
}
.drawing-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 15px 0;
}
.drawing-tools button {
    font-size: 12px;
    padding: 8px 12px;
}
.drawing-tools span {
    font-size: 12px;
    color: var(--muted);
}
.drawing-tools .active {
    border-color: var(--accent);
    color: var(--accent);
    background: #263936;
}
.critique-layout {
    display: grid;
    grid-template-columns: 1fr 1.75fr;
    gap: 27px;
    margin-top: 27px;
}
.exif {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 20px;
    font-size: 12px;
    border-top: 1px solid var(--line);
    padding-top: 20px;
}
.exif dt {
    color: var(--muted);
}
.exif dd {
    margin: 0;
    overflow-wrap: anywhere;
}
.actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 20px;
}
#save-status {
    font-size: 11px;
    color: var(--accent);
}
#release-preview {
    border-top: 1px solid var(--line);
    margin-top: 25px;
    padding-top: 25px;
}
.critique-card {
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: 7px;
    padding: 24px;
    margin-top: 20px;
}
.critique-card .section-heading {
    margin-top: 0;
}
.marker-reference {
    padding: 0 3px;
    background: transparent;
    color: var(--accent);
    border: 0;
    text-decoration: underline;
    font-weight: inherit;
}
.marker-reference:hover {
    color: var(--accent);
}
details {
    margin-top: 20px;
}
summary {
    cursor: pointer;
    color: var(--muted);
}
.people-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.person {
    text-align: center;
}
.portrait {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 20px;
}
.initials {
    display: grid;
    place-items: center;
    background: #2d4240;
    color: var(--accent);
    font-size: 30px;
}
.person h2 {
    font-size: 20px;
    margin-bottom: 10px;
}
.person p {
    margin-top: 18px;
}
.search {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}
.search input {
    margin: 0;
}
.profile-hero {
    max-width: 700px;
    margin: 20px auto;
    text-align: center;
}
.tags {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 25px 0;
}
.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 25px;
}
.specialty-row {
    display: flex;
    align-items: end;
    gap: 15px;
    margin-bottom: 18px;
}
.specialty-row label {
    margin: 0;
}
.specialty-row label:nth-child(4) {
    max-width: 130px;
}
.admin-row {
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
}
.hero {
    position: relative;
    padding: 30px 0 40px;
    min-height: 540px;
}
.hero h1 {
    font-size: clamp(45px, 6vw, 82px);
    line-height: 1.05;
    max-width: 60%;
    letter-spacing: -3px;
}
.hero h1 em {
    font-family: Georgia, serif;
    font-weight: 400;
    color: var(--accent);
}
.hero > p {
    max-width: 470px;
    font-size: 16px;
}
.hero-art {
    position: absolute;
    right: 0;
    top: 0;
    width: 40%;
    height: 470px;
    border-radius: 160px 160px 6px 6px;
    overflow: hidden;
    background: linear-gradient(#6c8684, #8baba7 46%, #637f7c);
    z-index: -1;
}
.art-sun {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #c2d6d1;
    position: absolute;
    top: 65px;
    right: 60px;
    box-shadow: 0 0 90px #c2d6d166;
}
.art-ridge {
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 600px;
    height: 300px;
    background: #263d3b;
    transform: rotate(24deg);
    border-radius: 45% 0;
}
.art-ridge.back {
    bottom: 60px;
    left: 70px;
    background: #4b6b67;
    transform: rotate(-25deg);
}
.art-caption {
    position: absolute;
    bottom: 24px;
    left: 28px;
    color: #bed1cd;
    font-size: 9px;
    letter-spacing: 2px;
}
.intro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    border-top: 1px solid var(--line);
    padding-top: 34px;
    margin-top: 45px;
}
.intro-grid h2 {
    font-size: 18px;
    margin-top: 18px;
}
.intro-grid p {
    font-size: 13px;
}
.step {
    font-size: 11px;
    color: var(--accent);
    letter-spacing: 2px;
}
.viewer:fullscreen,
.viewer.lightbox {
    background: #0c0f0d;
    width: 100vw;
    height: 100vh;
}
.viewer.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    border: 0;
    border-radius: 0;
}
.viewer:fullscreen .image-viewport,
.viewer.lightbox .image-viewport {
    height: calc(100vh - 125px);
}
.viewer:fullscreen img,
.viewer.lightbox img {
    max-height: calc(100vh - 125px);
}
[hidden] {
    display: none !important;
}
nav[role="navigation"] {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
}
nav[role="navigation"] svg {
    width: 20px;
    height: 20px;
}
nav[role="navigation"] span,
nav[role="navigation"] a {
    margin: 0 3px;
}
.viewer-toolbar button:focus-visible {
    outline-offset: 0;
}
@media (max-width: 1000px) {
    nav {
        gap: 14px;
    }
    .topbar {
        flex-wrap: wrap;
    }
    .photo-grid,
    .people-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-art {
        opacity: 0.5;
        width: 37%;
    }
    .hero > p {
        max-width: 57%;
    }
    .critique-layout {
        grid-template-columns: 1fr 1.5fr;
    }
}
@media (max-width: 700px) {
    main {
        padding: 30px 20px 55px;
    }
    .topbar {
        padding: 15px 20px;
    }
    .brand {
        font-size: 24px;
    }
    nav {
        width: 100%;
        overflow: auto;
        gap: 20px;
        white-space: nowrap;
        font-size: 12px;
        padding-bottom: 5px;
    }
    .page-heading {
        align-items: flex-start;
        flex-direction: column;
    }
    .photo-grid,
    .people-grid,
    .lower-grid,
    .submit-layout,
    .critique-layout,
    .intro-grid,
    .settings-grid {
        grid-template-columns: 1fr;
    }
    .lower-grid {
        gap: 15px;
    }
    .photo-frame {
        aspect-ratio: 1.5;
    }
    .hero h1,
    .hero > p {
        max-width: 100%;
    }
    .hero-art {
        position: relative;
        width: 100%;
        height: 280px;
        opacity: 1;
        margin-top: 35px;
        border-radius: 110px 110px 5px 5px;
        z-index: 0;
    }
    .hero {
        padding-top: 5px;
    }
    .hero h1 {
        letter-spacing: -2px;
    }
    .intro-grid {
        gap: 20px;
        margin-top: 0;
    }
    .panel,
    .auth-card {
        padding: 21px;
    }
    .auth-card {
        margin: 10px auto;
    }
    .dashboard-bar {
        gap: 10px;
        flex-direction: column;
    }
    .section-heading {
        align-items: flex-start;
    }
    .section-heading > span {
        display: none;
    }
    .image-viewport {
        height: 45vh;
    }
    .image-stage img {
        max-height: 45vh;
    }
    .viewer-toolbar {
        gap: 5px;
    }
    .viewer-toolbar a {
        width: 100%;
        margin: 4px 0;
    }
    .specialty-row {
        flex-wrap: wrap;
    }
    .specialty-row label {
        flex: 1;
        min-width: 90px;
    }
    .form-row {
        display: block;
    }
    footer {
        gap: 20px;
        font-size: 10px;
    }
    .list-row {
        align-items: flex-start;
    }
    .list-row button {
        font-size: 11px;
        padding: 8px;
    }
    .empty {
        padding: 30px 20px;
    }
}

#save-status {
    display: inline !important;
}
.critique-layout .section-heading {
    flex-wrap: wrap;
}

.critique-dialog { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.dialog-message { margin: 1rem 0; padding: 1rem 1.25rem; background: var(--panel); border-left: 3px solid var(--accent); border-radius: 4px; }
.dialog-message small { color: var(--muted); }
.dialog-form { display: grid; gap: .75rem; margin-top: 1.5rem; }
.dialog-form button { justify-self: start; }
.dialog-message .critique-text { overflow-wrap: anywhere; }
