@font-face { font-family: Geist; src: url("/assets/fonts/geist-sans-1.7.2.woff2") format("woff2"); font-style: normal; font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono-1.7.2.woff2") format("woff2"); font-style: normal; font-weight: 100 900; font-display: swap; }
:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #666666;
  --accent: #171717;
  --line: #ebebeb;
  --paper: #ffffff;
}
* { box-sizing: border-box; }
body { margin: 0; -webkit-font-smoothing: antialiased; font-synthesis: none; background: var(--paper); color: var(--ink); font: 15px/1.65 Geist, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
button, input, textarea { font: inherit; }
button, a, input { touch-action: manipulation; }
button { cursor: pointer; background: #fff; border: 1px solid var(--line); border-radius: 6px; min-height: 40px; padding: 8px 15px; color: var(--ink); transition: background 150ms, border-color 150ms, box-shadow 150ms, transform 150ms; }
button:disabled { opacity: .55; cursor: wait; }
button:active:not(:disabled) { background: #ededed; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
button:focus-visible, a:focus-visible, summary:focus-visible, [role="button"]:focus-visible { outline: 2px solid #171717; outline-offset: 3px; }
input, textarea { width: 100%; min-width: 0; color: var(--ink); background: #fff; border: 1px solid #d6d6d6; border-radius: 6px; padding: 10px 12px; outline: none; }
input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px #17171712; }
label { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 500; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.4; font-weight: 600; }
h2 { font-size: 21px; font-weight: 600; }
h3 { font-size: 16px; font-weight: 600; }
[hidden] { display: none !important; }
.top { max-width: 1120px; height: 72px; padding: 0 32px; margin: auto; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.brand { font-size: 21px; line-height: 1; letter-spacing: -.8px; font-weight: 600; display: inline-flex; align-items: center; gap: 10px; }
.brand:hover { text-decoration: none; }
.top nav { display: flex; gap: 24px; align-items: center; font-size: 13px; color: var(--muted); }
.top nav a { display: inline-flex; align-items: center; min-height: 40px; }
.top nav button { border: 0; background: none; padding: 8px 0; }
.top nav .login-button { border: 1px solid #d6d6d6; padding: 6px 16px; min-height: 34px; background: #fff; box-shadow: 0 1px 2px #00000006; }
main { max-width: 1120px; margin: 48px auto 80px; padding: 0 32px; min-height: 65vh; }
/* The welcome page uses the available viewport; content can still grow when zoomed. */
body:has(#welcome:not([hidden])) { min-height: 100svh; display: flex; flex-direction: column; }
body:has(#welcome:not([hidden])) .top { width: 100%; flex: none; border: 0; height: 72px; }
main:has(#welcome:not([hidden])) { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 32px; min-height: 0; flex: 1; display: flex; align-items: center; justify-content: center; }
#welcome { width: 100%; }
.welcome-copy { padding: clamp(24px, 5vh, 56px) 0; text-align: center; }
.welcome-copy h1 { font-size: clamp(48px, 5.65vw, 76px); line-height: 1.45; font-weight: 600; letter-spacing: 0; font-feature-settings: "palt"; text-wrap: balance; }
.welcome-copy h1 span { display: inline-block; }
.welcome-copy h1 span:last-child { color: #171717; }
.mobile-break { display: none; }
.intro { color: var(--muted); font-size: 17px; line-height: 1.8; margin: 20px 0 28px; text-wrap: pretty; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 12px; }
.agent-button, .secondary-button { display: inline-flex; justify-content: center; align-items: center; gap: 14px; min-height: 46px; padding: 10px 18px; border-radius: 6px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.agent-button { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 1px #00000008, 0 2px 2px #00000008, inset 0 1px 0 #ffffff20; }
.agent-button svg, .secondary-button svg { flex: none; }
.agent-button.compact { min-height: 40px; font-size: 13px; gap: 12px; }
.agent-button:active:not(:disabled), .primary:active:not(:disabled) { background: #333; transform: translateY(1px); }
.secondary-button { background: #fff; border: 1px solid #d6d6d6; box-shadow: 0 1px 2px #00000005; }
.welcome-copy .intro { margin: 18px 0 30px; font-size: 18px; line-height: 1.8; color: #666; }
.welcome-copy .agent-button, .welcome-copy .secondary-button { min-height: 48px; padding: 11px 20px; border-radius: 8px; }
.hero-caption { color: #666; font-size: 13px; line-height: 1.75; margin-top: 16px; }
body:has(#welcome:not([hidden])) > footer { flex: none; margin: 0 auto; padding: 18px 32px; align-items: center; border-color: #f0f0f0; }
body:has(#welcome:not([hidden])) > footer a { min-height: 32px; display: inline-flex; align-items: center; white-space: nowrap; }
::selection { color: #fff; background: #171717; }
.auth-card { max-width: 420px; }
.auth-card .dialog-head { margin-bottom: 24px; }
.auth-card .hint { margin-top: 24px; }
form { display: grid; gap: 18px; }
.primary { background: var(--accent); border-color: var(--accent); color: white; }
.full { width: 100%; }
.hint { font-size: 13px; line-height: 1.75; color: var(--muted); }
.error { color: #b42318; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.error:empty { display: none; }
.eyebrow { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.workspace-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin: 14px 0 32px; }
.workspace-heading h1 { font-size: 36px; }
.workspace-heading > button { font-size: 13px; }
.workspace-agent { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0 28px; border-top: 1px solid var(--line); }
.workspace-agent h2 { font-size: 18px; margin-bottom: 4px; }
.workspace-agent p { font-size: 14px; color: var(--muted); }
.publish-box { border: 1px solid #e5e5e5; background: #fafafa; border-radius: 8px; padding: 16px 24px; }
#dropzone { cursor: pointer; display: grid; grid-template-columns: 42px 1fr auto; column-gap: 16px; align-items: center; padding: 20px 0 12px; border-radius: 8px; }
#dropzone svg { grid-row: 1 / 3; color: #666666; }
#dropzone h2 { font-size: 17px; line-height: 1.65; }
#dropzone p { grid-column: 2; font-size: 13px; color: var(--muted); }
#dropzone .drop-link { grid-column: 3; grid-row: 1 / 3; border: 1px solid #d6d6d6; background: white; padding: 9px 16px; border-radius: 8px; font-size: 14px; }
#dropzone.dragging { background: #f0f0f0; outline: 2px solid #737373; outline-offset: 6px; }
.upload-options { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); margin-left: 58px; }
.upload-options button { background: none; border: 0; font-size: 13px; padding: 6px 0; }
#publish-form { margin-top: 16px; padding: 18px 0 8px; border-top: 1px solid #e5e5e5; }
.file-summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.file-summary span { overflow-wrap: anywhere; }
.file-summary button { padding: 6px 12px; font-size: 13px; flex-shrink: 0; white-space: nowrap; }
#publish-link-settings { margin: 16px 0; color: var(--muted); font-size: 13px; }
#publish-link-settings summary { cursor: pointer; width: fit-content; }
#publish-link-settings[open] summary { margin-bottom: 14px; }
#publish-link-settings input { color: var(--ink); }
.check { flex-direction: row; align-items: center; font-weight: 400; }
.check input { width: 17px; height: 17px; accent-color: var(--accent); }
.publish-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
#publish-success { display: flex; flex-wrap: wrap; align-items: center; gap: 15px; padding: 20px 0; }
#publish-success a { overflow-wrap: anywhere; font: 14px "Geist Mono", ui-monospace, monospace; }
.success-mark { color: var(--accent); font-weight: 600; }
.library-head { margin-top: 38px; padding-bottom: 15px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.tabs { display: flex; gap: 26px; align-items: center; }
.tab { border: 0; background: none; padding: 8px 0; color: var(--muted); font-size: 14px; white-space: nowrap; }
.tab.active { color: var(--ink); font-weight: 500; position: relative; }
.tab.active::after { content: ""; position: absolute; height: 2px; background: var(--ink); bottom: -16px; left: 0; right: 0; border-radius: 2px; }
.tab span { font-size: 11px; background: #f0f0f0; padding: 2px 6px; border-radius: 5px; margin-left: 3px; }
#search { max-width: 220px; padding: 9px 12px; font-size: 13px; }
.site-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 17px; align-items: center; padding: 23px 0; border-bottom: 1px solid #ebebeb; }
.site-icon { height: 44px; width: 44px; border: 1px solid #e5e5e5; background: #fafafa; display: grid; place-items: center; border-radius: 6px; font: 13px "Geist Mono", ui-monospace, monospace; }
.site-info h3 { font-size: 16px; overflow-wrap: anywhere; }
.site-info .url { display: block; font: 12px/1.8 "Geist Mono", ui-monospace, monospace; color: var(--muted); overflow-wrap: anywhere; margin: 5px 0; }
.site-meta { font-size: 12px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.pill { color: #525252; }
.site-actions { display: flex; gap: 8px; }
.site-actions button { font-size: 13px; padding: 8px 12px; }
.empty { text-align: center; padding: 64px 20px; color: var(--muted); }
.empty p { font-size: 14px; margin-top: 8px; }
#loading { padding: 32px 0; color: var(--muted); font-size: 14px; }
.guide { padding: 32px 0; max-width: 760px; }
.guide > p { color: var(--muted); margin: 14px 0 22px; }
.text-link { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
pre { background: #fafafa; border: 1px solid #ebebeb; border-radius: 10px; padding: 22px; white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.9 "Geist Mono", ui-monospace, monospace; margin: 18px 0; }
.prompt-details { margin-top: 18px; }
summary { cursor: pointer; font-size: 14px; color: var(--muted); min-height: 40px; padding: 8px 0; }
#members-panel { padding-top: 0; }
#members-panel h3 { margin-top: 30px; }
.version-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.version-row button { font-size: 13px; padding: 6px 12px; }
footer { display: flex; justify-content: space-between; width: 100%; max-width: 1120px; margin: auto; padding: 24px 32px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
dialog { border: 1px solid var(--line); border-radius: 12px; padding: 28px; width: min(540px, calc(100vw - 32px)); max-height: 85dvh; overflow: auto; overscroll-behavior: contain; color: var(--ink); background: var(--paper); box-shadow: 0 0 0 1px #00000006, 0 8px 16px #00000008, 0 24px 64px #00000018; }
dialog::backdrop { background: #00000040; backdrop-filter: blur(4px); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.dialog-head button { padding: 0; font-size: 24px; border: 0; background: none; min-width: 40px; min-height: 40px; }
dialog form { margin: 18px 0; }
.detail-url { font: 13px "Geist Mono", ui-monospace, monospace; overflow-wrap: anywhere; display: block; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.detail-actions button { font-size: 13px; }
.version-row { font-size: 13px; }
.dialog-error { margin-top: 15px; }
#invite-result p { font-size: 14px; margin: 16px 0; }
#invite-result button, #key-result button { margin-top: 12px; }
#account-name { font-size: 14px; color: var(--muted); }
hr { border: 0; border-top: 1px solid var(--line); margin: 26px 0; }
#account-dialog .hint { margin: 8px 0 14px; }
#key-result { margin-top: 14px; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 25px; }
#confirm-description { margin-top: 15px; color: var(--muted); font-size: 14px; }
#toast, #agent-feedback { position: fixed; bottom: 24px; left: 50%; width: max-content; text-align: center; transform: translateX(-50%); border-radius: 9px; background: #171717; color: #fff; padding: 11px 20px; font-size: 14px; box-shadow: 0 4px 20px #0001; z-index: 10; pointer-events: none; max-width: calc(100vw - 32px); }
#toast { opacity: 0; }
#toast.show { opacity: 1; }
#agent-feedback:empty { display: none; }
#install-prompt { min-height: 240px; resize: vertical; margin-top: 18px; font-size: 14px; line-height: 1.8; }
.publish-guide-page { max-width: 850px; }
.guide-hero { padding: 54px 0 30px; }
.guide-hero h1 { font-size: clamp(32px, 4vw, 44px); line-height: 1.5; }
.guide-hero .intro { margin: 20px 0 28px; font-size: 17px; }
.setup-steps { padding: 0; margin: 14px 0 0; list-style: none; }
.setup-steps li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 18px; padding: 25px 0; border-top: 1px solid var(--line); }
.step-number { font: 14px/28px "Geist Mono", ui-monospace, monospace; color: var(--muted); }
.setup-steps h2 { font-size: 18px; }
.setup-steps p { font-size: 15px; color: var(--muted); margin-top: 7px; }
.guide-reference { margin-top: 34px; }
.guide-reference > h2 { margin-bottom: 14px; }
.guide-reference details { padding: 12px 0; border-top: 1px solid var(--line); }
.guide-reference details p { color: var(--muted); font-size: 15px; margin: 8px 0 16px; }
.guide-reference summary { color: var(--ink); }
@media (hover: hover) and (pointer: fine) {
  button:hover { background: #fafafa; border-color: #b3b3b3; }
  .secondary-button:hover { text-decoration: none; background: #fafafa; border-color: #a3a3a3; }
  .agent-button:hover, .primary:hover { background: #333333; border-color: #333333; }
  #dropzone:hover .drop-link { border-color: #a3a3a3; background: #ffffff; }
  .top nav button:hover { color: #171717; }
}
@media (max-width: 700px) {
  .top { padding: 0 20px; height: 64px; }
  .top nav { gap: 16px; font-size: 13px; }
  .brand { font-size: 20px; gap: 8px; }
  .top nav .login-button { padding: 7px 14px; }
  main { padding: 0 22px; margin: 24px auto 54px; }
  body:has(#welcome:not([hidden])) .top { height: 64px; }
  main:has(#welcome:not([hidden])) { padding: 0 24px; }
  .welcome-copy { padding: 24px 0 32px; }
  .welcome-copy h1 { font-size: clamp(38px, 10.8vw, 54px); line-height: 1.5; }
  .welcome-copy .intro { font-size: 16px; margin: 16px 0 26px; }
  .mobile-break { display: initial; }
  .hero-actions { flex-direction: column; gap: 10px; }
  .hero-actions > * { width: 100%; max-width: 280px; }
  .hero-caption { font-size: 12px; margin-top: 16px; }
  body:has(#welcome:not([hidden])) > footer { padding: 12px 20px; font-size: 11px; gap: 10px; }
  input, textarea { font-size: 16px; }
  #search { font-size: 16px; }
  .tab.active::after { bottom: 0; }
  .intro { font-size: 16px; margin: 24px 0 30px; }
  .workspace-heading { align-items: center; gap: 10px; margin-bottom: 24px; }
  .workspace-heading h1 { font-size: 27px; }
  .workspace-heading > button { font-size: 12px; padding: 7px 10px; white-space: nowrap; }
  .workspace-agent { align-items: flex-start; flex-direction: column; gap: 16px; padding: 24px 0; }
  .workspace-agent h2 { font-size: 17px; }
  .workspace-agent p { font-size: 13px; }
  .agent-button, .secondary-button { min-height: 46px; font-size: 14px; padding: 10px 16px; gap: 14px; }
  .publish-box { padding: 12px 16px; }
  #dropzone { grid-template-columns: 1fr auto; gap: 8px; padding: 13px 0 8px; }
  #dropzone svg { display: none; }
  #dropzone h2 { grid-column: 1 / -1; font-size: 16px; }
  #dropzone p { grid-column: 1; grid-row: 2; font-size: 12px; }
  #dropzone .drop-link { grid-column: 2; grid-row: 2; padding: 8px 10px; font-size: 12px; white-space: nowrap; }
  .upload-options { margin-left: 0; font-size: 11px; }
  .upload-options button { font-size: 12px; }
  .publish-bottom { align-items: stretch; flex-direction: column; }
  .library-head { align-items: stretch; flex-direction: column; gap: 12px; margin-top: 28px; }
  .tabs { gap: 24px; }
  .tab { font-size: 13px; }
  #search { max-width: none; }
  .site-row { gap: 10px; grid-template-columns: 36px minmax(0, 1fr); padding: 21px 0; }
  .site-icon { width: 34px; height: 38px; font-size: 11px; }
  .site-actions { grid-column: 2; justify-content: flex-end; }
  .site-info h3 { font-size: 15px; }
  .site-meta { font-size: 11px; }
  .site-info .url { font-size: 11px; }
  footer { padding: 22px; font-size: 11px; gap: 10px; }
  .guide h2 { font-size: 20px; }
  dialog { padding: 22px; }
  .eyebrow { font-size: 12px; }
  .guide-hero { padding: 30px 0 25px; }
  .guide-hero .intro { font-size: 16px; }
  .setup-steps li { gap: 12px; grid-template-columns: 25px minmax(0, 1fr); }
  pre { padding: 16px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* A small paper-to-link sculpture gives the otherwise quiet page a focal point. */
.share-sculpture { position: relative; width: 190px; height: 100px; margin: 0 auto 22px; }
.sculpture-orbit { position: absolute; inset: -15px -70px; border-radius: 50%; background: radial-gradient(ellipse, #eee 0, #fafafa88 42%, transparent 70%); }
.paper { position: absolute; display: grid; place-items: center; width: 63px; height: 78px; border: 1px solid #ddd; border-radius: 8px; background: linear-gradient(145deg,#fff,#f8f8f8); box-shadow: 0 3px 5px #00000004, 0 12px 26px #00000007; }
.paper svg { width: 26px; height: 26px; color: #888; }
.paper-back { left: 44px; top: 6px; transform: rotate(-14deg); }
.paper-front { left: 87px; top: 3px; transform: rotate(11deg); }
.share-stamp { position: absolute; left: 73px; bottom: 0; display: grid; place-items: center; width: 47px; height: 33px; border: 3px solid white; border-radius: 22px; background: #222; color: white; box-shadow: 0 4px 8px #0002; transform: rotate(-7deg); }
.share-stamp svg { width: 22px; height: 22px; }
#auth-credentials { display: grid; gap: 18px; }
.auth-switch { display: block; margin: 16px auto 0; border: 0; font-size: 13px; color: var(--muted); }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 20px 0; font-size: 12px; color: #888; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
#invite-agent .hint { text-align: center; margin-top: 10px; font-size: 12px; }
@media (max-width: 700px) {
  .top nav { gap: 12px; }
  body:has(#welcome:not([hidden])) .top nav > a { display: none; }
  .share-sculpture { transform: scale(.8); height: 80px; margin-bottom: 18px; }
  .welcome-copy { padding: 16px 0 24px; }
  .welcome-copy h1 { font-size: 42px; }
}

#invite-copy-status:empty { display: none; }

/* Friends stay in one continuous list, from invitation to active membership. */
#workspace > .library-head { margin: 0 0 24px; }
.friends-table { border-collapse: collapse; width: 100%; table-layout: fixed; font-size: 14px; }
.friends-table th { padding: 12px 16px; color: var(--muted); font-size: 12px; font-weight: 400; text-align: left; background: #fafafa; border-bottom: 1px solid var(--line); }
.friends-table th:first-child { width: 38%; border-radius: 6px 0 0; }
.friends-table th:nth-child(2) { width: 22%; }
.friends-table th:nth-child(3) { width: 10%; }
.friends-table th:last-child { width: 30%; border-radius: 0 6px 0 0; }
.friends-table td { padding: 18px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.friend-name { font-weight: 500; overflow-wrap: anywhere; }
.friend-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: #737373; white-space: nowrap; }
.friend-badge::before { content: ""; width: 5px; height: 5px; border: 1px solid #aaa; border-radius: 50%; }
.friend-badge.joined { color: #333; }
.friend-badge.joined::before { background: #333; border-color: #333; }
.friend-count { font-variant-numeric: tabular-nums; color: var(--muted); }
.friend-actions { text-align: right; white-space: nowrap; }
.friend-actions > button { border: 0; padding: 8px; font-size: 13px; }
.friend-menu { position: relative; display: inline-block; vertical-align: middle; margin-left: 5px; }
.friend-menu > summary { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 6px; cursor: pointer; list-style: none; font-size: 22px; letter-spacing: 2px; }
.friend-menu > summary::-webkit-details-marker { display:none; }
.friend-menu[open] > summary, .friend-menu > summary:hover { background: #f5f5f5; }
.friend-menu-options { position: absolute; top: 44px; right: 0; z-index: 3; width: 164px; padding: 5px; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 4px 16px #0000000c; }
.friend-menu-options button { display: block; width: 100%; border: 0; text-align: left; font-size: 13px; }
#invite-result-message { font-size: 17px; font-weight: 500; margin: 12px 0 6px; }
#invite-result-help { margin: 0 0 20px; }
#invite-result details { margin-top: 18px; font-size: 13px; }
#invite-result summary { color: var(--muted); cursor: pointer; }
#invite-result input { margin-top: 12px; }
#invite-prompt-value { min-height: 230px; margin-top: 12px; font-size: 13px; }
#owner-filter { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
#owner-filter button { border: 0; font-size: 13px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width:700px) {
  .friends-table thead { display:none; }
  .friend-row { display:grid; grid-template-columns:minmax(0,1fr) auto; padding:16px 0; border-bottom:1px solid var(--line); gap:5px 10px; }
  .friends-table td { display:block; padding:0; border:0; }
  .friend-name { grid-column:1; grid-row:1; font-size:15px; }
  .friend-state { grid-column:1; grid-row:2; }
  .friend-count { grid-column:1; grid-row:3; font-size:12px; }
  .friend-count::after { content:" 件作品"; }
  .friend-actions { grid-column:2; grid-row:1 / 4; align-self:center; }
  .friend-menu > summary { width:40px; height:44px; }
  #workspace > .library-head { margin-bottom:20px; }
  #invite-prompt-value { font-size:16px; }
}

@media(max-width:700px) { .friend-count.no-works { display:none; } }

/* Share controls stay inside the work's progressive disclosure. */
.sharing-settings{border-block:1px solid #e8e8e8;padding:18px 0;margin:22px 0}.sharing-settings summary{font-size:14px;font-weight:600;cursor:pointer}.sharing-settings summary span{font-weight:400;color:#737373;margin-left:10px;font-size:12px}.sharing-settings form{padding-top:12px;gap:10px;margin:0}#share-fields{display:grid;gap:12px}#share-fields[hidden]{display:none}.sharing-settings label{font-size:13px}.sharing-settings textarea{width:100%;resize:vertical;min-height:68px;border:1px solid #ddd;border-radius:8px;padding:10px 12px;font:inherit;box-sizing:border-box}.sharing-settings input[readonly],.sharing-settings textarea[readonly]{background:#f5f5f5;color:#737373}.share-cover-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0}.share-upload{position:relative;border:1px solid #ddd;border-radius:7px;padding:8px 12px;cursor:pointer;margin:0!important}.share-upload:focus-within{outline:2px solid #171717;outline-offset:2px}.share-preview{overflow:hidden;border:1px solid #e5e5e5;border-radius:12px;margin-top:4px;background:#fff}.share-preview img{display:block;width:100%;aspect-ratio:1200/630;object-fit:cover;background:#fafafa}.share-preview>div{padding:14px 16px}.share-preview strong{font-size:15px;overflow-wrap:anywhere}.share-preview p{color:#737373;font-size:12px;line-height:1.5;margin:5px 0 0;overflow-wrap:anywhere}.share-index{margin-top:10px!important}.share-save{position:sticky;bottom:-28px;background:#fff;padding:12px 0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:12px}.share-save .error{margin:0;font-size:12px}.share-save button{flex-shrink:0;margin-left:auto}.sharing-settings .hint{font-size:12px;line-height:1.6}#detail-dialog{max-height:calc(100dvh - 40px);overflow-y:auto}@media(max-width:480px){.sharing-settings summary span{display:none}.share-preview>div{padding:12px}.share-save{align-items:flex-end;bottom:-22px}.share-cover-actions .hint{flex-basis:100%}}

#detail-dialog>.dialog-head{position:sticky;top:-28px;z-index:3;background:#fff;margin:-28px -28px 20px;padding:12px 28px;border-bottom:1px solid #eee}@media(max-width:480px){#detail-dialog>.dialog-head{top:-22px;margin:-22px -22px 20px;padding:10px 22px}}
