.header { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px max(24px, calc((100% - 1180px)/2)); border-bottom: 1px solid var(--border); background: var(--header); }
.brand { color: var(--foreground); text-decoration: none; display: inline-flex; gap: 12px; align-items: center; flex-shrink: 0; }
.brand img { object-fit: contain; }
.brand > span { font-size: 1.35rem; font-weight: 700; letter-spacing: -.04em; }
.brand small { display: block; font-size: .63rem; letter-spacing: .03em; color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.shell { width: min(1180px, calc(100% - 48px)); margin: 40px auto 56px; min-height: calc(100vh - 230px); }
.auth-layout { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: clamp(28px,6vw,100px); padding: 28px 0; }
.welcome h1 { font-size: clamp(2.4rem,4.2vw,3.7rem); }
.welcome > p { max-width: 490px; color: var(--muted); }
.auth-card { padding: clamp(24px,3vw,40px); }
.auth-card input { margin-bottom: 18px; }
.password-panel { max-width: 560px; margin: 48px auto; }
.auth-card > .small { margin-top: 22px; margin-bottom: 0; }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface-soft); border-radius: 13px; margin-bottom: 30px; }
.tabs button { flex: 1; background: transparent; color: var(--muted); font-size: .82rem; padding: 10px 8px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--foreground); box-shadow: 0 2px 7px #0001; }
.button-icon { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.signin-options { margin: -10px 0 24px; }
.signin-options > p { font-size: .76rem; margin: 0 0 9px; color: var(--muted); }
.login-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.login-methods button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; padding: 11px 8px; font-size: .78rem; min-height: 44px; }
.login-methods button[aria-pressed="true"] { border-color: var(--primary-strong); color: var(--primary-strong); background: color-mix(in srgb, var(--primary) 9%, var(--surface)); }
.link-illustration { position: relative; padding: 24px; border-radius: 19px; border: 1px solid var(--border); background: linear-gradient(115deg, color-mix(in srgb, var(--primary) 8%, var(--surface)), color-mix(in srgb, var(--violet) 8%, var(--surface))); margin: 30px 0; max-width: 440px; }
.link-illustration span { display: block; color: var(--muted); font-size: .75rem; }
.link-illustration b { display: block; font-size: 1.22rem; color: var(--primary-strong); margin: 12px 0; letter-spacing: -.035em; }
.benefits { list-style: none; padding: 0; display: grid; gap: 12px; margin: 24px 0; font-size: .9rem; }
.benefits li::before { content: "✓"; color: var(--success); padding-right: 10px; }
.confirmation { padding: 22px 0; }
.confirmation p { margin-top: 10px; color: var(--muted); }
.page-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; margin-bottom: 24px; }
.page-heading h1 { font-size: clamp(1.75rem,3vw,2.4rem); }
.workspace-choice { width: 285px; flex-shrink: 0; }
.workspace-choice .quiet { padding: 8px 4px; font-size: .75rem; }
.workspace-banner { display: flex; gap: 20px; justify-content: space-between; border-bottom: 1px solid var(--border); padding: 0 0 18px; margin-bottom: 22px; overflow-wrap: anywhere; }
.onboarding { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding: 30px; }
.create-panel { padding: 27px 30px; margin-bottom: 28px; display: grid; grid-template-columns: .8fr 2fr; gap: 24px 36px; }
.create-panel h2 { font-size: 1.6rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 18px; }
.wide { grid-column: 1 / -1; }
.form-footer { display: flex; gap: 20px; justify-content: space-between; align-items: center; margin-top: 22px; }
.input-prefix { display: flex; border: 1px solid var(--border); border-radius: 10px; align-items: center; min-width: 0; background: var(--surface); }
.input-prefix span { font-size: .7rem; color: var(--muted); padding-left: 12px; white-space: nowrap; }
.input-prefix input { border: 0; background: transparent; padding-left: 5px; }
.input-prefix + small { display: block; font-size: .7rem; margin-top: 5px; }
.create-panel .success { grid-column: 1 / -1; }
.links-panel { overflow: hidden; }
.section-heading { padding: 25px 30px 20px; display: flex; gap: 18px; align-items: center; justify-content: space-between; }
.section-heading p { margin: 0; }
.filters { padding: 0 30px 22px; display: grid; grid-template-columns: 1fr 180px auto; gap: 12px; }
.link-card { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 21px 30px; border-top: 1px solid var(--border); align-items: center; }
.link-meta { min-width: 0; }
.link-meta strong { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 4px; }
.short-url { display: block; font-size: .86rem; color: var(--primary-strong); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.destination { display: block; font-size: .76rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 4px; }
.link-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 8px; max-width: 420px; }
.link-actions button { font-size: .8rem; padding: 8px 12px; }
.state-badge { display: inline-block; padding: 3px 8px; font-size: .65rem; border-radius: 20px; color: var(--muted); background: var(--surface-soft); margin-top: 8px; }
.state-badge[data-state="active"] { color: var(--success); }
.pagination { border-top: 1px solid var(--border); padding: 18px 30px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.disclosure { padding: 18px 0; margin-bottom: 0; }
.footer { display: flex; gap: 18px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 22px 24px; border-top: 1px solid var(--border); font-size: .78rem; }
.footer a { color: var(--muted); text-decoration: none; min-height: 24px; }
dialog { width: min(640px,calc(100% - 32px)); max-height: calc(100dvh - 40px); border: 1px solid var(--border); border-radius: 19px; padding: 26px; color: var(--foreground); background: color-mix(in srgb, var(--surface) 75%, transparent); backdrop-filter: blur(2px); box-shadow: var(--shadow); }
dialog::backdrop { background: #0610217d; backdrop-filter: blur(2px); }
.dialog-header { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.dialog-header h2 { overflow-wrap: anywhere; }
.detail-url { padding: 13px; border: 1px solid var(--border); background: var(--surface); border-radius: 10px; overflow-wrap: anywhere; font-size: .86rem; margin: 6px 0 16px; }
.detail-actions, .stats-presets { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.detail-edit { margin-top: 22px; border-top: 1px solid var(--border); padding-top: 20px; }
.statistics { margin-top: 24px; border-top: 1px solid var(--border); padding-top: 22px; }
.statistics form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.statistics form button { grid-column: 1 / -1; }
.stats-total { font-size: 1.7rem; color: var(--primary-strong); margin-top: 16px; }
.stats-table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: .78rem; }
.stats-table th { text-align: left; color: var(--muted); }
.stats-table td, .stats-table th { padding: 8px 0; border-bottom: 1px solid var(--border); }
.stats-table td:last-child, .stats-table th:last-child { text-align: right; }
@media(max-width: 850px) { .create-panel { grid-template-columns: 1fr; } .create-panel > div > p { max-width: 600px; } .auth-layout { gap: 30px; } .welcome h1 { font-size: 2.5rem; } }
@media(max-width: 620px) {
  .header { padding: 14px 16px; min-height: 78px; gap: 10px; flex-wrap: wrap; }
  .header-actions { gap: 6px; } .header-actions .pill { display: none; } .header-actions button { padding: 8px 10px; font-size: .76rem; }
  .shell { width: calc(100% - 32px); margin-top: 26px; }
  .auth-layout { grid-template-columns: 1fr; padding: 0; gap: 26px; } .welcome h1 { font-size: 2.35rem; }
  .link-illustration, .benefits { display: none; } .welcome > .small { margin-bottom: 0; }
  .auth-card { padding: 22px; } .tabs { margin-bottom: 22px; }
  .page-heading { flex-direction: column; gap: 8px; } .workspace-choice { width: 100%; }
  .workspace-banner { flex-direction: column; gap: 4px; }
  .onboarding { grid-template-columns: 1fr; padding: 22px; gap: 20px; }
  .create-panel { padding: 22px; gap: 12px; } .form-grid { grid-template-columns: 1fr; gap: 16px; }
  .form-footer, .success { flex-direction: column; align-items: stretch; gap: 12px; }
  .section-heading { padding: 22px 18px 16px; align-items: flex-start; } .section-heading button { font-size: .72rem; padding: 8px; }
  .filters { padding: 0 18px 20px; grid-template-columns: 1fr auto; } .filters > div:first-child { grid-column: 1 / -1; }
  .link-card { padding: 18px; grid-template-columns: 1fr; gap: 12px; } .link-actions { justify-content: flex-end; }
  .pagination { padding: 15px; } .pagination button { padding: 8px; font-size: .75rem; }
  .footer { gap: 12px; font-size: .72rem; } dialog { padding: 20px; }
  .statistics form { grid-template-columns: minmax(0,1fr); }
}
