/* Silver support surfaces: shared tokens, local layout, original components. */
/* Read failures use the existing semantic danger token, not Element's pale red text. */
html.mist-silver :is(.news,.file_download,.help-total) .el-alert--error.is-light {
  border: 1px solid var(--ui-danger);
  background: var(--ui-panel-muted);
  color: var(--ui-danger);
}
html.mist-silver :is(.news,.file_download,.help-total) .el-alert--error .el-alert__title {
  color: var(--ui-danger);
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
html.mist-silver .file_download .total {
  font-size: 13px;
}
html.mist-silver .member-subaccounts .addAccount-box .phone-box .el-form-item__content::before,
html.mist-silver .member-subaccounts .addAccount-box .phone-box .el-form-item__content::after {
  display: none;
}
html.mist-silver .member-subaccounts .addAccount-content > :is(.addAccount-header, .addAccount-box, .addAccount-footer) {
  box-sizing: border-box;
  max-width: 100%;
  color: var(--ui-text, #24292e);
}
html.mist-silver .member-subaccounts .addAccount-content .addAccount-header {
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-color: var(--ui-border, #dce2e3);
}
html.mist-silver .member-subaccounts .addAccount-header .back-icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin: 0;
}
html.mist-silver .member-subaccounts .addAccount-header h1 {
  font-family: inherit;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
}
html.mist-silver .member-subaccounts .addAccount-box {
  padding: 20px;
  border: 1px solid var(--ui-border, #dce2e3);
  border-radius: var(--ui-radius-card, 7px);
  background: var(--ui-panel, #f9fbfb);
}
html.mist-silver .member-subaccounts .addAccount-content .addAccount-box .title {
  margin: 0 0 16px;
  padding-left: 10px;
  border-color: var(--ui-brand, #30353b);
  font-family: inherit;
  font-size: 16px;
  line-height: 24px;
}
html.mist-silver .member-subaccounts .addAccount-box .demo-form-inline :is(.top, .edit) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 20px;
}
html.mist-silver .member-subaccounts .addAccount-box .el-form-item {
  display: block;
  min-width: 0;
  margin-right: 0;
}
html.mist-silver .member-subaccounts .addAccount-box .el-form-item__label {
  float: none;
  display: block;
  color: var(--ui-text-muted, #667177);
  font-size: 14px;
  line-height: 30px;
}
html.mist-silver .member-subaccounts .addAccount-box .el-form-item__content {
  display: block;
  min-width: 0;
  line-height: 1.6;
}
html.mist-silver .member-subaccounts .addAccount-box :is(.el-input, .el-select) {
  max-width: 100%;
}
html.mist-silver .member-subaccounts .addAccount-box .phone-box .el-form-item__content {
  display: grid;
  grid-template-columns: minmax(90px, 0.8fr) minmax(0, 1.2fr);
  gap: 8px;
}
html.mist-silver .member-subaccounts .addAccount-box .phone-box .el-select {
  width: 100% !important; /* The original template sets an inline rem width. */
}
html.mist-silver .member-subaccounts .addAccount-content .addAccount-box .tree-box {
  gap: 16px;
}
html.mist-silver .member-subaccounts .addAccount-content .addAccount-box .tree-box .tree {
  min-width: 0;
  border-color: var(--ui-border, #dce2e3);
  border-radius: var(--ui-radius-control, 5px);
}
html.mist-silver .member-subaccounts .addAccount-box .el-tree {
  background: transparent;
  color: var(--ui-text, #24292e);
}
html.mist-silver .member-subaccounts .addAccount-content .addAccount-footer {
  gap: 10px;
  margin-top: 20px;
}
html.mist-silver .member-subaccounts .addAccount-content .addAccount-footer :is(.footer-btn1, .footer-btn2) {
  width: auto;
  min-width: 90px;
  height: 40px;
  margin: 0;
  padding: 0 18px;
  border-radius: var(--ui-radius-control, 5px);
  font-size: 14px;
}
html.mist-silver .member-subaccounts .addAccount-footer .footer-btn1 {
  background: var(--ui-brand, #30353b);
  color: var(--ui-on-brand, #fff);
}
html.mist-silver .member-subaccounts .addAccount-footer .footer-btn2 {
  background: var(--ui-panel-muted, #f2f5f5);
  color: var(--ui-text, #24292e);
}
html.mist-silver .ticket-details :is(.quoted-message, .quote-reply-wrapper) {
  max-width: 100%;
  box-sizing: border-box;
  border-color: var(--ui-border, #dce2e3);
  background: var(--ui-panel-muted, #f2f5f5);
  overflow-wrap: anywhere;
}
html.mist-silver .ticket-details :is(.quoted-content, .quote-text, .reply-item-attachment) {
  overflow-wrap: anywhere;
}
html.mist-silver .ticket-details :is(.quoted-header, .quote-title, .quote-user-name, .quote-time, .quoted-attachment-item, .quote-attachment-item) {
  font-size: 12px;
  line-height: 20px;
}
html.mist-silver .ticket-details :is(.quoted-content, .quote-text) {
  max-height: 100px;
  color: var(--ui-text, #24292e);
  font-size: 14px;
  line-height: 1.6;
}
html.mist-silver .ticket-details .quote-reply-header {
  padding: 10px 12px;
  border-color: var(--ui-border, #dce2e3);
  background: var(--ui-panel-muted, #f2f5f5);
}
html.mist-silver .ticket-details .quote-reply-content-wrapper {
  padding: 12px;
}
html.mist-silver .ticket-details .quoted-message:hover {
  background: var(--ui-panel-muted, #f2f5f5);
}
html.mist-silver .ticket-details .del-dialog .el-dialog {
  max-width: calc(100vw - 32px);
  border-radius: var(--ui-radius-card, 7px);
}
html.mist-silver .ticket-details .del-dialog .dialog-title {
  font-size: 20px;
  line-height: 1.4;
}
html.mist-silver .ticket-details .del-dialog .dialog-main {
  font-size: 14px;
  line-height: 1.7;
}
html.mist-silver .ticket-details .del-dialog .dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
html.mist-silver .ticket-details .del-dialog .dialog-footer :is(.btn-ok, .btn-no) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  height: 40px;
  margin: 0;
  border-radius: var(--ui-radius-control, 5px);
  font-size: 14px;
}
html.mist-silver .news_detail .new-box .content :is(img, video, iframe) {
  max-width: 100%;
}
html.mist-silver .news_detail .new-box .content :is(img, video) {
  height: auto;
}
html.mist-silver .news_detail .new-box .content :is(pre, table) {
  display: block;
  max-width: 100%;
  overflow-x: auto;
}
html.mist-silver .help-total :is(.right-time, .right-keywords, .right-attachment, .page) {
  font-size: 13px;
  line-height: 1.6;
}
html.mist-silver .help-total .right-attachment-item {
  max-width: 100%;
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  html.mist-silver .member-subaccounts .addAccount-box {
    padding: 16px;
  }
  html.mist-silver .member-subaccounts .addAccount-box .demo-form-inline :is(.top, .edit) {
    grid-template-columns: minmax(0, 1fr);
  }
  html.mist-silver .member-subaccounts .addAccount-content .addAccount-box .tree-box {
    flex-direction: column;
  }
  html.mist-silver .member-subaccounts .addAccount-content .addAccount-box .tree-box .tree {
    width: 100%;
    overflow-x: auto;
  }
  html.mist-silver .member-subaccounts .addAccount-box .bom .el-select {
    width: 100% !important; /* Stack the original inline selectors on phones. */
    margin: 0 0 8px;
  }
  html.mist-silver .member-subaccounts .addAccount-box .el-input__inner,
html.mist-silver :is(.news, .file_download, .help, .help-total) .main-card .search-input .el-input__inner {
    min-height: 44px;
    height: 44px;
    font-size: 16px;
  }
  html.mist-silver .member-subaccounts .addAccount-box :is(.el-checkbox__label, .el-tree-node__label) {
    font-size: 14px;
  }
  html.mist-silver .member-subaccounts .addAccount-box .el-checkbox {
    min-height: 36px;
    margin-right: 18px;
  }
  html.mist-silver .member-subaccounts .addAccount-box .el-tree-node__content {
    min-height: 36px;
  }
  html.mist-silver .member-subaccounts .addAccount-box .el-form-item__content {
    overflow: visible;
  }
  html.mist-silver .ticket-details .del-dialog .el-dialog {
    width: calc(100vw - 28px) !important;
    margin-top: 8vh !important;
  }
  html.mist-silver .ticket-details .del-dialog .el-dialog__body {
    padding: 16px;
    max-height: 72vh;
    overflow-y: auto;
  }
  html.mist-silver .ticket-details :is(.quoted-header, .quote-user-info) {
    flex-wrap: wrap;
    gap: 6px;
  }
  html.mist-silver .ticket-details :is(.quoted-goto, .quote-close-icon) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  html.mist-silver .ticket-details .quoted-message {
    padding: 12px 48px 12px 12px;
  }
  html.mist-silver .ticket-details .main-card .card .talk-main .main-old-msg .reply-item .reply-item-attachment .reply-item-attachment-item span {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  html.mist-silver .file_download :is(.file_folder .item, .total) {
    font-size: 14px;
    line-height: 22px;
  }
}
