:root {
    --shortener-panel: rgba(15, 23, 42, 0.64);
    --shortener-line: rgba(148, 163, 184, 0.15);
}

.shortener-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(17, 24, 39, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.shortener-header__inner,
.shortener-footer__inner {
    width: min(1120px, calc(100% - 40px));
    min-height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.shortener-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-strong);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: -0.035em;
}

.shortener-brand__mark,
.shortener-auth-mark {
    display: grid;
    place-items: center;
    color: #a5f3fc;
    background: linear-gradient(135deg, rgba(6, 182, 212, .24), rgba(59, 130, 246, .18));
    border: 1px solid rgba(103, 232, 249, .22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 24px rgba(6, 182, 212, .08);
}

.shortener-brand__mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    font-size: 1.25rem;
}

.shortener-brand__dot {
    color: var(--accent-400);
}

.shortener-nav,
.shortener-nav__user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.shortener-nav__site,
.shortener-nav__logout,
.shortener-footer a {
    color: var(--text-soft);
    text-decoration: none;
    transition: color var(--dur-fast) ease;
}

.shortener-nav__site:hover,
.shortener-nav__logout:hover,
.shortener-footer a:hover {
    color: var(--accent-200);
}

.shortener-nav__site i {
    margin-left: 4px;
    color: var(--text-muted);
    font-size: .75rem;
}

.shortener-nav__user {
    max-width: 240px;
    color: var(--text-muted);
    font-size: .8125rem;
}

.shortener-nav__user span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shortener-nav__user i {
    color: var(--accent-300);
}

.shortener-account-menu {
    position: relative;
    flex: 0 0 auto;
}

.shortener-account-menu__trigger {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 2px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 50%;
    background: rgba(31, 41, 55, .8);
    cursor: pointer;
    list-style: none;
}

.shortener-account-menu__trigger::-webkit-details-marker {
    display: none;
}

.shortener-account-menu__trigger::marker {
    content: "";
}

.shortener-account-menu__trigger img,
.shortener-account-menu__fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.shortener-account-menu__fallback {
    border: 1px solid rgba(103, 232, 249, .22);
    background: linear-gradient(135deg, rgba(6, 182, 212, .24), rgba(59, 130, 246, .3));
    color: #a5f3fc;
    font-size: 1rem;
    font-weight: 700;
}

.shortener-account-menu__trigger:focus-visible,
.shortener-account-menu__item:focus-visible {
    outline: 2px solid var(--accent-300, #67e8f9);
    outline-offset: 3px;
}

.shortener-account-menu__panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 50;
    display: none;
    width: min(280px, calc(100vw - 28px));
    padding: 8px;
    border: 1px solid rgba(148, 163, 184, .2);
    border-radius: 12px;
    background: #1f2937;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .32);
}

.shortener-account-menu[open] .shortener-account-menu__panel {
    display: grid;
    gap: 4px;
}

.shortener-account-menu__email {
    padding: 10px 11px;
    overflow-wrap: anywhere;
    border-bottom: 1px solid rgba(148, 163, 184, .14);
    color: var(--text-muted, #9ca3af);
    font-size: .75rem;
}

.shortener-account-menu__panel form {
    margin: 0;
}

.shortener-account-menu__item {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 40px;
    padding: 0 11px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-soft, #d1d5db);
    font: inherit;
    font-size: .82rem;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.shortener-account-menu__item:hover {
    background: rgba(255, 255, 255, .06);
    color: #fff;
}

.shortener-account-menu__item--danger,
.shortener-account-menu__item--danger:hover {
    color: #fca5a5;
}

.shortener-inline-form {
    display: inline-flex;
    margin: 0;
}

.shortener-nav__logout {
    min-height: 40px;
    padding: 0 10px;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: .875rem;
    cursor: pointer;
}

.shortener-main {
    flex: 1;
    width: 100%;
}

.shortener-shell {
    width: min(1000px, calc(100% - 40px));
    margin: 0 auto;
    padding: clamp(36px, 6vw, 72px) 0 80px;
}

.shortener-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
    align-items: center;
    gap: clamp(28px, 6vw, 76px);
    min-height: 430px;
}

.shortener-hero__copy {
    position: relative;
    z-index: 1;
}

.shortener-eyebrow,
.shortener-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    color: var(--accent-300);
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .16em;
}

.shortener-eyebrow__line {
    width: 24px;
    height: 1px;
    background: var(--accent-400);
    box-shadow: 0 0 12px rgba(34, 211, 238, .6);
}

.shortener-hero h1,
.shortener-welcome h1 {
    margin: 0;
    color: var(--text-strong);
    font-size: clamp(2.4rem, 6vw, 4.25rem);
    font-weight: 700;
    letter-spacing: -.065em;
    line-height: 1.08;
}

