:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #292421;
  background: #f6f3ef;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
.hidden {
  display: none !important;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
.shell {
  max-width: 680px;
  margin: 0 auto;
  min-height: 100dvh;
  background: #f8f6f3;
  box-shadow: 0 0 30px #3020190a;
}
.hero {
  background: #b61f2a;
  color: white;
  border-radius: 0 0 30px 30px;
  padding: calc(22px + env(safe-area-inset-top)) 22px 42px;
}
.hero-top,
.brand,
.quick-row,
.quick-tools,
.list-head,
.toggle-row,
.task-main,
.task-meta,
.detail-header,
.detail-actions,
.two,
.state-actions {
  display: flex;
  align-items: center;
}
.hero-top,
.quick-tools,
.list-head,
.toggle-row {
  justify-content: space-between;
}
.brand {
  gap: 12px;
}
.brand-mark {
  background: white;
  color: #b61f2a;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  font-family: Georgia, serif;
  font-size: 30px;
  font-weight: bold;
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.14em;
  opacity: 0.75;
}
.brand strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
}
.lang,
.icon-button {
  border: 0;
  background: #ffffff27;
  color: white;
  border-radius: 14px;
  min-width: 44px;
  height: 44px;
  font-weight: 700;
}
.hero-bottom {
  margin-top: 40px;
}
.hero h1 {
  font-size: 29px;
  letter-spacing: -0.04em;
  margin: 0 0 6px;
}
.hero p {
  margin: 0;
  opacity: 0.85;
  font-size: 14px;
}
.main {
  padding: 0 18px 38px;
  margin-top: -24px;
  position: relative;
}
.card {
  background: white;
  border-radius: 23px;
  box-shadow: 0 8px 24px #4b2c1714;
}
.quick {
  padding: 17px;
}
.quick-row {
  gap: 10px;
}
.quick-row input {
  border: 0;
  outline: 0;
  min-width: 0;
  flex: 1;
  font-size: 17px;
  color: #292421;
  padding: 12px 3px;
}
.quick-row input::placeholder {
  color: #99918d;
}
.add,
.primary {
  border: 0;
  background: #b61f2a;
  color: white;
  border-radius: 14px;
  min-height: 46px;
  padding: 0 22px;
  font-weight: 700;
}
.add:disabled,
.primary:disabled {
  opacity: 0.5;
}
.quick-tools {
  border-top: 1px solid #f0ece8;
  padding-top: 10px;
  margin-top: 7px;
  color: #9c938d;
  font-size: 12px;
}
.text-button {
  border: 0;
  background: none;
  color: #b61f2a;
  font-weight: 700;
  padding: 4px 0;
}
.options {
  border-top: 1px solid #eee8e4;
  margin-top: 12px;
  padding-top: 16px;
  display: grid;
  gap: 15px;
}
.options label,
.field label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: #665d58;
}
.options textarea,
.options input[type="datetime-local"],
.options select,
.field textarea,
.field input,
.field select {
  width: 100%;
  border: 1px solid #e9e2dc;
  border-radius: 13px;
  padding: 12px;
  background: #faf9f7;
  color: #292421;
  outline-color: #b61f2a;
}
.options textarea {
  resize: vertical;
}
.two {
  align-items: start;
  gap: 12px;
}
.two > label {
  width: 50%;
}
.photo-pick input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.picker {
  display: grid;
  place-items: center;
  border: 1px dashed #d9c9bf;
  border-radius: 13px;
  padding: 12px;
  color: #b61f2a;
  min-height: 45px;
}
.photo-preview {
  display: flex;
  align-items: center;
  gap: 12px;
}
.photo-preview img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
}
.photo-preview button {
  border: 0;
  background: none;
  color: #b61f2a;
  font-weight: 700;
}
.toggle-row {
  min-height: 42px;
  font-size: 14px;
  font-weight: 650;
}
.toggle-row input {
  appearance: none;
  width: 44px;
  height: 27px;
  border-radius: 20px;
  background: #ded7d2;
  position: relative;
  transition: 0.2s;
}
.toggle-row input:after {
  content: "";
  position: absolute;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: white;
  top: 3px;
  left: 3px;
  transition: 0.2s;
  box-shadow: 0 1px 3px #0002;
}
.toggle-row input:checked {
  background: #b61f2a;
}
.toggle-row input:checked:after {
  transform: translateX(17px);
}
.repeat-panel {
  display: grid;
  gap: 10px;
}
.weekdays {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.weekdays button {
  border: 1px solid #e2d9d3;
  border-radius: 10px;
  background: #fff;
  padding: 9px 5px;
  min-width: 39px;
}
.weekdays button.active {
  background: #b61f2a;
  color: white;
  border-color: #b61f2a;
}
.list-head {
  margin: 31px 3px 18px;
}
.list-head h2 {
  font-size: 24px;
  letter-spacing: -0.035em;
  margin: 0;
}
.list-head p {
  margin: 3px 0 0;
  color: #8e8580;
  font-size: 13px;
}
.list-head .icon-button {
  background: #eee6e0;
  color: #a6353c;
}
.filters {
  display: flex;
  gap: 7px;
  overflow: auto;
  scrollbar-width: none;
}
.filter {
  border: 0;
  border-radius: 12px;
  background: #ece7e2;
  color: #756b65;
  padding: 11px 14px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  min-height: 42px;
}
.filter.active {
  background: #b61f2a;
  color: white;
}
.search-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 15px 0;
  background: #fff;
  border: 1px solid #ece6e1;
  border-radius: 14px;
  padding: 0 13px;
  color: #a79d96;
}
.search-wrap span {
  font-size: 22px;
}
.search-wrap input {
  border: 0;
  outline: 0;
  min-width: 0;
  width: 100%;
  height: 43px;
  background: transparent;
}
.task-list {
  display: grid;
  gap: 10px;
}
.task {
  display: flex;
  align-items: start;
  gap: 12px;
  background: white;
  border: 1px solid #efeae5;
  border-radius: 19px;
  padding: 15px 14px;
  text-align: left;
  width: 100%;
  box-shadow: 0 3px 9px #4b2c1708;
}
.task-check {
  border: 2px solid #d3c9c2;
  border-radius: 50%;
  height: 25px;
  width: 25px;
  flex: none;
  margin-top: 2px;
  display: grid;
  place-items: center;
  color: white;
  background: white;
  font-size: 13px;
}
.task-check.done {
  background: #5d9b6b;
  border-color: #5d9b6b;
}
.task-body {
  min-width: 0;
  flex: 1;
}
.task-main {
  gap: 7px;
}
.task-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  word-break: break-word;
}
.task-meta {
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
  color: #9d938c;
  font-size: 11px;
}
.pill {
  background: #f5eee8;
  border-radius: 7px;
  padding: 4px 6px;
  color: #78685e;
  font-weight: 700;
}
.pill.red {
  background: #fff0ef;
  color: #b61f2a;
}
.pill.amber {
  background: #fff3d8;
  color: #9a6200;
}
.task-chevron {
  color: #bdafa6;
  font-size: 22px;
}
.empty {
  border: 1px dashed #ddcec4;
  border-radius: 20px;
  text-align: center;
  color: #8c8078;
  padding: 36px 18px;
  background: #fffcf8;
}
.empty strong {
  display: block;
  color: #51423c;
  margin-bottom: 6px;
}
.state {
  text-align: center;
  padding: 52px 24px;
  color: #70655f;
}
.state h2 {
  color: #342b27;
  font-size: 24px;
}
.state p {
  line-height: 1.55;
}
.shade {
  position: fixed;
  inset: 0;
  background: #21191582;
  z-index: 10;
}
.sheet {
  position: fixed;
  z-index: 11;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border-radius: 26px 26px 0 0;
  width: min(680px, 100%);
  max-height: 91dvh;
  overflow: auto;
  padding: 11px 20px calc(24px + env(safe-area-inset-bottom));
  animation: rise 0.22s ease-out;
}
@keyframes rise {
  from {
    transform: translate(-50%, 100%);
  }
  to {
    transform: translate(-50%, 0);
  }
}
.handle {
  width: 38px;
  height: 4px;
  background: #ddd4ce;
  border-radius: 5px;
  margin: 0 auto 22px;
}
.detail-header {
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}
.detail-header h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -0.03em;
}
.close {
  border: 0;
  background: #f3eeea;
  border-radius: 50%;
  font-size: 20px;
  width: 36px;
  height: 36px;
  flex: none;
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 20px;
}
.detail-block {
  border-top: 1px solid #f0ece8;
  padding: 16px 0;
}
.detail-block h3 {
  font-size: 13px;
  color: #9b8f87;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0 0 7px;
}
.detail-block p {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.5;
}
.detail-photo {
  max-width: 100%;
  max-height: 240px;
  border-radius: 14px;
  object-fit: cover;
}
.detail-actions {
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.detail-actions button {
  flex: 1;
  min-height: 46px;
  border-radius: 13px;
  border: 1px solid #e4d9d2;
  background: #fff;
  padding: 10px;
  font-weight: 700;
}
.detail-actions .primary {
  background: #b61f2a;
  color: white;
  border-color: #b61f2a;
  min-width: 160px;
}
.field {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}
.field label {
  font-size: 13px;
}
.comment {
  background: #f8f5f2;
  padding: 12px;
  border-radius: 12px;
  margin: 8px 0;
  font-size: 13px;
}
.comment small {
  display: block;
  color: #928780;
  margin-top: 5px;
}
.owner-list {
  display: grid;
  gap: 10px;
}
.owner-row {
  border: 1px solid #e9e2dc;
  border-radius: 14px;
  padding: 12px;
}
.owner-row strong {
  display: block;
}
.owner-row small {
  color: #8d827b;
}
.owner-row .detail-actions {
  margin-top: 7px;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 25px;
  transform: translateX(-50%);
  background: #292421;
  color: white;
  padding: 12px 17px;
  border-radius: 12px;
  z-index: 20;
  white-space: nowrap;
  box-shadow: 0 8px 30px #0003;
}
@media (min-width: 680px) {
  .hero {
    padding-left: 30px;
    padding-right: 30px;
  }
  .main {
    padding-left: 26px;
    padding-right: 26px;
  }
}

@media (max-width: 500px) {
  .two {
    display: grid;
    grid-template-columns: 1fr;
  }
  .two > label {
    width: 100%;
  }
}
