/* Loaded after plugin-owned styles so add-on routes keep the TungstenCloud shell. */
html[data-tc-plugin="true"] body,
html[data-tc-plugin="true"] .template,
html[data-tc-plugin="true"] .template > .el-container {
  min-height: 100vh !important;
  color: var(--tc-text) !important;
  background: var(--tc-bg) !important;
}

html[data-tc-plugin="true"] .template > .el-container > .el-container {
  width: 0 !important;
  min-width: 0 !important;
  flex: 1 1 0% !important;
  flex-direction: column !important;
  background: var(--tc-bg) !important;
}

html[data-tc-plugin="true"] .el-aside {
  position: relative !important;
  width: 228px !important;
  min-width: 228px !important;
  max-width: 228px !important;
  flex: 0 0 228px !important;
  overflow: hidden !important;
  border-right: 1px solid rgba(155, 190, 224, .12) !important;
  color: #a9bdd2 !important;
  background: linear-gradient(180deg, #0b243c 0%, #071a2c 100%) !important;
  box-shadow: 8px 0 22px rgba(18, 39, 61, .1) !important;
}

html[data-theme-mode="dark"][data-tc-plugin="true"] .el-aside {
  background: linear-gradient(180deg, #071827 0%, #050f1b 100%) !important;
}

html[data-tc-plugin="true"][data-tc-side-brand="false"] .el-aside::after {
  position: absolute !important;
  z-index: 2;
  top: 24px !important;
  left: 22px !important;
  width: 180px;
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 760 !important;
  line-height: 1.45 !important;
  letter-spacing: .13em !important;
  white-space: pre;
  content: "TUNGSTENCLOUD\A CLOUD OPERATIONS" !important;
  pointer-events: none;
}

html[data-tc-plugin="true"] .el-aside .el-menu,
html[data-tc-plugin="true"] .el-aside .el-menu-item,
html[data-tc-plugin="true"] .el-aside .el-submenu__title {
  border: 0 !important;
  color: #a9bdd2 !important;
  background: transparent !important;
}

html[data-tc-plugin="true"] .el-aside .el-menu-item,
html[data-tc-plugin="true"] .el-aside .el-submenu__title {
  height: 46px !important;
  margin: 3px 12px !important;
  padding-right: 14px !important;
  padding-left: 16px !important;
  border-radius: 10px !important;
  line-height: 46px !important;
}

html[data-tc-plugin="true"] .el-aside .el-menu-item:hover,
html[data-tc-plugin="true"] .el-aside .el-submenu__title:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, .07) !important;
}

html[data-tc-plugin="true"] .el-aside .el-menu-item.is-active {
  color: #ffffff !important;
  background: rgba(76, 150, 255, .18) !important;
  box-shadow: inset 3px 0 #58a5ff !important;
}

html[data-tc-plugin="true"] .el-aside .iconfont {
  width: 20px !important;
  margin-right: 11px !important;
  color: #7894af !important;
  font-size: 17px !important;
  text-align: center;
}

html[data-tc-plugin="true"] .el-header {
  position: relative !important;
  width: 100% !important;
  height: 68px !important;
  min-height: 68px !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 24px !important;
  border-bottom: 1px solid var(--tc-line) !important;
  color: var(--tc-text) !important;
  background: var(--tc-header-bg) !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

html[data-tc-plugin="true"][data-tc-top-brand="false"] .el-header::before {
  position: absolute;
  top: 14px;
  left: 24px;
  color: var(--tc-text);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.2;
  white-space: pre;
  letter-spacing: -.01em;
  content: "TungstenCloud Console\A RESOURCE · BILLING · SUPPORT";
  pointer-events: none;
}

html[data-tc-plugin="true"][data-tc-top-brand="false"] .el-header::first-line {
  color: var(--tc-text);
}

html[data-tc-plugin="true"] .el-main {
  width: 100% !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  padding: 28px 30px 48px !important;
  color: var(--tc-text) !important;
  background: var(--tc-bg) !important;
}

html[data-tc-plugin="true"] .el-main > * {
  width: 100% !important;
  max-width: 1440px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 auto !important;
}

html[data-tc-plugin="true"] .el-main .main-card,
html[data-tc-plugin="true"] .el-main > .content-box,
html[data-tc-plugin="true"] .el-main > .el-card,
html[data-tc-plugin="true"] .el-main > .clid-box,
html[data-tc-plugin="true"] .el-main .clid-box {
  width: 100% !important;
  max-width: 1440px !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 auto !important;
  padding: 28px 30px 34px !important;
  overflow: visible !important;
  border: 1px solid var(--tc-line) !important;
  border-radius: 18px !important;
  color: var(--tc-text) !important;
  background: var(--tc-surface) !important;
  box-shadow: var(--tc-shadow) !important;
}

html[data-tc-plugin="true"] .el-main > .clid-box,
html[data-tc-plugin="true"] .el-main .clid-box {
  display: block !important;
}

html[data-tc-plugin="true"] .el-main > .news,
html[data-tc-plugin="true"] .el-main > .file_download,
html[data-tc-plugin="true"] .el-main .com-r-box,
html[data-tc-plugin="true"] .el-main .com-l-box,
html[data-tc-plugin="true"] .el-main .top-back,
html[data-tc-plugin="true"] .el-main .box {
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  color: var(--tc-text) !important;
  border-color: var(--tc-line) !important;
  background-color: var(--tc-surface) !important;
}

html[data-tc-plugin="true"] .main-card > .main-card-title,
html[data-tc-plugin="true"] .main-card > .main-title,
html[data-tc-plugin="true"] .el-main h1:first-child,
html[data-tc-plugin="true"] .el-main h2:first-child {
  min-height: 0 !important;
  height: auto !important;
  margin: 0 0 22px !important;
  padding: 0 0 18px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--tc-line) !important;
  border-radius: 0 !important;
  color: var(--tc-text) !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 24px !important;
  font-weight: 740 !important;
  line-height: 1.35 !important;
}

