* {
    box-sizing: border-box;
}
:root {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    color: #292929;
    background: #f7f7f7;
    --accent: #555555;
    --surface: #fff;
    --base: #f7f7f7;
    --tint: #e8e8e8;
    --ink: #292929;
    --muted: #686868;
    --line: #dedede;
}
body {
    margin: 0;
}
button, input, select {
    font: inherit;
}
a {
    color: inherit;
    text-decoration: none;
}
button, .button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    transition: background 180ms, border-color 180ms;
    font-size: 13px;
}
button:hover, .button-link:hover {
    border-color: var(--accent);
    background: var(--tint);
}
button:disabled {
    cursor: default;
    opacity: .65;
}
button:disabled:hover {
    border-color: var(--line);
    background: inherit;
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}
svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
    vertical-align: middle;
}
h1, h2, h3, p {
    margin: 0;
}
h1 {
    font-size: 30px;
    letter-spacing: -1px;
    line-height: 1.2;
    font-weight: 600;
}
h2 {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -.4px;
}
h3 {
    font-size: 14px;
    font-weight: 600;
}
p {
    color: var(--muted);
    line-height: 1.6;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.skip-link {
    position: fixed;
    top: -70px;
    left: 20px;
    padding: 14px 20px;
    background: #fff;
    border: 2px solid var(--accent);
    border-radius: 8px;
    z-index: 30;
}
.skip-link:focus {
    top: 15px;
}
.primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.primary:hover, .primary:disabled:hover {
    background: #484848;
    color: #fff;
    border-color: #484848;
}
.quiet {
    border-color: transparent;
    background: transparent;
    padding-inline: 9px;
}
.icon-only {
    width: 44px;
    min-width: 44px;
    height: 44px;
    padding: 0;
    gap: 0;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.wide {
    width: 100%;
}
.spacer {
    flex: 1;
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 27px;
    font-weight: 600;
    letter-spacing: -1.5px;
    width: max-content;
}
.logo .auth-symbol {
    width: 28px;
    height: 28px;
    margin: 0;
    flex-shrink: 0;
}

.app-shell {
    --sidebar-width: 184px;
    min-height: 100vh;
    overflow-x: clip;
}
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    z-index: 0;
    transition: transform 480ms cubic-bezier(.22, 1, .36, 1), opacity 240ms ease, visibility 0s linear;
    visibility: visible;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-right: 1px solid var(--line);
    padding: 18px 12px 12px;
    overflow: auto;
}
.sidebar .logo {
    margin: 0 8px 20px;
    font-size: 26px;
}
.sidebar .logo .auth-symbol {
    width: 27px;
    height: 27px;
}
.side-label, .eyebrow {
    font-size: 10px;
    letter-spacing: 1.1px;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}
.side-label {
    margin: 0 8px 10px;
    font-size: 9px;
    letter-spacing: .85px;
}
.sidebar > button {
    border-color: transparent;
    justify-content: flex-start;
    text-align: left;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 2px;
    min-height: 44px;
    padding: 10px 8px;
    gap: 8px;
}
.sidebar > button > svg {
    width: 16px;
    height: 16px;
}
.sidebar > button > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.sidebar > button.selected {
    background: var(--tint);
    color: var(--accent);
}
.sidebar > button.project-selected {
    color: var(--ink);
}

.sidebar > button:not(.icon-only) > svg,
.sidebar > button:not(.icon-only) > span {
    transition: transform 240ms cubic-bezier(.22,1,.36,1);
}

@media (hover: hover) and (pointer: fine) {
    .sidebar > button:not(.selected):not(.project-selected):not(.icon-only) {
        transition: background 240ms ease, color 180ms ease;
    }

    .sidebar > button:not(.selected):not(.project-selected):not(.icon-only):hover {
        background: #f0f0f0;
        color: var(--accent);
    }

    .sidebar > button:not(.selected):not(.project-selected):not(.icon-only):hover > svg,
    .sidebar > button:not(.selected):not(.project-selected):not(.icon-only):hover > span {
        transform: translateX(3px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sidebar > button:not(.icon-only) > svg,
    .sidebar > button:not(.icon-only) > span {
        transform: none !important;
    }
}

.sidebar-bottom {
    margin-top: auto;
    padding-top: 25px;
}
.network {
    font-size: 10px;
    color: var(--muted);
    display: inline-flex;
    gap: 6px;
    align-items: center;
    min-height: 44px;
    margin-left: 10px;
}
.network svg {
    width: 12px;
    height: 12px;
}
.person {
    display: flex;
    align-items: center;
    gap: 7px;
    padding-top: 10px;
    margin-top: 0;
    border-top: 1px solid var(--line);
    font-size: 11px;
}
.person > div {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}
.person small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 10px;
}
.person .avatar {
    width: 28px;
    height: 28px;
}
.person button {
    margin-left: auto;
}

.person-profile {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 1;
    min-width: 0;
    min-height: 44px;
    border-radius: 8px;
    transition: background 240ms ease, color 180ms ease;
}

.person-name {
    min-width: 0;
    overflow-wrap: anywhere;
}

@media (hover: hover) and (pointer: fine) {
    .person-profile:hover {
        background: #f0f0f0;
        color: var(--accent);
    }
}

.avatar {
    width: 31px;
    height: 31px;
    flex-shrink: 0;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    color: var(--accent);
    background: var(--tint);
    font-size: 12px;
    font-weight: 600;
}
.workspace {
    position: relative;
    z-index: 1;
    min-width: 0;
    min-height: 100dvh;
    width: calc(100% - var(--sidebar-width));
    transform: translateX(var(--sidebar-width));
    border-left: 1px solid var(--line);
    background: var(--base);
    transition: width 480ms cubic-bezier(.22, 1, .36, 1), transform 480ms cubic-bezier(.22, 1, .36, 1);
}

.sidebar-collapsed .workspace {
    width: 100%;
    transform: translateX(0);
}

.sidebar-collapsed .sidebar {
    transform: translateX(-30px);
    opacity: .35;
    visibility: hidden;
    transition-delay: 0s, 0s, 480ms;
}

.sidebar-toggle svg {
    transition: transform 180ms ease;
}

.sidebar-toggle[aria-expanded="false"] svg {
    transform: scaleX(-1);
}

.crumb {
    height: 64px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    color: var(--muted);
    font-size: 12px;
}
.crumb-divider {
    color: #959595;
}
.crumb button {
    font-size: 12px;
}
.page {
    padding: 34px 32px;
    max-width: 1700px;
    margin: auto;
}
.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
}
.page-heading p {
    margin-top: 10px;
    font-size: 13px;
}
.heading-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.count-badge {
    color: var(--muted);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.count-badge svg {
    width: 15px;
    height: 15px;
}
.filter-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}
.gallery-tabs {
    display: flex;
    gap: 18px;
}
.gallery-tabs button {
    background: transparent;
    border: 0;
    border-radius: 0;
    border-bottom: 2px solid transparent;
    padding: 8px 0 12px;
    font-size: 12px;
    color: var(--muted);
}
.gallery-tabs button.selected {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
.inline-field {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11px;
    color: var(--muted);
}
.inline-field select {
    margin: 0;
    max-width: 300px;
    min-width: 150px;
}
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
}
.mock-card {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    overflow: hidden;
    min-width: 0;
    transition: transform 320ms ease, box-shadow 320ms ease, border-color 320ms ease;
}

.card-info h2 a::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: 12px;
}

