:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #242e2c;
  background: #f4f3ee;
  font-synthesis: none;
  font-weight: 400;
  --ink: #1c3530;
  --accent: #a4472b;
  --line: #dedfd7;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #b96d46;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: white;
  border-radius: 6px;
  padding: 10px 14px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button:hover:enabled {
  background: #eeeae0;
}
button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
button.primary:hover:enabled {
  background: #87371f;
}
.shell {
  display: flex;
  min-height: 100vh;
}
.rail {
  width: 235px;
  flex-shrink: 0;
  background: var(--ink);
  color: #f9f8f1;
  padding: 37px 22px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 13px;
  align-items: center;
  color: inherit;
  text-decoration: none;
  line-height: 1.2;
  font-size: 17px;
}
.brand strong {
  font-weight: 500;
}
.brand-icon {
  font:
    35px Georgia,
    serif;
  border: 1px solid #71877a;
  width: 48px;
  height: 50px;
  position: relative;
  text-align: center;
}
.brand-icon span {
  font: 14px system-ui;
  position: absolute;
  bottom: 3px;
  right: 4px;
}
.workspace-label {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #a9bbb0;
  margin: 60px 0 16px;
}
.rail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #62736b;
  padding: 13px 10px;
  border-radius: 5px;
  background: #304941;
  font-size: 13px;
}
.rail-item b {
  margin-left: auto;
  font-size: 11px;
  background: #445b51;
  padding: 2px 6px;
  border-radius: 3px;
}
.rail-note {
  margin-top: auto;
  font-size: 12px;
  color: #d9e1d9;
  padding-top: 60px;
}
.rail-note p {
  font-size: 11px;
  line-height: 1.9;
  color: #a9bbb0;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #b3c3a4;
  border-radius: 50%;
  margin-right: 8px;
}
.main {
  padding: 44px 42px 22px;
  max-width: 1600px;
  width: calc(100% - 235px);
  margin: auto;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 34px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: #747e75;
}
h1 {
  font:
    38px/1.15 Georgia,
    serif;
  letter-spacing: -1px;
  margin: 14px 0 12px;
}
h2 {
  font-size: 17px;
  letter-spacing: -0.3px;
  margin: 0;
}
p {
  line-height: 1.6;
}
.subtitle {
  font-size: 13px;
  color: #71786e;
  margin: 0;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 25px 0;
  margin-bottom: 28px;
}
.metrics > div {
  padding: 0 25px;
  border-right: 1px solid var(--line);
}
.metrics > div:first-child {
  padding-left: 0;
}
.metrics > div:last-child {
  border: none;
}
.metrics span {
  display: block;
  color: #65726b;
  font-size: 12px;
}
.metrics strong {
  display: block;
  font:
    36px Georgia,
    serif;
  margin: 9px 0 6px;
}
.metrics small {
  font-size: 11px;
  color: #858a7f;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fffef9;
  overflow: hidden;
}
.board {
  display: grid;
  grid-template-columns: minmax(300px, 1.2fr) minmax(300px, 1fr);
  gap: 22px;
  align-items: start;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 23px 22px 17px;
}
.panel-heading p {
  font-size: 11px;
  color: #858a7f;
  margin: 6px 0 0;
}
.subtle {
  background: transparent;
  border: none;
  padding: 7px;
  color: #6c776f;
  font-size: 11px;
}
.filters {
  display: flex;
  gap: 9px;
  padding: 0 20px 20px;
  border-bottom: 1px solid var(--line);
}
input,
select,
textarea {
  padding: 10px 11px;
  border: 1px solid #d7dcd2;
  background: #fffefa;
  border-radius: 5px;
  color: #33413a;
  min-width: 0;
  width: 100%;
  font-size: 13px;
}
textarea {
  min-height: 95px;
  resize: vertical;
}
.search {
  flex: 1;
}
.filters select {
  max-width: 145px;
}
.empty {
  padding: 56px 25px;
  text-align: center;
  color: #748073;
  font-size: 13px;
  min-height: 310px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.empty h3 {
  font:
    23px Georgia,
    serif;
  color: var(--ink);
  margin: 15px 0 0;
}
.empty p {
  max-width: 270px;
}
.empty-icon {
  font-size: 29px;
  border: 1px solid #c7d1c3;
  background: #edf0e7;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  line-height: 46px;
}
.detail-empty {
  text-align: left;
  align-items: flex-start;
  padding: 45px 30px;
  min-height: 410px;
}
.detail-empty h2 {
  font:
    32px/1.15 Georgia,
    serif;
  margin: 22px 0 6px;
}
.requests {
  list-style: none;
  padding: 0;
  margin: 0;
}
.request-row {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 19px 22px;
  background: transparent;
}
.request-row.selected {
  background: #f0f3e9;
  box-shadow: inset 3px 0 #6c7f5d;
}
.request-row:hover:enabled {
  background: #f3f4ed;
}
.row-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.pill {
  display: inline-block;
  border-radius: 4px;
  padding: 4px 7px;
  background: #f1e5d7;
  color: #78552f;
  font-size: 10px;
  font-weight: 600;
}
.pill.assigned {
  background: #e6eaf0;
  color: #4b6582;
}
.pill.in_progress {
  background: #e6ebdb;
  color: #5e6b41;
}
.pill.closed {
  background: #dce9de;
  color: #416b4d;
}
.urgent {
  font-size: 10px;
  color: #a2492d;
}
.request-row > strong {
  font-size: 14px;
  line-height: 1.4;
  display: block;
  margin-bottom: 9px;
  font-weight: 600;
}
.row-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  color: #7c857b;
  font-weight: 400;
}
.row-owner {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #6c766c;
  font-weight: 400;
}
.avatar {
  width: 22px;
  height: 22px;
  background: #e8e9df;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 9px;
}
.arrow {
  margin-left: auto;
  font-size: 18px;
}
.detail-heading {
  padding: 24px;
}
.detail-heading h2 {
  font:
    26px/1.2 Georgia,
    serif;
  margin: 16px 0 12px;
}
.detail-heading p {
  font-size: 13px;
  color: #657167;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.detail-meta {
  display: flex;
  gap: 22px;
  font-size: 10px;
  color: #8a9186;
  margin-top: 22px;
}
.detail-meta strong {
  display: block;
  font-size: 12px;
  color: #465448;
  font-weight: 500;
  margin-top: 6px;
}
.detail-form {
  border-top: 1px solid var(--line);
  padding: 22px 24px;
}
.detail-form fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
label {
  display: block;
  font-size: 11px;
  color: #647366;
  font-weight: 500;
}
label input,
label select,
label textarea {
  display: block;
  margin-top: 8px;
}
.detail-form button {
  grid-column: 1/-1;
}
.closed-note {
  font-size: 12px;
  color: #5e7461;
}
.history {
  padding: 0 24px 24px;
}
.history h3 {
  font-size: 12px;
  font-weight: 600;
}
.history ol {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}
.history li {
  display: flex;
  gap: 12px;
  padding-bottom: 20px;
  font-size: 11px;
}
.history strong {
  font-weight: 500;
}
.history time {
  display: block;
  color: #8a9388;
  font-size: 10px;
  margin-top: 5px;
}
.history-dot {
  width: 7px;
  height: 7px;
  background: #9cac8d;
  border-radius: 50%;
  margin-top: 4px;
}
.history details {
  font-size: 10px;
  color: #7c887c;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  overflow-wrap: anywhere;
}
.history summary {
  cursor: pointer;
}
.sample-form {
  padding: 25px;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 35px;
  margin-bottom: 25px;
}
.sample-form h2 {
  font:
    27px Georgia,
    serif;
  margin-top: 13px;
}
.sample-form p {
  color: #768170;
  font-size: 12px;
}
.sample-form form > label {
  margin: 16px 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.notice {
  background: #e8efe1;
  border: 1px solid #cedcc4;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 17px;
  font-size: 12px;
  margin-bottom: 22px;
}
.notice button {
  font-size: 11px;
}
.error {
  border: 1px solid #d5ac97;
  background: #fff0e8;
  color: #88462b;
  padding: 17px;
  border-radius: 6px;
  font-size: 12px;
  margin-bottom: 18px;
}
.error p {
  margin: 8px 0;
}
.error small {
  display: block;
  overflow-wrap: anywhere;
}
.error button {
  margin-top: 12px;
}
.retry {
  margin-bottom: 18px;
}
footer {
  font-size: 10px;
  color: #899082;
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.detail-padding {
  padding: 30px;
}
@media (min-width: 1600px) {
  .main {
    margin: 0 auto;
  }
}
@media (max-width: 1100px) {
  .rail {
    width: 185px;
    padding: 28px 15px;
  }
  .main {
    width: calc(100% - 185px);
    padding: 32px 25px;
  }
  .board {
    gap: 15px;
    grid-template-columns: minmax(250px, 1fr) minmax(250px, 1fr);
  }
  h1 {
    font-size: 32px;
  }
  header {
    align-items: flex-start;
    flex-direction: column;
  }
  .detail-form fieldset {
    grid-template-columns: 1fr;
  }
  .sample-form {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .rail {
    width: 100%;
    padding: 16px 22px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .brand {
    font-size: 13px;
  }
  .brand-icon {
    width: 34px;
    height: 36px;
    font-size: 25px;
  }
  .brand-icon span {
    font-size: 10px;
  }
  .workspace-label,
  .rail-item,
  .rail-note {
    display: none;
  }
  .main {
    width: 100%;
    padding: 28px 18px;
  }
  .board {
    grid-template-columns: 1fr;
  }
  .metrics {
    padding: 18px 0;
  }
  .metrics > div {
    padding: 0 12px;
  }
  .metrics strong {
    font-size: 29px;
  }
  .metrics span {
    font-size: 10px;
  }
  .metrics small {
    font-size: 9px;
  }
  .sample-form {
    padding: 20px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .notice {
    align-items: flex-start;
    flex-direction: column;
  }
  footer {
    flex-direction: column;
  }
  .detail-empty {
    min-height: 240px;
  }
  .filters {
    padding: 0 15px 16px;
  }
  .filters select {
    max-width: 125px;
  }
  h1 {
    font-size: 33px;
  }
}

.sandbox-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: #e9eee3;
  border: 1px solid #cdd7c5;
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 25px;
  font-size: 12px;
}
.sandbox-banner p {
  margin: 6px 0;
  color: #596953;
  max-width: 620px;
}
.sandbox-banner a {
  color: #3a624b;
  font-size: 11px;
}
.sandbox-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.sandbox-actions button {
  font-size: 11px;
}
@media (max-width: 1100px) {
  .sandbox-banner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }
}
@media (max-width: 760px) {
  .sandbox-actions {
    flex-wrap: wrap;
  }
}
