:root { color-scheme: light; --wine: #78151c; --ink: #241a16; --muted: #65544b; --border: #ddcbb8; }
* { box-sizing: border-box; }
body { margin: 0; background: #f7eddf; color: var(--ink); font: 16px/1.45 system-ui, sans-serif; }
.top { background: #74151c; color: #fff8ea; border-bottom: 4px solid #d9ad74; }
.top-inner { max-width: 1152px; margin: auto; min-height: 72px; padding: .55rem 1rem; display: flex; justify-content: space-between; align-items: center; }
.top img { display: block; width: 158px; }
.wrap { max-width: 1152px; margin: auto; padding: 1.2rem 1rem 3rem; }
.narrow { max-width: 500px; }
.admin-intro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .55rem; }
h1, h2, h3, p { margin-top: 0; }
h1 { color: var(--wine); font-size: clamp(1.6rem, 4vw, 2.25rem); line-height: 1.16; margin-bottom: .55rem; }
h2 { font-size: 1.3rem; color: var(--wine); margin-bottom: .85rem; }
h3 { margin: 1.2rem 0 .5rem; font-size: 1rem; }
nav { display: flex; flex-wrap: wrap; gap: .45rem 1.1rem; margin: .6rem 0 1rem; }
nav a { color: var(--wine); font-weight: 700; text-underline-offset: .18rem; }
.admin-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; align-items: start; }
.card { min-width: 0; background: #fffbf4; border: 1px solid var(--border); border-radius: .65rem; padding: 1.18rem; box-shadow: 0 2px 8px #4c2e1410; }
.fields { display: grid; gap: .82rem; }
.pair, .triple { display: grid; gap: .65rem; grid-template-columns: repeat(2,minmax(0,1fr)); }
.triple { grid-template-columns: 1.35fr 1fr 1fr; }
label { display: grid; gap: .3rem; font-size: .91rem; font-weight: 700; min-width: 0; }
input, textarea, select { border: 1px solid #ab9181; border-radius: .34rem; padding: .55rem .58rem; font: inherit; font-size: 1rem; width: 100%; min-width: 0; min-height: 42px; background: #fffefa; color: var(--ink); }
textarea { resize: vertical; }
.checkbox { display: flex; align-items: center; gap: .5rem; }
.checkbox input { width: 1.1rem; min-height: auto; height: 1.1rem; accent-color: var(--wine); }
button, .button { background: var(--wine); color: #fff8ea; justify-self: start; border: 1px solid transparent; border-radius: .37rem; cursor: pointer; padding: .52rem .75rem; font: inherit; font-weight: 700; min-height: 42px; text-decoration: none; }
.secondary { background: #f7ecdf; color: var(--wine); border-color: var(--border); }
.quiet { border-color: #e8c9a1; background: transparent; }
:focus-visible { outline: 3px solid #9d6124; outline-offset: 2px; }
.record { border-top: 1px solid var(--border); padding-top: .72rem; margin-top: .8rem; overflow-wrap: anywhere; }
.record p { margin: .45rem 0; white-space: pre-wrap; }
.record small { display: block; color: var(--muted); }
summary { cursor: pointer; font-weight: 650; padding-bottom: .45rem; }
summary + form { margin-top: .35rem; }
.actions { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.notice, .integration { padding: .65rem .75rem; background: #e4edcf; border-radius: .35rem; }
.notice.error { background: #f6d6ce; color: #67191b; }
.integration { background: #f4e8d8; }
fieldset { min-width: 0; margin: 0; padding: .7rem; border: 1px solid var(--border); border-radius: .35rem; }
legend { font-weight: 750; }
fieldset p { font-size: .9rem; margin-bottom: .55rem; }
@media (max-width: 730px) { .admin-grid { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .triple { grid-template-columns: 1fr 1fr; } .triple label:first-child { grid-column: 1/-1; } }
