:root{--ground:#f6f6f6;--surface:#fff;--raised:#fafafa;--ink:#191919;--muted:#626262;--line:#eaeaea;--control:#c8c8c8;--accent:#1859bb;--danger:#a12525;--radius:6px;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:var(--ground);font-size:14px;font-variant-numeric:tabular-nums}*{box-sizing:border-box}body{margin:0;min-height:100dvh}#root{display:flow-root}button,input,select,textarea{font:inherit}button{cursor:pointer;min-height:38px;padding:8px 13px;border:1px solid var(--control);border-radius:var(--radius);background:var(--surface);color:var(--ink);font-weight:500}button:hover{border-color:var(--ink)}button:active{transform:translateY(1px)}button:disabled{cursor:wait;color:var(--muted);background:var(--ground)}button.primary{background:var(--accent);border-color:var(--accent);color:white}button.primary:disabled{background:var(--muted);border-color:var(--muted)}button.quiet{border-color:transparent;background:transparent}button.danger{color:var(--danger)}:focus-visible{outline:3px solid var(--accent);outline-offset:3px}a{color:var(--accent)}h1{font-size:24px;line-height:1.25;margin:0;font-weight:600;letter-spacing:-.02em}h2{font-size:16px;font-weight:600;margin:0 0 8px}p{line-height:1.55;margin:8px 0 16px}.muted,small{color:var(--muted)}small{font-size:12px;line-height:1.5}.brand{display:flex;align-items:center;gap:9px;color:var(--ink);font-size:20px;font-weight:700;letter-spacing:-.04em}.brand-mark{color:var(--accent);width:28px;height:23px;flex:none}.shell{display:grid;grid-template-columns:228px minmax(0,1fr);grid-template-rows:48px minmax(calc(100dvh - 48px),auto)}.sidebar{grid-column:1;grid-row:1/3;position:sticky;top:0;height:100dvh;overflow:auto;padding:27px 16px;display:flex;flex-direction:column;gap:28px}.sidebar .brand{padding:0 12px}.scope{padding:0 12px}.scope small{display:block;margin-bottom:7px}.scope strong{display:block;font-weight:500;overflow-wrap:anywhere}nav{display:flex;flex-direction:column;gap:4px}nav button{text-align:left;background:none;border-color:transparent;padding-left:12px}nav button[aria-current=page]{background:#e9e9e9}.account{margin-top:auto;padding:20px 12px 0}.account span{overflow-wrap:anywhere;display:block;margin-bottom:10px}.account button{padding-left:0;display:block}.topbar{grid-column:2;display:flex;align-items:center;justify-content:space-between;padding:0 24px;color:var(--muted);font-size:12px}.mobile-brand,.menu-toggle{display:none}.workspace{grid-column:2;background:var(--surface);border:1px solid var(--line);border-radius:16px;margin:0 8px 8px 0;padding:32px 28px;min-width:0}.page-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:26px}.page-header p{color:var(--muted);margin-bottom:0}.actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.toolbar{display:flex;align-items:flex-end;gap:16px;flex-wrap:wrap;margin:24px 0 18px}.toolbar .field{margin:0;min-width:200px}.toolbar .search{min-width:230px;flex:1;max-width:340px}.toolbar .count{margin-left:auto;padding-bottom:10px;color:var(--muted);font-size:12px}.field{display:flex;flex-direction:column;gap:7px;margin-bottom:17px;min-width:0}.field label,legend{font-weight:500}.field input,.field select,.field textarea{width:100%;min-height:40px;padding:9px 11px;border:1px solid var(--control);border-radius:var(--radius);background:white;color:var(--ink)}input::placeholder{color:var(--muted)}input[type=checkbox]{accent-color:var(--ink);width:18px;height:18px;flex:none}.check{display:flex;align-items:center;gap:10px;min-height:40px}.check label{cursor:pointer}.help{margin-top:-2px;color:var(--muted);font-size:12px;line-height:1.5}.empty{background:var(--raised);border:1px solid var(--line);border-radius:var(--radius);padding:28px;margin-top:20px}.empty p{max-width:580px;color:var(--muted)}.empty .actions{margin-top:20px}.next-step{margin-top:28px;padding-top:20px;border-top:1px solid var(--line)}.next-step p{color:var(--muted);max-width:630px}.error{color:var(--danger);background:#fff5f5;border-left:3px solid var(--danger);padding:12px 14px;line-height:1.5;margin:16px 0;overflow-wrap:anywhere}.error:empty,.notice:empty{display:none}.notice{padding:12px 14px;background:var(--ground);margin:12px 0;line-height:1.5}.loading{color:var(--muted);padding:24px 0}.freshness{display:block;margin-top:18px}.table-wrap{overflow:auto;max-width:100%}table{border-collapse:collapse;width:100%;text-align:left;table-layout:fixed}th{font-size:13px;color:var(--muted);font-weight:400;height:38px;text-align:left;position:sticky;top:0;background:var(--surface)}td{padding:17px 10px 17px 0;border-bottom:1px solid #f0f0f0;vertical-align:top;line-height:1.5;overflow-wrap:anywhere}th:last-child,td:last-child{padding-right:0;text-align:right}td strong{font-weight:600}td .sub{display:block;color:var(--muted);font-size:13px;margin-top:3px}td .row-actions{display:flex;justify-content:flex-end;gap:0;flex-wrap:wrap}td button{font-size:13px;min-height:36px;padding:6px 9px}.plate{letter-spacing:.04em}.records-table th:nth-child(1){width:15%}.records-table th:nth-child(2){width:23%}.records-table th:nth-child(3){width:21%}.records-table th:nth-child(4){width:23%}.records-table th:nth-child(5){width:18%}.date{font-variant-numeric:tabular-nums}.list{display:flex;flex-direction:column}.property-row{display:flex;justify-content:space-between;align-items:center;padding:18px 0;border-bottom:1px solid var(--line);gap:16px}.property-row strong{overflow-wrap:anywhere}.settings-row{display:grid;grid-template-columns:minmax(180px,1fr) minmax(280px,1.3fr);gap:32px;padding:8px 0 28px}.settings-row>div>p{color:var(--muted);max-width:400px}.settings-form{padding:24px;background:var(--raised);border-radius:var(--radius)}.login-wrap{max-width:420px;margin:80px auto;padding:0 24px}.login-wrap .brand{margin-bottom:48px}.login-wrap h1{margin-bottom:12px}.login-wrap form{margin-top:28px}.login-wrap .primary{width:100%}.login-foot{margin-top:28px;font-size:12px;color:var(--muted)}.startup{padding:60px;max-width:700px}dialog{border:1px solid var(--line);border-radius:12px;padding:0;width:min(640px,calc(100% - 32px));max-height:calc(100dvh - 32px);color:var(--ink);box-shadow:0 18px 70px #0002}dialog::backdrop{background:#0005}.dialog-header{position:sticky;top:0;background:var(--surface);z-index:2;display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid var(--line);gap:16px}.dialog-header h2{font-size:20px;margin:0}.dialog-body{padding:24px}.dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:24px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.full{grid-column:1/-1}fieldset{border:1px solid var(--line);border-radius:var(--radius);padding:12px 16px;margin:12px 0 20px}legend{padding:0 5px;font-size:14px}.qr-image{display:block;width:280px;max-width:100%;height:auto;margin:16px auto;border:1px solid var(--line)}.qr-payload{display:block;width:100%;resize:vertical;min-height:76px;border:1px solid var(--control);border-radius:var(--radius);padding:10px;font:12px Arial,sans-serif;overflow-wrap:anywhere}.qr-expiry{font-weight:600}.skip{position:absolute;left:16px;top:-70px;padding:12px;background:white;z-index:100}.skip:focus{top:8px}.pager{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-top:18px}.pager small{margin-right:auto}.mobile-only{display:none}
/* 1280 = 228px frame + 8px inset + 1044px sheet; sheet content = 1044 - 2*29 = 986px. */
@media(max-width:1000px){.shell{display:block}.sidebar{display:none}.shell.menu-open .sidebar{display:flex;position:fixed;inset:48px 0 0;height:calc(100dvh - 48px);z-index:5;background:var(--ground);overflow:auto;padding:24px}.shell.menu-open .account{margin-top:20px}.topbar{height:48px;padding:0 20px}.topbar>.desktop-context{display:none}.mobile-brand{display:flex;font-size:18px}.menu-toggle{display:block;min-height:36px;padding:5px 10px}.workspace{margin:0 8px 8px;padding:28px 24px}.records-table th:nth-child(1){width:16%}.records-table th:nth-child(2){width:23%}.records-table th:nth-child(3){width:21%}.records-table th:nth-child(4){width:22%}.records-table th:nth-child(5){width:18%}}
@media(max-width:640px){body{background:white}.workspace{border:0;border-radius:0;margin:0;padding:24px 18px}.page-header{gap:12px;margin-bottom:20px}.page-header p{font-size:13px}.page-header .actions{justify-content:flex-end;flex:none}.page-header .actions button{padding:8px 10px}.toolbar{gap:12px;margin-top:18px}.toolbar .field{flex:1;min-width:140px}.toolbar .search{max-width:none;min-width:100%;order:2}.toolbar .count{padding:0;margin-left:0;order:3;width:100%}.toolbar>.actions{margin-left:auto}.empty{padding:22px 18px}.empty p{font-size:14px}.next-step{margin-top:24px}.records-table,.records-table tbody,.records-table tr,.records-table td{display:block;width:100%}.records-table thead{display:none}.records-table tr{position:relative;border-bottom:1px solid var(--line);padding:16px 0}.records-table td{padding:3px 0;border:0;text-align:left}.records-table td:first-child{font-size:16px;padding-right:105px}.records-table td:nth-child(2){padding-top:7px}.records-table td:last-child{position:absolute;right:0;top:9px;width:auto}.records-table td .sub{display:inline;font-size:13px}.records-table td .sub:before{content:' · '}.records-table td:first-child .sub{display:block;font-size:12px}.records-table td:first-child .sub:before{content:''}.records-table td .row-actions{flex-wrap:nowrap}.records-table td button{min-height:44px;font-size:13px;padding:6px 8px}.records-table td:nth-child(4):before{content:'Authorization: ';color:var(--muted);font-size:13px}.devices-table{min-width:650px}.devices-table th:nth-child(1){width:120px}.devices-table th:nth-child(2){width:200px}.devices-table th:nth-child(3){width:100px}.devices-table th:nth-child(4){width:140px}.devices-table th:nth-child(5){width:90px}.devices-table th:first-child,.devices-table td:first-child{position:sticky;left:0;background:var(--surface);z-index:1}.table-wrap.devices{border-bottom:1px solid var(--line)}.mobile-only{display:block;font-size:12px;color:var(--muted);margin-bottom:8px}.settings-row{display:block}.settings-form{padding:20px 16px}.login-wrap{margin-top:48px}.login-wrap .brand{margin-bottom:36px}.form-grid{grid-template-columns:1fr;gap:0}.dialog-header{padding:16px 18px}.dialog-body{padding:20px 18px}.dialog-actions button,button{min-height:44px}dialog{max-height:calc(100dvh - 16px);width:calc(100% - 16px)}.topbar button{min-height:36px}.property-row{align-items:flex-start}.pager{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){button:active{transform:none}}
