*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;border:0 solid var(--border)}html{--radius-lg:var(--radius);--radius-md:calc(var(--radius) - 2px);-webkit-text-size-adjust:100%;color-scheme:light}html.dark{color-scheme:dark}:root{--font-cjk:"PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC"}:root:lang(zh-tw){--font-cjk:"PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC", "Source Han Sans TC"}:root:lang(ja){--font-cjk:"Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans CJK JP", "Source Han Sans JP"}:root:lang(ko){--font-cjk:"Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans CJK KR", "Source Han Sans KR"}body{min-height:100vh;display:flex;flex-direction:column;background:var(--background);color:var(--foreground);font-family:var(--font-theme),var(--font-cjk),ui-sans-serif,system-ui,sans-serif;line-height:1.5;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button,input{font:inherit;color:inherit;background:0 0}button{cursor:pointer}a,button,summary{-webkit-tap-highlight-color:transparent}button,summary,.button{touch-action:manipulation}img,svg{display:block}[hidden]{display:none!important}:focus-visible{outline:2px solid var(--ring);outline-offset:2px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.container{width:100%;max-width:80rem;margin:0 auto;padding:0 1rem}.site-header{border-bottom-width:1px}.site-header .container{height:4rem;display:flex;align-items:center;justify-content:space-between}.nav{display:flex;align-items:center;gap:1.5rem}.nav-link[aria-current=page]:not(:hover){color:var(--primary)}.nav-link{font-size:.875rem;font-weight:500;white-space:nowrap;transition:color .15s}@media(hover:hover) and (pointer:fine){.nav-link:hover{color:var(--primary)}}.header-actions{display:flex;align-items:center;gap:1rem}.icon-button{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-width:2.25rem;height:2.25rem;padding:0 .5rem;border-radius:var(--radius-md);transition:background-color .15s}@media(hover:hover) and (pointer:fine){.icon-button:hover{background:var(--accent);color:var(--accent-foreground)}}.flag{width:20px;height:15px;border-radius:2px}.lang,.theme-toggle{position:relative}.lang-menu{position:absolute;right:0;z-index:50;width:12rem;margin-top:.5rem;padding:0;overflow:hidden;border-width:1px;border-radius:var(--radius-md);background:var(--popover);color:var(--popover-foreground);box-shadow:0 10px 15px -3px rgb(0 0 0/.1),0 4px 6px -4px rgb(0 0 0/.1)}.lang-menu[hidden]{display:none}.lang-menu :is(a,button){display:flex;width:100%;align-items:center;gap:.5rem;padding:.625rem 1rem;font-size:.875rem}@media(hover:hover) and (pointer:fine){.lang-menu :is(a,button):hover{background:var(--accent)}}.lang-menu a[aria-current=page],.theme-menu [aria-checked=true]{font-weight:600}.theme-menu{width:10rem}.theme-menu button{border:0;background:0 0;color:inherit;font:inherit;font-size:.875rem;text-align:left;cursor:pointer}.theme-menu svg{flex-shrink:0;width:16px;height:16px}#theme-button svg{display:none}[data-choice=system] #theme-button .icon-system,[data-choice=light] #theme-button .icon-light,[data-choice=dark] #theme-button .icon-dark{display:block}.site-main{flex:1;display:flex;align-items:center;justify-content:center;padding:4rem 0}.content{width:100%;max-width:64rem;margin:0 auto;padding:0 1rem}@media(min-width:1024px){.content>*{width:80%;margin-left:auto;margin-right:auto}}.card{border-width:1px;border-radius:var(--radius-lg);background:var(--card);color:var(--card-foreground);box-shadow:0 1px 2px rgb(0 0 0/5%)}.shortener{padding:2rem}.shortener-head{padding:1.5rem 1.5rem 2rem;text-align:center}.logo{width:80px;height:80px;margin:0 auto 1.5rem}.logo-svg{width:256px;height:256px;max-width:100%;margin:0 auto 1.5rem;color:var(--foreground)}.title{font-size:1.875rem;font-weight:600;line-height:1.1;letter-spacing:-.025em}.description{margin-top:.25rem;font-size:1.125rem;color:var(--muted-foreground)}.shortener-body{padding:0 1.5rem 1.5rem}.row{display:flex;flex-direction:column;gap:1rem}.row+.row{margin-top:2rem}.row[hidden]{display:none}@media(min-width:768px){.row{flex-direction:row;align-items:center}.row .input{flex:1}}.input{width:100%;height:3rem;padding:.25rem .75rem;border-width:1px;border-color:var(--input);border-radius:var(--radius-md);background:var(--background);font-size:1.125rem;box-shadow:0 1px 2px rgb(0 0 0/5%)}.input::placeholder{color:var(--muted-foreground)}.input:focus-visible{outline:none;box-shadow:0 0 0 1px var(--ring)}.url-field{display:flex;align-items:center;min-width:0;cursor:text}.url-field:focus-within{box-shadow:0 0 0 1px var(--ring)}.url-field.is-invalid{border-color:var(--destructive)}.url-ghost{flex-shrink:0;white-space:pre;user-select:none}.url-ghost-lit{color:var(--foreground)}.url-ghost-dim{color:var(--muted-foreground);opacity:.6}.url-input{flex:1;min-width:0;height:100%;border:0;outline:none;background:0 0}.url-input:focus-visible{outline:none}.url-input::placeholder{color:var(--muted-foreground)}.button{display:inline-flex;align-items:center;justify-content:center;height:3rem;padding:0 2rem;border-radius:var(--radius-md);font-size:.875rem;font-weight:500;white-space:nowrap;transition:background-color .15s,opacity .15s,transform .16s ease-out}.button:active:not(:disabled),.history-action:active{transform:scale(.97)}.button:disabled{opacity:.5;pointer-events:none}.button-primary[aria-busy=true]{opacity:1}.button-primary{background:var(--primary);color:var(--primary-foreground);box-shadow:0 1px 3px rgb(0 0 0/.1)}@media(hover:hover) and (pointer:fine){.button-primary:hover{background:color-mix(in oklab,var(--primary) 90%,transparent)}}.button-outline{border-width:1px;border-color:var(--input);background:var(--background);box-shadow:0 1px 2px rgb(0 0 0/5%)}@media(hover:hover) and (pointer:fine){.button-outline:hover{background:var(--accent);color:var(--accent-foreground)}}.busy-dots{font-size:1.4em;line-height:1;letter-spacing:.12em}.busy-dots i{font-style:normal}.busy-dots,.button-label{animation:key-swap 160ms cubic-bezier(.23,1,.32,1)}@keyframes key-swap{from{opacity:0;filter:blur(2px)}}#result:not([hidden]){animation:result-in 200ms cubic-bezier(.23,1,.32,1)}@keyframes result-in{from{opacity:0;transform:translateY(-6px)}}.busy-dots i:nth-child(2){animation:busy-dot-2 .9s steps(1,end)infinite}.busy-dots i:nth-child(3){animation:busy-dot-3 .9s steps(1,end)infinite}@keyframes busy-dot-2{0%{opacity:0}33.33%,100%{opacity:1}}@keyframes busy-dot-3{0%{opacity:0}66.67%,100%{opacity:1}}@keyframes key-swap-fade{from{opacity:0}}@media(prefers-reduced-motion:reduce){.busy-dots,.button-label{animation-name:key-swap-fade}#result:not([hidden]){animation-name:key-swap-fade}.busy-dots i{opacity:1;animation:none}}.history{margin-top:2rem}.history-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.5rem 1.5rem .5rem}.history-title{font-size:1.25rem;font-weight:600;line-height:1;letter-spacing:-.025em}.history-list{list-style:none;padding:0 1.5rem}.history-item{display:grid;grid-template-columns:minmax(0,1fr)auto auto;align-items:center;gap:.25rem 1rem;padding:.75rem 0;border-bottom-width:1px}.history-links{display:flex;flex-direction:column;min-width:0}.history-short{font-weight:500;color:var(--primary)}@media(hover:hover) and (pointer:fine){.history-short:hover{text-decoration:underline;text-underline-offset:2px}}.history-long,.history-time{color:var(--muted-foreground);font-size:.875rem}.history-short{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-long{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;overflow-wrap:anywhere}.history-time{white-space:nowrap;font-variant-numeric:tabular-nums}.history-actions{display:flex;gap:.5rem}.history-action{height:2rem;padding:0 .75rem;border:1px solid var(--input);border-radius:var(--radius-md);background:var(--background);font-size:.75rem;font-weight:500;white-space:nowrap;transition:background-color .15s}@media(hover:hover) and (pointer:fine){.history-action:hover{background:var(--accent);color:var(--accent-foreground)}}.history-note{padding:1rem 1.5rem 1.5rem;color:var(--muted-foreground);font-size:.875rem}.history-note a{font-weight:500;text-decoration:underline;text-underline-offset:2px;transition:color .15s}@media(hover:hover) and (pointer:fine){.history-note a:hover{color:var(--primary)}}@media(max-width:767px){.history-item{grid-template-columns:minmax(0,1fr)auto}.history-links{grid-column:1/-1}}.doc{padding:2rem}.doc-title{font-size:2rem;font-weight:700;line-height:1.15;letter-spacing:-.02em}.doc-updated{margin-top:.5rem;color:var(--muted-foreground);font-size:.875rem}.doc-intro{margin-top:1rem}.doc-body{margin-top:2rem}.doc-section+.doc-section{margin-top:1.75rem}.doc-section h2{margin-bottom:.5rem;font-size:1.125rem;font-weight:600}.doc p+p,.doc p+ul,.doc ul+p{margin-top:.75rem}.doc ul{padding-left:1.25rem;list-style:disc}.doc li+li{margin-top:.375rem}.doc p,.doc li{text-wrap:pretty}.doc a:not(.button){font-weight:500;text-decoration:underline;text-underline-offset:2px}@media(hover:hover) and (pointer:fine){.doc a:not(.button):hover{color:var(--primary)}}.doc code{font-family:ui-monospace,SFMono-Regular,Menlo,var(--font-cjk),monospace;font-size:.9em}.doc-action{margin-top:2rem}.dialog{width:min(30rem,calc(100vw - 2rem));margin:auto;padding:0;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--popover);color:var(--popover-foreground);box-shadow:0 10px 30px rgb(0 0 0/.2)}.dialog::backdrop{background:rgb(0 0 0/.5)}.dialog-body{padding:1.5rem 1.5rem 0}.dialog-title{font-size:1.125rem;font-weight:600;line-height:1.35;text-wrap:balance}.dialog-note{margin-top:.5rem;color:var(--muted-foreground);font-size:.9375rem;line-height:1.6;text-wrap:pretty}.dialog-note a{color:inherit;text-decoration:underline;text-underline-offset:2px}.dialog-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.75rem;padding:1.5rem}.dialog .button{height:2.5rem;padding:0 1.25rem}.faq{margin-top:2rem}.faq-title{padding:1.5rem;font-size:1.5rem;font-weight:600;line-height:1;letter-spacing:-.025em;text-align:center}.faq-list{padding:0 1.5rem 1.5rem}.faq-item{border-bottom-width:1px}.faq-item summary{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 0;font-weight:500;cursor:pointer;list-style:none}.faq-item summary::-webkit-details-marker{display:none}@media(hover:hover) and (pointer:fine){.faq-item summary:hover{text-decoration:underline}}.faq-item summary svg{flex-shrink:0;width:1rem;height:1rem;transition:transform .2s}.faq-item[open] summary svg{transform:rotate(180deg)}.faq-answer{padding-bottom:1rem;font-size:.875rem;line-height:1.7}.faq-answer a{font-weight:500;text-decoration:underline;text-underline-offset:2px;transition:color .15s}@media(hover:hover) and (pointer:fine){.faq-answer a:hover{color:var(--primary)}}.faq-answer code{font-family:ui-monospace,SFMono-Regular,Menlo,var(--font-cjk),monospace;font-size:.875em;font-weight:600}.site-footer{border-top-width:1px;padding:1.5rem}.footer-inner{display:flex;flex-direction:column;align-items:center;gap:1rem}@media(min-width:768px){.footer-inner{flex-direction:row;justify-content:space-between}}.copyright{font-size:.875rem;color:var(--muted-foreground);text-align:center}.footer-links{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:.75rem 1.5rem}.socials{display:flex;gap:1rem}.socials a{color:var(--muted-foreground);transition:color .15s}@media(hover:hover) and (pointer:fine){.socials a:hover{color:var(--foreground)}}.socials svg{width:1.25rem;height:1.25rem}.toasts{position:fixed;top:0;right:0;z-index:100;display:flex;flex-direction:column;gap:.5rem;width:100%;padding:1rem;pointer-events:none}@media(min-width:640px){.toasts{top:auto;bottom:0;max-width:420px}}.toast{padding:1rem 1.5rem 1rem 1rem;border-width:1px;border-radius:var(--radius-md);background:var(--background);color:var(--foreground);font-size:.875rem;box-shadow:0 10px 15px -3px rgb(0 0 0/.1),0 4px 6px -4px rgb(0 0 0/.1);pointer-events:auto;animation:toast-in .2s ease-out}.toast.is-error{border-color:var(--destructive);background:var(--destructive);color:var(--destructive-foreground)}.toast.is-leaving{opacity:0;transition:opacity .2s}@keyframes toast-in{from{opacity:0;transform:translateY(100%)}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}