:root {
  font-family: "DM Sans", system-ui, sans-serif;
  color: #253831;
  background: #f5f4ef;
  --green: #263e36;
  --line: #e1e3da;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #78a997;
  outline-offset: 3px;
}
a {
  color: var(--green);
}
h1,
h2,
h3 {
  font-family: Manrope, system-ui, sans-serif;
}
h1 {
  font-size: 42px;
  letter-spacing: -1.6px;
  margin: 14px 0;
}
h2 {
  font-size: 24px;
  margin: 0 0 14px;
}
h3 {
  font-size: 17px;
  margin: 0 0 8px;
}
p {
  line-height: 1.6;
}
.muted {
  color: #68776e;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #708278;
}
.shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: #edefe7;
  border-right: 1px solid var(--line);
  padding: 34px 22px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  font-family: Manrope;
  font-weight: 800;
  font-size: 17px;
}
.brand img {
  width: 38px;
}
.nav {
  display: grid;
  gap: 7px;
}
.nav button {
  background: none;
  border: 0;
  text-align: left;
  padding: 14px 16px;
  border-radius: 12px;
  color: #68776e;
  font-weight: 600;
}
.nav button.active {
  background: var(--green);
  color: white;
}
.nav small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  margin-top: 4px;
  opacity: 0.7;
}
.sidebar footer {
  margin-top: auto;
}
.main {
  max-width: 1120px;
  width: 100%;
  padding: 30px 54px 80px;
  margin: auto;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
  margin-bottom: 36px;
  gap: 20px;
}
.topbar select {
  background: white;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 10px 16px;
  font-weight: 600;
}
.intro {
  margin-bottom: 30px;
}
.grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  margin-bottom: 18px;
}
.card.soft {
  background: #edf0e7;
}
.primary {
  background: var(--green);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 13px 22px;
  font-weight: 600;
}
.secondary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 16px;
  color: var(--green);
}
.link {
  background: none;
  border: 0;
  text-decoration: underline;
  padding: 4px;
  color: var(--green);
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.spread {
  justify-content: space-between;
}
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.tabs button {
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 18px;
  border-radius: 10px;
}
.tabs button.active {
  background: #e5eee8;
  border-color: #83a48c;
  font-weight: 600;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 16px 0 7px;
}
input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafbf8;
  color: #253831;
}
textarea {
  resize: vertical;
  min-height: 180px;
  line-height: 1.6;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.helper {
  font-size: 12px;
  color: #68776e;
}
.pill {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  background: #edf0e7;
}
.pill.office {
  background: #e1e9fa;
  color: #35548d;
}
.pill.personal {
  background: #e0eee3;
  color: #396a45;
}
.pill.side-projects {
  background: #eee4f6;
  color: #744899;
}
.pill.tentative {
  background: #fff1d2;
  color: #836418;
}
.pill.failed {
  background: #ffe5df;
  color: #943b30;
}
.quote {
  border-left: 3px solid #b2c9b8;
  padding: 10px 18px;
  background: #f7f9f5;
  font-size: 14px;
  white-space: pre-wrap;
}
.text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.error {
  color: #87372e;
  background: #fbe9e4;
  border-radius: 10px;
  padding: 12px;
  margin: 14px 0;
}
.success {
  color: #396a45;
  background: #e9f3e7;
  border-radius: 10px;
  padding: 12px;
}
.empty {
  text-align: center;
  padding: 44px 15px;
  color: #68776e;
}
.entry {
  width: 100%;
  text-align: left;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 12px;
}
.entry:hover {
  border-color: #7e9d89;
}
.entry h3 {
  margin-top: 10px;
}
.meta {
  font-size: 12px;
  color: #68776e;
}
.auth {
  max-width: 460px;
  margin: 10vh auto;
  padding: 24px;
}
.auth h1 {
  font-size: 34px;
}
.auth .card {
  margin-top: 24px;
}
.qr {
  width: 200px;
  max-width: 100%;
  display: block;
  margin: 20px auto;
}
.secret {
  overflow-wrap: anywhere;
  font-family: monospace;
}
.boot {
  text-align: center;
  padding: 20vh 0;
}
.notice {
  font-size: 13px;
  background: #edf0e7;
  padding: 14px;
  border-radius: 12px;
}
.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 24px 0;
}
.recording {
  color: #ab3e32;
}
.sectiongap {
  margin-top: 22px;
}
.busy {
  opacity: 0.6;
}
.source-button {
  font-size: 12px;
  margin: 5px 5px 0 0;
}
.library-search {
  margin-bottom: 20px;
}
.logout {
  font-size: 12px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 20px;
  max-width: 650px;
  width: calc(100% - 32px);
  max-height: 85vh;
  padding: 28px;
}
dialog::backdrop {
  background: #19322988;
}
.mobile-mark {
  display: none;
}
@media (max-width: 900px) {
  .shell {
    grid-template-columns: 190px 1fr;
  }
  .main {
    padding: 25px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 34px;
  }
}
@media (max-width: 640px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    top: auto;
    bottom: 0;
    z-index: 5;
    width: 100%;
    height: auto;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    border-right: 0;
    border-top: 1px solid var(--line);
    background: #f5f4ef;
  }
  .sidebar > .brand,
  .sidebar > .notice,
  .sidebar > footer {
    display: none;
  }
  .nav {
    display: flex;
    justify-content: space-around;
    gap: 2px;
  }
  .nav button {
    padding: 12px 16px;
    font-size: 12px;
  }
  .nav small {
    display: none;
  }
  .main {
    padding: 22px 18px 110px;
  }
  .topbar {
    margin-bottom: 26px;
    padding-bottom: 18px;
  }
  .topbar select {
    max-width: 165px;
    padding: 9px 12px;
    font-size: 13px;
  }
  .mobile-mark {
    display: block;
    width: 32px;
  }
  .topbar .eyebrow {
    display: none;
  }
  h1 {
    font-size: 32px;
  }
  .card {
    padding: 20px;
    border-radius: 16px;
  }
  .fields {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .auth {
    margin: 4vh auto;
  }
  .primary {
    min-height: 44px;
  }
  .secondary {
    min-height: 44px;
  }
}

.topbar select {
  width: auto;
}
.nav svg {
  vertical-align: middle;
}
