:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#172033;background:#f4f7fb}*{box-sizing:border-box}body{margin:0}.wrap{max-width:1100px;margin:auto;padding:28px 18px}.card{background:#fff;border:1px solid #e5eaf2;border-radius:14px;padding:22px;box-shadow:0 6px 20px #1720330b;margin-bottom:18px}h1{margin:0 0 6px;font-size:25px}h2{font-size:18px;margin:0 0 16px}.muted{color:#68758a;margin:0 0 22px}.top{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:18px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:18px}label{display:block;color:#526078;font-size:13px;margin:12px 0 6px}input,select{width:100%;padding:10px 11px;border:1px solid #ccd5e3;border-radius:8px;font-size:14px}button,.button-link{border:0;border-radius:8px;padding:10px 14px;background:#2563eb;color:#fff;cursor:pointer;font-family:inherit;font-size:14px;line-height:20px}.button-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;white-space:nowrap}.button-link.control-link{background:#c2410c;color:#fff}.button-link.control-link:hover{background:#9a3412}.button-link:focus-visible{outline:2px solid #c2410c;outline-offset:3px}.secondary{background:#e9eef8;color:#253858}.danger{background:#dc2626}.row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.actions{margin-top:17px}.check{margin-top:14px}.check input{width:auto}.table{width:100%;border-collapse:collapse;font-size:14px}.table th,.table td{text-align:left;border-bottom:1px solid #edf0f5;padding:11px 8px}.badge{font-size:12px;border-radius:99px;padding:3px 8px;background:#e8f7ed;color:#16733c}.badge.off{background:#f1f3f6;color:#68758a}.notice{position:fixed;right:18px;bottom:18px;background:#172033;color:#fff;padding:11px 15px;border-radius:9px;display:none;max-width:360px}.login{max-width:420px;margin:70px auto}.small{font-size:12px;color:#7b879a}.narrow{max-width:460px}.warning{padding:12px 15px;background:#fff7df;color:#8a5a00;border:1px solid #f3d591;border-radius:9px;margin-bottom:18px}@media(max-width:650px){.top{align-items:flex-start}.table{display:block;overflow:auto}}
.token-tools{display:inline-flex;align-items:center;gap:2px;padding:3px 5px 3px 10px;background:#f2f3f5;border-radius:99px;vertical-align:middle}.token-tools.revealed{border-radius:12px}.token-value{width:130px;min-width:130px;overflow-wrap:anywhere;font:12px/1.5 ui-monospace,SFMono-Regular,Consolas,monospace;user-select:text;color:#495365}.token-icon{display:inline-flex;align-items:center;justify-content:center;flex:none;width:28px;height:28px;padding:5px;border-radius:6px;color:#6b7280;background:transparent}.token-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.token-icon:hover:not(:disabled){background:#e0e5ec;color:#2563eb}.token-icon:focus-visible{outline:2px solid #2563eb;outline-offset:2px}.token-icon:disabled{opacity:.4;cursor:not-allowed}.clipboard-buffer{position:fixed;left:-9999px;top:0;width:1px;height:1px;opacity:0}button:disabled{cursor:not-allowed}
.grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr))}.card,.top>div{min-width:0}.small,.muted,#userLabel{overflow-wrap:anywhere}input,select{min-width:0}.table{max-width:100%}[hidden]{display:none!important}
@media(max-width:700px),(pointer:coarse){.wrap{padding:16px max(12px,env(safe-area-inset-right)) 24px max(12px,env(safe-area-inset-left))}.card{padding:16px}.top{flex-wrap:wrap;gap:10px}.top .row{gap:8px}.grid{gap:0}.login{margin:28px auto}input,select{font-size:16px;min-height:44px}button,.button-link{min-height:44px}.token-icon{width:44px;height:44px}.table{display:block;overflow-x:auto;overscroll-behavior-x:contain}.table th{white-space:nowrap}.table td{min-width:72px}.notice{left:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom));max-width:none}.check input{min-height:24px;width:24px;height:24px;flex:none}}
.account-links{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:20px;padding-top:18px;border-top:1px solid #edf0f5;font-size:14px}.account-links a,.account-footer a{color:#1d4ed8;text-underline-offset:3px}.account-card{max-width:480px;margin:40px auto}.account-card .account-brand{color:#2563eb;font-size:13px;font-weight:700;letter-spacing:.08em;margin:0 0 16px}.account-card h1{font-size:26px}.account-card .muted{line-height:1.7;margin-bottom:20px}.account-card button[type=submit]{width:100%;margin-top:20px}.account-card .field-help{margin:6px 0 0;color:#68758a;font-size:12px;line-height:1.6}.form-message{min-height:20px;font-size:14px;line-height:1.65;color:#166534;overflow-wrap:anywhere;margin:12px 0 0}.form-message:empty{display:none}.form-message.error{color:#b91c1c}.account-footer{color:#68758a;font-size:13px;text-align:center;margin:20px 0 0}.account-done{border:1px solid #b9e1cd;background:#edf9f1;padding:16px;border-radius:9px;color:#166534;line-height:1.8}.account-done p{margin:0 0 14px}.account-done .button-link{background:#166534}.account-card :focus-visible{outline:2px solid #2563eb;outline-offset:3px}.account-card .form-loading{color:#68758a;font-size:13px}.account-card button:disabled{opacity:.65}.account-card form[aria-busy=true]{cursor:progress}@media(max-width:700px){.account-card{margin:20px auto}.account-card h1{font-size:24px}}
#profileCard .small,#passwordForm .small{line-height:1.8}#profileCard h2{margin-bottom:8px}#profileForm{margin-top:18px}#profileForm[aria-busy=true]{cursor:progress}#profileForm button:disabled{opacity:.65}
#appView{min-width:0}.workspace-card .top{margin-bottom:0}.workspace-card h2{margin-bottom:8px}.workspace-card .small{margin:0;line-height:1.8}.workspace-actions{display:flex;gap:10px;flex:none;min-width:0}.workspace-actions .button-link{min-width:0;white-space:normal;text-align:center}.dashboard-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));grid-auto-rows:1fr;gap:8px;margin:0 0 18px}.dashboard-tab{min-width:0;min-height:48px;padding:10px 8px;border:1px solid #dce4f0;background:#fff;color:#526078;line-height:1.5;overflow-wrap:anywhere}.dashboard-tab:hover{background:#edf3ff;color:#1d4ed8}.dashboard-tab[aria-selected=true]{border-color:#2563eb;background:#2563eb;color:#fff;box-shadow:0 3px 9px #2563eb24}.dashboard-tab:focus-visible,.dashboard-panel:focus-visible{outline:2px solid #2563eb;outline-offset:3px}.dashboard-panel{min-width:0;border-radius:14px}.dashboard-table-scroll{width:100%;max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain}.dashboard-table-scroll:focus-visible{outline:2px solid #2563eb;outline-offset:-2px}.dashboard-table-scroll .table{display:table;overflow:visible;max-width:none}.dashboard-table-scroll .table th{white-space:nowrap}#devicesTable{min-width:1040px}#bindingsTable{min-width:480px;table-layout:fixed}
.workspace-card .top>div:first-child{min-width:0}.workspace-actions{flex-wrap:wrap;justify-content:flex-end;max-width:62%}.workspace-actions .button-link{flex:0 1 auto}
@media(max-width:900px){.workspace-card .top{flex-direction:column;align-items:stretch}.workspace-actions{width:100%;max-width:none}.workspace-actions .button-link{flex:1 1 calc(50% - 10px)}}
@media(max-width:700px){.dashboard-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}.dashboard-panel .top{flex-wrap:wrap}.dashboard-panel .top h2{margin-bottom:0}.dashboard-grid{gap:0}.dashboard-tabs{margin-bottom:14px}}
@media(max-width:400px){.workspace-actions .button-link{padding:10px 8px;font-size:13px}.workspace-actions{gap:8px}}
#bindingsTable th{width:25%}#bindingsTable td{overflow-wrap:anywhere}#bindingsTable .badge,#bindingsTable td:nth-child(4) button{white-space:nowrap}
.dashboard-wrap{max-width:1440px}
.password-field{position:relative;min-width:0}.password-field input{min-height:44px;padding-right:52px}.password-field input::-ms-reveal,.password-field input::-ms-clear{display:none}.password-field .password-toggle{position:absolute;top:1px;right:1px;bottom:1px;width:44px;min-height:0;margin:0;padding:0;display:flex;align-items:center;justify-content:center;border-radius:0 7px 7px 0;background:transparent;color:#68758a}.password-field .password-toggle:hover{background:#edf3ff;color:#2563eb}.password-field .password-toggle:focus-visible{outline:2px solid #2563eb;outline-offset:-3px}.password-toggle svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media(min-width:1024px){
  .dashboard-wrap #devicesTable,.dashboard-wrap #bindingsTable{width:100%;min-width:0;table-layout:fixed}
  .dashboard-wrap .dashboard-table-scroll .table td{min-width:0;overflow-wrap:anywhere}
  .dashboard-wrap #devicesTable th:nth-child(1){width:4%}
  .dashboard-wrap #devicesTable th:nth-child(2){width:31%}
  .dashboard-wrap #devicesTable th:nth-child(3){width:12%}
  .dashboard-wrap #devicesTable th:nth-child(4){width:7%}
  .dashboard-wrap #devicesTable th:nth-child(5){width:6%}
  .dashboard-wrap #devicesTable th:nth-child(6){width:10%}
  .dashboard-wrap #devicesTable th:nth-child(7){width:15%}
  .dashboard-wrap #devicesTable th:nth-child(8){width:15%}
  .dashboard-wrap #devicesTable .badge{white-space:nowrap}
  .dashboard-wrap #devicesTable .token-tools{display:grid;grid-template-columns:minmax(0,1fr) auto auto;width:100%;min-width:0;max-width:100%}
  .dashboard-wrap #devicesTable .token-value{width:auto;min-width:0;max-width:100%}
  .dashboard-wrap #devicesTable .host-download{max-width:100%;white-space:normal;overflow-wrap:anywhere;margin:2px 0}
}
.host-download-options{display:flex;align-items:center;gap:8px;flex-wrap:nowrap}
.host-download-options>.host-download{flex:none;padding:10px;white-space:nowrap!important}
.host-download-help{margin:4px 0 7px;line-height:1.6}

