:root {
  color-scheme: light;
  --bg: #f8faff;
  --surface: rgba(255,255,255,.94);
  --surface-solid: #fff;
  --ink: #192339;
  --muted: #5b677e;
  --line: #dce3ef;
  --line-strong: #9aa8be;
  --accent: #5145cd;
  --accent-hover: #4034b6;
  --accent-ink: #fff;
  --soft-accent: #edeaff;
  --soft-teal: #e1f7ef;
  --danger: #b72e3a;
  --danger-fill: #b72e3a;
  --danger-ink: #fff;
  --success: #08765c;
  --success-fill: #08765c;
  --success-ink: #fff;
  --warning: #8c5c00;
  --shadow: 0 20px 60px rgba(45, 57, 97, .10), 0 2px 8px rgba(45, 57, 97, .04);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c1424;
  --surface: rgba(21,30,48,.94);
  --surface-solid: #151e30;
  --ink: #eef3ff;
  --muted: #b0bdd3;
  --line: #2b3a53;
  --line-strong: #677895;
  --accent: #b2a8ff;
  --accent-hover: #c6bfff;
  --accent-ink: #171332;
  --soft-accent: #252345;
  --soft-teal: #132f35;
  --danger: #ff9ca8;
  --danger-fill: #ff9ca8;
  --danger-ink: #3a0711;
  --success: #71dfb8;
  --success-fill: #71dfb8;
  --success-ink: #092d23;
  --warning: #f5cf77;
  --shadow: 0 24px 70px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; color: var(--ink); background: radial-gradient(ellipse at 20% 12%, var(--soft-accent), transparent 44rem), radial-gradient(ellipse at 90% 38%, var(--soft-teal), transparent 38rem), var(--bg); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body > main { flex: 1; width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }

.site-header { width: 100%; max-width: 1160px; margin: 0 auto; min-height: 88px; display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 20px; }
.brand { display: inline-flex; align-items: center; border-radius: 12px; flex: 0 0 auto; }
.brand-logo { display: block; width: 160px; height: auto; }
html[data-theme="dark"] .brand { background: rgba(255,255,255,.94); padding: 2px 7px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.nav-link, .icon-button { min-height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); padding: 10px 12px; cursor: pointer; font-weight: 600; }
.nav-link:hover, .icon-button:hover { color: var(--accent); background: var(--soft-accent); }
.icon-button { min-width: 44px; font-size: 1.25rem; }
.language-picker { display: flex; align-items: center; gap: 5px; min-height: 44px; padding-left: 10px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; }
.language-flag { width: 22px; height: 15px; border-radius: 2px; object-fit: cover; }
.language-select { min-height: 42px; border: 0; background: transparent; color: var(--ink); border-radius: 10px; padding: 8px 9px 8px 0; cursor: pointer; }
.language-select option { background: var(--surface-solid); color: var(--ink); }
.account-controls { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; border-left: 1px solid var(--line); padding-left: 10px; }
.account-email { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: .82rem; }

.button { min-height: 44px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 10px 16px; color: var(--ink); background: var(--surface-solid); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-weight: 650; transition: transform .15s ease, border-color .15s ease, background .15s ease; }
.button:hover { background: var(--soft-accent); border-color: var(--accent); transform: translateY(-1px); }
.button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 22%, transparent); }
.button.ghost { background: transparent; }
.button.ghost:hover { background: var(--soft-accent); }
.button.danger { background: var(--danger-fill); color: var(--danger-ink); border-color: var(--danger-fill); }
.button.success { background: var(--success-fill); color: var(--success-ink); border-color: var(--success-fill); }
.button.warning { color: var(--warning); background: color-mix(in srgb, var(--warning) 10%, var(--surface-solid)); border-color: var(--warning); }
.button.danger:hover, .button.success:hover { filter: brightness(.94); }
.button.warning:hover { background: color-mix(in srgb, var(--warning) 18%, var(--surface-solid)); }
.button.small { min-height: 44px; padding: 8px 13px; }
.button.wide { width: 100%; min-height: 50px; }
.button:disabled { opacity: .55; cursor: wait; transform: none; box-shadow: none; }

