* { box-sizing: border-box; }
body { margin: 0; background: #e9f1fc; color: #1c1c1e; font: 14px/1.45 "Helvetica Neue", system-ui, sans-serif; }
header { display: flex; align-items: center; gap: 18px; padding: 10px 20px; background: #1c1c1e; color: #fff; }
header a { color: #fff; text-decoration: none; margin-right: 14px; }
header a[aria-current] { text-decoration: underline; }
header .quiet { color: #fff; border-color: #636366; background: none; }
main { max-width: 1100px; margin: 0 auto; padding: 24px 20px; }
h1, h2 { margin: 0 0 8px; }
h2 { font-size: 16px; }
form { margin: 0; }
input { font: inherit; padding: 8px 10px; border: 1px solid #d1d1d6; border-radius: 8px; background: #fff; }
button { font: inherit; font-weight: 600; cursor: pointer; padding: 8px 14px; border: 1px solid transparent; border-radius: 8px; background: #1c1c1e; color: #fff; }
button.quiet { background: #fff; color: #1c1c1e; border-color: #d1d1d6; font-weight: 400; padding: 4px 10px; }
button.danger { background: #ff3b30; }
summary { cursor: pointer; padding: 4px 2px; }
summary.danger { color: #c0271d; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0; }
.grow { flex: 1; min-width: 0; }
.spacer { flex: 1; }
.muted { color: #636366; }
.error { color: #c0271d; font-weight: 600; }
.card { background: #fff; border: 1px solid #e4e4e7; border-radius: 12px; }
.auth { max-width: 360px; margin: 8vh auto 0; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.auth label { display: flex; flex-direction: column; gap: 4px; color: #636366; }
.auth a { color: #636366; text-align: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-top: 18px; }
.project { display: flex; flex-direction: column; gap: 6px; padding: 18px; color: inherit; text-decoration: none; }
.actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; padding: 10px 14px; border-top: 1px solid #f0f0f3; }
.columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; align-items: start; }
.tree { list-style: none; margin: 0; padding-left: 18px; border-left: 1px solid #c7c7cc; }
.off { text-decoration: line-through; color: #8e8e93; }
.tag { font-size: 10px; font-weight: 600; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; background: #ededf0; color: #636366; }
.section { margin-top: 32px; }
.search input { width: 260px; max-width: 40vw; padding: 5px 10px; }
.blurb { font-size: 13px; overflow-wrap: anywhere; }
.details { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
textarea { font: inherit; padding: 8px 10px; border: 1px solid #d1d1d6; border-radius: 8px; resize: vertical; }
header { flex-wrap: wrap; }

/* iPad: pulling past the top must not open a light gap above the header.
   The first rule stops the bounce; the second keeps the gap header-coloured
   where Safari bounces anyway. */
html, body { overscroll-behavior-y: none; }
header { position: relative; }
header::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 100vh; background: #1c1c1e; }

header .logo { font-weight: 700; margin: 0; }
header form .create { background: none; color: #fff; border: 1px solid #8e8e93; padding: 4px 12px; margin-right: 14px; }
header nav { display: flex; align-items: center; }
.shot { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #f4f4f6; border-radius: 6px; }
.button { display: inline-block; text-decoration: none; font-weight: 600; padding: 8px 14px; border-radius: 8px; background: #1c1c1e; color: #fff; }
.button.quiet { background: #fff; color: #1c1c1e; border: 1px solid #d1d1d6; font-weight: 400; padding: 4px 10px; }
.notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; margin-bottom: 16px; background: #fff4de; border: 1px solid #f0d9a8; border-radius: 8px; }
.title-row { margin-bottom: 14px; }
.title-row h1 { overflow-wrap: anywhere; }
.project-page { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px; }
.project-page .stage { width: 562px; max-width: 100%; height: 468px; border: 1px solid #d1d1d6; border-radius: 8px; background: #fff; }
.project-page .details { flex: 1; min-width: 280px; margin-top: 0; }
.details label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.details label input, .details label textarea { font-weight: 400; }
.text { margin: 0 0 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment { padding: 6px 14px; margin-top: 10px; }
.comment .text { margin-bottom: 6px; }
.project-page .stage.maximized { position: fixed; top: 0; left: 0; width: 100%; height: 100%; max-width: none; z-index: 1000; border: 0; border-radius: 0; }
