/* Link shortener only – shared styles are in static/css/app.css */
.sl-gate { text-align: center; padding: 32px 24px; }
.sl-gate h2 { margin: 8px 0 6px; }
.sl-gate-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
  background: var(--accent-soft); color: var(--accent); }
.sl-gate-icon .icon { width: 28px; height: 28px; }
.sl-perks { list-style: none; padding: 0; margin: 20px auto 0; max-width: 420px; text-align: left;
  display: flex; flex-direction: column; gap: 8px; font-size: .92rem; }
.sl-perks li { display: flex; gap: 8px; align-items: flex-start; }
.sl-perks .icon { color: var(--ok); margin-top: 3px; }

.sl-input-row { display: flex; gap: 8px; }
.sl-input-row input { flex: 1; font-size: 1rem; padding: 12px 14px; }
.sl-more summary { cursor: pointer; font-size: .9rem; color: var(--muted); }
.sl-prefix { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.sl-prefix span { display: flex; align-items: center; padding: 0 8px; background: var(--surface-2); color: var(--muted); font-size: .8rem; white-space: nowrap; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.sl-prefix input { border: 0; border-radius: 0; min-width: 0; }

.sl-result { margin-top: 16px; border-color: var(--ok); display: flex; flex-direction: column; gap: 14px; }
.sl-result-main { display: flex; gap: 16px; justify-content: space-between; align-items: center; }
.sl-result-main img { width: 96px; height: 96px; flex: none; background: #fff; border-radius: 8px; border: 1px solid var(--line); }
.sl-short { display: block; font-size: 1.35rem; font-weight: 700; word-break: break-all; margin: 2px 0; }
.sl-target { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 520px; }

.sl-list .sl-item { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.sl-item .body { min-width: 0; flex: 1; }
.sl-item.off { opacity: .6; }
.sl-code { font-weight: 700; font-size: 1.02rem; word-break: break-all; }
.sl-bars { display: flex; flex-direction: column; gap: 6px; }
.sl-bars .r { display: grid; grid-template-columns: 120px 1fr 48px; gap: 8px; align-items: center; font-size: .88rem; }
.sl-bars .bar { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.sl-bars .bar i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.sl-locked { position: relative; }
.sl-locked .sl-bars { filter: blur(3px); pointer-events: none; user-select: none; }
.sl-locked .sl-lock-note { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 12px; }

.sl-gate-page { max-width: 520px; margin: 48px auto; text-align: center; }
.sl-gate-page .dest { word-break: break-all; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; text-align: left; }
.sl-warn { border-color: var(--bad); }
.sl-warn h1 { color: var(--bad); }

@media (max-width: 600px) {
  .sl-input-row { flex-direction: column; }
  .sl-result-main img { width: 72px; height: 72px; }
  .sl-bars .r { grid-template-columns: 96px 1fr 40px; }
}
