@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap');
:root {
  --ink: #18231f;
  --muted: #68746d;
  --paper: #f3f1e8;
  --card: #fffefa;
  --line: #d8ded5;
  --green: #1c6349;
  --lime: #dce9a9;
  --red: #9e422c;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.45 'DM Sans',
    sans-serif;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  padding: 9px 14px;
}
button:hover {
  border-color: var(--green);
}
button.primary {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
button.danger {
  color: var(--red);
}
input,
textarea,
select {
  border: 1px solid #cbd5ca;
  border-radius: 9px;
  padding: 11px;
  background: #fff;
  min-height: 44px;
  max-width: 100%;
}
textarea {
  width: 100%;
  min-height: 85px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2 {
  font-family: Fraunces, Georgia, serif;
}
h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
h2 {
  font-size: 1.7rem;
  letter-spacing: -0.025em;
}
small,
.muted {
  color: var(--muted);
}
.shell {
  max-width: 1150px;
  margin: auto;
  padding: 18px 16px 80px;
}
.mast {
  background: #111d1b;
  color: #f4f5eb;
  padding: 26px 16px 20px;
}
.mast-inner {
  max-width: 1118px;
  margin: auto;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.19em;
  color: #a8c696;
}
.mast h1 {
  margin: 7px 0 0;
}
.mast button {
  background: transparent;
  color: white;
  border-color: #50635a;
}
.nav {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding: 18px 0 22px;
  scrollbar-width: thin;
}
.nav button {
  white-space: nowrap;
  background: transparent;
}
.nav button.active {
  background: var(--lime);
  border-color: var(--lime);
  font-weight: 700;
}
.nav .count {
  display: inline-block;
  border-radius: 20px;
  background: #dce4d6;
  padding: 1px 8px;
  margin-left: 5px;
  font-size: 12px;
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 20px;
}
.section-head p {
  margin: 0;
  color: var(--muted);
}
.items {
  display: grid;
  gap: 10px;
}
.item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 13px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 17px;
  box-shadow: 0 3px 10px #283c2810;
}
.item.done {
  opacity: 0.56;
}
.item.done .title {
  text-decoration: line-through;
}
.check {
  width: 44px;
  height: 44px;
  font-size: 23px;
  padding: 0;
  border-radius: 12px;
}
.item-main {
  min-width: 0;
}
.item-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.number {
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  background: #e9efe2;
  border-radius: 7px;
  padding: 4px 7px;
}
.title {
  font-weight: 700;
  font-size: 17px;
}
.detail {
  white-space: pre-wrap;
  color: #4d5b52;
  margin: 7px 0;
}
.tag {
  font-size: 11px;
  background: #e8e8d4;
  border-radius: 50px;
  padding: 4px 8px;
  font-weight: 700;
  text-transform: uppercase;
}
.tag.red {
  background: #f4d8ce;
  color: #8f321e;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 13px;
}
.actions button,
.actions select {
  font-size: 13px;
}
.add,
.copybox,
.panel {
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 17px;
  margin: 18px 0;
}
.add form {
  display: grid;
  gap: 9px;
}
.add label,
.login label {
  display: grid;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
}
.copybox .preview {
  white-space: pre-wrap;
  background: #f6f7ef;
  border: 1px dashed #b9c4b5;
  border-radius: 9px;
  padding: 13px;
  max-height: 300px;
  overflow: auto;
}
.notice {
  color: var(--green);
  font-weight: 700;
  min-height: 24px;
}
.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #111d1b;
  padding: 20px;
}
.login {
  width: min(100%, 420px);
  padding: 34px;
  background: var(--paper);
  border-radius: 19px;
}
.login form {
  display: grid;
  gap: 17px;
}
.login h1 {
  margin: 6px 0 20px;
}
.login .eyebrow {
  color: var(--green);
}
.toolbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.toolbar select {
  flex: 1;
}
.tablewrap {
  overflow: auto;
}
.sales {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
.sales th,
.sales td {
  text-align: right;
  padding: 11px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.sales th:first-child,
.sales td:first-child {
  text-align: left;
}
.sales tfoot {
  font-weight: 700;
  background: #e8eee1;
}
.sales th {
  color: var(--green);
}
.bars {
  display: flex;
  gap: 4px;
  align-items: end;
  height: 120px;
  border-bottom: 1px solid var(--line);
  margin: 20px 0;
}
.bars span {
  flex: 1;
  background: var(--green);
  min-width: 2px;
  border-radius: 3px 3px 0 0;
}
.empty {
  padding: 32px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 12px;
}
@media (min-width: 760px) {
  .shell {
    padding: 24px 28px 100px;
  }
  .mast {
    padding: 34px 28px;
  }
  .items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .item {
    align-content: start;
  }
  .add form {
    grid-template-columns: 1fr 1fr auto;
    align-items: end;
  }
  .add form label:nth-child(2) {
    grid-column: 2;
  }
  .nav {
    gap: 12px;
  }
}
