
:root{
 --blue:#2563eb;--blue2:#155eef;--cyan:#16b9ff;--ink:#111827;--muted:#64748b;
 --bg:#edf6ff;--card:rgba(255,255,255,.86);--line:#dbe7f5;--danger:#ef4056;
 --shadow:0 18px 50px rgba(30,91,180,.12);--radius:28px;
}
*{box-sizing:border-box}html,body{margin:0;padding:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink)}
body{background:linear-gradient(135deg,#eef8ff 0%,#e7f1ff 52%,#f8fbff 100%);min-height:100vh}
a{text-decoration:none;color:inherit}button,input,textarea{font:inherit}
.container{width:min(1180px,92%);margin:auto}.shell{min-height:100vh;position:relative;overflow:hidden}
.shell:before,.shell:after{content:"";position:absolute;border-radius:50%;filter:blur(4px);opacity:.45;pointer-events:none}
.shell:before{width:480px;height:480px;background:#ccecff;top:-180px;right:-160px}.shell:after{width:420px;height:420px;background:#d7e6ff;bottom:-200px;left:-160px}
.nav{height:76px;display:flex;align-items:center;justify-content:space-between;position:relative;z-index:2}
.brand img{height:40px;width:auto}.navlinks{display:flex;gap:26px;color:#52637a;font-size:14px}.navlinks a:hover{color:var(--blue)}
.btn{border:0;border-radius:16px;padding:13px 19px;cursor:pointer;font-weight:700;display:inline-flex;align-items:center;gap:9px;justify-content:center}
.btn-primary{background:linear-gradient(135deg,#2161ef,#164de0);color:#fff;box-shadow:0 12px 25px rgba(37,99,235,.23)}
.btn-light{background:#fff;color:var(--ink);border:1px solid var(--line)}.btn-danger{background:var(--danger);color:#fff}
.hero{display:grid;grid-template-columns:1.05fr .95fr;gap:70px;align-items:center;padding:65px 0 80px;position:relative;z-index:1}
.eyebrow{color:var(--blue);font-size:13px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
h1{font-size:clamp(44px,6vw,76px);line-height:.98;margin:18px 0}.gradient{color:var(--blue)}
.lead{font-size:18px;line-height:1.65;color:#53657b;max-width:610px}.actions{display:flex;gap:12px;margin-top:30px;flex-wrap:wrap}
.hero-card{min-height:500px;border-radius:38px;background:linear-gradient(150deg,#eaf5ff,#cce3ff 45%,#4b8dfd 100%);box-shadow:var(--shadow);display:flex;align-items:center;justify-content:center;position:relative;overflow:hidden}
.hero-card:after{content:"";position:absolute;width:440px;height:150px;border-radius:50%;background:rgba(255,255,255,.3);bottom:-30px;filter:blur(20px)}
.id-card{width:310px;height:385px;border-radius:30px;background:rgba(255,255,255,.78);backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.9);box-shadow:0 30px 60px rgba(23,88,255,.25);padding:26px;transform:rotate(-7deg);position:relative;z-index:1}
.id-card .mini-logo{height:32px}.id-card h3{font-size:25px;margin:55px 0 5px}.id-chip{width:55px;height:55px;border-radius:14px;background:linear-gradient(135deg,#2161ef,#16b9ff);margin-top:26px}
.glow{position:absolute;width:370px;height:370px;border-radius:50%;background:rgba(26,120,255,.35);filter:blur(40px);bottom:-140px}
.page{padding:30px 0 70px;position:relative;z-index:1}.topbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}
.dashboard-grid{display:grid;grid-template-columns:1fr 310px;gap:22px}.panel{background:var(--card);border:1px solid rgba(255,255,255,.85);box-shadow:var(--shadow);border-radius:var(--radius);padding:24px;backdrop-filter:blur(12px)}
.profile-hero{background:linear-gradient(135deg,#2563eb,#1d4ed8 70%,#1588f4);color:#fff;overflow:hidden;position:relative}.profile-hero:after{content:"";position:absolute;width:250px;height:250px;border-radius:50%;background:rgba(255,255,255,.09);right:-70px;top:-80px}
.profile-id{font-size:12px;opacity:.8}.profile-hero h2{margin:8px 0 2px}.qrbox{width:68px;height:68px;border-radius:18px;background:#fff;padding:8px}.qrbox img{width:100%;height:100%}
.profile-row{display:flex;justify-content:space-between;align-items:center;position:relative;z-index:1}.quick{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.quick a{background:#fff;border:1px solid var(--line);border-radius:20px;padding:18px 8px;text-align:center;font-size:12px;color:#40536d}.quick .icon{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:#edf5ff;color:var(--blue);margin:0 auto 8px;font-size:19px}
.section-title{display:flex;justify-content:space-between;align-items:center;margin:26px 0 13px}.section-title h3{margin:0;font-size:17px}.muted{color:var(--muted);font-size:13px}
.summary-item,.detail-item{display:flex;align-items:center;gap:14px;padding:15px 0;border-bottom:1px solid var(--line)}.summary-item:last-child,.detail-item:last-child{border-bottom:0}
.item-icon{width:43px;height:43px;border-radius:14px;background:#eef6ff;display:grid;place-items:center;color:var(--blue);font-size:19px;flex:none}.danger-icon{background:#fff0f2;color:var(--danger)}
.item-text{flex:1}.item-text strong{display:block;font-size:14px}.item-text span{font-size:12px;color:var(--muted);display:block;margin-top:3px}
.side-stat{display:grid;grid-template-columns:1fr 1fr;gap:10px}.stat{background:#fff;border:1px solid var(--line);border-radius:20px;padding:18px}.stat b{font-size:25px;display:block}.stat span{font-size:11px;color:var(--muted)}
.auth-wrap{min-height:100vh;display:grid;place-items:center;padding:30px}.auth{width:min(460px,100%);background:rgba(255,255,255,.9);border-radius:32px;padding:34px;box-shadow:var(--shadow);border:1px solid #fff}.auth .brand{display:block;text-align:center;margin-bottom:28px}.auth .brand img{height:42px}.field{margin:15px 0}.field label{display:block;font-size:12px;font-weight:700;margin-bottom:7px}.field input,.field textarea{width:100%;padding:14px 15px;border:1px solid #dbe5f2;border-radius:14px;outline:none;background:#fbfdff}.field input:focus,.field textarea:focus{border-color:#7aa5ff;box-shadow:0 0 0 4px #e9f0ff}
.profile-page{display:grid;grid-template-columns:320px 1fr;gap:22px}.avatar{width:105px;height:105px;border-radius:50%;background:linear-gradient(135deg,#dbeafe,#eef8ff);display:grid;place-items:center;font-size:42px;margin:5px auto 12px}.center{text-align:center}.idbar{display:flex;align-items:center;justify-content:space-between;padding:16px;border:1px solid var(--line);border-radius:18px;background:#fff}.tabs{display:flex;gap:5px;padding:5px;background:#f1f6fc;border-radius:15px;margin:20px 0}.tab{flex:1;padding:11px;border:0;border-radius:11px;background:transparent;color:#50647e;cursor:pointer}.tab.active{background:#2563eb;color:#fff}
.emergency{min-height:100vh;background:#f8fbff}.em-head{background:#fff;border-bottom:1px solid var(--line);padding:16px 0}.em-wrap{width:min(760px,92%);margin:auto;padding:32px 0 60px}.alert{background:linear-gradient(135deg,#fff1f3,#fff);border:1px solid #ffd2d8;border-left:5px solid var(--danger);border-radius:20px;padding:18px}.em-profile{background:linear-gradient(135deg,#2563eb,#174bda);color:#fff;border-radius:28px;padding:25px;margin:18px 0}.call{width:100%;font-size:16px;padding:17px}.notice{font-size:11px;color:#718096;line-height:1.55;margin-top:20px}
.toast{position:fixed;right:20px;bottom:20px;background:#111827;color:#fff;padding:14px 18px;border-radius:14px;box-shadow:var(--shadow);display:none;z-index:99}
.footer{text-align:center;color:#718096;font-size:12px;padding:30px 0}
@media(max-width:900px){.hero{grid-template-columns:1fr;gap:30px}.hero-card{min-height:430px}.dashboard-grid,.profile-page{grid-template-columns:1fr}.navlinks{display:none}}
@media(max-width:560px){.container{width:94%}.hero{padding:35px 0}.quick{grid-template-columns:repeat(2,1fr)}.panel{padding:18px}.nav{height:66px}.hero-card{min-height:390px}.id-card{transform:rotate(-4deg) scale(.9)}}

select{width:100%;padding:14px 15px;border:1px solid #dbe5f2;border-radius:14px;outline:none;background:#fbfdff;color:#111827}
.choice-banner{padding:14px 16px;border-radius:16px;background:#eef6ff;color:#1d4ed8;font-weight:700;font-size:13px;border:1px solid #dbe7f5}
.option-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px;margin:15px 0}
.check-card{display:flex;align-items:center;gap:9px;padding:12px;border:1px solid var(--line);border-radius:15px;background:#fff;font-size:12px;cursor:pointer}
.check-card:has(input:checked){border-color:#7aa5ff;background:#eff6ff;color:#155eef}
.check-card input{accent-color:#2563eb}
.consent-row{display:flex;align-items:flex-start;gap:10px;background:#fff8e8;border:1px solid #f4dfad;padding:14px;border-radius:15px;font-size:12px;line-height:1.5}
.consent-row input{margin-top:3px;accent-color:#2563eb}
@media(max-width:560px){.option-grid{grid-template-columns:1fr}}

.user-pill{background:#fff;border:1px solid var(--line);padding:11px 15px;border-radius:15px;font-size:13px;color:#42546c}
.profile-actions{display:flex;gap:9px;margin-top:18px;position:relative;z-index:2}.mini-action{border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.12);color:#fff;border-radius:13px;padding:9px 12px;font-size:11px;cursor:pointer}.mini-action span{margin-left:4px}.quick button{font:inherit}.quick-btn{border:0;cursor:pointer;color:#40536d}
.completion{padding:20px}.progress{height:9px;background:#e6eef8;border-radius:20px;overflow:hidden}.progress span{display:block;height:100%;background:linear-gradient(90deg,#16b9ff,#2563eb);border-radius:20px}
.empty-box{text-align:center;padding:20px 10px}.empty-icon{width:55px;height:55px;border-radius:18px;background:#eef6ff;color:#2563eb;display:grid;place-items:center;margin:0 auto 12px;font-size:24px}
.tag-row,.log-row{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid var(--line)}.tag-row:last-child,.log-row:last-child{border-bottom:0}.tag-icon,.log-icon{width:42px;height:42px;border-radius:13px;background:#eef6ff;color:#2563eb;display:grid;place-items:center}.status-dot{width:9px;height:9px;border-radius:50%;background:#94a3b8}.status-dot.active{background:#22c55e}
.tag-card{margin-bottom:14px}.tag-card-head{display:flex;justify-content:space-between;align-items:center;gap:15px}.tag-status{padding:7px 10px;border-radius:999px;background:#eef2f7;color:#64748b;font-size:10px;font-weight:800;letter-spacing:.06em}.tag-status.active{background:#e8f9ef;color:#15803d}.tag-actions{display:flex;gap:9px;margin-top:20px;flex-wrap:wrap}
.version-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:15px}.version-grid div{background:#f8fbff;border:1px solid var(--line);padding:12px;border-radius:14px}.version-grid strong{display:block;font-size:11px}.version-grid span{display:block;color:#64748b;font-size:12px;margin-top:4px}
.qr-page-card{display:grid;grid-template-columns:420px 1fr;gap:50px;align-items:center;padding:35px}.qr-large{display:grid;place-items:center;background:#fff;border-radius:28px;padding:25px;border:1px solid var(--line);box-shadow:0 20px 50px rgba(30,91,180,.08)}.qr-large img{width:min(100%,360px);height:auto}.qr-copy h1{font-size:42px;margin:8px 0}
@media(max-width:900px){.qr-page-card{grid-template-columns:1fr;gap:25px;padding:20px}.version-grid{grid-template-columns:1fr}}
@media print{.nav,.footer,.actions{display:none!important}.qr-page-card{box-shadow:none;border:0}.qr-copy .idbar{display:none}}

.stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px}.stat strong{display:block;font-size:30px;margin-top:8px}.review-card{display:flex;justify-content:space-between;gap:18px;align-items:center;padding:16px 0;border-top:1px solid rgba(15,23,42,.08)}.review-card:first-of-type{border-top:0}.review-card form{margin:0}.tag-status.pending,.tag-status.requested,.tag-status.under_review{background:#fff7ed;color:#9a3412}.tag-status.verified,.tag-status.approved,.tag-status.active{background:#ecfdf5;color:#047857}.tag-status.rejected,.tag-status.changes_requested,.tag-status.lost{background:#fef2f2;color:#b91c1c}@media(max-width:760px){.review-card{align-items:flex-start;flex-direction:column}.navlinks{display:none}.stats-grid{grid-template-columns:repeat(2,1fr)}}

.nav-badge{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#2563eb;color:#fff;font-size:10px;font-weight:800;margin-left:3px}



/* RAQSHA v0.9.3 premium mobile app shell — desktop styles intentionally preserved. */
.mobile-appbar,.mobile-bottom-nav,.mobile-more-sheet,.mobile-more-backdrop{display:none}
@media(max-width:760px){
  :root{--mobile-blue:#2161ef;--mobile-bg:#f4f8fd;--mobile-line:#e4ebf4}
  html{background:#f4f8fd}
  body{background:linear-gradient(160deg,#edf6ff 0%,#f7fbff 58%,#eef6ff 100%);padding-bottom:92px}
  .shell{overflow:visible}
  .shell:before{width:260px;height:260px;top:-130px;right:-120px;opacity:.35}
  .shell:after{width:250px;height:250px;bottom:80px;left:-160px;opacity:.25}
  .nav{display:none}
  .mobile-appbar{display:flex;position:relative;z-index:20;align-items:center;justify-content:space-between;width:100%;padding:16px 18px 8px}
  .mobile-app-user{display:flex;align-items:center;gap:10px;min-width:0}
  .mobile-avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#d9e8ff,#f8fbff);border:1px solid rgba(255,255,255,.95);box-shadow:0 7px 20px rgba(43,96,180,.10);color:#1750c8;font-weight:800;font-size:14px}
  .mobile-app-user>div:last-child{display:flex;flex-direction:column;min-width:0}
  .mobile-greeting{font-size:10px;color:#6c7d92;line-height:1.2}
  .mobile-app-user strong{font-size:15px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:180px}
  .mobile-notify{position:relative;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.86);border:1px solid rgba(255,255,255,.95);box-shadow:0 8px 22px rgba(43,96,180,.10);color:#18263a}
  .mobile-bell{width:20px;height:20px;display:grid;place-items:center}.mobile-bell svg{width:20px;height:20px;display:block}
  .mobile-notify i{position:absolute;right:9px;top:8px;width:7px;height:7px;border-radius:50%;background:#ef4056;border:2px solid #fff;box-sizing:content-box}
  .page{width:100%;padding:8px 16px 32px}
  .topbar{margin:8px 0 18px;display:block}
  .topbar .eyebrow{font-size:11px;letter-spacing:.08em}
  .topbar h2{font-size:28px!important;line-height:1.08;margin:5px 0!important;letter-spacing:-.04em}
  .topbar .muted{font-size:12px;line-height:1.45}
  .user-pill{display:none}
  .dashboard-grid{display:block}
  .dashboard-grid>aside{display:none}
  .panel{border-radius:24px;padding:18px;box-shadow:0 14px 38px rgba(30,91,180,.08);background:rgba(255,255,255,.82)}
  .profile-hero{border-radius:26px;padding:20px;background:linear-gradient(145deg,#2161ef 0%,#1c50df 62%,#1888f4 100%);box-shadow:0 18px 36px rgba(31,91,224,.23)}
  .profile-row{align-items:flex-start}
  .profile-id{font-size:10px;letter-spacing:.08em;font-weight:800}
  .profile-hero h2{font-size:23px;margin:7px 0 3px;letter-spacing:-.03em}
  .profile-hero .qrbox{width:52px;height:52px;border-radius:15px;padding:6px}
  .profile-hero .profile-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:16px}
  .profile-hero .mini-action{padding:10px 11px;border-radius:13px;text-align:center;font-size:10px;min-height:38px}
  .profile-hero .mini-action:first-child{grid-column:1/-1;background:#fff;color:#1551d3;border-color:#fff;font-weight:800}
  .profile-hero .mini-action:first-child span{margin-left:3px}
  /* Keep mobile dashboard calm: the desktop metric strip is redundant here. */
  .stats-grid{display:none}
  .section-title{margin:21px 2px 10px}.section-title h3{font-size:16px}.section-title>a,.section-title>.gradient{font-size:12px}
  .completion{padding:15px 16px;border-radius:20px}.completion .progress{height:7px}.completion p{font-size:11px;line-height:1.45;margin:10px 0}.completion .btn{width:100%;padding:11px 14px;border-radius:14px;font-size:12px}
  .quick{grid-template-columns:repeat(4,1fr);gap:8px}
  .quick a,.quick .quick-btn{min-width:0;background:rgba(255,255,255,.9);border:1px solid rgba(225,234,245,.9);border-radius:18px;padding:12px 4px;text-align:center;box-shadow:0 7px 20px rgba(38,83,150,.05);font-size:10px}
  .quick .icon{width:38px;height:38px;border-radius:13px;margin-bottom:7px;font-size:17px}
  .quick a:nth-child(1){order:1}.quick a:nth-child(2){order:2}.quick button{order:3}.quick a:nth-child(4){display:none}.quick a:nth-child(5){order:4;display:block}
  .summary-item{gap:11px;padding:13px 0}.item-icon{width:38px;height:38px;border-radius:12px;font-size:17px}.item-text strong{font-size:13px}.item-text span{font-size:11px}
  .dashboard-grid>div>section.panel:last-child{padding:8px 16px}
  .mobile-bottom-nav{display:grid;grid-template-columns:repeat(4,1fr);position:fixed;left:12px;right:12px;bottom:12px;height:68px;padding:6px;z-index:90;background:rgba(255,255,255,.91);backdrop-filter:blur(22px);-webkit-backdrop-filter:blur(22px);border:1px solid rgba(255,255,255,.96);border-radius:24px;box-shadow:0 18px 45px rgba(25,69,130,.18)}
  .mobile-nav-item{appearance:none;border:0;background:transparent;color:#7a899b;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;border-radius:18px;font-size:9px;font-weight:700;cursor:pointer;min-width:0}
  .mobile-nav-item.active{color:#1757db;background:#edf4ff}.mobile-nav-icon{width:22px;height:22px;display:grid;place-items:center}.mobile-nav-icon svg{width:21px;height:21px;display:block}
  .mobile-more-backdrop{position:fixed;inset:0;background:rgba(8,20,39,.26);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);z-index:100;display:none}.mobile-more-backdrop.open{display:block}
  .mobile-more-sheet{display:block;position:fixed;left:0;right:0;bottom:0;z-index:101;background:rgba(249,252,255,.98);border-radius:30px 30px 0 0;padding:10px 18px calc(22px + env(safe-area-inset-bottom));box-shadow:0 -20px 55px rgba(16,46,93,.20);transform:translateY(105%);transition:transform .28s ease;max-height:82vh;overflow:auto}
  .mobile-more-sheet.open{transform:translateY(0)}.mobile-sheet-handle{width:38px;height:4px;border-radius:10px;background:#d5dfeb;margin:1px auto 14px}
  .mobile-sheet-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}.mobile-sheet-head .eyebrow{font-size:9px}.mobile-sheet-head h3{margin:3px 0 0;font-size:24px;letter-spacing:-.04em}.mobile-sheet-close{border:0;background:#edf2f8;width:34px;height:34px;border-radius:50%;font-size:22px;color:#4a5d74;cursor:pointer}
  .mobile-more-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.mobile-more-grid a{display:grid;grid-template-columns:38px 1fr;grid-template-rows:auto auto;column-gap:10px;align-items:center;padding:13px 11px;border:1px solid #e3ebf4;background:#fff;border-radius:17px}.mobile-more-grid a>span{grid-row:1/3;width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:#eef5ff;color:#2161ef;font-size:18px}.mobile-more-grid strong{font-size:11px}.mobile-more-grid small{font-size:9px;color:#8390a1;margin-top:2px}.mobile-signout{display:flex;justify-content:center;margin-top:12px;padding:13px;border-radius:15px;background:#fff0f2;color:#d52e45;font-weight:800;font-size:12px;border:1px solid #ffd8de}
  body.more-open{overflow:hidden}
  .profile-page{display:block}.profile-page>.panel{margin-bottom:12px}.profile-page .avatar{width:78px;height:78px;font-size:30px}.profile-page .idbar{padding:13px;border-radius:16px}.profile-page .btn{padding:10px 13px;font-size:11px}
  .qr-page-card{display:block;padding:14px;border-radius:24px}.qr-large{padding:18px;border-radius:21px;box-shadow:none}.qr-large img{max-width:260px}.qr-copy{padding:8px 4px 4px}.qr-copy h1{font-size:30px}.qr-copy .idbar{font-size:10px;gap:8px}.qr-copy .actions{display:grid;grid-template-columns:1fr 1fr}
  .footer{display:none}
}
@media(min-width:761px){.mobile-more-backdrop{display:none!important}.mobile-appbar,.mobile-bottom-nav,.mobile-more-sheet{display:none!important}}
