.att-main {
  max-width: var(--site-width);
  margin: auto;
  padding: 72px var(--page-gutter) 96px;
}
.att-hero {
  max-width: 760px;
  margin-bottom: 42px;
}
.att-hero h1 {
  margin: 0 0 18px;
  font-size: 30px;
}
.att-hero h1 em {
  color: var(--purple);
  font-style: normal;
}
.att-hero > p:not(.eyebrow) {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}
.att-workspace {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.35fr);
  min-height: 520px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e2ee;
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(28, 22, 51, 0.1);
}
.att-upload-panel,
.att-result-panel {
  padding: 30px;
}
.att-upload-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #faf9fe;
  border-right: 1px solid #ebe8f1;
}
.att-drop-zone {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 252px;
  padding: 24px 20px;
  text-align: center;
  background: #fff;
  border: 1.5px dashed #beb5d9;
  border-radius: 18px;
  cursor: pointer;
  transition: 0.2s ease;
}
.att-drop-zone-prompt {
  display: grid;
  place-items: center;
}
.att-drop-zone-prompt[hidden],
.att-file-card[hidden] {
  display: none;
}
.att-drop-zone:hover,
.att-drop-zone:focus-visible,
.att-drop-zone.dragging {
  background: #f5f1ff;
  border-color: var(--purple);
  outline: none;
  transform: translateY(-2px);
}
.att-drop-zone.has-file,
.att-drop-zone.has-file:hover {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 54px;
  align-content: center;
  gap: 10px;
  min-height: 252px;
  padding: 20px;
  text-align: left;
  background: #fbfaff;
  border-style: solid;
  border-color: #d8d1e9;
  cursor: default;
  transform: none;
}
.att-upload-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #fff;
  /* Match the cool violet-to-blue half of the Livit mark. */
  background: linear-gradient(135deg, #7650f8 0%, #5b4bf5 52%, #438bfc 100%);
  border-radius: 16px;
}
.att-upload-icon svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}
.att-drop-zone h2 {
  margin: 14px 0 5px;
  font-size: 18px;
}
.att-drop-zone p,
.att-drop-zone small {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.att-drop-zone .att-upload-message {
  position: absolute;
  right: 20px;
  bottom: 13px;
  left: 20px;
  margin: 0;
  padding: 0;
  color: #b9435d;
  font-size: 11px;
  text-align: center;
}
.att-file-card {
  grid-row: 1;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  width: 100%;
  padding: 18px;
  background: #fff;
  border: 1px solid #e7e3ef;
  border-radius: 14px;
}
.att-file-card:not([hidden]) {
  display: block;
}
.att-file-card-head,
.att-file-summary {
  display: flex;
  align-items: center;
}
.att-file-card-head {
  min-width: 0;
  justify-content: space-between;
  gap: 14px;
}
.att-file-summary {
  min-width: 0;
  flex: 1;
  gap: 11px;
}
.att-file-details {
  min-width: 0;
  flex: 1;
}
.att-file-icon {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--purple);
  background: #eeeafd;
  border-radius: 10px;
  font-size: 18px;
}
.att-file-card b,
.att-file-card small {
  display: block;
}
.att-file-card b {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  white-space: normal;
  word-break: break-all;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.att-file-card #fileMeta {
  margin-top: 2px;
}
.att-remove-file {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  padding: 0 !important;
  place-items: center;
  color: #6d667d !important;
  border-radius: 50% !important;
  font-size: 18px !important;
  line-height: 1;
  white-space: nowrap;
}
.att-remove-file:hover {
  color: #c03e5b !important;
  background: #fff4f6 !important;
  border-color: #efb7c4 !important;
}
.att-remove-file:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
.att-file-card small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}
.att-file-card button,
.att-result-actions button {
  padding: 7px 10px;
  color: #4f4961;
  background: #fff;
  border: 1px solid #ded9e8;
  border-radius: 9px;
  cursor: pointer;
  font-size: 11px;
}
.att-file-preview {
  display: block;
  width: 100%;
  height: 40px;
  margin-top: 18px;
}
.att-file-preview-hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}
.att-primary {
  width: 100%;
  margin-top: 12px;
  padding: 13px 18px;
  color: #fff;
  background: linear-gradient(100deg, #5b4bf5 0%, #438bfc 100%);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
.att-primary:not(:disabled):hover {
  background: linear-gradient(100deg, #4e3ee8 0%, #2f7ff4 100%);
}
.att-primary:disabled {
  cursor: not-allowed;
  filter: grayscale(0.5);
  opacity: 0.5;
}
.att-status {
  position: static;
  grid-row: 2;
  align-self: center;
  width: 100%;
  margin: 0;
  padding: 0;
  text-align: left;
}
.att-status:not([hidden]) {
  display: block;
}
.att-status-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.att-status-copy {
  min-width: 0;
  flex: 1;
}
.att-status b {
  font-size: 12px;
}
.att-status p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
}
.att-status-track {
  overflow: hidden;
  height: 4px;
  margin-top: 11px;
  background: rgb(91 75 245 / 10%);
  border-radius: 999px;
}
.att-status-track span {
  display: block;
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, #5b4bf5, #438bfc);
  border-radius: inherit;
  animation: att-progress 1.35s ease-in-out infinite;
}
.att-status[data-state="completed"] {
  color: #347256;
}
.att-status[data-state="completed"] .att-spinner {
  display: grid;
  place-items: center;
  color: #347256;
  background: #dcefe4;
  border: 0;
  animation: none;
}
.att-status[data-state="completed"] .att-spinner::before {
  content: "✓";
  font-size: 12px;
  font-weight: 800;
}
.att-status[data-state="completed"] .att-status-track,
.att-status[data-state="error"] .att-status-track {
  display: none;
}
.att-status[data-state="error"] {
  color: #b9435d;
}
.att-status[data-state="error"] .att-spinner {
  display: grid;
  place-items: center;
  color: #b9435d;
  background: #f8dde3;
  border: 0;
  animation: none;
}
.att-status[data-state="error"] .att-spinner::before {
  content: "!";
  font-size: 12px;
  font-weight: 800;
}
.att-spinner {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border: 2px solid #d5cdf2;
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: att-spin 0.8s linear infinite;
}
@keyframes att-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes att-progress {
  0% {
    transform: translateX(-110%);
  }
  55%,
  100% {
    transform: translateX(240%);
  }
}
.att-privacy-note {
  margin: 14px 0 0;
  color: #87828f;
  font-size: 11px;
  line-height: 1.7;
}
.att-member-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 28px #44346c0d;
}
.att-member-identity {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.att-member-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #7a5af0, #4f46e5);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}
.att-member-identity > span:last-child {
  overflow: hidden;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.att-member-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.att-points-chip {
  padding: 5px 10px;
  color: #575a68;
  background: #f1f2f5;
  border-radius: 99px;
  font-size: 11px;
}
.att-points-chip b {
  color: #6245ba;
}
.att-outline-link {
  padding: 6px 11px;
  color: #6245ba;
  background: #f1edfb;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 650;
  text-decoration: none;
}
.att-link-button {
  padding: 0;
  color: #87828f;
  background: transparent;
  border: 0;
  font-size: 11px;
  cursor: pointer;
}
.att-link-button:hover {
  color: #b43b51;
}
.att-billing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
  padding: 8px 12px;
  color: #575a68;
  background: #f8f7fb;
  border: 1px solid #eceaf3;
  border-radius: 10px;
  font-size: 11px;
}
.att-bill-item b,
.att-bill-consume {
  color: #6245ba;
}
.att-bill-meta {
  color: #87828f;
}
.att-toast {
  position: fixed;
  z-index: 1000;
  top: 50%;
  left: 50%;
  padding: 9px 15px;
  color: #fff;
  background: rgb(48 43 61 / 70%);
  border-radius: 10px;
  box-shadow: 0 10px 30px rgb(28 22 51 / 20%);
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(-50% - 8px));
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}
.att-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%);
}
.att-toast.is-error {
  background: rgb(185 67 93 / 70%);
}
.att-result-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.att-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.att-result-head span {
  font-size: 17px;
  font-weight: 700;
}
.att-result-actions {
  display: flex;
  gap: 7px;
}
.att-result-actions button:hover:not(:disabled) {
  color: #fff;
  background: var(--purple);
  border-color: var(--purple);
}
.att-result-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}
#resultText {
  width: 100%;
  min-height: 410px;
  flex: 1;
  resize: none;
  padding: 20px;
  color: #292537;
  background: #fbfbfd;
  border: 1px solid #e9e7ee;
  border-radius: 15px;
  outline: none;
  font:
    14px/1.9 "Microsoft YaHei",
    system-ui,
    sans-serif;
}
#resultText:focus {
  border-color: #aaa0c8;
}
.att-guide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 26px;
}
.att-guide div {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
}
.att-guide b {
  color: var(--purple);
  font-size: 11px;
}
.att-guide h2 {
  margin: 10px 0 5px;
  font-size: 15px;
}
.att-guide p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
@media (max-width: 820px) {
  .att-main {
    padding-top: 48px;
  }
  .att-workspace {
    grid-template-columns: 1fr;
  }
  .att-upload-panel {
    border-right: 0;
    border-bottom: 1px solid #ebe8f1;
  }
  .att-guide {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .att-main {
    padding-inline: 18px;
  }
  .att-upload-panel,
  .att-result-panel {
    padding: 20px;
  }
  .att-result-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