.shortener-hero h1 span,
.shortener-welcome h1 span {
    color: transparent;
    background: linear-gradient(100deg, #a5f3fc 0%, #67e8f9 42%, #60a5fa 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.shortener-intro {
    max-width: 500px;
    margin: 20px 0 26px;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
}

.shortener-google-form {
    margin: 0;
}

.shortener-google-button {
    min-height: 52px;
    padding: 0 20px;
    cursor: pointer;
    gap: 12px;
    font-size: .9375rem;
}

.shortener-google-button--full {
    width: 100%;
    justify-content: center;
}

.shortener-google-mark {
    display: block;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
}

.shortener-google-button > i:last-child {
    margin-left: 8px;
    color: var(--accent-300);
}

.shortener-privacy-note {
    margin: 14px 0 0;
    color: var(--text-faint);
    font-size: .75rem;
    line-height: 1.6;
}

.shortener-privacy-note a {
    color: var(--text-soft);
}

.shortener-setup-note {
    max-width: 460px;
    padding: 14px 16px;
    border: 1px solid rgba(251, 191, 36, .2);
    border-radius: 12px;
    background: rgba(245, 158, 11, .07);
    color: #fde68a;
    font-size: .875rem;
    line-height: 1.6;
}

.shortener-hero__visual {
    position: relative;
    min-height: 310px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.shortener-glow {
    position: absolute;
    z-index: -1;
    inset: 8% 0;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(6, 182, 212, .14), rgba(59, 130, 246, .07) 40%, transparent 72%);
    filter: blur(20px);
}

.shortener-link-preview {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 20px 18px;
    border: 1px solid var(--surface-border);
    border-radius: 16px;
    background: linear-gradient(140deg, rgba(30, 41, 59, .88), rgba(15, 23, 42, .78));
    box-shadow: var(--surface-shadow), inset 0 1px 0 rgba(255, 255, 255, .07);
    backdrop-filter: blur(16px);
}

.shortener-link-preview--back {
    transform: translate(-12px, 10px) rotate(-2deg);
    opacity: .72;
}

.shortener-link-preview--front {
    z-index: 1;
    transform: translate(12px, -8px) rotate(1.5deg);
    border-color: rgba(34, 211, 238, .2);
}

.shortener-link-preview__icon,
.shortener-feature-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(103, 232, 249, .15);
    border-radius: 13px;
    background: rgba(6, 182, 212, .08);
    color: var(--accent-300);
    font-size: 1.2rem;
}

.shortener-link-preview > span:nth-child(2) {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.shortener-link-preview small {
    color: var(--text-faint);
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .13em;
}

.shortener-link-preview strong {
    overflow: hidden;
    color: var(--text-strong);
    font-size: .84rem;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shortener-link-preview__copy {
    margin-left: auto;
    color: var(--accent-300);
}

.shortener-preview-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 45px;
    color: var(--accent-400);
}

.shortener-preview-connector::before,
.shortener-preview-connector::after {
    width: 32%;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .4));
}

.shortener-preview-connector::after {
    transform: rotate(180deg);
}

.shortener-preview-connector span::before {
    content: "↓";
    padding: 0 12px;
    color: var(--accent-300);
    font-size: 1rem;
}

.shortener-feature-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin-top: 24px;
    padding: 24px 0 0;
    border-top: 1px solid var(--shortener-line);
}

.shortener-feature-strip > div {
    display: flex;
    align-items: center;
    gap: 13px;
}

.shortener-feature-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 1rem;
}

.shortener-feature-strip > div > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.shortener-feature-strip strong {
    color: var(--text-soft);
    font-size: .8125rem;
    font-weight: 600;
}

.shortener-feature-strip small {
    color: var(--text-faint);
    font-size: .75rem;
}

.shortener-welcome {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.shortener-welcome h1 {
    font-size: clamp(2rem, 4vw, 3rem);
}

.shortener-welcome .shortener-intro {
    margin: 12px 0 0;
}

.shortener-quota {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border: 1px solid rgba(34, 211, 238, .16);
    border-radius: 14px;
    background: rgba(6, 182, 212, .06);
}

.shortener-quota__number {
    color: var(--accent-200);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -.05em;
}

.shortener-quota__copy {
    color: var(--text-muted);
    font-size: .75rem;
    line-height: 1.4;
}

.shortener-panel {
    padding: clamp(20px, 4vw, 32px);
    border: 1px solid var(--surface-border);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(31, 41, 55, .55), rgba(15, 23, 42, .58));
    box-shadow: var(--surface-shadow), inset 0 1px 0 rgba(255, 255, 255, .045);
}

.shortener-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 25px;
}

.shortener-section-heading .shortener-kicker {
    margin-bottom: 5px;
    font-size: .625rem;
}

.shortener-section-heading h2 {
    margin: 0;
    color: var(--text-strong);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -.025em;
}

.shortener-heading-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--surface-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, .035);
    color: var(--accent-300);
    font-size: 1.35rem;
}

