:root {
  --ink: #090d0b;
  --lime: #a3e635;
  --paper: #f6f8f4;
  --muted: #667267;
  --line: #e0e6dc;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
  line-height: 1.6;
}
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 #648d20;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
a {
  color: inherit;
}
input,
select,
textarea {
  border: 1px solid #cad4c5;
  border-radius: 9px;
  padding: 12px 14px;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
input::placeholder,
textarea::placeholder {
  color: #6c776b;
}
textarea {
  resize: vertical;
  min-height: 100px;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin: 20px 0 7px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.04em;
}
h1 {
  font-size: 42px;
  font-weight: 600;
  margin-bottom: 12px;
}
h2 {
  font-size: 25px;
  margin-bottom: 10px;
}
h3 {
  font-size: 15px;
  letter-spacing: -0.01em;
}
button {
  border: 0;
  border-radius: 8px;
  transition: background 0.15s;
}
button:hover {
  filter: brightness(0.96);
}
.primary {
  padding: 14px 20px;
  background: var(--lime);
  font-weight: 700;
  color: #152006;
  display: flex;
  justify-content: space-between;
  gap: 25px;
}
.secondary {
  padding: 9px 13px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 12px;
  white-space: nowrap;
}
.wide {
  width: 100%;
}
.muted {
  color: var(--muted);
}
.lime {
  color: var(--lime);
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #f8faf7;
  font-size: 23px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -1.3px;
  white-space: nowrap;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #c1cdbb;
  margin-top: 7px;
  font-weight: 500;
}
.eyebrow,
.small-label,
.sidebar-caption,
.story-footer {
  font-family: monospace;
  font-size: 10px;
  letter-spacing: 1.3px;
}
.small-label {
  color: #56694c;
  margin-bottom: 12px;
}
.login-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.login-story {
  background:
    radial-gradient(ellipse at 10% 80%, #243b16, transparent 70%), var(--ink);
  padding: 55px 65px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 80px;
  color: #f8faf7;
}
.login-story h1 {
  font-size: clamp(45px, 5vw, 72px);
  letter-spacing: -0.055em;
  line-height: 1.08;
}
.eyebrow {
  color: #b7c7ae;
  margin-bottom: 30px;
}
.story-copy {
  max-width: 340px;
  color: #afbcab;
  line-height: 1.85;
}
.story-footer {
  font-size: 8px;
  color: #a7b5a1;
  margin: 0;
}
.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 65px 50px;
}
.login-card {
  width: 100%;
  max-width: 360px;
}
.login-card h2 {
  font-size: 39px;
  margin: 14px 0;
}
.login-help {
  margin-top: 30px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.login-card form > button {
  margin-top: 20px;
}
.error {
  color: #a52929;
  font-size: 12px;
  margin: 12px 0;
  min-height: 0;
}
.error:empty,
.message:empty {
  display: none;
}
.skip-link {
  position: absolute;
  z-index: 20;
  top: -80px;
  left: 20px;
  background: var(--lime);
  padding: 14px;
}
.skip-link:focus {
  top: 10px;
}
.app-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  padding: 35px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--ink);
  color: #b4c1af;
}
.sidebar .brand {
  font-size: 19px;
  margin-bottom: 45px;
}
.sidebar-caption {
  font-size: 9px;
  color: #94a48c;
  margin-bottom: 0;
}
.nav-button {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 12px;
  margin: 5px 0;
  background: transparent;
  color: #b4c1af;
  font-size: 12px;
  text-align: left;
}
.nav-button.active {
  background: #1d2b15;
  color: var(--lime);
}
.nav-button > span:last-child {
  font-family: monospace;
  font-size: 10px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 60px;
  display: grid;
  gap: 16px;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.logout {
  color: #c9d5c2;
  background: transparent;
  text-align: left;
  font-size: 12px;
  padding: 0;
}
.workspace {
  min-width: 0;
  padding: 40px clamp(20px, 3vw, 50px);
}
.workspace-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 30px;
}
.workspace-header p:last-child {
  margin-bottom: 0;
}
.workspace-header h1 {
  font-size: 36px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 26px 0;
}
.stats > div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
}
.stats span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.stats strong {
  display: block;
  font-weight: 500;
  font-size: 35px;
  line-height: 1.2;
  margin-top: 16px;
  letter-spacing: -1.5px;
}
.stats small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.notice {
  padding: 14px 18px;
  border: 1px solid #d4dfba;
  border-radius: 10px;
  background: #edf3dc;
  color: #435224;
  font-size: 12px;
  line-height: 1.8;
}
.message {
  padding: 12px 16px;
  border-radius: 8px;
  background: #e5efda;
  font-size: 13px;
}
.message.is-error {
  color: #9c2424;
  background: #ffebeb;
}
.inbox-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.inbox-grid.has-detail {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
}
.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  overflow: hidden;
  min-width: 0;
}
.list-toolbar {
  padding: 23px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.list-toolbar h2 {
  font-size: 18px;
  margin: 0 0 3px;
}
.list-toolbar .muted {
  font-size: 11px;
}
.list-toolbar form {
  display: flex;
  gap: 6px;
  max-width: 100%;
  flex: 0 1 350px;
}
.list-toolbar input {
  font-size: 12px;
  padding: 10px;
  min-width: 0;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}
th {
  font-weight: 500;
  font-size: 10px;
  color: #5f6d59;
  background: #fafcf8;
  padding: 13px 22px;
  white-space: nowrap;
}
td {
  padding: 18px 22px;
  border-top: 1px solid #edf0e9;
}
td strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 600;
}
td small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}
tr.selected {
  background: #f2f7e9;
}
.open-enquiry {
  background: #edf3e5;
  font-size: 18px;
  padding: 4px 11px;
  color: #34472a;
}
.badge {
  border-radius: 5px;
  padding: 4px 7px;
  display: inline-block;
  font-size: 10px;
  white-space: nowrap;
  background: #edf1e9;
  color: #4c5c43;
}
.badge.new {
  background: #e3f1c8;
  color: #385416;
}
.badge.in_progress {
  background: #e5eef5;
  color: #2e5675;
}
.badge.closed {
  background: #edf0eb;
  color: #54634b;
}
.email-failed {
  color: #a52929;
}
.pagination {
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.empty {
  text-align: center;
  padding: 65px 25px;
  color: var(--muted);
}
.empty > span {
  font-size: 33px;
  color: #6d8b4c;
  display: block;
  margin-bottom: 16px;
}
.empty h3 {
  color: #3c4c32;
  font-size: 17px;
}
.empty p {
  font-size: 12px;
}
.detail {
  padding: 25px;
}
.text-button {
  background: transparent;
  padding: 0;
  color: #596d4d;
  font-size: 11px;
  margin-bottom: 25px;
}
.detail .small-label {
  font-size: 9px;
  overflow-wrap: anywhere;
  margin-bottom: 12px;
}
.detail h2 {
  font-size: 26px;
  overflow-wrap: anywhere;
}
.received {
  font-size: 11px;
  color: var(--muted);
}
.detail-contact {
  display: grid;
  gap: 8px;
  padding: 20px 0;
  margin-bottom: 22px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.detail-contact a {
  color: #47612c;
  text-decoration: none;
}
.detail-contact a:hover {
  text-decoration: underline;
}
.detail-contact span {
  color: var(--muted);
}
dl {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 9px;
  font-size: 12px;
  margin: 16px 0 25px;
}
dt {
  color: var(--muted);
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.project-description {
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.delivery-info {
  background: #f6f9f2;
  border-radius: 8px;
  padding: 17px;
  margin-top: 25px;
  font-size: 11px;
  color: #526147;
}
.delivery-info h3 {
  font-size: 12px;
  margin-bottom: 8px;
}
.delivery-info p {
  margin-bottom: 0;
}
.delivery-info button {
  margin-top: 12px;
}
.note-caption {
  font-size: 10px;
  margin-top: 7px;
}
.detail-form button {
  margin-top: 20px;
}
.danger-zone {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 18px;
  font-size: 11px;
  color: #86605b;
}
.danger-zone summary {
  cursor: pointer;
}
.danger-zone p {
  margin-top: 15px;
}
.danger-button {
  background: #fff0ee;
  border: 1px solid #e6c4be;
  color: #9b3324;
  padding: 10px 15px;
  font-size: 11px;
}
.workspace-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 9px;
  color: #596b50;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 40px;
}
.workspace-footer span:last-child {
  font-family: monospace;
  letter-spacing: 1px;
}
.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;
}
@media (min-width: 1500px) {
  .workspace {
    max-width: 1600px;
  }
}
@media (max-width: 1200px) {
  .inbox-grid.has-detail {
    grid-template-columns: minmax(0, 1fr);
  }
  .has-detail .inbox-list {
    display: none;
  }
  .detail {
    max-width: 850px;
    width: 100%;
  }
  .stats > div {
    padding: 16px;
  }
  td,
  th {
    padding: 15px;
  }
}
@media (max-width: 800px) {
  .login-story {
    padding: 35px;
    gap: 45px;
  }
  .login-story h1 {
    font-size: 48px;
  }
  .login-panel {
    padding: 40px 30px;
  }
  .app-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .sidebar {
    padding: 20px;
    gap: 8px;
  }
  .sidebar .brand {
    margin-bottom: 12px;
  }
  .sidebar-caption {
    display: none;
  }
  .sidebar nav {
    display: flex;
    gap: 5px;
    overflow-x: auto;
  }
  .nav-button {
    white-space: nowrap;
    width: auto;
    gap: 10px;
    margin: 0;
    padding: 10px;
  }
  .sidebar-bottom {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 10px;
  }
  .workspace {
    padding: 28px 20px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .workspace-header h1 {
    font-size: 29px;
  }
  .workspace-header .small-label {
    font-size: 8px;
  }
  .workspace-header .muted {
    font-size: 12px;
  }
  .list-toolbar {
    padding: 18px;
  }
  .list-toolbar form {
    flex-basis: 100%;
  }
  .list-toolbar input {
    flex: 1;
  }
  .workspace-footer {
    font-size: 8px;
  }
  .workspace-footer span:last-child {
    display: none;
  }
}
@media (max-width: 550px) {
  .login-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .login-story {
    padding: 30px;
    gap: 35px;
  }
  .login-story h1 {
    font-size: 43px;
  }
  .login-story .story-copy,
  .story-footer {
    display: none;
  }
  .login-story .eyebrow {
    font-size: 8px;
    margin-bottom: 20px;
  }
  .login-panel {
    padding: 40px 25px;
  }
  .login-card h2 {
    font-size: 32px;
  }
  .workspace-header {
    align-items: flex-start;
    gap: 10px;
  }
  .workspace-header .secondary {
    font-size: 10px;
    padding: 8px;
  }
  .stats strong {
    font-size: 29px;
  }
  .stats span {
    font-size: 10px;
  }
  th:nth-child(3),
  td:nth-child(3) {
    display: none;
  }
  .detail {
    padding: 20px;
  }
  .workspace {
    padding: 25px 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
