:root{color-scheme:light;--bg:#F8FAFC;--surface:#FFFFFF;--raised:#FFFFFF;--border:#E3E8F0;--input-border:#7C8AA8;--text:#0E1420;--text2:#4A5678;--muted:#5B6786;--brand:#000000;--brand-c:#FFFFFF;--brand-tint:#ECECEC;--active:#2F5BEA;--active-fill:#2F5BEA;--active-c:#FFFFFF;--active-text:#2447BE;--active-tint:#E7ECFE;--amber:#F5A623;--amber-text:#92600A;--amber-tint:#FEF3DE;--green:#2FBF71;--green-text:#1B7A48;--green-tint:#E3FAEE;--red:#E5484D;--red-solid:#C23A3F;--red-c:#FFFFFF;--red-text:#A5282C;--red-tint:#FDE6E7;--violet:#8B5CF6;--violet-text:#6D28D9;--violet-tint:#F1EBFD;--placeholder:#EEF2F8;}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){color-scheme:dark;--bg:#0E1420;--surface:#151C2C;--raised:#1D2740;--border:#2B3654;--input-border:#5B6C94;--text:#F4F6FA;--text2:#A9B4CB;--muted:#A9B4CB;--brand:#FFFFFF;--brand-c:#000000;--brand-tint:rgba(255,255,255,0.14);--active:#5B82FF;--active-fill:#2F5BEA;--active-c:#FFFFFF;--active-text:#9DB4FF;--active-tint:rgba(47,91,234,0.22);--amber:#F5A623;--amber-text:#F5C26B;--amber-tint:rgba(245,166,35,0.16);--green:#2FBF71;--green-text:#6FDDA3;--green-tint:rgba(47,191,113,0.16);--red:#E5484D;--red-solid:#C23A3F;--red-c:#FFFFFF;--red-text:#F08A8E;--red-tint:rgba(229,72,77,0.18);--violet:#8B5CF6;--violet-text:#B79BFA;--violet-tint:rgba(139,92,246,0.2);--placeholder:#1B2438;}}
:root[data-theme="dark"]{color-scheme:dark;--bg:#0E1420;--surface:#151C2C;--raised:#1D2740;--border:#2B3654;--input-border:#5B6C94;--text:#F4F6FA;--text2:#A9B4CB;--muted:#A9B4CB;--brand:#FFFFFF;--brand-c:#000000;--brand-tint:rgba(255,255,255,0.14);--active:#5B82FF;--active-fill:#2F5BEA;--active-c:#FFFFFF;--active-text:#9DB4FF;--active-tint:rgba(47,91,234,0.22);--amber:#F5A623;--amber-text:#F5C26B;--amber-tint:rgba(245,166,35,0.16);--green:#2FBF71;--green-text:#6FDDA3;--green-tint:rgba(47,191,113,0.16);--red:#E5484D;--red-solid:#C23A3F;--red-c:#FFFFFF;--red-text:#F08A8E;--red-tint:rgba(229,72,77,0.18);--violet:#8B5CF6;--violet-text:#B79BFA;--violet-tint:rgba(139,92,246,0.2);--placeholder:#1B2438;}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);font-family:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;font-size:14px;line-height:1.5}
h1,h2,h3{font-family:'Space Grotesk','Segoe UI',system-ui,sans-serif;font-weight:600;margin:0}
a{color:var(--active-text)}
:focus-visible{outline:2px solid var(--active-text);outline-offset:2px}
.dl-visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.dl-mono{font-family:'JetBrains Mono',ui-monospace,Menlo,Consolas,monospace}

.dl-button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 20px;border-radius:12px;border:1px solid transparent;font:600 14px/1 'Inter',system-ui,sans-serif;cursor:pointer;text-decoration:none;background:var(--brand);color:var(--brand-c)}
.dl-button--accent{background:var(--active-fill);color:var(--active-c)}
.dl-button--outline{background:transparent;color:var(--text);border-color:var(--input-border)}
.dl-button--danger{background:var(--red-solid);color:var(--red-c)}
.dl-button--ghost{background:transparent;color:var(--text)}
.dl-button--small{min-height:36px;padding:0 14px}
.dl-button--block{width:100%}
.dl-button[disabled]{opacity:.55;cursor:not-allowed}

.dl-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.dl-field-label{font-size:13px;font-weight:600;color:var(--text)}
.dl-field-input{height:44px;width:100%;padding:0 14px;border-radius:12px;border:1px solid var(--input-border);background:var(--surface);color:var(--text);font:400 14px 'Inter',system-ui,sans-serif}
.dl-field-input[aria-invalid="true"]{border-color:var(--red-text)}
.dl-field-hint{font-size:12px;color:var(--muted)}
.dl-field-error{font-size:12px;color:var(--red-text)}
.dl-form{display:flex;flex-direction:column;gap:16px}
.dl-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 20px}

