/* The tool's own styles, all under .palimpsest so a host page keeps its look.
   Type and text colour are inherited from the page. */
.palimpsest { color-scheme: light dark; --line: #8884; --ok: #2a7d46; --bad: #b3261e; }
@media (prefers-color-scheme: dark) { .palimpsest { --ok: #6fcf8f; --bad: #ff8a80; } }
.palimpsest .docs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 700px) { .palimpsest .docs { grid-template-columns: 1fr; } }
.palimpsest label { display: block; font-weight: 600; margin-bottom: .25rem; }
.palimpsest label small { font-weight: 400; opacity: .7; }
.palimpsest textarea { width: 100%; box-sizing: border-box; height: 14rem; font: 13px/1.45 ui-monospace, monospace; padding: .5rem; border: 1px solid var(--line); border-radius: 6px; }
.palimpsest .row { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; margin: 1rem 0; }
.palimpsest .row label { display: inline; font-weight: 400; margin: 0; }
.palimpsest input[type=number] { width: 4.5rem; }
.palimpsest input[type=text] { width: 16rem; max-width: 100%; }
.palimpsest input, .palimpsest select, .palimpsest button { font: inherit; padding: .3rem .5rem; }
.palimpsest button { padding: .45rem 1.1rem; font-weight: 600; cursor: pointer; }
.palimpsest #pal-own { display: none; }
.palimpsest #pal-own.on { display: inline; }
.palimpsest #pal-status { min-height: 1.5em; }
.palimpsest #pal-status.ok { color: var(--ok); }
.palimpsest #pal-status.bad { color: var(--bad); }
.palimpsest #pal-loading { height: 3px; margin: .4rem 0 0; max-width: 22rem; background: var(--line); border-radius: 2px; overflow: hidden; }
.palimpsest #pal-loading::before { content: ""; display: block; height: 100%; width: 35%; background: currentColor; opacity: .6; animation: pal-slide 1.2s ease-in-out infinite; }
.palimpsest #pal-loading.done { display: none; }
@keyframes pal-slide { from { margin-left: -35%; } to { margin-left: 100%; } }
@media (prefers-reduced-motion: reduce) { .palimpsest #pal-loading::before { animation: none; width: 100%; opacity: .3; } }
.palimpsest #pal-result { display: none; margin-top: 1.5rem; }
.palimpsest iframe { width: 100%; height: 30rem; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.palimpsest #pal-zip { display: inline-block; font-weight: 600; padding: .45rem 1.1rem; border: 1px solid currentColor; border-radius: 6px; text-decoration: none; }
.palimpsest #pal-files { font-size: 13px; }
.palimpsest #pal-files a { margin-right: 1rem; white-space: nowrap; }
