:root {
    --sa-blue: #1459c7;
    --sa-blue-dark: #0a2f75;
    --sa-ink: #142033;
    --sa-muted: #66758a;
    --sa-line: #dce5ef;
    --sa-paper: #fff;
    --sa-soft: #f3f7fc;
    --sa-red: #bd2b31;
}

.mp-system-insert-btn--attachment {
    border-color: #b7c9f1 !important;
    color: #174ea6 !important;
    background: linear-gradient(180deg, #f8fbff, #edf4ff) !important;
}

body.sa-manager-open { overflow: hidden; }
.sa-manager-modal { position: fixed; inset: 0; z-index: 100300; display: none; font-family: "Microsoft YaHei", sans-serif; color: var(--sa-ink); }
.sa-manager-modal.open { display: block; }
.sa-manager-backdrop { position: absolute; inset: 0; background: rgba(8, 20, 40, .72); backdrop-filter: blur(8px); }
.sa-manager-panel { position: absolute; inset: 3vh 3vw; display: flex; max-width: 1480px; margin: auto; flex-direction: column; overflow: hidden; border: 1px solid rgba(255,255,255,.55); border-radius: 22px; background: #f5f8fc; box-shadow: 0 32px 90px rgba(4, 16, 35, .36); }
.sa-manager-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; color: #fff; background: radial-gradient(circle at 85% 20%, rgba(80,145,255,.42), transparent 30%), linear-gradient(120deg, #0a2d69, #125dcc 72%, #1f74ed); }
.sa-manager-head > div { min-width: 0; }
.sa-manager-head span, .sa-manager-head strong, .sa-manager-head small { display: block; }
.sa-manager-head span { margin-bottom: 3px; color: #a9cbff; font-size: 10px; font-weight: 900; letter-spacing: .18em; }
.sa-manager-head strong { font-size: 24px; line-height: 1.3; }
.sa-manager-head small { margin-top: 4px; color: #dceaff; font-size: 12px; line-height: 1.5; }
.sa-manager-head .secondary-btn { border-color: rgba(255,255,255,.45); color: #fff; background: rgba(255,255,255,.12); }
.sa-manager-toolbar { display: flex; align-items: stretch; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--sa-line); background: #fff; }
.sa-upload-drop { display: flex; min-width: 280px; flex: 1; align-items: center; gap: 12px; border: 1px dashed #91afe0; border-radius: 12px; padding: 8px 14px; cursor: pointer; background: #f5f9ff; }
.sa-upload-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.sa-upload-drop > span { display: grid; width: 38px; height: 38px; flex: 0 0 38px; place-items: center; border-radius: 10px; color: #fff; background: var(--sa-blue); font-size: 23px; }
.sa-upload-drop strong, .sa-upload-drop small { display: block; }
.sa-upload-drop strong { font-size: 14px; }
.sa-upload-drop small { margin-top: 2px; color: var(--sa-muted); font-size: 11px; }
.sa-upload-button { min-width: 128px; }
.sa-manager-status { padding: 9px 20px; color: #315681; background: #eaf3ff; font-size: 12px; }
.sa-manager-status.is-error { color: #a3222a; background: #fff0f0; }
.sa-manager-body { display: grid; min-height: 0; flex: 1; grid-template-columns: minmax(0, 1fr) 390px; overflow: hidden; }
.sa-library { min-width: 0; padding: 18px 20px 24px; overflow: auto; }
.sa-library-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.sa-library-title span strong, .sa-library-title span small { display: block; }
.sa-library-title span strong { font-size: 17px; }
.sa-library-title span small { margin-top: 3px; color: var(--sa-muted); font-size: 11px; }
.sa-library-title label { color: #486078; font-size: 12px; }
.sa-file-list { display: grid; gap: 9px; }
.sa-file-item { display: grid; grid-template-columns: 34px 54px minmax(0, 1fr) auto; align-items: center; gap: 11px; border: 1px solid var(--sa-line); border-radius: 13px; padding: 11px 12px; background: #fff; transition: border-color .18s, box-shadow .18s, transform .18s; }
.sa-file-item:hover { border-color: #9db9e5; box-shadow: 0 8px 22px rgba(26, 71, 128, .09); transform: translateY(-1px); }
.sa-file-check input { position: absolute; opacity: 0; }
.sa-file-check span { display: grid; width: 22px; height: 22px; place-items: center; border: 2px solid #b7c5d7; border-radius: 6px; cursor: pointer; }
.sa-file-check input:checked + span { border-color: var(--sa-blue); background: var(--sa-blue); }
.sa-file-check input:checked + span::after { content: "✓"; color: #fff; font-size: 14px; font-weight: 900; }
.sa-file-type { display: grid; width: 50px; height: 50px; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(145deg, #1f6be0, #0b387f); font-size: 11px; font-weight: 900; letter-spacing: .03em; }
.sa-file-copy { min-width: 0; }
.sa-file-copy strong, .sa-file-copy small { display: block; }
.sa-file-copy strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.sa-file-copy small { margin-top: 4px; color: var(--sa-muted); font-size: 10px; }
.sa-file-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.sa-file-actions button, .sa-file-actions a { border: 1px solid #ccd9e7; border-radius: 7px; padding: 5px 8px; color: #31506f; background: #fff; font: inherit; font-size: 11px; text-decoration: none; cursor: pointer; }
.sa-file-actions button:hover, .sa-file-actions a:hover { border-color: var(--sa-blue); color: var(--sa-blue); }
.sa-file-actions .sa-delete-button { border-color: #e8b9bc; color: #a1262d; background: #fff8f8; }
.sa-file-actions .sa-delete-button:hover { border-color: var(--sa-red); color: #fff; background: var(--sa-red); }
.sa-share-builder { min-width: 0; border-left: 1px solid var(--sa-line); padding: 20px; overflow: auto; background: #fff; }
.sa-share-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.sa-share-heading > span { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 12px; color: #fff; background: linear-gradient(145deg, #153f87, #2174ed); font-size: 12px; font-weight: 900; }
.sa-share-heading strong, .sa-share-heading small { display: block; }
.sa-share-heading strong { font-size: 16px; }
.sa-share-heading small { margin-top: 3px; color: var(--sa-muted); font-size: 10px; }
.sa-share-builder > label { display: grid; gap: 6px; margin-top: 11px; color: #40546b; font-size: 12px; font-weight: 700; }
  .sa-share-builder input[type="text"], .sa-share-builder input[type="url"], .sa-share-builder textarea { width: 100%; box-sizing: border-box; border: 1px solid #cad6e3; border-radius: 9px; padding: 10px 11px; color: var(--sa-ink); background: #fbfcfe; font: inherit; font-size: 13px; resize: vertical; }
  .sa-share-builder > label > small { color: var(--sa-muted); font-size: 10px; font-weight: 500; line-height: 1.55; }
.sa-create-share { width: 100%; margin-top: 14px; min-height: 44px; }
.sa-share-result { margin-top: 16px; }
.sa-result-empty, .sa-list-empty { display: grid; min-height: 160px; place-items: center; align-content: center; gap: 5px; border: 1px dashed #bfd0e4; border-radius: 13px; padding: 20px; color: var(--sa-muted); background: #f8fafc; text-align: center; }
.sa-result-empty span { font-size: 34px; color: #8eabd0; }
.sa-result-empty strong, .sa-list-empty strong { color: #31465e; font-size: 14px; }
.sa-result-empty small, .sa-list-empty small { max-width: 260px; font-size: 10px; line-height: 1.6; }
.sa-result-card { border: 1px solid #cbdbee; border-radius: 16px; padding: 16px; background: linear-gradient(180deg, #f9fcff, #eef5ff); text-align: center; }
.sa-result-qr { width: 164px; height: 164px; margin: 0 auto 11px; border: 8px solid #fff; border-radius: 14px; box-shadow: 0 8px 22px rgba(31, 79, 139, .15); background: #fff; }
.sa-result-qr img { display: block; width: 100%; height: 100%; }
.sa-result-card > strong, .sa-result-card > small { display: block; }
.sa-result-card > strong { font-size: 15px; overflow-wrap: anywhere; }
.sa-result-card > small { margin-top: 4px; color: var(--sa-muted); font-size: 10px; }
  .sa-result-url { margin-top: 10px; border: 1px solid #d3e0ef; border-radius: 8px; padding: 8px; color: #48617e; background: #fff; font-size: 9px; line-height: 1.5; overflow-wrap: anywhere; text-align: left; }
  .sa-result-original { margin-top: 7px; border-radius: 8px; padding: 8px; color: #48617e; background: #e8f2ff; font-size: 9px; line-height: 1.5; overflow-wrap: anywhere; text-align: left; }
.sa-result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 10px; }
.sa-result-actions .primary-btn, .sa-result-actions .secondary-btn { display: inline-flex; min-height: 37px; align-items: center; justify-content: center; box-sizing: border-box; font-size: 11px; text-decoration: none; }
.sa-ftp-panel { position: absolute; inset: 95px 5% 56px; z-index: 2; overflow: auto; border: 1px solid #cbd8e6; border-radius: 16px; padding: 18px; background: rgba(255,255,255,.98); box-shadow: 0 22px 60px rgba(9, 34, 67, .2); }
.sa-ftp-panel[hidden] { display: none; }
.sa-ftp-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sa-ftp-panel header strong, .sa-ftp-panel header small { display: block; }
.sa-ftp-panel header small { margin-top: 3px; color: var(--sa-muted); font-size: 11px; }
.sa-ftp-panel > div { display: grid; gap: 8px; margin-bottom: 14px; }
.sa-ftp-item { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 10px; border: 1px solid var(--sa-line); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.sa-ftp-item span strong, .sa-ftp-item span small { display: block; }
.sa-ftp-item span strong { overflow-wrap: anywhere; font-size: 13px; }
.sa-ftp-item span small { margin-top: 2px; color: var(--sa-muted); font-size: 10px; }
.sa-ftp-item em { color: var(--sa-blue); font-size: 11px; font-style: normal; font-weight: 800; }
.sa-manager-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--sa-line); padding: 10px 20px; color: var(--sa-muted); background: #fff; font-size: 11px; }
.sa-manager-footer strong { color: #126b59; }
.sa-manager-modal.is-busy .sa-manager-panel::after { content: "处理中…"; position: absolute; top: 17px; right: 105px; border-radius: 999px; padding: 6px 10px; color: #0a3f91; background: #fff; font-size: 11px; font-weight: 800; }

/* Public attachment page */
.standalone-attachment-page { padding-bottom: 82px; background: #eef3f8 !important; }
.standalone-attachment-page .site-shell { overflow: visible; }
.standalone-attachment-page .mobile-site-header,
.standalone-attachment-page .mm-shared-header { display: none !important; }
.attachment-portal { width: min(1440px, calc(100% - 32px)); margin: 24px auto 50px; color: var(--sa-ink); font-family: "Microsoft YaHei", "PingFang SC", sans-serif; }
.attachment-brandbar { position: sticky; top: 0; z-index: 1100; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid #dae4ef; border-radius: 18px 18px 0 0; padding: 12px 22px; background: rgba(255,255,255,.96); box-shadow: 0 10px 26px rgba(20, 45, 78, .09); backdrop-filter: blur(16px); }
.attachment-brand { display: flex; min-width: 0; align-items: center; gap: 12px; color: var(--sa-ink); text-decoration: none; }
.attachment-brand > img { width: auto; max-width: 170px; height: 46px; object-fit: contain; }
.attachment-brand > span:last-child { min-width: 0; }
.attachment-brand strong { display: block; }
.attachment-brand strong { overflow: hidden; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.attachment-brand-mark { display: grid; width: 56px; height: 44px; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(145deg, #103a7f, #1d6ddd); }
.attachment-brand-mark b, .attachment-brand-mark em { display: block; line-height: 1; }
.attachment-brand-mark b { font-size: 14px; }
.attachment-brand-mark em { font-size: 8px; font-style: normal; }
.attachment-home-link { flex: 0 0 auto; border: 1px solid #cbd8e6; border-radius: 999px; padding: 8px 14px; color: #35536f; background: #fff; font-size: 12px; font-weight: 800; text-decoration: none; }
.attachment-hero { position: relative; display: flex; min-height: 130px; box-sizing: border-box; align-items: center; justify-content: space-between; gap: 28px; overflow: hidden; padding: 21px 34px; color: #fff; background: radial-gradient(circle at 80% 15%, rgba(87,151,255,.52), transparent 28%), radial-gradient(circle at 18% 120%, rgba(44,116,238,.48), transparent 36%), linear-gradient(125deg, #071f4c, #0d438f 60%, #1869d8); }
.attachment-hero::after { content: ""; position: absolute; right: 28%; bottom: -80px; width: 240px; height: 240px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; box-shadow: 0 0 0 28px rgba(255,255,255,.04), 0 0 0 56px rgba(255,255,255,.025); }
.attachment-hero-copy { position: relative; z-index: 1; min-width: 0; max-width: 900px; }
.attachment-kicker { display: inline-flex; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 6px 12px; color: #d7e8ff; background: rgba(255,255,255,.09); font-size: 11px; font-weight: 900; letter-spacing: .14em; }
.attachment-hero h1 { display: -webkit-box; overflow: hidden; margin: 10px 0 0; font-size: clamp(25px, 3vw, 38px); line-height: 1.24; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.attachment-hero-seal { position: relative; z-index: 1; display: grid; width: 112px; height: 112px; flex: 0 0 112px; place-items: center; align-content: center; border: 1px solid rgba(255,255,255,.34); border-radius: 50%; box-shadow: inset 0 0 0 7px rgba(255,255,255,.06); background: rgba(0,20,57,.23); }
.attachment-hero-seal span, .attachment-hero-seal b, .attachment-hero-seal small { display: block; }
.attachment-hero-seal span, .attachment-hero-seal small { color: #bcd7ff; font-size: 8px; letter-spacing: .18em; }
.attachment-hero-seal b { margin: 4px 0; font-size: 28px; }
.attachment-single-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; border-radius: 0 0 20px 20px; padding: 20px; background: #e7edf4; box-shadow: 0 25px 60px rgba(13, 40, 76, .12); }
.attachment-main-preview, .attachment-file-card, .attachment-collection { border: 1px solid #d7e1ec; border-radius: 16px; background: #fff; }
.attachment-main-preview { min-width: 0; overflow: hidden; }
.attachment-section-head { display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 15px; border-bottom: 1px solid #e2e9f0; padding: 0 18px; background: #fbfcfe; }
.attachment-section-head span small, .attachment-section-head span strong { display: block; }
.attachment-section-head span small { margin-bottom: 2px; color: #7d91a8; font-size: 8px; font-weight: 900; letter-spacing: .16em; }
.attachment-section-head span strong { font-size: 16px; }
.attachment-section-head em { border-radius: 7px; padding: 5px 8px; color: #fff; background: var(--sa-blue); font-size: 10px; font-style: normal; font-weight: 900; }
.attachment-preview { position: relative; display: grid; min-height: 620px; place-items: center; overflow: hidden; background: #f0f3f6; }
.attachment-preview iframe { display: block; width: 100%; height: 74vh; min-height: 620px; border: 0; background: #fff; }
.attachment-preview img { display: block; max-width: 100%; max-height: 78vh; margin: auto; object-fit: contain; }
.attachment-preview video { width: 100%; max-height: 74vh; background: #07101c; }
.attachment-preview audio { width: min(680px, calc(100% - 36px)); margin: 22px auto; }
.attachment-preview--audio { align-content: center; gap: 15px; background: linear-gradient(145deg, #0c2d62, #1764cd); }
.attachment-audio-art { display: flex; height: 160px; align-items: center; gap: 7px; color: #fff; }
.attachment-audio-art span { margin-right: 12px; font-size: 70px; }
.attachment-audio-art i { display: block; width: 8px; border-radius: 999px; background: #a8ceff; animation: attachment-wave 1.2s ease-in-out infinite alternate; }
.attachment-audio-art i:nth-child(2) { height: 50px; }.attachment-audio-art i:nth-child(3) { height: 88px; animation-delay: -.3s; }.attachment-audio-art i:nth-child(4) { height: 120px; animation-delay: -.7s; }.attachment-audio-art i:nth-child(5) { height: 70px; animation-delay: -.1s; }.attachment-audio-art i:nth-child(6) { height: 38px; animation-delay: -.5s; }
@keyframes attachment-wave { to { transform: scaleY(.45); opacity: .65; } }
.attachment-preview-fallback { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 7px; border-radius: 999px; padding: 7px 11px; color: #54677d; background: rgba(255,255,255,.94); box-shadow: 0 5px 15px rgba(23, 47, 79, .12); font-size: 10px; }
.attachment-preview-fallback a { color: var(--sa-blue); font-weight: 800; text-decoration: none; }
.attachment-no-preview { max-width: 470px; padding: 40px 28px; text-align: center; }
.attachment-no-preview > span { display: grid; width: 96px; height: 112px; margin: 0 auto 20px; place-items: center; border-radius: 14px; color: #fff; background: linear-gradient(145deg, #2a73d8, #0b3477); box-shadow: 0 15px 35px rgba(20, 80, 160, .24); font-size: 18px; font-weight: 900; }
.attachment-no-preview strong { display: block; font-size: 18px; }
.attachment-no-preview p { color: var(--sa-muted); font-size: 13px; line-height: 1.8; }
.attachment-file-card { align-self: start; padding: 24px; }
.attachment-file-card > small { display: block; color: #8091a5; font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.attachment-file-card h2 { margin: 7px 0 0; font-size: 20px; line-height: 1.5; overflow-wrap: anywhere; }
.attachment-file-card dl { margin: 20px 0; border-top: 1px solid #e3e9ef; }
.attachment-file-card dl div { display: flex; justify-content: space-between; gap: 15px; border-bottom: 1px solid #e3e9ef; padding: 10px 0; font-size: 12px; }
.attachment-file-card dt { color: #77899d; }.attachment-file-card dd { margin: 0; font-weight: 800; text-align: right; }
.attachment-wechat-tip { margin-top: 14px; border-left: 4px solid #e4a11c; border-radius: 9px; padding: 10px 11px; color: #71530e; background: #fff8df; }
.attachment-wechat-tip[hidden] { display: none; }.attachment-wechat-tip b, .attachment-wechat-tip span { display: block; }.attachment-wechat-tip b { font-size: 11px; }.attachment-wechat-tip span { margin-top: 3px; font-size: 10px; line-height: 1.6; }
.attachment-collection { border-radius: 0 0 20px 20px; padding: 22px; background: #e8eef5; box-shadow: 0 25px 60px rgba(13, 40, 76, .12); }
.attachment-section-head--collection { border: 1px solid #d8e2ec; border-radius: 14px 14px 0 0; }
.attachment-section-head--collection em { color: #31516f; background: #e8f1fb; }
.attachment-collection-list { display: grid; gap: 10px; margin-top: 12px; }
.attachment-collection-item { overflow: hidden; border: 1px solid #d7e1ec; border-radius: 13px; background: #fff; }
.attachment-collection-item summary { display: grid; min-height: 72px; grid-template-columns: 42px 52px minmax(0, 1fr) 28px; align-items: center; gap: 11px; padding: 10px 15px; cursor: pointer; list-style: none; }
.attachment-collection-item summary::-webkit-details-marker { display: none; }
.attachment-index { color: #8a9aae; font-size: 12px; font-weight: 900; }
.attachment-file-format { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(145deg, #1b69d4, #0a3373); font-size: 10px; font-weight: 900; }
.attachment-summary-copy { min-width: 0; }.attachment-summary-copy strong, .attachment-summary-copy small { display: block; }.attachment-summary-copy strong { overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }.attachment-summary-copy small { margin-top: 4px; color: #73869b; font-size: 10px; }
.attachment-expand { font-size: 24px; color: #54708d; text-align: center; transition: transform .2s; }.attachment-collection-item[open] .attachment-expand { transform: rotate(45deg); }
.attachment-collection-content { border-top: 1px solid #e1e8ef; }
.attachment-collection-content .attachment-preview { min-height: 520px; }
.attachment-collection-content .attachment-preview iframe { height: 68vh; min-height: 520px; }
.attachment-collection-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; border-top: 1px solid #e1e8ef; padding: 12px 15px; }
.attachment-collection-actions a, .attachment-collection-actions button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; box-sizing: border-box; border: 1px solid #c8d5e3; border-radius: 9px; padding: 7px 13px; color: #36536f; background: #fff; font: inherit; font-size: 11px; font-weight: 800; text-decoration: none; cursor: pointer; }
.attachment-collection-actions .is-download { border-color: var(--sa-red); color: #fff; background: var(--sa-red); }
.attachment-wechat-tip--collection { max-width: 700px; margin: 14px auto 0; }
.attachment-mobile-actions { position: fixed; bottom: 14px; left: 50%; z-index: 1000; display: grid; width: min(620px, calc(100% - 32px)); grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); gap: 9px; box-sizing: border-box; border: 1px solid #d7e1ec; border-radius: 15px; padding: 8px; background: rgba(255,255,255,.97); box-shadow: 0 12px 34px rgba(15, 38, 68, .2); transform: translateX(-50%); backdrop-filter: blur(12px); }
.attachment-mobile-actions a { display: flex; min-width: 0; min-height: 48px; align-items: center; justify-content: center; border: 1px solid #c6d3e2; border-radius: 11px; padding: 0 12px; color: #34536f; background: #fff; font-size: 13px; font-weight: 900; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.attachment-mobile-actions .is-download { border-color: var(--sa-red); color: #fff; background: linear-gradient(115deg, #b7252c, #dc4249); }

@media (max-width: 980px) {
    .sa-manager-panel { inset: 1.5vh 1.5vw; }
    .sa-manager-body { grid-template-columns: 1fr 340px; }
    .sa-manager-toolbar { flex-wrap: wrap; }
    .sa-upload-drop { flex-basis: 100%; }
    .attachment-single-grid { grid-template-columns: 1fr; }
    .attachment-file-card { width: 100%; box-sizing: border-box; }
    .attachment-hero-seal { width: 96px; height: 96px; flex-basis: 96px; }
}

@media (max-width: 720px) {
    .sa-manager-panel { inset: 0; border-radius: 0; }
    .sa-manager-head { padding: 14px 15px; }
    .sa-manager-head strong { font-size: 20px; }
    .sa-manager-head small { max-width: 270px; }
    .sa-manager-toolbar { padding: 10px; }
    .sa-manager-toolbar > button { flex: 1; min-height: 42px; }
    .sa-upload-drop { min-width: 0; }
    .sa-manager-body { display: block; overflow: auto; }
    .sa-library { overflow: visible; padding: 14px 10px; }
    .sa-share-builder { border-top: 1px solid var(--sa-line); border-left: 0; padding: 16px 12px; }
    .sa-file-item { grid-template-columns: 30px 46px minmax(0, 1fr); }
    .sa-file-type { width: 44px; height: 44px; }
    .sa-file-actions { grid-column: 2 / -1; justify-content: flex-start; }
    .sa-file-copy small { line-height: 1.5; }
    .sa-manager-footer { display: none; }
    .sa-ftp-panel { inset: 68px 8px 8px; }
    .sa-manager-modal.is-busy .sa-manager-panel::after { top: 12px; right: 82px; }

    .standalone-attachment-page { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
    .attachment-portal { width: 100%; margin: 0 auto; }
    .attachment-brandbar { border-width: 0 0 1px; border-radius: 0; padding: 11px 14px; }
    .attachment-brand > img { max-width: 112px; height: 36px; }
    .attachment-brand strong { max-width: 210px; font-size: 13px; }
    .attachment-brand-mark { width: 48px; height: 38px; }
    .attachment-home-link { padding: 7px 10px; font-size: 10px; }
    .attachment-hero { min-height: 112px; padding: 13px 18px 15px; }
    .attachment-kicker { padding: 4px 9px; font-size: 10px; }
    .attachment-hero h1 { margin-top: 6px; font-size: 22px; line-height: 1.22; }
    .attachment-hero-seal { display: none; }
    .attachment-single-grid { gap: 10px; border-radius: 0; padding: 10px; }
    .attachment-main-preview, .attachment-file-card { border-radius: 12px; }
    .attachment-section-head { min-height: 58px; padding: 0 13px; }
    .attachment-preview { min-height: 55vh; }
    .attachment-preview iframe { height: 62vh; min-height: 55vh; }
    .attachment-preview img { max-height: 65vh; }
    .attachment-preview-fallback { right: 8px; bottom: 8px; }
    .attachment-file-card { padding: 18px; }
    .attachment-file-card h2 { font-size: 18px; }
    .attachment-mobile-actions { right: 0; bottom: 0; left: 0; width: auto; border-width: 1px 0 0; border-radius: 0; padding: 8px max(10px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); box-shadow: 0 -10px 28px rgba(15, 38, 68, .14); transform: none; }
    .attachment-collection { border-radius: 0; padding: 10px; }
    .attachment-collection-item summary { min-height: 64px; grid-template-columns: 28px 44px minmax(0,1fr) 22px; gap: 7px; padding: 8px 9px; }
    .attachment-file-format { width: 42px; height: 42px; font-size: 9px; }
    .attachment-summary-copy strong { font-size: 12px; }.attachment-summary-copy small { font-size: 9px; }
    .attachment-collection-content .attachment-preview { min-height: 50vh; }
    .attachment-collection-content .attachment-preview iframe { height: 60vh; min-height: 50vh; }
    .attachment-preview--office { height: 62vh; min-height: 55vh; }
    .attachment-preview--office iframe { position: absolute; top: 0; left: 0; width: 200%; max-width: none; height: 124vh; min-height: 110vh; transform: scale(.5); transform-origin: 0 0; }
    .attachment-collection-content .attachment-preview--office { height: 60vh; min-height: 50vh; }
    .attachment-collection-content .attachment-preview--office iframe { height: 120vh; min-height: 100vh; }
    .attachment-collection-actions { display: grid; grid-template-columns: 1fr 1fr; padding: 9px; }
    .attachment-collection-actions .is-download { grid-column: 1 / -1; min-height: 48px; }
}

@media (max-width: 390px) {
    .attachment-brand strong { max-width: 180px; font-size: 12px; }
    .attachment-home-link { padding: 6px 8px; font-size: 9px; }
    .attachment-hero { padding-right: 15px; padding-left: 15px; }
    .attachment-hero h1 { font-size: 21px; }
    .attachment-preview-fallback span { display: none; }
    .sa-result-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    .sa-file-item, .attachment-audio-art i { animation: none; transition: none; }
}