.hero { max-width: 920px; margin: 52px auto 0; padding: 0 24px; text-align: center; }
.eyebrow, .overline { color: var(--accent); font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; }
.hero > .eyebrow { display: inline-flex; border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line)); border-radius: 999px; padding: 9px 15px; background: var(--surface); font-size: .72rem; letter-spacing: .10em; }
.hero h1 { max-width: 840px; margin: 22px auto 18px; font-size: clamp(2.6rem, 5.8vw, 4.7rem); line-height: 1.06; letter-spacing: -.05em; text-wrap: balance; }
.hero-copy { max-width: 610px; margin: 0 auto; color: var(--muted); font-size: clamp(1rem, 2.3vw, 1.22rem); line-height: 1.6; }
.shorten-panel { max-width: 620px; margin: 30px auto 0; text-align: left; padding: 26px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); backdrop-filter: blur(16px); box-shadow: var(--shadow); }
.shorten-panel label, .field label { display: block; font-size: .84rem; font-weight: 700; margin: 0 0 8px; }
.shorten-panel input, .field input { width: 100%; border: 1px solid var(--line-strong); background: var(--surface-solid); color: var(--ink); border-radius: 12px; padding: 13px 14px; min-height: 48px; }
input::placeholder { color: var(--muted); opacity: 1; }
.field input[type="checkbox"] { width: 18px; min-height: 18px; accent-color: var(--accent); vertical-align: middle; }
.shorten-panel > input { margin-bottom: 17px; }
.slug-input { display: flex; align-items: center; border: 1px solid var(--line-strong); background: var(--surface-solid); border-radius: 12px; margin-bottom: 18px; }
.slug-input:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.slug-input span { padding-left: 14px; color: var(--muted); white-space: nowrap; }
.slug-input input { min-width: 0; border: 0; border-radius: 12px; padding-left: 3px; outline: none; }
.form-note { color: var(--muted); font-size: .8rem; line-height: 1.5; text-align: center; margin: 12px 0 0; }
.result-panel { max-width: 660px; margin: 16px auto 0; display: flex; justify-content: space-between; align-items: center; text-align: left; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-solid); }
.result-url { display: block; margin-top: 5px; font-size: 1.1rem; color: var(--accent); font-weight: 750; word-break: break-all; }
.result-actions { display: flex; gap: 8px; margin-left: 18px; }
.product-proof { max-width: 1000px; margin: 54px auto 48px; padding: 0 24px; display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.product-proof div { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); padding: 20px; }
.product-proof div::before { content: "↗"; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--soft-accent); color: var(--accent); font-weight: 800; margin-bottom: 12px; }
.product-proof div:nth-child(2)::before { content: "Aa"; background: var(--soft-teal); color: var(--success); }
.product-proof div:nth-child(3)::before { content: "✓"; }
.product-proof strong, .product-proof span { display: block; }
.product-proof span { color: var(--muted); margin-top: 7px; line-height: 1.5; }

