:root {
  color-scheme: light;
  font: 16px/1.55 system-ui, sans-serif;
  color: #202542;
  background: #f7f8fc;
  --primary: #493ac4;
  --muted: #555c78;
  --border: #dce0ee;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.shell { width: min(100% - 2.75rem, 68rem); margin: auto; }
.topbar { background: #fff; border-bottom: 1px solid var(--border); }
.bar, .heading, .account, .project-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.bar { min-height: 4.5rem; }
.brand { color: #202542; text-decoration: none; font-weight: 800; display: inline-flex; align-items: center; gap: .6rem; }
.logo { background: var(--primary); color: white; border-radius: .55rem; width: 2rem; height: 2rem; display: grid; place-items: center; }
main { padding-block: clamp(2rem, 7vw, 6rem); }
.welcome { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 8vw, 7rem); align-items: start; }
h1 { margin: 0; font-size: clamp(2.1rem, 5vw, 4.4rem); letter-spacing: -.065em; line-height: 1.07; }
h2, h3 { margin: 0 0 .6rem; line-height: 1.25; }
h2 { font-size: 1.3rem; } h3 { font-size: 1rem; }
.intro { color: var(--muted); font-size: 1.1rem; margin: .9rem 0 0; max-width: 35rem; }
.card { background: #fff; border: 1px solid var(--border); border-radius: .9rem; padding: clamp(1rem, 3vw, 1.65rem); box-shadow: 0 7px 22px #20254209; }
.empty { color: var(--muted); }
.heading { align-items: flex-end; margin-bottom: 1.5rem; }
#projects { display: grid; gap: 1rem; margin-top: .75rem; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.sources > form { border: 1px solid var(--border); padding: 1rem; border-radius: .55rem; }
.sources p { margin: .3rem 0; color: var(--muted); font-size: .9rem; }
label { display: grid; gap: .25rem; font-weight: 650; margin: .75rem 0; }
input:not([type=checkbox]) { width: 100%; padding: .6rem .7rem; font: inherit; font-weight: 400; border: 1px solid #aeb5ce; border-radius: .45rem; color: inherit; }
.check { display: flex; align-items: center; gap: .4rem; font-size: .9rem; }
small { display: block; color: var(--muted); margin-bottom: .85rem; }
button { font: inherit; font-weight: 650; color: #fff; background: var(--primary); border: 1px solid transparent; border-radius: .45rem; padding: .52rem .84rem; cursor: pointer; }
button:hover { background: #3728a6; }
button:disabled { cursor: wait; opacity: .55; }
button.quiet { background: #f0eeff; color: #362798; }
button.quiet:hover { background: #e4dfff; }
#auth-switch { margin-top: .5rem; }
:focus-visible { outline: 2px solid #5243c6; outline-offset: 3px; }
a { color: var(--primary); overflow-wrap: anywhere; }
.account { font-size: .9rem; overflow-wrap: anywhere; }
.state { white-space: nowrap; border-radius: 1rem; padding: .25rem .65rem; background: #eeeef6; color: #4b5166; font-size: .85rem; }
.state.live { background: #dff7ea; color: #146543; }
details { margin-top: 1rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: .75rem 0; }
summary { cursor: pointer; font-weight: 650; }
details[open] summary { margin-bottom: .75rem; }
[data-history]:not(:empty) { margin-top: 1.1rem; }
ul { margin: 0; padding: 0; list-style: none; }
li { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: .4rem 0; font-size: .9rem; }
[role=status] { color: #514084; margin: .5rem 0; }
[role=status]:empty { display: none; }
@media (max-width: 45rem) {
  .welcome, .fields { grid-template-columns: 1fr; }
  .account > span { display: none; }
  .heading, .project-heading { align-items: flex-start; flex-wrap: wrap; }
}