.mock-card > .card-image,
.mock-card .card-info .icon-only {
    position: relative;
    z-index: 2;
}

.card-info .icon-only svg {
    transition: transform 300ms ease;
}

@media (hover: hover) and (pointer: fine) {
    .mock-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 14px 28px #36363622;
        border-color: #bcbcbc;
    }

    .mock-card:hover .card-info .icon-only svg {
        transform: translateX(4px);
    }
}

.card-image {
    display: block;
    height: 230px;
    padding: 22px 16px 0;
    position: relative;
    overflow: hidden;
    background: #e7e7e7;
}
.card-image > img, .card-image > video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top center;
    border-radius: 7px 7px 0 0;
    background: #fff;
    pointer-events: none;
}
.card-image > iframe {
    width: 1200px;
    height: 800px;
    border: 0;
    border-radius: 15px;
    transform: scale(.3);
    transform-origin: top left;
    pointer-events: none;
    background: #fff;
}
.media-type {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #fff;
    padding: 5px 8px;
    border-radius: 5px;
    color: #565656;
    font-size: 10px;
}
.thumbnail-empty {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    color: var(--muted);
    font-size: 12px;
}
.thumbnail-empty svg {
    width: 30px;
    height: 30px;
}
.card-info {
    padding: 20px 18px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.card-info > div {
    min-width: 0;
}
.card-info .eyebrow {
    display: block;
    font-size: 9px;
    line-height: 1.5;
    margin-bottom: 9px;
    overflow-wrap: anywhere;
}
.card-info h2 {
    font-size: 17px;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}
.card-info p {
    font-size: 12px;
    margin-top: 8px;
    overflow-wrap: anywhere;
}
.card-meta {
    border-top: 1px solid var(--line);
    padding: 13px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: var(--muted);
}
.card-meta svg {
    width: 13px;
    height: 13px;
    margin-right: 4px;
}
.empty-state {
    text-align: center;
    padding: 70px 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 15px;
}
.empty-state > svg {
    height: 35px;
    width: 35px;
    color: var(--muted);
}
.empty-state > p {
    max-width: 460px;
    font-size: 13px;
}
.empty-state > button {
    margin-top: 8px;
}
.empty-state.small {
    padding: 45px 20px;
}
.auth-screen {
    min-height: 100dvh;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    place-items: center;
    padding: 35px 24px;
    background: var(--base);
}

.auth-form {
    width: 320px;
    max-width: 100%;
    min-width: 0;
    text-align: center;
    margin-top: -32px;
}

.auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 34px;
}

.auth-symbol {
    display: block;
    width: 128px;
    height: 119px;
    margin-bottom: 11px;
    overflow: visible;
}

.auth-brand h1 {
    font-size: 30px;
    font-weight: 400;
    letter-spacing: -1.4px;
    line-height: 1.2;
    margin: 0;
}

.auth-fold-left {
    fill: #555555;
    transform-origin: 70px 14px;
}

.auth-fold-right {
    fill: #858585;
    transform-origin: 70px 14px;
}

.auth-fold-bar {
    fill: #ababab;
    transform-origin: 70px 88px;
}

.auth-intro .auth-fold-left {
    animation: auth-fold-left 1200ms cubic-bezier(.22,1,.36,1) both;
}

.auth-intro .auth-fold-right {
    animation: auth-fold-right 1200ms 100ms cubic-bezier(.22,1,.36,1) both;
}

.auth-intro .auth-fold-bar {
    animation: auth-fold-bar 700ms 600ms cubic-bezier(.22,1,.36,1) both;
}

.auth-intro .auth-brand h1 {
    animation: auth-reveal 600ms 600ms ease both;
}

.auth-intro .auth-controls {
    animation: auth-reveal 600ms 800ms ease both;
}

.auth-input-row {
    display: flex;
    align-items: center;
    min-height: 58px;
    width: 100%;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    transition: border-color 200ms, box-shadow 200ms;
}

.auth-input-row:focus-within {
    border-color: #888888;
    box-shadow: 0 0 0 3px #5555550b;
}

.auth-field-icon {
    color: #888888;
    padding: 0 11px;
    flex-shrink: 0;
}

.auth-field-icon svg {
    width: 16px;
    height: 16px;
}

.auth-form .auth-input-row input:not([type='checkbox']):not([type='file']) {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    height: 44px;
    border: 0;
    border-radius: 0;
    padding: 12px 0;
    margin: 0;
    background: transparent;
    color: var(--ink);
    font-size: 13px;
    outline: 0;
}

@media (max-width: 760px), (pointer: coarse) {
    .auth-form .auth-input-row input:not([type='checkbox']):not([type='file']) {
        font-size: 16px;
    }
}

.auth-input-row input::placeholder {
    color: #747474;
    opacity: 1;
}

.auth-submit {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    flex-shrink: 0;
    position: relative;
}

.auth-submit svg {
    width: 18px;
    height: 18px;
}

.auth-submit:disabled svg {
    visibility: hidden;
}

.auth-submit:disabled::after {
    content: '';
    position: absolute;
    inset: 14px;
    border: 1.5px solid #ffffff66;
    border-top-color: #fff;
    border-radius: 50%;
    animation: auth-spin 750ms linear infinite;
}

.auth-confirm-row {
    margin-top: 12px;
}

.auth-context, .auth-field-note {
    font-size: 11px;
    line-height: 1.6;
    color: var(--muted);
    margin-bottom: 19px;
}

.auth-field-note {
    margin-top: 14px;
    margin-bottom: 0;
}

.auth-form form {
    position: relative;
}

.auth-form input::selection {
    background: #d0d0d0;
    color: var(--ink);
}

.auth-form .has-password-error .auth-input-row {
    border-color: #b57060;
    box-shadow: 0 0 0 3px #a24c3d0a;
    animation: auth-password-nudge 430ms cubic-bezier(.22,1,.36,1);
}

.auth-form .has-password-error .auth-field-icon {
    color: #a24c3d;
}

.auth-controls .auth-inline-error {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #a24c3d;
    font-size: 12px;
    line-height: 20px;
    animation: auth-password-error-in 260ms 110ms ease both;
}