.shortener-form {
    display: grid;
    gap: 19px;
    margin: 0;
}

.shortener-field {
    min-width: 0;
}

.shortener-field label {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 8px;
    color: var(--text-soft);
    font-size: .875rem;
    font-weight: 600;
}

.shortener-required,
.shortener-optional {
    color: var(--text-faint);
    font-size: .6875rem;
    font-weight: 400;
}

.shortener-form input:not([type="hidden"]),
.shortener-form select,
.shortener-form textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 14px;
    border: 1px solid rgba(148, 163, 184, .19);
    border-radius: 12px;
    outline: none;
    background: rgba(2, 6, 23, .3);
    color: var(--text-strong);
    font: inherit;
    font-size: .9375rem;
    transition: border-color var(--dur-fast) ease, background var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}

.shortener-form input::placeholder {
    color: var(--text-faint);
}

.shortener-form input:focus,
.shortener-form select:focus,
.shortener-form textarea:focus {
    border-color: rgba(34, 211, 238, .55);
    background: rgba(2, 6, 23, .48);
    box-shadow: 0 0 0 3px var(--accent-halo);
}

.shortener-alias-input {
    display: flex;
    align-items: stretch;
    min-height: 48px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .19);
    border-radius: 12px;
    background: rgba(2, 6, 23, .3);
    transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}

.shortener-alias-input:focus-within {
    border-color: rgba(34, 211, 238, .55);
    box-shadow: 0 0 0 3px var(--accent-halo);
}

.shortener-alias-input__prefix {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 0 0 0 14px;
    color: var(--accent-300);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .8125rem;
}

.shortener-alias-input input {
    min-width: 80px;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.shortener-help {
    margin: 7px 0 0;
    color: var(--text-faint);
    font-size: .75rem;
    line-height: 1.55;
}

.shortener-help code {
    color: var(--text-soft);
    font-size: .75rem;
}

.shortener-preview {
    display: block;
    overflow-wrap: anywhere;
    margin-top: 8px;
    color: var(--text-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .75rem;
}

.shortener-preview span {
    color: var(--accent-200);
}

.shortener-field-error,
.shortener-form-error {
    margin-top: 7px;
    color: #fca5a5;
    font-size: .8125rem;
    line-height: 1.5;
}

.shortener-form-error {
    margin: 0;
    padding: 12px 14px;
    border: 1px solid rgba(248, 113, 113, .18);
    border-radius: 10px;
    background: rgba(127, 29, 29, .18);
}

.shortener-form-error ul,
.shortener-field-error ul {
    margin: 0;
    padding-left: 18px;
}

.shortener-form select option {
    background: #111827;
    color: var(--text-strong);
}

.shortener-form textarea {
    min-height: 110px;
    resize: vertical;
}

.shortener-form p {
    display: grid;
    gap: 7px;
    margin: 0;
    color: var(--text-soft);
    font-size: .875rem;
}

.shortener-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 3px;
}

.shortener-private-note {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-faint);
    font-size: .75rem;
}

.shortener-private-note i {
    color: var(--accent-300);
}

.shortener-submit {
    min-height: 46px;
    padding: 0 18px;
    cursor: pointer;
}

.shortener-submit:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.shortener-links {
    margin-top: 48px;
}

.shortener-links__heading {
    margin-bottom: 12px;
}

.shortener-count {
    display: inline-grid;
    place-items: center;
    min-width: 25px;
    height: 25px;
    margin-left: 4px;
    border: 1px solid var(--surface-border);
    border-radius: 8px;
    color: var(--text-muted);
    font-size: .6875rem;
    font-weight: 500;
    vertical-align: 2px;
}

.shortener-links__note {
    margin: 0;
    color: var(--text-faint);
    font-size: .75rem;
}

.shortener-link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 18px;
    border-top: 1px solid var(--shortener-line);
    transition: background var(--dur-fast) ease;
}

.shortener-link-row:hover {
    background: rgba(255, 255, 255, .018);
}

.shortener-link-row--inactive {
    opacity: .55;
}

.shortener-link-row__main {
    min-width: 0;
}

.shortener-link-row__topline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

