.has-account-bar {padding-bottom:calc(78px + env(safe-area-inset-bottom,0px))}
.account-bar {
  position:fixed;inset:auto 0 0;z-index:30;display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:8px clamp(12px,3vw,38px) calc(8px + env(safe-area-inset-bottom,0px));
  border-top:1px solid #b6cbd5;background:#f8fbfc;color:#173440;font:500 14px/1.35 Inter,Arial,sans-serif
}
.account-bar button,.account-bar a,.profile-dialog button,.profile-dialog a {
  box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:10px;margin:0;padding:9px 12px;
  min-height:42px;font:inherit;color:#254a5c;background:transparent;border:0;border-radius:8px;text-decoration:none;cursor:pointer
}
.account-bar button:hover,.account-bar a:hover,.profile-dialog button:hover,.profile-dialog a:hover {background:#e4eff3}
.account-bar :focus-visible,.profile-dialog :focus-visible,.workspace-legal a:focus-visible {outline:2px solid #17536b;outline-offset:2px}
.account-bar .profile-trigger {min-width:0;padding:4px;justify-content:start}
.profile-initials {display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:50%;background:#17536b;color:white;font-size:14px;font-weight:650}
.profile-caption {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.account-tools {display:flex;align-items:center;flex:none;gap:3px}
.workspace-legal {display:flex;justify-content:center;gap:22px;flex-wrap:wrap;padding:18px 16px 22px;font:14px/1.5 Inter,Arial,sans-serif}
.workspace-legal a {color:#284d61}
.profile-dialog {color:#173440;background:#fff;border:1px solid #c2d3db;border-radius:16px;padding:22px;width:min(410px,calc(100% - 28px));max-height:85dvh;font:16px/1.5 Inter,Arial,sans-serif}
.profile-dialog::backdrop,dialog.modal-overlay::backdrop {background:rgb(16 36 48 / .48)}
.profile-dialog h2 {margin:0;font-size:21px}.profile-dialog .profile-email {overflow-wrap:anywhere;color:#496271;margin:4px 0 20px}
.profile-dialog label {display:block;font-size:14px;font-weight:600}.profile-dialog input {display:block;width:100%;margin-top:6px;padding:10px;border:1px solid #91a8b6;border-radius:7px;color:#173440;background:white;font:inherit}
.profile-dialog .profile-actions,.profile-links {display:flex;align-items:center;gap:6px}
.profile-dialog .save-profile {background:#17536b;color:white}.profile-dialog .save-profile:hover {background:#123e50}
.profile-links {margin-top:18px;padding-top:10px;border-top:1px solid #d3dfe5}
.profile-message {color:#9c381c;font-size:14px}.profile-message:empty{margin:10px 0}
dialog.modal-overlay {margin:auto;border:0;padding:0;background:transparent;width:min(560px,calc(100% - 30px));height:fit-content;max-height:88dvh;color:inherit}
dialog.modal-overlay[open] {display:block}dialog.modal-overlay>.modal {width:100%;max-width:none;max-height:86dvh;overflow-y:auto}
.history-item-main {background:transparent;border:0;color:inherit;font:inherit;text-align:left;padding:0;cursor:pointer}
@media(max-width:480px){.account-bar{gap:3px;padding-inline:8px}.account-bar button,.account-bar a{padding-inline:7px}.account-tools{gap:0}.profile-trigger{max-width:55%}.profile-trigger .profile-initials{width:32px;height:32px}}
@media print{.account-bar,.profile-dialog,.workspace-legal{display:none!important}.has-account-bar{padding-bottom:0}}

@media screen{
  body:has(>.workspace-legal){display:flex;flex-direction:column;min-height:100dvh}
  body>.wrap{width:100%}
  .workspace-legal{margin-top:auto}
}