.auth-inline-error svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
}

@keyframes auth-password-nudge {
    0%, 100% {
        transform: translateX(0);
    }

    18% {
        transform: translateX(-6px);
    }

    40% {
        transform: translateX(5px);
    }

    62% {
        transform: translateX(-3px);
    }

    80% {
        transform: translateX(1px);
    }
}

@keyframes auth-password-error-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-controls .error-summary {
    text-align: left;
    font-size: 12px;
}

@keyframes auth-fold-left {
    from {
        opacity: 0;
        transform: perspective(300px) rotateY(-100deg) rotateZ(-18deg);
    }
    to {
        opacity: 1;
        transform: perspective(300px) rotateY(0) rotateZ(0);
    }
}

@keyframes auth-fold-right {
    from {
        opacity: 0;
        transform: perspective(300px) rotateY(100deg) rotateZ(18deg);
    }
    to {
        opacity: 1;
        transform: perspective(300px) rotateY(0) rotateZ(0);
    }
}

@keyframes auth-fold-bar {
    from {
        opacity: 0;
        transform: scaleX(0);
    }
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

@keyframes auth-reveal {
    from {
        opacity: 0;
        transform: translateY(7px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes auth-spin {
    to {
        transform: rotate(360deg);
    }
}

label {
    display: block;
    font-size: 12px;
    line-height: 1.5;
}
input:not([type='checkbox']):not([type='file']), select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background-color: var(--surface);
    color: var(--ink);
    display: block;
    padding: 10px 12px;
    margin: 8px 0 18px;
    font-size: 13px;
}
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%236d6a63' stroke-width='1.7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-inline-end: 42px;
}
input[type='checkbox'] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    flex-shrink: 0;
    margin: 0;
}
.field-note {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.6;
    margin: 6px 0 18px;
}
.error-summary, .modal-error:not(:empty) {
    border: 1px solid #c79a8d;
    border-radius: 7px;
    color: #8b2d21;
    background: #fbf1ed;
    padding: 13px 15px;
    margin-bottom: 20px;
    font-size: 13px;
    line-height: 1.5;
}


.viewer {
    padding: 24px 28px;
}
.viewer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 24px;
}
.viewer-header > div:first-child {
    min-width: 0;
}
.viewer-header .back {
    padding: 0;
    min-height: 32px;
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 10px;
}
.viewer-header .back svg {
    width: 14px;
    height: 14px;
}
.viewer-header .eyebrow {
    display: block;
    margin-bottom: 7px;
    font-size: 9px;
}
.viewer-header h1 {
    font-size: 26px;
    overflow-wrap: anywhere;
}
.viewer-controls {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}
.segmented {
    display: flex;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}
.segmented button {
    min-height: 40px;
    font-size: 11px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    transition: background 240ms ease, color 240ms ease;
}
.segmented button:not(.icon-only) {
    padding: 8px 10px;
}
.segmented svg {
    width: 15px;
    height: 15px;
    transition: transform 240ms cubic-bezier(.2, .8, .2, 1);
}
.segmented button.selected {
    color: var(--accent);
    background: var(--tint);
}

@media (hover: hover) and (pointer: fine) {
    .segmented button:hover {
        background: #efefef;
        color: var(--accent);
    }

    .segmented button.selected:hover {
        background: var(--tint);
    }

    .segmented [data-action="device:desktop"]:hover svg {
        animation: desktop-hover 650ms ease both;
    }

    .segmented [data-action="device:phone"]:hover svg {
        animation: phone-hover 650ms ease both;
    }

    .segmented [data-action="theme:light"]:hover svg {
        transform: rotate(90deg);
        transition-duration: 650ms;
    }

    .segmented [data-action="theme:dark"]:hover svg {
        transform: rotate(-22deg);
        transition-duration: 450ms;
    }
}

@keyframes desktop-hover {
    0%,
    100% {
        transform: scale(1);
    }

    45% {
        transform: scale(1.16);
    }
}

@keyframes phone-hover {
    0%,
    100% {
        transform: rotate(0);
    }

    30% {
        transform: rotate(-12deg);
    }

    65% {
        transform: rotate(6deg);
    }
}

.favorite-button {
    font-size: 11px;
}
.favorite-button svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5px;
    height: 15px;
    width: 15px;
}
.favorite-button.selected, .favorite-button.selected:disabled:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    opacity: 1;
}
.favorite-button.selected svg {
    fill: currentColor;
}
.studio-viewer {
    display: grid;
    grid-template-columns: 264px minmax(0, 1fr);
    gap: 24px;
}

.design-rail {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-self: start;
}

.picker-back {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 10px;
    border-radius: 10px;
    color: var(--ink);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.picker-back svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

@media (hover: hover) and (pointer: fine) {
    .picker-back {
        transition: color 300ms ease;
    }

    .picker-back::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        border-radius: 10px;
        background: var(--tint);
        opacity: 0;
        transform: scaleX(.92);
        transform-origin: right center;
        transition: transform 320ms cubic-bezier(.22, 1, .36, 1), opacity 240ms ease;
    }

    .picker-back > svg,
    .picker-back > span {
        transition: transform 320ms cubic-bezier(.22, 1, .36, 1);
    }

    .picker-back:hover {
        color: var(--accent);
    }

    .picker-back:hover::before {
        opacity: 1;
        transform: scaleX(1);
    }

    .picker-back:hover > svg {
        transform: translateX(-3px);
    }

    .picker-back:hover > span {
        transform: translateX(2px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .picker-back:hover > svg,
    .picker-back:hover > span {
        transform: none;
    }
}

.rail-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rail-item {
    display: flex;
    width: 100%;
    min-height: 76px;
    gap: 12px;
    padding: 10px;
    text-align: left;
    justify-content: flex-start;
    border-color: transparent;
    border-radius: 10px;
    background: transparent;
    font-size: 14px;
    line-height: 1.4;
}

.rail-thumbnail {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    position: relative;
    width: 68px;
    height: 50px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--base);
}

.rail-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.rail-thumbnail .media-type {
    display: none;
}

.rail-thumbnail .thumbnail-empty {
    min-height: 0;
    padding: 0;
    font-size: 0;
}

.rail-label {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--ink);
}

.rail-indicator {
    display: flex;
    flex-shrink: 0;
    width: 17px;
    color: var(--accent);
}

.rail-indicator svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.rail-item.selected {
    background: #e9e9e9;
    border-color: #929292;
    font-weight: 650;
}

