:root {
    --paper: #f1f0e9;
    --paper-deep: #e7e5dc;
    --ink: #11110f;
    --muted: #6e6d66;
    --line: rgba(17, 17, 15, 0.17);
    --acid: #d8ff3e;
    --danger: #c53220;
    --success: #4d6500;
    --sans: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
    --serif: Georgia, "Times New Roman", serif;
    --mono: "Courier New", monospace;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
}

body.lightbox-open {
    overflow: hidden;
}

button,
input,
textarea {
    font: inherit;
}

button,
a {
    color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--acid);
    outline-offset: 3px;
}

::selection {
    background: var(--ink);
    color: var(--acid);
}

.skip-link {
    position: fixed;
    left: 12px;
    top: 12px;
    z-index: 1000;
    padding: 10px 14px;
    background: var(--acid);
    color: var(--ink);
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.boot-screen {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 20px;
    background: var(--ink);
    color: var(--paper);
}

.boot-mark {
    position: relative;
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: var(--acid);
    color: var(--ink);
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -0.1em;
    text-indent: -0.08em;
}

.boot-mark::after,
.brand-mark::after {
    content: "";
    position: absolute;
    top: -10%;
    right: 15px;
    width: 8px;
    height: 120%;
    background: currentColor;
    transform: rotate(28deg);
}

.boot-screen p {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    animation: pulse 1.5s infinite;
}

.brand {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    text-decoration: none;
    white-space: nowrap;
}

.brand-mark {
    position: relative;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    margin-right: 12px;
    overflow: hidden;
    background: var(--ink);
    color: var(--acid);
}

.brand-mark::after {
    right: 7px;
    width: 5px;
    background: currentColor;
}

.brand-mark span {
    position: relative;
    z-index: 1;
    margin-left: -5px;
    color: var(--paper);
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.1em;
}

.brand-name {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.brand-name > span {
    color: #85a500;
}

.brand small {
    margin-left: 8px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.1em;
}

.brand-light .brand-mark {
    background: var(--paper);
    color: var(--acid);
}

.brand-light .brand-mark span {
    color: var(--ink);
}

.brand-light .brand-name {
    color: var(--paper);
}

.brand-light small {
    color: rgba(241, 240, 233, 0.5);
}

.eyebrow,
.step-label,
.privacy-notes,
.live-dot,
.session-state,
.gallery-footer,
.login-footnote,
.drop-zone > p {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.login-view {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(430px, 0.7fr);
}

.login-brand {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: clamp(28px, 4vw, 62px);
    overflow: hidden;
    background: var(--ink);
    color: var(--paper);
}

.login-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.14;
    background-image: linear-gradient(rgba(255,255,255,0.25) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.25) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.login-brand::after {
    content: "";
    position: absolute;
    right: -180px;
    bottom: -210px;
    width: 620px;
    height: 620px;
    border-radius: 50%;
    background: var(--acid);
    filter: blur(120px);
    opacity: 0.18;
}

.login-brand > * {
    position: relative;
    z-index: 1;
}

.login-statement {
    width: min(100%, 900px);
    margin: auto 0;
    padding: 90px 0;
}

.login-statement .eyebrow {
    margin: 0 0 34px;
    color: rgba(241, 240, 233, 0.5);
}

.login-statement h1,
.gallery-hero h1,
.upload-heading h2,
.photos-head h2 {
    margin: 0;
    font-size: clamp(74px, 9.5vw, 160px);
    font-weight: 500;
    line-height: 0.86;
    letter-spacing: -0.07em;
}

.login-statement h1 em,
.gallery-hero h1 em,
.upload-heading h2 em,
.photos-head h2 em {
    color: var(--acid);
    font-family: var(--serif);
    font-weight: 400;
}

.login-statement > p:last-child {
    width: min(100%, 510px);
    margin: 45px 0 0;
    color: rgba(241, 240, 233, 0.56);
    font-size: clamp(16px, 1.5vw, 20px);
    line-height: 1.7;
}

.privacy-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 28px;
    color: rgba(241, 240, 233, 0.45);
}

.privacy-notes span {
    position: relative;
    padding-left: 14px;
}

.privacy-notes span::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 5px;
    height: 5px;
    background: var(--acid);
    transform: translateY(-50%) rotate(45deg);
}

.login-panel {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: clamp(28px, 4vw, 60px);
    background: var(--paper);
}

.login-panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.live-dot,
.session-state {
    display: flex;
    align-items: center;
    gap: 9px;
}

.live-dot i,
.session-state i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #89ab00;
    box-shadow: 0 0 0 4px rgba(137, 171, 0, 0.12);
}

