:root {
  font-family: Tahoma, Arial, sans-serif;
  color: #192723;
  background: #f5f4ef;
  line-height: 1.8;
  font-size: 16px;
  --accent: #a83a17;
  --muted: #53625b;
  --line: #d6dcd5;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
header,
main,
footer {
  max-width: 1160px;
  margin-inline: auto;
  padding: 24px;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
a {
  color: inherit;
}
.brand {
  text-decoration: none;
  font-size: 22px;
  font-weight: 700;
  display: flex;
  gap: 16px;
  align-items: center;
}
.brand span:not(.mark) {
  font-weight: 400;
}
.mark {
  color: var(--accent);
  letter-spacing: 2px;
  direction: ltr;
}
h1 {
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.5;
  margin-block: 8px;
}
h2 {
  font-size: 23px;
  margin-block: 0 12px;
}
h3 {
  font-size: 20px;
  margin-block: 0 12px;
}
.eyebrow {
  color: var(--accent);
  font-weight: 700;
  margin-block: 28px 4px;
}
.intro {
  color: var(--muted);
  margin-block: 0 32px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  margin-block: 20px;
}
.narrow {
  max-width: 640px;
}
.small,
.meta {
  font-size: 14px;
  color: var(--muted);
}
.toolbar {
  display: flex;
  gap: 20px;
  align-items: end;
  flex-wrap: wrap;
}
.toolbar label {
  flex: 1;
  min-width: 210px;
}
label {
  display: block;
  font-weight: 700;
  margin-block-end: 12px;
}
input,
select,
textarea,
button {
  font: inherit;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  padding: 10px 12px;
  background: #fff;
  color: inherit;
  border: 1px solid #98a69e;
  border-radius: 6px;
  margin-block-start: 6px;
}
textarea {
  min-height: 112px;
  resize: vertical;
}
button {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
}
.quiet {
  color: var(--accent);
  background: transparent;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}
.toolbar button {
  margin-block-end: 12px;
}
.task-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}
.badge {
  font-size: 13px;
  padding: 3px 12px;
  border-radius: 20px;
  background: #e9eee7;
  white-space: nowrap;
  color: #263e30;
}
.description {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.task-title {
  overflow-wrap: anywhere;
}
fieldset {
  padding: 0;
  border: 0;
  min-width: 0;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.review {
  border-inline-start: 3px solid #b8c4b7;
  padding-inline-start: 18px;
  margin-block: 20px;
}
.review p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
summary {
  cursor: pointer;
  font-weight: 700;
}
details form {
  margin-block-start: 18px;
}
#notice:not(:empty) {
  background: #fff1d8;
  border: 1px solid #ceb78d;
  padding: 14px 20px;
  border-radius: 8px;
}
footer {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
  margin-block-start: 48px;
}
.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -100px;
  background: white;
  padding: 10px;
}
.skip:focus {
  top: 10px;
}
#google-button {
  min-height: 44px;
}
#content {
  max-width: 920px;
}
p {
  overflow-wrap: anywhere;
}
@media (max-width: 600px) {
  header,
  main,
  footer {
    padding: 18px;
  }
  .panel {
    padding: 18px;
  }
  .toolbar {
    gap: 6px;
  }
  .task-head {
    display: block;
  }
  .badge {
    display: inline-block;
    margin-block-end: 12px;
  }
  .actions button {
    width: 100%;
  }
  footer {
    gap: 15px;
  }
  .brand {
    font-size: 18px;
  }
}
#team {
  margin-block-start: 48px;
  border-top: 1px solid var(--line);
  padding-block-start: 24px;
  max-width: 920px;
}
#team form + form {
  margin-block-start: 12px;
}
#team .invitation-code:not(:empty) {
  background: #fff1d8;
  padding: 24px;
  border: 1px solid #ceb78d;
  border-radius: 8px;
  margin-block: 20px;
}
#invitation-entry {
  margin-block: 20px;
}
#invitation-entry input {
  font-family: monospace;
}

.document-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  unicode-bidi: plaintext;
}

.document-card > form + form {
  margin-block-start: 12px;
}
.document-filename {
  direction: ltr;
  unicode-bidi: isolate;
}

.follow-up-counts,
.follow-up-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: 1rem;
}
.follow-up-counts {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 7rem), 1fr));
}
.follow-up-counts > div {
  padding: 0.8rem;
  border: 1px solid currentColor;
  border-radius: 0.5rem;
}
.follow-up-counts dd {
  margin: 0.4rem 0 0;
  font-size: 1.5rem;
  font-weight: 700;
}
.follow-up-groups li {
  margin-block: 0.6rem;
  overflow-wrap: anywhere;
}

.workspace-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-block: 20px;
}
.workspace-nav [aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 5px;
}