.voting-status {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.7;
    padding: 14px 10px;
}
.preview-panel {
    min-width: 0;
}
.stage {
    display: flex;
    align-items: center;
    justify-content: center;
    height: max(240px, calc(100dvh - var(--preview-offset, 116px)));
    border-radius: 12px;
    background: #ebebeb;
    overflow: hidden;
    min-width: 0;
}
.device-bezel {
    padding: 7px;
    border-radius: 10px;
    background: #292929;
    box-shadow: 0 15px 35px #00000017;
    flex-shrink: 0;
}
.device-bezel.phone {
    padding: 7px;
    border-radius: 28px;
    background: #292929;
}
.preview-viewport {
    overflow: hidden;
    border-radius: 5px;
    background: #fff;
    position: relative;
}
.phone .preview-viewport {
    border-radius: 21px;
}
.preview-media {
    display: block;
    border: 0;
    transform-origin: top left;
    object-fit: contain;
    object-position: top center;
}
.preview-viewport > iframe.preview-media {
    transition: opacity 450ms ease;
}

.preview-loading > iframe.preview-media {
    opacity: 0;
    pointer-events: none;
}

.preview-loader {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 15px;
    background: #f8f8f8;
    color: var(--accent);
    pointer-events: none;
    transition: opacity 420ms ease, visibility 420ms;
}

.preview-viewport > .preview-switch-loader {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.preview-loading-content {
    position: relative;
    flex-shrink: 0;
    width: 100%;
    height: 94px;
}

.preview-loading-waiting,
.preview-retry-panel {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding-inline: 12px;
    transition: opacity 320ms ease, transform 380ms cubic-bezier(.22, 1, .36, 1), visibility 380ms;
}

.preview-retry-panel {
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    pointer-events: none;
}

.preview-stalled .preview-retry-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.preview-stalled .preview-loading-waiting {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
}

.preview-retry-panel button {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 12px;
    opacity: 0;
    transform: translateY(5px);
    transition: opacity 320ms ease 90ms, transform 360ms ease 90ms, background 180ms ease;
}

.preview-retry-panel button svg {
    width: 17px;
    height: 17px;
}

.preview-stalled .preview-retry-panel button {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .preview-loading-waiting,
    .preview-retry-panel,
    .preview-retry-panel button {
        transform: none;
    }
}

.preview-loader .auth-symbol {
    width: 96px;
    height: 96px;
    animation: preview-logo-pulse 1400ms ease-in-out infinite;
}

.preview-loading-label {
    font-size: 12px;
    font-weight: 400;
    color: #6c6c6c;
    text-align: center;
}

.preview-loading-track {
    width: 90px;
    height: 2px;
    overflow: hidden;
    background: #dfdfdf;
    border-radius: 4px;
}

.preview-loading-track > span {
    display: block;
    width: 36px;
    height: 100%;
    background: var(--accent);
    animation: preview-loading-travel 1200ms ease-in-out infinite;
}

.preview-viewport:not(.preview-loading) > .preview-loader:not(.preview-switch-loader) {
    opacity: 0;
    visibility: hidden;
}

@keyframes preview-logo-pulse {
    0%,
    100% {
        opacity: .5;
        transform: scale(.94);
    }

    50% {
        opacity: 1;
        transform: scale(1.04);
    }
}

@keyframes preview-loading-travel {
    from {
        transform: translateX(-40px);
    }

    to {
        transform: translateX(100px);
    }
}

.preview-media[data-color-scheme="light"] {
    color-scheme: light;
}

.preview-media[data-color-scheme="dark"] {
    color-scheme: dark;
}

@media (prefers-reduced-motion: no-preference) {
    .preview-resizing .preview-viewport {
        transition: border-radius 650ms ease;
    }

    .preview-resizing .preview-media {
        transition: opacity 450ms ease;
    }

    .preview-resizing .device-bezel {
        transition: border-radius 650ms ease;
    }
}

.device-caption {
    font-size: 10px;
    color: var(--muted);
    text-align: center;
    padding: 14px 10px;
    line-height: 1.7;
}
.device-caption strong {
    display: block;
    font-weight: 400;
    margin-top: 6px;
}
.admin-tabs {
    display: flex;
    gap: 24px;
    isolation: isolate;
    padding-inline: 9px;
    margin-inline: -9px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 27px;
    overflow-x: auto;
}
.admin-tabs button {
    position: relative;
    z-index: 0;
    font-size: 12px;
    flex-shrink: 0;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 8px 0 16px;
    background: transparent;
    color: var(--muted);
}
.admin-tabs button::before {
    content: "";
    position: absolute;
    inset: 0 -9px 7px;
    z-index: -1;
    border-radius: 6px;
    background: var(--tint);
    opacity: 0;
    transform: translateY(3px);
    transition: opacity 240ms ease, transform 280ms cubic-bezier(.22, 1, .36, 1);
}

.admin-tabs button > svg,
.admin-tabs button > span {
    transition: transform 280ms cubic-bezier(.22, 1, .36, 1);
}

@media (hover: hover) and (pointer: fine) {
    .admin-tabs button:hover {
        color: var(--accent);
    }

    .admin-tabs button:hover::before {
        opacity: .75;
        transform: translateY(0);
    }

    .admin-tabs button:hover > svg,
    .admin-tabs button:hover > span {
        transform: translateY(-2px);
    }
}

.admin-tabs button.selected {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
.admin-tabs svg {
    width: 15px;
    height: 15px;
}
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 26px;
}
.stats > div {
    padding: 22px;
    border-right: 1px solid var(--line);
}
.stats > div:last-child {
    border: 0;
}
.stats span {
    display: block;
    font-size: 11px;
    color: var(--muted);
}
.stats strong {
    display: block;
    font-size: 30px;
    font-weight: 400;
    margin-top: 13px;
}
.table-card, .feature-card, .settings-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 24px;
}
.table-heading {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
}
.table-heading h2 {
    font-size: 16px;
    letter-spacing: 0;
}
.table-heading > span {
    font-size: 11px;
    color: var(--muted);
}
.table-heading > button {
    margin-left: auto;
}
.table-scroll {
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 680px;
}
th {
    font-size: 10px;
    font-weight: 400;
    color: var(--muted);
    padding: 13px 18px;
    background: var(--base);
    border-bottom: 1px solid var(--line);
}
td {
    font-size: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
}
tr:last-child td {
    border: 0;
}
td button {
    font-size: 11px;
}
.table-person {
    display: flex;
    gap: 10px;
    align-items: center;
}
.table-person strong {
    font-size: 12px;
    font-weight: 500;
    overflow-wrap: anywhere;
}
.status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    padding: 6px 8px;
    color: #3f634d;
    background: #eaf2ec;
    border-radius: 5px;
}
.status::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}
.status.inactive {
    background: #eeeeee;
    color: #686868;
}
.section-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 22px;
}
.feature-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px;
    border-bottom: 1px solid var(--line);
}
.feature-heading .eyebrow {
    display: block;
    margin-bottom: 9px;
}
.feature-heading h2 {
    font-size: 19px;
    overflow-wrap: anywhere;
}
.feature-heading p {
    margin-top: 9px;
    font-size: 11px;
}
.feature-heading > div:last-child {
    flex-shrink: 0;
}
.feature-heading button {
    font-size: 11px;
}
.manage-mockups article {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 17px 22px;
    border-bottom: 1px solid var(--line);
}
.manage-mockups article:last-child {
    border: 0;
}
.manage-thumb {
    width: 116px;
    height: 74px;
    flex-shrink: 0;
    border: 1px solid var(--line);
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    background: var(--base);
}
.manage-thumb > img, .manage-thumb > video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.manage-thumb > iframe {
    width: 1200px;
    height: 800px;
    transform: scale(.095);
    transform-origin: top left;
    pointer-events: none;
    border: 0;
}
.manage-thumb .media-type {
    font-size: 8px;
    padding: 3px;
    right: 4px;
    bottom: 4px;
}
.manage-thumb .thumbnail-empty {
    font-size: 8px;
    gap: 5px;
}
.manage-thumb .thumbnail-empty svg {
    width: 18px;
    height: 18px;
}
.manage-mockups article > div:nth-child(2) {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}
.manage-mockups h3 {
    font-size: 14px;
}
.manage-mockups p {
    font-size: 11px;
    margin-top: 8px;
}
.manage-mockups button {
    font-size: 11px;
}
.empty-line {
    padding: 25px;
    font-size: 12px;
}
.results-list {
    padding: 24px;
}
.result-row {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) 2fr 100px;
    gap: 25px;
    align-items: center;
    padding: 14px 0;
    font-size: 12px;
}
.result-row strong {
    font-weight: 500;
    overflow-wrap: anywhere;
}
meter {
    width: 100%;
    height: 16px;
    accent-color: var(--accent);
}
.settings-card {
    padding: 25px;
    max-width: 640px;
}
.settings-card > h2 {
    font-size: 17px;
    margin-bottom: 25px;
}
.settings-card p {
    font-size: 12px;
    margin-bottom: 20px;
}
.project-settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    margin-bottom: 10px;
}
.editor-dialog {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(560px, 100%);
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    padding: 0;
    margin: 0;
    border: 0;
    color: var(--ink);
    background: var(--surface);
    box-shadow: -12px 0 40px #0001;
}
.editor-dialog::backdrop {
    background: #11111166;
    backdrop-filter: blur(2px);
    animation: drawer-backdrop-in 350ms cubic-bezier(.4,0,.2,1) both;
}
.editor-dialog[open] {
    animation: drawer-in 350ms cubic-bezier(.4,0,.2,1) both;
}
.editor-dialog.is-closing {
    pointer-events: none;
}
.editor-dialog.is-closing::backdrop {
    animation: drawer-backdrop-out 350ms cubic-bezier(.4,0,.2,1) both;
}
.wide-dialog {
    width: min(690px, 100%);
}
.compact-dialog {
    inset: 0;
    margin: auto;
    height: auto;
    max-height: calc(100dvh - 32px);
    width: min(460px, calc(100% - 32px));
    border-radius: 12px;
}
.editor-dialog > form {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.editor-dialog header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 24px 26px;
    border-bottom: 1px solid var(--line);
}
.editor-dialog header > div {
    min-width: 0;
}
.editor-dialog .eyebrow {
    display: block;
    margin-bottom: 7px;
}
.editor-dialog h2 {
    font-size: 21px;
    overflow-wrap: anywhere;
}
.editor-body {
    padding: 25px 26px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}