html[data-tc-plugin="true"] .main-card > .main-card-title::after,
html[data-tc-plugin="true"] .main-card > .main-title::after { display: none !important; }

html[data-tc-plugin="true"] .content_searchbar,
html[data-tc-plugin="true"] .searchbar,
html[data-tc-plugin="true"] .filter-box,
html[data-tc-plugin="true"] .search-box {
  min-width: 0 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  margin: 20px 0 !important;
}

html[data-tc-plugin="true"] .el-input__inner,
html[data-tc-plugin="true"] .el-textarea__inner {
  min-height: 42px !important;
  border-color: var(--tc-line) !important;
  border-radius: 10px !important;
  color: var(--tc-text) !important;
  background: var(--tc-surface-2) !important;
  box-shadow: none !important;
}

html[data-tc-plugin="true"] .el-button {
  min-height: 40px !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

html[data-tc-plugin="true"] .tabledata,
html[data-tc-plugin="true"] .content-table,
html[data-tc-plugin="true"] .content_table,
html[data-tc-plugin="true"] .el-table {
  width: 100% !important;
  max-width: none !important;
  color: var(--tc-text) !important;
  background: var(--tc-surface) !important;
}

html[data-tc-plugin="true"] .tabledata,
html[data-tc-plugin="true"] .content-table,
html[data-tc-plugin="true"] .content_table {
  overflow-x: auto !important;
  border: 1px solid var(--tc-line) !important;
  border-radius: 13px !important;
}

html[data-tc-plugin="true"] .el-table th.el-table__cell {
  color: var(--tc-muted) !important;
  background: var(--tc-surface-2) !important;
}

html[data-tc-plugin="true"] .el-table td.el-table__cell,
html[data-tc-plugin="true"] .el-table th.el-table__cell {
  padding: 15px 0 !important;
  border-bottom-color: var(--tc-line) !important;
}

html[data-tc-plugin="true"] .el-table .cell {
  padding-right: 16px !important;
  padding-left: 16px !important;
  line-height: 1.6 !important;
}

html[data-tc-page="ticket"] .ticket-top,
html[data-tc-page="ticket"] .top-box,
html[data-tc-page="ticket"] .ticket-type,
html[data-tc-page="ticket"] .ticket-banner {
  min-height: 96px !important;
  margin-bottom: 22px !important;
  padding: 20px 22px !important;
  border: 1px solid var(--tc-line) !important;
  border-radius: 14px !important;
  color: var(--tc-text) !important;
  background: var(--tc-surface-2) !important;
  box-shadow: none !important;
}

html[data-tc-page="ticket"] .pagination,
html[data-tc-page="ticket"] .el-pagination {
  margin-top: 20px !important;
  padding: 0 !important;
}

html[data-tc-page="ticket"] .template.ticket .main-card {
  min-height: 0 !important;
  height: auto !important;
}

html[data-tc-page="ticket"] .order-des {
  min-height: 0 !important;
  margin: 0 0 22px !important;
  padding: 16px 18px !important;
  border: 1px solid var(--tc-line) !important;
  border-radius: 12px !important;
  color: var(--tc-muted) !important;
  background: var(--tc-surface-2) !important;
}

html[data-tc-page="ticket"] .order-des.tc-empty-notice {
  display: none !important;
}

html[data-tc-page="ticket"] .content_searchbar {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 18px !important;
}

html[data-tc-page="ticket"] .content_searchbar .searchbar {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(180px, 1fr)) auto !important;
  gap: 12px !important;
  margin: 0 !important;
}

html[data-tc-page="child-account"] .clid-box {
  padding: 28px 30px 34px !important;
  border: 1px solid var(--tc-line) !important;
  border-radius: 18px !important;
  background: var(--tc-surface) !important;
  box-shadow: var(--tc-shadow) !important;
}

html[data-tc-page="child-account"] .clid-box > header {
  min-height: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  margin: 0 0 22px !important;
  padding: 0 0 18px !important;
  border-bottom: 1px solid var(--tc-line) !important;
}

html[data-tc-page="child-account"] .clid-box > header h2 {
  margin: 0 !important;
  color: var(--tc-text) !important;
  font-size: 24px !important;
  line-height: 1.35 !important;
}

html[data-tc-page="source"] .news .top-back {
  display: none !important;
}

