:root{--ink:#15252a;--muted:#65777a;--line:#e5eeee;--green:#1fd56b;--deep:#08793b;--mint:#edfdf5;--card:#fff;--danger:#bd2638;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:#f5fcf8}*{box-sizing:border-box}body{margin:0;min-width:320px;background:radial-gradient(circle at 5% 12%,#fff 0 10%,transparent 32%),radial-gradient(circle at 92% 20%,#d5fae5 0 10%,transparent 34%),linear-gradient(135deg,#f7fffa,#e5f9ef);min-height:100vh}a{color:inherit}.button{appearance:none;border:0;border-radius:12px;background:#eef3f1;color:var(--ink);cursor:pointer;font:700 .95rem/1.1 inherit;padding:13px 18px;text-decoration:none;text-align:center;display:inline-flex;justify-content:center;align-items:center;gap:8px}.button:hover{filter:brightness(.97)}.button.primary{background:linear-gradient(135deg,#25df77,#10b75a);color:white;box-shadow:0 10px 20px #13b76033}.button.danger{background:#fff0f1;color:#a4182d}.button.small{padding:9px 12px;border-radius:9px;font-size:.84rem}.muted{color:var(--muted)}.notice{padding:12px 14px;border-radius:10px;background:#edfff5;color:#08793b;font-weight:600}.notice.danger{background:#fff0f1;color:#a4182d}.stack{display:grid;gap:14px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}label{display:grid;gap:7px;font-size:.88rem;font-weight:700;color:#425459}input,textarea,select{width:100%;border:1px solid #d7e5df;background:#fff;border-radius:10px;padding:12px 13px;color:var(--ink);font:500 .96rem/1.3 inherit;outline:none}textarea{min-height:115px;resize:vertical}input:focus,textarea:focus,select:focus{border-color:#19c968;box-shadow:0 0 0 3px #1fd56b25}.help{margin:0;color:var(--muted);font-size:.79rem;line-height:1.45}
/* public home */.home-nav{max-width:1080px;margin:auto;padding:24px;display:flex;align-items:center;justify-content:space-between}.wordmark{display:flex;align-items:center;gap:10px;font-weight:850;font-size:1.17rem;text-decoration:none}.brand-icon,.brand-mark{width:35px;height:35px;border-radius:12px;background:linear-gradient(135deg,#28df79,#0fae54);color:#fff;display:grid;place-items:center;box-shadow:0 7px 18px #14bc6044;font-size:1.4rem;font-weight:800}.home-hero{max-width:760px;margin:54px auto;padding:36px 24px;text-align:center}.eyebrow{color:#0c9b4d;font-size:.78rem;text-transform:uppercase;letter-spacing:.12em;font-weight:850}.home-hero h1{font-size:clamp(2.35rem,6vw,4.5rem);letter-spacing:-.065em;line-height:1.02;margin:16px 0}.home-hero>p{max-width:560px;margin:0 auto 30px;color:var(--muted);font-size:1.07rem;line-height:1.55}.shorten-card{background:#ffffffd9;box-shadow:0 24px 70px #0f7b4430;border:1px solid #ffffff;border-radius:24px;padding:18px;text-align:left}.shorten-form{display:grid;grid-template-columns:1fr auto;gap:10px}.shorten-form input{font-size:1rem}.shorten-extra{display:flex;align-items:center;gap:10px;margin-top:12px}.shorten-extra input{max-width:205px}.home-features{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;max-width:920px;margin:0 auto;padding:10px 24px 55px}.feature{background:#fff9;border:1px solid #fff;border-radius:17px;padding:20px;text-align:left}.feature b{display:block;margin-bottom:6px}.feature p{margin:0;color:var(--muted);font-size:.9rem;line-height:1.5}.public-result{margin:18px 0 0;text-align:left}.result-link{font-weight:800;word-break:break-all;color:#08793b}
/* wait screen */.redirect-page{min-height:100vh;display:grid;place-items:center;overflow:hidden;position:relative;padding:18px}.redirect-page:before,.redirect-page:after{content:"";position:absolute;width:44vw;height:44vw;max-width:620px;max-height:620px;border-radius:50%;background:#bdf7d8a8;filter:blur(3px);z-index:0}.redirect-page:before{top:-19vw;right:-15vw}.redirect-page:after{bottom:-23vw;left:-16vw}.redirect-card{z-index:1;width:min(670px,100%);min-height:760px;background:#fffffff0;border:15px solid #ffffffb8;border-radius:34px;padding:34px 28px;box-shadow:0 28px 55px #3e816a42;display:flex;flex-direction:column;text-align:center}.visual-tile{height:min(48vw,390px);min-height:250px;border-radius:27px;background:radial-gradient(circle at 50% 46%,#22dd75 0 24%,#1ac66a 25% 31%,#eefff6 32% 42%,#c9f3dc 43% 51%,#daf9e8 52% 60%,#d5ede3 61%);display:grid;place-items:center;position:relative;overflow:hidden}.visual-tile:before{content:"";width:34%;aspect-ratio:1;border:8px solid #fff;border-radius:50%;filter:drop-shadow(0 5px 7px #0a7d3b55)}.visual-tile:after{content:"↗";position:absolute;color:#fff;font-size:4.4rem;font-weight:900;transform:translate(-3px,4px)}.redirect-card h1{margin:25px 0 4px;font-size:clamp(2rem,6vw,3.1rem);letter-spacing:-.05em}.redirect-subtitle{font-size:1.45rem;font-weight:750;letter-spacing:.04em;color:#697b7e;margin:0;overflow-wrap:anywhere}.wait-pill{background:#e8fbf0;border:1px solid #d2f4e1;color:#14984c;padding:7px 13px;border-radius:999px;font-weight:800;margin:34px auto 24px;display:flex;gap:9px;align-items:center}.pulse-dot{width:11px;height:11px;background:#23d770;border-radius:50%;box-shadow:0 0 0 5px #23d77019}.count-ring{--progress:0%;width:144px;aspect-ratio:1;margin:3px auto 26px;border-radius:50%;background:conic-gradient(#23d36f var(--progress),#e8eeeb 0);padding:15px;display:grid;place-items:center;transition:background .08s linear}.count-ring>span{background:#fff;width:100%;height:100%;display:grid;place-items:center;border-radius:50%;color:#1ad169;font-size:3.3rem;font-weight:850}.progress-track{height:10px;background:#e4ece8;border-radius:99px;overflow:hidden;margin:0 0 23px}.progress-track>i{display:block;height:100%;width:0;background:#22d46f;border-radius:inherit;transition:width .08s linear}.redirect-actions{margin-top:auto;display:grid;gap:13px}.redirect-actions .button{font-size:1.05rem;min-height:56px}.redirect-disclaimer{font-size:.85rem;color:#7c898a;margin:0}.page-footer{position:absolute;bottom:14px;color:#466358;font-size:.76rem;z-index:1}
/* auth + dashboard */.auth-page{display:grid;place-items:center;padding:24px}.auth-card{width:min(460px,100%);background:#fff;border:1px solid #fff;border-radius:20px;padding:32px;box-shadow:0 26px 70px #1361372b}.auth-card .brand-mark{margin:auto}.auth-card h1{text-align:center;margin:15px 0 7px;letter-spacing:-.04em}.auth-card>p{text-align:center;color:var(--muted);margin:0 0 23px;line-height:1.45}.installer{width:min(620px,100%)}.admin-layout{display:grid;grid-template-columns:245px 1fr;min-height:100vh;background:#f6faf8}.sidebar{padding:23px 14px;background:#113a2a;color:#dcebe4;display:flex;flex-direction:column;gap:22px}.sidebar .wordmark{color:#fff;padding:0 8px}.sidebar .brand-icon{box-shadow:none}.nav-links{display:grid;gap:5px}.nav-links a{padding:11px 12px;border-radius:9px;text-decoration:none;font-weight:650;font-size:.92rem}.nav-links a:hover,.nav-links a.active{background:#ffffff18;color:white}.sidebar-bottom{margin-top:auto}.dashboard{padding:32px;max-width:1350px;width:100%;margin:auto}.dashboard-header{display:flex;align-items:start;justify-content:space-between;gap:20px;margin-bottom:27px}.dashboard-header h1{font-size:2rem;letter-spacing:-.05em;margin:0 0 6px}.dashboard-header p{margin:0;color:var(--muted)}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:20px}.stat{background:#fff;border:1px solid #e8f0ec;border-radius:15px;padding:21px}.stat small{color:var(--muted);font-weight:650}.stat strong{display:block;font-size:2rem;letter-spacing:-.05em;margin-top:7px}.admin-card{background:#fff;border:1px solid #e4ede9;border-radius:15px;padding:22px;margin-bottom:20px;box-shadow:0 4px 18px #12382007}.card-title{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:17px}.card-title h2{margin:0;font-size:1.1rem;letter-spacing:-.025em}.table-wrap{overflow:auto}.links-table{border-collapse:collapse;width:100%;min-width:750px;font-size:.9rem}.links-table th{color:#6c7d7a;font-weight:750;font-size:.76rem;text-transform:uppercase;letter-spacing:.05em;text-align:left;padding:0 12px 10px}.links-table td{border-top:1px solid #e7efeb;padding:14px 12px;vertical-align:middle}.link-dest{max-width:275px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#6b7d7b}.code{font:700 .85rem ui-monospace,SFMono-Regular,Consolas,monospace;color:#08793b}.status{font-size:.75rem;border-radius:30px;padding:5px 9px;font-weight:750;background:#e8fff1;color:#08793b}.status.off{background:#f0f2f1;color:#6c7472}.row-actions{display:flex;gap:7px}.settings-section{max-width:800px}.check-row{display:flex;align-items:center;gap:9px;font-size:.9rem}.check-row input{width:18px;height:18px}.login-note{font-size:.82rem}.empty{text-align:center;color:#778884;padding:28px!important}
@media(max-width:760px){.home-nav{padding:17px}.home-nav .admin-link{display:none}.home-hero{margin:25px auto;padding:28px 17px}.shorten-form{grid-template-columns:1fr}.shorten-form .button{min-height:48px}.shorten-extra{align-items:start;flex-direction:column}.shorten-extra input{max-width:none}.home-features{grid-template-columns:1fr;padding-bottom:25px}.redirect-card{border-width:10px;border-radius:27px;min-height:calc(100svh - 36px);padding:25px 18px}.visual-tile{min-height:230px}.redirect-card h1{margin-top:22px}.wait-pill{margin-top:27px}.count-ring{width:130px}.admin-layout{grid-template-columns:1fr}.sidebar{padding:13px 15px;position:sticky;top:0;z-index:5;display:flex;flex-direction:row;align-items:center}.sidebar .wordmark{padding:0}.nav-links{display:flex;overflow:auto;gap:3px}.nav-links a{white-space:nowrap;padding:8px 10px}.sidebar-bottom{margin:0 0 0 auto}.sidebar-bottom a{font-size:0}.sidebar-bottom a:after{content:'↪';font-size:1.2rem}.dashboard{padding:22px 14px}.dashboard-header{align-items:center}.stats{grid-template-columns:1fr 1fr}.stats .stat:last-child{grid-column:span 2}.form-grid{grid-template-columns:1fr}.auth-card{padding:26px 20px}.card-title{align-items:flex-start;flex-direction:column}.visual-tile:after{font-size:3.8rem}}

/* Responsive redirect screen: the card always fits the available phone viewport. */
.redirect-page{height:100dvh;min-height:480px;padding:16px;overflow:hidden}
.redirect-card{width:min(688px,100%);height:min(1090px,calc(100dvh - 32px));min-height:0;padding:clamp(16px,3.4vw,28px);border-width:clamp(8px,1.8vw,15px);border-radius:clamp(25px,5vw,35px);gap:0}
.visual-tile{height:auto;min-height:0;flex:1;border-radius:clamp(20px,4vw,27px)}
.redirect-card h1{margin:clamp(14px,2.8vh,28px) 0 2px;font-size:clamp(1.85rem,5.6vw,3rem);line-height:1.04}
.redirect-subtitle{font-size:clamp(1.1rem,3.8vw,1.45rem);line-height:1.15}
.wait-pill{margin:clamp(14px,3vh,29px) auto clamp(12px,2.5vh,23px);padding:6px 12px;font-size:clamp(.86rem,3.2vw,1rem)}
.count-ring{width:clamp(108px,22vh,144px);margin:0 auto clamp(14px,2.6vh,25px)}
.count-ring>span{font-size:clamp(2.45rem,8vw,3.3rem)}
.progress-track{margin:0 0 clamp(12px,2.5vh,23px)}
.redirect-actions{margin-top:0}.redirect-actions .button{min-height:clamp(50px,7vh,58px)}
.redirect-page .page-footer{display:none}.is-ready .count-ring>span{font-size:clamp(2.35rem,7vw,3.05rem)}
.visual-tile.has-logo:before,.visual-tile.has-logo:after{display:none}.redirect-brand-image{position:relative;z-index:1;width:min(52%,250px);max-height:70%;object-fit:contain;filter:drop-shadow(0 9px 14px #08763d42)}
@media(max-height:650px){.redirect-page{padding:8px}.redirect-card{height:calc(100dvh - 16px);padding:13px;border-width:8px}.visual-tile{flex:1.1}.redirect-card h1{margin:9px 0 1px;font-size:1.75rem}.wait-pill{margin:9px auto;padding:5px 10px}.count-ring{width:94px;margin:0 auto 10px}.progress-track{margin-bottom:10px}.redirect-actions .button{min-height:45px}.redirect-disclaimer{display:none}}


/* WhatsApp-style entry screen, scoped to the redirect page only. */
.whatsapp-entry{background:radial-gradient(circle at 85% 5%,#d8f7e9 0 18%,transparent 19%),radial-gradient(circle at 8% 100%,#e3f8ef 0 14%,transparent 15%),linear-gradient(135deg,#f8fffc,#c9ecdf)}
.whatsapp-entry .redirect-card{min-height:0;height:min(1090px,calc(100dvh - 32px));padding:clamp(16px,3.4vw,28px);border:clamp(8px,1.8vw,15px) solid #ffffffd9;border-radius:clamp(25px,5vw,35px);gap:0}
.whatsapp-entry .visual-tile{flex:1;min-height:250px;height:auto;border-radius:clamp(20px,4vw,27px);background:linear-gradient(145deg,#e8f7ef,#cbded8);}
.whatsapp-visual{position:relative;isolation:isolate}
.wa-orbit{position:absolute;aspect-ratio:1;border-radius:50%;border:clamp(14px,3vw,25px) solid #ffffff65;}
.wa-orbit-one{width:76%;}
.wa-orbit-two{width:61%;border-width:clamp(12px,2.5vw,21px);border-color:#ffffffb8}
.wa-logo-circle{width:49%;aspect-ratio:1;border-radius:50%;display:grid;place-items:center;color:white;background:linear-gradient(145deg,#27df76,#13bd5d);border:clamp(9px,2vw,16px) solid #fff;box-shadow:0 7px 0 #ffffff22,0 0 0 13px #ffffff35;z-index:1}
.wa-logo{width:65%;height:65%;filter:drop-shadow(0 1px 1px #007d3930)}
.whatsapp-entry .redirect-card h1{margin:clamp(14px,2.8vh,28px) 0 2px;font-size:clamp(1.85rem,5.6vw,3rem);line-height:1.04;letter-spacing:-.04em}
.whatsapp-entry .redirect-subtitle{font-size:clamp(1.1rem,3.8vw,1.45rem);line-height:1.15;letter-spacing:.04em}
.whatsapp-entry .wait-pill{margin:clamp(14px,3vh,29px) auto clamp(12px,2.5vh,23px)}
.whatsapp-entry .count-ring{width:clamp(108px,22vh,144px);margin:0 auto clamp(14px,2.6vh,25px)}
.whatsapp-entry .progress-track{margin:0 0 clamp(12px,2.5vh,23px)}
.whatsapp-entry .redirect-actions{margin-top:0}
.whatsapp-entry .redirect-disclaimer{font-size:.78rem;color:#758783}
@media(max-height:650px){.whatsapp-entry .redirect-card{height:calc(100dvh - 16px);padding:13px;border-width:8px}.whatsapp-entry .visual-tile{min-height:0;flex:1.1}.whatsapp-entry .redirect-card h1{margin:9px 0 1px;font-size:1.75rem}.whatsapp-entry .wait-pill{margin:9px auto;padding:5px 10px}.whatsapp-entry .count-ring{width:94px;margin:0 auto 10px}.whatsapp-entry .progress-track{margin-bottom:10px}}

/* WhatsApp entry: suppress the generic arrow/placeholder artwork and keep only the WhatsApp mark. */
.whatsapp-entry .whatsapp-visual:before,.whatsapp-entry .whatsapp-visual:after{display:none!important;content:none!important}
.whatsapp-entry .wa-logo-circle{position:relative;z-index:2}
.whatsapp-entry .wa-logo{display:block;width:72%;height:72%;color:#fff;filter:none}

/* Mobile-only fit correction for the WhatsApp entry card. */
@media (max-width: 600px) {
  .redirect-page.whatsapp-entry {
    width: 100%;
    height: 100svh;
    height: 100dvh;
    min-height: 0;
    padding: 8px;
    overflow: hidden;
    place-items: center;
  }
  .whatsapp-entry .redirect-card {
    width: 100%;
    max-width: 520px;
    height: calc(100svh - 16px);
    height: calc(100dvh - 16px);
    max-height: calc(100dvh - 16px);
    min-height: 0;
    padding: 12px;
    border-width: 8px;
    border-radius: 26px;
    overflow: hidden;
  }
  .whatsapp-entry .visual-tile {
    flex: 0 1 27%;
    min-height: 130px;
    max-height: 245px;
  }
  .whatsapp-entry .redirect-card h1 {
    flex: 0 0 auto;
    margin: 12px 0 2px;
    font-size: clamp(1.75rem, 7vw, 2.25rem);
  }
  .whatsapp-entry .redirect-subtitle {
    flex: 0 0 auto;
    font-size: clamp(1rem, 4.5vw, 1.25rem);
  }
  .whatsapp-entry .wait-pill {
    flex: 0 0 auto;
    max-width: 100%;
    margin: 14px auto 12px;
    padding: 7px 10px;
    font-size: clamp(.78rem, 3.5vw, .95rem);
    line-height: 1.2;
  }
  .whatsapp-entry .count-ring {
    flex: 0 0 auto;
    width: clamp(82px, 19vw, 108px);
    margin: 0 auto 12px;
    padding: 10px;
  }
  .whatsapp-entry .count-ring > span { font-size: 2.4rem; }
  .whatsapp-entry .progress-track {
    flex: 0 0 8px;
    margin: 0 0 14px;
  }
  .whatsapp-entry .redirect-actions {
    flex: 0 0 auto;
    gap: 9px;
    margin-top: auto;
  }
  .whatsapp-entry .redirect-actions .button {
    min-height: 48px;
    padding: 11px 14px;
  }
  .whatsapp-entry .redirect-disclaimer {
    font-size: .75rem;
    line-height: 1.25;
  }
}
@media (max-width: 600px) and (max-height: 700px) {
  .whatsapp-entry .visual-tile { flex-basis: 22%; min-height: 105px; }
  .whatsapp-entry .wait-pill { margin: 9px auto 8px; }
  .whatsapp-entry .count-ring { width: 76px; margin-bottom: 8px; padding: 8px; }
  .whatsapp-entry .count-ring > span { font-size: 2rem; }
  .whatsapp-entry .progress-track { margin-bottom: 9px; }
  .whatsapp-entry .redirect-card h1 { margin-top: 9px; }
}
