/* Shared shell: one brand, navigation, focus language and account menu. */
.workspace-header.app-header {
  height: 68px;
  min-height: 68px;
  padding: 0 20px;
  gap: 18px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid #e7ebf2;
  position: relative;
  z-index: 35;
}
.workspace-header .workspace-brand {
  width: 164px;
  flex: 0 0 164px;
  overflow: hidden;
  padding: 0;
  border-radius: 0;
}
.workspace-header .workspace-brand img {
  display: block;
  width: 224px;
  height: 38px;
  max-width: none;
  max-height: none;
  object-fit: contain;
}
.workspace-header .workspace-nav {
  display: flex;
  gap: 3px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  flex: 0 1 auto;
  padding: 5px 0;
}
.workspace-header .workspace-nav-item {
  display: inline-flex;
  flex-shrink: 0;
  gap: 7px;
  align-items: center;
  justify-content: center;
  padding: 10px 11px;
  min-height: 42px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: #3c475c;
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}
.workspace-header .workspace-nav-item span {
  display: inline;
}
.workspace-header .workspace-nav-item svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
.workspace-header .workspace-nav-item:hover {
  background: #f5f7fb;
  color: #192c48;
}
.workspace-header .workspace-nav-item[aria-current="page"] {
  background: #edf1ff;
  color: #3454f5;
}
.workspace-header .global-search {
  min-width: 150px;
  max-width: 280px;
  flex: 1 1 200px;
  border: 1px solid #e5eaf3;
  background: #f6f8fb;
  padding: 0 10px;
  height: 42px;
  border-radius: 11px;
  margin-left: auto;
}
.workspace-header .global-search input {
  font-size: 13px;
  min-width: 0;
  outline-offset: 0;
  padding: 10px 0;
}
.workspace-header .global-search > svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  color: #738197;
}
.workspace-header .global-search kbd {
  font-size: 10px;
}
.workspace-search > button {
  min-width: 28px;
  width: 28px;
  min-height: 32px;
  padding: 2px;
  border: 0;
  background: transparent;
  color: #69788f;
}
.workspace-search > button svg {
  width: 17px;
  height: 17px;
}
.workspace-account {
  position: relative;
  flex-shrink: 0;
  margin-left: auto;
}
.workspace-account summary,
.workspace-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  min-height: 44px;
  border-radius: 10px;
  cursor: pointer;
  list-style: none;
  padding: 5px 0;
}
.workspace-account summary::-webkit-details-marker {
  display: none;
}
.workspace-account summary > svg {
  width: 14px;
  height: 14px;
  color: #7c899d;
}
.workspace-identity {
  display: grid;
  gap: 4px;
  max-width: 115px;
  min-width: 0;
}
.workspace-identity strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 650;
}
.workspace-identity small {
  font-size: 11px;
  color: #76849b;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.workspace-account .avatar,
.workspace-profile .avatar {
  background: #edf1ff;
  color: #3454f5;
  font-size: 15px;
  width: 34px;
  height: 34px;
}
.workspace-account-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 60;
  width: 220px;
  padding: 8px;
  border: 1px solid #e7ebf2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 36px #25395b17;
}
.workspace-name-button {
  display: grid !important;
  justify-items: start;
  gap: 3px;
  min-height: 58px !important;
  padding: 10px !important;
  margin-bottom: 5px;
  border-bottom: 1px solid #edf0f5 !important;
  border-radius: 8px 8px 0 0 !important;
}
.workspace-name-button strong {
  font-size: 14px;
  font-weight: 700;
}
.workspace-name-button::after {
  content: "클릭해서 이름 변경";
  color: #8592a6;
  font-size: 10px;
  font-weight: 500;
}
.workspace-account-popover p {
  padding: 10px 10px 14px;
  margin: 0 0 5px;
  border-bottom: 1px solid #edf0f5;
  font-size: 14px;
  font-weight: 650;
}
.workspace-name-form {
  padding: 8px;
  margin-bottom: 5px;
  border-bottom: 1px solid #edf0f5;
}
.workspace-name-form[hidden],
.workspace-name-button[hidden] {
  display: none !important;
}
.workspace-name-form label {
  gap: 5px;
  color: #64738a;
  font-size: 11px;
}
.workspace-name-form input {
  width: 100%;
  min-height: 38px;
  padding: 8px 9px;
  color: #19263f;
  font-size: 13px;
  font-weight: 650;
}
.workspace-name-form > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-top: 6px;
}
.workspace-name-form > div button {
  justify-content: center;
  min-height: 34px;
  padding: 6px;
}
.workspace-name-form [role="alert"] {
  margin-top: 5px;
  color: #b02741;
  font-size: 11px;
}
.workspace-account-popover small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  margin-top: 3px;
}
.workspace-account-popover a,
.workspace-account-popover button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 10px;
  color: #344259;
  border: 0;
  background: none;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 550;
  justify-content: flex-start;
}
.workspace-account-popover a:hover,
.workspace-account-popover button:hover {
  background: #f3f6fb;
}
.workspace-header :is(a, button, input, summary):focus-visible,
.ops-content :is(a, button, input, select):focus-visible {
  outline: 3px solid #8da4ff;
  outline-offset: 2px;
}
@media (max-width: 1450px) {
  .workspace-header.app-header {
    gap: 12px;
    padding-inline: 16px;
  }
  .workspace-header .workspace-brand {
    flex-basis: 142px;
    width: 142px;
  }
  .workspace-header .workspace-brand img {
    width: 199px;
  }
  .workspace-header .workspace-nav-item {
    padding-inline: 9px;
    gap: 5px;
  }
  .workspace-header .workspace-identity {
    display: none;
  }
}
@media (max-width: 1180px) {
  .workspace-header.app-header {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 18px 0;
    gap: 8px 16px;
  }
  .workspace-header .workspace-brand {
    flex-basis: 152px;
  }
  .workspace-header .workspace-nav {
    order: 5;
    flex: 1 0 100%;
    margin: 0;
    max-width: 100%;
    padding: 6px 0 9px;
  }
  .workspace-header .global-search {
    order: 0;
    max-width: 350px;
    margin-left: auto;
    flex-basis: 180px;
  }
  .workspace-header .workspace-account {
    margin-left: 0;
  }
}
@media (max-width: 600px) {
  .workspace-header.app-header {
    padding: 8px 12px 0;
    gap: 6px 10px;
  }
  .workspace-header .workspace-brand {
    flex-basis: 120px;
    width: 120px;
  }
  .workspace-header .workspace-brand img {
    width: 166px;
    height: 34px;
  }
  .workspace-header .global-search {
    min-width: 90px;
    height: 38px;
    flex-basis: 90px;
    padding: 0 8px;
  }
  .workspace-header .global-search input {
    font-size: 12px;
    min-height: 36px;
  }
  .workspace-header .global-search kbd,
  .workspace-search > button {
    display: none;
  }
  .workspace-header .workspace-nav {
    padding: 4px 0 7px;
  }
  .workspace-header .workspace-nav-item {
    min-height: 44px;
    font-size: 12px;
    padding: 9px 10px;
  }
  .workspace-header .workspace-nav-item svg {
    width: 17px;
    height: 17px;
  }
  .workspace-account summary > svg {
    display: none;
  }
  .workspace-header .avatar {
    width: 30px;
    height: 30px;
  }
}
@media print {
  .workspace-header {
    display: none !important;
  }
}
