.account-wrap,
.account-wrap *,
.account-body,
.share-sheet,
.share-sheet * {
  font-family: "等线 Light", "DengXian Light", DengXian, sans-serif !important;
  font-weight: 300 !important;
}

.account-body {
  min-height: 100vh;
  background:
    radial-gradient(900px 480px at 20% -10%, rgba(184, 220, 245, 0.4), transparent 55%),
    linear-gradient(180deg, #eef4f9 0%, #f7f5f2 45%, #f8fafc 100%);
}

.account-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 5.5rem 1.2rem 3rem;
}

.studio-wrap {
  max-width: 980px;
}

html.app-embed .account-wrap {
  padding: 0.75rem 0.75rem 1.5rem;
  max-width: none;
}

html.app-embed .account-wrap h1 {
  font-size: 1.35rem;
}

html.app-embed body,
html.app-embed .account-body {
  background: #f8f4f0;
}

/* App：只藏提示文案，保留登录/上传可用界面 */
html.app-embed .lead,
html.app-embed .hint,
html.app-embed .mine-hint {
  display: none !important;
}

html.app-embed .studio-head {
  margin-bottom: 0.5rem;
}

html.app-embed .studio-head h1 {
  font-size: 1.2rem;
  margin: 0;
}

.studio-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1rem;
}

.account-wrap h1 {
  font-size: 1.8rem;
  margin: 0 0 0.35rem;
}

.account-wrap .lead {
  color: var(--ink-soft);
  margin: 0;
}

.studio-user {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.85rem 0.35rem 0.35rem;
}

.studio-user .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #1e1e20;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1rem;
}

.studio-user strong {
  display: block;
  font-size: 0.95rem;
}

.account-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem 1.15rem 1.25rem;
  margin-bottom: 1rem;
}

.account-card.is-hidden,
.studio-grid.is-hidden,
.studio-user.is-hidden,
.share-mask.is-hidden {
  display: none !important;
}

.studio-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .studio-grid {
    grid-template-columns: 340px minmax(0, 1fr);
    align-items: start;
  }

  .studio-list-card {
    margin-bottom: 0;
  }
}

.tabs {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.tab {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font: inherit;
  cursor: pointer;
}

.tab.is-on {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.account-card label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.92rem;
}

.account-card select {
  width: 100%;
  border: 1px solid rgba(30, 40, 60, 0.12);
  background: #fff;
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font-size: 0.95rem;
  color: inherit;
}

.account-card input[type="text"],
.account-card input[type="password"],
.account-card input:not([type]) {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  font: inherit;
  box-sizing: border-box;
}

.account-card input[type="file"] {
  display: block;
  margin-top: 0.4rem;
  width: 100%;
}

.account-card .check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.account-card .btn,
.btn {
  width: 100%;
  margin-top: 0.3rem;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  background: #1e1e20;
  color: #fff;
  cursor: pointer;
  font: inherit;
}

.hint {
  margin: -0.2rem 0 0.8rem;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.upload-mode {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}

.mode-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #d5dde8;
  background: #fff;
  font-size: 0.9rem;
  cursor: pointer;
}

.mode-chip:has(input:checked) {
  border-color: #2a6f97;
  background: #eef7fc;
  color: #1f4f6d;
}

.mode-chip input {
  margin: 0;
}

#update-fields.is-hidden,
#create-fields.is-hidden,
#file-label.is-hidden,
#images-label.is-hidden,
.manage-assets.is-hidden,
.file-preview.is-hidden {
  display: none !important;
}

.link-fields {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}

.file-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 0.55rem;
  margin: 0.55rem 0 0.85rem;
}

.file-preview-item {
  position: relative;
  border: 1px solid #d5dde8;
  border-radius: 12px;
  background: #f7fafc;
  overflow: hidden;
  min-height: 96px;
}

.file-preview-item img {
  display: block;
  width: 100%;
  height: 96px;
  object-fit: cover;
  background: #e8eef5;
}

.file-preview-item .file-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #2a6f97;
  letter-spacing: 0.02em;
  background: linear-gradient(160deg, #eef7fc, #f5f7fa);
}

.file-preview-item .file-meta {
  display: block;
  padding: 0.3rem 0.4rem 0.45rem;
  font-size: 0.72rem;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-preview-item .file-remove {
  position: absolute;
  top: 0.3rem;
  right: 0.3rem;
  width: 1.4rem;
  height: 1.4rem;
  border: 0;
  border-radius: 999px;
  background: rgba(20, 30, 40, 0.72);
  color: #fff;
  font: inherit;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
}

.manage-assets {
  margin: 0.85rem 0 1rem;
  padding: 0.85rem;
  border: 1px solid #d5dde8;
  border-radius: 14px;
  background: #f8fafc;
}

.manage-assets h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.asset-block {
  margin-top: 0.75rem;
}

.asset-block strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
}

.asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 0.5rem;
}

.asset-thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #d5dde8;
  background: #fff;
}

.asset-thumb img {
  display: block;
  width: 100%;
  height: 88px;
  object-fit: cover;
}

.asset-thumb .asset-del {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  border: 0;
  border-radius: 999px;
  background: rgba(180, 40, 40, 0.88);
  color: #fff;
  font: inherit;
  font-size: 0.72rem;
  padding: 0.2rem 0.45rem;
  cursor: pointer;
}

.asset-parts {
  display: grid;
  gap: 0.4rem;
}

.asset-part {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  border: 1px solid #d5dde8;
  background: #fff;
  font-size: 0.86rem;
}

.asset-part span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-part .asset-del {
  flex: none;
  border: 1px solid #e3b4b4;
  background: #fff;
  color: #b42318;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}

.asset-empty {
  color: var(--ink-soft);
  font-size: 0.84rem;
  margin: 0.2rem 0 0;
}

.mine-card-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.mine-update {
  appearance: none;
  border: 1px solid #c9d5e3;
  background: #fff;
  color: #2a6f97;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
}

.mine-update:hover {
  border-color: #2a6f97;
  background: #eef7fc;
}

.mine-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.mine-pin {
  appearance: none;
  border: 1px solid #fdba74;
  background: #fff7ed;
  color: #c2410c;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font: inherit;
  font-size: 0.84rem;
  cursor: pointer;
}

.mine-pin.is-pinned,
.mine-pin:hover {
  background: #ea580c;
  border-color: #ea580c;
  color: #fff;
}

.mine-pin-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 600;
  vertical-align: middle;
}

.mine-card-wrap.is-pinned .mine-card {
  border-color: #fdba74;
}

.msg {
  min-height: 1.2em;
  color: #b45309;
  font-size: 0.88rem;
  margin: 0.55rem 0 0;
}

.msg.ok {
  color: #1b7a3d;
}

.upload-progress {
  margin-top: 0.85rem;
}

.upload-progress.is-hidden,
.toast-mask.is-hidden {
  display: none !important;
}

.upload-progress-track {
  height: 10px;
  border-radius: 999px;
  background: #e8ecf1;
  overflow: hidden;
}

.upload-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff8a50, #ff5722);
  transition: width 0.15s ease;
}

.upload-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.4rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.toast-mask {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: rgba(20, 22, 28, 0.45);
}

.toast-card {
  width: min(360px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 1.25rem 1.2rem 1.1rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  text-align: center;
}

.toast-card strong {
  display: block;
  font-size: 1.15rem;
  color: #1b7a3d;
  margin-bottom: 0.4rem;
}

.toast-card p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  word-break: break-all;
}

.toast-ok {
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1rem;
  background: #1e1e20;
  color: #fff;
  cursor: pointer;
  font: inherit;
}

.list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.list-head h2,
.account-card h2 {
  font-size: 1.15rem;
  margin: 0 0 0.6rem;
}

.list-head h2 {
  margin: 0;
}

.count {
  min-width: 1.6rem;
  height: 1.6rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: #ffeee8;
  color: #ff5722;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
}

.mine-grid {
  display: grid;
  gap: 0.75rem;
}

.mine-card {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.7rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mine-card:hover {
  border-color: rgba(255, 87, 34, 0.35);
  box-shadow: 0 8px 20px rgba(30, 40, 60, 0.06);
}

.mine-card img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 10px;
  background: #eef2f7;
}

.mine-card .meta strong {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.98rem;
}

.mine-card .meta span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.mine-hint {
  margin-top: 0.35rem !important;
  color: #ff5722 !important;
  font-size: 0.78rem !important;
}

.linkish {
  border: none;
  background: none;
  color: var(--accent-deep);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  padding: 0;
}

.share-mask {
  position: fixed;
  inset: 0;
  background: rgba(20, 22, 28, 0.45);
  display: grid;
  place-items: end center;
  z-index: 50;
  padding: 1rem;
}

.share-sheet {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 18px;
  padding: 1.1rem 1.15rem 1.2rem;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.share-sheet h3 {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
}

.share-sheet p {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.share-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.share-actions button,
.share-close {
  border: 1px solid var(--line);
  background: #f7f8fa;
  border-radius: 12px;
  padding: 0.7rem 0.6rem;
  cursor: pointer;
  font: inherit;
}

.share-close {
  width: 100%;
  margin-top: 0.65rem;
  background: #1e1e20;
  color: #fff;
  border-color: #1e1e20;
}

@media (min-width: 720px) {
  .share-mask {
    place-items: center;
  }
}
