.ds-header {
  border-bottom: 1px solid var(--line, #d9d6cf);
  background: var(--paper, #fffdf8);
}
.ds-header-inner {
  width: min(1120px, calc(100% - 2rem));
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.ds-brand {
  color: inherit;
  font-weight: 750;
  letter-spacing: -.02em;
  text-decoration: none;
}
.ds-header nav {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.ds-header nav a,
.ds-logout-form button {
  color: inherit;
  font: inherit;
  background: none;
  border: 0;
  padding: .35rem .2rem;
  text-decoration: none;
  cursor: pointer;
}
.ds-header nav a:hover,
.ds-logout-form button:hover {
  text-decoration: underline;
}
.ds-logout-form { margin: 0; }
.ds-page {
  padding-top: clamp(2rem, 5vw, 4rem);
  padding-bottom: 4rem;
}
.ds-hero {
  max-width: 760px;
  margin-bottom: 2rem;
}
.ds-hero h1 {
  margin: .25rem 0 .75rem;
  max-width: 18ch;
}
.ds-hero p { max-width: 70ch; }
.ds-deadline {
  font-size: .94rem;
  color: var(--muted, #6a6b66);
}
.ds-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 1.25rem;
  align-items: start;
}
.ds-workspace {
  display: grid;
  grid-template-columns: minmax(12rem, 15rem) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.ds-side-menu {
  position: sticky;
  top: 1rem;
}
.ds-side-nav {
  display: grid;
  gap: .45rem;
}
.ds-side-nav a {
  display: block;
  border: 1px solid var(--line, #d9d6cf);
  border-radius: 12px;
  padding: .75rem .85rem;
  background: var(--paper, #fffdf8);
  color: inherit;
  font-weight: 700;
  text-decoration: none;
}
.ds-side-nav a:hover,
.ds-side-nav a:focus-visible {
  border-color: #2a6f68;
}
.ds-side-nav a[aria-current="page"] {
  border-color: #2a6f68;
  background: #2a6f68;
  color: #fff;
}
.ds-view {
  min-width: 0;
}
.ds-request-cards > .ds-card { min-width: 0; }
.ds-admin-list-card { margin-top: 1.25rem; }
.ds-card {
  border: 1px solid var(--line, #d9d6cf);
  border-radius: 18px;
  background: var(--paper, #fffdf8);
  box-shadow: 0 12px 35px rgba(42, 39, 32, .06);
  padding: clamp(1rem, 3vw, 1.5rem);
}
.ds-card h2 { margin-top: 0; }
.ds-card h3 { margin-bottom: .45rem; }
.ds-card-heading,
.ds-detail-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}
.ds-count {
  min-width: 2rem;
  min-height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #ece7db;
  color: #4f4b42;
  font-weight: 700;
}
.ds-form {
  display: grid;
  gap: 1rem;
}
.ds-form label {
  display: grid;
  gap: .35rem;
  font-weight: 650;
}
.ds-form input,
.ds-form select,
.ds-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #c9c5ba;
  border-radius: 10px;
  background: #fff;
  color: inherit;
  font: inherit;
  padding: .7rem .75rem;
}
.ds-form textarea { resize: vertical; min-height: 3rem; }
.ds-form input:focus,
.ds-form select:focus,
.ds-form textarea:focus {
  outline: 3px solid rgba(42, 111, 104, .18);
  border-color: #2a6f68;
}
.ds-form-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.ds-form-columns > label { min-width: 0; }
.ds-table-wrap { overflow-x: auto; }
.ds-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .94rem;
}
.ds-table th,
.ds-table td {
  padding: .75rem .45rem;
  border-bottom: 1px solid #e7e3da;
  text-align: left;
  vertical-align: top;
}
.ds-table th {
  color: #6a6b66;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ds-table td small {
  display: block;
  color: #7a7a73;
  margin-top: .2rem;
}
.ds-admin-list-card .ds-table { min-width: 700px; }
.ds-filter-form {
  grid-template-columns: minmax(12rem, 1.5fr) repeat(2, minmax(10rem, 1fr)) auto;
  align-items: end;
  gap: .75rem;
  margin: 1.25rem 0;
}
.ds-filter-actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}
.ds-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.ds-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .3rem .6rem;
  background: #ece7db;
  color: #4f4b42;
  font-size: .82rem;
  font-weight: 700;
  white-space: nowrap;
}
.ds-status-received,
.ds-status-evaluating { background: #e5f1ed; color: #1d5c55; }
.ds-status-identity_check,
.ds-status-clarification { background: #fff0cd; color: #6d4f13; }
.ds-status-partially_fulfilled { background: #e4e9fa; color: #374b8c; }
.ds-status-fulfilled { background: #dff3dc; color: #27612e; }
.ds-status-rejected { background: #f8e2df; color: #853d35; }
.ds-status-closed { background: #ece7db; color: #5c594f; }
.ds-detail-card {
  margin-top: 1.25rem;
}
.ds-detail-actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.ds-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .85rem;
  margin: 1.5rem 0;
}
.ds-facts div {
  padding: .8rem;
  border-radius: 12px;
  background: #f4f1e9;
}
.ds-facts dt {
  color: #6a6b66;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.ds-facts dd {
  margin: .35rem 0 0;
  overflow-wrap: anywhere;
}
.ds-response {
  max-width: 78ch;
  margin-top: 1.25rem;
}
.ds-response p {
  white-space: normal;
  overflow-wrap: anywhere;
}
.ds-admin-editor {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e7e3da;
}
.ds-admin-editor > summary {
  cursor: pointer;
  font-weight: 750;
  margin-bottom: 1rem;
}
.ds-admin-form { margin-top: 1rem; }
.ds-restriction-box {
  border: 1px solid #d8d2c1;
  border-radius: 12px;
  padding: 1rem;
}
.ds-restriction-box legend {
  padding: 0 .4rem;
  font-weight: 750;
}
.ds-events {
  margin-top: 2rem;
}
.ds-events ol {
  display: grid;
  gap: .65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.ds-events li {
  display: grid;
  grid-template-columns: 9rem 10rem minmax(0, 1fr);
  gap: .75rem;
  padding: .7rem 0;
  border-bottom: 1px solid #e7e3da;
  font-size: .9rem;
}
.ds-events time { color: #77776f; }
.ds-events strong { overflow-wrap: anywhere; }
.ds-events span { overflow-wrap: anywhere; }
.ds-login-card { max-width: 680px; }
.muted { color: var(--muted, #6a6b66); }
.eyebrow {
  margin: 0;
  color: #2a6f68;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.notice {
  margin: 1rem 0;
  border-radius: 12px;
  padding: .8rem 1rem;
}
.notice.error { background: #f8e2df; color: #853d35; }
.notice.success { background: #dff3dc; color: #27612e; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: .7rem 1rem;
  font: inherit;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}
.button.primary { background: #2a6f68; color: #fff; }
.button.secondary { background: #ece7db; color: #3f3d36; }
.button:hover { filter: brightness(.96); }
@media (max-width: 840px) {
  .ds-grid { grid-template-columns: 1fr; }
  .ds-workspace { grid-template-columns: 1fr; }
  .ds-side-menu { position: static; }
  .ds-side-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ds-filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ds-filter-actions { grid-column: 1 / -1; }
  .ds-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .ds-header-inner { align-items: flex-start; padding: .8rem 0; flex-direction: column; }
  .ds-side-nav { grid-template-columns: 1fr; }
  .ds-header nav { justify-content: flex-start; }
  .ds-form-columns,
  .ds-filter-form,
  .ds-facts { grid-template-columns: 1fr; }
  .ds-filter-actions { grid-column: auto; }
  .ds-detail-heading { flex-direction: column; }
  .ds-detail-actions { justify-content: flex-start; }
  .ds-events li { grid-template-columns: 1fr; gap: .2rem; }
}


.ds-supervision-card {
  border-color: #b9cfc7;
  background: linear-gradient(135deg, #fbfdfb 0%, #f3f8f5 100%);
}
.ds-supervision-form {
  margin-top: 1rem;
}
.ds-supervision-card textarea {
  min-height: 5rem;
}
.ds-supervision-active {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #d8e4de;
}
.ds-supervision-active h3 {
  margin: 0 0 .75rem;
}
.ds-supervision-list {
  display: grid;
  gap: .65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ds-supervision-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem;
  border: 1px solid #d8e4de;
  border-radius: 12px;
  background: rgba(255, 255, 255, .72);
}
.ds-supervision-list li > div {
  display: grid;
  gap: .2rem;
  min-width: 0;
}
.ds-supervision-list span,
.ds-supervision-list small {
  color: #6a6b66;
  overflow-wrap: anywhere;
}
@media (max-width: 620px) {
  .ds-supervision-list li {
    align-items: stretch;
    flex-direction: column;
  }
  .ds-supervision-list form,
  .ds-supervision-list button {
    width: 100%;
  }
}