.shortener-link-row__short {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    color: var(--accent-200);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .875rem;
    font-weight: 600;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.shortener-link-row__short:hover {
    color: #fff;
}

.shortener-link-row__short i,
.shortener-link-row__destination i {
    flex: 0 0 auto;
    color: var(--text-faint);
    font-size: .7rem;
}

.shortener-tag,
.shortener-status {
    padding: 3px 7px;
    border: 1px solid rgba(34, 211, 238, .14);
    border-radius: 6px;
    background: rgba(6, 182, 212, .07);
    color: var(--accent-300);
    font-size: .5625rem;
    font-weight: 700;
    letter-spacing: .1em;
}

.shortener-tag--muted {
    border-color: var(--surface-border);
    background: rgba(255, 255, 255, .025);
    color: var(--text-faint);
}

.shortener-status {
    border-color: rgba(248, 113, 113, .2);
    background: rgba(248, 113, 113, .06);
    color: #fca5a5;
}

.shortener-link-row h3 {
    overflow: hidden;
    margin: 8px 0 3px;
    color: var(--text-soft);
    font-size: .875rem;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shortener-link-row__destination {
    display: inline-block;
    overflow: hidden;
    max-width: min(650px, 100%);
    color: var(--text-faint);
    font-size: .75rem;
    text-overflow: ellipsis;
    vertical-align: bottom;
    white-space: nowrap;
}

.shortener-link-row__date {
    display: block;
    margin-top: 7px;
    color: var(--text-dim);
    font-size: .6875rem;
}

.shortener-link-row__actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
}

.shortener-copy,
.shortener-alias-action {
    min-height: 40px;
    padding: 0 11px;
    cursor: pointer;
    font-size: .75rem;
}

.shortener-copy:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.shortener-disable {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: var(--text-faint);
    font-size: 1rem;
    cursor: pointer;
    transition: color var(--dur-fast) ease, background var(--dur-fast) ease;
}

.shortener-disable:hover {
    background: rgba(248, 113, 113, .08);
    color: #fca5a5;
}

.shortener-empty {
    padding: 34px 24px;
    text-align: center;
}

.shortener-empty__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    border: 1px solid var(--surface-border);
    border-radius: 15px;
    background: rgba(6, 182, 212, .06);
    color: var(--accent-300);
    font-size: 1.4rem;
}

.shortener-empty h3 {
    margin: 0;
    color: var(--text-soft);
    font-size: .9375rem;
    font-weight: 600;
}

.shortener-empty p {
    max-width: 390px;
    margin: 7px auto 0;
    color: var(--text-muted);
    font-size: .8125rem;
    line-height: 1.6;
}

.shortener-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding-top: 18px;
    color: var(--text-muted);
    font-size: .75rem;
}

.shortener-pagination a {
    min-height: 40px;
    padding: 0 12px;
}

.shortener-messages {
    position: fixed;
    z-index: 30;
    top: 82px;
    left: 50%;
    width: min(620px, calc(100% - 32px));
    transform: translateX(-50%);
}

.shortener-message {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
    padding: 13px 14px 13px 17px;
    border: 1px solid rgba(34, 211, 238, .2);
    border-radius: 12px;
    background: rgba(15, 23, 42, .96);
    box-shadow: var(--surface-shadow);
    color: var(--text-soft);
    font-size: .8125rem;
}

.shortener-message--error,
.shortener-message--warning {
    border-color: rgba(248, 113, 113, .25);
}

.shortener-message__dismiss {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
}

.shortener-message__dismiss:hover {
    background: rgba(255, 255, 255, .06);
    color: #fff;
}

.shortener-footer {
    border-top: 1px solid rgba(148, 163, 184, .12);
    background: rgba(17, 24, 39, .36);
}

.shortener-footer__inner {
    min-height: 62px;
    justify-content: center;
    color: var(--text-faint);
    font-size: .75rem;
}

.shortener-footer__inner nav {
    display: flex;
    width: 100%;
    justify-content: center;
    gap: 18px;
}

.shortener-auth-card {
    width: min(460px, calc(100% - 36px));
    margin: clamp(45px, 9vh, 100px) auto;
    padding: clamp(24px, 5vw, 38px);
}

.shortener-auth-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 28px;
    color: var(--text-muted);
    font-size: .8125rem;
    text-decoration: none;
}

.shortener-auth-back:hover {
    color: var(--accent-200);
}

.shortener-auth-mark {
    width: 48px;
    height: 48px;
    margin-bottom: 21px;
    border-radius: 15px;
    font-size: 1.5rem;
}

.shortener-auth-card h1 {
    margin: 0;
    color: var(--text-strong);
    font-size: 1.7rem;
    font-weight: 600;
    letter-spacing: -.04em;
}

.shortener-auth-copy {
    margin: 10px 0 23px;
    color: var(--text-muted);
    font-size: .875rem;
    line-height: 1.7;
}

.shortener-auth-card .shortener-privacy-note {
    margin-top: 18px;
    text-align: center;
}

.shortener-legal {
    width: min(760px, calc(100% - 40px));
    margin: 0 auto;
    padding: 64px 0 80px;
}

.shortener-legal h1 {
    margin: 0 0 12px;
    color: var(--text-strong);
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: -.05em;
}

.shortener-legal h2 {
    margin: 28px 0 8px;
    color: var(--text-soft);
    font-size: 1.1rem;
}

.shortener-legal p,
.shortener-legal li {
    color: var(--text-muted);
    font-size: .9rem;
    line-height: 1.8;
}

.shortener-legal a {
    color: var(--accent-200);
}

