:root { color-scheme: light; font-family: Tahoma, system-ui, sans-serif; color: #172b27; background: #f3f6f0; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
header, footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem clamp(1rem, 6vw, 6rem); }
.brand { text-decoration: none; font: 800 1.7rem system-ui, sans-serif; letter-spacing: -.06em; color: #172b27; }
.brand span { color: #397a39; }
.language { display: flex; align-items: center; gap: .5rem; font-size: .8rem; }
.language select, .language button { margin: 0; padding: .55rem; width: auto; }
main { flex: 1; display: grid; place-items: center; padding: 2rem 1rem 4rem; }
.card { width: min(100%, 30rem); padding: clamp(1.5rem, 5vw, 3rem); background: white; border: 1px solid #dce4d7; border-radius: 1.5rem; box-shadow: 0 1rem 4rem #233e2410; }
h1 { margin-block: .75rem 1rem; font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.4; letter-spacing: -.03em; }
.eyebrow { color: #397a39; font-size: .75rem; font-weight: bold; letter-spacing: .08em; }
.intro { color: #52625b; line-height: 1.8; margin-block-end: 2rem; }
.selection-summary { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem; margin-block: -1rem 1.5rem; padding: 1rem; background: #edf3e8; border: 1px solid #d7e2d2; border-radius: .9rem; }
.selection-summary span, .selection-summary small { grid-column: 1 / -1; color: #52625b; font-size: .75rem; line-height: 1.7; }
.selection-summary strong { overflow-wrap: anywhere; }
.selection-summary bdi { direction: rtl; font-weight: bold; white-space: nowrap; }
label { display: block; font-size: .9rem; margin-block-end: .5rem; }
input, select, button { font: inherit; border-radius: .7rem; }
input, select { border: 1px solid #a8b7a6; background: #fbfcfa; padding: .9rem; }
input { width: 100%; font-size: 1.15rem; letter-spacing: .06em; }
button { display: inline-block; width: 100%; cursor: pointer; border: 1px solid #254b2b; color: white; background: #254b2b; padding: .9rem 1rem; font-weight: bold; margin-block-start: 1rem; }
button:hover { background: #193b1f; }
.subtle { color: #254b2b; background: white; border-color: #b6c5b1; }
.subtle:hover { background: #eef4e9; }
.hint { font-size: .8rem; line-height: 1.8; color: #52625b; }
a { color: #285d32; text-underline-offset: .2em; }
:focus-visible { outline: 3px solid #568f37; outline-offset: 4px; }
.workspace { width: min(100%, 68rem); }
.workspace-heading, .section-heading, .item-heading, .overview { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.workspace-heading h1 { margin-block-start: 0; }
.tabs { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-block: 1rem 2rem; }
.tabs a { text-decoration: none; font-weight: bold; }
.panel { background: #fff; padding: clamp(1rem, 3vw, 2rem); border: 1px solid #dce4d7; border-radius: 1.2rem; margin-block-end: 1.5rem; min-width: 0; }
.panel h2 { font-size: 1.3rem; }
.editor-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.button { display: inline-block; text-align: center; background: #254b2b; color: #fff; border: 1px solid #254b2b; text-decoration: none; font-weight: bold; padding: .85rem 1.1rem; border-radius: .7rem; }
.button.subtle { color: #254b2b; background: #fff; }
.compact { gap: .7rem; font-size: .85rem; }
.compact form { display: flex; gap: .35rem; }
.compact button { width: auto; padding: .4rem .65rem; margin: 0; }
button:disabled { opacity: .4; cursor: default; }
.danger { color: #96352d; }
.confirm-dialog { width: min(calc(100% - 2rem), 28rem); color: #172b27; background: #fff; border: 1px solid #dce4d7; border-radius: 1.2rem; padding: clamp(1.25rem, 4vw, 2rem); box-shadow: 0 1.5rem 5rem #172b2740; }
.confirm-dialog::backdrop { background: #172b2766; backdrop-filter: blur(2px); }
.confirm-dialog h2 { margin: 0 0 .75rem; font-size: 1.35rem; }
.confirm-dialog p { margin: 0; color: #52625b; line-height: 1.8; }
.confirm-dialog-actions { display: flex; gap: .75rem; margin-block-start: 1.5rem; }
.confirm-dialog-actions button { width: auto; flex: 1; margin: 0; }
.confirm-dialog-actions .confirm-delete { background: #96352d; border-color: #96352d; }
.confirm-dialog-actions .confirm-delete:hover { background: #74261f; }
.publish-dialog { width: min(calc(100% - 2rem), 32rem); }
.publish-address { direction: ltr; text-align: left; background: #f3f6f0; border: 1px solid #dce4d7; border-radius: .7rem; padding: .8rem 1rem; overflow-wrap: anywhere; font-size: .85rem; }
.publish-dialog .confirm-dialog-actions { align-items: stretch; }
.publish-dialog .confirm-dialog-actions button { flex-basis: 50%; }
.badge { border-radius: 2rem; background: #edf3e8; color: #395838; font-size: .75rem; padding: .35rem .7rem; }
.muted, .link-destination { color: #52625b; overflow-wrap: anywhere; }
.content-list { list-style: none; padding: 0; margin-block: 1.5rem; }
.content-list li { padding-block: 1rem; border-block-end: 1px solid #e4eadf; overflow-wrap: anywhere; }
.link-destination { font-size: .8rem; }
.empty { color: #52625b; line-height: 1.8; }
.sharing { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.qr-image { flex-shrink: 0; max-width: 100%; }
.sharing > div { flex: 1; min-width: min(100%, 15rem); }
.notice { background: #e5f0dc; padding: 1rem; border-radius: .7rem; }
.edit-card { width: min(100%, 40rem); }
.edit-card textarea, .edit-card select { width: 100%; padding: .8rem; border: 1px solid #a8b7a6; border-radius: .7rem; font: inherit; }
.edit-card input[type=checkbox] { width: auto; }
.helptext { display: block; color: #52625b; font-size: .8rem; line-height: 1.8; margin-block: .5rem; }
@media (max-width: 760px) { .editor-columns { grid-template-columns: 1fr; gap: 0; } }
.errorlist { color: #a12929; padding-inline-start: 1.2rem; line-height: 1.7; font-size: .9rem; }
footer { color: #52625b; font-size: .75rem; flex-wrap: wrap; }
.skip-link { position: absolute; inset-block-start: -5rem; inset-inline-start: 1rem; background: white; padding: 1rem; }
.skip-link:focus { inset-block-start: .5rem; }
@media (max-width: 420px) {
  header { flex-wrap: wrap; }
  .language label { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .confirm-dialog-actions { flex-direction: column-reverse; }
}
