:root {
  --focus: #0f6f52;
  --cmd-bg: #fffdf8;
  --cmd-text: #20221d;
  --cmd-line: #d5d8cd;
  --cmd-focus: #edf3e8;
  --cmd-radius: 18px;
}

body.design-soft {
  min-height: 100dvh;
  background: #e8ebe3;
  color: #20221d;
}
.sw-shell {
  display: grid;
  grid-template-rows: 82px minmax(0, 1fr) 34px;
  min-height: 100dvh;
  gap: 12px;
  padding: 14px 14px 0;
}
.sw-top {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  border: 1px solid #d0d4c8;
  border-radius: 24px;
  background: #fffdf8;
  box-shadow: 0 10px 24px rgba(47, 54, 41, 0.05);
}
.sw-top .brand-logo {
  filter: invert(1);
  width: 105px;
}
.sw-nav {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 3px;
}
.sw-nav button {
  min-height: 42px;
  padding: 0 13px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #74776e;
  font-size: 11.5px;
  font-weight: 560;
}
.sw-nav button.is-active {
  background: #e3eadf;
  color: #244432;
  font-weight: 680;
}
.sw-top-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.sw-icon-btn {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid #d4d7cd;
  border-radius: 11px;
  background: #fff;
}
.sw-primary {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border: 1px solid #244432;
  border-radius: 11px;
  background: #244432;
  color: #fff;
  font-size: 11px;
  font-weight: 680;
}

.sw-main {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
  gap: 12px;
  min-height: 0;
}
.sw-work,
.sw-day {
  min-height: 0;
  overflow: hidden;
  border: 1px solid #d0d4c8;
  border-radius: 26px;
  box-shadow: 0 10px 26px rgba(47, 54, 41, 0.045);
}
.sw-work {
  display: grid;
  grid-template-rows: 74px minmax(0, 1fr) 116px;
  background: #f8f3e8;
}
.sw-work-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
  border-bottom: 1px solid #ded8cb;
}
.sw-work-head h1 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.025em;
}
.sw-work-head p {
  margin: 3px 0 0;
  color: #78786f;
  font-size: 10.5px;
}
.sw-work-head .sample-tag {
  margin-left: auto;
  color: #6d6b61;
}
.sw-mode-tabs {
  display: flex;
  gap: 3px;
  padding: 4px;
  border-radius: 12px;
  background: #ece5d8;
}
.sw-mode-tabs button {
  min-height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #79766e;
  font-size: 10px;
}
.sw-mode-tabs button.is-active {
  background: #fffdf8;
  color: #20221d;
  box-shadow: 0 2px 7px rgba(54, 49, 38, 0.07);
}

.sw-focus {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(230px, 0.75fr);
  min-height: 0;
}
.sw-task-focus {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 26px;
  border-right: 1px solid #ded8cb;
}
.sw-eyebrow {
  color: #75806f;
  font-size: 9px;
  font-weight: 720;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sw-task-focus h2 {
  max-width: 620px;
  margin: 15px 0 9px;
  font-size: clamp(24px, 2.5vw, 38px);
  font-weight: 630;
  letter-spacing: -0.045em;
  line-height: 1.05;
}
.sw-task-focus > p {
  max-width: 55ch;
  margin: 0;
  color: #6b6c64;
  font-size: 12px;
  line-height: 1.55;
}
.sw-task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.sw-task-meta span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid #d5cdbf;
  border-radius: 9px;
  background: #fffaf0;
  color: #62635b;
  font-size: 10px;
}
.sw-focus-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
}
.sw-focus-actions button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid #cfc8bb;
  border-radius: 10px;
  background: #fffdf8;
  font-size: 10.5px;
}
.sw-focus-actions .sw-open {
  border-color: #244432;
  background: #244432;
  color: #fff;
}