@media (max-width: 760px) {
    .shortener-hero {
        grid-template-columns: 1fr;
        gap: 16px;
        min-height: auto;
    }

    .shortener-hero__visual {
        min-height: 245px;
        max-width: 480px;
        width: 100%;
        margin: 0 auto;
    }

    .shortener-feature-strip {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .shortener-feature-strip > div {
        padding: 0 0 13px;
        border-bottom: 1px solid rgba(148, 163, 184, .08);
    }

    .shortener-feature-strip > div:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .shortener-welcome {
        align-items: flex-start;
    }

    .shortener-quota {
        padding: 10px 12px;
    }
}

@media (max-width: 560px) {
    .shortener-header__inner,
    .shortener-footer__inner,
    .shortener-shell {
        width: min(100% - 28px, 1000px);
    }

    .shortener-header__inner {
        min-height: 60px;
    }

    .shortener-brand {
        gap: 7px;
        font-size: .875rem;
    }

    .shortener-brand__mark {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }

    .shortener-nav {
        gap: 8px;
    }

    .shortener-nav__site {
        font-size: .75rem;
    }

    .shortener-nav__user {
        max-width: 34px;
        overflow: hidden;
    }

    .shortener-nav__user span {
        display: none;
    }

    .shortener-nav__logout {
        padding: 0 3px;
        font-size: .75rem;
    }

    .shortener-shell {
        padding-top: 38px;
    }

    .shortener-hero h1 {
        font-size: clamp(2.25rem, 11vw, 3.25rem);
    }

    .shortener-welcome {
        flex-direction: column;
        gap: 14px;
    }

    .shortener-welcome h1 {
        font-size: 2rem;
    }

    .shortener-form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .shortener-submit {
        width: 100%;
    }

    .shortener-link-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        padding: 18px 5px;
    }

    .shortener-link-row__actions {
        align-self: flex-end;
    }

    .shortener-links__heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .shortener-alias-input__prefix {
        padding-left: 10px;
        font-size: .69rem;
    }

    .shortener-alias-input input {
        padding-left: 7px !important;
    }

    .shortener-footer__inner {
        align-items: center;
        flex-direction: column;
        justify-content: center;
        gap: 7px;
        padding: 12px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .shortener-header *,
    .shortener-main *,
    .shortener-footer * {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

/* Simple link tools, using the personal site's Poppins and cyan theme. */
.shortener-app {
    min-height: 100dvh;
    background: #111827 !important;
    color: var(--text-soft, #d1d5db);
    font-family: Poppins, sans-serif;
}

.shortener-header {
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    background: #111827;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.shortener-header__inner,
.shortener-footer__inner {
    width: min(1120px, calc(100% - 40px));
}

.shortener-header__inner {
    min-height: 64px;
}

.shortener-brand {
    gap: 9px;
    font-size: .94rem;
    letter-spacing: -.025em;
}

.shortener-brand__mark {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: none;
    box-shadow: none;
}

.shortener-brand__dot {
    color: var(--accent-400, #22d3ee);
}

.shortener-nav {
    gap: clamp(10px, 2vw, 24px);
}

.shortener-nav__link,
.shortener-nav__site,
.shortener-nav__login {
    color: var(--text-muted, #9ca3af);
    font-size: .82rem;
    text-decoration: none;
    transition: color .15s ease;
}

.shortener-nav__link:hover,
.shortener-nav__site:hover,
.shortener-nav__login:hover {
    color: var(--text-strong, #f1f5f9);
}

.shortener-nav__login {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    color: var(--text-strong, #f1f5f9);
}

.shortener-main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.shortener-shell {
    width: min(1000px, calc(100% - 40px));
    padding: clamp(42px, 7vw, 76px) 0 64px;
}

.shortener-home {
    max-width: 920px;
}

.shortener-compose {
    max-width: 820px;
    margin: 0 auto;
}

.shortener-compose h1,
.shortener-page-heading h1 {
    margin: 0;
    color: var(--text-strong, #f1f5f9);
    font-size: clamp(1.85rem, 4.5vw, 2.65rem);
    font-weight: 700;
    letter-spacing: -.055em;
    line-height: 1.15;
    text-align: center;
}

.shortener-compose__intro,
.shortener-page-heading p {
    margin: 11px 0 26px;
    color: var(--text-muted, #9ca3af);
    font-size: .94rem;
    line-height: 1.65;
    text-align: center;
}

.shortener-compose__box {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 14px;
    background: rgba(31, 41, 55, .66);
}

.shortener-tabs {
    display: flex;
    gap: 4px;
    padding: 10px 14px 0;
    border-bottom: 1px solid rgba(148, 163, 184, .14);
}

.shortener-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 43px;
    padding: 0 15px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--text-muted, #9ca3af);
    font: inherit;
    font-size: .86rem;
    font-weight: 500;
    cursor: pointer;
}

.shortener-tab:hover,
.shortener-tab.is-active {
    color: var(--text-strong, #f1f5f9);
}

.shortener-tab.is-active {
    border-bottom-color: var(--accent-400, #22d3ee);
}

.shortener-compose-form {
    display: block;
    margin: 0;
    padding: clamp(18px, 4vw, 28px);
}

.shortener-compose-form__label,
.shortener-field label {
    display: block;
    margin: 0 0 9px;
    color: var(--text-soft, #d1d5db);
    font-size: .86rem;
    font-weight: 600;
}

.shortener-url-entry {
    display: flex;
    gap: 10px;
}

.shortener-url-entry input,
.shortener-field input {
    display: block;
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 0 15px;
    border: 1px solid rgba(148, 163, 184, .26);
    border-radius: 9px;
    outline: none;
    background: rgba(17, 24, 39, .8);
    color: var(--text-strong, #f1f5f9);
    font: inherit;
    font-size: .9rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.shortener-url-entry input::placeholder,
.shortener-field input::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.shortener-url-entry input:focus,
.shortener-field input:focus {
    border-color: var(--accent-400, #22d3ee);
    box-shadow: 0 0 0 3px var(--accent-halo, rgba(34, 211, 238, .15));
}

.shortener-primary,
.shortener-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 9px;
    font: inherit;
    font-size: .86rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}

.shortener-primary {
    flex: 0 0 auto;
    background: var(--accent-700, #0e7490);
    color: #fff;
}

.shortener-primary:hover {
    background: #155e75;
    color: #fff;
}

.shortener-primary:active,
.shortener-secondary:active {
    transform: translateY(1px);
}

.shortener-primary:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.shortener-primary--link {
    width: fit-content;
}

.shortener-secondary {
    border-color: rgba(148, 163, 184, .24);
    background: transparent;
    color: var(--text-soft, #d1d5db);
}

.shortener-secondary:hover {
    border-color: rgba(148, 163, 184, .42);
    background: rgba(255, 255, 255, .04);
    color: var(--text-strong, #f1f5f9);
}

.shortener-compose-form__note,
.shortener-options__help {
    margin: 11px 0 0;
    color: var(--text-muted, #9ca3af);
    font-size: .76rem;
    line-height: 1.55;
}

.shortener-options {
    margin-top: 19px;
    border-top: 1px solid rgba(148, 163, 184, .14);
}

.shortener-options summary {
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 15px 0 2px;
    color: var(--text-soft, #d1d5db);
    font-size: .8rem;
    cursor: pointer;
}

.shortener-options summary span {
    color: var(--text-faint, #6b7280);
    font-size: .72rem;
}

.shortener-options__fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding-top: 16px;
}

.shortener-field {
    min-width: 0;
}

.shortener-field label {
    font-size: .78rem;
}

.shortener-field input {
    min-height: 44px;
    font-size: .82rem;
}

.shortener-alias-input {
    display: flex;
    min-height: 44px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .26);
    border-radius: 9px;
    background: rgba(17, 24, 39, .8);
}

.shortener-alias-input__prefix {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding-left: 12px;
    color: var(--accent-200, #a5f3fc);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .72rem;
}

.shortener-alias-input input {
    min-height: 42px;
    padding-left: 7px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.shortener-field-error,
.shortener-form-error {
    margin: 7px 0 0;
    color: #fca5a5;
    font-size: .78rem;
    line-height: 1.5;
}

.shortener-form-error {
    margin: 0 0 14px;
    padding: 10px 12px;
    border: 1px solid rgba(248, 113, 113, .24);
    border-radius: 8px;
    background: rgba(127, 29, 29, .18);
}

.shortener-form-error ul,
.shortener-field-error ul {
    margin: 0;
    padding-left: 18px;
}

.shortener-library {
    margin-top: 52px;
}

.shortener-library__heading {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 10px;
}

.shortener-library__heading h2,
.shortener-qr-item__details h2 {
    margin: 0;
    color: var(--text-strong, #f1f5f9);
    font-size: 1.06rem;
    font-weight: 600;
    letter-spacing: -.025em;
}

.shortener-library__heading > span {
    color: var(--text-faint, #6b7280);
    font-size: .75rem;
}

.shortener-link-list {
    border-top: 1px solid rgba(148, 163, 184, .15);
}

.shortener-link-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 78px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(148, 163, 184, .12);
}

.shortener-link-item.is-disabled {
    opacity: .55;
}

.shortener-link-item__text {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.shortener-link-item__short {
    width: fit-content;
    max-width: 100%;
    overflow: hidden;
    color: var(--accent-200, #a5f3fc);
    font-size: .83rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shortener-link-item__short--inactive {
    color: var(--text-muted, #9ca3af);
    cursor: default;
}

.shortener-link-item__title {
    overflow: hidden;
    color: var(--text-soft, #d1d5db);
    font-size: .76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shortener-link-item time {
    color: var(--text-faint, #6b7280);
    font-size: .68rem;
}

.shortener-link-item__actions,
.shortener-qr-item__actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 13px;
}

.shortener-link-item__status {
    color: var(--text-faint, #6b7280);
    font-size: .73rem;
}

.shortener-text-action,
.shortener-pagination a,
.shortener-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--text-muted, #9ca3af);
    font: inherit;
    font-size: .73rem;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.shortener-text-action:hover,
.shortener-pagination a:hover,
.shortener-back-link:hover {
    color: var(--accent-200, #a5f3fc);
}

.shortener-library__empty {
    margin: 0;
    padding: 20px 0;
    color: var(--text-muted, #9ca3af);
    font-size: .82rem;
}

.shortener-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
    color: var(--text-faint, #6b7280);
    font-size: .75rem;
}

.shortener-page-heading {
    margin-bottom: 28px;
}

.shortener-page-heading p {
    margin-bottom: 0;
}

.shortener-qr-list {
    border-top: 1px solid rgba(148, 163, 184, .15);
}

.shortener-qr-item {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(148, 163, 184, .12);
}

.shortener-qr-item__preview {
    display: block;
    width: 112px;
    height: 112px;
    padding: 3px;
    border-radius: 8px;
    background: #fff;
}

.shortener-qr-item__preview img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.shortener-qr-item__details {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.shortener-qr-item__details h2 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shortener-qr-item__details > a {
    width: fit-content;
    max-width: 100%;
    overflow: hidden;
    color: var(--accent-200, #a5f3fc);
    font-size: .8rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shortener-qr-item__details p {
    overflow: hidden;
    margin: 0;
    color: var(--text-muted, #9ca3af);
    font-size: .72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shortener-qr-empty {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 56px 20px;
    text-align: center;
}

.shortener-qr-empty h2 {
    margin: 0;
    color: var(--text-strong, #f1f5f9);
    font-size: 1.1rem;
}

.shortener-qr-empty p {
    margin: 0 0 8px;
    color: var(--text-muted, #9ca3af);
    font-size: .82rem;
}

.shortener-qr-detail-page {
    max-width: 920px;
}

.shortener-back-link {
    margin-bottom: 18px;
    font-size: .78rem;
}

.shortener-qr-detail {
    display: grid;
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 6vw, 56px);
    padding: clamp(20px, 5vw, 40px);
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 14px;
    background: rgba(31, 41, 55, .66);
}

.shortener-qr-detail__image {
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
}

.shortener-qr-detail__image img {
    display: block;
    width: 100%;
    height: auto;
}

.shortener-qr-detail__content h1 {
    overflow-wrap: anywhere;
    margin: 0 0 9px;
    color: var(--text-strong, #f1f5f9);
    font-size: clamp(1.35rem, 4vw, 1.8rem);
    letter-spacing: -.04em;
}

.shortener-qr-detail__content > p {
    margin: 0 0 10px;
    color: var(--text-muted, #9ca3af);
    font-size: .82rem;
    line-height: 1.6;
}

.shortener-qr-detail__url {
    overflow-wrap: anywhere;
    color: var(--accent-200, #a5f3fc);
    font-size: .9rem;
    font-weight: 600;
}

.shortener-qr-detail__content .shortener-qr-detail__destination {
    margin-top: 8px;
    font-size: .75rem;
}

.shortener-qr-detail__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.shortener-qr-detail__content .shortener-compose-form__note {
    margin-top: 14px;
}

.shortener-footer {
    border-top: 1px solid rgba(255, 255, 255, .08);
    background: transparent;
}

.shortener-footer__inner {
    min-height: 58px;
    color: var(--text-faint, #6b7280);
    font-size: .72rem;
}

.shortener-footer__inner nav {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.shortener-footer a {
    color: var(--text-muted, #9ca3af);
    font-size: .72rem;
}

.shortener-auth-card {
    width: min(480px, calc(100% - 36px));
    margin: clamp(40px, 9vh, 88px) auto;
    padding: clamp(22px, 5vw, 34px);
    border: 1px solid rgba(148, 163, 184, .18) !important;
    border-radius: 14px !important;
    background: rgba(31, 41, 55, .66) !important;
    box-shadow: none !important;
}

.shortener-auth-back {
    margin-bottom: 23px;
    color: var(--text-muted, #9ca3af);
}

.shortener-auth-card .shortener-kicker,
.shortener-auth-mark {
    display: none;
}

.shortener-auth-card h1 {
    margin: 0;
    color: var(--text-strong, #f1f5f9);
    font-size: 1.65rem;
    letter-spacing: -.045em;
}

.shortener-auth-copy {
    margin: 10px 0 22px;
    color: var(--text-muted, #9ca3af);
    font-size: .84rem;
    line-height: 1.65;
}

.shortener-auth-card .shortener-google-button {
    min-height: 48px;
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 9px;
    background: #fff;
    box-shadow: none;
    color: #111827;
}

.shortener-auth-card .shortener-google-button:hover {
    background: #f3f4f6;
    color: #111827;
}

.shortener-auth-card .shortener-privacy-note {
    margin-top: 18px;
    color: var(--text-muted, #9ca3af);
    font-size: .73rem;
    text-align: left;
}

.shortener-auth-card .shortener-privacy-note a {
    color: var(--accent-200, #a5f3fc);
}

.shortener-delete-warning {
    margin: 18px 0 22px;
    padding: 14px 15px;
    border: 1px solid rgba(248, 113, 113, .28);
    border-radius: 10px;
    background: rgba(127, 29, 29, .16);
    color: #fecaca;
    font-size: .82rem;
    line-height: 1.7;
}

.shortener-delete-form {
    display: grid;
    gap: 16px;
}

.shortener-delete-form__field {
    display: grid;
    gap: 7px;
    color: var(--text-soft, #d1d5db);
    font-size: .8rem;
    font-weight: 600;
}

.shortener-delete-form__field input[type="text"] {
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    border: 1px solid rgba(148, 163, 184, .25);
    border-radius: 8px;
    background: rgba(17, 24, 39, .72);
    color: var(--text-strong, #f1f5f9);
    font: inherit;
}

.shortener-delete-form__acknowledge {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: var(--text-muted, #9ca3af);
    font-size: .78rem;
    line-height: 1.6;
}

.shortener-delete-form__acknowledge input {
    flex: 0 0 auto;
    margin-top: 4px;
    accent-color: #ef4444;
}

.shortener-delete-form__error {
    color: #fca5a5;
    font-size: .76rem;
}

.shortener-delete-form__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.shortener-delete-form__submit {
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(248, 113, 113, .35);
    border-radius: 8px;
    background: #7f1d1d;
    color: #fff;
    font: inherit;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
}

.shortener-delete-form__submit:hover {
    background: #991b1b;
}

.shortener-delete-form__cancel {
    color: var(--text-muted, #9ca3af);
    font-size: .8rem;
    text-decoration: none;
}

.shortener-delete-form__cancel:hover {
    color: var(--text-strong, #f1f5f9);
}

.shortener-auth-card .shortener-setup-note {
    border: 1px solid rgba(148, 163, 184, .2);
    border-radius: 9px;
    background: rgba(17, 24, 39, .52);
    color: var(--text-muted, #9ca3af);
}

@media (max-width: 760px) {
    .shortener-qr-detail {
        grid-template-columns: minmax(0, 1fr);
        max-width: 460px;
        margin: 0 auto;
    }

    .shortener-qr-detail__image {
        width: min(100%, 320px);
        margin: 0 auto;
    }

    .shortener-qr-item {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 13px;
    }

    .shortener-qr-item__preview {
        width: 88px;
        height: 88px;
    }

    .shortener-qr-item__actions {
        grid-column: 2;
    }
}

@media (max-width: 560px) {
    .shortener-header__inner,
    .shortener-footer__inner,
    .shortener-shell {
        width: calc(100% - 28px);
    }

    .shortener-header__inner {
        min-height: 60px;
        gap: 8px;
    }

    .shortener-brand {
        gap: 6px;
        font-size: .77rem;
    }

    .shortener-brand__mark {
        width: 29px;
        height: 29px;
    }

    .shortener-nav {
        gap: 8px;
    }

    .shortener-nav__link,
    .shortener-nav__site,
    .shortener-nav__login {
        font-size: .68rem;
    }

    .shortener-nav__site,
    .shortener-nav__user {
        display: none;
    }

    .shortener-nav__logout {
        display: inline-flex;
        min-height: 0;
        padding: 0;
        font-size: .68rem;
    }

    .shortener-nav__login {
        padding: 7px 8px;
    }

    .shortener-shell {
        padding-top: 42px;
    }

    .shortener-compose h1,
    .shortener-page-heading h1 {
        font-size: 1.9rem;
    }

    .shortener-compose__intro,
    .shortener-page-heading p {
        font-size: .82rem;
    }

    .shortener-tabs {
        padding-right: 10px;
        padding-left: 10px;
    }

    .shortener-tab {
        flex: 1;
        padding: 0 8px;
        font-size: .78rem;
    }

    .shortener-compose-form {
        padding: 17px 14px;
    }

    .shortener-url-entry {
        flex-direction: column;
    }

    .shortener-primary {
        width: 100%;
    }

    .shortener-options__fields {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .shortener-link-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .shortener-link-item__actions {
        flex-wrap: wrap;
        gap: 12px;
    }

    .shortener-qr-item__actions {
        flex-wrap: wrap;
        gap: 12px;
    }

    .shortener-footer__inner {
        align-items: center;
        flex-direction: column;
        justify-content: center;
        gap: 7px;
        padding: 12px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .shortener-app *,
    .shortener-app *::before,
    .shortener-app *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
