:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#f7f7f7;background:#090909;color-scheme:dark;--bg:#090909;--panel:#171717;--line:#343434;--muted:#a0a0a0;--accent:#ffffff;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;min-height:100vh}header{display:flex;align-items:center;gap:24px;min-height:80px;padding:20px 6%;border-bottom:1px solid var(--line);background:var(--bg)}.brand{font-weight:900;font-size:25px;letter-spacing:2px;text-decoration:none;color:#ffffff}.brand span{font-size:10px;letter-spacing:4px;display:block;color:var(--accent);margin-top:4px}.tag{font-size:12px;color:var(--muted)}.panel-link{margin-left:auto;color:#f7f7f7;font-size:12px;text-transform:uppercase;letter-spacing:2px;text-underline-offset:6px}main{max-width:1100px;padding:56px 24px;margin:auto;min-height:78vh}h1{font-size:clamp(36px,7vw,68px);font-weight:850;line-height:1.02;letter-spacing:-.055em;margin:20px 0 24px;overflow-wrap:anywhere}h2{font-size:23px;letter-spacing:-.035em}p{line-height:1.65;color:var(--muted)}.eyebrow{text-transform:uppercase;font-size:10px;font-weight:800;letter-spacing:3px;color:var(--accent)}.hero{max-width:760px;margin-bottom:36px}.badge{display:inline-block;border:1px solid #444444;border-radius:2px;background:#252525;color:#eeeeee;padding:8px 12px;font-size:11px;font-weight:750;text-transform:uppercase;letter-spacing:1px}.grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}.card,.box{background:var(--panel);border:1px solid var(--line);border-radius:2px;padding:28px;margin:20px 0}.card{margin:0;overflow:hidden;padding:12px;min-width:0}.card img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:1px;background:#202020}.card h2{padding:0 8px;overflow-wrap:anywhere}.card button{width:100%}.box{max-width:720px}.box:has(#login){max-width:480px;border-top:3px solid var(--accent)}#login button{width:100%;margin-top:8px}.row{display:flex;gap:12px;align-items:center;flex-wrap:wrap}button,.button{display:inline-block;border:1px solid transparent;background:var(--accent);color:#0b0b0b;font:inherit;font-size:14px;font-weight:800;padding:14px 20px;min-height:48px;border-radius:2px;cursor:pointer;text-decoration:none;touch-action:manipulation}button:hover,.button:hover{background:#dddddd}button:disabled{opacity:.5;cursor:wait}.secondary{background:#2b2b2b;color:#ffffff;border-color:#434343}.secondary:hover{background:#3a3a3a}.danger{background:#4b2630;color:#ffdce3;border-color:#945562}.danger:hover{background:#67333f}input{display:block;width:100%;min-width:0;padding:14px;border:1px solid #555555;border-radius:2px;font:inherit;margin:8px 0 22px;background:#101010;color:#ffffff;min-height:48px}input[type=file]{font-size:13px}input::file-selector-button{background:#303030;color:#f7f7f7;border:0;padding:8px;margin-right:10px}label{font-size:12px;font-weight:700;letter-spacing:.3px}small{color:var(--muted);line-height:1.6}footer{text-align:center;padding:26px;border-top:1px solid var(--line);color:#a0a0a0;font-size:11px;letter-spacing:1px}#notice{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:#ffffff;color:#111111;border:1px solid #fff;border-radius:2px;padding:16px 22px;max-width:90vw;box-shadow:6px 6px 0 #0008;z-index:20}#notice:empty{display:none}.success{padding:32px;background:#202020;border:1px solid #555555;border-left:4px solid var(--accent);border-radius:2px}.success h2{color:#ffffff}.result{display:flex;gap:20px;justify-content:space-between;border-bottom:1px solid var(--line);padding:17px 0}.result strong{color:var(--accent);white-space:nowrap}.muted{font-size:13px}a{color:#eeeeee}:focus-visible{outline:2px solid #ffffff;outline-offset:4px}::selection{background:#ffffff;color:#0b0b0b}@media(max-width:540px){header{padding:18px 20px;min-height:72px}.tag{display:none}main{padding:34px 18px}.grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.card h2{font-size:18px;padding:0}.card button{padding:12px 4px}.box{padding:22px}h1{font-size:42px}.row{gap:10px}.hero{margin-bottom:28px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.brand{display:flex;align-items:center;gap:10px;letter-spacing:.12em;font-size:inherit}.brand strong{display:block;font-size:1.08rem;line-height:1}.brand small{display:block;color:var(--muted);font-size:.52rem;letter-spacing:.15em;margin-top:4px}.brand .brand-mark{width:36px;height:36px;display:grid;place-items:center;background:#fff;color:#050505;font-size:1.55rem;font-weight:900;border-radius:9px;letter-spacing:-.13em;position:relative;margin:0}.brand .brand-mark span{position:absolute;width:5px;height:5px;background:#050505;border-radius:50%;right:7px;top:7px;margin:0}h1{font-weight:800;font-size:clamp(2.1rem,7vw,4.2rem);line-height:1.06;letter-spacing:-.04em}.photo-controls{margin:12px 0 20px}.photo-controls button{flex:1}.photo-preview{display:block;width:min(100%,280px);max-height:320px;object-fit:contain;background:#090909;border:1px solid var(--line);margin:16px 0}.photo-preview[hidden],input[hidden]{display:none!important}.photo-status{font-size:13px}#option>button{width:100%}