.editor-body > h3 {
    margin: 24px 0 15px;
}
.editor-dialog footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 18px 26px;
    border-top: 1px solid var(--line);
}
.editor-dialog.vote-dialog {
    inset: 0;
    margin: auto;
    width: min(390px, calc(100% - 28px));
    height: fit-content;
    max-height: calc(100dvh - 40px);
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 20px 70px #0003;
}

.vote-dialog:focus {
    outline: none;
}

.vote-dialog[open] {
    animation: vote-card-in 300ms cubic-bezier(.22, 1, .36, 1) both;
}

.vote-dialog > form {
    height: auto;
}

.vote-dialog header {
    padding: 24px 24px 18px;
    border: 0;
}

.vote-dialog h2 {
    margin: 0 32px 0 0;
    font-size: 21px;
    line-height: 1.25;
    letter-spacing: -.5px;
}

.vote-dialog .vote-close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: 0;
    background: transparent;
    color: var(--muted);
}

.vote-dialog .vote-close svg {
    width: 18px;
    height: 18px;
}

.vote-dialog .editor-body {
    flex: none;
    padding: 0 24px;
}

.vote-preview {
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--base);
}

.vote-preview > img {
    display: block;
    width: 100%;
    height: 145px;
    object-fit: cover;
    object-position: top;
}

.vote-preview > .thumbnail-empty {
    min-height: 145px;
}

.vote-preview .media-type {
    display: none;
}

.vote-preview-info {
    padding: 12px 13px;
    background: var(--surface);
}

.vote-preview-info small {
    display: block;
    margin-bottom: 6px;
    font-size: 10px;
    line-height: 1.4;
    color: var(--muted);
    overflow-wrap: anywhere;
}

.vote-preview-info strong {
    display: block;
    font-size: 15px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.vote-rule {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
    color: var(--muted);
}

.vote-dialog footer {
    gap: 8px;
    padding: 18px 24px 24px;
    border: 0;
}

.vote-dialog footer button {
    flex: 1;
    min-width: 0;
    min-height: 44px;
    padding: 10px 8px;
    font-size: 12px;
}

.vote-dialog footer .quiet {
    border-color: transparent;
}

.vote-dialog.vote-complete {
    display: grid;
    place-items: center;
}

.vote-success {
    width: 100%;
    padding: 24px;
    text-align: center;
    animation: vote-success-in 260ms ease-out both;
}

.vote-success-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--tint);
    color: var(--accent);
}

.vote-success-icon svg {
    width: 29px;
    height: 29px;
}

.vote-success h2 {
    margin: 0 0 8px;
}

.vote-success p {
    font-size: 13px;
    overflow-wrap: anywhere;
}

