:root {
  color-scheme: light;
  --paper: #fffaf2;
  --paper-deep: #fff1dd;
  --card: #ffffff;
  --ink: #24212b;
  --ink-soft: #5a5662;
  --muted: #77717c;
  --coral: #f05b48;
  --coral-dark: #c83e35;
  --blue: #596fe8;
  --mint: #c9f0dd;
  --yellow: #ffd86a;
  --line: #eee6dc;
  --shadow: 0 12px 32px rgba(49, 37, 28, 0.08), 0 2px 6px rgba(49, 37, 28, 0.04);
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
button, a { -webkit-tap-highlight-color: transparent; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 25px 20px 30px;
  background:
    radial-gradient(ellipse at 13% 14%, rgba(255, 216, 106, 0.45), transparent 30%),
    radial-gradient(ellipse at 89% 17%, rgba(201, 240, 221, 0.85), transparent 31%),
    linear-gradient(160deg, #fffdf8 4%, #fff5e8 100%);
  border-bottom: 1px solid #f0e6d8;
}
.hero-layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: clamp(28px, 4vw, 58px); width: min(100%, 1240px); margin: 0 auto; }
.hero-inner { position: relative; z-index: 1; width: 100%; max-width: 520px; text-align: left; }
.hero-cover { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border: 1px solid rgba(255, 255, 255, 0.88); border-radius: 27px; box-shadow: 0 20px 55px rgba(70, 45, 36, 0.15), 0 3px 10px rgba(70, 45, 36, 0.08); }
.eyebrow, .section-kicker { margin: 0; color: var(--coral-dark); font-size: 0.875rem; font-weight: 900; letter-spacing: 0.11em; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid rgba(240, 91, 72, 0.18); border-radius: 999px; background: rgba(255, 255, 255, 0.76); }
.eyebrow-mark { color: var(--coral); font-size: 1rem; }
h1 { margin: 8px 0 10px; font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1.2; font-weight: 900; letter-spacing: 0.015em; }
h1 span { color: var(--coral-dark); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 0.18em; text-underline-offset: 0.13em; }
.mobile-break { display: none; }
.intro { max-width: 480px; margin: 0; font-size: clamp(1rem, 1.65vw, 1.2rem); font-weight: 700; }
.intro-note { max-width: 680px; margin: 8px auto 0; color: var(--ink-soft); }
.hero-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 9px 18px; border-radius: 999px; background: var(--ink); color: white; font-weight: 700; text-decoration: none; transition: transform 160ms ease, background 160ms ease; }
.hero-link:hover { transform: translateY(-2px); background: #393440; }
.hero-post-button { display: inline-flex; align-items: center; gap: 9px; margin-top: 12px; padding: 9px 20px; border: 0; border-radius: 999px; background: var(--coral); color: #fff; font: inherit; font-weight: 900; cursor: pointer; box-shadow: 0 4px 0 #d84a3d; transition: transform 160ms ease, box-shadow 160ms ease; }
.hero-post-button:hover { transform: translateY(2px); box-shadow: 0 2px 0 #d84a3d; }
.hero-decoration { position: absolute; width: 210px; height: 210px; border: 1px dashed rgba(89, 111, 232, 0.23); border-radius: 48% 52% 62% 38% / 43% 43% 57% 57%; transform: rotate(25deg); }
.hero-decoration-one { left: -85px; bottom: -104px; }
.hero-decoration-two { right: -68px; top: -126px; width: 250px; height: 250px; border-color: rgba(240, 91, 72, 0.24); transform: rotate(-20deg); }
.hero-sparkle { position: absolute; color: var(--blue); font-size: 1.45rem; animation: twinkle 3s ease-in-out infinite; }
.sparkle-a { top: 26%; left: 13%; color: var(--coral); }
.sparkle-b { right: 14%; top: 31%; color: #39a980; font-size: 1.7rem; animation-delay: 0.7s; }
.sparkle-c { right: 24%; bottom: 13%; color: #e2a700; animation-delay: 1.3s; }
@keyframes twinkle { 0%, 100% { transform: scale(0.8) rotate(-12deg); opacity: 0.7; } 50% { transform: scale(1.12) rotate(12deg); opacity: 1; } }

main { width: min(100% - 40px, 1160px); margin: 0 auto; padding: 48px 0 66px; }
.works-section { scroll-margin-top: 20px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.section-kicker { font-size: 0.75rem; }
h2 { margin: 2px 0 0; font-size: clamp(1.55rem, 3vw, 2rem); line-height: 1.35; font-weight: 900; }
.section-note { max-width: 620px; margin: 0 0 3px; color: var(--muted); }
.works-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 0 0 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255, 255, 255, 0.82); box-shadow: 0 5px 16px rgba(49, 37, 28, 0.045); }
.works-controls { display: flex; flex: 1 1 auto; flex-wrap: wrap; gap: 12px; min-width: 0; }
.works-control { display: grid; flex: 0 1 230px; gap: 3px; min-width: 170px; }
.works-control label { color: var(--ink-soft); font-size: 0.875rem; font-weight: 900; }
.works-control select { width: 100%; min-height: 42px; padding: 7px 34px 7px 11px; border: 1.5px solid #d9d2dc; border-radius: 11px; background: #fff; color: var(--ink); font: inherit; font-size: 0.9375rem; }
.works-control select:focus-visible { border-color: var(--blue); outline: 3px solid rgba(89, 111, 232, 0.15); }
.works-toolbar-action { display: flex; flex: 0 0 auto; align-items: center; justify-content: flex-end; gap: 13px; min-width: 0; }
.works-count { max-width: 460px; margin: 0; color: var(--ink-soft); font-size: 0.875rem; line-height: 1.45; text-align: right; }
.toolbar-post-button { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 8px; min-height: 44px; padding: 8px 17px; border: 0; border-radius: 999px; background: var(--coral); color: #fff; font: inherit; font-weight: 900; white-space: nowrap; cursor: pointer; box-shadow: 0 3px 0 #d84a3d; }
.toolbar-post-button:hover { transform: translateY(1px); background: var(--coral-dark); box-shadow: 0 2px 0 #b5342d; }
.toolbar-post-button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.works-encouragement { margin: 8px 0 18px; color: var(--muted); font-size: 0.9375rem; font-weight: 700; }
.reaction-note { margin: -10px 0 9px; color: var(--muted); font-size: 0.875rem; line-height: 1.55; }
.reaction-global-status { margin: 0 0 15px; padding: 8px 11px; border: 1px solid #ecd8a3; border-radius: 11px; background: #fff8df; color: #544410; font-size: 0.875rem; line-height: 1.5; }
.reaction-global-status[hidden] { display: none; }
.works-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.works-grid[aria-busy="true"] { opacity: 0.55; }
.load-state { min-height: 90px; display: grid; place-items: center; margin: 0; padding: 24px; border: 1px dashed #ddcfbd; border-radius: 22px; color: var(--ink-soft); text-align: center; background: rgba(255, 255, 255, 0.6); }
.load-state[hidden] { display: none; }

.work-card { min-width: 0; overflow: hidden; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 21px; background: var(--card); box-shadow: var(--shadow); transition: transform 180ms ease, box-shadow 180ms ease; }
.work-card:hover { transform: translateY(-4px); box-shadow: 0 17px 36px rgba(49, 37, 28, 0.12), 0 2px 6px rgba(49, 37, 28, 0.04); }
.work-media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; display: grid; place-items: center; background: linear-gradient(135deg, #fce8d9, #e6f7ee 53%, #e8ebff); }
.work-media::after { content: ""; position: absolute; inset: auto 0 0; height: 5px; background: linear-gradient(90deg, var(--coral), #f6b83d 48%, #53b98b 74%, var(--blue)); }
.work-media img, .work-media video { width: 100%; height: 100%; display: block; object-fit: cover; }
.work-media img { position: absolute; inset: 0; }
.work-media video { position: absolute; inset: 0; z-index: 1; background: #211f27; }
.media-placeholder { display: grid; place-items: center; width: 78px; height: 78px; border: 2px solid rgba(255, 255, 255, 0.88); border-radius: 29px; color: var(--coral-dark); background: rgba(255, 255, 255, 0.68); box-shadow: 0 7px 22px rgba(83, 56, 38, 0.11); font-size: 2.3rem; transform: rotate(-7deg); }
.media-file-placeholder { display: grid; place-items: center; width: 128px; height: 94px; border: 2px solid rgba(255, 255, 255, 0.9); border-radius: 25px; color: var(--coral-dark); background: rgba(255, 255, 255, 0.78); box-shadow: 0 7px 22px rgba(83, 56, 38, 0.11); font-size: 1.2rem; font-weight: 900; }
.media-fallback { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px; color: var(--ink-soft); text-align: center; }
.media-fallback-copy { font-size: 1rem; }
.media-fallback-link { color: var(--blue); font-weight: 900; text-underline-offset: 3px; }
.media-retry-button { padding: 5px 12px; border: 1px solid #cfc9d2; border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 0.9rem; font-weight: 800; cursor: pointer; }
.kind-badge { position: absolute; z-index: 2; top: 12px; left: 12px; padding: 3px 11px; border: 1px solid rgba(255, 255, 255, 0.9); border-radius: 999px; background: rgba(255, 255, 255, 0.92); color: var(--ink); font-size: 0.8125rem; font-weight: 700; }
.work-body { display: flex; flex: 1; flex-direction: column; padding: 17px 18px 18px; }
.work-date { margin: 0 0 4px; color: var(--muted); font-size: 0.875rem; }
.work-title { margin: 0; font-size: 1.22rem; line-height: 1.45; font-weight: 900; overflow-wrap: anywhere; }
.work-description { margin: 9px 0 14px; color: var(--ink-soft); font-size: 1rem; line-height: 1.75; overflow-wrap: anywhere; }
.author-box { display: flex; flex-direction: column; gap: 2px; margin-top: auto; padding: 12px 13px; border-radius: 14px; background: #f7f6ff; }
.author-identity { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.author-details { flex: 1; min-width: 0; }
.author-avatar { display: grid; flex: 0 0 48px; place-items: center; width: 48px; height: 48px; overflow: hidden; border: 2px solid #fff; border-radius: 50%; background: linear-gradient(135deg, #ffe0bd, #d9f3e6 56%, #dfe5ff); box-shadow: 0 2px 7px rgba(49, 37, 28, 0.12); }
.author-avatar-link { color: var(--coral-dark); text-decoration: none; }
.author-avatar-link:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.author-avatar-image { display: block; width: 44px; height: 44px; object-fit: cover; }
.author-avatar-fallback { display: grid; place-items: center; width: 100%; height: 100%; color: var(--ink); font-size: 1.25rem; font-weight: 900; }
.author-topline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.author-name { font-weight: 900; overflow-wrap: anywhere; }
.profile-link { color: #485bd0; font-size: 0.875rem; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.author-bio { margin: 2px 0 0; color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.6; }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 16px; margin-top: 13px; }
.reaction-panel { margin-top: 13px; padding-top: 12px; border-top: 1px solid #f0ebe5; }
.reaction-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.reaction-button { min-width: 0; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 6px 7px; border: 1px solid #e6dfd9; border-radius: 12px; background: #fffdfa; color: var(--ink-soft); font: inherit; font-size: 0.8125rem; font-weight: 800; line-height: 1.25; cursor: pointer; transition: border-color 140ms ease, background 140ms ease, color 140ms ease; }
.reaction-button:hover:not(:disabled) { border-color: #efb6a8; background: #fff5f1; }
.reaction-button:focus-visible, .reaction-retry:focus-visible { outline: 3px solid rgba(89, 111, 232, 0.2); outline-offset: 2px; }
.reaction-button.is-active { border-color: #f0a99c; background: #fff0ec; color: var(--coral-dark); }
.reaction-button:disabled { opacity: 0.58; cursor: not-allowed; }
.reaction-emoji { flex: 0 0 auto; font-size: 0.95rem; }
.reaction-label { min-width: 0; overflow-wrap: anywhere; }
.reaction-count { flex: 0 0 auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.reaction-status { min-height: 0; margin: 6px 0 0; color: var(--muted); font-size: 0.8125rem; line-height: 1.45; }
.reaction-status:empty { display: none; }
.reaction-retry { margin-top: 6px; padding: 4px 10px; border: 1px solid #d8d2dc; border-radius: 999px; background: #fff; color: var(--ink-soft); font: inherit; font-size: 0.8125rem; font-weight: 800; cursor: pointer; }
.reaction-retry:hover { border-color: #b9b2c6; background: #faf8ff; }
.reaction-retry[hidden] { display: none; }
.author-filter-button { padding: 6px 11px; border: 1px solid #d8d5ef; border-radius: 999px; background: #f7f6ff; color: #48467c; font: inherit; font-size: 0.875rem; font-weight: 800; cursor: pointer; }
.author-filter-button:hover { border-color: #aaa5dc; background: #efedff; }
.author-filter-button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.work-link { display: inline-flex; align-items: center; gap: 5px; padding: 8px 13px; border-radius: 999px; background: var(--coral); color: #fff; font-weight: 700; text-decoration: none; transition: background 160ms ease, transform 160ms ease; }
.work-link:hover { transform: translateY(-1px); background: var(--coral-dark); }
.source-link { color: var(--ink-soft); font-size: 0.9375rem; font-weight: 700; text-decoration-color: #bbb3bd; text-underline-offset: 4px; }
.work-link:focus-visible, .source-link:focus-visible, .profile-link:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.share-callout { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 26px; margin-top: 58px; padding: 26px 30px; border: 1px solid #f3c9a8; border-radius: 24px; background: linear-gradient(115deg, #fff1dc 0%, #fff8ef 54%, #eef9f2 100%); }
.share-callout::after { content: ""; position: absolute; width: 165px; height: 165px; right: 22%; top: -115px; border: 1px solid rgba(240, 91, 72, 0.18); border-radius: 50%; box-shadow: 0 0 0 16px rgba(240, 91, 72, 0.045), 0 0 0 32px rgba(240, 91, 72, 0.03); }
.callout-spark { position: absolute; right: 43%; bottom: 13px; color: #dfa900; font-size: 1.6rem; }
.callout-copy { position: relative; z-index: 1; max-width: 720px; }
.callout-copy h2 { font-size: clamp(1.35rem, 2.7vw, 1.75rem); }
.callout-copy p:last-child { margin: 8px 0 0; color: var(--ink-soft); }
.callout-actions { position: relative; z-index: 1; display: flex; flex: 0 0 auto; flex-direction: column; align-items: center; gap: 8px; }
.share-button { position: relative; z-index: 1; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border: 2px solid var(--ink); border-radius: 999px; background: var(--ink); color: white; font: inherit; font-weight: 900; text-decoration: none; cursor: pointer; box-shadow: 0 5px 0 #d5c2ae; transition: transform 160ms ease, box-shadow 160ms ease; }
.share-button:hover { transform: translateY(2px); box-shadow: 0 3px 0 #d5c2ae; }
.chat-link { color: var(--ink-soft); font-size: 0.9375rem; font-weight: 700; text-underline-offset: 4px; }

.submit-panel { display: block; margin-top: 22px; padding: 26px 30px 30px; border: 1px solid var(--line); border-radius: 24px; background: var(--card); box-shadow: var(--shadow); scroll-margin-top: 18px; }
.submit-panel[hidden] { display: none; }
.submit-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.submit-heading h2 { max-width: 760px; }
.close-submit { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--ink-soft); font: inherit; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.close-submit:hover { border-color: var(--coral); color: var(--coral-dark); }
.submit-intro { margin: 8px 0 18px; color: var(--ink-soft); }
.api-notice, .submit-status { margin: 12px 0; padding: 11px 14px; border: 1px solid #ecd8a3; border-radius: 12px; background: #fff8df; color: #544410; }
.submit-status.is-error { border-color: #efb9b0; background: #fff0ee; color: #8c2a22; }
.submit-status.is-success { border-color: #b8dfc9; background: #edfff4; color: #245e3e; }
.api-notice[hidden], .submit-status[hidden] { display: none; }
.upload-resume { margin: 14px 0; padding: 15px 16px; border: 1px solid #c8ddf4; border-radius: 15px; background: #f3f8ff; }
.upload-resume[hidden] { display: none; }
.upload-resume h3 { margin: 0 0 8px; font-size: 1.05rem; }
.upload-resume-list { display: grid; gap: 9px; }
.upload-resume-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 12px; border-radius: 11px; background: #fff; }
.upload-resume-copy { min-width: 0; }
.upload-resume-title { display: block; overflow-wrap: anywhere; font-weight: 900; }
.upload-resume-note { display: block; color: var(--ink-soft); font-size: 0.9375rem; }
.upload-resume-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 7px; }
.upload-resume-actions button { min-height: 40px; padding: 6px 13px; }
.ai-prompt-panel[hidden], .manual-entry-toolbar[hidden], #submit-form[hidden] { display: none; }
.prompt-heading { margin: 0 0 5px; font-size: 1.2rem; line-height: 1.4; font-weight: 900; }
.prompt-steps { margin: 8px 0 12px; padding-left: 1.5em; color: var(--ink-soft); }
.prompt-steps li { padding-left: 0.15em; }
.prompt-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 13px; }
.prompt-actions button { min-height: 46px; }
.prompt-label { display: block; margin: 0 0 5px; font-weight: 900; }
.prompt-textarea { display: block; width: 100%; min-height: 150px; max-height: 42vh; resize: vertical; padding: 12px 13px; border: 1.5px solid #d9d2dc; border-radius: 13px; background: #fffdf9; color: var(--ink-soft); font: 0.9rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; }
.prompt-textarea:focus { border-color: var(--blue); outline: 3px solid rgba(89, 111, 232, 0.15); }
.prompt-status { margin: 10px 0 0; padding: 10px 13px; border: 1px solid #b8dfc9; border-radius: 12px; background: #edfff4; color: #245e3e; }
.prompt-status[hidden] { display: none; }
.manual-entry-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0; padding: 13px 15px; border: 1px solid var(--line); border-radius: 14px; background: #faf8f4; }
.manual-entry-toolbar p { margin: 0; color: var(--ink-soft); }
.entry-mode-switch { min-width: 0; margin: 0 0 17px; padding: 13px 15px 11px; border: 1px solid var(--line); border-radius: 14px; background: #fffdf9; }
.entry-mode-switch legend { padding: 0 5px; font-weight: 900; }
.entry-mode-options { display: flex; flex-wrap: wrap; gap: 8px; }
.entry-mode-option { position: relative; display: inline-flex; cursor: pointer; }
.entry-mode-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.entry-mode-option span { display: inline-flex; align-items: center; min-height: 42px; padding: 7px 16px; border: 1.5px solid #d9d2dc; border-radius: 999px; background: #fff; color: var(--ink-soft); font-weight: 800; }
.entry-mode-option input:checked + span { border-color: var(--coral); background: #fff1ed; color: var(--coral-dark); }
.entry-mode-option input:focus-visible + span { outline: 3px solid rgba(89, 111, 232, 0.22); outline-offset: 3px; }
.entry-mode-switch > .field-help { margin-bottom: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.optional-links { margin: 15px 0 0; padding: 13px 15px; border: 1px solid var(--line); border-radius: 14px; background: #fffdf9; }
.optional-links summary { width: fit-content; color: var(--ink-soft); font-weight: 900; cursor: pointer; text-underline-offset: 3px; }
.optional-links summary:focus-visible { outline: 3px solid rgba(89, 111, 232, 0.2); outline-offset: 4px; border-radius: 4px; }
.optional-links-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin-top: 12px; }
.optional-links-note { margin: 9px 0 0; color: var(--muted); font-size: 0.875rem; }
.form-field { min-width: 0; }
.form-field-wide { grid-column: 1 / -1; }
.form-field label { display: block; margin-bottom: 5px; font-weight: 900; }
.required-tag, .optional-tag { display: inline-block; margin-left: 5px; padding: 1px 7px; border-radius: 999px; background: #fff0ec; color: var(--coral-dark); font-size: 0.8125rem; font-weight: 700; vertical-align: 0.08em; }
.optional-tag { background: #f1efff; color: #4c4e91; }
.form-field input, .form-field textarea { width: 100%; min-width: 0; padding: 11px 12px; border: 1.5px solid #d9d2dc; border-radius: 12px; background: #fff; color: var(--ink); font: inherit; line-height: 1.5; }
.form-field input[type="file"] { padding: 9px 11px; background: #fffdf9; }
.form-field input[type="file"]::file-selector-button { margin-right: 10px; padding: 7px 12px; border: 0; border-radius: 999px; background: var(--paper-deep); color: var(--ink); font: inherit; font-weight: 800; cursor: pointer; }
.file-preview { margin-top: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #faf8f4; color: var(--ink-soft); overflow-wrap: anywhere; }
.file-preview[hidden] { display: none; }
.file-preview video { display: block; width: min(100%, 560px); max-height: 315px; margin-top: 8px; border-radius: 8px; background: #211f27; }
.file-preview-name { display: block; font-weight: 700; }
.file-technical-help { margin-top: 6px; color: var(--muted); font-size: 0.9rem; }
.file-technical-help summary { width: fit-content; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.file-technical-help p { margin: 5px 0 0; }
.form-field textarea { min-height: 110px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus { border-color: var(--blue); outline: 3px solid rgba(89, 111, 232, 0.15); }
.form-field [aria-invalid="true"] { border-color: #c83e35; }
.field-help, .field-error { display: block; margin-top: 4px; color: var(--muted); font-size: 0.9375rem; line-height: 1.5; }
.field-error { color: #a62e26; font-weight: 700; }
.field-error[hidden] { display: none; }
.consent-field { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; margin-top: 18px; padding: 15px 16px; border: 1px solid #dfe8df; border-radius: 14px; background: #f6fbf6; }
.consent-field input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--coral); }
.consent-field label { display: block; font-weight: 700; line-height: 1.55; }
.consent-field [aria-invalid="true"] { outline: 2px solid #c83e35; outline-offset: 2px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.submit-button, .cancel-button { min-height: 46px; padding: 9px 20px; border: 2px solid var(--coral); border-radius: 999px; background: var(--coral); color: white; font: inherit; font-weight: 900; cursor: pointer; }
.submit-button:hover:not(:disabled) { background: var(--coral-dark); border-color: var(--coral-dark); }
.submit-button:disabled { opacity: 0.48; cursor: not-allowed; }
.cancel-button { border-color: var(--line); background: white; color: var(--ink-soft); }
.remove-post-button { padding: 7px 12px; border: 1px solid #e6c0bb; border-radius: 999px; background: #fff8f7; color: #8e3931; font: inherit; font-size: 0.9375rem; font-weight: 700; cursor: pointer; }
.remove-post-button:hover:not(:disabled) { background: #ffefec; }
.remove-post-button:disabled { opacity: 0.6; cursor: wait; }
.remove-confirmation { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; padding: 10px 12px; border: 1px solid #e6c0bb; border-radius: 14px; background: #fff8f7; }
.remove-confirmation[hidden] { display: none; }
.remove-confirmation-copy { flex-basis: 100%; margin: 0; color: #6d332d; font-weight: 700; }
.remove-cancel-button { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink-soft); font: inherit; font-size: 0.9375rem; font-weight: 700; cursor: pointer; }
.remove-cancel-button:disabled { opacity: 0.6; cursor: wait; }
.more-works-row { display: flex; justify-content: center; margin-top: 24px; }
.more-works-row[hidden] { display: none; }
.more-works-button { padding: 9px 20px; border: 1.5px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.more-works-button:hover:not(:disabled) { background: var(--paper-deep); }
.more-works-button:disabled { opacity: 0.6; cursor: wait; }

.creation-guide { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 27px; padding: 17px 2px 4px; border-top: 1px solid var(--line); }
.creation-guide-title { margin: 0; font-size: 1.12rem; line-height: 1.45; font-weight: 900; }
.creation-guide p { margin: 4px 0 0; color: var(--muted); font-size: 0.9375rem; line-height: 1.6; }
.creation-guide-link { flex: 0 0 auto; color: var(--ink-soft); font-size: 0.9375rem; font-weight: 700; text-underline-offset: 4px; }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: min(100% - 40px, 1160px); margin: 0 auto; padding: 0 0 27px; color: var(--muted); font-size: 0.9375rem; }
.site-footer p { margin: 0; }
.footer-mark { color: var(--ink-soft); font-weight: 700; }
.footer-mark span { color: var(--coral); }

@media (max-width: 760px) {
  .hero { padding: 24px 16px 27px; }
  .hero-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; width: min(100%, 620px); }
  .hero-inner { max-width: none; }
  .hero h1 { font-size: clamp(1.7rem, 6vw, 2.45rem); }
  .hero .intro { max-width: 560px; font-size: 1rem; }
  .hero-cover { border-radius: 20px; }
}

@media (max-width: 920px) {
  .works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .share-callout { align-items: flex-start; }
  .share-button { align-self: center; }
}
@media (max-width: 680px) {
  .hero { min-height: 0; padding: 20px 16px 25px; }
  h1 { font-size: clamp(1.7rem, 6.2vw, 2.4rem); }
  .intro { font-size: 1rem; }
  .hero-post-button { margin-top: 10px; }
  .hero-sparkle { opacity: 0.55; }
  .sparkle-a { left: 7%; top: 19%; }
  .sparkle-b { right: 7%; top: 24%; }
  .sparkle-c { right: 12%; bottom: 10%; }
  .mobile-break { display: block; }
  main { width: min(100% - 32px, 560px); padding: 37px 0 48px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 5px; margin-bottom: 17px; }
  .works-toolbar { align-items: stretch; flex-direction: column; gap: 13px; padding: 14px; }
  .works-controls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .works-control { min-width: 0; }
  .works-toolbar-action { align-items: stretch; flex-direction: column; gap: 10px; }
  .works-count { text-align: left; }
  .toolbar-post-button { justify-content: center; width: 100%; }
  .works-encouragement { margin-bottom: 15px; }
  .works-grid { grid-template-columns: minmax(0, 1fr); gap: 17px; }
  .work-body { padding: 16px; }
  .creation-guide { align-items: flex-start; flex-direction: column; gap: 8px; margin-top: 20px; }
  .share-callout { flex-direction: column; align-items: stretch; gap: 15px; margin-top: 40px; padding: 22px 19px; }
  .callout-actions { align-items: stretch; }
  .share-button { align-self: stretch; justify-content: center; }
  .callout-spark { right: 12px; bottom: auto; top: 16px; }
  .share-callout::after { right: -15px; top: -110px; }
  .submit-panel { padding: 21px 16px 22px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); gap: 13px; }
  .optional-links { padding: 12px; }
  .optional-links-grid { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .form-field-wide { grid-column: auto; }
  .form-actions { flex-direction: column; }
  .form-actions button { width: 100%; }
  .prompt-actions { flex-direction: column; }
  .prompt-actions button { width: 100%; }
  .manual-entry-toolbar { align-items: stretch; flex-direction: column; }
  .upload-resume-item { align-items: stretch; flex-direction: column; gap: 8px; }
  .upload-resume-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .upload-resume-actions button { width: 100%; }
  .entry-mode-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entry-mode-option span { justify-content: center; width: 100%; }
  .site-footer { align-items: flex-start; flex-direction: column; width: min(100% - 32px, 560px); padding-bottom: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
