/* [TFH-002:TFH_MAIN_SHELL:CSS-START] */
.tfh-main-shell {
  width: 100vw;
  height: 100dvh;
  display: grid;
  grid-template-rows: 84px minmax(0, 1fr);
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 0%, rgba(47, 127, 196, 0.12), transparent 27%),
    linear-gradient(135deg, #edf3f8, #f8fafc 45%, #e8eff5);
}

.tfh-main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
  padding: 10px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.13);
  color: #fff;
  background:
    radial-gradient(circle at 15% 0%, rgba(47,127,196,0.22), transparent 25%),
    linear-gradient(110deg, #06172c, #0d3156 64%, #09203c);
  box-shadow: 0 7px 24px rgba(5, 22, 43, 0.18);
  z-index: 5;
}

.tfh-main-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.tfh-main-brand img {
  width: 82px;
  height: 60px;
  object-fit: contain;
}

.tfh-main-brand div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.tfh-main-brand span {
  color: var(--tfh-gold-300);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.tfh-main-brand strong {
  overflow: hidden;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tfh-header-context {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.tfh-company-button,
.tfh-user-box,
.tfh-logout-button {
  min-height: 54px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 13px;
  color: #fff;
  background: rgba(255,255,255,0.055);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.045);
}

.tfh-company-button {
  min-width: min(390px, 34vw);
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  text-align: left;
  cursor: pointer;
}

.tfh-company-button:hover {
  border-color: rgba(216,181,110,0.48);
  background: rgba(255,255,255,0.085);
}

.tfh-company-badge {
  width: 38px;
  height: 38px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(145deg, var(--tfh-blue-600), var(--tfh-navy-800));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
  font-size: 0.72rem;
  font-weight: 900;
}

.tfh-company-badge img {
  width: 100%;
  height: 100%;
  padding: 3px;
  object-fit: contain;
  background: rgba(255,255,255,0.96);
}

.tfh-company-copy {
  min-width: 0;
  display: grid;
}

.tfh-company-copy small,
.tfh-user-box small {
  color: rgba(255,255,255,0.53);
  font-size: 0.62rem;
  line-height: 1.1;
}

.tfh-company-copy strong,
.tfh-user-box strong {
  overflow: hidden;
  color: #fff;
  font-size: 0.86rem;
  line-height: 1.25;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tfh-company-copy em {
  color: var(--tfh-gold-300);
  font-size: 0.64rem;
  font-style: normal;
}

.tfh-company-button > svg {
  color: rgba(255,255,255,0.72);
}

.tfh-user-box {
  max-width: 220px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
}

.tfh-user-avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--tfh-navy-950);
  background: linear-gradient(145deg, #f8f9fa, #aeb7c0);
  font-weight: 900;
}

.tfh-user-box div {
  min-width: 0;
  display: grid;
}

.tfh-logout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  cursor: pointer;
}

.tfh-logout-button:hover {
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.09);
}

.tfh-main-body {
  min-height: 0;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  overflow: hidden;
}

.tfh-side-panel {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border-right: 1px solid rgba(16, 43, 77, 0.12);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.97), rgba(246,249,252,0.98));
  box-shadow: 8px 0 24px rgba(5, 22, 43, 0.055);
}

.tfh-side-heading {
  padding: 24px 20px 16px;
}

.tfh-side-heading span {
  display: block;
  color: var(--tfh-blue-600);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tfh-side-heading strong {
  display: block;
  margin-top: 3px;
  font-size: 1.26rem;
}

.tfh-tab-list {
  min-height: 0;
  overflow-y: auto;
  padding: 4px 13px 16px;
  scrollbar-width: thin;
}

.tfh-tab-button {
  width: 100%;
  min-height: 52px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #415269;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.tfh-tab-button:hover {
  color: var(--tfh-navy-850);
  background: rgba(29, 95, 159, 0.06);
}

.tfh-tab-button.is-active {
  border-color: rgba(29, 95, 159, 0.13);
  color: #fff;
  background: linear-gradient(135deg, var(--tfh-navy-800), var(--tfh-blue-600));
  box-shadow: 0 10px 20px rgba(18,52,92,0.16);
}

.tfh-tab-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--tfh-blue-600);
  background: var(--tfh-blue-100);
  font-size: 0.66rem;
  font-weight: 900;
}

.tfh-tab-button.is-active .tfh-tab-icon {
  color: var(--tfh-navy-950);
  background: linear-gradient(145deg, #fff, #bfc8d1);
}

.tfh-tab-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.tfh-tab-copy strong {
  overflow: hidden;
  font-size: 0.85rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.tfh-tab-copy small {
  color: #8a96a4;
  font-size: 0.63rem;
}

.tfh-tab-button.is-active .tfh-tab-copy small {
  color: rgba(255,255,255,0.58);
}

.tfh-side-footer {
  padding: 12px 15px;
  border-top: 1px solid var(--tfh-line);
  background: linear-gradient(135deg, #06172c, #0d3156);
}

.tfh-side-footer img {
  display: block;
  width: 100%;
  max-height: 54px;
  object-fit: contain;
}

.tfh-work-area {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  padding: clamp(20px, 2.7vw, 34px);
}

.tfh-work-header {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
}

.tfh-work-header span {
  color: var(--tfh-blue-600);
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.17em;
}

.tfh-work-header h1 {
  margin: 5px 0 6px;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  letter-spacing: -0.045em;
}

.tfh-work-header p {
  max-width: 700px;
  margin: 0;
  color: var(--tfh-ink-600);
  font-size: 0.88rem;
}

.tfh-work-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(24,121,78,0.12);
  border-radius: 999px;
  color: var(--tfh-success);
  background: rgba(24,121,78,0.06);
  font-size: 0.72rem;
}

.tfh-work-status span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tfh-success);
  box-shadow: 0 0 0 4px rgba(24,121,78,0.11);
}
/* [TFH-002:TFH_MAIN_SHELL:CSS-END] */
