@import url("/fonts.css");
:root {
  --ink: #263c37;
  --muted: #7d8981;
  --paper: #f5f4ef;
  --line: #e2e6de;
  --sage: #dce7de;
  --gold: #ba8d48;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    14px system-ui,
    -apple-system,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 10px 15px;
  border-radius: 7px;
}
button:hover {
  background: var(--sage);
}
button.primary {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}
input,
select,
textarea {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--ink);
}
textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
}
a {
  color: var(--ink);
}
.shell {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: 100vh;
}
.sidebar {
  padding: 35px 20px;
  background: #203a32;
  color: #f4f5ed;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.brand {
  font:
    26px Georgia,
    serif;
  letter-spacing: 1px;
  padding: 0 10px 32px;
}
.brand small {
  display: block;
  font: 10px system-ui;
  letter-spacing: 3px;
  margin-top: 12px;
  color: #acc2b4;
}
.nav {
  border: 0;
  background: transparent;
  color: #c9d7cc;
  text-align: left;
  padding: 13px 15px;
}
.nav.active {
  background: #355347;
  color: white;
}
.sidefoot {
  margin-top: auto;
  font-size: 11px;
  color: #b2c5b8;
  padding: 15px;
  line-height: 1.8;
}
.main {
  padding: 32px 45px;
  min-width: 0;
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 22px;
  margin-bottom: 30px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}
h1 {
  font:
    36px Georgia,
    serif;
  font-weight: normal;
  margin: 10px 0;
}
h2 {
  font:
    24px Georgia,
    serif;
  font-weight: normal;
  margin: 8px 0 20px;
}
h3 {
  font-size: 15px;
}
.muted {
  color: var(--muted);
}
.pill {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 20px;
  background: var(--sage);
  font-size: 10px;
  color: #41664c;
}
.pill.pending {
  background: #f3e7d2;
  color: #916b30;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}
.metric,
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
}
.metric strong {
  display: block;
  font: 32px Georgia;
  margin: 10px 0;
}
.filters {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.filters input {
  flex: 1;
  min-width: 220px;
}
.directory {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  text-align: left;
  background: #fafbf7;
  padding: 16px;
}
td {
  padding: 18px 16px;
  border-top: 1px solid var(--line);
}
tr.customer {
  cursor: pointer;
}
tr.customer:hover {
  background: #f5f8f2;
}
.avatar {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #edf1e7;
  color: #698253;
  margin-right: 12px;
}
.person {
  display: flex;
  align-items: center;
}
.person strong {
  display: block;
  font-weight: 500;
}
.person small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.empty {
  padding: 70px 20px;
  text-align: center;
}
.empty h2 {
  margin-bottom: 12px;
}
.profile {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 25px;
}
.conversation-heading { margin: 0 0 8px; }
.conversation-filters { margin: 12px 0 20px; }
.conversation-filters summary, .profileaside summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.shopping-item { border-top: 1px solid var(--line); padding: 14px 0; }
.shopping-item p { margin: 6px 0; }
.order-notice { padding: 12px 0; border-top: 1px solid var(--line); }
.order-notice .body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; max-height: 320px; overflow: auto; margin-top: 12px; }
.message > .body { max-height: 420px; overflow: auto; }
.profileaside {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.profilehead {
  margin-bottom: 20px;
}
.profilehead h1 {
  margin: 18px 0 10px;
}
.detail {
  font-size: 12px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.detail label {
  display: block;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  margin-top: 18px;
}
.timeline {
  padding: 5px 0;
}
.date {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin: 24px 0;
}
.message {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 13px;
  max-width: 92%;
}
.message.outgoing {
  margin-left: auto;
  background: #edf3eb;
}
.message.system,
.message.note {
  border-style: dashed;
  background: #fbfaf3;
}
.message header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 11px;
  margin-bottom: 15px;
}
.message .body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.75;
}
.message footer {
  font-size: 10px;
  color: var(--muted);
  margin-top: 14px;
}
.message details {
  margin-top: 15px;
  font-size: 12px;
}
.message summary {
  cursor: pointer;
  color: var(--muted);
}
.message iframe {
  display: none;
}
.connection {
  margin-bottom: 18px;
}
.connection header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.connection p {
  line-height: 1.8;
}
.connection .actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.notice {
  padding: 14px 18px;
  background: #f4ead8;
  color: #806133;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.formrow {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.formrow > * {
  flex: 1;
}
.login {
  max-width: 430px;
  margin: 10vh auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 42px;
}
.login h1 {
  font-size: 30px;
}
.login input,
.login button {
  width: 100%;
  margin-top: 14px;
}
.error {
  color: #a43c37;
  padding: 10px 0;
}
.loading {
  padding: 60px;
}
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--ink);
  color: white;
  padding: 15px 25px;
  border-radius: 9px;
  max-width: 400px;
}
.task {
  border-top: 1px solid var(--line);
  padding: 12px 0;
  font-size: 12px;
}
.task button {
  padding: 5px 8px;
  margin-right: 8px;
}
.source summary {
  cursor: pointer;
  padding: 8px 0;
  font-size: 12px;
}
.source pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 11px;
}
.searchcaption {
  font-size: 11px;
  color: var(--muted);
  margin: 12px 0;
}
.linkform {
  margin-top: 20px;
}
.linkform input {
  width: 100%;
  margin: 6px 0;
}
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
@media (max-width: 1000px) {
  .main {
    padding: 25px;
  }
  .shell {
    grid-template-columns: 190px 1fr;
  }
  .profile {
    grid-template-columns: 1fr;
  }
  .profileaside {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .message {
    max-width: 100%;
  }
}
@media (max-width: 650px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 18px;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .brand {
    font-size: 19px;
    padding: 5px;
    width: 100%;
  }
  .brand small {
    display: none;
  }
  .nav {
    padding: 8px;
    font-size: 12px;
  }
  .sidefoot {
    display: block;
    font-size: 10px;
    padding: 8px;
  }
  .main {
    padding: 20px;
  }
  .metrics {
    grid-template-columns: 1fr;
  }
  .metric {
    padding: 15px;
  }
  .metric strong {
    font-size: 24px;
  }
  .profileaside {
    display: block;
  }
  .profileaside .panel {
    margin-bottom: 15px;
  }
  .top {
    align-items: flex-start;
  }
  h1 {
    font-size: 28px;
  }
  .filters input {
    min-width: 100%;
  }
}
