/* Amaranth · profile and feed design inspired by the local RESA Photography UI. */
:root {
  --ink: #262626;
  --muted: #737373;
  --accent: #087bbf;
  --accent-hover: #0868a0;
  --blue: #0095f6;
  --dark: #262626;
  --line: #dbdbdb;
  --soft: #f5f5f5;
  --green: #28734e;
  --story: linear-gradient(35deg, #f5ba54, #ec664c 32%, #d22a76 66%, #9752c8);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 80px; }
body { margin: 0; color: var(--ink); background: #fafafa; font: 14px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button, a, input, label { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.3; }
h1 { font-size: 25px; font-weight: 650; letter-spacing: -.7px; margin-bottom: 9px; }
h2 { font-size: 20px; font-weight: 650; margin-bottom: 12px; letter-spacing: -.4px; }
h3 { font-size: 14px; font-weight: 600; }
.icon { width: 24px; height: 24px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-definitions { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: fixed; left: 20px; top: -70px; padding: 12px 20px; background: white; z-index: 50; border: 1px solid var(--accent); }
.skip-link:focus { top: 15px; }
.shell { min-height: 100dvh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 238px; display: flex; flex-direction: column; padding: 38px 20px 24px; background: #fff; border-right: 1px solid var(--line); z-index: 10; }
.brand { display: flex; align-items: center; gap: 10px; margin: 0 10px 48px; color: var(--ink); }
.brand:hover, .mobile-brand:hover { text-decoration: none; opacity: .75; }
.brand img { width: 33px; height: 33px; border-radius: 10px; }
.brand>span, .mobile-brand { font-family: Georgia, serif; font-size: 29px; font-style: italic; font-weight: 600; letter-spacing: -1.3px; line-height: 1; }
.brand small { display: block; margin: 8px 0 0 2px; font: 9px/1 var(--font); letter-spacing: 2px; color: var(--muted); text-transform: uppercase; }
.nav-label { font-size: 9px; font-weight: 600; letter-spacing: 1.4px; color: var(--muted); margin: 0 12px 20px; }
.sidebar nav { display: grid; gap: 10px; }
.sidebar nav a { display: flex; align-items: center; gap: 15px; padding: 14px 12px; color: var(--ink); border-radius: 9px; font-size: 15px; transition: background .15s; }
.sidebar nav a:hover { background: #f5f5f5; text-decoration: none; }
.sidebar nav a.active { background: #f5f5f5; font-weight: 700; }
.sidebar nav a.active .icon { stroke-width: 2.4; }
.sidebar-bottom { margin-top: auto; padding: 34px 10px 0; }
.sidebar-account { border: 0; background: none; display: flex; align-items: center; gap: 12px; text-align: left; color: var(--ink); padding: 0 0 24px; width: 100%; font-weight: 600; }
.account-avatar { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid var(--line); background: #fafafa; border-radius: 50%; flex-shrink: 0; }
.account-avatar .icon { width: 20px; height: 20px; }
.sidebar-account small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; margin-top: 3px; }
.network-pill { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 11px; padding-top: 22px; border-top: 1px solid var(--line); }
.network-pill i, .test-label i { height: 5px; width: 5px; background: #46906c; border-radius: 50%; }
.network-pill span { color: var(--muted); font-size: 10px; }
.sidebar-bottom p { font-size: 11px; color: var(--muted); line-height: 1.8; margin-top: 16px; }
.sidebar-foot { display: block; font-size: 9px; letter-spacing: 1.2px; color: #919191; margin-top: 23px; }
.workspace { margin-left: 238px; min-width: 0; }
.topbar { height: 68px; border-bottom: 1px solid #e9e9e9; background: #fff; display: flex; justify-content: space-between; align-items: center; padding: 0 40px; }
.topbar>span { color: var(--muted); font-size: 12px; }
.mobile-brand { display: none; color: var(--ink); }
.account { display: flex; align-items: center; gap: 19px; }
.access-user { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; font-weight: 600; color: var(--ink); padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; }
.access-user[hidden] { display: none; }
.test-label { display: flex; align-items: center; gap: 6px; font-size: 9px; letter-spacing: 1.3px; color: var(--muted); }
.page-container { width: min(100%, 1030px); padding: 0 40px; margin: auto; }
.profile { display: grid; grid-template-columns: 168px 1fr; align-items: center; gap: 42px; padding: 40px 26px 30px; }
.profile-avatar { width: 142px; height: 142px; background: var(--story); padding: 4px; border-radius: 50%; transition: transform .2s; }
.profile-avatar:hover { transform: rotate(-3deg); }
.profile-avatar>span { height: 100%; width: 100%; display: grid; place-items: center; border: 5px solid #fafafa; background: #faedf2; border-radius: 50%; }
.profile-avatar img { width: 74px; height: 74px; border-radius: 21px; }
.profile-info { min-width: 0; }
.profile-name { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.username { font-size: 25px; font-weight: 400; letter-spacing: -.7px; }
.profile-category { padding: 5px 12px; border-radius: 6px; background: #eee; font-size: 11px; font-weight: 600; }
.profile-facts { display: flex; flex-wrap: wrap; gap: 11px 28px; margin-bottom: 17px; font-size: 13px; }
.profile-facts strong { font-weight: 650; margin-right: 4px; }
.profile-bio { font-size: 13px; line-height: 1.65; }
.profile-bio>strong { font-weight: 650; }
.profile-bio p { margin: 3px 0 7px; }
.profile-credit { color: #385a76; font-size: 11px; }
.highlights { display: flex; align-items: flex-start; gap: 32px; padding: 3px 26px 28px; }
.highlight { display: flex; flex-direction: column; align-items: center; gap: 9px; width: 78px; padding: 0; border: 0; background: none; font-size: 11px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.highlight:hover { text-decoration: none; }
.highlight-ring { display: grid; place-items: center; height: 70px; width: 70px; padding: 3px; border: 1px solid #d9d9d9; border-radius: 50%; transition: transform .18s; }
.highlight:hover .highlight-ring { transform: translateY(-3px); }
.highlight-ring>span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: #f1f1f1; }
.highlight-ring.new { border-style: dashed; border-color: #aaa; }
.highlight-ring.new .icon { width: 27px; height: 27px; }
.highlight-ring.rose>span { background: #f7e8ed; color: #ad526e; }
.highlight-ring.blue>span { background: #e5f1f8; color: #407a9b; }
.highlight-ring.lavender>span { background: #eee9f6; color: #7c659b; }
.profile-tabs { display: flex; align-items: stretch; justify-content: center; gap: 46px; border-top: 1px solid var(--line); }
.profile-tabs a { display: flex; align-items: center; justify-content: center; gap: 8px; position: relative; padding: 19px 0 17px; font-size: 11px; letter-spacing: .65px; font-weight: 600; color: var(--muted); }
.profile-tabs .icon { width: 15px; height: 15px; }
.profile-tabs a:hover { color: var(--ink); text-decoration: none; }
.profile-tabs a.active { color: var(--ink); }
.profile-tabs a.active:before { content: ''; position: absolute; top: -1px; height: 1px; background: var(--ink); left: 0; right: 0; }
main { outline: none; padding: 22px 0 44px; min-height: 300px; }
.page-heading { margin-bottom: 25px; }
.eyebrow { font-size: 9px; letter-spacing: 1.45px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.lead { font-size: 13px; color: var(--muted); line-height: 1.75; max-width: 630px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 7px; background: var(--accent); color: #fff; padding: 11px 18px; font-size: 13px; font-weight: 600; line-height: 1.5; text-align: center; min-height: 42px; transition: background .15s; }
.button:hover { background: var(--accent-hover); text-decoration: none; }
.button.secondary { background: #efefef; color: var(--ink); border-color: transparent; }
.button.secondary:hover { background: #e4e4e4; }
.button.small { padding: 8px 13px; font-size: 11px; min-height: 36px; }
.button.wide { width: 100%; }
.button.danger { color: #b22d49; background: #fff; border-color: #e8c6cf; }
.button .icon { width: 16px; height: 16px; }
.text-button { background: transparent; border: 0; color: var(--accent); padding: 8px 0; }
.steps { display: flex; align-items: center; gap: 12px; font-size: 11px; color: var(--muted); margin: 0 0 24px; }
.step { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.step i { display: grid; place-items: center; height: 24px; width: 24px; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 10px; font-style: normal; }
.step.current { color: var(--ink); font-weight: 600; }
.step.current i { border-color: var(--ink); background: var(--ink); color: #fff; }
.step-line { height: 1px; width: 27px; background: var(--line); }
.columns { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(250px,1fr); align-items: start; gap: 28px; }
.card { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 24px; }
.card-title { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.card-title h2 { font-size: 17px; margin: 0; }
.number-tag { font-size: 10px; color: var(--muted); }
.post-header { display: flex; gap: 10px; align-items: center; padding: 14px 20px; border-bottom: 1px solid #ececec; }
.post-avatar { width: 34px; height: 34px; padding: 2px; border-radius: 50%; background: var(--story); flex-shrink: 0; }
.post-avatar img { height: 100%; width: 100%; border: 2px solid white; border-radius: 50%; }
.post-identity { display: flex; flex-direction: column; flex: 1; font-size: 12px; line-height: 1.5; }
.post-identity small { font-size: 10px; color: var(--muted); }
.post-header>.icon { width: 16px; height: 16px; color: var(--muted); }
.upload-card { padding: 0; overflow: hidden; }
.upload-card form { padding: 21px; }
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed #c9c9c9; background: #fafafa; border-radius: 6px; padding: 32px 18px; min-height: 204px; text-align: center; cursor: pointer; transition: background .15s; }
.dropzone:hover, .dropzone.dragging { background: #f0f7fc; border-color: var(--blue); }
.dropzone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone:focus-within { outline: 3px solid var(--blue); outline-offset: 3px; }
.upload-art { position: relative; width: 69px; height: 65px; display: grid; place-items: center; color: #333; margin-bottom: 12px; }
.upload-art:before { content: ''; position: absolute; width: 41px; height: 48px; border: 1.5px solid #333; border-radius: 6px; background: #fafafa; transform: rotate(-14deg); left: 7px; top: 7px; }
.upload-art>.icon { position: relative; width: 44px; height: 55px; stroke-width: 1.1; fill: #fafafa; transform: rotate(8deg); }
.dropzone strong { display: block; font-size: 15px; font-weight: 500; overflow-wrap: anywhere; max-width: 100%; }
.dropzone .browse { color: var(--accent); font-weight: 600; font-size: 12px; margin: 7px 0 10px; }
.fine { font-size: 11px; line-height: 1.7; color: var(--muted); }
.field { display: block; margin-top: 20px; }
.field>span { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 600; }
.field input, .field textarea, .field select, .search-input { width: 100%; min-width: 0; background: #fafafa; border: 1px solid var(--line); border-radius: 5px; padding: 11px 12px; color: var(--ink); font-size: 13px; }
.field input::placeholder, .search-input::placeholder { color: #858585; }
.field+.fine { margin-top: 7px; }
.attribute-rows { display: grid; gap: 8px; }
.attribute-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) 36px; gap: 8px; }
.attribute-row input { width: 100%; min-width: 0; background: #fafafa; border: 1px solid var(--line); border-radius: 5px; padding: 11px 12px; color: var(--ink); font-size: 13px; }
.attr-remove { border: 1px solid var(--line); background: #fff; border-radius: 5px; font-size: 18px; line-height: 1; color: var(--ink); cursor: pointer; }
#add-attribute { margin-top: 10px; }
.link-rows { display: grid; gap: 10px; }
.link-rows:empty { display: none; }
.link-fields { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) 36px; gap: 8px; }
.link-fields select, .link-fields input { width: 100%; min-width: 0; background: #fafafa; border: 1px solid var(--line); border-radius: 5px; padding: 11px 12px; color: var(--ink); font-size: 13px; }
.link-target { display: block; margin-top: 5px; overflow-wrap: anywhere; }
.link-target.error-text { color: #a12f3d; }
#add-link { margin-top: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 11px; line-height: 1.75; margin: 21px 0; }
.check input { accent-color: var(--accent); width: 15px; height: 15px; flex-shrink: 0; margin: 3px 0 0; }
.check a { text-decoration: underline; }
#upload-help { text-align: center; margin-top: 12px; font-size: 10px; }
.preview-post { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin-bottom: 24px; }
.preview-post .post-header { padding: 12px 14px; }
.preview { background: #eee9e7; padding: 29px 22px; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; }
.mini-certificate { position: relative; width: 100%; max-width: 250px; min-height: 236px; padding: 26px 24px; background: #fffdfb; border: 1px solid #e0d5d4; box-shadow: 9px 14px 23px #4d343514; transform: rotate(-7deg); }
.mini-brand { color: #74394b; font: italic 25px/1 Georgia,serif; letter-spacing: -.6px; }
.mini-rule { height: 1px; background: #e8dce0; margin: 19px 0; }
.mini-kicker { font-size: 6px; color: #8e6c79; letter-spacing: 1.3px; }
.mini-title { font: 20px/1.25 Georgia,serif; margin: 12px 0 18px; }
.mini-line { width: 72%; height: 3px; background: #eee4e7; margin: 6px 0; }
.mini-line.short { width: 46%; }
.mini-stamp { position: absolute; right: 22px; bottom: 30px; display: grid; place-items: center; width: 35px; height: 35px; background: #b95173; color: #fff; border: 4px double #e9b0c1; border-radius: 50%; font-size: 16px; }
.mini-footer { font-size: 5px; color: #8e6c79; letter-spacing: .5px; margin-top: 24px; }
.preview-caption { padding: 14px 16px; font-size: 11px; line-height: 1.75; }
.preview-caption p { margin-top: 3px; color: var(--muted); }
.preview-caption>span { display: inline-block; font-size: 9px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 8px; }
.benefits { padding: 0 2px; }
.benefit { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 20px; }
.benefit-icon { display: grid; place-items: center; flex-shrink: 0; width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; background: #fff; }
.benefit-icon .icon { width: 16px; height: 16px; }
.benefit h3 { font-size: 12px; margin: 0 0 4px; }
.benefit p { font-size: 11px; color: var(--muted); line-height: 1.7; }
.scope-note { border-top: 1px solid var(--line); padding-top: 17px; color: var(--muted); font-size: 10px; line-height: 1.8; }
.scope-note strong { color: var(--ink); }
.inline-note { background: var(--soft); padding: 13px 15px; border-radius: 6px; font-size: 11px; color: var(--muted); margin-bottom: 18px; }
.message { padding: 15px; background: #eef5fa; border: 1px solid #d7e8f2; color: #355c74; border-radius: 6px; font-size: 12px; margin: 18px 0; overflow-wrap: anywhere; }
.message.success { background: #edf5f0; border-color: #d2e6db; color: var(--green); }
.message.error { background: #fff1f1; border-color: #f1d5d9; color: #a12f3d; }
.documents { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 24px; }
.doc-row { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: #fff; }
.doc-cover { padding: 25px; display: grid; place-items: center; aspect-ratio: 1; background: #eee9e7; color: var(--ink); overflow: hidden; }
.doc-row:nth-child(3n+2) .doc-cover { background: #e8edf2; }
.doc-row:nth-child(3n) .doc-cover { background: #ede8f1; }
.doc-cover:hover { text-decoration: none; }
.doc-sheet { display: flex; flex-direction: column; gap: 15px; width: 100%; min-height: 170px; background: #fffdfb; border: 1px solid #ded5d2; box-shadow: 5px 8px 12px #3333330c; padding: 21px 17px; transform: rotate(-5deg); transition: transform .2s; }
.doc-cover:hover .doc-sheet { transform: rotate(0); }
.doc-sheet small { font-size: 8px; text-transform: uppercase; letter-spacing: 1.4px; color: #855d6b; }
.doc-sheet strong { font-size: 14px; font-weight: 500; line-height: 1.45; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.doc-sheet .icon { width: 24px; height: 24px; margin-top: auto; color: #ad6e82; }
.doc-info { padding: 16px 15px 12px; min-width: 0; }
.doc-info h3 { font-size: 13px; margin: 0 0 6px; overflow-wrap: anywhere; }
.doc-info p { font-size: 10px; color: var(--muted); }
.doc-card-footer { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 9px; padding: 0 15px 16px; margin-top: auto; }
.doc-card-footer>a { font-size: 11px; font-weight: 600; padding: 3px 0; }
.file-icon { width: 48px; height: 55px; display: grid; place-items: center; margin: 0 auto 19px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-size: 12px; background: #fff; }
.badge { display: inline-block; font-size: 9px; padding: 4px 8px; border-radius: 4px; background: #eaf1f7; color: #3e6884; }
.badge.green { background: #e7f2eb; color: #386d50; }
.badge.gray { background: #eee; color: var(--muted); }
.badge.red { background: #fce5e9; color: #a22543; }
.detail { margin-top: 26px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 21px; margin: 25px 0; }
.detail-grid>div { min-width: 0; }
.data-label { font-size: 9px; letter-spacing: 1px; color: var(--muted); text-transform: uppercase; margin-bottom: 6px; }
.data-value { font-size: 12px; overflow-wrap: anywhere; }
.blockchain-panel { margin: 26px 0; padding: 20px; border: 1px solid #eadce1; border-radius: 12px; background: #fcf8fa; }
.blockchain-panel h3 { margin: 0; font-size: 16px; }
.blockchain-panel>.fine { margin: 8px 0 16px; }
.blockchain-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.blockchain-link { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 16px; border: 1px solid #e6d5dd; border-radius: 9px; background: #fff; text-decoration: none; }
.blockchain-link:hover, .blockchain-link:focus-visible { border-color: #c62b52; background: #fff8fb; }
.blockchain-link strong { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.blockchain-link code { font-size: 10px; line-height: 1.7; overflow-wrap: anywhere; color: #57434e; }
.blockchain-link>span { margin-top: auto; font-size: 11px; }
.mono { font: 11px/1.8 ui-monospace,monospace; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.actions>.fine { margin-left: auto; }
.empty { padding: 50px 24px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 8px; margin-top: 24px; }
.empty p { color: var(--muted); margin: 13px auto 24px; max-width: 420px; font-size: 13px; }
.verify-form { display: flex; gap: 12px; margin-top: 20px; }
.verify-form input { flex: 1; min-width: 0; }
.verify-status { display: flex; gap: 14px; align-items: center; margin-bottom: 24px; }
.status-icon { display: grid; place-items: center; flex-shrink: 0; width: 50px; height: 50px; font-size: 26px; border-radius: 50%; background: #e8f2ed; color: var(--green); }
.verify-status h2 { margin: 0 0 4px; }
.verify-status p { font-size: 11px; color: var(--muted); overflow-wrap: anywhere; }
.hash-check { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 24px; }
.hash-check .dropzone { margin: 18px 0; min-height: 180px; }
.events { padding-left: 18px; color: var(--muted); font-size: 11px; }
.events li { padding-bottom: 8px; overflow-wrap: anywhere; }
.divider { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.review-item { margin-top: 20px; }
.review-item textarea { min-height: 100px; }
footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); padding: 23px 0 30px; color: var(--muted); font-size: 9px; }
#toast { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 30px); background: #262626; color: #fff; padding: 13px 22px; border-radius: 8px; z-index: 30; font-size: 13px; }
dialog { width: min(440px,calc(100% - 32px)); max-height: calc(100dvh - 40px); overflow: auto; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 32px; box-shadow: 0 20px 100px #0003; }
dialog::backdrop { background: #0008; }
.dialog-close { position: absolute; top: 14px; right: 14px; border: 0; background: none; font-size: 28px; color: var(--muted); width: 36px; height: 36px; }
.dialog-avatar { display: grid; place-items: center; width: 61px; height: 61px; border: 1px solid var(--line); border-radius: 50%; margin: 0 0 23px; }
.dialog-avatar .icon { width: 28px; height: 28px; }
dialog p { font-size: 12px; color: var(--muted); line-height: 1.75; }
dialog .eyebrow { font-size: 9px; margin-bottom: 8px; }
#wallet-options { margin: 24px 0 17px; }
.wallet-option { width: 100%; margin-bottom: 10px; gap: 10px; }
.wallet-icon { width: 20px; height: 20px; border-radius: 5px; flex: none; }
.loader { display: inline-block; width: 13px; height: 13px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin 1s linear infinite; vertical-align: middle; }
.loading-state { color: var(--muted); padding: 30px 0; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (min-width:1500px) {
  .page-container { max-width: 1080px; }
  .profile { padding-top: 46px; padding-bottom: 35px; }
}
@media (max-width:1200px) {
  .sidebar { width: 202px; padding-inline: 14px; }
  .brand { gap: 8px; margin-left: 6px; }
  .brand>span { font-size: 26px; }
  .brand img { width: 28px; height: 28px; }
  .sidebar nav a { font-size: 13px; gap: 12px; }
  .nav-label { font-size: 8px; letter-spacing: 1px; }
  .workspace { margin-left: 202px; }
  .page-container { padding-inline: 30px; }
  .topbar { padding-inline: 30px; }
  .profile { padding-inline: 16px; gap: 25px; grid-template-columns: 145px 1fr; }
  .profile-avatar { width: 128px; height: 128px; }
  .highlights { padding-left: 16px; }
  .columns { grid-template-columns: minmax(0,1.4fr) minmax(240px,1fr); gap: 22px; }
  .profile-facts { gap: 10px 18px; font-size: 12px; }
  .doc-cover { padding: 18px; }
}
@media (max-width:1000px) {
  .sidebar { width: 78px; align-items: center; padding-inline: 10px; }
  .brand { margin: 0 0 42px; }
  .brand img { width: 34px; height: 34px; }
  .brand>span, .nav-label, .sidebar nav a>span, .sidebar-bottom { display: none; }
  .sidebar nav { gap: 16px; }
  .sidebar nav a { padding: 13px; justify-content: center; }
  .workspace { margin-left: 78px; }
}
@media (max-width:760px) {
  .page-container { padding-inline: 22px; }
  .topbar { padding-inline: 22px; }
  .topbar>span { font-size: 10px; }
  .profile { grid-template-columns: 116px 1fr; padding: 30px 0 23px; gap: 20px; }
  .profile-avatar { width: 108px; height: 108px; }
  .profile-avatar img { width: 59px; height: 59px; border-radius: 17px; }
  .profile-name { gap: 10px; margin-bottom: 12px; }
  .username { font-size: 23px; }
  .profile-category { font-size: 9px; padding: 4px 8px; }
  .profile-facts { gap: 9px 15px; font-size: 11px; margin-bottom: 13px; }
  .profile-bio { font-size: 12px; }
  .profile-credit { font-size: 10px; }
  .highlights { padding: 0 0 25px; gap: 24px; }
  .highlight-ring { width: 63px; height: 63px; }
  .profile-tabs { gap: 32px; }
  .columns { grid-template-columns: minmax(0,1fr); }
  .aside-content { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 22px; align-items: start; }
  .preview-post { grid-row: span 2; margin-bottom: 0; }
  .scope-note { grid-column: 2; }
  .mini-certificate { padding: 20px 17px; min-height: 218px; }
  .mini-title { font-size: 17px; }
  .mini-footer { font-size: 4px; }
  .preview { padding: 24px 15px; }
  .documents { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:600px) {
  html { scroll-padding-top: 75px; }
  body { background: #fff; }
  .sidebar { position: fixed; inset: auto 0 0; width: 100%; height: auto; padding: 5px 8px calc(5px + env(safe-area-inset-bottom)); border: 0; border-top: 1px solid var(--line); background: #fff; }
  .brand { display: none; }
  .sidebar nav { display: flex; width: 100%; gap: 5px; justify-content: space-around; }
  .sidebar nav a { flex: 1; gap: 4px; flex-direction: column; padding: 7px 4px 6px; border-radius: 6px; }
  .sidebar nav a>span { display: block; font-size: 9px; font-weight: 500; }
  .sidebar nav a.active { background: #fff; }
  .sidebar nav a.active>span { font-weight: 700; }
  .sidebar nav a .icon { width: 23px; height: 23px; }
  .workspace { margin: 0; padding-bottom: calc(69px + env(safe-area-inset-bottom)); }
  .topbar { position: sticky; top: 0; z-index: 5; height: 62px; padding: 0 18px; }
  .topbar>span { display: none; }
  .mobile-brand { display: block; font-size: 26px; }
  .account { gap: 9px; }
  .access-user { max-width: 90px; font-size: 10px; padding: 4px 8px; }
  .test-label { display: none; }
  .account .button { font-size: 10px; padding: 8px 11px; }
  .page-container { padding: 0 18px; }
  .profile { display: grid; grid-template-columns: 85px minmax(0,1fr); gap: 18px; padding: 25px 0 23px; align-items: start; }
  .profile-avatar { width: 82px; height: 82px; padding: 3px; margin-top: 3px; }
  .profile-avatar>span { border-width: 3px; border-color: #fff; }
  .profile-avatar img { width: 46px; height: 46px; border-radius: 13px; }
  .profile-name { display: block; margin: 0 0 13px; }
  .username { display: block; font-size: 22px; }
  .profile-category { display: inline-block; padding: 0; margin-top: 3px; background: none; font-size: 10px; color: var(--muted); font-weight: 400; }
  .profile-facts { display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 7px; margin-bottom: 15px; font-size: 9px; }
  .profile-facts span { display: flex; flex-direction: column; }
  .profile-facts strong { font-size: 12px; margin: 0; }
  .profile-bio { font-size: 11px; line-height: 1.65; margin-left: -103px; margin-top: 21px; }
  .profile-bio>strong { font-size: 13px; }
  .profile-bio p { margin: 4px 0 7px; }
  .highlights { justify-content: flex-start; gap: 15px; padding: 0 0 24px; }
  .highlight { font-size: 10px; gap: 7px; width: 63px; }
  .highlight-ring { width: 58px; height: 58px; }
  .highlight-ring .icon { width: 22px; height: 22px; }
  .profile-tabs { gap: 0; justify-content: space-between; margin: 0 -18px; padding: 0 18px; border-bottom: 1px solid #efefef; }
  .profile-tabs a { font-size: 10px; letter-spacing: 0; padding: 16px 2px; gap: 6px; }
  .profile-tabs .icon { width: 14px; height: 14px; }
  main { padding-top: 24px; padding-bottom: 32px; }
  h1 { font-size: 23px; letter-spacing: -.6px; }
  h2 { font-size: 19px; }
  .eyebrow { font-size: 8px; letter-spacing: 1.1px; }
  .lead { font-size: 12px; line-height: 1.75; }
  .page-heading { margin-bottom: 21px; }
  .steps { gap: 6px; font-size: 9px; margin-bottom: 20px; }
  .step { gap: 5px; }
  .step i { height: 20px; width: 20px; font-size: 9px; }
  .step-line { width: 13px; }
  .columns { gap: 25px; }
  .card { padding: 19px; }
  .card-title h2 { font-size: 17px; }
  .upload-card { padding: 0; }
  .upload-card form { padding: 18px; }
  .post-header { padding: 13px 18px; }
  .dropzone { min-height: 220px; }
  .dropzone strong { font-size: 14px; }
  .field input, .field textarea, .search-input { font-size: 16px; }
  .field input::placeholder, .search-input::placeholder { font-size: 12px; }
  .aside-content { display: block; }
  .preview-post { margin-bottom: 24px; }
  .preview { padding: 38px; }
  .mini-certificate { padding: 26px 24px; min-height: 246px; }
  .mini-title { font-size: 21px; }
  .mini-footer { font-size: 5px; }
  .benefits { display: grid; grid-template-columns: 1fr; }
  .benefit { gap: 12px; }
  .benefit h3 { font-size: 13px; }
  .documents { gap: 10px; }
  .doc-cover { padding: 15px 12px; }
  .doc-sheet { padding: 15px 12px; min-height: 148px; gap: 12px; }
  .doc-sheet strong { font-size: 11px; }
  .doc-sheet small { font-size: 6px; }
  .doc-sheet .icon { width: 18px; height: 18px; }
  .doc-info { padding: 12px 11px; }
  .doc-info h3 { font-size: 12px; }
  .doc-info p { font-size: 9px; }
  .doc-card-footer { padding: 0 11px 12px; }
  .badge { font-size: 8px; }
  .detail-grid { grid-template-columns: 1fr; }
  .verify-form { flex-direction: column; }
  .verify-status { align-items: flex-start; gap: 10px; }
  .verify-status h2 { font-size: 18px; }
  .status-icon { width: 39px; height: 39px; font-size: 21px; }
  .actions>.button { flex: 1; }
  .actions>.fine { font-size: 10px; }
  .empty { padding: 35px 18px; }
  footer { justify-content: flex-start; font-size: 9px; gap: 8px 18px; }
  footer span:nth-child(2) { flex-basis: 100%; order: 3; }
  #toast { bottom: calc(80px + env(safe-area-inset-bottom)); width: max-content; font-size: 12px; }
  dialog { padding: 27px; }
}
@media (max-width:359px) {
  .page-container { padding-inline: 14px; }
  .topbar { padding-inline: 14px; }
  .profile { grid-template-columns: 72px minmax(0,1fr); gap: 14px; }
  .profile-avatar { height: 70px; width: 70px; }
  .profile-bio { margin-left: -86px; }
  .profile-facts { font-size: 8px; }
  .profile-facts strong { font-size: 11px; }
  .profile-tabs { margin-inline: -14px; padding-inline: 14px; }
  .highlights { gap: 10px; }
  .steps { gap: 4px; font-size: 8px; }
  .step-line { width: 8px; }
  .doc-sheet { min-height: 128px; }
}
@media (prefers-reduced-motion:reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Contextual privacy explanation beside the file selection. */
.privacy-hint { position: relative; margin: 12px 0 20px; }
.privacy-hint-button { background: none; border: 0; padding: 5px 0; color: #8e3153; font: inherit; font-size: 12px; cursor: help; text-align: left; }
.privacy-hint-button:focus-visible { outline: 2px solid #b33b66; outline-offset: 4px; border-radius: 3px; }
.privacy-tooltip { position: absolute; z-index: 20; top: 100%; left: 0; width: 340px; max-width: 100%; padding: 16px 18px; border: 1px solid #e5ccd6; border-radius: 10px; background: #fffafb; color: #38202c; box-shadow: 0 8px 28px #38202c24; font-size: 12px; line-height: 1.6; }
.privacy-tooltip[hidden] { display: none; }
.privacy-tooltip strong { display: block; font-size: 13px; }
.privacy-tooltip p { margin: 8px 0 0; }
/* Object manifest and private local selection. */
.field select{width:100%;padding:13px 14px;border:1px solid #e5dce1;border-radius:10px;background:#fff;color:inherit;font:inherit}
.selected-files{display:grid;gap:12px;margin:18px 0}
.selected-file{border:1px solid #eadde2;border-radius:12px;padding:14px;min-width:0}
.selected-file-heading{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.selected-file-heading strong{display:block;overflow-wrap:anywhere;font-size:13px}
.selected-file-heading small{display:block;color:#74666c;font-size:11px;margin-top:4px}
.selected-file-heading button{flex-shrink:0;font-size:12px}
.file-fields{display:grid;grid-template-columns:1.2fr 1fr;gap:12px}
.file-fields .field{margin-bottom:0}
.privacy-note{font-size:12px;line-height:1.6;color:#74666c;margin:18px 0}
.privacy-note summary{cursor:pointer;color:#8c2442;font-weight:600}
.object-explainer h2{font-size:25px;line-height:1.2;margin:14px 0}
.object-explainer p{font-size:13px;line-height:1.7}
.object-example{display:grid;gap:12px;padding:24px 14px;border-radius:12px;background:#fbf1f5;color:#872541;text-align:center;margin:22px 0;font-size:13px}
.object-file-list{margin:28px 0;min-width:0}
.object-file{padding:14px 0;border-bottom:1px solid #eee2e7;min-width:0}
.object-file strong,.object-file .fine{display:block;overflow-wrap:anywhere}
.object-file code{display:block;overflow-wrap:anywhere;font-size:11px;color:#74666c;margin-top:8px}
@media(max-width:600px){.file-fields{grid-template-columns:1fr;gap:0}.selected-file-heading{flex-wrap:wrap}.object-explainer{padding:20px}}

.object-description{white-space:pre-line;overflow-wrap:anywhere}

.linked-objects{margin:28px 0;min-width:0}
.linked-item{display:block;border:1px solid var(--line);border-radius:6px;padding:12px 14px;margin-top:10px;color:inherit;text-decoration:none}
a.linked-item:hover{border-color:var(--ink)}
.linked-item strong,.linked-item .fine,.linked-item code{display:block;overflow-wrap:anywhere}
.linked-item code{font-size:11px;color:#74666c;margin-top:4px}
.transfer-box{margin:28px 0;padding:18px 20px;border:1px solid var(--line);border-radius:8px;background:#fafafa;min-width:0}
.transfer-box h3{margin-top:0}
.transfer-box input{font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
.market-box{margin:28px 0;padding:18px 20px;border:1px solid var(--line);border-radius:8px;background:#fbf1f5;min-width:0}
.market-box h3{margin-top:0}
.market-price{display:grid;gap:4px;margin-bottom:14px}
.market-price strong{font-size:26px;line-height:1.2}
.market-price .eyebrow{margin:0}
.filter-chips{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 4px}
.chip{border:1px solid var(--line);background:#fff;border-radius:999px;padding:7px 12px;font-size:12px;color:var(--ink);cursor:pointer}
.chip span{color:var(--muted);margin-left:2px}
.chip[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:#fff}
.chip[aria-pressed="true"] span{color:inherit;opacity:.75}
.offer-controls{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin:14px 0 4px}
.offer-controls .filter-chips{margin:0}
.sort-select{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted)}
.sort-select select{border:1px solid var(--line);background:#fff;border-radius:6px;padding:7px 10px;font-size:12px;color:var(--ink)}
.offer-search{width:100%;margin-top:14px}
.issuer-switch{margin:0 0 18px}
a.chip{text-decoration:none;display:inline-block}
.issuer-note .button{margin-top:10px}