.app-main { max-width: 1160px; min-height: calc(100vh - 156px); margin: 0 auto; padding: 54px 24px 80px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 30px; }
.page-heading h1 { margin: 0; font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -.05em; }
.page-heading p { margin: 8px 0 0; color: var(--muted); }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search-input { min-height: 42px; min-width: 260px; border: 1px solid var(--line); background: var(--surface-solid); color: var(--ink); border-radius: 11px; padding: 9px 12px; }
.table-shell { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
.link-row, .table-head { display: grid; grid-template-columns: minmax(130px,1.2fr) minmax(140px,2.2fr) 55px 100px 80px 196px; gap: 18px; align-items: center; padding: 15px 18px; }
.table-head { color: var(--muted); font-size: .76rem; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; border-bottom: 1px solid var(--line); }
.link-row + .link-row { border-top: 1px solid var(--line); }
.short-link { color: var(--accent); font-weight: 760; overflow-wrap: anywhere; }
.destination { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-actions { display: flex; gap: 5px; justify-content: flex-end; }
.action-button { min-width: 44px; min-height: 44px; border: 1px solid var(--line); background: var(--surface-solid); color: var(--muted); border-radius: 10px; padding: 7px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.action-button:hover { background: var(--soft-accent); color: var(--ink); }
.action-button[data-action="copy"], .action-button[data-action="edit"] { color: var(--accent); }
.action-button[data-action="delete"] { color: var(--danger); }
.action-button[data-action="delete"]:hover { background: color-mix(in srgb, var(--danger) 12%, var(--surface-solid)); }
.status { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .86rem; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.status.active { color: var(--success); }.status.active::before { background: var(--success); }
.empty-state { padding: 68px 24px; text-align: center; color: var(--muted); }
.empty-state strong { color: var(--ink); display: block; font-size: 1.1rem; margin-bottom: 6px; }
.loading-line { color: var(--muted); padding: 50px 0; }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; background: rgba(5,6,8,.48); display: grid; place-items: center; padding: 20px; backdrop-filter: blur(4px); }
.modal { width: min(100%, 520px); max-height: min(90vh,760px); overflow: auto; border: 1px solid var(--line); border-radius: 20px; background: var(--surface-solid); box-shadow: var(--shadow); padding: 24px; }
.modal-header { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 21px; }
.modal-header h2 { margin: 0; letter-spacing: -.035em; }.modal-header p { margin: 7px 0 0; color: var(--muted); line-height: 1.45; }
.close-button { min-width: 44px; min-height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; font-size: 1.35rem; padding: 3px 6px; }
.close-button:hover { background: var(--soft-accent); color: var(--ink); }
.field { margin-bottom: 16px; }.field-help { font-size: .78rem; color: var(--muted); margin-top: 6px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }
.error-box { color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, transparent); border: 1px solid color-mix(in srgb, var(--danger) 24%, transparent); padding: 10px 12px; border-radius: 10px; margin: 12px 0; font-size: .9rem; }
.auth-switch { color: var(--muted); font-size: .88rem; margin-top: 18px; text-align: center; }.auth-switch button { border: 0; background: none; color: var(--accent); font-weight: 700; cursor: pointer; }

.social-auth { display: grid; gap: 10px; margin: 0 0 18px; }
.social-button { width: 100%; min-height: 48px; padding: 12px; border: 1px solid #747775; border-radius: 12px; background: #fff; color: #1f1f1f; display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 500; font-size: .875rem; cursor: pointer; transition: background .15s ease; }
.social-button:hover { background: #f2f2f2; }
.social-button:disabled { cursor: not-allowed; background: #f8f9fa; color: #5f6368; }
.provider-mark { width: 20px; height: 20px; display: inline-flex; flex: 0 0 auto; }
.provider-mark svg { width: 20px; height: 20px; }
.sso-unavailable { margin: 0 0 16px; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.auth-legal { color: var(--muted); font-size: .78rem; line-height: 1.6; text-align: center; margin-top: 18px; }
.auth-legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.auth-page { max-width: 520px; margin: 20px auto; border: 1px solid var(--line); border-radius: 24px; background: var(--surface-solid); padding: 28px; box-shadow: var(--shadow); }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .78rem; margin: 0 0 18px; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.auth-divider span { white-space: nowrap; }

.toast-root { position: fixed; right: 22px; bottom: 22px; z-index: 200; display: grid; gap: 8px; }
.toast { max-width: 360px; background: var(--ink); color: var(--bg); padding: 12px 15px; border-radius: 11px; box-shadow: var(--shadow); font-weight: 650; animation: toast-in .18s ease-out; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } }

.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.admin-panel { border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 18px; min-width: 0; }
.admin-panel h2 { margin: 0 0 14px; font-size: 1.05rem; }.admin-list { margin-top: 14px; display: grid; gap: 8px; }
.admin-item { border: 1px solid var(--line); border-radius: 11px; padding: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; max-width: 100%; }
.admin-item-main { min-width: 0; flex: 1 1 0; }.admin-item-main strong, .admin-item-main span { display: block; overflow-wrap: anywhere; white-space: normal; }.admin-item-main span { color: var(--muted); font-size: .84rem; margin-top: 3px; }
.admin-item-main a { display: block; max-width: 100%; overflow-wrap: anywhere; white-space: normal; text-decoration: underline; text-underline-offset: 3px; }
.admin-short-link { color: var(--ink); font-size: 1rem; font-weight: 700; }
.admin-destination-link { color: var(--ink); font-size: .87rem; line-height: 1.55; }
.admin-item-main .admin-url-label { font-size: .76rem; margin-top: 9px; }
.admin-item > .button { flex-shrink: 0; }
.admin-panel .search-input { min-width: 0; max-width: 100%; flex: 1 1 180px; }
.traffic-panel { margin-top: 20px; }
.redirect-settings-panel { margin-top: 20px; }
.redirect-editor-modal { width: min(100%, 980px); max-height: 90vh; }
.redirect-editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.redirect-editor-grid form, .redirect-preview-wrap { min-width: 0; }
.redirect-editor-grid fieldset { border: 0; margin: 0; padding: 0; }
.redirect-editor-grid fieldset:disabled { opacity: .6; }
.redirect-editor-grid .field label { font-size: .94rem; }
.redirect-editor-grid .field input, .redirect-editor-grid .field textarea { font-size: 1rem; }
.redirect-editor-grid .field textarea { width: 100%; border: 1px solid var(--line-strong); background: var(--surface-solid); color: var(--ink); border-radius: 12px; padding: 13px 14px; resize: vertical; }
.ad-code-editor { padding: 14px; border: 1px solid var(--line); border-radius: 12px; margin: 12px 0; }
.ad-code-editor summary { cursor: pointer; font-weight: 600; }
.ad-code-editor textarea { font-family: ui-monospace, monospace; font-size: .85rem !important; }
.redirect-editor-grid .field-help, .redirect-settings-help { color: var(--ink); font-size: .91rem; line-height: 1.6; }
.redirect-preview { width: 100%; height: 640px; border: 1px solid var(--line-strong); border-radius: 16px; background: #0c1222; }
.redirect-link-marker { display: block; font-size: .8rem; color: var(--ink); margin-top: 7px; }
.redirect-page-button { min-width: 64px; font-size: .8rem; padding: 0 8px; }
.admin-item-actions { display: flex; flex-direction: column; gap: 8px; flex: 0 0 auto; max-width: 150px; }
.admin-item-actions .button { white-space: normal; text-align: center; }
@media (max-width: 760px) { .redirect-editor-grid { grid-template-columns: minmax(0, 1fr); } .redirect-preview { height: 660px; } }
.traffic-panel > p { color: var(--muted); font-size: .88rem; line-height: 1.6; }
.traffic-toolbar { margin-bottom: 14px; }
.traffic-size { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .84rem; }
.traffic-size select { width: auto; }
.traffic-table-shell { max-width: 100%; overflow-x: auto; }
.traffic-table { width: 100%; min-width: 580px; border-collapse: collapse; table-layout: fixed; }
.traffic-table th, .traffic-table td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.traffic-table th { font-size: .83rem; }
.traffic-table th:nth-child(1), .traffic-table th:nth-child(2) { width: 26%; }
.traffic-table th:nth-child(3) { width: 14%; }
.traffic-table th:nth-child(4) { width: 34%; }
.traffic-table .visitor-ip { font-family: ui-monospace, monospace; font-size: .88rem; }
.traffic-table .visitor-count { font-variant-numeric: tabular-nums; }
.owner-service { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: var(--muted); margin-bottom: 14px; }
.owner-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin-bottom: 26px; }
.metric-card { padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-solid); }
.metric-card span { display: block; font-size: .82rem; color: var(--muted); }
.metric-card strong { display: block; margin-top: 10px; font-size: 1.9rem; letter-spacing: -.04em; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 14px; }
.pagination span { font-size: .8rem; color: var(--muted); }
.status.blocked { color: var(--danger); }.status.blocked::before { background: var(--danger); }
.benefit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; margin: 24px 0; }
.result-panel { flex-wrap: wrap; gap: 8px; }
.guest-result-detail { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.guest-result-detail:has(p:empty):has(button.hidden) { display: none; }
.guest-result-detail p { font-size: .82rem; }
.benefits-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.captcha-note { color: var(--muted); font-size: .74rem; line-height: 1.55; text-align: center; margin: 14px 0 0; }
.captcha-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
body[data-captcha-required="true"] footer { padding-bottom: 86px; }

.legal { max-width: 800px; margin: 10px auto; border: 1px solid var(--line); background: var(--surface); border-radius: 24px; padding: clamp(22px, 4vw, 44px); }.legal h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin: 16px 0; letter-spacing: -.05em; }.legal h2 { font-size: 1.15rem; letter-spacing: -.02em; margin: 30px 0 10px; }.legal p, .legal li { color: var(--muted); line-height: 1.75; }.legal a:not(.button) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }.legal-meta { font-size: .82rem; }.legal-summary { background: var(--soft-accent); padding: 14px 18px; border-radius: 12px; }.legal-summary p { margin: 0; color: var(--ink); }.legal-nav { display: flex; flex-wrap: wrap; gap: 10px 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); font-size: .9rem; }.legal .button { margin-top: 24px; }
footer { width: 100%; max-width: 1160px; margin: auto auto 0; min-height: 96px; padding: 24px; gap: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; color: var(--muted); font-size: .82rem; }
.footer-brand { display: grid; gap: 7px; }.powered-by a { color: var(--accent); font-weight: 650; }footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-links { display: flex; gap: 18px; }

@media (max-width: 960px) {
  .site-header { min-height: 76px; padding: 12px 16px; flex-wrap: wrap; gap: 10px; }.header-actions { flex-wrap: wrap; }.hero { margin-top: 32px; padding: 0 16px; }.hero h1 { font-size: clamp(2.4rem, 7.5vw, 3.7rem); }.shorten-panel { padding: 20px; }.product-proof { grid-template-columns: 1fr; margin-top: 36px; gap: 12px; }.result-panel { align-items: flex-start; flex-direction: column; gap: 15px; }.result-actions { margin: 0; width: 100%; }.result-actions .button { flex: 1; }
  .app-main { padding: 36px 16px 60px; }.page-heading { align-items: flex-start; flex-direction: column; }.page-heading .button { width: 100%; }.table-head { display: none; }.table-shell { border: 0; background: transparent; display: grid; gap: 10px; }.link-row { display: grid; grid-template-columns: 1fr auto; gap: 10px 14px; border: 1px solid var(--line) !important; border-radius: 14px; background: var(--surface); padding: 14px; }.link-row .destination { grid-column: 1 / -1; }.link-row .clicks::before { content: "Clicks · "; color: var(--muted); }.link-row .created { display: none; }.link-row .status { justify-self: end; }.row-actions { grid-column: 1 / -1; justify-content: flex-start; border-top: 1px solid var(--line); padding-top: 8px; }.search-input { min-width: 0; width: 100%; }.admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .header-actions { gap: 5px; width: 100%; justify-content: flex-end; }.language-select { padding: 7px 6px 7px 0; }.account-email { max-width: 205px; }.brand-logo { width: 132px; }.hero h1 { letter-spacing: -.045em; }.hero > .eyebrow { font-size: .65rem; }.modal, .auth-page { padding: 20px; }.modal-backdrop { padding: 12px; }.modal-actions { flex-direction: column-reverse; }.modal-actions .button { width: 100%; } footer { align-items: flex-start; gap: 16px; flex-direction: column; }.footer-links a { padding: 10px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .button:hover { transform: none; }
}


.app-version { font-size: .74rem; font-variant-numeric: tabular-nums; }

/* Link lifetime, QR downloads and paged account management. */
.result-qr { flex-basis: 100%; display: flex; align-items: center; gap: 20px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.result-qr img, .qr-preview img { display: block; padding: 6px; background: #fff; border-radius: 10px; flex: 0 0 auto; }
.result-qr p { color: var(--muted); font-size: .88rem; line-height: 1.5; margin: 6px 0 12px; }
.qr-downloads { display: flex; flex-wrap: wrap; gap: 8px; }
.qr-preview { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 8px 0; text-align: center; }
.qr-preview a { overflow-wrap: anywhere; }
.qr-preview p { color: var(--muted); margin: 0; }
.plan-summary { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); margin-bottom: 20px; }
.plan-summary p { color: var(--muted); margin: 6px 0; line-height: 1.6; }
.plan-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.links-toolbar { margin-bottom: 14px; flex-wrap: wrap; }
.links-toolbar .search-input { flex: 1 1 220px; }
.bulk-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.bulk-toolbar > span { color: var(--muted); margin-right: auto; }
.links-table-shell { display: block; min-width: 0; overflow-x: auto; border: 1px solid var(--line); background: var(--surface); }
.links-table { width: 100%; min-width: 1100px; table-layout: fixed; border-collapse: collapse; font-size: .9rem; }
.links-table th { text-align: left; font-size: .74rem; letter-spacing: .03em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.links-table td, .links-table th { padding: 14px 12px; vertical-align: middle; }
.links-table td { border-bottom: 1px solid var(--line); }
.links-table tr:last-child td { border-bottom: 0; }
.links-table .destination { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.links-table th:nth-child(1) { width: 4%; }
.links-table th:nth-child(2) { width: 17%; }
.links-table th:nth-child(3) { width: 18%; }
.links-table th:nth-child(4) { width: 6%; }
.links-table th:nth-child(5) { width: 10%; }
.links-table th:nth-child(6) { width: 15%; }
.links-table th:nth-child(7) { width: 8%; }
.links-table th:nth-child(8) { width: 22%; }
.links-table .short-link { display: block; max-width: 100%; overflow-wrap: anywhere; }
.links-table .created, .links-table .status { white-space: nowrap; }
.links-table .row-actions { display: flex; flex-wrap: nowrap; gap: 5px; }
.links-table .action-button { flex: 0 0 36px; width: 36px; min-height: 40px; }
.qr-button { font-size: .75rem; font-weight: 750; }
.sort-button { display: flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--ink); font: inherit; text-transform: inherit; padding: 6px 0; min-height: 36px; cursor: pointer; }
.sort-button:hover { color: var(--accent); }
.link-checkbox { width: 21px; height: 21px; min-height: 21px; padding: 0; cursor: pointer; accent-color: var(--accent); }
.expiry-cell { min-width: 152px; }
.expiry-cell time { display: block; white-space: nowrap; }
.expiry-cell small { display: block; color: var(--muted); margin-top: 5px; }
@media (max-width: 600px) {
  .result-qr { align-items: flex-start; flex-direction: column; }
  .plan-summary { align-items: flex-start; }
  .plan-actions, .plan-actions .button { width: 100%; }
  .bulk-toolbar > span { flex-basis: 100%; }
}

