:root {
  color-scheme: light;
  --paper: #f4f2e9;
  --card: #fffef9;
  --ink: #263c31;
  --muted: #687168;
  --line: #d4d8ca;
  --green: #2b4b3b;
  --orange: #d74c2d;
  --error: #af3527;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; display: grid; place-items: center; -webkit-font-smoothing: antialiased; }
button, textarea { font: inherit; }
button, a, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: 4px; }
button:disabled { cursor: not-allowed; }
button, a, textarea { outline-offset: 5px; }
:focus-visible { outline: 2px solid var(--orange); }
[hidden] { display: none !important; }
svg { flex: none; }
::selection { color: var(--ink); background: #f5ccac; }
.site-shell { width: 100%; max-width: 620px; padding: 32px 20px; }
.creator { min-width: 0; padding: 30px 32px 0; background: var(--card); border: 1px solid #c7cdbd; border-top: 3px solid var(--green); border-radius: 3px; box-shadow: 7px 7px 0 #e4e6d9; }
.creator-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 31px; }
.creator-heading h1 { margin: 0; font-size: 21px; font-weight: 650; letter-spacing: -.025em; }
.field-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.field-heading label { font-size: 13px; font-weight: 650; }
.field-heading > span { color: var(--muted); font-size: 11px; }
textarea { display: block; width: 100%; min-height: 134px; max-height: 360px; padding: 15px; resize: vertical; border: 1px solid #cbd0c2; border-radius: 3px; background: #fcfcf7; color: var(--ink); font-family: var(--mono), "Microsoft JhengHei", sans-serif; font-size: 13px; line-height: 1.85; overflow-wrap: anywhere; transition: border-color .15s, box-shadow .15s; }
textarea::placeholder { color: #7e887a; opacity: 1; }
textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px #2b4b3b12; }
textarea[aria-invalid="true"] { border-color: var(--error); }
textarea[readonly] { color: var(--muted); }
.field-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; margin-top: 9px; font-size: 10px; line-height: 1.7; color: var(--muted); }
#url-bytes { margin-left: auto; font-family: var(--mono); font-size: 10px; font-variant-numeric: tabular-nums; }
#url-bytes[data-over="true"] { color: var(--error); font-weight: 600; }
.field-error { margin: 8px 0 0; color: var(--error); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.verification { margin: 26px 0 23px; padding-top: 20px; border-top: 1px dashed var(--line); }
.verification-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 7px; margin-bottom: 12px; }
.verification-label { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
#turnstile-container { width: 100%; min-width: 0; }
.verification-feedback { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px 12px; }
#verification-status { flex: 1; margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
#verification-status[data-tone="error"] { color: var(--error); }
#verification-status[data-tone="success"] { color: var(--green); }
.text-button { display: inline-flex; gap: 5px; align-items: center; padding: 5px 0; border: 0; background: transparent; color: var(--green); font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.text-button:hover { color: var(--orange); }
.text-button:disabled { opacity: .5; }
.primary-button { width: 100%; min-height: 54px; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 19px; border: 1px solid var(--green); border-radius: 3px; background: var(--green); color: white; font-size: 14px; font-weight: 600; letter-spacing: .06em; transition: background .15s, transform .15s; }
.primary-button:hover:enabled { background: #1e392b; transform: translateY(-1px); }
.primary-button:disabled { background: #dde3d7; border-color: #dde3d7; color: #687561; }
.primary-button[aria-busy="true"] svg { animation: nudge 1s ease-in-out infinite alternate; }
.form-note { margin: 11px 0 24px; text-align: center; font-size: 10px; color: var(--muted); line-height: 1.7; }
.form-message { padding: 11px 13px; margin: 0 0 14px; border-left: 2px solid var(--error); background: #fbefe9; color: #8a3629; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.form-message[data-tone="notice"] { border-color: #a57227; color: #78511b; background: #f7f0dc; }
.result { padding: 21px 0 20px; border-top: 1px dashed #c2ccbc; }
.result-heading, .result-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.result-heading h2 { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; font-weight: 600; }
.success-mark { display: inline-flex; justify-content: center; align-items: center; width: 19px; height: 19px; border: 1px solid #82967c; border-radius: 50%; font-size: 11px; }
.result-tag { font-size: 10px; color: var(--muted); }
.short-url { display: block; width: fit-content; margin: 18px 0; font-family: var(--mono); font-size: clamp(12px, 1.1vw, 15px); font-weight: 600; line-height: 1.8; text-decoration-thickness: 1px; overflow-wrap: anywhere; }
.short-url:hover { color: var(--orange); }
.copy-button { display: inline-flex; justify-content: center; align-items: center; min-height: 40px; gap: 7px; padding: 9px 15px; border: 1px solid var(--green); border-radius: 3px; background: var(--green); color: white; font-size: 12px; }
.copy-button:hover { background: #1e392b; }
.copy-status { margin: 9px 0 0; min-height: 18px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.creator-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 7px 15px; margin: 0 -32px; padding: 14px 24px; border-top: 1px solid var(--line); background: #f4f6ed; color: #63725e; font-size: 10px; line-height: 1.6; }
.creator-footer > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.small-dot { width: 5px; height: 5px; border-radius: 50%; background: #6e875e; }
@keyframes nudge { to { transform: translateX(4px); } }
@media (max-width: 430px) {
  .site-shell { padding: 24px 16px; }
  .creator { padding: 22px 18px 0; box-shadow: 5px 5px 0 #e4e6d9; }
  .creator-heading { margin-bottom: 24px; }
  .creator-heading h1 { font-size: 20px; }
  .field-heading > span { font-size: 10px; }
  textarea { min-height: 126px; padding: 12px; font-size: 16px; }
  .field-meta { font-size: 9px; }
  #url-bytes { font-size: 9px; }
  .verification { margin: 22px 0 20px; padding-top: 17px; }
  .creator-footer { margin-right: -18px; margin-left: -18px; padding: 12px 16px; font-size: 9px; gap: 5px 8px; }
  .form-note { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
