:root {
  color-scheme: light;
  --ink: #15263a;
  --muted: #4c6177;
  --accent: #0b5e59;
  --line: #c7d3df;
  --paper: #fff;
  --background: #eff4f8;
  font-family: system-ui, sans-serif;
  line-height: 1.5;
  color: var(--ink);
  background: var(--background);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
a, button, input, select, summary { touch-action: manipulation; }
:focus-visible { outline: 3px solid #1b7cc2; outline-offset: 3px; }
.top { background: #182c41; color: #fff; }
.top-inner {
  max-width: 77rem;
  margin: auto;
  padding: .8rem clamp(1rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.top a { color: inherit; }
.top nav, .top form { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
.top nav a { color: #d4e6ef; text-decoration: none; }
.top nav a[aria-current], .top nav a:hover { text-decoration: underline; color: #fff; }
.brand { font-size: 1.15rem; font-weight: 750; text-decoration: none; }
.account { font-size: .9rem; color: #e1ebf2; }
.workspace {
  max-width: 77rem;
  margin: auto;
  padding: 2.5rem clamp(1rem, 4vw, 3rem) 4rem;
}
h1, h2 { line-height: 1.15; margin: 0 0 1.25rem; letter-spacing: -.03em; }
h1 { font-size: clamp(2rem, 5vw, 3rem); overflow-wrap: anywhere; }
h2 { font-size: 1.5rem; }
.folder-nav { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.sign-in { width: min(100% - 2rem, 28rem); margin: 12vh auto 3rem; }
.sign-in .panel { display: grid; gap: 1rem; padding: 1.75rem; }
.sign-in .panel > * { margin: 0; }
.panel {
  background: var(--paper);
  border-radius: .65rem;
  border: 1px solid var(--line);
  padding: 1rem;
}
.tools {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.tools form { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; }
.tools label { flex: 1 1 14rem; }
label { display: grid; gap: .3rem; min-width: 0; font-weight: 600; font-size: .9rem; }
input, select, button {
  font: inherit;
  min-height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: .35rem;
  padding: .45rem .7rem;
}
input, select { background: #fbfdff; color: var(--ink); width: 100%; min-width: 0; }
button { cursor: pointer; font-weight: 650; background: var(--accent); border-color: var(--accent); color: #fff; }
button:hover { filter: brightness(1.12); }
.quiet { background: #fff; border-color: var(--line); color: var(--ink); }
.quiet:hover { background: #e9f2f7; }
.danger { color: #8c2b37; }
.notice { background: #e2f4ef; border: 1px solid #78b8a6; border-radius: .4rem; padding: .75rem 1rem; }
.empty { padding: 2rem 1rem; margin: 0; text-align: center; color: var(--muted); background: var(--paper); border: 1px dashed var(--line); border-radius: .65rem; }
.table-scroll { border: 1px solid var(--line); border-radius: .65rem; overflow: auto; background: var(--paper); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .8rem 1rem; text-align: left; vertical-align: top; }
th { color: var(--muted); background: #f5f8fb; font-weight: 650; font-size: .9rem; }
td { border-top: 1px solid var(--line); overflow-wrap: anywhere; }
td:first-child { min-width: 12rem; }
td:first-child a, td:first-child strong { font-weight: 650; }
td small { display: block; color: var(--muted); margin-top: .2rem; }
summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.actions { display: grid; gap: .7rem; min-width: 12rem; margin-top: .6rem; }
.actions form { display: grid; gap: .35rem; }
.actions button { justify-self: start; }
@media (max-width: 36rem) {
  .top-inner { gap: .65rem; }
  .top-inner form { margin-left: auto; }
  th, td { padding: .6rem; }
}
