:root {
    --paper: #f5f1e8;
    --surface: #fffefa;
    --ink: #182622;
    --muted: #52625b;
    --border: #d1d5cc;
    --green: #164e45;
    --link: #176b87;
    --highlight: #d59a45;
    --error: #a33a32;
}
* { box-sizing: border-box; }
html { font-size: 16px; scroll-padding-top: 24px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
button, input, select, textarea { font: inherit; }
button, input, select, textarea, .button { border-radius: 3px; }
button, .button { min-height: 44px; padding: 9px 16px; border: 1px solid var(--green); background: transparent; color: var(--green); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; line-height: 1.45; }
button:hover, .button:hover { background: #e6e8de; }
button.primary, .button.primary { background: var(--green); color: var(--surface); border-color: var(--green); }
button.primary:hover, .button.primary:hover { background: #0d3b33; }
button:disabled, .button[aria-disabled="true"] { color: #65736b; border-color: #9da89e; background: #e5e6df; cursor: wait; }
input, select, textarea { width: 100%; min-height: 44px; padding: 9px 12px; color: var(--ink); background: var(--surface); border: 1px solid #89988e; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: #64716b; opacity: 1; }
input[type="checkbox"] { width: 20px; min-height: 20px; height: 20px; padding: 0; accent-color: var(--green); flex: 0 0 auto; }
[aria-invalid="true"] { border-color: var(--error); }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
a { color: var(--link); text-underline-offset: 3px; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
a:visited { color: #53577c; }
.button:visited { color: var(--green); }
.button.primary:visited { color: var(--surface); }
h1, h2, h3, p, ul, ol, dl { margin: 0 0 16px; }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: 38px; font-weight: 400; line-height: 1.2; letter-spacing: -.025em; overflow-wrap: anywhere; }
h2 { font-size: 23px; line-height: 1.3; font-weight: 600; }
h3 { font-size: 18px; line-height: 1.4; font-weight: 600; }
p, li, dd { overflow-wrap: anywhere; }
small, .small, .quiet, .footnote { font-size: 14px; }
small, .quiet, .footnote, .field-help { color: var(--muted); }
small { display: block; margin-top: 6px; }
.field-error { color: var(--error); }
hr { border: 0; border-top: 1px solid var(--border); margin: 24px 0; }
[hidden] { display: none !important; }
.wrap { max-width: 1024px; padding-left: 32px; padding-right: 32px; margin-left: auto; margin-right: auto; }
.reading { max-width: 680px; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 100px; position: relative; }
.site-header::after, .site-footer::before { content: ""; position: absolute; left: 32px; right: 32px; height: 1px; background: var(--border); }
.site-header::after { bottom: 0; }
.wordmark { color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 29px; text-decoration: none; line-height: 1.2; }
.wordmark:visited { color: var(--ink); }
.wordmark span { color: var(--green); }
.site-header nav, .site-footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 24px; }
.site-header nav a { color: var(--muted); text-decoration: none; padding: 10px 0; font-size: 15px; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--green); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 7px; }
main { min-height: calc(100vh - 238px); padding-top: 48px; padding-bottom: 56px; }
.site-footer { position: relative; min-height: 116px; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 14px; padding-top: 24px; padding-bottom: 24px; }
.site-footer::before { top: 0; }
.site-footer a { color: var(--muted); }
#global-sharing-status:empty { display: none; }
#global-sharing-status, #sharing-status { min-width: 0; }
.error-details-toggle { min-width: 36px; min-height: 36px; padding: 2px 6px; margin-left: 4px; border: 0; color: var(--link); font-size: 19px; font-weight: 400; vertical-align: middle; }
.error-details-panel { display: block; margin-top: 10px; padding: 12px 14px; border: 1px solid var(--border); background: var(--surface); color: var(--ink); font: 13px/1.6 ui-monospace, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; text-align: left; }
@media (pointer: coarse) { .error-details-toggle { min-width: 44px; min-height: 44px; } }
.lead { font-size: 18px; line-height: 1.6; color: var(--muted); margin-bottom: 24px; }
.intro { padding-top: 8px; }
.intro h1 { font-size: 42px; }
.actions, .project-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
.section-space { margin-top: 40px; }
.section-heading, .project-row-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 24px; }
.section-heading h2 { margin-bottom: 16px; }
.section-heading > a { font-size: 14px; }
.search-form { display: flex; align-items: end; gap: 12px; margin-bottom: 24px; }
.search-form > input, .search-field { flex: 1; min-width: 0; }
.search-form > button { flex-shrink: 0; }
.search-field label { display: block; margin-bottom: 8px; font-size: 14px; }
.project-list, .copy-list, .link-list, .offer-list { list-style: none; padding: 0; margin: 0; }
.project-list > li, .copy-list > li, .offer-list > li { padding: 20px 0; border-top: 1px solid var(--border); }
.project-list > li:last-child, .copy-list > li:last-child, .offer-list > li:last-child { border-bottom: 1px solid var(--border); }
.project-list h3, .copy-list h3 { margin-bottom: 6px; font-size: 19px; }
.project-list p { margin-bottom: 8px; max-width: 660px; }
.project-row-heading h3 { min-width: 0; }
.project-name-line, .project-title-line { display: flex; align-items: baseline; gap: 4px 14px; min-width: 0; }
.project-name-line h3, .project-title-line h1 { min-width: 0; }
.report-form { display: inline-flex; flex-shrink: 0; }
.report-button { min-height: 36px; padding: 5px 0; color: var(--muted); font-size: 13px; }
.availability { color: var(--muted); font-size: 14px; flex-shrink: 0; }
.is-available { color: var(--green); }
.is-available::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--green); vertical-align: 1px; }
.project-address { display: block; }
.empty { padding: 24px 0; border-top: 1px solid var(--border); }
.empty p { color: var(--muted); max-width: 620px; }
.footnote { margin-top: 32px; margin-bottom: 0; }
.back-link { display: inline-block; margin-bottom: 20px; font-size: 14px; }
.field { margin-bottom: 24px; }
.field > label, .field-label { display: block; margin-bottom: 8px; font-weight: 600; }
.field label .quiet { font-weight: 400; }
.compact-field select { max-width: 110px; }
fieldset { border: 0; border-top: 1px solid var(--border); padding: 20px 0 0; margin: 0 0 32px; min-width: 0; }
legend { padding: 0 12px 0 0; font-size: 21px; font-weight: 600; }
.field-help { margin-top: -4px; font-size: 14px; }
.template-download { margin: 18px 0 24px; }
.repeat-row { margin-bottom: 16px; }
.repeat-row-line { display: flex; gap: 12px; align-items: center; }
.repeat-row-line input { flex: 1; min-width: 0; }
.repeat-row-line button { flex-shrink: 0; }
.repeat-row > label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 600; }
.check-label { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; }
.link-type-options { display: grid; gap: 4px; }
.link-type-options .check-label { display: grid; grid-template-columns: 20px 64px minmax(0, 1fr); gap: 12px; min-height: 40px; margin: 0; cursor: pointer; }
.imported-links { margin-top: 24px; }
.imported-links-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.imported-links-heading h2 { margin-bottom: 4px; }
.imported-link-rows, .creation-link-review { list-style: none; padding: 0; margin: 20px 0; border-top: 1px solid var(--border); }
.imported-link-rows li { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.imported-link-text, .creation-link-review li { display: grid; gap: 3px; min-width: 0; }
.imported-link-text > span, .creation-link-review li > span { overflow-wrap: anywhere; }
.creation-link-review li { padding: 12px 0; border-bottom: 1px solid var(--border); }
.domain-suggestions { margin-bottom: 0; }
.domain-suggestions h2 { margin-bottom: 8px; }
.domain-suggestions .check-label { margin: 10px 0; }
.notice { padding: 20px 24px; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--highlight); margin: 24px 0; }
.notice h2 { font-size: 20px; }
.notice > :last-child { margin-bottom: 0; }
.notice.error, .status.error { color: var(--error); }
.notice.error { border-left-color: var(--error); }
.permanence ul { padding-left: 20px; }
.permanence li + li { margin-top: 8px; }
.status:not(:empty) { margin: 16px 0; }
.status:empty { display: none; }
.review-summary { padding: 24px; background: var(--surface); border: 1px solid var(--border); margin-bottom: 24px; }
.review-summary h3 { margin-top: 20px; margin-bottom: 8px; }
.review-summary h3:first-child { margin-top: 0; }
.review-summary dl { margin-bottom: 0; }
dt { font-weight: 600; margin-top: 16px; }
dt:first-child { margin-top: 0; }
dd { margin-left: 0; }
.project-heading { display: flex; gap: 24px; justify-content: space-between; align-items: flex-start; }
.project-heading > div { min-width: 0; }
.project-heading .button { flex-shrink: 0; }
.saved-summary { margin-bottom: 4px; font-weight: 600; }
.sharing-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sharing-line p { margin-bottom: 0; font-size: 14px; color: var(--muted); }
.small-button { font-size: 14px; padding: 8px 12px; flex-shrink: 0; }
.project-tools { padding: 16px 0; margin: 8px 0 0; border-bottom: 1px solid var(--border); gap: 4px 24px; }
.text-button { background: transparent; border: none; min-height: 44px; padding: 8px 0; font-weight: 400; color: var(--link); text-decoration: underline; text-underline-offset: 3px; justify-content: flex-start; }
.text-button:hover { background: transparent; text-decoration-thickness: 2px; }
.danger, button.danger { color: var(--error); }
.danger-button { color: var(--surface); background: var(--error); border-color: var(--error); }
.danger-button:hover { background: #812f29; }
.removal-form { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; }
.project-report-summary h2 { margin-bottom: 8px; }
.project-report-summary code { overflow-wrap: anywhere; }
.file-link, .file-button { position: relative; cursor: pointer; }
.file-link { color: var(--link); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; padding: 8px 0; display: inline-flex; align-items: center; }
.file-link input, .file-button input { position: absolute; inset: 0; opacity: 0; padding: 0; margin: 0; cursor: pointer; width: 100%; height: 100%; }
.file-link:focus-within, .file-button:focus-within { outline: 3px solid var(--link); outline-offset: 3px; }
details summary { cursor: pointer; padding: 12px 0; color: var(--muted); }
details[open] > summary { color: var(--ink); }
.details-content { padding: 8px 0 16px; max-width: 680px; }
.details-content h3 { font-size: 16px; margin-top: 16px; }
.details-content p:last-child { margin-bottom: 0; }
.project-rules { font-size: 14px; margin-top: 16px; }
.project-rules > summary { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 16px; border: 1px solid var(--green); border-radius: 3px; color: var(--green); font-weight: 600; }
.project-rules > summary:hover { background: #e6e8de; }
.project-rules[open] > summary { color: var(--green); }
.section-jumps { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 16px; }
.section-jumps a { padding: 4px 0; }
.global-link-search { max-width: 560px; margin: 0 auto 28px; text-align: center; }
.global-link-search > label { display: block; margin-bottom: 8px; font-size: 18px; font-weight: 600; }
.global-link-search .small { margin-bottom: 0; }
#link-filter-status:not(:empty) { color: var(--ink); }
.links-group { margin-top: 32px; }
.links-group-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.links-group-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.links-group-heading h2 { margin-bottom: 0; }
.section-link-count { white-space: nowrap; }
.section-link-tools { display: flex; align-items: center; gap: 12px; flex: 1 1 330px; justify-content: flex-end; }
.section-link-filter { max-width: 240px; min-width: 130px; }
.section-collapse { flex: 0 0 auto; }
.links-group-body { padding-top: 4px; }
.search-result-note { margin: 12px 0 0; }
.link-list > li { margin: 0; padding: 12px 0; }
.link-title { display: inline; font-size: 17px; font-weight: 600; }
.link-heading-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 12px; }
.link-date { color: var(--muted); font-size: 13px; white-space: nowrap; }
.link-url { color: var(--muted); display: block; font-size: 14px; margin-top: 4px; overflow-wrap: anywhere; }
.search-highlight { padding: 0 .08em; background: #f2d9a9; color: inherit; }
.link-list details { font-size: 14px; }
.link-list summary { padding: 4px 0; }
.copy-tools { display: flex; align-items: start; justify-content: space-between; gap: 24px; border-top: 1px solid var(--border); }
.copy-tools > details { flex: 1; min-width: 0; }
.hash { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 13px; overflow-wrap: anywhere; }
.copy-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.copy-row > div:first-child { min-width: 0; }
.copy-row p { margin-bottom: 4px; }
.copy-row .actions { gap: 8px 20px; justify-content: flex-end; flex-shrink: 0; }
.pagination { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 24px; margin: 24px 0; }
.offer-row { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.offer-row > div { min-width: 0; }
.offer-row button { flex-shrink: 0; }
.offer-row button.is-received { cursor: default; }
.offer-row p { margin-bottom: 8px; }
.offer-row h3 { margin-bottom: 8px; font-size: 17px; }
.incoming-review { border-top: 2px solid var(--green); padding-top: 24px; }
.incoming-review > .actions { margin-bottom: 24px; }
.review-group { border: 1px solid var(--border); background: var(--surface); padding: 20px 24px; margin: 20px 0; }
.review-group h3 { font-size: 17px; }
.review-group ol { padding-left: 20px; margin-bottom: 0; }
.review-group li + li { margin-top: 16px; }
.review-group .link-section { color: var(--muted); font-size: 14px; margin-bottom: 4px; display: block; }
.entry-fieldset { background: var(--surface); border: 1px solid var(--border); padding: 20px 24px; margin-bottom: 24px; }
.entry-fieldset legend { font-size: 18px; padding: 0 8px; }
.entry-fieldset .field:last-of-type { margin-bottom: 8px; }
.rules-summary { font-size: 14px; color: var(--muted); padding-bottom: 8px; }
.rules-summary p { margin-bottom: 8px; }
.verification-form > label { display: block; margin-bottom: 8px; font-weight: 600; }
.verification-form > input { margin-bottom: 12px; }
.verification-form .field-help { margin-top: 0; margin-bottom: 20px; }
.action-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
#verification { margin-top: 32px; }
#verification-code { max-width: 260px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .12em; }
.prose h2 { margin-top: 32px; }
.prose p { max-width: 65ch; }
.prose .lead { max-width: 55ch; }
.skip-link { position: absolute; top: 8px; left: 8px; padding: 12px 20px; color: var(--surface); background: var(--green); transform: translateY(-150%); z-index: 100; }
.skip-link:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 680px) {
    .wrap { padding-left: 16px; padding-right: 16px; }
    .site-header { min-height: 104px; align-items: flex-start; justify-content: flex-start; flex-wrap: wrap; gap: 4px 24px; padding-top: 20px; padding-bottom: 12px; }
    .site-header::after, .site-footer::before { left: 16px; right: 16px; }
    .site-header nav { width: 100%; gap: 4px 24px; }
    .site-header nav a { font-size: 14px; }
    .wordmark { font-size: 27px; }
    main { padding-top: 32px; padding-bottom: 40px; }
    h1, .intro h1 { font-size: 32px; }
    h2 { font-size: 22px; }
    .lead { font-size: 17px; }
    .actions { gap: 12px 20px; }
    .section-space { margin-top: 32px; }
    .section-heading, .project-row-heading, .copy-row, .offer-row { display: block; }
    .section-heading > a { display: inline-block; margin-bottom: 16px; }
    .section-heading h2 { margin-bottom: 8px; }
    .availability { display: block; margin-bottom: 8px; }
    .project-name-line, .project-title-line { align-items: flex-start; }
    .project-heading { flex-wrap: wrap; gap: 0; }
    .project-heading .button { margin-bottom: 24px; }
    .sharing-line { align-items: flex-start; flex-wrap: wrap; }
    .project-tools { column-gap: 20px; }
    .global-link-search { text-align: left; }
    .section-link-tools { flex-basis: 100%; justify-content: stretch; gap: 8px; }
    .section-link-filter { max-width: none; min-width: 0; flex: 1; }
    .notice, .review-summary, .review-group, .entry-fieldset { padding: 16px; }
    .copy-row .actions { justify-content: flex-start; margin-top: 12px; }
    .offer-row > button { margin-top: 8px; }
    .copy-tools { flex-wrap: wrap; gap: 8px; }
    .copy-tools > details { flex-basis: 100%; }
    .site-footer { align-items: flex-start; flex-wrap: wrap; gap: 16px; }
    .site-footer > span { width: 100%; }
    .repeat-row-line { gap: 8px; }
    .repeat-row-line button { padding-left: 10px; padding-right: 10px; font-size: 14px; }
    .imported-links-heading, .imported-link-rows li { display: block; }
    .imported-links-heading > button, .imported-link-rows li > button { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