/* QURA Center: original symbol and Michroma wordmark. Mobile layout. */
@font-face{font-family:Michroma;src:url('/assets/Michroma-Regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
:root{font-family:'Segoe UI',Arial,sans-serif;--bg:#0b0c0e;--panel:#13161b;--line:#292c33;--muted:#a0a4ad;color:#f2f3f5;background:var(--bg)}body{font-size:15px;line-height:1.6;-webkit-font-smoothing:antialiased}
header{position:sticky;top:0;z-index:10;min-height:70px;max-width:520px;margin:auto;padding:12px 18px;padding-top:max(12px,env(safe-area-inset-top));gap:12px;background:var(--bg)}.tag{display:none}.brand{gap:10px}.brand .symbol{width:32px;height:32px;object-fit:contain;flex:none}.brand .wordmark{font-family:Michroma,'Segoe UI',sans-serif;font-size:17px;font-weight:400;letter-spacing:.2em;line-height:1.3}.brand small{font-family:'Segoe UI',Arial,sans-serif;font-weight:600;font-size:9px;letter-spacing:.2em;margin-top:2px}.panel-link{display:grid;place-items:center;min-width:48px;min-height:48px;font-size:11px}
main{width:100%;max-width:520px;padding:26px 16px 40px;min-height:calc(100svh - 145px)}h1{font-size:clamp(30px,8.5vw,40px);font-weight:500;line-height:1.14;letter-spacing:-1.2px;margin:16px 0 20px}h2{font-size:22px;font-weight:500;line-height:1.3;letter-spacing:-.6px}.hero{margin-bottom:24px}.eyebrow{font-weight:600;letter-spacing:2px}.box,.card{border-radius:12px}.box{padding:20px;margin:16px 0}.box:has(#login){border-top:1px solid var(--line)}.grid{grid-template-columns:1fr;gap:14px}.card{padding:14px}.card img{aspect-ratio:3/4;object-fit:contain;border-radius:8px;background:#090909}.card h2{padding:0;font-size:22px}.row{gap:10px}.row>button,.row>.button{flex:1 1 130px;text-align:center}.row>a:not(.button){padding:12px 0;min-height:48px}.photo-controls button{flex:1 1 100%;min-height:54px}.photo-controls .secondary{flex-basis:100%;min-height:48px}button,.button{font-weight:650;border-radius:8px;min-height:50px;padding:13px 16px}input{font-size:16px;min-height:52px;border-radius:8px;background:#0b0c0e}label{font-size:14px;font-weight:600}.photo-preview{width:100%;max-height:420px;object-fit:contain;border-radius:8px}.result{align-items:center}.result span{min-width:0;overflow-wrap:anywhere}.success{padding:24px;border-radius:12px}footer{max-width:520px;margin:auto;padding:20px 16px max(20px,env(safe-area-inset-bottom))}#notice{bottom:max(18px,env(safe-area-inset-bottom));width:calc(100% - 32px);max-width:488px;border-radius:8px;font-size:14px}.box input[readonly]{font-size:14px}.box:has(#option){scroll-margin-top:86px}#option{scroll-margin-top:86px}

/* Compact controls with touch-friendly hit areas. */
button,.button{font-size:14px;font-weight:500;min-height:44px;padding:10px 14px;border-radius:6px;box-shadow:none}.row>button,.row>.button{flex:0 1 auto}.photo-controls{display:flex;flex-wrap:wrap}.photo-controls button,.photo-controls .secondary{flex:1 1 110px;min-height:44px}#logout{margin-left:auto}#option>button{width:auto}.card button{width:auto;min-width:110px}.camera-dialog{width:calc(100% - 24px);max-width:480px;max-height:calc(100svh - 24px);overflow:auto;padding:20px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:#f2f3f5}.camera-dialog::backdrop{background:#000c}.camera-dialog h2{margin-top:0}.camera-dialog video{display:block;width:100%;max-height:55svh;min-height:180px;background:#000;object-fit:contain;border-radius:6px}.camera-dialog p{font-size:13px}.camera-dialog .row button{flex:1}.collaborator-list{list-style:none;margin:0;padding:0}.collaborator-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding:12px 0}.collaborator-list li>div{min-width:0}.collaborator-list strong{display:block;font-size:14px;font-weight:500;overflow-wrap:anywhere}.collaborator-list small{display:block;font-size:12px}.collaborator-list button{font-size:12px;padding:8px 10px;flex-shrink:0}#users h3{font-size:15px;font-weight:600;margin-top:26px}
/* Fixed mobile viewport, preserving vertical scrolling. */
html,body{width:100%;max-width:100%;overflow-x:hidden;overscroll-behavior-x:none;touch-action:pan-y}main,header,footer{min-width:0;max-width:min(100%,520px)}main>*{min-width:0}img,video,canvas{max-width:100%}input,button,.button{max-width:100%}.row{min-width:0}.row>*{min-width:0}.camera-dialog{overscroll-behavior:contain}button,.button,a{touch-action:pan-y}h1,h2,h3,p{overflow-wrap:anywhere}
/* Quiet secondary actions and plain status labels. */
.secondary{background:transparent;border-color:transparent;color:var(--muted);box-shadow:none}.secondary:hover{background:#ffffff08;color:#f2f3f5}.badge{border:0;background:transparent;padding:2px 0;color:var(--muted);font-size:11px;font-weight:500;letter-spacing:.7px}.panel-link{text-decoration:none}.photo-controls .secondary{background:transparent}.row>.secondary,.row>.button.secondary{padding-inline:10px}.danger{border-color:transparent}
.delete-zone{margin-top:32px;padding-top:16px;border-top:1px solid var(--line)}.delete-link{color:#e6a5ab;padding-left:0}.delete-link:hover{color:#ffdce3;background:transparent}
.tie-label{display:block;font-size:11px;margin-top:3px}.result b{display:inline-block;min-width:28px;font-weight:600}
