/* Header for sign-in and the signed-in Workspace. */
:root[data-theme] body:not(.admin-portal)>header.workspace-header {
 display:flex;
 align-items:center;
 justify-content:space-between;
 gap:12px;
 height:auto;
 min-height:calc(72px + env(safe-area-inset-top));
 padding:env(safe-area-inset-top) max(24px,env(safe-area-inset-right)) 0 max(24px,env(safe-area-inset-left));
 border-bottom:1px solid var(--ui-border);
 background:var(--phone-surface,var(--ui-surface));
 box-shadow:none;
}

:root[data-theme] body:not(.admin-portal)>header.workspace-header .brand {
 display:flex;
 align-items:center;
 flex:none;
 min-height:44px;
 margin:0;
 padding:0;
}

:root[data-theme] body:not(.admin-portal)>header.workspace-header .j6ixx-mark {
 position:relative;
 display:block;
 width:clamp(106px,13vw,136px);
 aspect-ratio:1185 / 370;
 margin:0;
 padding:0;
 overflow:hidden;
 border-radius:0;
 background:none;
}

.workspace-header .j6ixx-mark img {
 position:absolute;
 top:-45.405%;
 left:-14.852%;
 width:129.620%;
 max-width:none;
 height:auto;
 mix-blend-mode:multiply;
}

:root[data-theme="dark"] .workspace-header .j6ixx-mark img {
 filter:invert(1);
 mix-blend-mode:screen;
}

.workspace-header-actions {
 display:flex;
 align-items:center;
 gap:8px;
}

:root[data-theme] body:not(.admin-portal)>header.workspace-header :is(.theme-toggle,#notification-bell,#user-signout) {
 position:relative;
 display:inline-flex;
 align-items:center;
 justify-content:center;
 gap:7px;
 min-width:44px;
 min-height:44px;
 padding:0 10px;
 border:1px solid transparent;
 border-radius:12px;
 background:transparent;
 color:var(--ui-text);
 box-shadow:none;
}

:root[data-theme] body:not(.admin-portal)>header.workspace-header button:hover {
 background:var(--ui-surface-alt);
 border-color:var(--ui-border);
}

.workspace-header :is(button,.brand):focus-visible {
 outline:2px solid var(--ui-accent);
 outline-offset:2px;
}

:root[data-theme] body:not(.admin-portal)>header.workspace-header #workspace-theme-toggle {
 font-size:0;
}

.workspace-header .theme-toggle::before {
 content:"";
 width:20px;
 height:20px;
 background:currentColor;
 mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20.8 15.4A8.9 8.9 0 0 1 8.6 3.2 8.9 8.9 0 1 0 20.8 15.4Z' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
}

:root[data-theme="dark"] .workspace-header .theme-toggle::before {
 mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2m0 16v2M2 12h2m16 0h2M5 5l1.4 1.4m11.2 11.2L19 19m0-14-1.4 1.4M6.4 17.6 5 19'/%3E%3C/g%3E%3C/svg%3E");
}

.workspace-header #notification-count {
 position:absolute;
 inset:3px 1px auto auto;
 min-width:16px;
 margin:0;
 padding:2px 4px;
 border:0;
 border-radius:9px;
 background:var(--ui-accent);
 color:white;
 font-size:10px;
 line-height:1.15;
}

:root[data-theme="dark"] .workspace-header #notification-count {
 color:var(--ui-surface);
}

.workspace-header #user-signout svg {
 width:19px;
 height:19px;
 fill:none;
 stroke:currentColor;
 stroke-width:1.8;
 stroke-linecap:round;
 stroke-linejoin:round;
}

@media (max-width:700px) {
 :root[data-theme] body:not(.admin-portal)>header.workspace-header {
  min-height:calc(62px + env(safe-area-inset-top));
  padding:env(safe-area-inset-top) max(14px,env(safe-area-inset-right)) 0 max(16px,env(safe-area-inset-left));
 }

 .workspace-header-actions {gap:3px}

 .workspace-header #user-signout .signout-label {display:none}

 :root[data-theme] body:not(.admin-portal):not(.workspace-open) :is(#login,#signup) input:not([type=checkbox]) {
  font-size:16px;
 }
}
