:root {
  --ink: #1e2130;
  --muted: #74798a;
  --line: #e2e4ec;
  --paper: #f6f7fb;
  --white: #fff;
  --accent: #6658ed;
  --success: #318b61;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 15px/1.5 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }
.shell { width: min(100% - 40px, 920px); margin: 0 auto; }
.header { display: flex; height: 76px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { color: var(--ink); font-size: 21px; font-weight: 750; letter-spacing: -.08em; text-decoration: none; }
.brand-mark { display: inline-grid; width: 23px; height: 23px; margin-left: 6px; place-items: center; color: #fff; background: var(--accent); border-radius: 6px; font-size: 16px; letter-spacing: 0; vertical-align: 1px; }
.header-status, .kicker, .form-meta, .result-label, .footer { color: var(--muted); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.header-status i { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #4ab47c; }
.hero { max-width: 700px; padding: 120px 0 170px; }
.kicker { margin: 0 0 20px; color: var(--accent); }
h1 { margin: 0; font-size: clamp(58px, 10vw, 100px); font-weight: 760; letter-spacing: -.1em; line-height: .95; }
h1 span { color: var(--accent); }
.intro { max-width: 410px; margin: 26px 0 42px; color: var(--muted); font-size: 17px; }
.shorten-form { padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 35px #25264a0b; }
label { display: block; margin-bottom: 9px; font-size: 12px; font-weight: 700; }
label small { color: var(--muted); font-weight: 400; }
.form-row { display: flex; gap: 8px; }
input { width: 100%; min-width: 0; padding: 14px 15px; color: var(--ink); background: #fbfbfd; border: 1px solid var(--line); border-radius: 7px; outline: 0; }
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #6658ed1c; }
.form-row button { min-width: 125px; color: #fff; background: var(--accent); border: 0; border-radius: 7px; font-weight: 700; }
.form-row button:hover { background: #5547dc; }
.form-row button:disabled { opacity: .6; cursor: wait; }
.form-row b { margin-left: 10px; font-size: 17px; }
.form-meta { display: flex; justify-content: space-between; gap: 15px; margin-top: 12px; font-size: 10px; letter-spacing: 0; text-transform: none; }
.customize { padding: 0; color: var(--accent); background: none; border: 0; font-size: 11px; }
.customize:hover { text-decoration: underline; }
.customize-panel { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.customize-panel input { max-width: 320px; }
.result { margin-top: 16px; padding: 18px; background: #effaf4; border: 1px solid #ccebd9; border-radius: 9px; }
.result-label { margin-bottom: 10px; color: var(--success); font-size: 10px; }
.result-label i { display: inline-grid; width: 17px; height: 17px; margin-right: 5px; place-items: center; color: #fff; background: #47ad78; border-radius: 50%; font-style: normal; font-size: 11px; }
.result-row { display: flex; align-items: center; gap: 9px; }
.result-row a { min-width: 0; overflow: hidden; color: var(--ink); font: 500 14px ui-monospace, SFMono-Regular, Menlo, monospace; text-overflow: ellipsis; white-space: nowrap; }
.result-row button { padding: 8px 12px; color: #fff; background: var(--ink); border: 0; border-radius: 5px; font-size: 12px; font-weight: 700; }
.new-link { margin-top: 13px; padding: 0; color: var(--muted); background: none; border: 0; font-size: 11px; }
.new-link:hover { color: var(--ink); }
.error { margin: 12px 0 0; color: #c45160; font-size: 12px; }
.footer { display: flex; justify-content: space-between; padding: 20px 0 24px; border-top: 1px solid var(--line); font-size: 10px; }
.toast { position: fixed; bottom: 24px; left: 50%; padding: 10px 14px; color: #fff; background: var(--ink); border-radius: 6px; font-size: 12px; opacity: 0; pointer-events: none; transform: translate(-50%, 8px); transition: .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 600px) {
  .shell { width: min(100% - 28px, 920px); }
  .header { height: 64px; }
  .header-status { font-size: 9px; }
  .hero { padding: 83px 0 115px; }
  .intro { font-size: 15px; }
  .shorten-form { padding: 16px; }
  .form-row { display: block; }
  .form-row button { width: 100%; height: 46px; margin-top: 8px; }
  .form-meta { align-items: flex-start; line-height: 1.4; }
  .footer { display: block; line-height: 2; }
  .footer span { display: block; }
}