html[data-tc-page="source"] .news .main-card .search-input {
  width: min(360px, 100%) !important;
  height: auto !important;
  margin: 0 0 24px !important;
}

html[data-tc-page="source"] .news .main-card .back-img {
  top: 16px !important;
  right: 24px !important;
  width: min(270px, 28%) !important;
  height: auto !important;
  opacity: .12 !important;
  pointer-events: none;
}

html[data-tc-page="source"] .news .box.pc {
  min-height: 0 !important;
  display: grid !important;
  grid-template-columns: 260px minmax(0, 1fr) !important;
  align-items: start !important;
  gap: 20px !important;
  margin-top: 22px !important;
}

html[data-tc-page="source"] .news .com-r-box,
html[data-tc-page="source"] .news .com-l-box {
  float: none !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 20px !important;
  border: 1px solid var(--tc-line) !important;
  border-radius: 14px !important;
  background: var(--tc-surface-2) !important;
}

html[data-tc-page="source"] .news .tit,
html[data-tc-page="source"] .news .total,
html[data-tc-page="source"] .news .news-list .title {
  color: var(--tc-text) !important;
}

html[data-tc-page="source"] .news .news-list {
  padding: 0 !important;
}

html[data-tc-page="source"] .news .news-list .item {
  display: flex !important;
  gap: 16px !important;
  margin: 0 !important;
  padding: 15px 0 !important;
  border-bottom: 1px solid var(--tc-line) !important;
}

html[data-tc-page="recommend"] .top-statistic {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin: 20px 0 26px !important;
}

html[data-tc-page="recommend"] .top-statistic .top-item,
html[data-tc-page="source"] .source-item,
html[data-tc-page="source"] .host-item,
html[data-tc-page="source"] .product-item {
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 20px !important;
  border: 1px solid var(--tc-line) !important;
  border-radius: 14px !important;
  color: var(--tc-text) !important;
  background: var(--tc-surface-2) !important;
  box-shadow: none !important;
}

html[data-tc-page="source"] .source-list,
html[data-tc-page="source"] .host-list,
html[data-tc-page="source"] .product-list {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

@media (max-width: 1180px) {
  html[data-tc-page="recommend"] .top-statistic,
  html[data-tc-page="source"] .source-list,
  html[data-tc-page="source"] .host-list,
  html[data-tc-page="source"] .product-list { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  html[data-tc-page="source"] .news .box.pc { grid-template-columns: minmax(0, 1fr) !important; }
}

@media (max-width: 900px) {
  html[data-tc-plugin="true"] .el-aside {
    width: 0 !important;
    min-width: 0 !important;
    flex-basis: 0 !important;
    border: 0 !important;
  }
  html[data-tc-plugin="true"] .el-main { padding: 14px 12px 78px !important; }
  html[data-tc-plugin="true"] .el-main .main-card,
  html[data-tc-plugin="true"] .el-main > .content-box,
  html[data-tc-plugin="true"] .el-main > .el-card,
  html[data-tc-plugin="true"] .el-main > .clid-box,
  html[data-tc-plugin="true"] .el-main .clid-box {
    min-height: 0 !important;
    padding: 20px 16px 24px !important;
  }
  html[data-tc-page="ticket"] .content_searchbar,
  html[data-tc-page="ticket"] .content_searchbar .searchbar {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }
}

@media (max-width: 640px) {
  html[data-tc-page="recommend"] .top-statistic,
  html[data-tc-page="source"] .source-list,
  html[data-tc-page="source"] .host-list,
  html[data-tc-page="source"] .product-list { grid-template-columns: minmax(0, 1fr) !important; }
}


/* TungstenCloud 2.1.8: flag-only language control without a surrounding frame. */
html[theme="tungstencloud"] .tc-console-identity {
  display: none !important;
}
html[theme="tungstencloud"] .el-header .header-left:empty {
  min-width: 0 !important;
}
html[theme="tungstencloud"] .el-header .header-right > .language-item {
  width: 38px !important;
  min-width: 38px !important;
  padding: 0 !important;
}
html[theme="tungstencloud"] .el-header .header-right .language-item .el-dropdown,
html[theme="tungstencloud"] .el-header .header-right .language-item .el-dropdown-country {
  width: 34px !important;
  min-width: 34px !important;
  height: 24px !important;
  min-height: 24px !important;
}
html[theme="tungstencloud"] .el-header .header-right .language-item .el-dropdown-country,
html[theme="tungstencloud"] .el-header .header-right .language-item .el-dropdown-country:hover,
html[theme="tungstencloud"] .el-header .header-right .language-item .el-dropdown-country:focus {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}
html[theme="tungstencloud"] .el-header .header-right .language-item .el-dropdown-country > img {
  width: 32px !important;
  min-width: 32px !important;
  height: 21px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 2px !important;
  object-fit: contain !important;
  background: transparent !important;
  box-shadow: none !important;
}
html[theme="tungstencloud"] .el-header .header-right .language-item .tc-language-label,
html[theme="tungstencloud"] .el-header .header-right .language-item .right-icon {
  display: none !important;
}