.login-panel-top a {
    font-family: var(--mono);
    font-size: 9px;
    text-decoration: none;
}

.login-form {
    width: min(100%, 520px);
    margin: auto;
    padding: 70px 0;
}

.step-label {
    margin: 0 0 22px;
    color: var(--muted);
}

.login-form h2 {
    margin: 0;
    font-size: clamp(48px, 5.2vw, 78px);
    font-weight: 500;
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.login-form > p:not(.step-label, .form-message) {
    margin: 25px 0 42px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.login-form > label,
.upload-details label > span {
    display: block;
    margin-bottom: 9px;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.password-field {
    position: relative;
}

.password-field input {
    width: 100%;
    height: 64px;
    padding: 0 112px 0 18px;
    border: 1px solid var(--ink);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font-size: 18px;
}

.password-field button {
    position: absolute;
    top: 1px;
    right: 1px;
    height: 62px;
    padding: 0 16px;
    border: 0;
    background: transparent;
    font-family: var(--mono);
    font-size: 8px;
    cursor: pointer;
}

.submit-button {
    width: 100%;
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding: 0 20px;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: var(--paper);
    cursor: pointer;
    box-shadow: 6px 6px 0 var(--acid);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.submit-button:hover:not(:disabled) {
    transform: translate(3px, 3px);
    box-shadow: 3px 3px 0 var(--acid);
}

.submit-button:disabled {
    cursor: wait;
    opacity: 0.62;
}

.submit-button span {
    font-weight: 700;
}

.submit-button strong {
    font-size: 23px;
    font-weight: 400;
}

.form-message,
.upload-message {
    min-height: 20px;
    margin: 20px 0 0;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 9px;
    line-height: 1.5;
}

.form-message.is-error,
.upload-message.is-error {
    color: var(--danger);
}

.upload-message.is-success {
    color: var(--success);
}

.login-footnote {
    margin: auto 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    line-height: 1.7;
}

.shell,
.gallery-nav {
    width: min(100% - 48px, 1420px);
    margin-inline: auto;
}

.gallery-header {
    position: sticky;
    top: 0;
    z-index: 30;
    padding: 18px 0 0;
}

.gallery-nav {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 0 18px 0 22px;
    border: 1px solid var(--line);
    background: rgba(241, 240, 233, 0.88);
    backdrop-filter: blur(18px);
}

.gallery-nav-actions {
    display: flex;
    align-items: center;
    gap: 26px;
}

.gallery-nav-actions button,
.refresh-button {
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid var(--ink);
    background: transparent;
    font-family: var(--mono);
    font-size: 9px;
    cursor: pointer;
}

.gallery-nav-actions button:hover,
.refresh-button:hover:not(:disabled) {
    background: var(--ink);
    color: var(--acid);
}

.gallery-hero {
    min-height: 76vh;
    display: grid;
    grid-template-columns: 1.65fr 0.35fr;
    gap: 80px;
    align-items: end;
    padding-top: clamp(100px, 12vw, 180px);
    padding-bottom: clamp(90px, 10vw, 150px);
}

.gallery-hero .eyebrow {
    margin: 0 0 40px;
    color: var(--muted);
}

.gallery-hero h1 {
    font-size: clamp(76px, 10vw, 160px);
}

.gallery-hero h1 em {
    color: var(--muted);
}

.gallery-intro {
    padding-top: 22px;
    border-top: 1px solid var(--ink);
}

.gallery-intro p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.gallery-intro span {
    display: block;
    margin-top: 38px;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.upload-section {
    display: grid;
    grid-template-columns: 0.72fr 1.28fr;
    gap: clamp(50px, 8vw, 130px);
    padding-top: clamp(90px, 10vw, 150px);
    padding-bottom: clamp(100px, 11vw, 170px);
    border-top: 1px solid var(--ink);
}

.upload-heading {
    position: sticky;
    top: 120px;
    align-self: start;
}

.upload-heading h2,
.photos-head h2 {
    font-size: clamp(52px, 6.2vw, 98px);
}

.upload-heading h2 em,
.photos-head h2 em {
    color: var(--muted);
}

.drop-zone {
    position: relative;
    min-height: 330px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 28px;
    padding: 34px;
    border: 1px dashed var(--ink);
    background-image: radial-gradient(rgba(17,17,15,0.22) 0.7px, transparent 0.7px);
    background-size: 12px 12px;
    text-align: center;
    transition: background-color 0.25s ease, border-style 0.25s ease;
}

.drop-zone.is-dragging {
    border-style: solid;
    background-color: var(--acid);
}

.drop-button {
    display: grid;
    justify-items: center;
    gap: 5px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.drop-plus {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: 50%;
    background: var(--ink);
    color: var(--acid);
    font-size: 42px;
    font-weight: 300;
    transition: border-radius 0.35s var(--ease), transform 0.35s var(--ease);
}

.drop-button:hover .drop-plus {
    border-radius: 4px;
    transform: rotate(90deg);
}

.drop-button strong {
    font-size: 21px;
}

.drop-button small {
    color: var(--muted);
    font-size: 12px;
}

.drop-zone > p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.upload-details {
    display: grid;
    grid-template-columns: 0.7fr 0.7fr 1.3fr;
    gap: 12px;
    margin-top: 12px;
}

.upload-details label {
    display: block;
}

.upload-details label > span {
    margin: 0;
    padding: 16px 0 9px;
}

.upload-details label small {
    color: var(--muted);
}

.upload-details input,
.upload-details select,
.upload-details textarea {
    width: 100%;
    min-height: 58px;
    padding: 16px;
    resize: vertical;
    border: 1px solid var(--ink);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font-size: 14px;
}

.upload-details select {
    appearance: none;
    padding-right: 42px;
    background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
    background-position: calc(100% - 20px) 25px, calc(100% - 15px) 25px;
    background-repeat: no-repeat;
    background-size: 5px 5px;
}

.upload-details textarea {
    min-height: 90px;
}

.selected-files {
    display: grid;
    gap: 6px;
    margin-top: 18px;
}

.selected-file {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 8px 8px 8px 14px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,0.28);
}

.selected-file.is-compressed {
    border-color: #8cab00;
    background: rgba(198, 255, 0, 0.08);
}

.selected-file > span {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.selected-file strong {
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.selected-file small {
    color: var(--muted);
    font-size: 10px;
}

.selected-file button {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    font-size: 19px;
    cursor: pointer;
}

.upload-submit {
    width: 100%;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding: 0 22px;
    border: 1px solid var(--ink);
    background: var(--acid);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.upload-submit:hover:not(:disabled) {
    background: var(--ink);
    color: var(--acid);
}

.upload-submit:disabled {
    background: transparent;
    color: var(--muted);
    cursor: not-allowed;
}

.upload-submit strong {
    font-size: 25px;
    font-weight: 400;
}

.upload-form.is-uploading {
    opacity: 0.7;
    pointer-events: none;
}

.photos-section {
    padding: clamp(100px, 11vw, 170px) 0;
    background: var(--ink);
    color: var(--paper);
}

.photos-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: clamp(70px, 8vw, 120px);
}

.photos-head .step-label {
    color: rgba(241, 240, 233, 0.45);
}

.photos-head h2 em {
    color: rgba(241, 240, 233, 0.45);
}

.album-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-top: calc(clamp(70px, 8vw, 120px) * -0.55);
    margin-bottom: clamp(52px, 7vw, 90px);
    padding-top: 22px;
    border-top: 1px solid rgba(241, 240, 233, 0.18);
}

.album-filter {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.album-filter button,
.create-album-button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    border: 1px solid rgba(241, 240, 233, 0.28);
    background: transparent;
    color: var(--paper);
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}

.album-filter button small {
    min-width: 22px;
    padding: 4px 6px;
    background: rgba(241, 240, 233, 0.1);
    color: rgba(241, 240, 233, 0.62);
    font-size: 8px;
    text-align: center;
}

.album-filter button:hover,
.album-filter button.is-active {
    border-color: var(--acid);
    background: var(--acid);
    color: var(--ink);
}

.album-filter button.is-active small,
.album-filter button:hover small {
    background: rgba(17, 17, 15, 0.13);
    color: var(--ink);
}

.create-album-button {
    flex: 0 0 auto;
    border-color: var(--acid);
    color: var(--acid);
}

.create-album-button:hover {
    background: var(--acid);
    color: var(--ink);
}

.refresh-button {
    border-color: rgba(241, 240, 233, 0.45);
    color: var(--paper);
}

.refresh-button:disabled {
    cursor: wait;
    opacity: 0.5;
}

.photo-grid {
    columns: 3 300px;
    column-gap: 16px;
}

.photo-card {
    display: inline-block;
    width: 100%;
    margin: 0 0 36px;
    break-inside: avoid;
}

.photo-open {
    position: relative;
    width: 100%;
    display: block;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #252522;
    cursor: zoom-in;
}

.photo-open::after {
    content: "ANSEHEN ↗";
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 8px 10px;
    background: var(--acid);
    color: var(--ink);
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.08em;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s var(--ease);
}

.photo-open:hover::after,
.photo-open:focus-visible::after {
    opacity: 1;
    transform: translateY(0);
}

.photo-open img {
    width: 100%;
    height: auto;
    aspect-ratio: var(--ratio);
    display: block;
    object-fit: cover;
    transition: transform 0.6s var(--ease), filter 0.4s ease;
}

.photo-open:hover img {
    transform: scale(1.025);
    filter: saturate(1.08);
}

.photo-meta {
    padding: 16px 0 0;
}

.photo-meta h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.photo-meta p {
    margin: 5px 0 0;
    color: rgba(241,240,233,0.45);
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.photo-album-tag {
    display: inline-flex;
    margin-top: 10px;
    padding: 5px 7px;
    border: 1px solid rgba(198, 255, 0, 0.35);
    color: var(--acid);
    font-family: var(--mono);
    font-size: 7px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.empty-gallery {
    min-height: 420px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: end;
    gap: 60px;
    padding-top: 50px;
    padding-bottom: 50px;
    border-block: 1px solid rgba(241,240,233,0.25);
}

.empty-gallery > span {
    align-self: start;
    color: var(--acid);
    font-family: var(--mono);
    font-size: 10px;
}

.empty-gallery h3 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(42px, 6vw, 86px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.04em;
}

.empty-gallery button {
    min-height: 52px;
    padding: 0 18px;
    border: 1px solid var(--acid);
    background: transparent;
    color: var(--acid);
    font-size: 12px;
    cursor: pointer;
}

.gallery-loading {
    padding: 40px 0;
    color: rgba(241,240,233,0.45);
    font-family: var(--mono);
    font-size: 9px;
    text-transform: uppercase;
}

.load-more-wrap {
    display: flex;
    justify-content: center;
    padding-top: 60px;
}

.load-more-wrap button {
    min-height: 56px;
    padding: 0 22px;
    border: 1px solid var(--acid);
    background: transparent;
    color: var(--acid);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.load-more-wrap button:hover:not(:disabled) {
    background: var(--acid);
    color: var(--ink);
}

.load-more-wrap button:disabled {
    opacity: 0.45;
    cursor: wait;
}

.gallery-footer {
    padding: 60px 0;
    background: var(--acid);
    color: var(--ink);
}

.gallery-footer .shell {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 40px;
}

.gallery-footer p {
    margin: 0;
    font-family: var(--serif);
    font-size: 24px;
    letter-spacing: -0.02em;
    text-transform: none;
}

.gallery-footer button {
    justify-self: end;
    padding: 0 0 4px;
    border: 0;
    border-bottom: 1px solid var(--ink);
    background: transparent;
    font-family: var(--mono);
    font-size: 9px;
    cursor: pointer;
}

.lightbox {
    width: 100vw;
    max-width: none;
    height: 100vh;
    max-height: none;
    margin: 0;
    padding: 20px 24px 24px;
    border: 0;
    background: rgba(12, 12, 11, 0.98);
    color: var(--paper);
}

.lightbox::backdrop {
    background: rgba(0,0,0,0.88);
}

.lightbox[open] {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
}

.lightbox-toolbar,
.lightbox-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.lightbox-toolbar {
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(241,240,233,0.22);
}

.lightbox-toolbar span {
    font-family: var(--mono);
    font-size: 9px;
}

.lightbox-toolbar button {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(241,240,233,0.25);
    border-radius: 50%;
    background: transparent;
    color: var(--paper);
    font-size: 24px;
    cursor: pointer;
}

.lightbox-stage {
    min-height: 0;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 54px;
    align-items: center;
    gap: 18px;
    padding: 20px 0;
}

.lightbox-stage img {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: block;
    object-fit: contain;
}

.lightbox-stage button {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(241,240,233,0.3);
    border-radius: 50%;
    background: transparent;
    color: var(--paper);
    cursor: pointer;
}

.lightbox-stage button:hover:not(:disabled) {
    background: var(--acid);
    color: var(--ink);
}

.lightbox-stage button:disabled {
    opacity: 0.2;
}

.lightbox-meta {
    padding-top: 16px;
    border-top: 1px solid rgba(241,240,233,0.22);
}

.lightbox-meta h2 {
    margin: 0;
    font-size: 18px;
}

.lightbox-meta p {
    margin: 4px 0 0;
    color: rgba(241,240,233,0.45);
    font-family: var(--mono);
    font-size: 8px;
    text-transform: uppercase;
}

.delete-button {
    padding: 10px 0 4px;
    border: 0;
    border-bottom: 1px solid #ff6a58;
    background: transparent;
    color: #ff6a58;
    font-family: var(--mono);
    font-size: 9px;
    cursor: pointer;
}

.manage-dialog {
    width: min(calc(100% - 32px), 720px);
    max-width: none;
    max-height: min(88vh, 900px);
    padding: clamp(28px, 5vw, 60px);
    overflow: auto;
    border: 0;
    background: var(--paper);
    color: var(--ink);
    box-shadow: 14px 14px 0 var(--acid);
}

.manage-dialog::backdrop {
    background: rgba(10, 10, 9, 0.82);
    backdrop-filter: blur(8px);
}

.trash-dialog {
    width: min(calc(100% - 32px), 1040px);
}

.dialog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 36px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--ink);
}

.dialog-head .step-label {
    margin-bottom: 14px;
}

.dialog-head h2 {
    margin: 0;
    font-size: clamp(48px, 7vw, 80px);
    font-weight: 500;
    line-height: 0.9;
    letter-spacing: -0.06em;
}

.dialog-head h2 em {
    color: var(--muted);
    font-family: var(--serif);
    font-weight: 400;
}

.dialog-close {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--ink);
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    font-size: 25px;
    cursor: pointer;
}

.dialog-close:hover {
    background: var(--ink);
    color: var(--acid);
}

.album-form {
    display: grid;
    gap: 12px;
    padding-top: 34px;
}

.album-form label {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.album-form input {
    width: 100%;
    min-height: 62px;
    padding: 0 17px;
    border: 1px solid var(--ink);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font-size: 16px;
}

.album-form > button {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: var(--paper);
    font-weight: 700;
    cursor: pointer;
    box-shadow: 6px 6px 0 var(--acid);
}

.album-form > button:disabled {
    opacity: 0.55;
    cursor: wait;
}

.dialog-message {
    min-height: 20px;
    margin: 10px 0 0;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 9px;
    line-height: 1.6;
}

.dialog-message.is-error {
    color: var(--danger);
}

.trash-intro {
    width: min(100%, 650px);
    margin: 28px 0 34px;
    color: var(--muted);
    line-height: 1.7;
}

.trash-grid {
    display: grid;
    gap: 10px;
}

.trash-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 22px;
    padding: 10px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.34);
}

.trash-card > img {
    width: 150px;
    height: 112px;
    display: block;
    object-fit: cover;
    background: #d9d8d0;
}

.trash-card > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.trash-card h3 {
    margin: 0;
    overflow: hidden;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.trash-card p {
    margin: 6px 0 18px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 8px;
    text-transform: uppercase;
}

.trash-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.trash-actions button {
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid var(--ink);
    background: transparent;
    color: var(--ink);
    font-family: var(--mono);
    font-size: 8px;
    cursor: pointer;
}

.trash-actions button:hover:not(:disabled) {
    background: var(--ink);
    color: var(--paper);
}

.trash-actions button.is-danger {
    border-color: var(--danger);
    color: var(--danger);
}

.trash-actions button.is-danger:hover:not(:disabled) {
    background: var(--danger);
    color: white;
}

.trash-actions button:disabled {
    opacity: 0.45;
    cursor: wait;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

@media (max-width: 980px) {
    .login-view {
        grid-template-columns: 1fr;
    }

    .login-brand {
        min-height: 62vh;
    }

    .login-panel {
        min-height: auto;
    }

    .login-form {
        margin: 0 auto;
    }

    .gallery-hero {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .gallery-intro {
        width: min(100%, 500px);
    }

    .upload-section {
        grid-template-columns: 1fr;
    }

    .upload-details {
        grid-template-columns: 1fr 1fr;
    }

    .upload-details label:last-child {
        grid-column: 1 / -1;
    }

    .upload-heading {
        position: static;
    }

    .gallery-footer .shell {
        grid-template-columns: 1fr auto;
    }

    .gallery-footer p {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .session-state {
        display: none;
    }
}

@media (max-width: 680px) {
    .shell,
    .gallery-nav {
        width: min(100% - 28px, 1420px);
    }

    .login-brand,
    .login-panel {
        padding: 24px 20px;
    }

    .login-brand {
        min-height: 72vh;
    }

    .login-statement {
        padding: 80px 0;
    }

    .login-statement h1 {
        font-size: clamp(68px, 21vw, 96px);
    }

    .privacy-notes {
        display: grid;
        gap: 10px;
    }

    .login-panel-top {
        padding-bottom: 18px;
    }

    .login-form {
        padding: 70px 0;
    }

    .gallery-header {
        padding-top: 12px;
    }

    .gallery-nav {
        min-height: 64px;
        padding: 0 10px 0 13px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
        margin-right: 9px;
    }

    .brand-mark span { font-size: 18px; }
    .brand-name { font-size: 14px; }
    .brand small { display: none; }
    .gallery-nav-actions button {
        min-height: 38px;
        padding: 0 7px;
        font-size: 7px;
    }

    .gallery-nav-actions {
        gap: 4px;
    }

    .gallery-hero {
        min-height: 78vh;
        padding-top: 100px;
    }

    .gallery-hero h1 {
        font-size: clamp(66px, 20vw, 96px);
    }

    .upload-section {
        gap: 50px;
    }

    .upload-heading h2,
    .photos-head h2 {
        font-size: clamp(49px, 15vw, 72px);
    }

    .drop-zone {
        min-height: 290px;
        padding: 28px 20px;
    }

    .upload-details {
        grid-template-columns: 1fr;
    }

    .upload-details label:last-child {
        grid-column: auto;
    }

    .photos-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .album-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .create-album-button {
        width: fit-content;
    }

    .photo-grid {
        columns: 1;
    }

    .empty-gallery {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .empty-gallery h3 {
        font-size: 48px;
    }

    .empty-gallery button {
        width: fit-content;
    }

    .gallery-footer .shell {
        grid-template-columns: 1fr;
    }

    .gallery-footer p,
    .gallery-footer button {
        grid-column: 1;
        justify-self: start;
    }

    .lightbox {
        padding: 14px;
    }

    .lightbox-stage {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: minmax(0, 1fr) auto;
        gap: 10px;
    }

    .lightbox-stage img {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .lightbox-stage button {
        width: 100%;
        grid-row: 2;
        border-radius: 0;
    }

    .lightbox-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .manage-dialog {
        width: calc(100% - 20px);
        padding: 24px 18px;
        box-shadow: 7px 7px 0 var(--acid);
    }

    .trash-card {
        grid-template-columns: 86px minmax(0, 1fr);
        gap: 12px;
    }

    .trash-card > img {
        width: 86px;
        height: 100%;
        min-height: 116px;
    }

    .trash-card p {
        margin-bottom: 12px;
    }

    .trash-actions {
        display: grid;
    }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