.dl-card{background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:20px;display:flex;flex-direction:column;gap:14px}
.dl-stat{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:16px;display:flex;flex-direction:column;gap:4px}
.dl-stat-number{font:600 28px 'Space Grotesk',system-ui,sans-serif}
.dl-chip{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:2px 10px;font-size:12px;font-weight:600;background:var(--brand-tint);color:var(--text)}
.dl-chip::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.dl-chip--pending{background:var(--amber-tint);color:var(--amber-text)}
.dl-chip--active{background:var(--active-tint);color:var(--active-text)}
.dl-chip--delivered{background:var(--green-tint);color:var(--green-text)}
.dl-chip--failed{background:var(--red-tint);color:var(--red-text)}
.dl-chip--info{background:var(--violet-tint);color:var(--violet-text)}
.dl-banner{display:flex;gap:10px;align-items:flex-start;border-radius:12px;padding:12px 14px;font-size:14px;background:var(--active-tint);color:var(--active-text)}
.dl-banner--warning{background:var(--amber-tint);color:var(--amber-text)}
.dl-banner--failure{background:var(--red-tint);color:var(--red-text)}
.dl-banner--success{background:var(--green-tint);color:var(--green-text)}
.dl-table{width:100%;border-collapse:collapse;background:var(--surface);border:1px solid var(--border);border-radius:16px;overflow:hidden}
.dl-table th{text-align:left;font-size:12px;font-weight:600;color:var(--text2);padding:12px 14px;border-bottom:1px solid var(--border)}
.dl-table td{padding:12px 14px;border-bottom:1px solid var(--border)}
.dl-check{display:flex;align-items:flex-start;gap:10px;min-height:44px;font-size:14px}
.dl-check input{width:22px;height:22px;margin:0;accent-color:var(--active-fill)}
.dl-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px}
.dl-step{display:flex;gap:12px;align-items:flex-start}
.dl-step-badge{width:28px;height:28px;flex:none;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:13px;font-weight:600;border:1px solid var(--input-border);background:var(--surface);color:var(--text2)}
.dl-step[data-state="current"] .dl-step-badge{background:var(--active-fill);color:var(--active-c);border-color:var(--active-fill)}
.dl-step[data-state="done"] .dl-step-badge{background:var(--green-tint);border-color:var(--green-text);position:relative}
.dl-step[data-state="done"] .dl-step-badge::after{content:"";width:6px;height:11px;border:solid var(--green-text);border-width:0 2px 2px 0;transform:rotate(45deg) translate(-1px,-1px)}
.dl-step-text{display:flex;flex-direction:column;min-width:0}
.dl-step-detail{font-size:13px;color:var(--text2)}
.dl-step[data-state="upcoming"] strong{color:var(--text2)}
.dl-subtitle{margin:0;color:var(--text2);font-size:14px;line-height:1.55}
.dl-auth-card h1{font-size:30px;line-height:1.2;outline:none}
.dl-gate{max-width:480px;margin:15vh auto 0;padding:0 24px;display:flex;flex-direction:column;gap:12px}
.dl-pin-dots{display:flex;gap:14px;justify-content:center;margin:8px 0}
.dl-pin-dot{width:16px;height:16px;border-radius:50%;border:2px solid var(--input-border)}
.dl-pin-dot[data-filled="true"]{background:var(--text);border-color:var(--text)}
.dl-pin{align-items:stretch;text-align:center}
.dl-pin h1{font-size:26px}
.dl-profile{display:flex;flex-direction:column;gap:16px}
.dl-rows{display:grid;grid-template-columns:1fr;gap:2px 0;margin:0}
.dl-rows dt{font-size:12px;color:var(--muted);margin-top:8px}
.dl-rows dd{margin:0}
.dl-devices{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.dl-devices li{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px}
.dl-permissions{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.dl-permissions li{display:flex;flex-direction:column}
.dl-permissions span{font-size:13px;color:var(--text2)}
.dl-portal-drawer{display:none}
.dl-chipline{display:flex;flex-wrap:wrap;gap:8px}
.dl-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}
.dl-stat-note{font-size:12px;color:var(--text2)}
.dl-tablewrap{overflow-x:auto}
.dl-help{font-size:12px;color:var(--muted)}
.dl-code-box{width:44px;height:52px;text-align:center;border-radius:12px;border:1px solid var(--input-border);background:var(--surface);color:var(--text);font:500 22px 'JetBrains Mono',ui-monospace,monospace}
.dl-code-row{display:flex;gap:8px;border:0;margin:0;padding:0;min-width:0}
.dl-keypad{border:0;margin:0;padding:0;min-width:0;display:grid;grid-template-columns:repeat(3,60px);gap:12px;justify-content:center}
.dl-keypad button{height:60px;border-radius:12px;border:1px solid var(--border);background:var(--surface);color:var(--text);font:500 22px 'JetBrains Mono',ui-monospace,monospace}

.dl-wordmark{display:flex;align-items:center;gap:8px;font:700 22px 'Space Grotesk','Segoe UI',system-ui,sans-serif;color:var(--text)}
.dl-wordmark--sm{font-size:20px}
.dl-wordmark--lg{font-size:24px}
.dl-wordmark-dot{width:10px;height:10px;border-radius:50%;background:var(--brand);display:inline-block}

.dl-portal{display:flex;min-height:100vh;background:var(--bg);color:var(--text)}
.dl-portal-side{width:248px;flex:none;display:flex;flex-direction:column;gap:20px;padding:20px 14px;background:var(--surface);border-right:1px solid var(--border)}
.dl-portal-side nav{display:flex;flex-direction:column;gap:4px;flex:1}
.dl-portal-link{display:flex;align-items:center;min-height:44px;padding:0 12px;border-radius:12px;color:var(--text2);text-decoration:none;font-weight:500}
.dl-portal-link[aria-current="page"]{background:var(--brand-tint);color:var(--text);font-weight:600}
.dl-portal-person{display:flex;flex-direction:column;font-size:13px;border-top:1px solid var(--border);padding-top:14px}
.dl-portal-role{color:var(--muted);font-size:12px}
.dl-portal-body{flex:1;min-width:0;display:flex;flex-direction:column}
.dl-portal-top{height:64px;display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:0 32px;background:var(--surface);border-bottom:1px solid var(--border)}
.dl-portal-phonebar{display:none;height:60px;align-items:center;justify-content:space-between;padding:0 16px;background:var(--surface);border-bottom:1px solid var(--border)}
.dl-portal-main{padding:28px 32px;display:flex;flex-direction:column;gap:20px;min-width:0}
.dl-portal-title{font-size:28px}
.dl-portal-bottom{display:none;height:60px;align-items:stretch;justify-content:space-around;background:var(--surface);border-top:1px solid var(--border)}
.dl-portal-bottom a{flex:1;display:flex;align-items:center;justify-content:center;min-width:44px;font-size:12px;font-weight:600;color:var(--text2);text-decoration:none}
.dl-portal-bottom a[aria-current="page"]{color:var(--text)}

.dl-rider{min-height:100vh;display:flex;flex-direction:column;max-width:480px;margin:0 auto;background:var(--bg)}
.dl-rider-main{flex:1;padding:18px 18px 82px;display:flex;flex-direction:column;gap:16px}
.dl-rider-back{display:inline-flex;align-items:center;min-height:44px;font-weight:600;color:var(--text);text-decoration:none}
.dl-rider-back::before{content:"\2039";margin-right:6px;font-size:22px}
.dl-rider-bottom{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:100%;max-width:480px;height:64px;display:flex;background:var(--surface);border-top:1px solid var(--border)}
.dl-rider-bottom a{flex:1;display:flex;align-items:center;justify-content:center;min-width:44px;font-size:12px;font-weight:600;color:var(--text2);text-decoration:none}
.dl-rider-bottom a[aria-current="page"]{color:var(--text)}

.dl-auth{display:flex;flex-wrap:wrap;min-height:100vh;background:var(--bg)}
.dl-auth-panel{flex:1 1 420px;min-width:0;display:flex;flex-direction:column;justify-content:space-between;padding:40px 48px;background:var(--surface);border-right:1px solid var(--border)}
.dl-auth-statement{display:flex;flex-direction:column;gap:14px;max-width:420px}
.dl-auth-statement h2{font-size:34px;line-height:1.15}
.dl-auth-statement p{margin:0;font-size:15px;line-height:1.6;color:var(--text2)}
.dl-auth-place{font-size:12px;color:var(--text2)}
.dl-auth-form{flex:1 1 480px;min-width:0;display:flex;align-items:center;justify-content:center;padding:32px}
.dl-auth-card{width:100%;max-width:440px;display:flex;flex-direction:column;gap:16px}
.dl-auth-phone-brand{display:none}

@media (max-width: 767px){
.dl-portal-drawer{display:flex;flex-direction:column;background:var(--surface);border-bottom:1px solid var(--border);padding:8px 16px}
.dl-portal-side,.dl-portal-top{display:none}
.dl-portal-phonebar{display:flex}
.dl-portal-main{padding:16px 16px 76px}
.dl-portal-title{font-size:24px}
.dl-portal-bottom{display:flex;position:fixed;bottom:0;left:0;right:0}
.dl-form-grid{grid-template-columns:minmax(0,1fr)}
.dl-auth-panel{display:none}
.dl-auth-form{padding:24px 16px;align-items:flex-start}
.dl-auth-phone-brand{display:block;margin-bottom:12px}
}