@keyframes vote-card-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes vote-success-in {
    from {
        opacity: 0;
        transform: translateY(7px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.two-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: center;
}
.check-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 0;
    min-height: 44px;
    cursor: pointer;
}
.check-row small {
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-top: 6px;
}
.upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.upload-zone {
    min-width: 0;
    padding: 18px 16px;
    border: 1px dashed #bcbcbc;
    border-radius: 8px;
    background: var(--base);
}
.upload-zone > strong {
    display: block;
    font-size: 12px;
    margin-top: 10px;
}
.upload-zone > span {
    display: block;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.6;
    margin-top: 9px;
}
.upload-zone input {
    display: block;
    width: 100%;
    margin-top: 14px;
    font-size: 10px;
}
.upload-zone input::file-selector-button {
    border: 1px solid var(--line);
    background: var(--surface);
    border-radius: 5px;
    padding: 9px;
    cursor: pointer;
    color: var(--ink);
    font-size: 10px;
    font-family: inherit;
    margin-right: 8px;
}
.permission-group {
    border: 1px solid var(--line);
    border-radius: 8px;
    margin: 18px 0;
    padding: 8px 14px;
    min-width: 0;
}
.permission-group legend {
    color: var(--muted);
    padding: 0 6px;
    font-size: 11px;
    line-height: 1.6;
}
.permission {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 13px 0;
    min-height: 44px;
    cursor: pointer;
}
.permission + .permission {
    border-top: 1px solid var(--line);
}
.permission strong {
    font-size: 12px;
    font-weight: 500;
}
.permission small {
    display: block;
    font-size: 10px;
    color: var(--muted);
    margin-top: 5px;
}
.token-link-action {
    border-top: 1px solid var(--line);
    margin-top: 24px;
    padding-top: 22px;
}
.token-link-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.token-link-action p {
    margin-top: 10px;
}

.current-token-link {
    margin-top: 16px;
}

.editor-dialog > form[hidden],
.token-link-group[hidden],
.token-link-picker button[hidden] {
    display: none;
}

.token-link-picker {
    display: flex;
    flex-direction: column;
    height: 100%;
}

@media (prefers-reduced-motion: no-preference) {
    .token-link-picker {
        animation: token-link-picker-in 180ms ease-out both;
    }
}

@keyframes token-link-picker-in {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.token-link-destinations {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 7px;
    margin-top: 18px;
}

.token-link-group {
    border-top: 1px solid var(--line);
    margin-top: 5px;
    padding-top: 10px;
}

.token-link-group h3 {
    padding: 4px 10px;
    font-size: 12px;
    color: var(--muted);
    overflow-wrap: anywhere;
}

button.token-link-destination {
    width: 100%;
    justify-content: flex-start;
    text-align: start;
    white-space: normal;
    overflow-wrap: anywhere;
    padding: 8px 10px;
    border-color: transparent;
    background: transparent;
}

@media (hover: hover) {
    button.token-link-destination:hover {
        background: #f0f0f0;
    }
}

.token-link-destination svg {
    flex-shrink: 0;
}

.toast {
    position: fixed;
    left: 50%;
    bottom: 25px;
    transform: translateX(-50%);
    background: #2c2c2c;
    color: #fff;
    border-radius: 9px;
    padding: 15px 22px;
    box-shadow: 0 7px 30px #0002;
    font-size: 13px;
    line-height: 1.6;
    max-width: calc(100vw - 32px);
    width: max-content;
    display: flex;
    align-items: center;
    gap: 9px;
    z-index: 20;
    animation: toast-in 180ms ease both;
}
@keyframes drawer-backdrop-in {
    from {
        background-color: #11111100;
        backdrop-filter: blur(0);
    }

    to {
        background-color: #11111166;
        backdrop-filter: blur(2px);
    }
}

@keyframes drawer-backdrop-out {
    from {
        background-color: var(--backdrop-close-color, #11111166);
        backdrop-filter: var(--backdrop-close-blur, blur(2px));
    }

    to {
        background-color: #11111100;
        backdrop-filter: blur(0);
    }
}

@keyframes drawer-in {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}
@keyframes toast-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
@media (max-width: 1100px) {
    .viewer-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }
    .viewer-controls {
        justify-content: flex-start;
    }
    .filter-row {
        flex-wrap: wrap;
    }
}
@media (max-width: 760px) {
    .workspace {
        width: 100%;
    }

    .app-shell:not(.sidebar-collapsed) .workspace::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 8;
    }

    .app-shell:not(.sidebar-collapsed) .crumb {
        z-index: 9;
    }

    .crumb {
        padding: 0 14px;
        gap: 8px;
        font-size: 10px;
        position: sticky;
        top: 0;
        z-index: 6;
        background: var(--base);
    }
    .crumb > span:first-of-type {
        max-width: 130px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .crumb button:not(.icon-only) {
        font-size: 10px;
        gap: 5px;
        padding-inline: 5px;
    }
    .crumb button svg {
        width: 15px;
        height: 15px;
    }
    .page, .viewer {
        padding: 25px 16px;
    }
    .page-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 20px;
    }
    h1 {
        font-size: 27px;
    }
    .page-heading p {
        font-size: 12px;
    }
    .filter-row {
        display: block;
    }
    .filter-row .spacer {
        display: none;
    }
    .inline-field {
        margin-top: 20px;
        justify-content: space-between;
    }
    .inline-field select {
        max-width: 215px;
        min-width: 0;
    }
    .cards {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
    .card-image {
        height: 225px;
    }
    .studio-viewer {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    .design-rail {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 7px;
    }
    .rail-item {
        font-size: 11px;
        min-height: 51px;
        padding: 10px;
        flex: 1;
        white-space: normal;
    }
    .rail-item small, .rail-item > svg {
        display: none;
    }
    .voting-status {
        width: 100%;
        padding: 5px;
        font-size: 10px;
    }
    .viewer-header {
        margin-bottom: 20px;
    }
    .viewer-controls {
        gap: 9px;
    }
    .segmented button {
        min-height: 44px;
    }
    .segmented {
        gap: 1px;
    }
    .segmented button {
        font-size: 10px;
        gap: 5px;
    }
    .segmented button:not(.icon-only) {
        padding-inline: 8px;
    }
    .stage .empty-state {
        padding-inline: 16px;
    }
    .stage .empty-state h2 {
        font-size: 16px;
    }
    .stats {
        grid-template-columns: 1fr 1fr;
    }
    .stats > div {
        padding: 18px;
        border-bottom: 1px solid var(--line);
    }
    .stats > div:nth-child(2) {
        border-right: 0;
    }
    .stats > div:nth-child(3) {
        border-bottom: 0;
    }
    .admin-tabs {
        gap: 22px;
    }
    .admin-tabs svg {
        display: none;
    }
    .admin-tabs button {
        font-size: 11px;
    }
    .table-heading {
        flex-wrap: wrap;
        padding: 18px;
        gap: 12px;
    }
    .table-heading > span {
        display: none;
    }
    .table-heading > button {
        font-size: 11px;
    }
    .feature-heading {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 16px;
    }
    .manage-mockups article {
        flex-wrap: wrap;
        padding: 16px;
        gap: 12px;
    }
    .manage-thumb {
        width: 90px;
        height: 65px;
    }
    .manage-thumb > iframe {
        transform: scale(.075);
    }
    .manage-mockups article > div:nth-child(2) {
        flex-basis: calc(100% - 110px);
    }
    .manage-mockups article > button:nth-last-child(2) {
        margin-left: auto;
    }
    .two-fields, .upload-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .two-fields {
        gap: 0;
    }
    .editor-dialog header, .editor-body {
        padding: 22px 18px;
    }
    .editor-dialog footer {
        padding: 16px 18px;
        gap: 8px;
    }
    .editor-dialog footer button {
        font-size: 12px;
    }
    .result-row {
        grid-template-columns: 1fr 90px;
        gap: 12px;
    }
    .result-row meter {
        grid-column: 1 / -1;
        grid-row: 2;
    }
    .settings-card {
        padding: 21px 18px;
    }
    .section-actions {
        flex-wrap: wrap;
    }
    .toast {
        bottom: 18px;
        font-size: 12px;
    }
}
#main[tabindex="-1"]:focus {
    outline: none;
}

.token-entry-active {
    overflow: hidden;
}

.token-entry-active #app {
    opacity: 0;
}

.token-entry {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7;
}

.token-entry-brand {
    position: absolute;
    top: calc(50% - 119px);
    left: calc(50% - 80px);
    width: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.token-entry-brand .auth-symbol {
    transform-origin: top left;
}

.token-entry-name {
    font-size: 30px;
    font-weight: 400;
    letter-spacing: -1.4px;
    line-height: 1.2;
    animation: auth-reveal 600ms 500ms ease both;
}

.token-entry-feedback {
    position: absolute;
    top: calc(50% + 91px);
    left: calc(50% - 55px);
    width: 110px;
    height: 26px;
    display: grid;
    place-items: center;
    animation: auth-reveal 400ms 850ms ease both;
}

.password-entry .token-entry-name,
.password-entry .token-entry-feedback {
    animation: none;
}

.token-entry-progress {
    width: 110px;
    height: 2px;
    background: #dfdfdf;
    overflow: hidden;
}

.token-entry-progress > span {
    display: block;
    width: 45%;
    height: 100%;
    background: #707070;
    animation: token-entry-progress 1100ms ease-in-out infinite;
}

.token-entry-check {
    display: none;
    width: 26px;
    height: 26px;
    border: 1px solid #d6d6d6;
    border-radius: 50%;
    place-items: center;
    color: var(--accent);
}

.token-entry-check svg {
    width: 18px;
    height: 18px;
}

.token-entry-verified .token-entry-progress {
    display: none;
}

.token-entry-verified .token-entry-check {
    display: grid;
}

@keyframes token-entry-progress {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(325%);
    }
}

@media (max-width: 760px) {
    .token-entry-brand {
        top: calc(50% - 137px);
    }

    .token-entry-feedback {
        top: calc(50% + 73px);
    }
}

.crumb.viewer-navbar {
    height: 76px;
    gap: 16px;
    padding-inline: 22px;
    background: var(--base);
}

.nav-identity {
    min-width: 0;
    flex: 1;
}

.nav-identity .eyebrow {
    display: block;
    font-size: 10px;
    margin-bottom: 6px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-identity h1 {
    font-size: 19px;
    letter-spacing: -.4px;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.viewer-navbar .viewer-controls {
    flex-wrap: nowrap;
    flex-shrink: 0;
    gap: 10px;
}

.viewer-navbar .segmented button {
    font-size: 12px;
    min-height: 44px;
}

.viewer-navbar .favorite-button {
    min-height: 44px;
}

.viewer-navbar + .viewer {
    padding: 20px 22px;
}

@media (max-width: 1240px) {
    .crumb.viewer-navbar {
        height: auto;
        min-height: 76px;
        flex-wrap: wrap;
        padding-block: 12px;
        row-gap: 12px;
    }

    .viewer-navbar .nav-identity {
        flex-basis: calc(100% - 60px);
    }

    .viewer-navbar .viewer-controls {
        flex: 1 1 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        padding-inline-start: 60px;
    }
}

@media (max-width: 760px) {
    .crumb.viewer-navbar {
        padding-inline: 14px;
        column-gap: 8px;
    }

    .viewer-navbar .nav-identity {
        flex-basis: calc(100% - 52px);
    }

    .viewer-navbar .nav-identity h1 {
        font-size: 16px;
    }

    .viewer-navbar .viewer-controls {
        padding-inline-start: 0;
        gap: 8px;
    }

    .viewer-navbar .segmented button {
        font-size: 10px;
    }

    .viewer-navbar + .viewer {
        padding: 16px;
    }
}

.mobile-proposal-picker,
.mobile-preview-toolbar {
    display: none;
}

.proposal-picker-dialog {
    inset: auto 0 0;
    width: min(560px, 100%);
    height: auto;
    max-height: 88dvh;
    margin: 0 auto;
    padding: 12px 16px max(20px, env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -12px 40px #0001;
    overflow: hidden;
}

.proposal-picker-dialog[open] {
    display: flex;
    flex-direction: column;
    animation: proposal-picker-in 350ms cubic-bezier(.4, 0, .2, 1) both;
}

.proposal-picker-handle {
    flex-shrink: 0;
    width: 34px;
    height: 4px;
    margin: 0 auto 12px;
    border-radius: 4px;
    background: #d1d1d1;
}

.proposal-picker-dialog header {
    flex-shrink: 0;
    padding: 0;
    margin-bottom: 8px;
    border: 0;
}

.proposal-picker-dialog h2 {
    font-size: 19px;
}

.proposal-picker-options {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.proposal-picker-item {
    flex-shrink: 0;
    justify-content: flex-start;
    gap: 12px;
    width: 100%;
    padding: 9px;
    border-color: transparent;
    text-align: left;
}

.proposal-picker-item.selected {
    border-color: #c7c7c7;
    background: #efefef;
}

.proposal-picker-thumbnail {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 46px;
    height: 56px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--base);
}

.proposal-picker-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.proposal-picker-thumbnail .media-type {
    display: none;
}

.proposal-picker-thumbnail .thumbnail-empty {
    min-height: 0;
    padding: 0;
    font-size: 0;
}

.proposal-picker-text {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.proposal-picker-text small {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 10px;
}

@keyframes proposal-picker-in {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@media (max-width: 760px) {
    .crumb.viewer-navbar {
        min-height: 64px;
        flex-wrap: nowrap;
        padding: 10px 12px;
        gap: 8px;
    }

    .viewer-navbar .nav-identity {
        flex-basis: 0;
    }

    .viewer-navbar .nav-identity .eyebrow {
        font-size: 9px;
        margin-bottom: 5px;
    }

    .viewer-navbar .nav-identity h1 {
        font-size: 17px;
    }

    .viewer-navbar + .viewer {
        padding: 0 10px 10px;
    }

    .viewer .studio-viewer {
        gap: 10px;
    }

    .viewer .design-rail {
        display: none;
    }

    .mobile-proposal-picker {
        display: flex;
        justify-content: flex-start;
        gap: 8px;
        width: 100%;
        padding: 10px 12px;
        text-align: left;
    }

    .proposal-picker-count {
        flex-shrink: 0;
        color: var(--muted);
        font-size: 11px;
    }

    .proposal-picker-name {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .viewer .stage {
        border-radius: 15px;
    }

    .mobile-preview-toolbar {
        display: block;
        position: fixed;
        inset: auto 0 0;
        z-index: 7;
        padding: 8px 12px max(10px, env(safe-area-inset-bottom));
        border-top: 1px solid var(--line);
        background: var(--surface);
    }

    .mobile-preview-toolbar .viewer-controls {
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 8px;
    }

    .mobile-preview-toolbar .segmented button {
        min-height: 44px;
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mock-card:hover,
    .mock-card:hover .card-info .icon-only svg {
        transform: none;
    }

    .segmented button:hover svg {
        transform: none !important;
    }

    .admin-tabs button:hover > svg,
    .admin-tabs button:hover > span,
    .admin-tabs button::before {
        transform: none;
    }

    *,
    *::before,
    *::after,
    .editor-dialog::backdrop {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
@media (forced-colors: active) {
    button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
        outline-color: Highlight;
    }
    select {
        appearance: auto;
        background-image: none;
    }
    .auth-input-row:focus-within {
        outline: 2px solid Highlight;
    }
    .status, .primary {
        border: 1px solid ButtonText;
    }
}

.feature-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 12px;
}

.feature-search {
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(380px, 70%);
    height: 44px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.feature-search input:not([type="checkbox"]) {
    width: 100%;
    min-width: 0;
    min-height: 0;
    height: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
    font-size: 13px;
}

.feature-search:focus-within {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.feature-search input:focus-visible {
    outline: 0;
}

.feature-list {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}

.feature-row {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 92px;
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    transition: background 200ms;
}

.feature-row:last-child {
    border-bottom: 0;
}

.feature-row:focus-visible {
    outline: none;
    background: #f1f1f1;
}

.feature-row:focus-visible .feature-text strong {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.feature-symbol {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: #ededed;
    color: var(--accent);
}

.feature-symbol svg {
    width: 23px;
    height: 23px;
}

.feature-text {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    gap: 8px;
}

.feature-text strong {
    overflow-wrap: anywhere;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.3px;
    line-height: 1.35;
}

.feature-text small {
    overflow-wrap: anywhere;
    color: var(--muted);
    font-size: 12px;
}

.feature-total {
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

.feature-arrow {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--accent);
}

.page.feature-detail-page {
    padding-top: 12px;
}

.feature-detail-header {
    margin-bottom: 22px;
}

.feature-breadcrumb {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 4px;
    min-width: 0;
    color: var(--muted);
}

.feature-back {
    position: relative;
    flex-shrink: 0;
    min-height: 44px;
    padding: 0;
    gap: 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    font-size: 13px;
    transition: color 220ms ease;
}

.feature-back svg {
    width: 18px;
    height: 18px;
    transition: transform 250ms cubic-bezier(.22, 1, .36, 1);
}

.feature-back::after {
    content: '';
    position: absolute;
    bottom: 9px;
    left: 26px;
    right: 0;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 260ms ease;
}

.feature-breadcrumb-divider {
    color: #a1a1a1;
}

.feature-project {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
}

.collection-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0;
}

.collection-heading h1[tabindex="-1"]:focus {
    outline: none;
}

.collection-heading h1 {
    min-width: 0;
    flex: 1;
    font-size: 24px;
    letter-spacing: -.6px;
    overflow-wrap: anywhere;
}

.collection-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.collection-heading p {
    margin: 0;
    font-size: 12px;
    color: var(--muted);
    white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
    .feature-back:hover {
        background: transparent;
        color: var(--accent);
    }

    .feature-back:hover::after {
        transform: scaleX(1);
    }

    .feature-back:hover svg {
        transform: translateX(-3px);
    }
}

@media (max-width: 760px) {
    .feature-breadcrumb {
        gap: 10px;
    }

    .collection-heading {
        flex-wrap: wrap;
        gap: 10px;
    }

    .collection-heading h1 {
        font-size: 22px;
        flex-basis: 100%;
    }

    .collection-actions {
        flex: 1;
        justify-content: space-between;
    }
}

@media (prefers-reduced-motion: reduce) {
    .feature-back:hover svg {
        transform: none;
    }
}

.feature-detail .card-image {
    height: 170px;
}

.feature-row[hidden],
.feature-search-empty[hidden] {
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    .feature-row:hover {
        background: #f1f1f1;
    }
}

@media (max-width: 700px) {
    .feature-row {
        flex-wrap: wrap;
        padding: 18px;
        gap: 12px;
    }

    .feature-row .feature-text {
        flex-basis: calc(100% - 72px);
    }

    .feature-total {
        margin-inline-start: 56px;
        margin-inline-end: auto;
    }

    .feature-arrow {
        width: 28px;
        height: 28px;
    }

    .feature-toolbar > span {
        display: none;
    }

    .feature-search {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .feature-row {
        transition: none;
    }
}

@media (forced-colors: active) {
    .feature-row:focus-visible {
        outline: 2px solid Highlight;
        outline-offset: -4px;
    }

    .feature-search:focus-within {
        outline-color: Highlight;
    }
}

.activity-filters,
.activity-entry {
    display: flex;
    align-items: center;
    gap: 8px;
}

.activity-filters {
    margin-inline-start: auto;
}

.activity-days h3 {
    margin: 0;
    padding: 12px 18px;
    background: var(--base);
    font-size: 14px;
}

.activity-days table {
    min-width: 0;
    table-layout: fixed;
}

.activity-days th:first-child {
    width: max(72px, 16%);
}

.activity-days td {
    overflow-wrap: anywhere;
}

.activity-days small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
}

.activity-entry svg {
    flex: none;
    width: 17px;
    height: 17px;
}

.activity-panel [hidden],
.activity-new[hidden] {
    display: none;
}

.activity-more,
.activity-status:not(:empty) {
    margin: 12px 18px;
}

.activity-new {
    position: fixed;
    z-index: 5;
    inset-block-end: 24px;
    inset-inline-end: 24px;
}

@media (max-width: 600px) {
    .activity-panel .table-heading {
        flex-wrap: wrap;
        padding: 12px;
        gap: 8px;
    }

    .activity-days td,
    .activity-days th {
        padding: 10px 6px;
    }

    .activity-entry svg {
        display: none;
    }
}
