:root {
    --bg: #f3f5f1;
    --surface: #ffffff;
    --surface-soft: #f8faf7;
    --ink: #17201b;
    --muted: #627068;
    --line: #dfe5df;
    --line-strong: #cbd5cd;
    --brand: #1d6f4e;
    --brand-dark: #124632;
    --brand-soft: #e5f4ec;
    --accent: #dff36b;
    --danger: #b42318;
    --danger-soft: #fff0ee;
    --shadow-sm: 0 1px 2px rgba(19, 42, 30, .05), 0 1px 5px rgba(19, 42, 30, .04);
    --shadow-lg: 0 28px 70px rgba(13, 37, 25, .18);
    --radius-sm: 9px;
    --radius: 14px;
    --radius-lg: 22px;
    --focus: 0 0 0 3px rgba(29, 111, 78, .2);
    color-scheme: light;
}

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

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

button, input {
    font: inherit;
}

button, a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
}

svg {
    display: block;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.app-shell {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 20;
    width: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px 20px 22px;
    color: #ecf5f0;
    background: #11281e;
    border-right: 1px solid rgba(255, 255, 255, .06);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    flex: 0 0 42px;
    place-items: center;
    color: #163326;
    background: var(--accent);
    border-radius: 12px;
    font-size: 20px;
    font-weight: 850;
    letter-spacing: -.08em;
}

.brand > span:last-child {
    display: grid;
    line-height: 1.2;
}

.brand strong {
    font-size: 18px;
    letter-spacing: -.035em;
}

.brand small {
    margin-top: 4px;
    color: #91a89b;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.nav-list {
    display: grid;
    gap: 6px;
    margin-top: 38px;
}

.nav-item {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    color: #aabcb2;
    border: 1px solid transparent;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 650;
    text-decoration: none;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.nav-item svg {
    width: 21px;
    height: 21px;
}

.nav-item:hover,
.nav-item.active {
    color: white;
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .07);
}

.sidebar-account {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.avatar {
    width: 38px;
    height: 38px;
    display: grid;
    flex: 0 0 38px;
    place-items: center;
    color: var(--brand-dark);
    background: #d6e7dd;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 800;
}

.account-name {
    min-width: 0;
    display: grid;
    flex: 1;
    line-height: 1.25;
}

.account-name strong {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-name small {
    margin-top: 3px;
    color: #8da397;
    font-size: 11px;
}

.main-content {
    width: calc(100% - 250px);
    max-width: 1500px;
    min-height: 100vh;
    margin-left: 250px;
    padding: 52px clamp(28px, 4vw, 64px) 72px;
}

.page-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 30px;
}

.compact-header {
    align-items: flex-start;
    margin-bottom: 26px;
}

.eyebrow {
    margin: 0 0 5px;
    color: var(--brand);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.eyebrow.light {
    color: var(--accent);
}

h1, h2, h3, p {
    margin-top: 0;
}

h1 {
    margin-bottom: 6px;
    font-size: clamp(30px, 3vw, 41px);
    line-height: 1.12;
    letter-spacing: -.045em;
}

h2 {
    margin-bottom: 3px;
    font-size: 18px;
    line-height: 1.3;
    letter-spacing: -.025em;
}

h3 {
    margin-bottom: 6px;
    font-size: 18px;
}

.page-description {
    max-width: 680px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 15px;
}

.button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 17px;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.button svg {
    width: 18px;
    height: 18px;
}

.button-primary {
    color: white;
    background: var(--brand);
    box-shadow: 0 5px 14px rgba(29, 111, 78, .16);
}

.button-primary:hover {
    background: #185f43;
}

.button-secondary {
    color: #27352d;
    background: white;
    border-color: var(--line-strong);
}

.button-secondary:hover,
.button-ghost:hover {
    background: #f4f7f4;
    border-color: #aebbb1;
}

.button-ghost {
    color: #35443b;
    background: transparent;
    border-color: transparent;
}

.button-full {
    width: 100%;
}

.icon-button {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    color: #5f6c64;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 9px;
    cursor: pointer;
    transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.icon-button svg {
    width: 19px;
    height: 19px;
}

.icon-button:hover {
    color: var(--ink);
    background: #f0f4f1;
    border-color: var(--line);
}

.sidebar .icon-button {
    color: #9db0a5;
}

.sidebar .icon-button:hover {
    color: white;
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .08);
}

.icon-button.danger:hover {
    color: var(--danger);
    background: var(--danger-soft);
    border-color: #f4cac5;
}

.button:focus-visible,
.icon-button:focus-visible,
.copy-button:focus-visible,
.nav-item:focus-visible,
.brand:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: none;
    box-shadow: var(--focus);
}

.alert {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 11px 14px;
    border: 1px solid;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 600;
}

.alert svg {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
}

.alert-success {
    color: #185c40;
    background: #edf9f2;
    border-color: #bfdfcc;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.stat-card {
    min-height: 100px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 19px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    width: 45px;
    height: 45px;
    display: grid;
    flex: 0 0 45px;
    place-items: center;
    border-radius: 12px;
}

.stat-icon svg {
    width: 22px;
    height: 22px;
}

.stat-icon.purple {
    color: #6045a0;
    background: #eee9fa;
}

.stat-icon.green {
    color: #1d7551;
    background: #e4f4eb;
}

.stat-icon.amber {
    color: #94660c;
    background: #fff2ce;
}

.stat-card > span:last-child {
    display: grid;
}

.stat-card strong {
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: -.035em;
}

.stat-card small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.panel-toolbar {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
}

.panel-toolbar p,
.panel-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.search-form {
    width: min(310px, 100%);
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 12px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.search-form:focus-within {
    border-color: var(--brand);
    box-shadow: var(--focus);
}

.search-form svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: #7a877f;
}

.search-form input {
    width: 100%;
    min-width: 70px;
    padding: 8px 0;
    color: var(--ink);
    background: transparent;
    border: 0;
    outline: 0;
    font-size: 14px;
}

.search-form a {
    color: var(--brand);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.link-table {
    width: 100%;
}

.link-row {
    display: grid;
    grid-template-columns: minmax(180px, 1.5fr) minmax(220px, 1.7fr) 66px 88px minmax(82px, .65fr) 132px;
    gap: 16px;
    align-items: center;
    min-height: 96px;
    padding: 13px 20px;
    border-bottom: 1px solid var(--line);
    transition: background-color .18s ease;
}

.link-row:not(.table-heading):hover {
    background: #fafcf9;
}

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

.table-heading {
    min-height: 42px;
    padding-block: 8px;
    color: #78847d;
    background: #fafbf9;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.prototype-cell,
.short-link-cell,
.visits-cell {
    min-width: 0;
}

.prototype-cell {
    display: flex;
    align-items: center;
    gap: 11px;
}

.prototype-initial {
    width: 40px;
    height: 40px;
    display: grid;
    flex: 0 0 40px;
    place-items: center;
    color: #30533f;
    background: #e7eee9;
    border: 1px solid #d4dfd7;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
}

.cell-copy,
.visits-cell {
    display: grid;
    line-height: 1.3;
}

.cell-copy strong {
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cell-copy small,
.visits-cell small {
    overflow: hidden;
    margin-top: 4px;
    color: #7a867f;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.short-link-cell {
    display: flex;
    align-items: center;
    gap: 6px;
}

.short-link-cell > a {
    min-width: 0;
    overflow: hidden;
    color: var(--brand);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.short-link-cell > a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.copy-button {
    min-height: 32px;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    padding: 0 8px;
    color: #536159;
    background: #f7f9f7;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
}

.copy-button:hover {
    color: var(--brand);
    background: var(--brand-soft);
    border-color: #bcdcca;
}

.copy-button svg {
    width: 15px;
    height: 15px;
}

.qr-cell img {
    width: 56px;
    height: 56px;
    display: block;
    padding: 3px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 7px;
}

.status {
    width: fit-content;
    min-height: 27px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 9px;
    border: 1px solid;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 750;
}

.status > span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.status-active {
    color: #1b6447;
    background: #edf9f2;
    border-color: #c5e4d2;
}

.status-active > span {
    background: #2b9a68;
    box-shadow: 0 0 0 3px rgba(43, 154, 104, .12);
}

.status-inactive {
    color: #657169;
    background: #f2f4f2;
    border-color: #dce1dd;
}

.status-inactive > span {
    background: #8e9992;
}

.visits-cell strong {
    font-size: 14px;
}

.row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1px;
}

.row-actions form {
    margin: 0;
}

.empty-state {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 42px 20px;
    text-align: center;
}

.empty-state p {
    max-width: 410px;
    margin-bottom: 20px;
    color: var(--muted);
    font-size: 14px;
}

.empty-icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    color: var(--brand);
    background: var(--brand-soft);
    border-radius: 18px;
}

.empty-icon svg {
    width: 30px;
    height: 30px;
}

.pagination {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 10px 20px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: 12px;
}

.pagination-link {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    color: #37453d;
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
}

.pagination-link:hover {
    border-color: var(--line-strong);
    background: #f7f9f7;
}

.pagination-link.disabled {
    color: #9aa39d;
    background: #f7f8f7;
}

.back-link {
    width: fit-content;
    min-height: 34px;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: -6px 0 10px -6px;
    padding: 0 6px;
    color: var(--brand);
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.back-link:hover {
    color: var(--brand-dark);
}

.back-link svg {
    width: 17px;
    height: 17px;
}

.form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, .8fr);
    gap: 18px;
    align-items: start;
}

.form-panel,
.preview-panel {
    padding: clamp(22px, 3vw, 34px);
}

.panel-heading {
    display: flex;
    gap: 13px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.panel-heading.compact {
    margin-bottom: 24px;
}

.section-number {
    width: 34px;
    height: 27px;
    display: grid;
    flex: 0 0 34px;
    place-items: center;
    color: var(--brand);
    background: var(--brand-soft);
    border-radius: 7px;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .08em;
}

.form-stack {
    display: grid;
    gap: 22px;
}

.field-group {
    display: grid;
    gap: 7px;
}

.field-group label {
    width: fit-content;
    color: #2d3a32;
    font-size: 13px;
    font-weight: 750;
}

.field-group > input,
.input-prefix-wrap {
    width: 100%;
    min-height: 46px;
    color: var(--ink);
    background: white;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.field-group > input {
    padding: 0 13px;
    outline: 0;
}

.field-group > input:hover,
.input-prefix-wrap:hover {
    border-color: #aebbb1;
}

.field-group > input:focus,
.input-prefix-wrap:focus-within {
    border-color: var(--brand);
    box-shadow: var(--focus);
}

.field-group > input::placeholder,
.input-prefix-wrap input::placeholder {
    color: #a0aaa3;
}

.field-group > input.input-error,
.input-prefix-wrap.input-error {
    border-color: #dc756d;
}

.field-hint,
.field-error {
    margin: 0;
    font-size: 11px;
}

.field-hint {
    color: #77847c;
}

.field-error {
    color: var(--danger);
    font-weight: 650;
}

.input-prefix-wrap {
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

.input-prefix-wrap > span {
    display: flex;
    align-items: center;
    padding: 0 0 0 13px;
    color: #69766e;
    background: #f6f8f6;
    border-right: 1px solid var(--line);
    font-size: 13px;
    white-space: nowrap;
}

.input-prefix-wrap input {
    width: 100%;
    min-width: 100px;
    padding: 0 12px;
    color: var(--ink);
    background: white;
    border: 0;
    outline: 0;
    font-weight: 650;
}

.toggle-card {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 15px;
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 11px;
    cursor: pointer;
}

.toggle-card > span:first-child {
    display: grid;
}

.toggle-card strong {
    font-size: 13px;
}

.toggle-card small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.switch {
    position: relative;
    width: 45px;
    height: 26px;
    flex: 0 0 45px;
}

.switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.switch > span {
    position: absolute;
    inset: 0;
    background: #aeb7b1;
    border-radius: 999px;
    transition: background-color .18s ease;
}

.switch > span::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
    transition: transform .18s ease;
}

.switch input:checked + span {
    background: var(--brand);
}

.switch input:checked + span::after {
    transform: translateX(19px);
}

.switch input:focus-visible + span {
    box-shadow: var(--focus);
}

.preview-panel {
    position: sticky;
    top: 24px;
}

.large-qr,
.qr-placeholder {
    width: min(220px, 100%);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    margin: 2px auto 22px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.large-qr img {
    width: 100%;
    height: auto;
    padding: 10px;
    border-radius: 15px;
}

.qr-placeholder {
    color: #abb6af;
    background: repeating-linear-gradient(45deg, #f8faf8, #f8faf8 8px, #f4f7f4 8px, #f4f7f4 16px);
    border-style: dashed;
}

.qr-placeholder svg {
    width: 76px;
    height: 76px;
}

.preview-url {
    display: grid;
    gap: 4px;
    padding: 12px 13px;
    background: var(--brand-soft);
    border: 1px solid #c9e3d4;
    border-radius: 10px;
}

.preview-url small {
    color: #52715f;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.preview-url strong {
    overflow-wrap: anywhere;
    color: var(--brand-dark);
    font-size: 12px;
}

.preview-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 12px;
}

.preview-actions .button {
    padding-inline: 10px;
    font-size: 12px;
}

.preview-note {
    margin: 14px 2px 0;
    color: var(--muted);
    font-size: 11px;
    text-align: center;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 50;
    max-width: min(360px, calc(100vw - 32px));
    padding: 11px 15px;
    color: white;
    background: #17271e;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(11, 28, 19, .25);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity .2s ease, transform .2s ease;
    font-size: 13px;
    font-weight: 650;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.guest-body {
    display: grid;
    place-items: center;
    padding: 32px;
    background-color: #e8eee9;
    background-image: radial-gradient(circle at 15% 20%, rgba(223, 243, 107, .24), transparent 25%), radial-gradient(circle at 82% 75%, rgba(29, 111, 78, .12), transparent 28%);
}

.login-shell {
    width: min(1030px, 100%);
}

.login-card {
    min-height: 590px;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    overflow: hidden;
    background: white;
    border: 1px solid rgba(21, 59, 39, .12);
    border-radius: 26px;
    box-shadow: var(--shadow-lg);
}

.login-intro {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(34px, 5vw, 58px);
    color: white;
    background-color: #112c20;
    background-image: radial-gradient(circle at 100% 0, rgba(223, 243, 107, .14), transparent 35%), linear-gradient(155deg, rgba(255, 255, 255, .03), transparent 55%);
}

.brand-on-dark {
    width: fit-content;
}

.login-intro h1 {
    max-width: 470px;
    margin: 0 0 18px;
    font-size: clamp(36px, 4vw, 52px);
    line-height: 1.06;
    letter-spacing: -.055em;
}

.login-intro > div > p:last-child {
    max-width: 430px;
    margin-bottom: 0;
    color: #b8cbc0;
    font-size: 15px;
    line-height: 1.7;
}

.login-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.feature-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #1a4a33;
    background: var(--accent);
    border-radius: 50%;
}

.feature-icon svg {
    width: 20px;
    height: 20px;
}

.login-feature > span:last-child {
    display: grid;
}

.login-feature strong {
    font-size: 12px;
}

.login-feature small {
    margin-top: 2px;
    color: #94aa9d;
    font-size: 11px;
}

.login-form-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(34px, 6vw, 72px);
}

.login-heading {
    margin-bottom: 30px;
}

.login-heading h2 {
    margin-bottom: 8px;
    font-size: 30px;
    letter-spacing: -.045em;
}

.login-heading > p:last-child {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.check-row {
    width: fit-content;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #526057;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.check-row input {
    width: 17px;
    height: 17px;
    accent-color: var(--brand);
}

.login-footer {
    margin: 18px 0 0;
    color: #617068;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .03em;
    text-align: center;
}

@media (max-width: 1120px) {
    .link-row {
        grid-template-columns: minmax(170px, 1.4fr) minmax(190px, 1.5fr) 82px minmax(80px, .6fr) 126px;
    }

    .link-row > :nth-child(3) {
        display: none;
    }

    .input-prefix-wrap {
        display: grid;
        grid-template-columns: 1fr;
    }

    .input-prefix-wrap > span {
        min-height: 34px;
        padding: 0 12px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        white-space: normal;
    }

    .input-prefix-wrap input {
        min-height: 45px;
    }

    .preview-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 880px) {
    .sidebar {
        position: relative;
        inset: auto;
        width: 100%;
        min-height: 78px;
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 14px 20px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .07);
    }

    .sidebar-top {
        display: flex;
        align-items: center;
        gap: 24px;
    }

    .brand small,
    .account-name,
    .nav-item {
        display: none;
    }

    .nav-list {
        margin: 0;
    }

    .sidebar-account {
        padding: 0;
        border: 0;
    }

    .main-content {
        width: 100%;
        margin-left: 0;
        padding: 36px 24px 60px;
    }

    .form-layout {
        grid-template-columns: 1fr;
    }

    .preview-panel {
        position: static;
    }

    .login-card {
        grid-template-columns: .85fr 1fr;
    }
}

@media (max-width: 680px) {
    .sidebar {
        min-height: 68px;
        padding: 10px 16px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        border-radius: 10px;
    }

    .main-content {
        padding: 27px 16px 48px;
    }

    .page-header {
        align-items: stretch;
        flex-direction: column;
        gap: 18px;
        margin-bottom: 24px;
    }

    .page-header > .button {
        width: 100%;
    }

    h1 {
        font-size: 30px;
    }

    .stat-grid {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .stat-card {
        min-height: 79px;
        padding: 14px;
    }

    .panel-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 13px;
        padding: 17px;
    }

    .search-form {
        width: 100%;
    }

    .table-heading {
        display: none;
    }

    .link-table {
        display: grid;
        gap: 11px;
        padding: 12px;
        background: #f7f9f7;
    }

    .link-row {
        min-height: auto;
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 15px 12px;
        padding: 16px;
        background: white;
        border: 1px solid var(--line);
        border-radius: 12px;
    }

    .link-row.table-heading {
        display: none;
    }

    .link-row:last-child {
        border-bottom: 1px solid var(--line);
    }

    .prototype-cell,
    .short-link-cell {
        grid-column: 1 / -1;
    }

    .link-row > :nth-child(3) {
        display: none;
    }

    .short-link-cell {
        padding: 9px 10px;
        background: var(--brand-soft);
        border-radius: 8px;
    }

    .status {
        grid-column: 1;
    }

    .visits-cell {
        display: none;
    }

    .row-actions {
        grid-column: 2;
        grid-row: 3;
    }

    .pagination {
        justify-content: center;
        padding-inline: 10px;
    }

    .form-panel,
    .preview-panel {
        padding: 20px 16px;
    }

    .panel-heading {
        margin-bottom: 24px;
    }

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

    .form-actions .button {
        width: 100%;
    }

    .toast {
        right: 16px;
        bottom: 16px;
    }

    .guest-body {
        display: block;
        padding: 0;
        background: white;
    }

    .login-card {
        min-height: 100vh;
        display: block;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .login-intro {
        min-height: 250px;
        padding: 26px 24px 30px;
        gap: 44px;
    }

    .login-intro h1 {
        margin-bottom: 10px;
        font-size: 33px;
    }

    .login-intro > div > p:last-child {
        line-height: 1.55;
    }

    .login-feature {
        display: none;
    }

    .login-form-wrap {
        padding: 38px 24px 48px;
    }

    .login-footer {
        display: none;
    }
}

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