/* Device identity and compact, readable last-seen/token cells. */
#devicesTable .last-seen-date,#devicesTable .last-seen-time{display:block;white-space:nowrap;line-height:1.6}
#devicesTable .token-tools{width:158px;max-width:100%;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto auto}
#devicesTable .token-value{width:auto;min-width:0;max-width:100%}
@media(min-width:1024px){.dashboard-wrap #devicesTable .token-tools{width:158px}}
@media(max-width:700px){
 .dashboard-wrap #devicesTable{width:100%;min-width:0;table-layout:auto}
 #devicesTable thead{display:none}
 #devicesTable tbody,#devicesTable tr{display:block;width:100%}
 #devicesTable tr{padding:12px 0;border-bottom:1px solid #ddd}
 .dashboard-wrap #devicesTable td{display:grid;grid-template-columns:76px minmax(0,1fr);align-items:center;gap:8px;min-width:0;width:100%;border:0;padding:5px 0;overflow-wrap:anywhere}
 #devicesTable td::before{content:attr(data-label);color:#68758a;font-size:13px}
 .dashboard-wrap #devicesTable td.device-identity{display:block}
 #devicesTable .device-identity::before{display:block;margin-bottom:7px}
 #devicesTable .badge{justify-self:start}#devicesTable .token-tools{width:184px}
 #devicesTable .host-download-help{grid-column:2}
}

/* Six equal menu entries; panel tabs retain their own ARIA keyboard group. */
.dashboard-tab-panels{display:contents}.dashboard-tab{display:flex;align-items:center;justify-content:center;text-decoration:none;text-align:center;border-radius:8px;font:14px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif}.dashboard-tab-panels #tab-registration{order:1}.dashboard-tab-panels #tab-devices{order:2}.dashboard-tab-panels #tab-bindings{order:3}#temporaryShareLink.dashboard-tab{order:4}#dashboardVault{order:5}.dashboard-tab-panels #tab-account{order:6}