.sw-queue {
  min-height: 0;
  overflow: auto;
  padding: 16px;
  background: #f3ede1;
}
.sw-queue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.sw-queue-head strong {
  font-size: 11px;
}
.sw-queue-head span {
  color: #8a887f;
  font-size: 9px;
}
.sw-queue-item {
  padding: 12px 3px;
  border-top: 1px solid #d9d2c5;
}
.sw-queue-item:first-of-type {
  border-top: 0;
}
.sw-queue-item small {
  color: #8b887f;
  font-size: 9px;
}
.sw-queue-item strong {
  display: block;
  margin-top: 5px;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sw-queue-empty {
  margin-top: 10px;
  padding: 13px;
  border: 1px dashed #c8c1b5;
  border-radius: 12px;
  color: #77766f;
  font-size: 10px;
  line-height: 1.4;
}

.sw-spaces {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #ded8cb;
  background: #fffaf0;
}
.sw-space {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 9px;
  padding: 0 15px;
  border: 0;
  border-right: 1px solid #ded8cb;
  background: transparent;
  text-align: left;
}
.sw-space:last-child {
  border-right: 0;
}
.sw-space .icon {
  color: #64705f;
}
.sw-space strong {
  display: block;
  font-size: 10.5px;
}
.sw-space small {
  display: block;
  margin-top: 2px;
  color: #929086;
  font-size: 8.5px;
}

.sw-day {
  display: grid;
  grid-template-rows: 74px minmax(0, 1fr) auto;
  background: #e5eee7;
}
.sw-day-head {
  display: flex;
  align-items: center;
  padding: 0 22px;
  border-bottom: 1px solid #cedacf;
}
.sw-day-head h2 {
  margin: 0;
  font-size: 17px;
}
.sw-day-head button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-left: auto;
  border: 1px solid #c4d2c5;
  border-radius: 11px;
  background: #f7fbf5;
}
.sw-timeline {
  min-height: 0;
  overflow: auto;
  padding: 10px 22px;
}
.sw-time-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  min-height: 58px;
  border-bottom: 1px solid #cedacf;
}
.sw-time-row time {
  padding-top: 14px;
  color: #778279;
  font:
    9px ui-monospace,
    monospace;
}
.sw-time-content {
  padding: 11px 0;
}
.sw-time-content strong {
  display: block;
  font-size: 11px;
}
.sw-time-content p {
  margin: 4px 0 0;
  color: #758078;
  font-size: 9.5px;
}
.sw-now {
  position: relative;
}
.sw-now::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -9px;
  width: 3px;
  border-radius: 3px;
  background: #ef9b72;
  content: "";
}
.sw-permission {
  margin: 0 16px 16px;
  padding: 15px;
  border: 1px solid #d8bdad;
  border-radius: 16px;
  background: #fae8df;
}
.sw-permission .sw-perm-top {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #884c34;
}
.sw-permission strong {
  font-size: 11px;
}
.sw-permission p {
  margin: 6px 0 10px;
  color: #8e6654;
  font-size: 9.5px;
  line-height: 1.4;
}
.sw-permission button {
  min-height: 31px;
  padding: 0 10px;
  border: 1px solid #b98065;
  border-radius: 8px;
  background: transparent;
  color: #77412c;
  font-size: 9.5px;
}

.sw-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 10px;
  color: #777a72;
  font:
    9px ui-monospace,
    monospace;
  text-transform: uppercase;
}
.sw-foot .sample-tag {
  margin-left: auto;
}

@media (max-width: 1080px) {
  .sw-main {
    grid-template-columns: minmax(0, 1fr) 310px;
  }
  .sw-nav button:nth-last-child(-n + 2) {
    display: none;
  }
  .sw-focus {
    grid-template-columns: 1fr 220px;
  }
}

@media (max-width: 760px) {
  .sw-shell {
    display: block;
    padding: 8px 8px 28px;
  }
  .sw-top {
    position: sticky;
    top: 8px;
    z-index: 30;
    grid-template-columns: 1fr auto;
    min-height: 60px;
    padding: 0 12px;
    border-radius: 18px;
  }
  .sw-top .brand-logo {
    width: 88px;
  }
  .sw-nav {
    position: fixed;
    z-index: 40;
    inset: 76px 14px auto;
    display: none;
    padding: 10px;
    border: 1px solid #d0d4c8;
    border-radius: 18px;
    background: #fffdf8;
    box-shadow: 0 18px 50px rgba(34, 39, 31, 0.16);
  }
  .nav-open .sw-nav {
    display: grid;
  }
  .sw-nav button {
    width: 100%;
    text-align: left;
  }
  .sw-primary {
    display: none;
  }
  .sw-main {
    display: block;
    margin-top: 10px;
  }
  .sw-work,
  .sw-day {
    border-radius: 20px;
  }
  .sw-work {
    display: block;
  }
  .sw-work-head {
    min-height: 68px;
    padding: 0 16px;
  }
  .sw-mode-tabs {
    display: none;
  }
  .sw-focus {
    display: block;
  }
  .sw-task-focus {
    min-height: 430px;
    padding: 22px 18px;
    border-right: 0;
    border-bottom: 1px solid #ded8cb;
  }
  .sw-task-focus h2 {
    font-size: 29px;
  }
  .sw-queue {
    max-height: 300px;
  }
  .sw-spaces {
    grid-template-columns: 1fr 1fr;
  }
  .sw-space {
    min-height: 70px;
    border-bottom: 1px solid #ded8cb;
  }
  .sw-day {
    margin-top: 10px;
  }
  .sw-day-head {
    min-height: 68px;
  }
  .sw-timeline {
    max-height: 380px;
  }
  .sw-foot {
    min-height: 34px;
  }
}
