#container.compact_header { --compact-header-height: 50px; }
#container.compact_header #header_v3 { top: 0; height: var(--compact-header-height); }
#container.compact_header #header_v3_top {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 64px;
  column-gap: 30px;
  align-items: center;
  height: var(--compact-header-height);
  padding: 0 20px;
  box-sizing: border-box;
}
#container.compact_header #header_v3_logo { position: static; }
#container.compact_header #clientline {
  position: static;
  min-width: 0;
  height: 100%;
  background: transparent;
}
#container.compact_header #clientline_auth {
  position: static;
  display: flex;
  align-items: center;
  column-gap: 24px;
  height: 100%;
}
#container.compact_header #clientline_auth > a {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: 50px;
  padding-top: 0;
  font-size: 14px;
  letter-spacing: -0.5px;
  white-space: nowrap;
  color: #fff;
  border-bottom: 2px solid transparent;
}
#container.compact_header #clientline_auth > a:hover,
#container.compact_header #clientline_auth > a:focus-visible { color: #ffb80e; }
#container.compact_header #clientline_register { margin-left: 0; }
#container.compact_header #clientline_register:before { left: -12px; }
#container.compact_header #guest_project_link { padding: 0 12px; }
#container.compact_header #guest_retention_notice {
  color: #fff;
  font-size: 12px;
  white-space: nowrap;
  margin-left: 0;
  line-height: 1.25;
}
#container.compact_header #guest_retention_notice .guest_retention_duration { color: #faa61a; }
#container.compact_header #planner_header_wrapper { top: var(--compact-header-height); }
#container.compact_header #planner_container,
#container.compact_header #planner_ui_message_fog { top: calc(var(--compact-header-height) + 45px); }
#container.compact_header.compact_editor:not(.video_clean) #canvas { top: calc(var(--compact-header-height) + 46px); }
#container.compact_header:before { height: var(--compact-header-height); }
#container.compact_header.compact_editor:before,
#container.compact_header.compact_cabinet:before { height: calc(var(--compact-header-height) + 46px); }
#container.compact_header #header_v3_bottom { top: var(--compact-header-height); }
#container.compact_header.compact_editor #visual_canvas { height: calc(100% - var(--compact-header-height) - 88px); }

#container.compact_header #clientline_auth > a[aria-current="page"] { color: #ffb80e; border-bottom-color: #ffb80e; }
#container.compact_header #guest_project_link:before {
  position: absolute; left: -12px; top: 50%; margin-top: -8px;
  width: 1px; height: 16px; background: #fff; opacity: 0.3; content: '';
}
#container.compact_header #clientline_user span { max-width: 230px; overflow: hidden; text-overflow: ellipsis; }
#container.compact_header #clientline_id { display: flex; align-items: center; padding-left: 0; height: 50px; }
#container.compact_header #clientline_id:before { display: none; }
#container.compact_header #clientline_id_selector { height: auto; padding-top: 0; }
#container.compact_header.compact_client #header_v3:after { display: none; }

#container.compact_header #header_language { position: relative; align-self: start; margin-top: 11px; font-size: 12px; line-height: 1.3; z-index: 56; }
#container.compact_header #header_language summary {
  position: relative; display: block; box-sizing: border-box; padding: 5px 24px 5px 10px;
  color: #fff; background: #252525; border: 1px solid rgba(255,255,255,0.3);
  border-radius: 3px; cursor: pointer; font-weight: 700; list-style: none;
}
#container.compact_header #header_language summary::-webkit-details-marker { display: none; }
#container.compact_header #header_language summary:after {
  position: absolute; right: 10px; top: 10px; content: '';
  border: 4px solid transparent; border-bottom: 0; border-top-color: currentColor;
}
#container.compact_header #header_language summary:hover,
#container.compact_header #header_language summary:focus-visible { color: #ffb80e; }
#container.compact_header #header_language_options {
  position: absolute; right: 0; top: calc(100% + 8px); width: 240px;
  max-height: min(420px, calc(100vh - 70px)); overflow-y: auto; overscroll-behavior: contain;
  background: #252525; border: 1px solid #555; border-radius: 3px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25); text-align: left;
}
#container.compact_header #header_language_options p { padding: 10px 12px; color: #ccc; font-size: 11px; border-bottom: 1px solid #444; }
#container.compact_header #header_language_options a {
  display: flex; justify-content: space-between; align-items: center; padding: 7px 12px;
  color: #aaa; text-decoration: none; cursor: pointer; white-space: nowrap;
}
#container.compact_header #header_language_options a:hover { color: #fff; background: #333; }
#container.compact_header #header_language_options a[aria-current="true"] { color: #ffb80e; }
#container.compact_header #header_language_options a span { color: #777; padding-left: 16px; font-size: 10px; }

@media (max-width: 1080px) {
  #container.compact_header { --compact-header-height: 76px; }
  #container.compact_header #header_v3_logo { align-self: start; margin-top: 11px; }
  #container.compact_header #clientline_auth { flex-wrap: wrap; align-content: start; }
  #container.compact_header #guest_retention_notice { flex-basis: 100%; line-height: 26px; }
  #container.compact_header #clientline_id { flex-basis: 100%; height: 26px; }
}
@media (max-width: 800px) {
  #container.compact_header { --compact-header-height: 112px; }
  #container.compact_header #header_v3_top { display: block; padding: 50px 12px 0; }
  #container.compact_header #header_v3_logo { position: absolute; left: 12px; top: 11px; margin: 0; }
  #container.compact_header #clientline { height: 62px; }
  #container.compact_header #clientline_auth { column-gap: 16px; }
  #container.compact_header #clientline_auth > a { height: 36px; font-size: 12px; }
  #container.compact_header #guest_project_link { padding-left: 0; padding-right: 0; }
  #container.compact_header #guest_project_link:before { left: -8px; }
  #container.compact_header #clientline_user span { max-width: 175px; }
  #container.compact_header #guest_retention_notice { font-size: 11px; }
  #container.compact_header #header_language { position: absolute; right: 12px; top: 11px; margin-top: 0; width: 64px; }
}
