@charset "UTF-8";

/* The reading surface is shared by the owner's profile and its public snapshot. */
.profile-page,
.profile-surface {
  --profile-ink: #1c333e;
  --profile-muted: #596f77;
  --profile-navy: #142d39;
  --profile-teal: #177e73;
  --profile-line: #dce5e2;
  color: var(--profile-ink);
  font-family: Inter, "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  font-synthesis: none;
}
.profile-page { margin: 0; background: #f4f7f6; }
.profile-page *, .profile-surface * { box-sizing: border-box; }
.profile-page [hidden], .profile-surface [hidden] { display: none !important; }
.profile-page :focus-visible, .profile-surface :focus-visible { outline: 3px solid #b57922; outline-offset: 4px; }
.profile-page a, .profile-surface a { color: var(--profile-teal); text-underline-offset: 3px; }
.profile-page button, .profile-page input { font-family: inherit; }
.profile-page button, .profile-page a { -webkit-tap-highlight-color: transparent; }
.profile-page p { line-height: 1.8; }
.profile-skip { position: fixed; top: -100px; left: 14px; z-index: 20; padding: 14px; background: white; border-radius: 8px; }
.profile-skip:focus { top: 12px; }
.profile-layout { display: grid; grid-template-columns: 238px minmax(0, 1fr); min-height: 100vh; }
.profile-main { min-width: 0; }
.profile-page .profile-brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 800; font-size: 19px; letter-spacing: 1.1px; color: inherit; text-decoration: none; white-space: nowrap; }
.profile-brand img { display: block; flex-shrink: 0; }
.profile-brand small { display: block; margin-top: 4px; color: #b0c6ca; font-size: 10px; font-weight: 400; letter-spacing: 1px; }
.profile-topbar { display: flex; align-items: center; gap: 16px; min-height: 77px; padding: 16px 36px; background: #ffffffb3; border-bottom: 1px solid var(--profile-line); font-size: 11px; color: var(--profile-muted); }
.profile-topbar > div { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.profile-topbar > div > span:first-child { font-weight: 750; letter-spacing: 1px; }
.profile-breadcrumb { border-left: 1px solid #b9cbc6; padding-left: 20px; }
.profile-owner-content { width: min(1032px, calc(100% - 64px)); margin: 32px auto; }
.profile-surface { background: white; border: 1px solid var(--profile-line); border-radius: 18px; overflow: hidden; min-width: 0; }
.profile-cover { height: 180px; position: relative; overflow: hidden; background: linear-gradient(118deg, #173640, #315c5b 70%, #527a70); }
.profile-cover::before, .profile-cover::after { content: ""; position: absolute; border: 1px solid #bad8c522; border-radius: 50%; width: 390px; height: 390px; top: -255px; right: 12%; }
.profile-cover::after { width: 440px; height: 440px; top: -90px; right: -240px; background: #accfbd0a; }
.profile-cover > span { position: absolute; right: 30px; bottom: 24px; font-size: 11px; letter-spacing: 3px; color: #c0d9cc; }
.profile-summary-body { padding: 0 30px 24px; }
.profile-identity-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; min-height: 84px; }
.profile-avatar { display: grid; place-items: center; flex: 0 0 110px; height: 110px; margin-top: -48px; position: relative; border: 5px solid white; border-radius: 50%; background: #d8eae2; color: #2b6558; font-size: 40px; font-weight: 750; }
.profile-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px; padding-top: 18px; }
.profile-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 10px 17px; border: 1px solid #acc5be; border-radius: 24px; background: white; color: var(--profile-ink); font-size: 13px; font-weight: 650; line-height: 1.5; text-decoration: none; cursor: pointer; text-align: center; }
.profile-page a.profile-button, .profile-surface a.profile-button { color: var(--profile-ink); }
.profile-button:hover { background: #edf5f1; }
.profile-button:disabled { opacity: .6; cursor: wait; }
.profile-page a.profile-button-primary, .profile-surface a.profile-button-primary { background: var(--profile-teal); border-color: var(--profile-teal); color: white; }
.profile-page a.profile-button-primary:hover, .profile-surface a.profile-button-primary:hover { background: #10675e; }
.profile-eyebrow { display: flex; align-items: center; gap: 12px; margin: 8px 0; font-size: 10px; font-weight: 750; letter-spacing: 1.7px; color: var(--profile-teal); }
.profile-state { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #c9d8d1; border-radius: 20px; padding: 2px 8px; font-size: 10px; letter-spacing: 0; color: #586e65; background: #f3f6f4; }
.profile-state::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.profile-state.is-published { color: #216749; background: #edf7f0; border-color: #b9d6c4; }
.profile-surface .profile-name { font-size: clamp(25px, 3vw, 32px); line-height: 1.5; letter-spacing: -.6px; margin: 0 0 12px; overflow-wrap: anywhere; }
.profile-surface .collection-introduction { max-width: 70ch; color: var(--profile-ink); font-size: 14px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0 0 16px; }
.profile-muted { color: var(--profile-muted); font-size: 14px; margin: 0 0 16px; }
.profile-surface .collection-total { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; margin: 18px 0 0; color: var(--profile-muted); font-size: 12px; }
.profile-surface .collection-total > span:first-child { color: var(--profile-ink); font-size: 19px; font-weight: 750; }
.profile-surface .profile-total-label { margin-left: 7px; color: var(--profile-muted); font-size: 12px; font-weight: 400; }
.profile-open-public { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 6px; font-size: 12px; }
.profile-open-public > span:first-child { font-size: 10px; }
.profile-share-details { margin: 14px 0 0; max-width: 680px; font-size: 12px; color: var(--profile-muted); }
.profile-share-details summary { display: list-item; width: fit-content; padding: 13px 4px 13px 0; min-height: 44px; color: var(--profile-teal); cursor: pointer; }
.profile-share-details label { display: block; margin: 8px 0; font-weight: 600; }
.profile-share-details input { display: block; width: 100%; min-height: 44px; padding: 11px 12px; border: 1px solid #b7cac3; border-radius: 8px; background: #f5f8f6; color: var(--profile-ink); font: inherit; }
.profile-share-details p { margin: 9px 0 0; }
.profile-copy-status { color: var(--profile-teal); font-size: 12px; margin: 8px 0 0; overflow-wrap: anywhere; }
.profile-copy-status:empty { display: none; }
.profile-notice { margin: 20px 0 0; padding: 13px 16px; border: 1px solid #e3d8b7; border-radius: 10px; background: #fffaf0; color: #725a26; }
.profile-notice p { margin: 0; font-size: 12px; line-height: 1.9; overflow-wrap: anywhere; }
.profile-notice a { display: inline-block; font-weight: 650; }
.profile-gallery { padding: 0 30px 30px; }
.profile-gallery-heading { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--profile-line); border-bottom: 1px solid var(--profile-line); margin-bottom: 24px; }
.profile-gallery-heading h2 { font-size: 15px; margin: 0; min-height: 58px; padding: 20px 0 17px; border-bottom: 3px solid var(--profile-teal); line-height: 1.5; }
.profile-gallery-count { padding: 3px 8px; border-radius: 20px; background: #eef4f1; color: var(--profile-muted); font-size: 11px; }
.profile-surface .collection-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px; }
.profile-surface .collection-card { min-width: 0; border: 1px solid var(--profile-line); border-radius: 12px; background: white; overflow: hidden; }
.profile-surface .collection-image { position: relative; aspect-ratio: 1; background: #edf2ef; display: grid; place-items: center; overflow: hidden; }
.profile-surface .collection-image img { display: block; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; padding: 12px; }
.profile-surface .photo-placeholder { display: grid; gap: 9px; padding: 14px; color: var(--profile-muted); text-align: center; font-size: 12px; line-height: 1.6; }
.profile-surface .photo-placeholder > span:first-child { font-size: 44px; line-height: 1; color: #839e93; }
.profile-surface .collection-card-body { padding: 17px; }
.profile-surface .kind-label { display: inline-block; margin-bottom: 9px; padding: 3px 7px; border-radius: 5px; background: #eaf5ef; color: #316654; font-size: 10px; line-height: 1.6; }
.profile-surface .collection-card h3 { margin: 0; font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.profile-surface .collection-caption { color: var(--profile-muted); font-size: 12px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; margin: 9px 0 0; }
.profile-empty { text-align: center; padding: 42px 18px; border: 1px dashed #bdcec5; border-radius: 12px; background: #f7faf8; }
.profile-empty > span { display: block; margin-bottom: 15px; color: #6e9685; font-size: 38px; }
.profile-empty h3 { font-size: 16px; line-height: 1.7; margin: 0 0 9px; overflow-wrap: anywhere; }
.profile-empty p { margin: 0 0 22px; color: var(--profile-muted); font-size: 12px; }
.profile-footer { padding: 8px 20px 32px; color: var(--profile-muted); text-align: center; font-size: 12px; }
.profile-footer p { margin: 0; }
.profile-footer a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.profile-public-bar { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 72px; padding: 12px max(24px, calc((100% - 1032px) / 2)); background: var(--profile-navy); color: #eef7f2; }
.profile-public-label { font-size: 10px; letter-spacing: 2px; color: #a2dfca; }
.profile-public-main { width: min(1032px, calc(100% - 48px)); margin: 32px auto; }
.preview-dialog .profile-surface { border: 0; border-radius: 0; }
.preview-dialog .profile-eyebrow { margin-top: 14px; }

@media (max-width: 1100px) {
  .profile-layout { grid-template-columns: 205px minmax(0, 1fr); }
  .profile-owner-content { width: calc(100% - 40px); }
  .profile-summary-body { padding-left: 24px; padding-right: 24px; }
  .profile-gallery { padding-left: 24px; padding-right: 24px; }
  .profile-owner .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .profile-layout { display: block; }
  .profile-topbar { min-height: 66px; padding: 10px 20px; gap: 18px; }
  .profile-topbar > div { gap: 6px; flex-direction: column; align-items: flex-start; }
  .profile-breadcrumb { border: 0; padding: 0; }
  .profile-owner-content { margin-top: 24px; }
  .profile-surface .collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .profile-cover { height: 160px; }
}
@media (max-width: 540px) {
  .profile-owner-content, .profile-public-main { width: 100%; margin: 0 auto 24px; }
  .profile-surface { border-radius: 0; border-width: 0 0 1px; }
  .profile-summary-body { padding: 0 18px 20px; }
  .profile-gallery { padding: 0 18px 24px; }
  .profile-cover { height: 136px; }
  .profile-cover > span { right: 20px; bottom: 20px; font-size: 10px; }
  .profile-avatar { flex-basis: 88px; height: 88px; margin-top: -36px; border-width: 4px; font-size: 32px; }
  .profile-identity-row { min-height: 74px; gap: 12px; }
  .profile-actions { gap: 7px; padding-top: 14px; }
  .profile-button { padding: 9px 13px; font-size: 12px; }
  .profile-owner .profile-identity-row { flex-wrap: wrap; }
  .profile-owner .profile-actions { flex: 1 0 190px; }
  .profile-eyebrow { margin-top: 14px; }
  .profile-surface .profile-name { font-size: 25px; }
  .profile-surface .collection-introduction { font-size: 13px; }
  .profile-surface .collection-grid { gap: 12px; }
  .profile-surface .collection-card-body { padding: 13px; }
  .profile-surface .collection-card h3 { font-size: 13px; }
  .profile-surface .collection-caption { font-size: 12px; }
  .profile-gallery-heading { margin-bottom: 18px; }
  .profile-gallery-heading h2 { font-size: 14px; }
  .profile-public-bar { min-height: 64px; padding: 10px 18px; }
  .profile-public-bar .profile-brand { font-size: 17px; }
  .profile-footer { padding-bottom: 24px; }
}
@media (max-width: 359px) {
  .profile-surface .collection-grid { grid-template-columns: 1fr; }
  .profile-owner .profile-actions { flex-basis: 100%; padding: 0; justify-content: flex-start; }
  .profile-surface .profile-total-label { flex-basis: 100%; margin-left: 0; }
}
